/* ═══════════════════════════════════════════════════════════
   VANTA VPN — единая дизайн-система
   Все цветовые пары проверены на WCAG AA (>= 4.5:1).
   ═══════════════════════════════════════════════════════════ */

/* ── ШРИФТ (свой хост, переменное начертание 400–800) ── */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── ТОКЕНЫ ── */
:root {
  --bg:          #07080b;
  --surface-1:   #0e1015;
  --surface-2:   #151922;
  --surface-3:   #1b2029;

  --text:        #eceef4;   /* 16.4:1 на surface-1 */
  --text-2:      #b9c0d0;   /* 10.4:1 */
  --text-3:      #8e97ab;   /*  6.5:1 — минимальный допустимый */

  --accent:      #38bdf8;   /*  8.9:1 */
  --accent-hi:   #5cc9fa;
  --accent-ink:  #04121b;   /* текст поверх акцентной заливки, 8.9:1 */
  --accent-soft: rgba(56,189,248,.10);
  --accent-line: rgba(56,189,248,.28);

  --gold:        #d9c79c;   /* 11.4:1 — вторичный акцент под сталь логотипа */
  --gold-dim:    #b9a97f;
  --gold-soft:   rgba(217,199,156,.09);
  --gold-line:   rgba(217,199,156,.26);

  --green:       #6ee7b7;
  --danger:      #fca5a5;

  --border:      rgba(255,255,255,.08);
  --border-2:    rgba(255,255,255,.14);

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 12px 32px -12px rgba(0,0,0,.7);
  --shadow-glow: 0 0 40px -8px rgba(56,189,248,.35);

  --step: clamp(64px, 9vw, 116px);   /* вертикальный ритм секций */
  --gutter: clamp(18px, 5vw, 40px);
  --maxw: 1160px;
  --maxw-text: 780px;
}

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

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

body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

