/* Сайт Everline X. Цвета, шрифты, шкала и отступы — только из токенов ниже,
   как в кабинете владельца (control/static/tokens.css).

   Принцип — один свет на экран: бренд-градиент только у главного действия.
   Первый экран — крупный заголовок по центру над мягким светом, без картинки
   (владелец выбрал из трёх вариантов, 17.10.2026). Знак бесконечности —
   только в логотипе (фоном владелец отклонил трижды). Само движется одно:
   медленно дышит свет первого экрана. Остальное тихое: без надписей
   капсом над заголовками, без выделения слов градиентом, без стрелок в
   кнопках, без анимации появления блоков. Система описана в DESIGN.md. */

@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  /* ── Цвет ── */
  --night: #050914;            /* фон */
  --deep: #0a1224;             /* поверхность: карточки, телефон */
  --deep-2: #0f1932;           /* поверхность второго уровня */
  --line: rgba(150, 180, 255, 0.12);
  --line-2: rgba(150, 180, 255, 0.22);
  --ink: #eef2fb;              /* основной текст */
  --mist: #9aa6c1;             /* вторичный текст, 7:1 к фону */
  --mist-2: #8290ad;           /* третичный, 5:1 к фону */
  --blue: #2a63ff;
  --sky: #4aa8ff;              /* буква X словесного знака, полоска устройств */
  --cyan: #27ecfd;
  --ok: #4fe0a6;
  --planet: #0c1834;           /* поверхность планеты у кромки горизонта */
  --planet-2: #070e20;
  --spark: #bff6ff;            /* искры над горизонтом */
  --bad: #ff8f8f;              /* ошибки в формах, 8:1 к фону */
  --brand: linear-gradient(100deg, #5b8dff, #2fd3ff 60%, #6ff4ff);

  /* ── Шрифт: заголовки — широкий Unbounded (как разрядка логотипа), текст — Manrope ── */
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --text: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --fs-s: 14px;
  --fs-m: 16px;
  --fs-l: 18px;
  --fs-h3: 22px;
  --fs-h2: clamp(28px, 3.4vw, 42px);
  --fs-h1: clamp(38px, 5.4vw, 76px);

  /* ── Ритм: шаг 8 ── */
  --wrap: 1120px;
  --pad: clamp(20px, 4vw, 40px);
  --section: clamp(88px, 11vw, 136px);
  --head: 20px;                /* от заголовка раздела до подзаголовка */
  --body: 48px;                /* от подзаголовка до содержимого */
  --radius: 22px;
  --radius-s: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
/* Подвал прижат к низу и на коротких страницах (вопросы на большом экране). */
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--night); color: var(--ink);
  font: 400 var(--fs-m)/1.6 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main { flex: 1 0 auto; }
::selection { background: rgba(39, 236, 253, .28); color: var(--ink); }
a, button, summary { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
/* Зерно: без него большие свечения на тёмном дают полосы. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.12; text-wrap: balance; }
h2 { font-size: var(--fs-h2); }
/* Якоря — на заголовках разделов: при переходе из меню сверху заголовок,
   а не хвост предыдущего раздела под шапкой. */
h2[id] { scroll-margin-top: 32px; }
h3 { font-size: var(--fs-m); font-weight: 600; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto;
  padding: 0 max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left)); }
.sub { margin-top: var(--head); color: var(--mist); font-size: var(--fs-l); max-width: 34em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 60; padding: 10px 14px; border-radius: var(--radius-s); background: var(--deep-2); }
.skip:focus { top: 12px; }

/* ── Кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  font: 600 var(--fs-m)/1 var(--text); cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.btn-primary { color: #03101f; background: var(--brand); box-shadow: 0 10px 36px -12px rgba(43, 155, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-quiet { color: var(--ink); background: rgba(150, 180, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); }
/* Акцент — главное действие кабинета: синяя подложка и рамка. Выделяется
   среди тихих кнопок, но не горит: бренд-свет остаётся у призыва главной и
   у оплаты (владелец выбрал из трёх вариантов, 18.10.2026). */
.btn-accent { color: var(--ink); background: rgba(42, 99, 255, .18); box-shadow: inset 0 0 0 1.5px rgba(90, 160, 255, .85); }
/* Наведение — только там, где есть мышь: на телефоне подсветка залипает после касания. */
@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 44px -14px rgba(43, 155, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .5); }
  .btn-quiet:hover { background: rgba(150, 180, 255, .11); }
  .btn-accent:hover { background: rgba(42, 99, 255, .28); box-shadow: inset 0 0 0 1.5px rgba(120, 180, 255, 1); }
}
.btn-primary:active { transform: scale(.985); }
.btn-quiet:active { background: rgba(150, 180, 255, .16); transform: scale(.985); }
.btn-accent:active { background: rgba(42, 99, 255, .34); transform: scale(.985); }
.btn-sm { height: 40px; padding: 0 18px; font-size: var(--fs-s); }
.btn-block { width: 100%; }
/* Под палец — не меньше 44 px (вкладки платформ — так же, в разделе кабинета). */
@media (pointer: coarse) { .btn-sm { height: 44px; } }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
/* Занятая кнопка читается: надпись меняется («Создаём счёт…»), а не гаснет до нечитаемого. */
.btn[aria-busy="true"] { opacity: .8; cursor: progress; transform: none; }
.hint { color: var(--mist-2); font-size: var(--fs-s); }

