/* ══════════════════════════════════════════════════════════════════════
   VEXA SECURE — дизайн-система «Пиксели»
   Палитра снята с котёнка-талисмана: шерсть → чернила, глаза → лайм, ушки → розовый.
   Заголовки — собственный пиксельный шрифт VEXA Pixel (сетка 5×7, латиница и кириллица),
   текст — Inter. Все шрифты лежат на сайте, к Google за ними браузер больше не ходит.
   Пиксельные шрифты чётче всего при размерах, кратных 10px (1 пиксель шрифта = 1/10 кегля).
   ══════════════════════════════════════════════════════════════════════ */

@font-face { font-family: 'VEXA Pixel'; src: url('/assets/vexa-pixel.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/inter-400.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/inter-500.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/inter-600.woff') format('woff'); font-weight: 600 900; font-style: normal; font-display: swap; }

:root {
  --ink: #17141d;          /* шерсть: текст, тёмные поверхности */
  --ink-2: #2b2733;
  --paper: #eeecf2;        /* фон страницы */
  --paper-2: #e3e0ea;      /* углублённые поля и подложки */
  --card: #ffffff;
  --eye: #b4da5a;          /* глаза: главный акцент, «включено» */
  --eye-2: #a5cd47;
  --on-eye: #3e4a22;       /* второстепенный текст на лайме */
  --nose: #f0a9b9;         /* ушки и нос: второй акцент */
  --nose-soft: #f7d5de;
  --muted: #5f5a69;
  --line: #dad7e1;
  --ok: #2f5d14;   --ok-soft: #e4f1cb;
  --bad: #b3261e;  --bad-soft: #fbe1de;
  --wait: #7a4f00; --wait-soft: #fbeecb;
  --px: 'VEXA Pixel', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --wrap: 1200px;
  --gut: 24px;
  color-scheme: light;
}

/* ── основа ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  font-feature-settings: 'cv11' 1; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }
::selection { background: var(--eye); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.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: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; }
section[id], main[id] { scroll-margin-top: 88px; }

/* ── пиксельные углы ──
   Ступенька в 2 «пикселя» (--u) — для крупных поверхностей; одна ступенька — для кнопок, полей, меток.
   Обводка через inset-тень толщиной --u даёт пиксельную рамку без зазоров в углах. */
.panel, .glass, .plan-card, .referral-box, .result-card, .auth-card, .toast, .demo, .settings, .faq, .stat {
  --u: 4px;
  clip-path: polygon(0 calc(var(--u) * 2), var(--u) calc(var(--u) * 2), var(--u) var(--u), calc(var(--u) * 2) var(--u), calc(var(--u) * 2) 0,
    calc(100% - var(--u) * 2) 0, calc(100% - var(--u) * 2) var(--u), calc(100% - var(--u)) var(--u), calc(100% - var(--u)) calc(var(--u) * 2), 100% calc(var(--u) * 2),
    100% calc(100% - var(--u) * 2), calc(100% - var(--u)) calc(100% - var(--u) * 2), calc(100% - var(--u)) calc(100% - var(--u)), calc(100% - var(--u) * 2) calc(100% - var(--u)), calc(100% - var(--u) * 2) 100%,
    calc(var(--u) * 2) 100%, calc(var(--u) * 2) calc(100% - var(--u)), var(--u) calc(100% - var(--u)), var(--u) calc(100% - var(--u) * 2), 0 calc(100% - var(--u) * 2));
}
.btn, .input, .chip, .badge, .alert, .tab, .tabs, .choice, .app-btn, .status-pill, .keybox code, .plan-save, .badge-top, .switch, .switch .track, .toggle, .eye, .tag, .step-n, .who,
.qr #qr, .ref-stats span, .social .mark, details.faq .pm, .result-ico {
  --u: 3px;
  clip-path: polygon(var(--u) 0, calc(100% - var(--u)) 0, calc(100% - var(--u)) var(--u), 100% var(--u), 100% calc(100% - var(--u)),
    calc(100% - var(--u)) calc(100% - var(--u)), calc(100% - var(--u)) 100%, var(--u) 100%, var(--u) calc(100% - var(--u)),
    0 calc(100% - var(--u)), 0 var(--u), var(--u) var(--u));
}