img, svg, picture { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--accent); }
::selection { background: rgba(56,189,248,.28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
  font-size: .88rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

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

/* ═══ ФОН: глубина вместо плоской заливки ═══ */
.bg-deep {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  contain: strict; will-change: transform;
  background:
    radial-gradient(120% 78% at 50% -12%,  rgba(56,189,248,.13) 0%, transparent 58%),
    radial-gradient(90%  60% at 88% 8%,    rgba(217,199,156,.05) 0%, transparent 55%),
    radial-gradient(80%  55% at 6%  102%,  rgba(56,189,248,.05) 0%, transparent 60%),
    linear-gradient(180deg, #090a0f 0%, #07080b 42%, #05060a 100%);
}
/* мелкое зерно — готовый тайл: SVG-фильтр feTurbulence растеризовался
   на весь вьюпорт и стоил сотни мс Style & Layout на мобильном CPU */
.bg-deep::after {
  content: ''; position: absolute; inset: 0; opacity: .045;
  background-image: url('/assets/img/noise.png');
  background-size: 128px 128px;
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  contain: strict;
  background-image:
    linear-gradient(rgba(255,255,255,.021) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.021) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(100% 62% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(100% 62% at 50% 0%, #000 0%, transparent 78%);
}

/* ═══ ШАПКА ═══ */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 66px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(7,8,11,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7,8,11,.92);
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.logo img { width: 32px; height: 32px; }
.logo-name {
  font-size: .98rem; font-weight: 700; letter-spacing: .14em;
  color: var(--text); text-transform: uppercase;
}
.logo-name span { color: var(--text-3); font-weight: 400; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: .875rem; font-weight: 500; color: var(--text-2);
  text-decoration: none; padding: 8px 13px; border-radius: var(--r-sm);
  transition: color .18s, background .18s; white-space: nowrap;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav .btn-nav {
  margin-left: 8px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; padding: 9px 17px;
}
.nav .btn-nav:hover { background: var(--accent-hi); color: var(--accent-ink); box-shadow: var(--shadow-glow); }
.nav .nav-quiet { color: var(--text-3); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 10px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--text-2); transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav {
    position: fixed; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7,8,11,.985);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 6px var(--gutter) 22px;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: calc(100vh - 66px); overflow-y: auto; }
  .nav a { padding: 15px 4px; font-size: 1rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav a:last-child { border-bottom: none; }
  .nav .btn-nav { margin: 16px 0 0; text-align: center; padding: 14px; border-radius: var(--r-md); }
  .nav-toggle { display: flex; }
}

/* ═══ РАСКЛАДКА ═══ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
main { position: relative; z-index: 1; }
.section { padding-block: var(--step); }
.section-tight { padding-block: calc(var(--step) * .6); }

.page { position: relative; z-index: 1; max-width: var(--maxw-text); margin: 0 auto; padding: 108px var(--gutter) var(--step); }
.page-wide { max-width: var(--maxw); }

/* ═══ ТИПОГРАФИКА ═══ */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.022em; font-weight: 700; }
h1 { font-size: clamp(2.05rem, 5.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: clamp(1.02rem, 1.7vw, 1.16rem); font-weight: 700; letter-spacing: -.012em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px 5px 10px; border-radius: 100px;
  border: 1px solid var(--border-2); background: rgba(255,255,255,.03);
  font-size: .7rem; font-weight: 600; letter-spacing: .11em;
  text-transform: uppercase; color: var(--text-2);
}
.eyebrow i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); font-style: normal; flex-shrink: 0;
  box-shadow: 0 0 10px var(--accent);
}
.eyebrow-gold i { background: var(--gold); box-shadow: 0 0 10px var(--gold); }

.lede { font-size: clamp(1rem, 1.5vw, 1.09rem); color: var(--text-2); line-height: 1.72; max-width: 62ch; }

.sec-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { margin: 16px 0 14px; }
.sec-head p { color: var(--text-2); font-size: .98rem; line-height: 1.7; }
.sec-head em { font-style: normal; color: var(--accent); }
.sec-head .gold { color: var(--gold); }

.page-head { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--border); }
.page-head .eyebrow { margin-bottom: 20px; }
.page-head h1 { margin-bottom: 16px; }

/* ═══ ПРОЗА ═══ */
.prose h2 { margin: clamp(44px, 6vw, 64px) 0 16px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 34px 0 12px; color: var(--text); scroll-margin-top: 90px; }
.prose p { font-size: .97rem; color: var(--text-2); margin-bottom: 15px; line-height: 1.78; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); transition: border-color .16s; }
.prose a:hover { border-bottom-color: var(--accent); }
.prose ul, .prose ol { margin: 14px 0 20px; padding: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: .95rem; color: var(--text-2); line-height: 1.74; }
.prose ul li::before {
  content: ''; position: absolute; left: 3px; top: .66em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .75;
}
.prose ol { counter-reset: ol; }
.prose ol li { counter-increment: ol; position: relative; padding-left: 34px; margin-bottom: 12px; font-size: .95rem; color: var(--text-2); line-height: 1.74; }
.prose ol li::before {
  content: counter(ol); position: absolute; left: 0; top: .02em;
  width: 23px; height: 23px; border-radius: 7px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); font-size: .7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.prose code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .85em; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 7px; color: var(--text-2); overflow-wrap: anywhere;
}

/* ═══ КНОПКИ ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--r-md);
  font-family: inherit; font-size: .92rem; font-weight: 700; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .16s cubic-bezier(.3,.8,.4,1), box-shadow .22s, background .18s, border-color .18s, color .18s;
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--accent-ink); }
.btn-gold:hover { background: #e6d6ad; box-shadow: 0 0 38px -8px rgba(217,199,156,.4); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: var(--accent-line); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: .98rem; }
.btn svg { flex-shrink: 0; }

/* снятие возражения прямо под кнопкой оплаты */
.assure {
  display: flex; align-items: flex-start; gap: 8px; justify-content: center;
  margin-top: 12px; font-size: .77rem; line-height: 1.5; color: var(--text-3);
}
.assure svg { flex-shrink: 0; margin-top: 2px; color: var(--green); }
.assure b { color: var(--text-2); font-weight: 600; }

