/* Токены Ata Design v0.1: копия design-system/ata-design-v0.1.json, правится только вместе с каноном */
:root {
  color-scheme: light dark;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius-panel: 22px;
  --radius-control: 14px;
  --motion-fast: 150ms;
  --ease-standard: cubic-bezier(0.165, 0.84, 0.44, 1);
  --qr-ink: #0B2F48;
  --bg: #F5F0E5;
  --surface: #FBF8F1;
  --card: #FFFCF6;
  --border: #E4DAC6;
  --ink: #33291F;
  --title: #271D15;
  --muted: #6F6256;
  --primary: linear-gradient(180deg, #2871E8 0%, #1559CB 100%);
  --primary-solid: #1559CB;
  --primary-ink: #FFFFFF;
  --badge: #E7F0FF;
  --badge-ink: #164FA7;
  --link: #1559CB;
  --hero: linear-gradient(145deg, #246CE1 0%, #1559CB 58%, #10489E 100%);
  --hero-border: rgba(255, 255, 255, 0.32);
  --hero-ink: #FFFFFF;
  --hero-muted: rgba(255, 255, 255, 0.86);
  --hero-surface: rgba(255, 255, 255, 0.14);
  --hero-track: rgba(255, 255, 255, 0.24);
  --hero-button: #FFFDF8;
  --hero-button-ink: #124B9C;
  --sel-bg: #EAF2FF;
  --sel-border: #1559CB;
  --save-bg: #E5F5E9;
  --save-ink: #146B3B;
  --bad-bg: #FBE8E3;
  --bad-ink: #A23722;
  --sheet: #FBF8F1;
  --focus: #1559CB;
  --overlay: rgba(37, 30, 23, 0.48);
  --status-active: #70F0B1;
  --status-warn: #FFD061;
  --status-danger: #FFB3A2;
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.96), inset 0 -1px 1px rgba(124, 98, 68, 0.10), 0 10px 24px rgba(94, 72, 49, 0.12);
  --shadow-raised: inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 -1px 1px rgba(124, 98, 68, 0.10), 0 4px 12px rgba(94, 72, 49, 0.12);
  --shadow-raised-hover: inset 0 1px 0 rgba(255, 255, 255, 0.98), inset 0 -1px 1px rgba(124, 98, 68, 0.12), 0 8px 18px rgba(94, 72, 49, 0.17);
  --shadow-primary: inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -2px 4px rgba(7, 55, 135, 0.35), 0 7px 16px rgba(21, 89, 203, 0.32);
  --shadow-inset: inset 0 2px 5px rgba(94, 72, 49, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.70);
  --shadow-overlay: 0 20px 52px rgba(53, 38, 24, 0.24);
}

/* Ручной выбор темы важнее системного */
:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121826;
  --surface: #1A2233;
  --card: #1D2638;
  --border: #34425B;
  --ink: #F0F5FF;
  --title: #F8FBFF;
  --muted: #AAB7CB;
  --primary: linear-gradient(180deg, #2A72D2 0%, #1553B6 100%);
  --primary-solid: #2A72D2;
  --primary-ink: #FFFFFF;
  --badge: #17345E;
  --badge-ink: #B8D9FF;
  --link: #9CC9FF;
  --hero: linear-gradient(155deg, #347FE8 0%, #1A4B9A 56%, #152D5B 100%);
  --hero-border: rgba(159, 204, 255, 0.30);
  --hero-ink: #FFFFFF;
  --hero-muted: rgba(240, 247, 255, 0.86);
  --hero-surface: rgba(7, 20, 45, 0.28);
  --hero-track: rgba(228, 243, 255, 0.22);
  --hero-button: #F4F9FF;
  --hero-button-ink: #154A98;
  --sel-bg: #163862;
  --sel-border: #73B5FF;
  --save-bg: #123B2D;
  --save-ink: #8BE9B9;
  --bad-bg: #3E1E21;
  --bad-ink: #FFB3A8;
  --sheet: #1A2233;
  --focus: #91C6FF;
  --overlay: rgba(2, 7, 18, 0.68);
  --status-active: #70E9B3;
  --status-warn: #FFD061;
  --status-danger: #FFAD9E;
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 28px rgba(0, 0, 0, 0.34);
  --shadow-raised: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 1px rgba(0, 0, 0, 0.30), 0 4px 12px rgba(0, 0, 0, 0.28);
  --shadow-raised-hover: inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 -1px 1px rgba(0, 0, 0, 0.32), 0 8px 18px rgba(0, 0, 0, 0.34);
  --shadow-primary: inset 0 1px 0 rgba(255, 255, 255, 0.30), inset 0 -2px 4px rgba(10, 45, 109, 0.42), 0 7px 16px rgba(45, 122, 228, 0.36);
  --shadow-inset: inset 0 2px 6px rgba(0, 0, 0, 0.48), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  --shadow-overlay: 0 22px 56px rgba(0, 0, 0, 0.58);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121826;
    --surface: #1A2233;
    --card: #1D2638;
    --border: #34425B;
    --ink: #F0F5FF;
    --title: #F8FBFF;
    --muted: #AAB7CB;
    --primary: linear-gradient(180deg, #2A72D2 0%, #1553B6 100%);
    --primary-solid: #2A72D2;
    --primary-ink: #FFFFFF;
    --badge: #17345E;
    --badge-ink: #B8D9FF;
    --link: #9CC9FF;
    --hero: linear-gradient(155deg, #347FE8 0%, #1A4B9A 56%, #152D5B 100%);
    --hero-border: rgba(159, 204, 255, 0.30);
    --hero-ink: #FFFFFF;
    --hero-muted: rgba(240, 247, 255, 0.86);
    --hero-surface: rgba(7, 20, 45, 0.28);
    --hero-track: rgba(228, 243, 255, 0.22);
    --hero-button: #F4F9FF;
    --hero-button-ink: #154A98;
    --sel-bg: #163862;
    --sel-border: #73B5FF;
    --save-bg: #123B2D;
    --save-ink: #8BE9B9;
    --bad-bg: #3E1E21;
    --bad-ink: #FFB3A8;
    --sheet: #1A2233;
    --focus: #91C6FF;
    --overlay: rgba(2, 7, 18, 0.68);
    --status-active: #70E9B3;
    --status-warn: #FFD061;
    --status-danger: #FFAD9E;
    --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 28px rgba(0, 0, 0, 0.34);
    --shadow-raised: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 1px rgba(0, 0, 0, 0.30), 0 4px 12px rgba(0, 0, 0, 0.28);
    --shadow-raised-hover: inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 -1px 1px rgba(0, 0, 0, 0.32), 0 8px 18px rgba(0, 0, 0, 0.34);
    --shadow-primary: inset 0 1px 0 rgba(255, 255, 255, 0.30), inset 0 -2px 4px rgba(10, 45, 109, 0.42), 0 7px 16px rgba(45, 122, 228, 0.36);
    --shadow-inset: inset 0 2px 6px rgba(0, 0, 0, 0.48), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    --shadow-overlay: 0 22px 56px rgba(0, 0, 0, 0.58);
  }
}

@font-face {
  font-family: 'Manrope';
  src: url('manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }

h1, h2, h3 {
  color: var(--title);
  font-weight: 800;
  text-wrap: balance;
}

svg, img { display: block; }
img { max-width: 100%; height: auto; }

a { color: var(--link); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

[id] { scroll-margin-top: 16px; }

.sprite { position: absolute; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block; }
  :root:not([data-theme="light"]) .only-light { display: none; }
}

.shell {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-control);
  background: var(--card);
  color: var(--link);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* Шапка */
.header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--title);
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}
.brand img { width: 31px; height: 40px; }

.header-nav { display: none; }

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.header-nav a:hover { color: var(--link); }

.header-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-raised);
  transition: box-shadow var(--motion-fast) var(--ease-standard);
}
.theme-toggle:hover { box-shadow: var(--shadow-raised-hover); }
.theme-toggle svg { width: 20px; height: 20px; fill: currentColor; }

.theme-moon { display: none; }
:root[data-theme="dark"] .theme-moon { display: block; }
:root[data-theme="dark"] .theme-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-moon { display: block; }
  :root:not([data-theme="light"]) .theme-sun { display: none; }
}