/* ── Шапка ── */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.top.scrolled { background: rgba(5, 9, 20, .88); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.top-in { height: 72px; display: flex; align-items: center; gap: 32px; }
/* Знак — ссылка на главную; поля сверху и снизу добирают зону касания до 44 px. */
.brand { display: inline-flex; align-items: center; gap: 12px; padding: 13px 0; margin: -13px 0; }
.brand-mark { width: 36px; height: 18px; overflow: visible; }
.brand-word { font: 500 13px/1 var(--text); letter-spacing: .34em; }
.brand-word b { font-weight: 600; margin-left: .3em; color: var(--sky); }
.nav { display: flex; gap: 32px; margin-left: auto; font-size: var(--fs-s); color: var(--mist); }
.nav a { padding: 11px 0; margin: -11px 0; transition: color .2s; }
@media (hover: hover) { .nav a:hover { color: var(--ink); } }
.top-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: var(--radius-s); background: rgba(150, 180, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ── Первый экран: заголовок по центру, внизу — горизонт: край тёмной планеты
   со светящейся кромкой, над ним медленно плывёт свет и поднимаются искры.
   Владелец выбрал из трёх вариантов (две колонки с орбитой устройств, поле
   линий, горизонт — 18.10.2026): прежний, без картинки, на ноутбуке оставлял
   пустой низ и выглядел простовато. Телефон с кабинетом (17.10) и
   бесконечность в фоне (трижды) отклонены — знак остаётся в логотипе.
   Экран занимает окно целиком; всё на CSS, без JS. ── */
.hero { position: relative; min-height: min(100svh, 1100px); display: flex; flex-direction: column;
  padding-top: calc(72px + 32px); overflow: hidden; }
.hero-in { position: relative; z-index: 1; flex: 1 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center;
  padding-bottom: 32px; text-align: center; }
.hero h1 { font-size: var(--fs-h1); max-width: 13em; }
/* Небо: три мягких пятна света плывут за полминуты — фон живой, но не мигает. */
.sky { position: absolute; inset: 0; pointer-events: none; }
.aur { position: absolute; border-radius: 50%; will-change: transform; }
.aur-1 { width: 72vw; height: 52%; left: -10vw; top: 4%; background: radial-gradient(closest-side, rgba(42, 99, 255, .24), transparent); animation: drift-1 36s ease-in-out infinite alternate; }
.aur-2 { width: 60vw; height: 46%; right: -12vw; top: 12%; background: radial-gradient(closest-side, rgba(39, 236, 253, .1), transparent); animation: drift-2 44s ease-in-out infinite alternate; }
.aur-3 { width: 46vw; height: 36%; left: 27vw; top: 26%; background: radial-gradient(closest-side, rgba(74, 168, 255, .13), transparent); animation: drift-3 29s ease-in-out infinite alternate; }
@keyframes drift-1 { to { transform: translate(14vw, 6%) scale(1.12); } }
@keyframes drift-2 { to { transform: translate(-16vw, -4%) scale(.9); } }
@keyframes drift-3 { to { transform: translate(-8vw, 10%) scale(1.2); } }
.horizon { position: relative; height: clamp(160px, 27svh, 260px); }
/* Атмосфера — свечение над кромкой, медленно дышит. */
.atmo { position: absolute; left: 50%; top: 0; width: min(1700px, 150vw); height: 440px; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(42, 99, 255, .48), rgba(39, 236, 253, .09) 52%, transparent 74%); animation: atmo 11s ease-in-out infinite alternate; }
@keyframes atmo { from { opacity: .7; transform: translate(-50%, -50%) scaleX(.94); } to { opacity: 1; transform: translate(-50%, -50%) scaleX(1.04); } }
/* Кромка — внутренняя тень со сдвигом вниз: на круге она даёт серп,
   ярче всего сверху и сходит на нет к краям. */
.planet { position: absolute; left: 50%; top: 0; width: max(2600px, 240vw); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(180deg, var(--planet), var(--planet-2) 110px, var(--night) 260px);
  box-shadow: inset 0 1.5px 0 rgba(175, 238, 255, .95), inset 0 26px 50px -26px rgba(39, 236, 253, .42), 0 -1px 14px rgba(111, 244, 255, .32), 0 -20px 80px -12px rgba(42, 99, 255, .5); }
/* Изгиб держим одинаковым на глаз: кромка к краям экрана опускается примерно
   на 9–11 % его ширины. Круг шире окна в 2,4 раза; на очень широких — в 2,9
   (иначе дуга глубже самого горизонта); на телефоне — в 3,3, дуга пологая. */
@media (min-width: 1700px) { .planet { width: 290vw; } }
/* Искры поднимаются от горизонта и гаснут — медленно, без мигания. */
.motes { position: absolute; left: 0; right: 0; top: 0; height: 0; }
.motes i { position: absolute; left: var(--x); top: 0; width: 2px; height: 2px; border-radius: 50%; background: var(--spark); opacity: 0;
  box-shadow: 0 0 6px 1px rgba(39, 236, 253, .55); animation: rise var(--t) linear var(--d) infinite; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .75; } 70% { opacity: .35; } 100% { transform: translateY(-260px); opacity: 0; } }