/* ═══ КАРТОЧКИ — непрозрачные, контраст предсказуем ═══ */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.6vw, 28px);
  transition: border-color .22s, transform .22s cubic-bezier(.3,.8,.4,1), box-shadow .22s;
}
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover, .card-hover:hover {
  border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-2);
}
.card h3 { margin-bottom: 9px; }
.card p { font-size: .9rem; color: var(--text-2); line-height: 1.7; }
.card-ico {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 16px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
}
.card-ico-gold { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold); }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .84rem; font-weight: 600; color: var(--accent); }
a.card:hover .card-more { gap: 10px; }
.card-more { transition: gap .2s; }

.grid { display: grid; gap: clamp(12px, 1.6vw, 18px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); }

/* ═══ ТАБЛИЦЫ ═══ */
.table-wrap {
  overflow-x: auto; margin: 22px 0 26px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-1);
}
table { width: 100%; border-collapse: collapse; min-width: 460px; }
th, td { text-align: left; padding: 14px 17px; font-size: .9rem; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: top; }
th { font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); font-weight: 700; background: rgba(255,255,255,.022); }
tr:last-child td { border-bottom: none; }
td strong { color: var(--text); }
.num { white-space: nowrap; }

/* сравнительная таблица тарифов с галочками */
.cmp { min-width: 520px; }
.cmp th, .cmp td { text-align: center; }
.cmp th:first-child, .cmp td:first-child { text-align: left; width: 46%; color: var(--text); font-weight: 600; }
.cmp thead th { font-size: .95rem; text-transform: none; letter-spacing: -.01em; color: var(--text); padding-block: 18px; }
.cmp thead th span { display: block; font-size: .74rem; font-weight: 500; color: var(--text-3); text-transform: none; letter-spacing: 0; margin-top: 3px; }
.cmp .col-hi { background: rgba(56,189,248,.05); }
.cmp tbody tr:hover td { background: rgba(255,255,255,.018); }
.tick { display: inline-flex; width: 21px; height: 21px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(110,231,183,.13); color: var(--green); }
.tick-no { background: rgba(255,255,255,.05); color: var(--text-3); }
.cmp-val { color: var(--text); font-weight: 700; }

/* ═══ ВЫНОСКИ ═══ */
.note {
  display: flex; gap: 15px; align-items: flex-start;
  background: var(--surface-1); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--r-md);
  padding: 17px 19px; margin: 22px 0;
}
.note-gold { border-left-color: var(--gold); }
.note-warn { border-left-color: #f8b438; }
.note-ico { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.note-gold .note-ico { background: var(--gold-soft); color: var(--gold); }
.note-warn .note-ico { background: rgba(248,180,56,.12); color: #f8b438; }
.note p { font-size: .9rem; color: var(--text-2); line-height: 1.7; }
.note p + p { margin-top: 9px; }
.note strong { color: var(--text); }

/* ═══ ШАГИ ═══ */
.steps { display: flex; flex-direction: column; gap: 14px; margin: 26px 0 30px; counter-reset: st; }
.st {
  counter-increment: st; position: relative;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 20px 22px 20px 66px;
}
.st::before {
  content: counter(st, decimal-leading-zero);
  position: absolute; left: 20px; top: 19px;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); font-size: .74rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.st h3 { margin: 0 0 7px; }
.st p { font-size: .93rem; color: var(--text-2); margin: 0 0 9px; line-height: 1.74; }
.st p:last-child { margin-bottom: 0; }
.st ul { margin: 9px 0 0; }

/* ═══ FAQ ═══ */
.faq { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 30px; }
.faq details {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-md); transition: border-color .2s, background .2s;
}
.faq details:hover { border-color: var(--border-2); }
.faq details[open] { border-color: var(--accent-line); background: var(--surface-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 17px 52px 17px 21px; position: relative;
  font-size: .96rem; font-weight: 600; color: var(--text); line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 21px; top: 23px;
  width: 8px; height: 8px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg); transition: transform .22s, border-color .22s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px,-2px); border-color: var(--accent); }
.faq .faq-body { padding: 0 21px 19px; }
.faq .faq-body p { font-size: .92rem; color: var(--text-2); line-height: 1.76; margin-bottom: 11px; }
.faq .faq-body p:last-child { margin-bottom: 0; }
.faq .faq-body ul { margin: 9px 0 0; }
.faq .faq-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }

