/* =========================================================
   Vexina — главная. Источник правды: design/Main.dc.html (1440),
   design/Mobile.dc.html (390). Размеры в rem (1rem = 16px),
   на экранах от 2560px корневой шрифт плавно растёт → всё масштабируется.
   Брейкпоинты: телефон < 600, планшет 600–1023, ноутбук 1024–1439,
   широкий 1440–2559, 4K ≥ 2560.
   ========================================================= */

:root {
  --bg: #07080A;
  --bg-raised: #0C0D10;
  --card: #0B0C0F;
  --modal: #0E0F12;
  --text: #F2F1EE;
  --text-2: #B9B6AE;
  --muted: #8F8C84;
  --gold: #ECD06F;
  --gold-hi: #F6E3A1;
  --gold-14: rgba(236, 208, 111, 0.14);
  --line-06: rgba(242, 241, 238, 0.06);
  --line: rgba(242, 241, 238, 0.08);
  --line-12: rgba(242, 241, 238, 0.12);
  --line-14: rgba(242, 241, 238, 0.14);
  --line-18: rgba(242, 241, 238, 0.18);
  --line-25: rgba(242, 241, 238, 0.25);
  --line-35: rgba(242, 241, 238, 0.35);
  --error: #F0A58F;

  --f-head: 'Unbounded', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: 2rem;
  --sec-pad: 7.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 16px;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (min-width: 2560px) {
  html { font-size: min(28px, calc(16px + (100vw - 2560px) * 0.00625)); }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html.is-locked, html.is-locked body { overflow: hidden; }
.page { overflow-x: clip; }
a { color: var(--gold); }
a:hover { color: var(--gold-hi); }
img, svg, canvas { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
kbd { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
section[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1.25rem; border-radius: 999px; background: var(--gold); color: var(--bg);
  text-decoration: none; font-weight: 500; transition: top .2s;
}
.skip:focus { top: 1rem; color: var(--bg); }

.wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.accent { color: var(--gold); }
.dim { color: var(--muted); }
.only-m { display: none; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.h2 {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

/* ---------- кнопки ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .875rem;
  min-height: 3.5rem; padding: 0 1.875rem;
  background: var(--gold); color: var(--bg);
  border: 0; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: 1rem;
  transition: background-color .2s, transform .2s var(--ease);
}
.btn-primary:hover { background: var(--gold-hi); color: var(--bg); }
.btn-primary:active { transform: scale(.98); }
.btn-primary svg { transition: transform .25s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary--lg { min-height: 3.75rem; padding: 0 2.125rem; font-size: 1.0625rem; }
.btn-block { display: flex; width: 100%; }

.btn-ghost-gold {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.375rem;
  border: 1px solid var(--gold); border-radius: 999px; color: var(--gold);
  text-decoration: none; white-space: nowrap;
  font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.btn-ghost-gold:hover { background: var(--gold); color: var(--bg); }

.icon-btn, .burger {
  width: 2.75rem; height: 2.75rem; flex: 0 0 2.75rem; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line-25); background: transparent;
  transition: border-color .2s;
}
.icon-btn:hover, .burger:hover { border-color: var(--gold); }

.link-line {
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid rgba(242, 241, 238, .3); padding-bottom: 3px;
  transition: border-color .2s, color .2s;
}
.link-line:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- шапка ---------- */
.hdr { border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.hdr-in {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-top: 1.375rem; padding-bottom: 1.375rem;
}
.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark { width: 1.875rem; height: 2.125rem; }
.logo-word { font-family: var(--f-head); font-weight: 400; font-size: 1.0625rem; letter-spacing: .32em; }
.hdr-nav {
  display: flex; align-items: center; gap: 2.25rem;
  font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase;
}
.hdr-nav a { color: var(--text-2); text-decoration: none; padding: .75rem 0; transition: color .2s; }
.hdr-nav a:hover { color: var(--gold); }
.hdr-actions { display: flex; align-items: center; gap: .75rem; }
.hdr-account { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .25rem; color: var(--text-2); text-decoration: none; font-size: .9375rem; transition: color .2s; }
.hdr-account:hover { color: var(--gold); }
.burger { display: none; }

/* ---------- первый экран ---------- */
.hero-in {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2rem;
  padding-top: 4.5rem; padding-bottom: 3.5rem;
}
.hero-copy {
  flex: 1 1 28.75rem; min-width: 0;
  display: flex; flex-direction: column; gap: 1.75rem;
  position: relative; z-index: 2;
}
.hero-tag {
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(236, 208, 111, .18);
}
.hero-title {
  font-family: var(--f-head); font-weight: 300;
  font-size: clamp(2.75rem, 6vw, 5.5rem); line-height: 1.02; letter-spacing: -.025em;
  text-wrap: balance;
}
.hero-lead { max-width: 30em; color: var(--text-2); font-size: 1.1875rem; }
/* от 1024: «по умолчанию» (≈8.45em) всегда в одну строку — заголовок ровно в две строки.
   Самая узкая колонка текста — 460px при ширине ≈1076, дальше растёт до 562px к 1280. */
@media (min-width: 1024px) {
  .hero-title { font-size: clamp(2.75rem, 5.7vw - 9px, 4rem); }
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .625rem 1.75rem;
  padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.hero-visual { flex: 1 1 32.5rem; min-width: 0; }

.globe { position: relative; width: 100%; max-width: 40rem; margin: 0 auto; aspect-ratio: 1 / 1; }
.globe-stage { position: absolute; inset: 0; }
.globe-cv { width: 100%; height: 100%; }
.globe-labels { position: absolute; inset: 0; pointer-events: none; }
.globe-label {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  opacity: 0; transition: opacity .4s;
  will-change: transform;
}
.globe-label.is-on { opacity: 1; }
.globe-label b { font-family: var(--f-mono); font-weight: 400; font-size: .6875rem; letter-spacing: .14em; color: var(--gold); }
.globe-label span { font-size: .75rem; color: var(--text-2); margin-left: 6px; }
/* без JS глобус не рисуется — показываем мягкое свечение вместо пустоты */
html:not(.js) .globe-stage {
  border-radius: 50%; inset: 8%;
  background: radial-gradient(circle at 42% 38%, #16150F, #07080A 70%);
  box-shadow: 0 0 0 1px rgba(236, 208, 111, .28), 0 0 80px rgba(236, 208, 111, .08);
}

.hero-nav {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  padding-bottom: 2.5rem;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.hero-cue { display: flex; align-items: center; gap: .75rem; }
.hero-cue-line { width: 1px; height: 2rem; background: linear-gradient(var(--gold), transparent); }
.hero-sections { display: flex; flex-wrap: wrap; gap: 0 1.375rem; }
.hero-sections a { color: var(--muted); text-decoration: none; padding: .5rem 0; transition: color .2s; }
.hero-sections a:hover, .hero-sections a.is-current { color: var(--gold); }
.hero-keys { display: flex; align-items: center; gap: .5rem; }
.hero-keys kbd {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.625rem; height: 1.625rem; border: 1px solid var(--line-25); border-radius: 6px;
}

/* ---------- полоса-сетка ---------- */
.hexstrip {
  display: grid; grid-template-columns: repeat(var(--cols, 24), minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  min-height: calc(200vw / 24);
}
.hexstrip > div {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: .6875rem;
  border-right: 1px solid rgba(242, 241, 238, .05); border-bottom: 1px solid rgba(242, 241, 238, .05);
  transition: background-color .6s;
}

/* ---------- разделы ---------- */
.sec-in { padding-top: var(--sec-pad); padding-bottom: var(--sec-pad); display: flex; flex-direction: column; gap: 3.5rem; }
.sec--raised { background: var(--bg-raised); border-top: 1px solid var(--line-06); border-bottom: 1px solid var(--line-06); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.sec-titles { display: flex; flex-direction: column; gap: 1.125rem; }
.sec-note { max-width: 26em; color: var(--muted); }
.tariffs-note { max-width: 28em; }

/* 02 принцип */
.sec-in--principle { gap: 4rem; }
.principle-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.5rem 4rem; }
.principle-head .eyebrow { flex: 0 0 auto; }
.principle-head .h2 { flex: 1 1 32.5rem; }
.feats { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.feat {
  flex: 1 1 17.5rem; min-width: 0;
  padding-top: 1.75rem; border-top: 1px solid var(--line-18);
  display: flex; flex-direction: column; gap: .875rem;
}
.feat--lead { border-top-color: var(--gold); }
.feat-icon { color: var(--gold); }
.feat-icon svg { width: 2rem; height: 2rem; }
.feat-title { font-family: var(--f-head); font-weight: 400; font-size: 1.375rem; }
.feat-text { color: var(--text-2); }

/* 03 локации */
.locs {
  display: flex; flex-wrap: wrap; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.loc {
  flex: 1 1 17.5rem; min-width: 0;
  background: var(--bg-raised); padding: 1.75rem;
  display: flex; align-items: center; gap: 1.125rem;
  transition: background-color .3s;
}
.loc:hover { background: #101114; }
.flag {
  width: 2.75rem; height: 2.75rem; flex: 0 0 2.75rem; border-radius: 50%;
  object-fit: cover; background: #16171B;
  box-shadow: 0 0 0 1px var(--line-18), 0 0 0 5px var(--bg-raised), 0 0 0 6px rgba(236, 208, 111, .25);
}
.flag--txt {
  display: flex; align-items: center; justify-content: center; background: #16171B;
  font-family: var(--f-mono); font-size: .75rem; color: var(--gold);
}
.loc-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.loc { container: loc / inline-size; }
.loc-name { font-size: 1.125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; hyphens: none; }
/* длинное название не переносим: в узкой ячейке (4 в ряд на 1190–1280) чуть уменьшаем шрифт */
@container loc (max-width: 19rem) {
  .loc-name--long { font-size: 1rem; }
}
.loc-code { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; color: var(--muted); }
.loc-dot { margin-left: auto; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--gold); }
.loc-dot--soon { background: var(--line-25); }
.loc-soon { margin-left: .5em; color: var(--text-2); letter-spacing: .08em; }

/* 04 тарифы */
.tcards { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: stretch; }
.tcard {
  position: relative; isolation: isolate;
  flex: 1 1 15.625rem; min-width: 0;
  border: 1px solid var(--line-14); background: var(--card); border-radius: 20px;
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column; gap: 1.375rem;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
/* золотой градиент выбранной карточки — отдельным слоем, чтобы плавно проявлялся */
.tcard::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(236, 208, 111, .08), rgba(236, 208, 111, 0) 60%);
  opacity: 0; transition: opacity .2s ease;
}
.tcard--trial { border-style: dashed; border-color: var(--line-25); background-color: transparent; }
.tcard:hover { border-color: rgba(242, 241, 238, .34); }
.tcard.is-selected { border-color: var(--gold); border-style: solid; }
.tcard.is-selected::before { opacity: 1; }
.tcard.is-selected:hover { border-color: var(--gold-hi); }
.tcard:has(.tcard-pick:focus-visible) { outline: 2px solid var(--gold); outline-offset: 4px; }
.tcard-pick { display: flex; flex-direction: column; gap: 1.375rem; flex: 1; outline: none; }
/* subgrid: шапки, цены, списки и кнопки соседних карточек стоят на одной линии */
@supports (grid-template-rows: subgrid) {
  .tcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
  .tcards .tcard { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 1.375rem; }
  .tcards .tcard-pick { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 1.375rem; }
}
/* Раскладка по числу карточек (пробный + тарифы):
   от 1187 px — все в один ряд (до шести); 900–1186 — по три, 4 карточки — 2×2;
   600–899 — по две. Неполный последний ряд — по центру, без «висящей» карточки. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1187px) {
    .tcards:has(> .tcard:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tcards:has(> .tcard:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tcards:has(> .tcard:nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .tcards:has(> .tcard:nth-child(6):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  }
  @media (min-width: 900px) and (max-width: 1186px) {
    .tcards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .tcards:has(> .tcard:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tcards > .tcard { grid-column: span 2; }
    .tcards > .tcard:nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }
    .tcards > .tcard:last-child:nth-child(3n+1) { grid-column: 3 / span 2; }
  }
  @media (min-width: 600px) and (max-width: 899px) {
    .tcards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tcards > .tcard { grid-column: span 2; }
    .tcards > .tcard:last-child:nth-child(odd) { grid-column: 2 / span 2; }
  }
}
.tcard-head { display: flex; flex-direction: column; align-items: flex-start; gap: .625rem; }
.tcard-name { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.tcard-term-m, .tcard-pm-m { display: none; }
/* строка бейджа есть всегда — у карточек без бейджа она пустая той же высоты */
.tcard-badge { display: flex; min-height: 1.375rem; }
.badge {
  font-family: var(--f-mono); font-size: .6875rem; line-height: 1; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--gold-14); color: var(--gold);
  white-space: nowrap; align-self: flex-start;
}
.tcard-price { display: flex; flex-direction: column; gap: .375rem; }
/* строка старой цены — всегда над ценой, пустая резервирует место */
.tcard-old { min-height: 1.5rem; color: var(--muted); font-size: 1rem; line-height: 1.5rem; white-space: nowrap; }
.tcard-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: .625rem; }
.tcard-amount { font-family: var(--f-head); font-weight: 300; font-size: 2.875rem; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.tcard-term { color: var(--muted); font-size: .9375rem; }
.tcard-feats {
  flex: 1; display: flex; flex-direction: column; gap: .5rem;
  font-size: .9375rem; color: var(--text-2);
  padding-top: 1.125rem; border-top: 1px solid var(--line);
}
.tcard-dev-m { display: none; }
.tcard-pm { font-family: var(--f-mono); font-size: .8125rem; color: var(--gold); letter-spacing: .04em; }
.tcard-btn {
  display: flex; align-items: center; justify-content: center; min-height: 3.25rem;
  border-radius: 999px; border: 1px solid var(--line-35); background: transparent; color: var(--text);
  font-weight: 500; font-size: 1rem;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.tcard-btn:hover { border-color: var(--text); background: rgba(242, 241, 238, .05); }
.tcard.is-selected .tcard-btn { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.tcard.is-selected .tcard-btn:hover { background: var(--gold-hi); border-color: var(--gold-hi); }

/* 05 подключение */
.steps { display: flex; flex-wrap: wrap; gap: 2.5rem; counter-reset: none; }
.step { flex: 1 1 17.5rem; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.step-body { display: flex; flex-direction: column; gap: 1rem; }
.step-n { font-family: var(--f-head); font-weight: 300; font-size: 4rem; line-height: 1; color: var(--gold); }
.step-title { font-family: var(--f-head); font-weight: 400; font-size: 1.25rem; }
.step-text { color: var(--text-2); }

/* 06 вопросы */
.faq-in {
  padding-top: var(--sec-pad); padding-bottom: var(--sec-pad);
  display: flex; flex-wrap: wrap; gap: 3rem 5rem;
}
.faq-side { flex: 1 1 18.75rem; display: flex; flex-direction: column; gap: 1.125rem; }
.faq-list { flex: 2 1 35rem; min-width: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line-12); }
.qa { border-bottom: 1px solid var(--line-12); }
.qa summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: 1.75rem 0; font-size: 1.25rem; cursor: pointer; list-style: none;
  transition: color .2s, padding .35s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--gold-hi); }
.qa-sign { font-family: var(--f-mono); color: var(--muted); flex: 0 0 auto; }
.qa-sign::before { content: '+'; }
.qa[open] .qa-sign { color: var(--gold); }
.qa[open] .qa-sign::before { content: '−'; }
.qa[open] > summary { padding-bottom: .875rem; }
.qa-a { padding-bottom: 1.75rem; color: var(--text-2); max-width: 40em; display: flex; flex-direction: column; gap: .75rem; }
/* плавное раскрытие там, где браузер умеет (Chrome 131+) */
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .qa::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
  .qa[open]::details-content { block-size: auto; }
}

/* призыв */
.cta { border-top: 1px solid var(--line); }
.cta-in {
  padding-top: 6.875rem; padding-bottom: 6.875rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2.5rem;
}
.cta-title {
  flex: 1 1 35rem; font-family: var(--f-head); font-weight: 300;
  font-size: clamp(2.125rem, 4.4vw, 4rem); line-height: 1.06; letter-spacing: -.025em; text-wrap: balance;
}

/* подвал */
.ftr { border-top: 1px solid var(--line); }
.ftr-in {
  padding-top: 3rem; padding-bottom: calc(3.5rem + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem;
}
.ftr-about { display: flex; flex-direction: column; gap: .875rem; max-width: 34em; }
.ftr-word { font-family: var(--f-head); font-size: .9375rem; letter-spacing: .32em; }
.ftr-note, .ftr-legal { color: var(--muted); font-size: .875rem; }
.ftr-links { display: grid; grid-template-columns: repeat(2, max-content); align-content: start; gap: .75rem 2.25rem; font-size: .9375rem; }
.ftr-links a { color: var(--text-2); text-decoration: none; transition: color .2s; }
.ftr-links a:hover { color: var(--text); }
.ftr-links .ftr-support { color: var(--gold); }
.ftr-links .ftr-support:hover { color: var(--gold-hi); }

/* ---------- меню (телефон/планшет) ---------- */
.menu {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--text);
}
.menu::backdrop { background: var(--bg); }
.menu[open] { animation: menu-in .35s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }
.menu-in {
  min-height: 100%; display: flex; flex-direction: column; gap: 2.5rem;
  padding: calc(1.125rem + env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
}
.menu-top { display: flex; align-items: center; justify-content: space-between; }
.menu-top .logo-mark { width: 1.5rem; height: 1.75rem; }
.menu-top .logo-word { font-size: .875rem; letter-spacing: .3em; }
.menu-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.menu-nav a {
  display: flex; align-items: baseline; gap: 1rem; padding: 1.125rem 0; min-height: 3.5rem;
  border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none;
  font-family: var(--f-head); font-weight: 300; font-size: 1.75rem; letter-spacing: -.01em;
}
.menu-nav a .mn { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; color: var(--gold); }
.menu-nav a:hover { color: var(--gold); }
.menu-bottom { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.menu-support { padding: .75rem; text-decoration: none; }

/* ---------- окно покупки / пробного периода ---------- */
.modal {
  width: calc(100% - 2rem); max-width: 31.25rem; max-height: calc(100dvh - 2rem);
  padding: 0; border: 1px solid var(--line-12); border-radius: 24px;
  background: var(--modal); color: var(--text);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5);
  overflow: auto; overscroll-behavior: contain;
}
.modal--ok { border-color: rgba(236, 208, 111, .4); }
.modal::backdrop {
  background: radial-gradient(circle at 78% 30%, rgba(236, 208, 111, .10), rgba(7, 8, 10, 0) 45%), rgba(7, 8, 10, .78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal[open] { animation: modal-in .32s var(--ease); }
.modal[open]::backdrop { animation: fade-in .32s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
.modal-body { padding: 2.25rem; display: flex; flex-direction: column; gap: 1.5rem; }
.m-form { display: contents; }
.m-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.m-titles { display: flex; flex-direction: column; gap: .5rem; }
.m-titles .eyebrow { letter-spacing: .16em; }
.m-title { font-family: var(--f-head); font-weight: 300; font-size: 1.75rem; line-height: 1.15; text-wrap: balance; }
.m-close { border-color: rgba(242, 241, 238, .2); }
.m-sum {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.125rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--text-2); font-size: 1rem;
}
.m-price { font-family: var(--f-head); font-weight: 300; font-size: 1.875rem; color: var(--text); white-space: nowrap; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label { font-size: .875rem; color: var(--text-2); }
.input {
  width: 100%; min-height: 3.25rem; padding: 0 1.125rem;
  border-radius: 14px; border: 1px solid var(--line-18); background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 1rem;
  transition: border-color .2s;
}
.input::placeholder { color: #5D5B55; }
.input:focus { outline: none; border-color: var(--gold); }
.input[aria-invalid="true"] { border-color: var(--error); }
.hint { font-size: .8125rem; color: var(--muted); }
.agrees { display: flex; flex-direction: column; gap: .75rem; }
.agree { display: flex; gap: .75rem; align-items: flex-start; font-size: .875rem; color: var(--text-2); cursor: pointer; }
.agree input { width: 20px; height: 20px; flex: 0 0 20px; margin: 1px 0 0; accent-color: var(--gold); cursor: pointer; }
.form-error { font-size: .875rem; color: var(--error); }
.form-error[hidden] { display: none; }
.btn-submit { width: 100%; font-size: 1rem; }
.btn-submit[disabled] { opacity: .7; cursor: progress; }
.btn-submit.is-locked[disabled], .btn-primary.is-locked[disabled] { opacity: .4; cursor: not-allowed; }
.btn-primary.is-locked[disabled]:hover { background: var(--gold); }
.consent-hint { margin: -.25rem 0 0; font-size: .8125rem; color: var(--muted); text-align: center; }
.consent-hint[hidden] { display: none; }
.acc-actions-col { flex-direction: column; align-items: flex-start; }
.acc-actions-col .consent-hint { text-align: left; margin: 0; }
.acc-pay .consent-hint { text-align: left; }
.btn-submit .spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(7, 8, 10, .3); border-top-color: var(--bg);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.m-pay {
  display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 1.125rem;
  font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

.m-note { font-size: .8125rem; color: var(--muted); text-align: center; text-wrap: balance; }
/* окно покупки, когда посетитель вошёл в кабинет */
.m-acc { padding: .875rem 1rem; border-radius: 14px; border: 1px solid rgba(236, 208, 111, .3); background: rgba(236, 208, 111, .04); font-size: .9375rem; color: var(--text-2); display: flex; flex-direction: column; gap: .375rem; }
.m-acc b { color: var(--text); font-weight: 500; }
.m-acc-other { font-size: .8125rem; }
.m-ref { padding: .75rem 1rem; border-radius: 14px; border: 1px solid rgba(236, 208, 111, .3); background: rgba(236, 208, 111, .04); font-size: .9375rem; color: var(--gold); }
.m-points { display: flex; flex-direction: column; gap: .375rem; padding: .875rem 1rem; border-radius: 14px; border: 1px solid var(--line-2, rgba(242, 241, 238, .12)); }
.m-points .hint:empty { display: none; }
.m-promo .copy-row .input { color: var(--text); text-transform: uppercase; }
.m-promo .copy-row .input::placeholder { text-transform: none; color: var(--muted); }
.m-promo-ok { color: var(--text-2); }
.m-promo-ok b { color: var(--gold); font-family: var(--f-mono); font-weight: 400; }
.m-promo-ok .link-btn { min-height: 0; margin-left: .25rem; font-size: 1rem; text-decoration: none; }
.m-promo-err { font-size: .8125rem; color: var(--error); }
.m-promo-ok[hidden], .m-promo-err[hidden], .m-total[hidden] { display: none; }
.m-total { color: var(--text); font-size: .9375rem; }
.m-acc-other a { color: var(--muted); }
.m-acc-other a:hover { color: var(--gold); }
.m-acc-sent { color: var(--text); }
.link-btn { align-self: flex-start; min-height: 2.75rem; padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; font-size: .875rem; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--gold); }
.link-btn[disabled] { opacity: .6; cursor: progress; }
.m-note a { color: var(--text-2); }
.m-note a:hover { color: var(--gold); }
.ok-head { display: flex; align-items: center; gap: 1rem; }
.ok-icon {
  width: 3.25rem; height: 3.25rem; flex: 0 0 3.25rem; border-radius: 50%;
  background: var(--gold-14); display: flex; align-items: center; justify-content: center;
}
.ok-head .m-titles { gap: .25rem; }
.ok-head .m-title { font-size: 1.625rem; }
.ok-text { color: var(--text-2); }
.copy-row { display: flex; gap: .625rem; }
.copy-row .input { flex: 1; min-width: 0; padding: 0 1rem; color: var(--gold); font-family: var(--f-mono); font-size: .875rem; border-color: rgba(242, 241, 238, .16); }
.btn-copy {
  min-height: 3.25rem; padding: 0 1.25rem; border-radius: 14px;
  border: 1px solid var(--gold); background: transparent; color: var(--gold); font-size: .9375rem; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.btn-copy:hover, .btn-copy.is-done { background: var(--gold); color: var(--bg); }
.apps { display: flex; flex-direction: column; gap: .625rem; padding-top: 1.125rem; border-top: 1px solid var(--line); }
.apps-title { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.apps-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.apps-list span { padding: .5rem .875rem; border-radius: 999px; border: 1px solid rgba(242, 241, 238, .16); font-size: .875rem; }
.back-link { align-self: flex-start; padding: .5rem 0; border: 0; background: none; color: var(--text-2); font-size: .875rem; }
.back-link:hover { color: var(--text); }

/* ---------- страница 404 ---------- */
.nf { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 1.75rem; padding-top: 4rem; padding-bottom: 4rem; }
.nf-code { font-family: var(--f-head); font-weight: 300; font-size: clamp(5rem, 16vw, 12rem); line-height: .9; letter-spacing: -.04em; color: var(--gold); }
.nf p { color: var(--text-2); max-width: 28em; }

/* ---------- переход «сетка» ---------- */
.gridfx { position: fixed; inset: 0; z-index: 90; width: 100%; height: 100%; pointer-events: none; display: none; }
.gridfx.is-on { display: block; pointer-events: auto; }

/* =========================================================
   Адаптивность
   ========================================================= */

/* узкий ноутбук и планшет: меню прячется в бургер */
@media (max-width: 1023px) {
  :root { --sec-pad: 6rem; }
  .hdr-nav { display: none; }
  .burger { display: flex; }
}

/* планшет 600–1023 */
@media (min-width: 600px) and (max-width: 1023px) {
  .hero-in { padding-top: 3.5rem; }
  .hero-visual { margin-top: -1rem; }
  .globe { max-width: 34rem; }
}

/* телефон < 600 — design/Mobile.dc.html */
@media (max-width: 599px) {
  :root { --gutter: 1.25rem; --sec-pad: 3.5rem; }
  body { font-size: 1rem; }
  .only-wide { display: none; }
  .only-m { display: inline; }

  .hdr-in { padding-top: 1.125rem; padding-bottom: 1.125rem; }
  .logo { gap: .625rem; }
  .logo-mark { width: 1.5rem; height: 1.75rem; }
  .logo-word { font-size: .875rem; letter-spacing: .3em; }
  .hdr-actions .btn-ghost-gold { display: none; }

  .hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.375rem; padding-top: 1.75rem; padding-bottom: 2.5rem; }
  .hero-copy { flex: none; gap: 1.375rem; }
  .hero-visual { order: -1; flex: none; }
  .globe { max-width: 21.875rem; aspect-ratio: 350 / 300; }
  .globe-stage { inset: auto; left: 0; top: -6.67%; width: 100%; aspect-ratio: 1 / 1; }
  .globe-labels { display: none; }
  .hero-tag { font-size: .6875rem; }
  .hero-title { font-size: 2.5rem; line-height: 1.05; }
  .hero-lead { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 1.375rem; }
  .hero-actions .btn-primary { gap: .75rem; }
  .hero-actions .btn-primary svg { display: none; }
  .hero-actions .link-line {
    display: flex; align-items: center; justify-content: center; min-height: 3.25rem;
    border: 1px solid rgba(242, 241, 238, .3); border-radius: 999px; padding: 0 1.25rem;
  }
  .hero-meta { gap: .5rem 1.125rem; padding-top: 0; border-top: 0; font-size: .6875rem; }
  .hero-nav { display: none; }

  .hexstrip { min-height: calc(200vw / 13); }
  .hexstrip > div { font-size: .625rem; }

  .eyebrow { font-size: .6875rem; }
  .h2 { font-size: 1.75rem; line-height: 1.15; }
  .br-wide { display: none; }
  .sec-in { gap: 1.75rem; }

  .sec-in--principle { gap: 1.75rem; }
  .principle-head { flex-direction: column; align-items: stretch; gap: 1.75rem; }
  .principle-head .h2 { flex: none; }
  .feats { flex-direction: column; gap: 1.375rem; }
  .feat { flex: none; padding-top: 1.125rem; gap: .375rem; }
  .feat-icon { display: none; }
  .feat-title { font-size: 1.125rem; }
  .feat-text { font-size: .9375rem; }

  #locations .sec-in { gap: 1.5rem; }
  #locations .sec-head { display: contents; }
  .loc-note { order: 3; font-size: .875rem; }
  .locs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loc { padding: 1rem .875rem; gap: .75rem; }
  .flag { width: 2rem; height: 2rem; flex-basis: 2rem; box-shadow: 0 0 0 1px var(--line-18); }
  .loc-name { font-size: .875rem; }
  /* длинные названия («Великобритания») не переносим — уменьшаем шрифт под ширину ячейки */
  .loc-name--long { font-size: clamp(.625rem, 6.3vw - 12px, .875rem); }
  .loc-code { font-size: .6875rem; letter-spacing: .12em; }
  .loc-dot { display: none; }

  #tariffs .sec-in { gap: 1.125rem; }
  #tariffs .h2 { margin-bottom: .5rem; }
  .tariffs-note { display: none; }
  .tcards, .tcards .tcard, .tcards .tcard-pick { display: flex; }
  .tcards { flex-direction: column; gap: 1.125rem; }
  .tcard { flex: none; flex-direction: column; border-radius: 18px; padding: 1.25rem; gap: 1rem; }
  .tcard::before { background: linear-gradient(180deg, rgba(236, 208, 111, .08), rgba(236, 208, 111, 0)); }
  .tcard-pick { flex-direction: column; gap: 1rem; }
  .tcard-head { gap: .5rem; }
  .tcard-badge { min-height: 0; }
  .tcard-badge:empty { display: none; }
  .tcard-name { font-size: .6875rem; }
  .tcard-term-m, .tcard-pm-m { display: inline; }
  .badge { font-size: .625rem; letter-spacing: .06em; padding: 4px 8px; }
  .tcard-price { gap: .25rem; }
  .tcard-old { min-height: 0; font-size: .875rem; line-height: 1.3; }
  .tcard-old:empty { display: none; }
  .tcard-amount { font-size: 2.125rem; }
  .tcard-pm-m { font-family: var(--f-mono); font-size: .75rem; color: var(--gold); white-space: nowrap; }
  .tcard-term, .tcard-feats { display: none; }
  .tcard-dev-m { display: block; margin-top: .25rem; font-size: .875rem; color: var(--text-2); }
  .tcard-btn { min-height: 3rem; }

  #how .sec-in { gap: 1.5rem; }
  .steps { flex-direction: column; gap: 1.5rem; }
  .step { flex: none; flex-direction: row; gap: 1rem; }
  .step-n { font-size: 2.125rem; flex: 0 0 3.75rem; }
  .step-body { gap: 0; }
  .step-title { font-size: 1rem; }
  .step-text { font-size: .875rem; }

  .faq-in { flex-direction: column; gap: 1.75rem; }
  .faq-side { flex: none; }
  .faq-list { flex: none; }
  .qa summary { padding: 1.125rem 0; font-size: 1rem; gap: .75rem; }
  .qa[open] > summary { padding-bottom: .5rem; }
  .qa-a { padding-bottom: 1.125rem; font-size: .875rem; }

  .cta-in { flex-direction: column; align-items: stretch; gap: 1.75rem; padding-top: var(--sec-pad); padding-bottom: var(--sec-pad); }
  .cta-title { flex: none; font-size: 2rem; line-height: 1.1; }
  .cta .btn-primary { min-height: 3.5rem; font-size: 1rem; }

  .ftr-in { flex-direction: column; gap: .75rem; padding-top: 2rem; padding-bottom: calc(2.5rem + env(safe-area-inset-bottom)); font-size: .875rem; }
  .ftr-about { display: contents; }
  .ftr-word { order: 1; font-size: 1rem; letter-spacing: .3em; }
  .ftr-note { display: none; }
  .ftr-links { order: 2; grid-template-columns: minmax(0, 1fr); gap: .75rem; font-size: .875rem; }
  .ftr-links a { padding: .25rem 0; }
  .ftr-legal { order: 3; }
  .ftr-contacts { order: 4; }

  /* окно — шторка снизу */
  .modal {
    width: 100%; max-width: none; margin: auto 0 0; max-height: 92dvh;
    border-radius: 24px 24px 0 0; border-bottom: 0;
  }
  .modal[open] { animation: sheet-in .35s var(--ease); }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
  .modal-body {
    padding: 1.75rem max(1.25rem, env(safe-area-inset-right)) calc(1.75rem + env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    gap: 1.25rem;
  }
  .m-title { font-size: 1.5rem; }
  .m-sum { font-size: .9375rem; }
  .m-price { font-size: 1.625rem; }
  .ok-head .m-title { font-size: 1.375rem; }
  .copy-row { flex-direction: column; }
  .m-promo .copy-row { flex-direction: row; } /* короткий код — поле и «Применить» в одну строку */
  .m-promo .btn-copy { padding: 0 1.125rem; }
}

/* телефон в альбомной ориентации: глобус сбоку, не съедает экран */
@media (max-width: 1023px) and (orientation: landscape) and (max-height: 500px) {
  .hero-in { flex-direction: row; flex-wrap: nowrap; align-items: center; }
  .hero-visual { order: 0; flex: 0 0 40%; }
  .globe { max-width: 20rem; aspect-ratio: 1 / 1; }
  .globe-stage { inset: 0; top: 0; aspect-ratio: auto; }
  .modal { max-height: calc(100dvh - 1rem); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- страница заказа /success ---------- */
.sx {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  padding-top: max(3rem, env(safe-area-inset-top)); padding-bottom: max(3rem, env(safe-area-inset-bottom));
}
.sx-logo { text-decoration: none; }
.sx-card {
  width: 100%; max-width: 31.25rem; padding: 2.25rem; display: flex; flex-direction: column; gap: 1.5rem;
  border: 1px solid var(--line-12); border-radius: 24px; background: var(--modal);
}
.sx-card.is-ok { border-color: rgba(236, 208, 111, .4); }
/* QR-код ссылки на подписку (страница заказа, пробный период): на компьютере — сразу, на телефоне — по кнопке */
.qr-box { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.qr-panel { display: flex; align-items: center; gap: 1.25rem; }
.qr-canvas { width: 9.5rem; height: 9.5rem; border-radius: 12px; image-rendering: pixelated; flex: 0 0 auto; }
.qr-side { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.qr-note { margin: 0; font-size: .875rem; color: var(--text-2); }
.qr-toggle { display: none; }
@media (max-width: 600px) {
  .qr-toggle { display: inline-flex; }
  .qr-box:not(.is-open) .qr-panel { display: none; }
  .qr-panel { flex-direction: column; align-items: flex-start; }
  .qr-canvas { width: 12.5rem; height: 12.5rem; }
}
.sx-wait { display: flex; align-items: center; gap: .75rem; color: var(--text-2); font-size: .9375rem; }
.sx-wait .spin {
  width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%;
  border: 2px solid var(--line-18); border-top-color: var(--gold);
  animation: spin .8s linear infinite;
}
.sx-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.sx-actions .btn-primary, .sx-actions .btn-ghost-gold { min-height: 3rem; }
.sx-test {
  align-self: flex-start; padding: .25rem .75rem; border-radius: 999px; border: 1px solid var(--line-25);
  font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2);
}
.sx-id { font-family: var(--f-mono); color: var(--text); }
@media (max-width: 599px) {
  .sx { gap: 1.5rem; justify-content: flex-start; padding-top: max(2rem, env(safe-area-inset-top)); }
  .sx-card { padding: 1.5rem 1.25rem; border-radius: 20px; }
  .sx-actions { flex-direction: column; align-items: stretch; }
  .sx-actions .btn-primary, .sx-actions .btn-ghost-gold { justify-content: center; min-height: 3.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-wait .spin { animation: none; border-top-color: var(--line-18); }
}

/* ---------- страницы документов (/offer, /privacy и др.) ---------- */
.doc-hdr { position: static; }
.doc-back { color: var(--text-2); text-decoration: none; font-size: .9375rem; padding: .75rem 0; }
.doc-back:hover { color: var(--text); }
.doc { max-width: 52rem; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); display: flex; flex-direction: column; gap: 1.25rem; }
.doc-title { font-family: var(--f-head); font-weight: 300; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.doc-body { color: var(--text-2); font-size: 1rem; line-height: 1.7; }
.doc-body h2 { margin: 2.25rem 0 .75rem; color: var(--text); font-family: var(--f-head); font-weight: 400; font-size: 1.1875rem; line-height: 1.35; scroll-margin-top: 1.5rem; }
.doc-body h3 { margin: 1.5rem 0 .5rem; color: var(--text); font-size: 1.0625rem; font-weight: 500; }
.doc-body p { margin: 0 0 .625rem; }
.doc-body ul { margin: 0 0 .875rem; padding-left: 1.25rem; list-style: disc; }
.doc-body li { margin: .25rem 0; }
.doc-body li::marker { color: var(--gold); }
.doc-body strong { color: var(--text); font-weight: 500; }
.doc-body a { color: var(--gold); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc-toc { margin: 0 0 1.5rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line-12); border-radius: 18px; background: var(--card); }
.doc-toc ol { margin: 0; padding: 0; list-style: none; columns: 2 16rem; column-gap: 2rem; font-size: .9375rem; }
.doc-toc li { margin: .25rem 0; break-inside: avoid; }
.doc-toc a { color: var(--text-2); text-decoration: none; }
.doc-toc a:hover { color: var(--gold); }
.doc-date { color: var(--muted); font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .04em; }
.ftr-links a[aria-current="page"] { color: var(--text); }
@media (max-width: 599px) {
  .doc-back { font-size: .875rem; }
  .doc-body { font-size: .9375rem; }
  .doc-toc { padding: 1rem 1.125rem; border-radius: 16px; }
}
@media print {
  .doc-hdr, .ftr, .doc-toc { display: none; }
  body, .doc-body, .doc-body h2, .doc-body h3, .doc-title, .doc-body strong { background: #fff; color: #000; }
  .doc-body a { color: #000; }
}
button.btn-ghost-gold { background: transparent; cursor: pointer; }
button.btn-ghost-gold[disabled] { opacity: .5; cursor: default; }
.sx-resend[hidden] { display: none; }

/* ---------- личный кабинет /account (этап 7) ---------- */
.acc { max-width: 60rem; padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); display: flex; flex-direction: column; gap: 1.25rem; }
.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.acc-card { padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; border: 1px solid var(--line-12); border-radius: 22px; background: var(--card); }
.acc-narrow { max-width: 30rem; }
.acc-h2 { font-family: var(--f-head); font-weight: 400; font-size: 1.1875rem; line-height: 1.3; color: var(--text); }
.acc-note { color: var(--text-2); font-size: .9375rem; }
.acc-muted { color: var(--muted); font-size: .875rem; }
.acc-test-note { color: var(--gold); margin: 0 0 1rem; }
.acc-foot { color: var(--muted); font-size: .875rem; text-align: center; text-wrap: balance; }
.acc-who { margin-top: -.5rem; }
.acc-gold { color: var(--gold); }
.acc-form { display: flex; flex-direction: column; gap: .75rem; }
.acc-label { font-size: .875rem; color: var(--text-2); }
.acc-msg { padding: .875rem 1.125rem; border-radius: 14px; border: 1px solid var(--line-14); background: var(--card); color: var(--text-2); font-size: .9375rem; }
.acc-msg.is-ok { border-color: rgba(236, 208, 111, .4); color: var(--text); }
.acc-msg.is-err { border-color: rgba(240, 165, 143, .45); color: var(--error); }
.acc-tg { min-height: 2.75rem; display: flex; align-items: center; }
.acc-tg iframe { max-width: 100%; }
.acc-sub-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.acc-tag { margin-left: .375rem; padding: .125rem .5rem; border-radius: 999px; border: 1px solid var(--line-25); font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); vertical-align: middle; }
.acc-chip { padding: .3125rem .75rem; border-radius: 999px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line-25); color: var(--text-2); }
.acc-chip.is-on { border-color: rgba(236, 208, 111, .5); color: var(--gold); }
.acc-chip.is-warn, .acc-chip.is-off { color: var(--muted); }
.acc-big { font-family: var(--f-head); font-weight: 300; font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); line-height: 1.3; }
.acc-actions { display: flex; flex-wrap: wrap; gap: .625rem; }
.acc-actions .btn-ghost-gold { min-height: 2.75rem; }
.acc-qr { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.acc-qr canvas { width: 12.5rem; height: 12.5rem; border-radius: 12px; image-rendering: pixelated; }
/* партнёрская программа (этап 15) */
.acc-card[hidden] { display: none; }
.ftr-links a[hidden] { display: none; }
/* страница «Партнёрская программа» */
.pp-lead { margin: 0; max-width: 40rem; font-size: 1.125rem; color: var(--text-2); }
.pp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.pp-step { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; border: 1px solid var(--line-12); border-radius: 18px; background: var(--card); color: var(--text-2); font-size: .9375rem; }
.pp-step b { color: var(--text); font-weight: 500; font-size: 1rem; }
.pp-n { font-family: var(--f-mono); color: var(--gold); font-size: .8125rem; letter-spacing: .1em; }
.pp-terms { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: .625rem 1.25rem; margin: 0; }
.pp-terms dt { color: var(--muted); }
.pp-terms dd { margin: 0; color: var(--text); }
@media (max-width: 1024px) { .pp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pp-steps { grid-template-columns: 1fr; } .pp-terms { grid-template-columns: 1fr; gap: .25rem; } .pp-terms dd { margin-bottom: .5rem; } }
.acc-partner .copy-row { margin-bottom: .25rem; }
.acc-ref-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .625rem; }
.acc-ref-stat { display: flex; flex-direction: column; gap: .25rem; padding: .875rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(242, 241, 238, .02); }
.acc-ref-stat b { font-family: var(--f-mono); font-weight: 400; font-size: 1.25rem; color: var(--text); }
.acc-ref-more { border-top: 1px solid var(--line); padding-top: .75rem; }
.acc-ref-more summary { cursor: pointer; color: var(--text-2); min-height: 44px; display: flex; align-items: center; }
.acc-ref-list { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .9375rem; color: var(--text-2); }
.acc-ref-amt { font-family: var(--f-mono); font-weight: 400; color: var(--gold); }
.acc-ref-amt.is-neg { color: var(--text-2); }
@media (max-width: 600px) { .acc-ref-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acc-kv { display: grid; grid-template-columns: max-content 1fr; gap: .375rem 1.5rem; margin: 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9375rem; }
.acc-kv dt { color: var(--muted); }
.acc-kv dd { margin: 0; color: var(--text); }
.acc-devlist { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.acc-dev { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .875rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
#acc-tariffs { scroll-margin-top: 5.5rem; }
/* шаги блока «Объединить подписки»: атрибут hidden сильнее display у .acc-actions / .acc-form */
.acc-merge [hidden] { display: none !important; }
.acc-tariffs { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .75rem; }
.acc-tariff { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; padding: 1rem 1.125rem; border-radius: 16px; border: 1px solid var(--line-14); background: transparent; color: var(--text); text-align: left; min-height: 2.75rem; transition: border-color .2s; }
.acc-tariff:hover, .acc-tariff.is-on { border-color: var(--gold); }
.acc-tariff-name { font-weight: 500; }
.acc-tariff-price { font-family: var(--f-head); font-weight: 300; font-size: 1.25rem; margin-top: .25rem; }
.acc-pay { padding-top: .5rem; border-top: 1px solid var(--line); }
.acc-promo-input { text-transform: uppercase; font-family: var(--f-mono); letter-spacing: .04em; }
.acc-promo-input::placeholder { text-transform: none; font-family: inherit; letter-spacing: 0; }
.acc-orders { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.acc-order { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 6rem 8rem 4rem; gap: .75rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.acc-order a { color: var(--gold); }
@media (max-width: 767px) {
  .acc-grid { grid-template-columns: minmax(0, 1fr); }
  .acc-card { padding: 1.25rem; border-radius: 18px; }
  .acc-order { grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .75rem; }
  .acc-dev { flex-direction: column; align-items: flex-start; gap: .625rem; }
  .acc-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* две кнопки в ряд на телефоне: длинная подпись («Как подключиться») переносится, а не упирается в рамку */
  .acc-actions .btn-ghost-gold { justify-content: center; padding: .5rem .75rem; white-space: normal; text-align: center; line-height: 1.2; }
  .acc-actions > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .acc-actions.is-col { grid-template-columns: minmax(0, 1fr); }
  .acc-tariffs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; }
  .acc-tariff { padding: .875rem; }
  .acc-kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .acc-kv dd { margin-bottom: .625rem; }
}
button.hdr-account { background: none; border: 0; cursor: pointer; font: inherit; font-size: .9375rem; }
button.hdr-account[hidden] { display: none; }
/* чат поддержки в кабинете (этап 13) */
.acc-support { scroll-margin-top: 5.5rem; }
.sup-list { display: flex; flex-direction: column; gap: .75rem; max-height: 28rem; overflow-y: auto; padding: .25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sup-msg { max-width: 85%; padding: .75rem 1rem; border-radius: 14px; border: 1px solid var(--line-14); background: var(--bg); }
.sup-msg.is-client { align-self: flex-end; border-color: rgba(236, 208, 111, .35); }
.sup-msg.is-admin { align-self: flex-start; }
.sup-msg.is-auto { align-self: flex-start; opacity: .8; }
.sup-meta { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .06em; color: var(--muted); margin-bottom: .375rem; }
.sup-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9375rem; color: var(--text); }
.sup-files { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.sup-files img { width: 6rem; height: 6rem; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-14); display: block; }
.sup-input { min-height: 6rem; padding: .875rem 1.125rem; resize: vertical; line-height: 1.5; }
.sup-attach { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.sup-pick { cursor: pointer; min-height: 2.75rem; }
@media (max-width: 767px) {
  .sup-msg { max-width: 100%; }
}

/* ---------- «Как подключиться» (этап 12а) ---------- */
.cn { display: flex; flex-direction: column; gap: 1.25rem; }
.cn-lead { margin-top: -.5rem; }
.cn-pick { display: flex; flex-direction: column; gap: .5rem; }
.cn-label { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cn-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.cn-chip { min-height: 2.75rem; padding: 0 1.125rem; border-radius: 999px; border: 1px solid var(--line-2, rgba(242, 241, 238, .14)); background: none; color: var(--text-2); font: inherit; font-size: .9375rem; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; }
.cn-chip:hover { color: var(--text); border-color: rgba(242, 241, 238, .3); }
.cn-chip[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); background: rgba(236, 208, 111, .06); }
.cn-rec { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); opacity: .85; }
.cn-card { gap: 1.25rem; }
.cn-video { display: flex; justify-content: center; }
.cn-video video { width: 100%; max-width: 46rem; max-height: 70vh; border-radius: 18px; background: #000; border: 1px solid var(--line); }
.cn-soon { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .06em; color: var(--muted); }
.cn-steps { list-style: none; counter-reset: cn; display: flex; flex-direction: column; gap: 1.5rem; margin: 0; padding: 0; }
.cn-steps > li { counter-increment: cn; position: relative; padding-left: 3rem; display: flex; flex-direction: column; gap: .75rem; }
.cn-steps > li::before { content: counter(cn, decimal-leading-zero); position: absolute; left: 0; top: .1rem; font-family: var(--f-mono); font-size: .8125rem; color: var(--gold); letter-spacing: .08em; }
.cn-h3 { font-family: var(--f-head); font-weight: 400; font-size: 1.125rem; margin: 0; color: var(--text); }
.cn-actions { display: flex; flex-wrap: wrap; gap: .625rem; }
.cn-actions .btn-primary, .cn-actions .btn-ghost-gold { min-height: 2.75rem; }
.cn-list { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: .5rem; color: var(--text-2); }
.cn-note { color: var(--text-2); margin: 0; }
.cn-sub { margin: 0 0 .25rem; font-size: .875rem; color: var(--muted); }
.cn-subrow { display: flex; flex-direction: column; gap: .5rem; }
.cn-qrbox { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.cn-qrbox[hidden] { display: none; }
.cn-qr { width: 12rem; height: 12rem; border-radius: 12px; image-rendering: pixelated; }
.cn-help { margin-top: .5rem; }
.cn-modal { padding: 0; border: 0; background: transparent; max-width: min(92vw, 60rem); max-height: 92vh; }
.cn-modal::backdrop { background: rgba(7, 8, 10, .86); }
.cn-modal video { display: block; width: 100%; max-height: 88vh; border-radius: 16px; background: #000; }
.cn-close { position: absolute; top: .5rem; right: .5rem; z-index: 1; width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid rgba(242, 241, 238, .25); background: rgba(7, 8, 10, .7); color: var(--text); font-size: 1.5rem; cursor: pointer; }
@media (max-width: 600px) {
  .cn-steps > li { padding-left: 2.25rem; }
  .cn-actions { flex-direction: column; align-items: stretch; }
  .cn-actions .btn-primary, .cn-actions .btn-ghost-gold { justify-content: center; text-align: center; white-space: normal; }
}
.apps-add { display: flex; flex-wrap: wrap; gap: .625rem; }
.apps-add .btn-primary, .apps-add .btn-ghost-gold { min-height: 2.75rem; }
@media (max-width: 600px) { .apps-add { flex-direction: column; align-items: stretch; } .apps-add > * { justify-content: center; text-align: center; } }
.acc-add:empty { display: none; }
.acc-add .btn-primary { min-height: 2.75rem; }
@media (max-width: 600px) { .acc-actions.acc-add { grid-template-columns: minmax(0, 1fr); } .acc-add .btn-primary { justify-content: center; } }
.how-more { margin-top: clamp(1.5rem, 3vw, 2.5rem); }

/* подсказка об опечатке в адресе e-mail */
.email-fix { margin: .375rem 0 0; font-size: .875rem; color: var(--text-2); }
.email-fix .link-btn { display: inline; min-height: 0; padding: 0; color: var(--gold); font-size: inherit; }

/* кабинет внутри Telegram (мини-приложение): «На главную» не нужен — окно закрывается кнопкой Telegram */
.in-tg .hdr .doc-back { display: none; }

/* докупка устройств (этап 12б) */
.acc-devbuy { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.acc-h3 { font-family: var(--f-head); font-weight: 400; font-size: 1rem; line-height: 1.3; color: var(--text); margin: 0 0 .5rem; }
.acc-packs { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; margin: .75rem 0; }
@media (min-width: 600px) { .acc-packs { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); } }
/* пакет: кнопка выбора и «+1 устройство» слева, цена справа — всё внутри рамки на любой ширине */
.acc-pack { display: flex; align-items: center; gap: .75rem; min-width: 0; min-height: 2.75rem; padding: .625rem .875rem; border-radius: 14px; border: 1px solid var(--line-14); cursor: pointer; font-size: .9375rem; }
.acc-pack input { flex: none; accent-color: var(--gold); margin: 0; }
.acc-pack > span:first-of-type { flex: 1 1 auto; min-width: 0; text-align: left; }
.acc-pack > span:last-child { flex: none; white-space: nowrap; }
.acc-pack:has(input:checked) { border-color: var(--gold); }

/* страница заказа вне мини-приложения: «Вернуться в Telegram» (этап 12б) */
.sx-tg { margin: .25rem 0 1rem; }
.sx-tg .sx-actions { margin: .75rem 0 .5rem; }
.sx-tg .btn-primary { width: 100%; justify-content: center; }