@keyframes rise-s { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .7; } 70% { opacity: .3; } 100% { transform: translateY(-150px); opacity: 0; } }
.horizon .facts { position: relative; margin: 0; padding-top: clamp(40px, 7svh, 64px); }
.lead { margin: 24px auto 0; max-width: 26em; color: var(--mist); font-size: var(--fs-l); text-wrap: pretty; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* Строка под кнопкой отвечает на два вопроса в момент решения: сколько
   бесплатно и нужен ли Telegram. */
.hero-note { margin-top: 14px; color: var(--mist-2); font-size: var(--fs-s); }
.facts { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; color: var(--mist); font-size: var(--fs-s); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 16px; height: 16px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Для чего: четыре занятия строкой под волосяной линией, без карточек —
   на них нельзя нажать, и рамки не должны обещать обратного. ── */
.section { padding-top: var(--section); }
.uses { list-style: none; margin: var(--body) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.uses li { padding: 28px 28px 4px 0; }
.uses li + li { padding-left: 28px; box-shadow: inset 1px 0 0 var(--line); }
.use-icon { width: 28px; height: 28px; margin-bottom: 20px; fill: none; stroke: #7cc4ff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.uses h3 { font-size: var(--fs-l); }
.uses p { margin-top: 6px; color: var(--mist); font-size: var(--fs-s); }

/* ── Три шага: это последовательность, поэтому номера и линия между ними ── */
.steps { position: relative; list-style: none; margin: var(--body) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps::before { content: ""; position: absolute; left: 22px; right: calc(33.33% - 22px); top: 21px; height: 1px; background: linear-gradient(90deg, var(--line-2), rgba(39, 236, 253, .35), var(--line-2)); }
.steps li { position: relative; }
.step-num { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 24px; border-radius: 50%; font: 500 17px/1 var(--display);
  color: var(--ink); background: var(--night); box-shadow: inset 0 0 0 1px rgba(90, 160, 255, .55); }
.steps h3 { font-size: var(--fs-l); }
.steps p { margin-top: 6px; color: var(--mist); max-width: 22em; }

/* ── Тарифы: единственное место с карточками — их сравнивают. Свет (градиент)
   у пробного: страница зовёт сначала попробовать. 90 дней — выгодный, его
   выделяют рамка и мягкий свет снизу, а не второй градиент (владелец, 17.10). ── */
.plans { margin-top: var(--body); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: var(--deep); box-shadow: inset 0 0 0 1px var(--line); }
.plan h3 { display: flex; align-items: center; gap: 10px; color: var(--mist); }
.plan-trial .price { color: var(--cyan); }
.save { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--cyan); background: rgba(39, 236, 253, .1); }
.price { margin-top: 22px; font: 500 36px/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.per { margin: 10px 0 22px; color: var(--mist-2); font-size: var(--fs-s); }
.plan .btn { margin-top: auto; }
.plan-best { background: linear-gradient(180deg, rgba(42, 99, 255, .16), rgba(39, 236, 253, .03)), var(--deep); box-shadow: inset 0 0 0 1px rgba(90, 160, 255, .55), 0 30px 80px -40px rgba(43, 155, 255, .55); }
/* Что входит — списком в каждой карточке (владелец выбрал из трёх вариантов,
   17.10): у платных безлимит, скорость и до 10 устройств, у пробного свои условия. */
.plan-list { list-style: none; display: grid; gap: 10px; margin: 0 0 28px; padding: 18px 0 0; border-top: 1px solid var(--line); color: var(--ink); font-size: var(--fs-s); }
.plan-list li { display: flex; align-items: center; gap: 10px; }
.plan-list svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.terms { margin-top: 24px; max-width: 62ch; color: var(--mist); font-size: var(--fs-s); }
.terms a, .faq-list a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; }

/* ── Вход: Telegram сверху, почта сразу под ним (владелец, 17.10.2026).
   Без рамки-карточки: форма прямо на ночи под мягким светом, как первый
   экран. Шаги сменяют друг друга на месте, фокус уходит в новый шаг. ── */
/* Вход, кабинет и оформление — шапка уезжает вместе со страницей: меню здесь нет,
   держать под рукой нечего, а закреплённая она накрывает форму (владелец, 18.10). */
.auth-page .top, .cab-page .top { position: absolute; }
.auth { position: relative; display: grid; justify-items: center; align-content: start;
  padding: calc(72px + clamp(28px, 7vh, 72px)) max(var(--pad), env(safe-area-inset-right)) 48px max(var(--pad), env(safe-area-inset-left)); overflow-x: clip; }
/* Свет — в пикселях, не в процентах высоты: иначе он сдвигается, когда раскрывается QR
   или появляется ошибка, и Safari (привязка прокрутки) прокручивает страницу следом. */
.auth-glow { position: absolute; left: 50%; top: -140px; width: min(900px, 160vw); height: 620px; transform: translateX(-50%); pointer-events: none; overflow-anchor: none;
  background: radial-gradient(closest-side, rgba(31, 91, 255, .26), rgba(39, 236, 253, .05) 60%, transparent); filter: blur(30px); }
.auth-in { position: relative; width: min(400px, 100%); }
.auth h1 { font-size: clamp(30px, 4vw, 40px); }
.auth h1:focus { outline: none; }
.auth-lead { margin-top: 12px; color: var(--mist); }
.auth-lead b { color: var(--ink); font-weight: 600; }
.auth-sent { overflow-wrap: anywhere; }
.auth-context { margin-top: 12px; color: var(--mist); }
.auth-tg { margin-top: 28px; }
.btn-tg { gap: 10px; color: #03101f; background: var(--ink); }
.btn-tg svg { width: 22px; height: 22px; fill: #2aabee; }
@media (hover: hover) { .btn-tg:hover { background: #fff; } }
.btn-tg:active { transform: scale(.985); }
.auth-tg-error { margin-top: 10px; }
.auth-tg-off { margin-bottom: 24px; padding: 14px 18px; border-radius: var(--radius-s); color: var(--mist); font-size: var(--fs-s); background: rgba(150, 180, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.auth-or { display: flex; align-items: center; gap: 14px; margin: 26px 0 18px; color: var(--mist-2); font-size: var(--fs-s); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form .btn { margin-top: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.auth-sent + .auth-form { margin-top: 28px; }
/* Без JS кнопка Telegram ничего не сделает — остаётся только почта. */
html:not(.js) .auth-tg, html:not(.js) .auth-or { display: none; }
.field { display: grid; gap: 8px; }
.field label { color: var(--mist); font-size: var(--fs-s); }
/* 16 px в поле: меньше — и Safari на iPhone увеличивает страницу при фокусе. */
.input { width: 100%; height: 52px; caret-color: var(--cyan); padding: 0 18px; border: 0; border-radius: var(--radius-s); color: var(--ink); font: 400 16px/1.2 var(--text);
  background: rgba(150, 180, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s, background-color .2s; }
.input::placeholder { color: var(--mist-2); opacity: 1; }
.input:focus-visible { outline: none; background: rgba(150, 180, 255, .09); box-shadow: inset 0 0 0 1px rgba(90, 160, 255, .85), 0 0 0 4px rgba(42, 99, 255, .2); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--bad); }
.input[aria-invalid="true"]:focus-visible { box-shadow: inset 0 0 0 1px var(--bad), 0 0 0 4px rgba(255, 143, 143, .16); }
.input-code { height: 64px; padding: 0 0 0 .5em; text-align: center; font: 500 28px/1 var(--display); letter-spacing: .5em; font-variant-numeric: tabular-nums; }
.input-code::placeholder { letter-spacing: .5em; }
.field-error { color: var(--bad); font-size: var(--fs-s); }
.field-hint { color: var(--mist-2); font-size: var(--fs-s); overflow-wrap: anywhere; }
.link-btn { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; }
.link-btn:disabled { color: var(--mist-2); text-decoration-color: transparent; cursor: default; }
.auth-resend { margin-top: 20px; color: var(--mist-2); font-size: var(--fs-s); }
.auth-legal { margin-top: 20px; color: var(--mist-2); font-size: 13px; }
.auth-legal a, .auth-help a, .auth-lead a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; }
.auth-help { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--mist); font-size: var(--fs-s); }
.auth-demo { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-s); color: var(--mist-2); font-size: 13px; box-shadow: inset 0 0 0 1px var(--line); }
.auth-demo a { color: var(--mist); text-decoration: underline; }
.auth-link .btn + .btn { margin-top: 10px; }
.auth-link .btn-primary { margin-top: 28px; }
.auth-later { margin-top: 14px; text-align: center; }
/* Два значка внахлёст — наш и Telegram: «связать» без слов. */
.auth-pair { display: flex; margin-bottom: 24px; }
.auth-pair img, .auth-pair-tg { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 3px var(--night); }
.auth-pair-tg { display: grid; place-items: center; margin-left: -6px; background: #fff; }
.auth-pair-tg svg { width: 56px; height: 56px; fill: #2aabee; }
.auth-step:not([hidden]) { animation: step-in .35s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } }

/* ── Личный кабинет: боковое меню и разделы — главная, устройства, подключение,
   приглашения, учётка (владелец выбрал из трёх вариантов, 18.10.2026). Подписка —
   компактной строкой, а не большой карточкой: на компьютере та занимала пол-экрана.
   Подключение — отдельным разделом: оно нужно раз на устройство; на главной оно
   главное только у того, кто ещё ни разу не подключался. Без JS разделы идут
   подряд одной страницей. На телефоне меню — нижней панелью вкладок. ── */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cab-account { display: flex; align-items: center; gap: 16px; margin-left: auto; min-width: 0; }
.cab { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; padding: calc(72px + 32px) max(var(--pad), env(safe-area-inset-right)) 48px max(var(--pad), env(safe-area-inset-left)); overflow-x: clip; }
.cab-notice { margin-bottom: 20px; padding: 14px 18px; border-radius: var(--radius-s); color: var(--ink); font-size: var(--fs-s);
  background: rgba(79, 224, 166, .08); box-shadow: inset 0 0 0 1px rgba(79, 224, 166, .3); }
.cab-notice[data-tone="warn"] { background: rgba(242, 194, 107, .08); box-shadow: inset 0 0 0 1px rgba(242, 194, 107, .3); }
.cab-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Каркас: меню слева, раздел справа */
/* Боевой режим (сервер ставит <html data-api>): кабинет и оформление скрыты,
   пока не пришли данные аккаунта, — иначе на долю секунды видна разметка-образец
   (чужая почта, ссылка DEMO, «2 из 3») или не тот вид оформления. Без JS — как было. */
html.js[data-api]:not(.page-ready) .cab-shell,
html.js[data-api]:not(.page-ready) [data-checkout] { visibility: hidden; }
.cab-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100svh; }
.cab-side { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; padding: 22px 16px 18px; border-right: 1px solid var(--line); background: rgba(8, 14, 30, .55); }
.cab-side .brand { margin: -13px 10px 22px; }
.cab-acc { display: flex; align-items: center; gap: 12px; margin: 0 2px 18px; padding: 12px; border-radius: var(--radius-s); background: rgba(150, 180, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.cab-acc-av { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; color: var(--ink); font: 500 15px/1 var(--display); background: rgba(74, 168, 255, .16); box-shadow: inset 0 0 0 1px rgba(74, 168, 255, .35); }
.cab-acc div { min-width: 0; }
.cab-acc b { display: block; font-size: var(--fs-s); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cab-acc span { color: var(--mist-2); font-size: 13px; }
.cab-nav { display: grid; gap: 2px; }
.cab-nav a, .cab-side-foot a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: var(--radius-s); color: var(--mist); font-size: 15px; font-weight: 500; transition: background-color .2s var(--ease), color .2s var(--ease); }
@media (hover: hover) { .cab-nav a:hover, .cab-side-foot a:hover { color: var(--ink); background: rgba(150, 180, 255, .05); } }
.cab-nav a[aria-current="page"] { color: var(--ink); background: rgba(150, 180, 255, .09); }
.cab-nav a[aria-current="page"] .cab-ico { color: var(--sky); }
.cab-side-foot { display: grid; gap: 2px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
/* Верх букв заголовка — на линии верха карточки профиля в меню, во всех разделах одинаково. */
.cab-main { position: relative; padding: 68px clamp(24px, 4vw, 56px) 72px; overflow-x: clip; }
.cab-main .auth-glow { top: -260px; }
/* Колонка по центру своей области: поля слева и справа поровну (владелец: справа пустота
   шире, чем слева, — выглядело ошибкой). 920 px — чтобы строки не разъезжались на широком. */
.cab-main-in { position: relative; max-width: 920px; margin: 0 auto; }
.cab-main-in > section:not([hidden]) + section:not([hidden]) { margin-top: 72px; }  /* без JS разделы подряд;
   скрытый сосед отступа не даёт — иначе заголовок всех разделов, кроме главной, ниже на 72 px */
.cab-mtop, .cab-tabbar { display: none; }
.cab-h1 { font-size: clamp(28px, 3vw, 36px); }
.cab-h1:focus { outline: none; }
.cab-lead { margin-top: 10px; color: var(--mist); max-width: 40em; }
.cab-hint { margin-top: 14px; color: var(--mist); font-size: var(--fs-s); }
.cab-hint a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; }

/* Строка подписки: статус и срок, устройства, главное действие */
.cab-sumcard, .co-sum { border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(150, 180, 255, .11), rgba(150, 180, 255, .03) 60%), rgba(10, 18, 36, .82);
  box-shadow: inset 0 0 0 1px rgba(190, 210, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .1), 0 50px 110px -44px rgba(31, 91, 255, .5), 0 28px 56px -28px rgba(0, 0, 0, .85); }
/* Карточка подписки: строка подписки и под ней ссылка (владелец выбрал, 18.10) */
.cab-sumcard { position: relative; margin-top: 20px;
  box-shadow: inset 0 0 0 1px rgba(190, 210, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .08), 0 36px 80px -48px rgba(31, 91, 255, .55); }
.cab-sum { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; gap: 20px 36px; padding: 22px 24px 22px 26px; }
.cab-sum-none { grid-template-columns: minmax(0, 1fr) auto; }
.cab-sum-state { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--mist); font-size: var(--fs-s); }
.cab-sum-until { margin-top: 6px; font: 500 26px/1.15 var(--display); letter-spacing: -0.02em; }
.cab-sum-none p:not(.cab-sum-until) { margin-top: 6px; color: var(--mist); }
.cab-sum-meters { display: grid; gap: 14px; }
.cab-sum-meters .meter { margin-top: 8px; }
.cab-sum-meters a { display: block; padding: 6px 0; margin: -6px 0; border-radius: 6px; }  /* «Устройства 2 из 3» — ссылка на раздел */
@media (hover: hover) { .cab-sum-meters a:hover .sub-meter-row span { color: var(--ink); } }
.cab-sum-act { display: flex; flex-wrap: wrap; gap: 10px; }
.sub-status { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); font-size: var(--fs-s); font-weight: 600; }
.sub-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sub-status[data-tone="warn"] { color: #f2c26b; }
.sub-status[data-tone="off"] { color: var(--bad); }
.sub-meter-row { display: flex; justify-content: space-between; gap: 16px; color: var(--mist); font-size: var(--fs-s); }
.sub-meter-row b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.meter { height: 5px; margin-top: 10px; border-radius: 999px; background: rgba(150, 180, 255, .14); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--sky); }

/* Ссылка подписки — явно, копирование и QR — её действия (владелец, 18.10) */
/* Ссылка — второй строкой карточки, под волосяной линией; заголовок — подписью. */
.cab-link { margin: 0 24px 0 26px; padding: 18px 0 22px; box-shadow: inset 0 1px 0 var(--line); }
.cab-link .cab-block-head h2 { font: 400 var(--fs-s)/1.4 var(--text); letter-spacing: 0; color: var(--mist); }
.cab-link .cab-field-url { margin-top: 10px; }
.cab-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.cab-block-head h2 { font-size: clamp(20px, 2.2vw, 24px); }
.cab-more-link { color: var(--mist); font-size: var(--fs-s); padding: 11px 0; margin: -11px 0; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
@media (hover: hover) { .cab-more-link:hover { color: var(--ink); } }
.cab-field-url { border-radius: var(--radius-s); padding: 8px 8px 8px 18px; }
/* Адрес целиком: касание выделяет всю ссылку — можно скопировать и руками. */
.cab-field.cab-field-url > span { color: var(--ink); white-space: normal; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.url-host { white-space: nowrap; }  /* домен ссылки не рвём; уже 360 px — можно, иначе не влезет */
.cab-field .btn { gap: 8px; }
.cab-field .btn .cab-ico { width: 18px; height: 18px; }
.cab-link .cab-hint { margin-top: 10px; }
.connect-manual { margin-top: 20px; color: var(--mist); font-size: var(--fs-s); }
.cab-qr { display: flex; align-items: center; gap: 20px; margin-top: 16px; }
.cab-qr img { width: 152px; height: 152px; flex: none; padding: 10px; border-radius: var(--radius-s); background: #fff; }
.cab-qr p { color: var(--mist); font-size: var(--fs-s); max-width: 26em; }

/* Полосы: подключить первое устройство, привязать Telegram, позвать друга */
.cab-note { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 16px 18px; border-radius: var(--radius-s); background: rgba(150, 180, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.cab-note-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; color: #7cc4ff; background: rgba(150, 180, 255, .06); }
.cab-note-ico svg.tg { width: 40px; height: 40px; fill: #2aabee; }
.cab-note p { flex: 1; min-width: 0; color: var(--mist); font-size: var(--fs-s); }
.cab-note p b { display: block; color: var(--ink); font-size: var(--fs-m); font-weight: 600; }
.cab-note .btn { flex: none; height: 44px; padding: 0 18px; font-size: var(--fs-s); }

/* Устройства — строки, как «Мои устройства» в боте */
.cab-devs { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.cab-dev-add { margin-top: 18px; }
.cab-dev { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 68px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cab-dev-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #7cc4ff; background: rgba(150, 180, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }
.cab-dev b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cab-dev span { color: var(--mist); font-size: var(--fs-s); }
.cab-dev .link-btn { padding: 11px 0; margin: -11px 0; color: var(--mist); font-size: var(--fs-s); text-decoration-color: var(--line-2); }
.cab-dev-ask { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--mist); font-size: var(--fs-s); }
.cab-dev-ask .btn { height: 44px; padding: 0 16px; font-size: var(--fs-s); }
.cab-empty { padding: 18px 0; color: var(--mist); border-bottom: 1px solid var(--line); }

/* Приглашение: ссылка и цифры строками */
.cab-field { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 6px 6px 6px 18px; border-radius: 999px; background: rgba(150, 180, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2); }
.cab-field > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mist); font-size: var(--fs-s); font-variant-numeric: tabular-nums; }
.cab-field .btn { height: 40px; padding: 0 16px; font-size: var(--fs-s); }
@media (pointer: coarse) { .cab-field .btn { height: 44px; } }
/* Цифры приглашений — три ячейки на всю ширину ссылки, без карточек: на
   них нельзя нажать. Число крупно, подпись под ним (в разметке подпись
   первой — так их читает экранный диктор). */
.cab-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 22px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cab-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; align-items: center; gap: 8px; padding: 20px 12px; text-align: center; }
.cab-stats > div + div { box-shadow: inset 1px 0 0 var(--line); }
.cab-stats dt { color: var(--mist); font-size: var(--fs-s); }
.cab-stats dd { margin: 0; font: 500 28px/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cab-rows { margin-top: 18px; }

/* Подключение — три шага */
.cab-off { margin-top: 12px; color: var(--mist); }
.connect { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: step; }
.connect > li { position: relative; padding: 0 0 32px 60px; counter-increment: step; }
.connect > li::before { content: counter(step); position: absolute; left: 0; top: -4px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font: 500 16px/1 var(--display); box-shadow: inset 0 0 0 1px rgba(90, 160, 255, .55); }
.connect > li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: 6px; width: 1px; background: var(--line-2); }
.connect h2 { font: 600 var(--fs-l)/1.6 var(--text); letter-spacing: 0; }
.connect-text { margin-top: 6px; color: var(--mist); }
.platforms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.platforms button { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; color: var(--mist); font: 600 var(--fs-s)/1 var(--text); cursor: pointer;
  background: rgba(150, 180, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.platforms button[aria-selected="true"] { color: #03101f; background: var(--ink); box-shadow: none; }
@media (pointer: coarse) { .platforms button { height: 44px; } }
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
.app { display: grid; gap: 2px; padding: 14px 18px; border-radius: var(--radius-s); background: rgba(150, 180, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .2s; }
.app b { font-weight: 600; }
.app span { color: var(--mist); font-size: var(--fs-s); }
@media (hover: hover) { .app:hover { background: rgba(150, 180, 255, .1); } }
.app-alt { grid-column: 1 / -1; color: var(--mist-2); font-size: var(--fs-s); }
.connect-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.qr { display: flex; align-items: center; gap: 20px; margin-top: 18px; }
.qr img { width: 168px; height: 168px; flex: none; padding: 10px; border-radius: var(--radius-s); background: #fff; }
.qr p { color: var(--mist); font-size: var(--fs-s); }

/* Учётка: строки «название — значение» */
.rows { margin-top: 18px; border-top: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row > span:first-child { color: var(--mist); }
.row-val { min-width: 0; overflow-wrap: anywhere; text-align: right; font-variant-numeric: tabular-nums; }
.row-val .link-btn { display: inline-block; padding: 11px 0; margin: -11px 0; }
.row-ok { color: var(--ok); }
.add-email { margin-top: 18px; }
.field-inline { display: flex; gap: 10px; }
.field-inline .input { flex: 1; min-width: 0; }

@media (max-width: 880px) {
  .cab-sum { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cab-sum-act { grid-column: 1 / -1; }
  .cab-sum-act .btn { flex: 1 1 auto; }
  .cab-shell { grid-template-columns: minmax(0, 1fr); }
  .cab-side { display: none; }
  .cab-mtop { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left)); }
  .cab-main { padding-top: 12px; padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
  .cab-tabbar { display: grid; grid-template-columns: repeat(var(--tabs, 5), minmax(0, 1fr)); position: fixed; inset: auto 0 0; z-index: 40; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(5, 9, 20, .92); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 -1px 0 var(--line); }
  html:not(.js) .cab-tabbar { display: none; }  /* без JS разделы и так подряд */
  .cab-tabbar a { display: grid; justify-items: center; gap: 4px; min-height: 52px; padding: 7px 0 5px; border-radius: var(--radius-s); color: var(--mist-2); font-size: 11px; font-weight: 600; letter-spacing: -0.01em; }
  .cab-tabbar a[aria-current="page"] { color: var(--ink); }
  .cab-tabbar a[aria-current="page"] .cab-ico { color: var(--sky); }
}
@media (max-width: 720px) {
  .cab { padding-top: calc(64px + 24px); }
  .cab-sum, .cab-sum-none { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 20px; }
  .cab-link { margin: 0 20px; padding: 16px 0 20px; }
  .cab-sum-until { font-size: 24px; }
  .cab-note { flex-wrap: wrap; }
  .cab-note p { flex-basis: calc(100% - 56px); }
  .cab-note .btn { margin-left: 56px; }
  .cab-qr, .qr { flex-direction: column; align-items: flex-start; }
  .cab-field { flex-wrap: wrap; padding: 14px; border-radius: var(--radius-s); }
  .cab-field > span { flex-basis: 100%; padding: 0 4px 4px; }
  .cab-field .btn { flex: 1 1 auto; }
  .connect > li { padding-left: 52px; }
  .platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connect-actions .btn { flex: 1 1 calc(50% - 5px); padding: 0 16px; }
  .cab-stats > div { padding: 16px 8px; }
  .cab-stats dd { font-size: 24px; }
  .field-inline { flex-direction: column; }
}

/* ── Оформление: одна страница в порядке витрины бота — устройства → срок →
   способ → оплата (владелец). Ничего не предвыбрано. Слева шаги, справа
   сводка с суммой; на телефоне сводка после шагов. Свет (градиент) у
   «Оплатить» загорается, когда выбрано всё, — до этого кнопка тихая и
   называет, чего не хватает. Номера шагов несут смысл: это порядок решений. ── */
.co { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px 64px; align-items: start; width: min(1040px, 100%); }
.co-main h1 { font-size: clamp(30px, 4vw, 40px); }
.co-main h1:focus { outline: none; }
.co-main .auth-lead { max-width: 34em; text-wrap: pretty; }
.co-load-error { margin-top: 16px; }
.co-step { min-width: 0; margin: 40px 0 0; padding: 0; border: 0; }
.co-step legend { padding: 0; }
.co-legend { display: flex; align-items: center; gap: 12px; font-size: var(--fs-l); font-weight: 600; }
.co-num { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; font: 500 14px/1 var(--display); box-shadow: inset 0 0 0 1px rgba(90, 160, 255, .55); }
.co-hint { margin-top: 10px; }
.co-devices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.co-terms { display: grid; gap: 8px; margin-top: 16px; }
.co-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin-top: 16px; }
/* Сама радиокнопка скрыта только с глаз: фокус, VoiceOver и форма без JS работают. */
.co-dev, .co-opt { position: relative; display: block; cursor: pointer; }
.co-dev input, .co-opt input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.co-dev-in, .co-opt-in { display: flex; border-radius: var(--radius-s); background: rgba(150, 180, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease); }
.co-dev-in { flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 68px; padding: 10px 4px; }
.co-dev-in b { font: 500 20px/1 var(--display); letter-spacing: -0.02em; }
.co-dev-in small { color: var(--mist-2); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-opt-in { align-items: center; gap: 14px; min-height: 60px; padding: 12px 18px; }
/* Кружок выбора: выбранное видно не только цветом — кружок заполняется. */
.co-opt-in::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow .2s var(--ease), background-color .2s var(--ease); }
.co-opt-name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-weight: 600; }
.co-opt-name small { flex-basis: 100%; color: var(--mist); font-size: var(--fs-s); font-weight: 400; }
.co-opt-sum { margin-left: auto; font: 500 18px/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: hover) { .co-dev:hover .co-dev-in, .co-opt:hover .co-opt-in { background: rgba(150, 180, 255, .09); } }
.co-dev input:checked + .co-dev-in, .co-opt input:checked + .co-opt-in { background: rgba(42, 99, 255, .16); box-shadow: inset 0 0 0 2px rgba(90, 160, 255, .9); }
.co-dev input:checked + .co-dev-in small { color: var(--ink); }
/* Недоступный выбор (в доплате — нынешнее число и меньше; картой — меньше
   минимума кассы): приглушён и не нажимается, подпись объясняет почему. */
.co-dev:has(input:disabled), .co-opt:has(input:disabled) { cursor: default; }
.co-dev input:disabled + .co-dev-in, .co-opt input:disabled + .co-opt-in { opacity: .45; background: transparent; }
.co-opt input:checked + .co-opt-in::before { background: radial-gradient(circle, var(--sky) 0 4px, transparent 4.5px); box-shadow: inset 0 0 0 1.5px var(--sky); }
.co-dev input:focus-visible + .co-dev-in, .co-opt input:focus-visible + .co-opt-in,
.co-kbd .co-dev input:focus + .co-dev-in, .co-kbd .co-opt input:focus + .co-opt-in { outline: 2px solid var(--cyan); outline-offset: 3px; }
.co-note { margin-top: 12px; color: var(--mist); font-size: var(--fs-s); }
.co-step-error { margin-top: 10px; }
.co-side { position: sticky; top: 24px; }
.co-sum { padding: 26px 26px 22px; }
.co-sum h2 { font: 600 var(--fs-l)/1.3 var(--text); letter-spacing: 0; }
.co-lines { margin-top: 12px; }
.co-lines div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-s); }
.co-lines dt { color: var(--mist); }
.co-lines dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.co-lines .co-none { color: var(--mist-2); font-weight: 400; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 20px 0 20px; }
.co-total span { color: var(--mist); }
.co-total b { font: 500 32px/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Пока суммы нет — тихий прочерк текстовым шрифтом, а не полоса крупным кеглем. */
.co-total .co-none { color: var(--mist-2); font: 400 var(--fs-m)/1 var(--text); }
.co-pay-error, .co-status { margin: -4px 0 14px; }
.co-status { color: var(--mist); font-size: var(--fs-s); }
.co-after { margin-top: 14px; color: var(--mist-2); font-size: 13px; }
.co-legal { margin-top: 6px; color: var(--mist-2); font-size: 13px; }
.co-legal a { color: var(--mist); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; }
.co-demo { width: min(1040px, 100%); margin-top: 48px; }
.co-dock { display: none; }
@media (max-width: 880px) {
  .co { grid-template-columns: minmax(0, 1fr); width: min(640px, 100%); }
  .co-side { position: static; }
  /* Нижняя кнопка — как на главной: стекло поверх прокрутки, прячется, когда видна кнопка сводки. */
  .co-dock { display: block; position: fixed; inset: auto 0 0; z-index: 40; padding: 12px max(var(--pad), env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(var(--pad), env(safe-area-inset-left));
    background: linear-gradient(180deg, transparent, rgba(5, 9, 20, .94) 35%); transform: translateY(110%); visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s linear .35s; }
  .co-dock.show { transform: none; visibility: visible; transition-delay: 0s; }
  .co-dock .btn { display: flex; max-width: 640px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .co-step { margin-top: 32px; }
  .co-devices { gap: 6px; }
  .co-dev-in { min-height: 62px; }
  .co-dev-in b { font-size: 18px; }
  .co-dev-in small { font-size: 12px; }
  .co-opt-in { padding: 12px 16px; }
  .co-sum { padding: 22px 20px 20px; }
}
@media (max-width: 360px) {
  .url-host { white-space: normal; }
  .platforms button { padding: 0 8px; font-size: 13px; white-space: nowrap; }
  .co-devices { gap: 4px; }
  .co-dev-in { padding: 10px 2px; }
}

/* ── Отдельные страницы (вопросы, документы) ── */
.page { padding-top: calc(72px + clamp(48px, 7vw, 88px)); }
.page h1 { font-size: var(--fs-h2); }

/* ── Документы (/legal/…): текст бота для чтения — одна колонка, пункты абзацами,
   разделы — заголовками текста, а не витрины ── */
.legal-in { max-width: calc(44em + var(--pad) * 2); }
/* «Конфиденциальности» широким Unbounded шире телефона: на телефоне заголовок мельче
   (целиком влезает от 375 px), уже — мягкий перенос в разметке. */
.legal h1 { font-size: min(var(--fs-h2), max(24px, 6.4vw)); overflow-wrap: break-word; }
@media (min-width: 375px) { .legal h1 span { white-space: nowrap; } }  /* слово влезает — не рвём */
.legal-date { margin-top: 12px; color: var(--mist); font-size: var(--fs-s); }
.legal h2 { margin-top: 40px; font: 600 var(--fs-l)/1.4 var(--text); letter-spacing: 0; }
.legal p, .legal ul { margin-top: 12px; color: var(--mist); text-wrap: pretty; }
.legal ul { padding-left: 1.25em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--cyan);
  text-underline-offset: 4px; overflow-wrap: anywhere; }

/* ── Вопросы: линии, не карточки ── */
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-size: var(--fs-l); font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.6px; background: var(--mist); transition: transform .3s var(--ease); }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0); }
.faq-list details p { padding: 0 48px 24px 0; color: var(--mist); max-width: 40em; }

/* ── Подвал ── */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: var(--fs-s); color: var(--mist); }
.foot-in { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.foot-nav { display: flex; gap: 0 24px; flex-wrap: wrap; margin-left: auto; }
/* Поля добирают зону касания ссылок до 44 px, не меняя вид строки. */
.foot-nav a { padding: 11px 0; }
@media (hover: hover) { .foot-nav a:hover { color: var(--ink); } }
.copy { color: var(--mist-2); }

main { padding-bottom: var(--section); }
.dock { display: none; }

/* ── Планшет ── */
@media (max-width: 960px) {
  /* Планшет и телефон: горизонт внизу первого экрана, если текст короче окна. */
  .hero { min-height: min(100svh, 820px); }
  .horizon { height: 200px; }
  .uses, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uses li:nth-child(3) { padding-left: 0; box-shadow: none; }
  .uses li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; background: linear-gradient(180deg, var(--line-2), rgba(39, 236, 253, .35), var(--line-2)); }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; }
  .step-num { grid-row: span 2; margin: 0; }
  .steps h3 { align-self: center; }
  .faq { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Телефон ── */
@media (max-width: 720px) {
  :root { --body: 32px; }
  .top-in { height: 64px; }
  /* Закрытое меню скрыто и для фокуса, и для VoiceOver: visibility, а не
     только прозрачность. Видимость переключается после затухания. */
  .nav { position: fixed; top: 64px; left: 0; right: 0; z-index: 2; flex-direction: column; gap: 0; margin: 0; padding: 4px var(--pad) 16px; font-size: var(--fs-l); color: var(--ink);
    background: rgb(5, 9, 20); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease), visibility 0s linear .25s; }
  .nav a { padding: 14px 0; margin: 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
  .menu-open .top { background: rgb(5, 9, 20); }
  /* Под открытым меню страница притемнена; касание мимо меню его закрывает (site.js). */
  .menu-open::before { content: ""; position: fixed; inset: 0; z-index: 45; background: rgba(2, 4, 10, .55); }
  .top-actions { margin-left: auto; }
  .burger { display: block; }
  html:not(.js) .burger { display: none; }
  .brand-word { letter-spacing: .3em; }
  .hero { padding-top: calc(64px + 28px); }
  /* Горизонт на узком экране — того же изгиба, искры поднимаются ниже. */
  .planet { width: 330vw; }
  .atmo { height: 300px; }
  .motes i { animation-name: rise-s; }
  .lead, .sub { font-size: var(--fs-m); }
  /* Кнопки в ряд, пока помещаются; не помещаются — каждая на всю ширину. */
  .hero-cta .btn-primary { flex: 3 1 auto; padding: 0 18px; }
  .hero-cta .btn-quiet { flex: 1 0 auto; padding: 0 22px; }
  .uses { grid-template-columns: minmax(0, 1fr); }
  .uses li:nth-child(n) { display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; padding: 18px 0; margin: 0; border-top: 0; box-shadow: none; }
  .uses li:nth-child(n+2) { border-top: 1px solid var(--line); }
  .use-icon { grid-row: span 2; margin: 2px 0 0; }
  .uses h3 { font-size: var(--fs-m); }
  .uses p { margin-top: 2px; }
  .plans { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .page { padding-top: calc(64px + 40px); }
  .plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "h btn" "price btn" "per btn" "list list"; column-gap: 16px; align-items: center; padding: 20px 20px 20px 22px; }
  .plan-list { grid-area: list; margin: 16px 0 0; padding-top: 14px; }
  .plan h3 { grid-area: h; }
  .price { grid-area: price; margin-top: 10px; font-size: 30px; }
  .per { grid-area: per; margin: 6px 0 0; }
  .plan .btn { grid-area: btn; width: auto; margin: 0; height: 44px; padding: 0 20px; }
  .faq-list summary { font-size: var(--fs-m); }
  .foot-in { flex-direction: column; align-items: flex-start; gap: 12px; }
  .foot-nav { margin-left: 0; gap: 0 22px; }
  .dock { display: block; position: fixed; inset: auto 0 0; z-index: 40; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, rgba(5, 9, 20, .94) 35%); transform: translateY(110%); transition: transform .35s var(--ease); }
  .dock.show { transform: none; }
  /* Место под нижнюю кнопку — только на страницах, где она есть. */
  .has-dock .foot { padding-bottom: 110px; }
}

/* ── Низкий телефон (SE и с открытыми панелями Safari): отступы первого экрана
   плотнее, чтобы кромка горизонта выглядывала внизу окна. ── */
@media (max-width: 720px) and (max-height: 700px) {
  .hero { padding-top: calc(64px + 20px); }
  .lead { margin-top: 16px; }
  .hero-cta { margin-top: 24px; }
  .hero-in { padding-bottom: 24px; }
}

/* ── Узкий телефон: две кнопки первого экрана в ряд не помещаются — друг под другом ── */
@media (max-width: 400px) {
  .top-in { gap: 12px; }
  .brand { gap: 10px; }
  .brand-word { letter-spacing: .2em; }
  .top-actions { gap: 8px; }
  .top-actions .btn-sm { padding: 0 14px; }
  .plan { padding: 18px 16px 18px 18px; column-gap: 12px; }
  .price { font-size: 26px; }
  .plan .btn { padding: 0 16px; }
}

/* ── Телефон лёжа: окно ниже 500 px — первый экран плотнее, кнопка видна сразу ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 0; padding-top: calc(72px + 12px); }
  .horizon { height: 120px; }
  .hero h1 { font-size: 36px; }
  .lead { margin-top: 14px; }
  .hero-cta { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .motes { display: none; }
}