/* ═══ ТАРИФНЫЕ КАРТОЧКИ ═══ */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin: 28px 0 30px; }
.plan { position: relative; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 28px; transition: border-color .22s, transform .22s, box-shadow .22s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--border-2); }
.plan-hi { border-color: var(--accent-line); background: linear-gradient(170deg, rgba(56,189,248,.055), var(--surface-1) 55%); }
.plan-hi:hover { border-color: var(--accent); box-shadow: var(--shadow-2), var(--shadow-glow); }
.plan-badge {
  position: absolute; top: 18px; right: 18px;
  padding: 5px 11px; border-radius: 100px; font-size: .68rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold);
}
.plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 7px; }
.plan-desc { font-size: .88rem; color: var(--text-3); margin-bottom: 22px; line-height: 1.6; min-height: 2.9em; }
.plan-price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.plan-price span { font-size: .92rem; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.plan-note { font-size: .8rem; color: var(--text-3); margin: 8px 0 22px; }
.plan-note b { color: var(--gold); font-weight: 700; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.plan ul li { position: relative; padding-left: 28px; font-size: .91rem; color: var(--text-2); line-height: 1.55; }
.plan ul li::before {
  content: ''; position: absolute; left: 0; top: .08em;
  width: 19px; height: 19px; border-radius: 50%;
  background: rgba(110,231,183,.13);
}
.plan ul li::after {
  content: ''; position: absolute; left: 6px; top: .42em;
  width: 8px; height: 4.5px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

/* ═══ БЛОК ПРИЗЫВА ═══ */
.cta-box {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, rgba(56,189,248,.09), rgba(217,199,156,.035) 60%, var(--surface-1));
  border: 1px solid var(--accent-line); border-radius: var(--r-xl);
  padding: clamp(30px, 4.5vw, 46px); margin-top: clamp(48px, 6vw, 72px); text-align: center;
}
.cta-box h2 { margin-bottom: 12px; font-size: clamp(1.35rem, 2.8vw, 1.8rem); }
.cta-box p { font-size: .98rem; color: var(--text-2); margin: 0 auto 24px; max-width: 54ch; line-height: 1.7; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══ ПОДДЕРЖКА ═══ */
.support-band {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); flex-wrap: wrap;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 28px);
}
.support-band .sb-ico {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
}
.support-band .sb-txt { flex: 1 1 260px; }
.support-band h3 { margin-bottom: 5px; }
.support-band p { font-size: .89rem; color: var(--text-2); line-height: 1.65; }

/* ═══ «ЧИТАЙТЕ ТАКЖЕ» ═══ */
.related { margin-top: clamp(48px, 6vw, 64px); padding-top: 34px; border-top: 1px solid var(--border); }
.related h2 { font-size: .72rem; letter-spacing: .11em; text-transform: uppercase; color: var(--text-3); font-weight: 700; margin-bottom: 18px; }
.related-list { display: flex; flex-wrap: wrap; gap: 10px; }
.related-list a {
  font-size: .86rem; font-weight: 500; color: var(--text-2); text-decoration: none;
  padding: 9px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface-1);
  transition: border-color .18s, color .18s, transform .18s;
}
.related-list a:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-2px); }