/* ── раскладка ── */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; align-items: center; }
.gap-s { gap: 10px; } .gap-m { gap: 20px; } .gap-l { gap: 40px; } .gap-xl { gap: 120px; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hint { font-size: 13px; line-height: 1.5; color: var(--muted); }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 34em; }
.section { padding-top: 120px; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; max-width: 760px; }

/* ── типографика ── */
.h1, .h2, .px { font-family: var(--px); font-weight: 400; letter-spacing: 0; font-kerning: none; font-synthesis: none; }
.h1 { font-size: 90px; line-height: 1.02; text-wrap: balance; }
.h2 { font-size: 40px; line-height: 1.2; text-wrap: balance; }
.h3, .card-title { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--muted); }

/* ── шапка ── */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--paper); box-shadow: 0 2px 0 var(--ink); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px; color: var(--ink); }
.logo .px-cat { width: 32px; height: 32px; flex: none; }
.logo-word { font-family: var(--px); font-size: 20px; line-height: 1; white-space: nowrap; padding-top: 2px; }
.nav-links { display: flex; gap: 32px; font-weight: 500; font-size: 15px; }
.nav-links a { padding: 8px 0; box-shadow: inset 0 -2px 0 transparent; }
.nav-links a:hover { box-shadow: inset 0 -3px 0 var(--eye); }
.nav-actions { display: flex; gap: 10px; align-items: center; min-width: 0; }
.who { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--muted); padding: 6px 10px; background: var(--paper-2); --u: 2px; }
.who:empty { display: none; }

/* ── кнопки ──
   Основная — лайм, тёмная — чернила, контурная — пиксельная рамка. Нажатие «утапливает» кнопку. */