.header-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-control);
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-primary);
}

/* Кнопки */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: var(--radius-control);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: box-shadow var(--motion-fast) var(--ease-standard);
}
.button svg { width: 20px; height: 20px; fill: currentColor; }

.button-primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: var(--shadow-primary);
}

.button-quiet {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--link);
  box-shadow: var(--shadow-raised);
}
.button-quiet:hover { box-shadow: var(--shadow-raised-hover); }

.button-telegram {
  margin-top: 24px;
  background: var(--badge);
  color: var(--badge-ink);
}

.button-light {
  background: var(--hero-button);
  color: var(--hero-button-ink);
  box-shadow: var(--shadow-raised);
}
.button-light:hover { box-shadow: var(--shadow-raised-hover); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--link);
  font-weight: 700;
  text-underline-offset: 4px;
}

/* Первый экран */
.hero {
  display: grid;
  gap: 40px;
  padding-top: 20px;
  padding-bottom: 56px;
}

.hero h1 {
  font-size: clamp(36px, 10.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 36em;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.live-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.live-ok .live-dot { background: var(--save-ink); }
.live-warn .live-dot { background: var(--status-warn); }

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.platforms li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.platforms svg { width: 18px; height: 18px; fill: currentColor; }

.phone {
  justify-self: center;
  width: min(100%, 320px);
}

.phone-frame {
  overflow: hidden;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 38px;
  background: var(--title);
  box-shadow: var(--shadow-card);
}
.phone-frame img {
  width: 100%;
  border-radius: 30px;
}

.phone figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Секции */
.section { padding-top: 48px; padding-bottom: 48px; }

.heading {
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-lead {
  max-width: 34em;
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

/* Что входит */
.bento {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.tile {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.tile h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tile p {
  margin-top: 10px;
  color: var(--muted);
}

.connect-steps {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  counter-reset: step;
}

.connect-steps li {
  position: relative;
  padding-left: 48px;
  counter-increment: step;
}
.connect-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--badge);
  color: var(--badge-ink);
  font-weight: 800;
}
.connect-steps b {
  display: block;
  color: var(--title);
  font-size: 17px;
}
.connect-steps span { color: var(--muted); }

.connect-steps .apps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 8px;
}
.apps span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}
.apps img { width: 32px; height: 32px; border-radius: 8px; }

.device-counts {
  display: flex;
  gap: 22px;
  margin-top: 16px;
}
.device-counts b {
  display: block;
  color: var(--link);
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.device-counts span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.traffic-bars {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.traffic-bars li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  font-size: 15px;
}
.traffic-bars span { color: var(--muted); font-weight: 600; }
.traffic-bars b { color: var(--title); }
.traffic-bars i {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block;
  height: 10px;
  border-radius: 5px;
  background: var(--badge);
  box-shadow: var(--shadow-inset);
}
.traffic-bars i::before {
  content: '';
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: 5px;
  background: var(--primary-solid);
}

/* Серверы */
.servers {
  margin-top: 24px;
  margin-bottom: 24px;
  padding-top: 56px;
  padding-bottom: 56px;
  background: var(--primary-solid);
  color: var(--primary-ink);
}

.servers h2 {
  color: var(--primary-ink);
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.servers-head p {
  max-width: 40em;
  margin-top: 14px;
  font-size: 17px;
}

.stats {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}
.stats dd {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stats dt { margin-top: 2px; font-size: 15px; font-weight: 600; }
.stats div { display: flex; flex-direction: column-reverse; }

.countries {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.country {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-control);
  background: var(--card);
  color: var(--ink);
}
.country img { flex: none; width: 36px; height: 36px; }

.country-name {
  flex: 1 1 150px;
  min-width: 0;
}
.country-name b {
  display: block;
  color: var(--title);
  font-size: 16px;
}
.country-name span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.state {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
.state-ok { background: var(--save-bg); color: var(--save-ink); }
.state-partial { background: var(--status-warn); color: var(--qr-ink); }
.state-down { background: var(--bad-bg); color: var(--bad-ink); }

.servers-note {
  margin-top: 18px;
  max-width: 46em;
  font-size: 15px;
}

/* Устройства */
.split {
  display: grid;
  gap: 24px;
}

.platform-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.platform-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 16px 20px;
}
.platform-list li + li { border-top: 1px solid var(--border); }

.platform-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--title);
  font-weight: 700;
}
.platform-name svg { width: 22px; height: 22px; fill: currentColor; }

.platform-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.platform-app img { width: 28px; height: 28px; border-radius: 7px; }

/* Пробный период */
.trial {
  display: grid;
  gap: 18px;
  padding: 26px 24px;
  border: 1px solid var(--sel-border);
  border-radius: var(--radius-panel);
  background: var(--sel-bg);
}
.trial h2 {
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.trial p { margin-top: 8px; color: var(--ink); }

/* Тарифы */
.tariffs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.periods {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-control);
  background: var(--surface);
  box-shadow: var(--shadow-inset);
}
.periods label { position: relative; cursor: pointer; }
.periods input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.periods span {
  display: grid;
  place-items: center;
  min-width: 56px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}
.periods input:checked + span {
  background: var(--card);
  color: var(--link);
  box-shadow: var(--shadow-raised);
}
.periods input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.tariffs {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.tariff {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.tariff-main { border-color: var(--sel-border); }

.tariff h3 { font-size: 24px; letter-spacing: -0.02em; }
.tariff-for { margin-top: 4px; color: var(--muted); }

.tariff-price { margin-top: 16px; color: var(--muted); }
.tariff-price b {
  color: var(--title);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tariff-month {
  min-height: 24px;
  color: var(--save-ink);
  font-size: 15px;
  font-weight: 700;
}

.tariff-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 22px;
  flex: 1;
  align-content: start;
}
.tariff-list li {
  position: relative;
  padding-left: 24px;
}
.tariff-list li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 6px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--link);
  border-bottom: 2px solid var(--link);
  transform: rotate(-45deg);
}

.tariffs-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

/* Без сюрпризов */
.facts {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  color: var(--muted);
}
.facts b { color: var(--title); }

.compare-wrap {
  overflow-x: auto;
  padding: 8px 20px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare caption {
  padding: 12px 0;
  color: var(--title);
  font-size: 18px;
  font-weight: 800;
  text-align: left;
}
.compare th, .compare td {
  padding: 12px 10px 12px 0;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.compare thead th { color: var(--title); font-weight: 800; }
.compare tbody th { color: var(--muted); font-weight: 600; }
.compare td:nth-child(2) { color: var(--title); font-weight: 700; }
.compare td:nth-child(3) { color: var(--muted); }

.duo {
  display: grid;
  gap: 14px;
}

/* Вопросы */
.faq-list {
  max-width: 860px;
  margin-top: 24px;
  border-bottom: 1px solid var(--border);
}

.faq-list details { border-top: 1px solid var(--border); }

.faq-list summary {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 16px 44px 16px 0;
  color: var(--title);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::before,
.faq-list summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 28px;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: var(--link);
  transition: transform var(--motion-fast) var(--ease-standard);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }

.faq-list details p {
  max-width: 700px;
  padding-bottom: 18px;
  color: var(--muted);
}

/* Финал */
.closing-wrap { padding-top: 32px; padding-bottom: 48px; }

.closing {
  display: grid;
  gap: 22px;
  padding: 30px 24px;
  border: 1px solid var(--hero-border);
  border-radius: var(--radius-panel);
  background: var(--primary-solid);
  color: var(--primary-ink);
}
.closing img { width: 96px; height: auto; }

.closing h2 {
  color: var(--primary-ink);
  font-size: clamp(30px, 8vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.closing p { margin-top: 10px; max-width: 34em; }

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 20px;
}

.closing-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--primary-ink);
  font-weight: 700;
  text-underline-offset: 4px;
}

.closing :focus-visible { outline-color: var(--primary-ink); }

/* Подвал */
.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 16px;
  padding-top: 16px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 15px;
}

.footer-links {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--link); }

@media (min-width: 640px) {
  .hero-actions { display: flex; flex-wrap: wrap; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .countries { grid-template-columns: repeat(2, 1fr); }
  .tariffs { grid-template-columns: repeat(3, 1fr); }
  .duo { grid-template-columns: repeat(2, 1fr); }
  .trial { grid-template-columns: 1fr auto; align-items: center; }
}

@media (max-width: 899px) and (min-width: 640px) {
  .tariffs { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  .header { min-height: 88px; }

  .header-nav {
    display: flex;
    gap: 28px;
  }

  .hero {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 56px;
    padding-top: 28px;
    padding-bottom: 72px;
  }

  .section { padding-top: 64px; padding-bottom: 64px; }

  .bento {
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-top: 36px;
  }
  .tile-connect { grid-column: span 7; grid-row: span 2; }
  .tile-devices { grid-column: span 5; }
  .tile-mobile { grid-column: span 5; }
  .tile-traffic { grid-column: span 12; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px 40px; align-items: center; }
  .tile-traffic h3 { grid-column: 1; }
  .tile-traffic .traffic-bars { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .tile-traffic p { grid-column: 1; grid-row: 2; margin-top: 0; }
  .tile { padding: 28px; }

  .servers { padding-top: 72px; padding-bottom: 72px; }
  .servers-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
  .servers-head p { margin-top: 0; }
  .countries { grid-template-columns: repeat(4, 1fr); }
  .country .state { order: 3; }

  .split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

  .trial { padding: 34px 40px; }

  .closing-wrap { padding-bottom: 64px; }
  .closing {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 44px;
    padding: 48px 56px;
  }
  .closing img { width: 150px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