/* ═══ ХЛЕБНЫЕ КРОШКИ ═══ */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: .8rem; color: var(--text-3); margin-bottom: 26px; }
.crumbs a { color: var(--text-3); text-decoration: none; transition: color .16s; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: .45; }
.crumbs [aria-current="page"] { color: var(--text-2); }

/* ═══ ПОДВАЛ ═══ */
footer { position: relative; z-index: 1; background: #05060a; border-top: 1px solid var(--border); margin-top: var(--step); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 6vw, 68px) var(--gutter) 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1.1fr; gap: 40px 44px; margin-bottom: 44px; }
.footer-brand-desc { font-size: .87rem; color: var(--text-3); margin-top: 16px; max-width: 250px; line-height: 1.72; }
.footer-col h2 { font-size: .7rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--text); margin-bottom: 17px; }
.footer-col a { display: block; font-size: .88rem; color: var(--text-3); text-decoration: none; padding: 6px 0; transition: color .16s; }
.footer-col a:hover { color: var(--accent); }
.footer-divider { border: none; border-top: 1px solid var(--border); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; }
.footer-copy, .footer-tagline { font-size: .79rem; color: var(--text-3); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } .footer-tagline { display: none; } }

/* ═══ МИКРО-АНИМАЦИИ ═══ */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ═══════════════════════════════════════════════════════════
   ГЛАВНАЯ СТРАНИЦА
   ═══════════════════════════════════════════════════════════ */

/* ── HERO ── */
.hero { padding: calc(66px + clamp(46px, 7vw, 88px)) 0 clamp(40px, 5vw, 64px); }
.hero-inner {
  display: grid; grid-template-columns: 1.06fr .94fr;
  gap: clamp(32px, 5vw, 68px); align-items: center;
}
.hero-tag { margin-bottom: 22px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(96deg, var(--accent) 8%, var(--gold) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.1rem); color: var(--text-2); line-height: 1.7; max-width: 46ch; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-assure { margin-top: 16px; justify-content: flex-start; }

/* три показателя — однородные, без «0» в роли достижения */
.hero-stats { display: flex; gap: clamp(24px, 4vw, 46px); flex-wrap: wrap; margin-top: 38px; padding-top: 32px; border-top: 1px solid var(--border); }
.hstat { min-width: 92px; }
.hstat-val { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--text); }
.hstat-val.is-gold { color: var(--gold); }
.hstat-label { font-size: .8rem; color: var(--text-3); margin-top: 5px; line-height: 1.4; }