.btn {
  --bg: var(--eye); --fg: var(--ink); --bevel: rgb(23 20 29 / 0.22);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; cursor: pointer; white-space: nowrap;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 16px; line-height: 1.2; text-align: center;
  box-shadow: inset 0 -4px 0 var(--bevel);
  transition: background-color 0.15s, color 0.15s;
}
.btn:hover:not([disabled]) { --bg: var(--eye-2); }
.btn:active:not([disabled]) { box-shadow: inset 0 4px 0 var(--bevel); }
.btn:focus-visible { outline: 0; box-shadow: inset 0 0 0 3px var(--ink), inset 0 -4px 0 var(--bevel); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn svg { flex: none; }
.btn-main { --bg: var(--eye); --fg: var(--ink); }
.btn-ink { --bg: var(--ink); --fg: #fff; --bevel: rgb(0 0 0 / 0.45); }
.btn-ink:hover:not([disabled]) { --bg: var(--ink-2); }
.btn-ink:focus-visible { box-shadow: inset 0 0 0 3px var(--eye), inset 0 -4px 0 var(--bevel); }
.btn-line, .btn-glass { --bg: transparent; --fg: var(--ink); --bevel: transparent; box-shadow: inset 0 0 0 3px var(--ink); }
.btn-line:hover:not([disabled]), .btn-glass:hover:not([disabled]) { --bg: var(--ink); --fg: #fff; }
.btn-line:active:not([disabled]), .btn-glass:active:not([disabled]) { box-shadow: inset 0 0 0 3px var(--ink); --bg: var(--ink-2); --fg: #fff; }
.btn-line:focus-visible, .btn-glass:focus-visible { box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 6px var(--eye); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; --u: 3px; }
.btn-block { width: 100%; }
.btn-between { justify-content: space-between; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; font-size: inherit; cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--eye); }
.link-btn:hover { text-decoration-color: var(--ink); }
.px-ico { flex: none; }

/* ── поверхности ── */
.panel, .glass { background: var(--card); }
.soft { background: var(--paper-2); }
.card { padding: 28px; }
.card-lg { padding: clamp(24px, 4vw, 40px); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; font-size: 14px; font-weight: 500; background: var(--paper-2); --u: 2px; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; --u: 2px; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-wait { background: var(--wait-soft); color: var(--wait); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.dot { width: 8px; height: 8px; background: var(--ok); flex: none; display: inline-block; }
.dot-blue { background: var(--ink); }
.dot-gray { background: #8e8999; }
.alert { padding: 12px 16px; font-size: 14px; font-weight: 500; line-height: 1.5; --u: 3px; }
.alert-bad { background: var(--bad-soft); color: #8c1d17; }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; --u: 3px;
  padding: 12px 20px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; box-shadow: inset 0 -3px 0 var(--eye);
  animation: toast-in 0.25s steps(3) both;
}
@keyframes toast-in { from { transform: translate(-50%, 12px); opacity: 0; } }

/* ── формы ── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.input {
  width: 100%; height: 52px; padding: 0 16px; border: 0; --u: 3px;
  background: var(--paper); color: var(--ink); font-size: 16px;
  box-shadow: inset 0 0 0 3px transparent; transition: box-shadow 0.15s, background-color 0.15s;
}
.panel .input, .glass .input { background: var(--paper); }
.input::placeholder { color: #8e8999; }
.input:hover { box-shadow: inset 0 0 0 3px var(--line); }
.input:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 3px var(--ink); }
select.input { appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 4' width='14' height='8' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h7v1H6v1H5v1H4v1H3V3H2V2H1V1H0z' fill='%2317141d'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 56px; }
.eye { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; --u: 2px; }
.eye:hover { background: var(--paper-2); color: var(--ink); }
.eye:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.check a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--eye); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; font-weight: 500; }
.divider::before, .divider::after { content: ''; flex: 1; height: 2px; background: var(--line); }
.social { justify-content: center; gap: 12px; }
.social .mark { --u: 2px; width: 26px; height: 26px; flex: none; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--px); font-size: 20px; line-height: 1; padding-top: 2px; }
.social:hover .mark { background: var(--eye); color: var(--ink); }

/* вкладки: тёмная плашка у выбранной */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--paper-2); --u: 3px; }
.tab { flex: 1; min-height: 44px; padding: 0 14px; border: 0; background: transparent; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; --u: 2px; }
.tab:hover { color: var(--ink); background: rgb(255 255 255 / 0.6); }
.tab[aria-selected='true'] { background: var(--ink); color: #fff; }
.tab:focus-visible { outline: 0; box-shadow: inset 0 0 0 3px var(--eye); }

/* ══ главная ══ */
.home main { padding-bottom: 40px; }

/* первый экран */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: end; padding-top: 72px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; padding-bottom: 8px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-from { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.hero-from b { font-family: var(--px); font-weight: 400; font-size: 30px; line-height: 1.1; }
.hero-from span { font-size: 14px; color: var(--muted); }
.hero-art { position: relative; padding-top: min(230px, 22vw); }
.hero-cat { position: absolute; z-index: 2; top: 0; right: 28px; width: min(240px, 23vw); height: auto; }

/* демонстрация: что видят чужие глаза */
.demo { position: relative; z-index: 1; display: flex; flex-direction: column; background: var(--card); padding: 22px 24px 8px; }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; }
.demo-title { font-weight: 600; font-size: 15px; }
.demo-rows { display: flex; flex-direction: column; }
.demo-rows > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 56px; padding: 10px 0; border-top: 2px solid var(--paper); }
.demo-rows dt { font-size: 14px; color: var(--muted); }
.demo-rows dd { position: relative; min-width: 0; display: flex; align-items: center; min-height: 26px; }
.demo .real { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo .mosaic { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: none; line-height: 0; }
.demo .mosaic svg { display: block; }
.demo.is-on .real { visibility: hidden; }
.demo.is-on .mosaic { display: block; }
.demo .mosaic rect { animation: px-in 0.01s steps(1, end) both; }
@keyframes px-in { from { opacity: 0; } to { opacity: 1; } }
.demo .state { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.demo .state-on { color: var(--ok); }
.demo .state-off { color: var(--bad); }
.demo:not(.is-on) .state-on, .demo.is-on .state-off { display: none; }
.demo .tag { margin-left: auto; padding: 2px 8px; font-size: 12px; font-weight: 600; background: var(--ok-soft); color: var(--ok); --u: 2px; }
.demo:not(.is-on) .tag { background: var(--bad-soft); color: var(--bad); }
.demo:not(.is-on) .tag-on, .demo.is-on .tag-off { display: none; }

/* переключатель */
.switch { display: inline-flex; align-items: center; gap: 10px; border: 0; padding: 6px 6px 6px 12px; background: var(--paper); cursor: pointer; font-family: var(--px); font-size: 20px; line-height: 1; }
.switch .track { --u: 2px; position: relative; width: 48px; height: 26px; background: var(--paper-2); box-shadow: inset 0 0 0 2px var(--ink); transition: background-color 0.2s steps(2); }
.switch .knob { position: absolute; top: 5px; left: 5px; width: 16px; height: 16px; background: var(--ink); transition: transform 0.2s steps(4); }
.switch[aria-checked='true'] .track { background: var(--eye); }
.switch[aria-checked='true'] .knob { transform: translateX(22px); }
.switch:focus-visible { outline: 0; box-shadow: inset 0 0 0 3px var(--ink); }

/* платформы */
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 56px; padding-top: 28px; padding-bottom: 4px; }
.platforms-label { font-weight: 600; margin-right: 6px; }
.platforms .btn { margin-left: auto; }

/* шаги */
.steps-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps-row li { display: flex; flex-direction: column; gap: 10px; }
.steps-row .step-top { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.step-n { display: grid; place-items: center; width: 64px; height: 64px; flex: none; background: var(--ink); color: var(--eye); font-family: var(--px); font-size: 40px; line-height: 1; padding-top: 4px; --u: 4px; }
.steps-row .step-top::after { content: ''; flex: 1; height: 4px; background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 12px); }
.steps-row li:last-child .step-top::after { display: none; }
.steps-row h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.steps-row p { color: var(--muted); line-height: 1.6; }

/* возможности: панель настроек, где всё уже включено */
.features { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.features .section-head { margin: 0; position: sticky; top: 108px; }
.settings { background: var(--card); padding: 8px 28px; }
.setting { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 0; border-top: 2px solid var(--paper); }
.setting:first-child { border-top: 0; }
.setting .px-ico { width: 48px; height: 48px; }
.setting h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.setting p { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.toggle { position: relative; width: 52px; height: 28px; background: var(--eye); box-shadow: inset 0 0 0 2px var(--ink); flex: none; --u: 2px; }
.toggle::after { content: ''; position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; background: var(--ink); }
.setting-num { font-family: var(--px); font-size: 50px; line-height: 1; min-width: 52px; text-align: center; }

/* условия */
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 96px; }
.promises > div { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; box-shadow: inset 0 3px 0 var(--ink); }
.promises b { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.promises b .px-ico { color: var(--ok); }
.promises span { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 32px 28px 28px; background: var(--card); }
.plan-card .plan-title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.plan-card .plan-price { display: block; margin-top: 28px; font-family: var(--px); font-size: 50px; line-height: 1.1; white-space: nowrap; }
.plan-per { font-size: 15px; color: var(--muted); }
.plan-card .btn { margin-top: auto; }
.plan-card > :nth-last-child(2) { margin-bottom: 26px; }
.plan-save { align-self: flex-start; margin-top: 10px; padding: 4px 10px; font-size: 13px; font-weight: 600; background: var(--ok-soft); color: var(--ok); --u: 2px; }
.plan-card.featured { background: var(--eye); }
.plan-card.featured .plan-per { color: var(--on-eye); }
.plan-card.featured .plan-save { background: var(--ink); color: var(--eye); }
.badge-top { position: absolute; top: 24px; right: 24px; padding: 5px 10px; font-size: 13px; font-weight: 600; background: var(--ink); color: #fff; --u: 2px; }
.plan-old { text-decoration: line-through; opacity: 0.6; font-size: 15px; }
.plans-note { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 15px; }
.plans-note span { display: inline-flex; align-items: center; gap: 8px; }
.plans-note .px-ico { color: var(--ok); }
.plans > .alert { grid-column: 1 / -1; }

/* приглашения */
.referral { padding-top: 96px; }
.referral-box { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 36px 40px; background: var(--nose); }
.referral-box .px-ico { width: 64px; height: 64px; }
.referral-box .h2 { font-size: 30px; }
.referral-box .lead { color: var(--ink); font-size: 16px; margin-top: 8px; }

/* вопросы */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.faq-wrap > .h2 { position: sticky; top: 108px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
details.faq { background: var(--card); --u: 3px; }
details.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 22px; font-size: 17px; font-weight: 600; line-height: 1.4; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary:hover .pm { background: var(--eye); }
details.faq summary:focus-visible { outline: 0; box-shadow: inset 0 0 0 3px var(--ink); }
details.faq .pm { --u: 3px; flex: none; width: 32px; height: 32px; display: grid; place-items: center; background: var(--paper); transition: background-color 0.15s; }
details.faq[open] .pm { background: var(--ink); color: var(--eye); }
details.faq[open] .pm .v { display: none; }
details.faq p { padding: 0 22px 22px; max-width: 40em; font-size: 16px; line-height: 1.65; color: var(--muted); }
details.faq p a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--eye); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* подвал: в темноте от котёнка видны только глаза */
.site-foot { margin-top: 120px; background: var(--ink); color: #fff; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-top: 40px; padding-bottom: 40px; }
.site-foot .logo { color: var(--ink); }
.site-foot .logo-word { color: #fff; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.site-foot nav a { color: #d9d6e0; }
.site-foot nav a:hover { color: var(--eye); }
.site-foot a:focus-visible { outline-color: var(--eye); }
.site-foot .copy { font-size: 14px; color: #a8a3b3; }
.home .site-foot { margin-top: 120px; }

/* кнопка внизу экрана на телефоне */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); box-shadow: 0 -2px 0 var(--ink); display: none; transform: translateY(110%); transition: transform 0.25s steps(5); }
.sticky-cta .btn { width: 100%; }
.sticky-cta.show { transform: none; }

/* ══ вход и регистрация ══ */
.page { padding-top: 48px; padding-bottom: 72px; }
.auth-shell { min-height: calc(100vh - 70px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 64px; align-items: center; padding-top: 48px; padding-bottom: 72px; }
.auth-aside { display: flex; flex-direction: column; gap: 22px; max-width: 520px; }
.auth-cat { width: 168px; height: auto; }
.trust { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.trust li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.trust .px-ico { color: var(--ok); }
.auth-card { background: var(--card); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 22px; width: 100%; }
.auth-card .h2 { font-size: 30px; }
.auth-card #form-title { font-family: var(--sans); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.auth-single { min-height: calc(100vh - 70px); display: grid; place-items: center; padding-top: 48px; padding-bottom: 72px; }
.auth-single .auth-card { max-width: 480px; }

/* ══ кабинет ══ */
.page-title { margin-bottom: 32px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 20px; align-items: start; }
.account-main, .account-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.card-title { margin: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 14px; font-weight: 600; --u: 2px; }
.status-on { background: var(--ink); color: var(--eye); }
.status-on .dot { background: var(--eye); }
.status-off { background: var(--paper-2); color: var(--muted); }
.status-card { display: flex; flex-direction: column; gap: 28px; }
.status-card:has(.status-on) { background: var(--eye); }
.status-card:has(.status-on) .muted { color: var(--on-eye); }
.status-body { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; }
.status-body .days { display: flex; flex-direction: column; gap: 8px; }
.status-meta { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.big-num { font-family: var(--px); font-weight: 400; font-size: 80px; line-height: 0.9; }
.keybox { display: flex; gap: 8px; align-items: stretch; }
.keybox code, .keybox .input { flex: 1; min-width: 0; }
.keybox code { display: block; padding: 13px 14px; background: var(--paper); font-family: var(--mono); font-size: 14px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connect-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 760px) { .connect-grid:has(.qr:not([hidden])) { grid-template-columns: minmax(0, 1fr) 200px; } }
.qr { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.qr #qr { width: 192px; height: 192px; padding: 10px; background: #fff; box-shadow: inset 0 0 0 3px var(--ink); --u: 3px; }
.qr svg { width: 100%; height: 100%; }
.tabs-sm { display: inline-flex; flex-wrap: wrap; max-width: 100%; }
.tabs-sm .tab { flex: 0 0 auto; min-height: 38px; font-size: 14px; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--muted); }
.steps b { color: var(--ink); font-weight: 600; }
.steps a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--eye); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.app-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; background: var(--paper); font-weight: 600; font-size: 14px; color: var(--ink); box-shadow: inset 0 -3px 0 var(--paper-2); --u: 2px; }
.app-btn:hover { background: var(--ink); color: #fff; box-shadow: none; }
.app-btn:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--ink); }
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.choice {
  display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 14px 16px; border: 0; cursor: pointer;
  background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 3px transparent; transition: box-shadow 0.15s, background-color 0.15s;
}
.choice:hover { box-shadow: inset 0 0 0 3px var(--line); }
.choice[aria-pressed='true'] { background: #fff; box-shadow: inset 0 0 0 3px var(--ink), inset 0 -8px 0 -3px var(--eye); }
.choice:focus-visible { outline: 0; box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 6px var(--eye); }
.choice .t { font-weight: 600; font-size: 15px; }
.choice .p { font-family: var(--px); font-size: 30px; line-height: 1.2; margin: 4px 0 2px; }
.choice .s { font-size: 13px; color: var(--muted); }
.choice.method { flex-direction: row; align-items: center; gap: 12px; min-height: 52px; }
#promo-msg.ok { color: var(--ok); font-weight: 600; }
#promo-msg.bad { color: var(--bad); font-weight: 600; }
.old-price { text-decoration: line-through; opacity: 0.55; margin-right: 6px; }
.orders { display: flex; flex-direction: column; }
.order { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 0; border-top: 2px solid var(--paper); }
.order:first-child { border-top: 0; padding-top: 4px; }
.order .t { font-weight: 600; }
.linked-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 14px 0; border-top: 2px solid var(--paper); }
.linked-row:first-child { border-top: 0; padding-top: 4px; }
.linked-row .t { font-weight: 600; }
.ref-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.ref-stats span { --u: 2px; padding: 4px 10px; background: var(--paper); font-size: 13px; color: var(--muted); }
.side-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.spinner { width: 40px; height: 40px; background:
  linear-gradient(var(--ink) 0 0) 0 0 / 12px 12px no-repeat, linear-gradient(var(--ink) 0 0) 28px 0 / 12px 12px no-repeat,
  linear-gradient(var(--ink) 0 0) 28px 28px / 12px 12px no-repeat, linear-gradient(var(--ink) 0 0) 0 28px / 12px 12px no-repeat;
  animation: spin-px 0.9s steps(4) infinite; }
@keyframes spin-px { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 72px; }

/* ══ админ-панель ══ */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(150px, 45%), 1fr)); }
.stat { background: var(--card); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; --u: 3px; }
.stat-v { font-family: var(--px); font-size: 30px; line-height: 1.1; overflow-wrap: anywhere; }
.stat-l { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat.warn { background: var(--bad-soft); }
.stat.warn .stat-v { color: var(--bad); }
.admin-tabs { max-width: 560px; }
.user-row { width: 100%; background: none; border: 0; border-top: 2px solid var(--paper); cursor: pointer; font: inherit; color: inherit; text-align: left; padding-left: 8px; padding-right: 8px; }
.user-row:first-child { border-top: 0; }
.user-row:hover { background: var(--paper); }
.user-row:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.search-row { display: flex; gap: 8px; }

/* ══ результат оплаты, 404, восстановление ══ */
.result { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 48px var(--gut) 72px; }
.result-card { width: 100%; max-width: 520px; background: var(--card); padding: clamp(28px, 5vw, 48px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.result-card .lead { margin: 0 auto; font-size: 17px; }
.result-ico { width: 88px; height: 88px; display: grid; place-items: center; --u: 4px; }
.result-ico.ok { background: var(--eye); color: var(--ink); }
.result-ico.bad { background: var(--bad-soft); color: var(--bad); }
.result-ico.wait { background: var(--paper); }
.result-card .actions { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.code-404 { font-family: var(--px); font-size: 120px; line-height: 1; }
.cat-404 { width: min(200px, 56%); height: auto; margin: 0 auto; }

/* ══ документы ══ */
.legal { background: var(--card); max-width: 820px; margin: 0 auto; width: 100%; padding: clamp(24px, 5vw, 56px); display: flex; flex-direction: column; gap: 16px; }
.legal .h2 { font-size: 40px; margin-bottom: 4px; }
.legal p, .legal li { line-height: 1.7; color: #3d3946; }
.legal h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin-top: 24px; }
.legal h3 { font-size: 17px; font-weight: 600; margin-top: 8px; }
.legal ul, .legal ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.legal b { color: var(--ink); font-weight: 600; }
.legal mark { background: var(--nose-soft); padding: 0 6px; color: var(--ink); }

/* ── прочее, что встречается в старых шаблонах ── */
.ico { width: 48px; height: 48px; display: grid; place-items: center; flex: none; }
.hover-lift, .reveal-item { transition: none; }

/* ══ адаптивность ══ */
@media (max-width: 1100px) {
  .h1 { font-size: 70px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 32px; }
  .features, .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .features .section-head, .faq-wrap > .h2 { position: static; }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 48px; gap: 40px; }
  .hero-art { max-width: 520px; width: 100%; padding-top: 190px; }
  .hero-cat { width: 190px; right: 20px; }
  .account-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-shell { grid-template-columns: minmax(0, 1fr); gap: 32px; min-height: 0; justify-items: center; }
  .auth-card { order: -1; max-width: 520px; }
  .auth-aside { display: none; }
  .steps-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps-row .step-top::after { display: none; }
  .referral-box { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 28px; }
}
@media (max-width: 720px) {
  :root { --gut: 20px; }
  body { font-size: 16px; }
  .h1 { font-size: 50px; }
  .h2 { font-size: 30px; }
  .lead { font-size: 17px; }
  .section { padding-top: 88px; }
  .section-head { margin-bottom: 28px; }
  .gap-xl { gap: 88px; }
  .hide-m { display: none !important; }
  .nav { min-height: 60px; gap: 12px; }
  .nav-reg { display: none; }
  .who { display: none; }
  .hero-copy { gap: 22px; }
  .hero-cta .btn { width: 100%; }
  .hero-art { padding-top: 150px; }
  .hero-cat { width: 150px; right: 12px; }
  .demo { padding: 18px 18px 6px; }
  .demo-rows > div { grid-template-columns: 96px minmax(0, 1fr); }
  .platforms { margin-top: 40px; padding-top: 0; }
  .platforms .btn { margin-left: 0; width: 100%; }
  .setting { grid-template-columns: 40px minmax(0, 1fr); gap: 14px 16px; padding: 20px 0; align-items: start; }
  .setting .px-ico { width: 40px; height: 40px; }
  .setting .toggle, .setting .setting-num { grid-column: 2; justify-self: start; }
  .setting-num { font-size: 40px; text-align: left; }
  .settings { padding: 4px 20px; }
  .promises { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 72px; }
  .plan-card { padding: 26px 22px 22px; }
  .plan-card .plan-price { font-size: 40px; margin-top: 20px; }
  .referral { padding-top: 72px; }
  .referral-box .h2 { font-size: 30px; }
  .referral-box .btn { width: 100%; }
  details.faq summary { padding: 14px 16px; font-size: 16px; }
  details.faq p { padding: 0 16px 18px; }
  .site-foot, .home .site-foot { margin-top: 88px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 18px; }
  .site-foot nav { flex-direction: column; gap: 0; width: 100%; }
  .site-foot nav a { display: flex; align-items: center; min-height: 44px; }
  .sticky-cta:not([hidden]) { display: block; }
  .home main { padding-bottom: 0; }
  .home .site-foot { padding-bottom: 76px; }
  .page { padding-top: 32px; }
  .page-title { margin-bottom: 20px; }
  .big-num { font-size: 70px; }
  .status-meta { text-align: left; }
  .keybox { flex-direction: column; }
  .keybox .btn { width: 100%; }
  .qr #qr { width: 216px; height: 216px; }
  .tabs-sm { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tabs-sm .tab { min-height: 44px; }
  .link-btn { min-height: 44px; display: inline-flex; align-items: center; }
  .app-btn { min-height: 44px; }
  .code-404 { font-size: 90px; }
  .search-row { flex-wrap: nowrap; }
  .legal .h2 { font-size: 30px; }
}
@media (max-width: 380px) {
  .h1 { font-size: 40px; }
  .logo-word { font-size: 20px; }
  .btn-sm { padding: 0 14px; }
  .demo-rows > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (hover: none) {
  .btn-line:hover:not([disabled]), .btn-glass:hover:not([disabled]) { --bg: transparent; --fg: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .spinner { animation: spin-px 3.6s steps(4) infinite !important; }
}
@media print {
  .site-head, .site-foot, .sticky-cta { display: none; }
  body { background: #fff; }
}