/* ── МОКАП ТЕЛЕФОНА ── */
.mock { position: relative; justify-self: center; width: min(300px, 88vw); }
.mock-glow { position: absolute; inset: -14% -22% -10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(56,189,248,.22), transparent 72%); filter: blur(28px); pointer-events: none; }
.phone {
  position: relative; border-radius: 40px; padding: 11px;
  background: linear-gradient(160deg, #2b3140, #14171e 42%, #0c0e13);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.09);
}
.phone-screen { border-radius: 30px; background: #0a0c11; overflow: hidden; border: 1px solid rgba(255,255,255,.05); }
.phone-notch { height: 22px; display: flex; align-items: center; justify-content: center; }
.phone-notch i { display: block; width: 62px; height: 5px; border-radius: 100px; background: rgba(255,255,255,.16); }
.scr { padding: 4px 15px 18px; }
.scr-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.scr-app { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.scr-live { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 600; color: var(--green); }
.scr-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.scr-card { background: linear-gradient(160deg, rgba(56,189,248,.13), rgba(255,255,255,.02)); border: 1px solid var(--accent-line); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.scr-card-label { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.scr-card-name { font-size: .92rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.scr-meta { display: flex; gap: 14px; }
.scr-meta div { flex: 1; }
.scr-meta span { display: block; font-size: .6rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .07em; }
.scr-meta b { font-size: .76rem; color: var(--text); font-weight: 700; }

.scr-qr { display: flex; align-items: center; gap: 13px; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.qr-img { width: 58px; height: 58px; flex-shrink: 0; border-radius: 7px; background: #eceef4; padding: 5px; }
.scr-qr-txt span { display: block; font-size: .64rem; color: var(--text-3); margin-bottom: 3px; }
.scr-qr-txt b { font-size: .72rem; color: var(--text-2); font-weight: 600; font-family: ui-monospace, monospace; word-break: break-all; line-height: 1.35; }

.scr-list { display: flex; flex-direction: column; gap: 7px; }
.scr-row { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px; background: rgba(255,255,255,.028); border: 1px solid transparent; }
.scr-row.on { border-color: var(--accent-line); background: rgba(56,189,248,.07); }
.scr-row i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.scr-row.on i { background: var(--green); box-shadow: 0 0 7px var(--green); }
.scr-row b { font-size: .74rem; font-weight: 600; color: var(--text-2); }
.scr-row span { margin-left: auto; font-size: .66rem; color: var(--text-3); }

.mock-caption {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 16px; font-size: .74rem; color: var(--text-3); text-align: center; line-height: 1.45;
}
.mock-caption svg { flex-shrink: 0; opacity: .8; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-cta, .hero-assure { justify-content: flex-start; }
  .mock { order: 2; }
}

/* ── ПОЛОСА ПЛАТФОРМ ── */
.platforms { padding-block: clamp(28px, 4vw, 44px); border-block: 1px solid var(--border); background: rgba(255,255,255,.012); }
.plat-row { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); flex-wrap: wrap; justify-content: center; }
.plat-label { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin-right: 6px; }
.plat {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px;
  border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-1);
  color: var(--text-2); text-decoration: none; font-size: .87rem; font-weight: 600;
  transition: color .18s, border-color .18s, transform .18s;
}
.plat:hover { color: var(--text); border-color: var(--accent-line); transform: translateY(-2px); }
.plat svg { flex-shrink: 0; opacity: .85; }
.plat:hover svg { opacity: 1; color: var(--accent); }

/* ── БЛОК ПРИВАТНОСТИ («почему именно 0») ── */
.privacy-band {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3.5vw, 40px);
  align-items: center;
  background: linear-gradient(150deg, var(--surface-2), var(--surface-1) 65%);
  border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: clamp(26px, 4vw, 40px);
}
.zero-mark { text-align: center; padding-right: clamp(18px, 3vw, 34px); border-right: 1px solid var(--border); }
.zero-num {
  font-size: clamp(3.6rem, 8vw, 5.4rem); font-weight: 800; line-height: .9; letter-spacing: -.05em;
  background: linear-gradient(170deg, var(--gold) 15%, var(--gold-dim) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.zero-cap { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); margin-top: 10px; font-weight: 600; }
.privacy-band h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: 12px; }
.privacy-band p { font-size: .95rem; color: var(--text-2); line-height: 1.75; margin-bottom: 12px; }
.privacy-band p:last-child { margin-bottom: 0; }
.privacy-band a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
@media (max-width: 700px) {
  .privacy-band { grid-template-columns: 1fr; gap: 22px; }
  .zero-mark { padding-right: 0; padding-bottom: 20px; border-right: none; border-bottom: 1px solid var(--border); }
}

/* ── РЕФЕРАЛЬНЫЙ БЛОК ── */
.ref-band {
  display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 4vw, 42px); align-items: center;
  background: linear-gradient(150deg, rgba(217,199,156,.07), var(--surface-1) 62%);
  border: 1px solid var(--gold-line); border-radius: var(--r-xl);
  padding: clamp(26px, 4vw, 40px);
}
.ref-band h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: 12px; }
.ref-band h2 em { font-style: normal; color: var(--gold); }
.ref-band p { font-size: .95rem; color: var(--text-2); line-height: 1.72; margin-bottom: 10px; }
.ref-band p:last-child { margin-bottom: 0; }
.ref-days { text-align: center; flex-shrink: 0; }
.ref-days b { display: block; font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--gold); }
.ref-days span { display: block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-top: 8px; font-weight: 600; }
@media (max-width: 760px) { .ref-band { grid-template-columns: 1fr; } .ref-days { order: -1; text-align: left; } }

/* ═══════════════════════════════════════════════════════════
   МОДАЛЬНОЕ ОКНО РЕГИСТРАЦИИ / ВХОДА
   Имена классов и id сохранены — их использует существующий JS.
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 400;
  background: rgba(4,5,8,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  align-items: center; justify-content: center; padding: 20px; overflow-y: auto;
}
.modal-overlay.open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  position: relative; width: 100%; max-width: 424px; margin: auto;
  background: var(--surface-1); border: 1px solid var(--border-2);
  border-radius: var(--r-xl); padding: 34px 30px 30px;
  box-shadow: 0 40px 90px -24px rgba(0,0,0,.92);
  animation: rise .26s cubic-bezier(.2,.8,.3,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 15px; right: 15px; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-3); cursor: pointer; transition: color .18s, background .18s;
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,.09); }
.modal-logo { font-size: 1.02rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-align: center; margin-bottom: 24px; color: var(--text); }
.modal-logo span { color: var(--text-3); font-weight: 400; }
.modal-tabs { display: flex; gap: 4px; background: rgba(255,255,255,.035); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.modal-tab {
  flex: 1; padding: 10px; border: none; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--text-3);
  font-family: inherit; font-size: .88rem; font-weight: 600; transition: background .18s, color .18s;
}
.modal-tab:hover { color: var(--text-2); }
.modal-tab.active { background: var(--surface-3); color: var(--text); box-shadow: var(--shadow-1); }

.reg-method-toggle { display: flex; gap: 6px; margin-bottom: 20px; }
.method-btn {
  flex: 1; padding: 9px 6px; border-radius: 9px; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  color: var(--text-3); font-family: inherit; font-size: .78rem; font-weight: 600;
  transition: color .18s, border-color .18s, background .18s;
}
.method-btn:hover { color: var(--text-2); }
.method-btn.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: .79rem; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.form-group input {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.035); border: 1px solid var(--border-2);
  color: var(--text); font-family: inherit; font-size: .92rem;
  transition: border-color .18s, background .18s;
}
.form-group input::placeholder { color: var(--text-3); opacity: .75; }
.form-group input:focus { outline: none; border-color: var(--accent); background: rgba(56,189,248,.05); }
.field-error { display: none; font-size: .76rem; color: var(--danger); margin-top: 6px; }
.field-error.show, .field-error:not(:empty) { display: block; }
.form-general-error { display: none; font-size: .82rem; color: var(--danger); background: rgba(252,165,165,.08); border: 1px solid rgba(252,165,165,.22); border-radius: var(--r-sm); padding: 10px 13px; margin-bottom: 16px; }
.form-general-error:not(:empty) { display: block; }
.form-check { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0; }
.form-check input { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.form-check label { font-size: .8rem; color: var(--text-3); line-height: 1.55; }
.form-check a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }

.modal-submit { width: 100%; margin-top: 4px; }
.spinner {
  display: none; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(4,18,27,.3); border-top-color: var(--accent-ink);
  animation: spin .7s linear infinite;
}
.spinner.show { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal-state { display: none; text-align: center; padding: 8px 0 4px; }
.modal-state.show { display: block; }
.state-icon { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.state-icon.ok { background: rgba(110,231,183,.12); border-color: rgba(110,231,183,.3); color: var(--green); }
.state-icon.err { background: rgba(252,165,165,.1); border-color: rgba(252,165,165,.28); color: var(--danger); }
.state-title { font-size: 1.06rem; font-weight: 700; margin-bottom: 9px; }
.state-body { font-size: .88rem; color: var(--text-2); line-height: 1.65; }
.state-body a { color: var(--accent); }
.modal-back-btn { margin-top: 20px; }

@media (max-width: 480px) {
  .modal-box { padding: 30px 20px 24px; border-radius: var(--r-lg); }
  .reg-method-toggle { flex-wrap: wrap; }
  .method-btn { flex: 1 1 30%; }
}

/* ═══════════════════════════════════════════════════════════
   ПРАВОВЫЕ ДОКУМЕНТЫ (privacy.html, terms.html)
   Классы сохранены из существующей разметки — текст не менялся.
   ═══════════════════════════════════════════════════════════ */
.header-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .85rem; font-weight: 500; color: var(--text-2); text-decoration: none;
  padding: 9px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--border-2); background: rgba(255,255,255,.03);
  transition: color .18s, border-color .18s;
}
.header-back:hover { color: var(--text); border-color: var(--accent-line); }
.header-back svg { flex-shrink: 0; }

.doc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px 5px 10px; border-radius: 100px;
  border: 1px solid var(--border-2); background: rgba(255,255,255,.03);
  font-size: .7rem; font-weight: 600; letter-spacing: .11em;
  text-transform: uppercase; color: var(--text-2); margin-bottom: 22px;
}
.doc-eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.doc-title { font-size: clamp(1.9rem, 4.4vw, 2.7rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.14; margin-bottom: 14px; }
.doc-meta { font-size: .85rem; color: var(--text-3); margin-bottom: 44px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }

.toc { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 26px; margin-bottom: 48px; }
.toc-title { font-size: .7rem; letter-spacing: .11em; text-transform: uppercase; color: var(--text-3); font-weight: 700; margin-bottom: 15px; }
.toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 7px; }
.toc li { counter-increment: toc; display: flex; align-items: baseline; gap: 9px; }
.toc li::before { content: counter(toc) '.'; font-size: .75rem; color: var(--text-3); font-weight: 600; min-width: 20px; }
.toc a { font-size: .87rem; color: var(--text-2); text-decoration: none; transition: color .16s; }
.toc a:hover { color: var(--accent); }

.doc-section { margin-bottom: 46px; scroll-margin-top: 90px; }
.section-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; padding-bottom: 13px; border-bottom: 1px solid var(--border); }
.section-num {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: flex; align-items: center; justify-content: center;
  font-size: .74rem; font-weight: 800; color: var(--accent);
}
.section-heading h2 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.012em; }

.doc-p { font-size: .94rem; color: var(--text-2); margin-bottom: 13px; line-height: 1.78; }
.doc-p:last-child { margin-bottom: 0; }
.doc-p a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }

.doc-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 12px 0 14px; padding-left: 3px; }
.doc-list li { display: flex; align-items: baseline; gap: 11px; font-size: .92rem; color: var(--text-2); line-height: 1.7; }
.doc-list li::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; transform: translateY(-1px); }

.callout, .callout-dark, .callout-warn {
  display: flex; gap: 14px; align-items: flex-start;
  border-radius: var(--r-md); padding: 17px 19px; margin: 18px 0;
  background: var(--surface-1); border: 1px solid var(--border); border-left: 3px solid var(--accent);
}
.callout-dark { border-left-color: var(--text-3); }
.callout-warn { border-left-color: #f8b438; }
.callout-icon, .callout-dark-icon, .callout-warn-icon {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.callout-dark-icon { background: rgba(255,255,255,.05); color: var(--text-3); }
.callout-warn-icon { background: rgba(248,180,56,.12); color: #f8b438; }
.callout p, .callout-dark p, .callout-warn p { font-size: .9rem; color: var(--text-2); line-height: 1.7; }
.callout strong, .callout-dark strong, .callout-warn strong { color: var(--text); }

.footer-cta-btn {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-md); font-size: .9rem; font-weight: 700;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; border: none;
  transition: background .18s, box-shadow .22s, transform .16s;
}
.footer-cta-btn:hover { background: var(--accent-hi); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
