/* KeepSecure — лендинг v3. Один файл: токены, база, компоненты (в т. ч. окна из js/auth.js), секции. */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/onest-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/onest-latin.woff2) format("woff2"); 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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/inter-rub.woff2) format("woff2"); unicode-range: U+20BD; }

/* ---------- токены ---------- */
:root {
  --bg: oklch(0.975 0.003 260);
  --bg-2: oklch(1 0 0);
  --bg-3: oklch(0.948 0.005 260);
  --line: oklch(0.25 0.02 260 / 0.11);
  --line-2: oklch(0.25 0.02 260 / 0.2);
  --tx: oklch(0.21 0.015 260);
  --tx-2: oklch(0.42 0.012 260);
  --tx-3: oklch(0.53 0.01 260);
  --accent: #1D4ED8;
  --accent-hover: #1B45C2;
  --accent-tx: #1D4ED8;
  --accent-soft: oklch(0.95 0.028 264);
  --on-accent: #fff;
  --ok: oklch(0.5 0.12 155);
  --err: oklch(0.52 0.19 27);
  --err-soft: oklch(0.955 0.025 27);
  --ok-soft: oklch(0.955 0.035 155);
  --shadow: 0 1px 2px oklch(0.2 0.02 260 / 0.05), 0 12px 32px -12px oklch(0.2 0.02 260 / 0.14);
  --shadow-lg: 0 2px 4px oklch(0.2 0.02 260 / 0.06), 0 32px 64px -24px oklch(0.2 0.02 260 / 0.28);
  --ph-frame: oklch(0.2 0.012 260);
  --ph-bg: oklch(0.985 0.002 260);
  --ph-raise: oklch(1 0 0);

  --font: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-s: 8px; --r-m: 12px; --r-l: 20px; --r-xl: 28px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --gut: 24px;
  --hd-h: 64px;
  /* совместимость со строчными стилями js/auth.js */
  --s-4: 16px; --s-5: 20px; --accent-ink: var(--accent-tx);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: oklch(0.165 0.008 260);
  --bg-2: oklch(0.205 0.009 260);
  --bg-3: oklch(0.245 0.01 260);
  --line: oklch(1 0 0 / 0.09);
  --line-2: oklch(1 0 0 / 0.17);
  --tx: oklch(0.95 0.004 260);
  --tx-2: oklch(0.77 0.008 260);
  --tx-3: oklch(0.65 0.01 260);
  --accent-hover: #2457E6;
  --accent-tx: oklch(0.76 0.12 262);
  --accent-soft: oklch(0.29 0.07 264);
  --ok: oklch(0.76 0.14 155);
  --err: oklch(0.74 0.15 27);
  --err-soft: oklch(0.28 0.06 27);
  --ok-soft: oklch(0.28 0.05 155);
  --shadow: 0 0 0 1px var(--line);
  --shadow-lg: 0 0 0 1px var(--line), 0 32px 64px -24px oklch(0 0 0 / 0.6);
  --ph-frame: oklch(0.3 0.012 260);
  --ph-bg: oklch(0.15 0.008 260);
  --ph-raise: oklch(0.21 0.009 260);
  color-scheme: dark;
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--hd-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--tx); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-tx); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(1200px + var(--gut) * 2); margin-inline: auto; padding-inline: max(var(--gut), env(safe-area-inset-left)) max(var(--gut), env(safe-area-inset-right)); }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: var(--r-m); background: var(--tx); color: var(--bg); font-weight: 500; }
.skip:focus { top: 12px; }

h1, h2 { font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.375rem, 1.2rem + 4.6vw, 4.25rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.1vw, 2.75rem); line-height: 1.08; letter-spacing: -0.028em; }
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
main p a, .faq-a a { color: var(--accent-tx); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-m); font-weight: 500; font-size: 1rem; line-height: 1; white-space: nowrap; user-select: none; transition: background-color .15s, border-color .15s, transform .12s var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1.0625rem; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-secondary { background: var(--bg-2); color: var(--tx); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.btn-link { cursor: pointer; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--r-m); display: grid; place-items: center; color: var(--tx-2); transition: background-color .15s, color .15s, transform .12s var(--ease-out); }
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-secondary:hover { background: var(--bg-3); }
  .icon-btn:hover { background: var(--bg-3); color: var(--tx); }
}
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent-tx); font-weight: 500; font-size: 0.9375rem; }
.more .ic { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
@media (hover: hover) { .more:hover .ic { transform: translateX(3px); } }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; display: inline-block; }

/* ---------- шапка ---------- */
.hd { position: sticky; top: 0; z-index: 40; background: color-mix(in oklch, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; padding-top: env(safe-area-inset-top); }
.hd.is-stuck { border-bottom-color: var(--line); }
.hd-in { display: flex; align-items: center; gap: 32px; height: var(--hd-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.015em; min-height: 44px; }
.brand img { border-radius: 8px; }
.hd-nav { display: flex; gap: 4px; margin-right: auto; }
.hd-nav a { padding: 10px 12px; border-radius: var(--r-s); color: var(--tx-2); font-size: 0.9375rem; transition: color .15s, background-color .15s; }
.hd-act { display: flex; align-items: center; gap: 8px; }
.hd-login { padding: 10px 12px; color: var(--tx-2); font-size: 0.9375rem; font-weight: 500; border-radius: var(--r-s); }
@media (hover: hover) { .hd-nav a:hover, .hd-login:hover { color: var(--tx); background: var(--bg-3); } }
.hd-menu { display: none; }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }
@media (max-width: 960px) {
  .hd-nav, .hd-login, .hd-cta { display: none; }
  .hd-act { margin-left: auto; gap: 4px; }
  .hd-menu { display: grid; }
  :root { --hd-h: 56px; }
}

/* ---------- первый экран ---------- */
.hero { position: relative; overflow: clip; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 48px; min-height: min(760px, calc(100svh - var(--hd-h))); padding-block: 48px 72px; }
.hero-note { display: inline-flex; align-items: center; gap: 10px; color: var(--tx-2); font-size: 0.9375rem; margin-bottom: 24px; }
.hero h1 { max-width: 13ch; }
.lead { margin-top: 24px; max-width: 34em; color: var(--tx-2); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 28px; color: var(--tx-3); font-size: 0.875rem; }
.hero-facts li + li::before { content: "·"; margin: 0 10px; }

.stage { position: relative; display: grid; justify-items: center; gap: 20px; }
.stage-rings { position: absolute; left: 50%; top: 42%; width: 1200px; height: 1200px; translate: -50% -50%; fill: none; stroke: var(--line); stroke-width: 1; pointer-events: none; -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 92%); mask: radial-gradient(closest-side, #000 20%, transparent 92%); }
.stage-cap { position: relative; color: var(--tx-3); font-size: 0.875rem; min-height: 1.4em; text-align: center; }

/* телефон */
.phone { --pw: 292px; position: relative; width: var(--pw); aspect-ratio: 292 / 552; padding: 9px; border-radius: 48px; background: var(--ph-frame); box-shadow: var(--shadow-lg), inset 0 0 0 1px oklch(1 0 0 / 0.14); }
.ph-screen { position: relative; height: 100%; border-radius: 39px; background: var(--ph-bg); overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 50px 14px 14px; color: var(--tx); }
.ph-island { position: absolute; top: 11px; left: 50%; width: 84px; height: 25px; margin-left: -42px; border-radius: 14px; background: #000; z-index: 3; }
.ph-brand { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.ph-brand img { border-radius: 6px; }
.ph-status { display: inline-flex; align-items: center; justify-content: center; min-width: 126px; gap: 7px; margin-top: 12px; padding: 5px 11px; border-radius: 99px; background: var(--bg-3); color: var(--tx-3); font-size: 12px; font-weight: 500; line-height: 1.2; transition: color .3s, background-color .3s; }
.ph-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ph-btn { position: relative; width: 132px; height: 132px; margin-top: 18px; border-radius: 50%; flex: none; transition: transform .16s var(--ease-out); }
.ph-btn:active { transform: scale(0.96); }
.ph-btn:focus-visible { border-radius: 50%; outline-offset: 4px; }
.ph-ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; fill: none; stroke-width: 5; stroke-linecap: round; }
.ph-ring-tr { stroke: var(--bg-3); }
.ph-ring-arc { stroke: var(--accent); stroke-dasharray: 100 100; stroke-dashoffset: 100; opacity: 0; transition: stroke-dashoffset .45s var(--ease-out), opacity .2s .3s; }
.ph-core { position: absolute; inset: 15px; border-radius: 50%; background: var(--ph-raise); box-shadow: 0 1px 2px oklch(0.2 0.02 260 / 0.08), 0 8px 20px -8px oklch(0.2 0.02 260 / 0.22), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--tx-3); font-size: 11px; font-weight: 500; transition: color .3s, background-color .4s; }
.ph-core .ic { width: 30px; height: 30px; stroke-width: 1.5; }
.ph-timer { margin-top: 14px; text-align: center; line-height: 1.1; }
.ph-timer b { display: block; font-size: 26px; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--tx-3); transition: color .3s; }
.ph-timer small { font-size: 10.5px; color: var(--tx-3); }
.ph-card, .ph-row { width: 100%; border-radius: 13px; background: var(--ph-raise); box-shadow: inset 0 0 0 1px var(--line); font-size: 11.500px; }
.ph-card { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 9px 11px; line-height: 1.25; }
.ph-card b { display: block; font-weight: 600; font-size: 12px; }
.ph-card small { color: var(--tx-3); font-size: 10.500px; }
.ph-days { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 2.500px var(--accent); }
.ph-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 9px 11px; color: var(--tx-2); }
.ph-row b { font-weight: 600; color: var(--tx); transition: color .3s; }
.ph-notif { position: absolute; z-index: 2; top: 42px; left: 8px; right: 8px; display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 20px; background: var(--ph-raise); box-shadow: 0 8px 24px -8px oklch(0 0 0 / 0.3), inset 0 0 0 1px var(--line); font-size: 11px; line-height: 1.3; transform: translateY(-180%); opacity: 0; transition: transform .5s var(--ease-out), opacity .3s; pointer-events: none; }
.ph-notif img { border-radius: 8px; }
.ph-notif > span { flex: 1; min-width: 0; }
.ph-notif-h { display: flex; justify-content: space-between; }
.ph-notif-h b { font-weight: 600; }
.ph-notif-h time { color: var(--tx-3); font-size: 10px; }
.ph-notif-b { display: block; color: var(--tx-2); }
.ph-notif.show { transform: none; opacity: 1; }

.phone[data-state="connecting"] .ph-ring-arc { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset 1.5s var(--ease-io), opacity .1s; }
.phone[data-state="connecting"] .ph-status { color: var(--accent-tx); background: var(--accent-soft); }
.phone[data-state="connecting"] .ph-core { color: var(--accent-tx); }
.phone[data-state="on"] .ph-ring-arc { stroke-dashoffset: 0; opacity: 1; }
.phone[data-state="on"] .ph-status { color: var(--ok); background: var(--ok-soft); }
.phone[data-state="on"] .ph-core { background: var(--accent); color: #fff; }
.phone[data-state="on"] .ph-timer b { color: var(--tx); }
.phone[data-state="on"] #phEnc { color: var(--ok); }

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding-block: 32px 0; }
  .hero h1 { max-width: 14ch; }
  .stage { height: 480px; align-content: start; overflow: hidden; margin-inline: calc(var(--gut) * -1); padding-top: 34px; -webkit-mask: linear-gradient(#000 86%, transparent); mask: linear-gradient(#000 86%, transparent); }
  .stage-rings { top: 250px; }
  .stage-cap { position: absolute; top: 0; left: 0; right: 0; }
}
@media (max-width: 520px) {
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-facts { margin-top: 20px; display: grid; gap: 6px; }
  .hero-facts li + li::before { content: none; }
}

/* ---------- секции ---------- */
.sec { padding-block: clamp(72px, 9vw, 128px); }
.sec-alt { background: var(--bg-3); }
[data-theme="dark"] .sec-alt { background: oklch(0.14 0.008 260); }
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head p { margin-top: 16px; color: var(--tx-2); font-size: 1.0625rem; max-width: 36em; }
.panel { background: var(--bg-2); border-radius: var(--r-l); box-shadow: var(--shadow); }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.step-ring { width: 48px; height: 48px; margin-bottom: 20px; }
.step-ring circle { fill: none; stroke: var(--line-2); stroke-width: 2; }
.step-ring .arc { stroke: var(--accent-tx); stroke-width: 2.500; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 24px 24px; }
.step-ring text { fill: var(--tx); font: 500 15px var(--font); font-variant-numeric: tabular-nums; }
.steps p { margin-top: 8px; color: var(--tx-2); font-size: 1rem; max-width: 30em; }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding-block: 20px; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; padding-top: 0; }
  .step-ring { grid-row: span 2; margin: 0; }
  .steps h3 { align-self: center; }
  .steps p { grid-column: 2; margin-top: 4px; }
}

/* возможности */
.feat { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.feat .panel { padding: 32px; }
.feat h3 { font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.2; }
.feat p { margin-top: 12px; color: var(--tx-2); }
.feat-dev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.devlist { display: grid; gap: 8px; }
.devlist li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-m); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.devlist .ic { color: var(--tx-2); }
.devlist span { flex: 1; min-width: 0; line-height: 1.25; }
.devlist b { display: block; font-weight: 500; font-size: 0.9375rem; }
.devlist small { color: var(--tx-3); font-size: 0.8125rem; }
.devlist em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; color: var(--tx-2); font-size: 0.8125rem; white-space: nowrap; }
.feat-priv { display: flex; flex-direction: column; }
.feat-priv blockquote { margin-top: 20px; padding-left: 16px; border-left: 2px solid var(--accent-tx); color: var(--tx); font-size: 0.9375rem; line-height: 1.5; }
.feat-priv .more { margin-top: auto; padding-top: 12px; align-self: flex-start; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line-2); }
.facts dt { font-weight: 500; font-size: 1.0625rem; }
.facts dd { margin-top: 6px; color: var(--tx-2); font-size: 0.9375rem; }
@media (max-width: 1040px) { .feat { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .feat .panel { padding: 24px 20px; }
  .feat-dev { grid-template-columns: 1fr; gap: 24px; }
  .facts { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; padding-top: 24px; }
}

/* переключатели (и в окне входа) */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 14px; background: var(--bg-3); }
.seg-block { display: flex; width: 100%; }
.seg-block > * { flex: 1 1 0; }
.seg button { min-height: 44px; padding: 6px 12px; border-radius: 11px; color: var(--tx-2); font-weight: 500; font-size: 0.9375rem; transition: color .15s, background-color .2s, box-shadow .2s, transform .12s var(--ease-out); }
.seg button:active { transform: scale(0.97); }
.seg [aria-pressed="true"], .seg [aria-checked="true"] { background: var(--bg-2); color: var(--tx); box-shadow: 0 1px 2px oklch(0.2 0.02 260 / 0.1), inset 0 0 0 1px var(--line); }
[data-theme="dark"] .seg [aria-pressed="true"], [data-theme="dark"] .seg [aria-checked="true"] { background: oklch(0.31 0.012 260); }

/* тарифы */
.cfg { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: var(--bg-2); border-radius: var(--r-xl); box-shadow: var(--shadow); overflow: hidden; }
.cfg-pick { padding: 40px; }
.cfg-sum { padding: 40px; background: var(--bg); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
[data-theme="dark"] .cfg-sum { background: oklch(0.185 0.009 260); }
.cfg-label { font-weight: 500; margin-bottom: 12px; }
.cfg-seg button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 68px; }
.cfg-seg b { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.cfg-seg small { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 400; color: var(--tx-3); }
.cfg-seg [aria-checked="true"] b { color: var(--accent-tx); }
.save:not(:empty) { color: var(--ok); font-weight: 500; }
.slots { display: flex; gap: 6px; margin-top: 20px; }
.slots i { flex: 1 1 0; max-width: 56px; aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; color: var(--tx-3); box-shadow: inset 0 0 0 1px var(--line); opacity: 0.45; transition: background-color .25s, color .25s, opacity .25s, transform .3s var(--ease-out), box-shadow .25s; }
.slots .ic { width: 55%; height: 55%; }
.slots i.on { background: var(--accent-soft); color: var(--accent-tx); box-shadow: none; opacity: 1; }
.cfg-hint { margin: 12px 0 32px; color: var(--tx-3); font-size: 0.875rem; }
.cfg-cap { color: var(--tx-2); font-size: 0.9375rem; }
.cfg-price { margin-top: 4px; font-size: clamp(3rem, 2rem + 3vw, 4.25rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; overflow: hidden; padding-block: 4px; }
.cfg-price b { display: inline-block; font-weight: 600; }
.cfg-price b.roll { animation: roll .28s var(--ease-out); }
@keyframes roll { from { transform: translateY(0.35em); opacity: 0; } }
.cfg-per { margin-top: 6px; color: var(--tx-2); font-size: 0.9375rem; min-height: 1.5em; }
.cfg-incl { display: grid; gap: 8px; margin: 24px 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.cfg-incl li { display: flex; align-items: center; gap: 10px; }
.cfg-incl .ic { width: 18px; height: 18px; color: var(--ok); stroke-width: 2; }
.cfg-sum .btn { margin-top: auto; }
.cfg-src { margin-top: 12px; text-align: center; color: var(--tx-3); font-size: 0.8125rem; }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 40px; color: var(--tx-2); font-size: 0.9375rem; }
.notes b { display: block; color: var(--tx); font-weight: 500; margin-bottom: 4px; }
@media (max-width: 900px) {
  .cfg { grid-template-columns: 1fr; }
  .cfg-sum { border-left: 0; border-top: 1px solid var(--line); }
  .cfg-hint { margin-bottom: 24px; }
  .notes { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
}
@media (max-width: 560px) {
  .cfg { margin-inline: -8px; border-radius: var(--r-l); }
  .cfg-pick, .cfg-sum { padding: 24px 16px; }
  .slots { gap: 4px; }
  .slots i { border-radius: 8px; }
  .cfg-seg small { font-size: 0.75rem; gap: 4px; }
}

/* условия */
.terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.terms > div { padding: 28px 28px 0 0; }
.terms > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.terms p { margin-top: 10px; color: var(--tx-2); font-size: 0.9375rem; }
.terms .more { margin-top: 4px; }
.doclist { margin-top: 4px; }
.doclist a { display: flex; align-items: center; min-height: 44px; color: var(--accent-tx); font-size: 0.9375rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in oklch, currentColor 35%, transparent); }
.req { margin-top: 10px; font-size: 0.9375rem; }
.req dt { color: var(--tx-3); font-size: 0.8125rem; }
.req dd { margin-bottom: 10px; overflow-wrap: anywhere; }
.req a { color: var(--accent-tx); display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 960px) {
  .terms { grid-template-columns: 1fr 1fr; }
  .terms > div { padding: 24px 24px 24px 0; }
  .terms > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .terms > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .terms { grid-template-columns: 1fr; }
  .terms > div, .terms > div + div { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .terms > div:first-child { border-top: 0; }
}

/* приложения */
.plats { display: flex; flex-wrap: wrap; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.5; }
.plats li { white-space: nowrap; }
.plats li:not(:last-child)::after { content: "/"; margin: 0 0.6em; color: var(--tx-3); font-weight: 400; }
.winapp { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 20px; margin-top: 40px; padding: 24px 28px; max-width: 820px; }
.winapp-ic { width: 48px; height: 48px; border-radius: var(--r-m); background: var(--accent-soft); color: var(--accent-tx); display: grid; place-items: center; }
.winapp-ic .ic { width: 24px; height: 24px; }
.winapp-t p { margin-top: 2px; color: var(--tx-2); font-size: 0.875rem; }
.ver { margin-left: 6px; color: var(--tx-3); font-size: 0.8125rem; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.winapp-note { grid-column: 1 / -1; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--tx-3); font-size: 0.8125rem; max-width: none; }
@media (max-width: 720px) {
  .winapp { grid-template-columns: auto minmax(0, 1fr); padding: 20px; }
  .winapp .btn { grid-column: 1 / -1; margin-top: 8px; }
}

/* вопросы */
.faq-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-in .sec-head { margin-bottom: 0; position: sticky; top: calc(var(--hd-h) + 32px); }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0; font-weight: 500; font-size: 1.0625rem; line-height: 1.35; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--tx-3); transition: transform .25s var(--ease-out), color .15s; }
.faq details[open] summary .ic { transform: rotate(45deg); color: var(--tx); }
.faq-a { padding: 0 40px 24px 0; color: var(--tx-2); }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size .3s var(--ease-out), opacity .25s, content-visibility .3s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; opacity: 1; }
}
@media (hover: hover) { .faq summary:hover .ic { color: var(--tx); } }
@media (max-width: 900px) {
  .faq-in { grid-template-columns: 1fr; gap: 32px; }
  .faq-in .sec-head { position: static; }
  .faq-a { padding-right: 0; }
}

/* финальный призыв */
.final { padding-block: clamp(80px, 10vw, 144px); text-align: center; }
.final-in { display: flex; flex-direction: column; align-items: center; }
.final-ring { width: 56px; height: 56px; rotate: -90deg; fill: none; stroke-width: 6; stroke-linecap: round; margin-bottom: 28px; }
.final-ring circle { stroke: var(--line-2); }
.final-ring .arc { stroke: var(--accent-tx); stroke-dasharray: 100 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.2s var(--ease-io) .15s; }
.final.in .final-ring .arc, html:not(.rvjs) .final-ring .arc { stroke-dashoffset: 0; }
.final h2 { max-width: 18ch; }
.final p { margin-top: 16px; color: var(--tx-2); max-width: 32em; }
.final .hero-cta { justify-content: center; }

/* подвал */
.ft { border-top: 1px solid var(--line); padding-block: 56px calc(40px + env(safe-area-inset-bottom)); font-size: 0.9375rem; }
.ft-in { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.ft-brand p { margin-top: 12px; color: var(--tx-3); max-width: 22em; font-size: 0.875rem; }
.ft-col { display: flex; flex-direction: column; align-items: flex-start; }
.ft-col h3 { font-size: 0.875rem; color: var(--tx-3); font-weight: 400; margin-bottom: 8px; }
.ft-col a { display: block; padding-block: 7px; color: var(--tx-2); transition: color .15s; }
@media (hover: hover) { .ft-col a:hover { color: var(--tx); } }
.ft-legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--tx-3); font-size: 0.8125rem; }
@media (max-width: 900px) {
  .ft-in { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ft-col a { padding-block: 11px; }
  .ft { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
}
@media (max-width: 680px) {
  .ft-in { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
  .ft-col a { padding-block: 11px; }
  .ft { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
}

/* закреплённая полоса на телефоне */
.dock { position: fixed; z-index: 30; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 18px; background: color-mix(in oklch, var(--bg-2) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); transform: translateY(140%); transition: transform .35s var(--ease-out); }
.dock p { line-height: 1.25; }
.dock b { display: block; font-weight: 500; font-size: 0.9375rem; }
.dock small { color: var(--tx-3); font-size: 0.8125rem; }
.dock.show { transform: none; }
@media (max-width: 960px) { .dock:not([hidden]) { display: flex; } }

/* появление при прокрутке */
.rvjs .rv { opacity: 0; transform: translateY(10px); }
.rvjs .rv.in { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- окна: меню и js/auth.js ---------- */
.dialog-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: oklch(0.15 0.01 260 / 0.55); overflow-y: auto; overscroll-behavior: contain; animation: fade .2s ease-out; }
.dialog { width: 100%; max-width: 440px; border-radius: 24px; background: var(--bg-2); color: var(--tx); box-shadow: var(--shadow-lg); animation: pop .26s var(--ease-out); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 0 24px; font-weight: 500; }
.dialog-close { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--tx-2); font-size: 26px; line-height: 1; font-weight: 300; transition: background-color .15s; }
@media (hover: hover) { .dialog-close:hover { background: var(--bg-3); color: var(--tx); } }
.dialog-body { padding: 4px 24px 24px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@media (max-width: 560px) {
  .dialog-backdrop { place-items: end center; padding: 0; }
  .dialog { max-width: none; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); animation-name: sheet; animation-duration: .32s; }
  .dialog-body { padding-inline: 16px; }
  @keyframes sheet { from { transform: translateY(100%); } }
}
.menu-sheet { place-items: start center; padding: 0; }
.menu-sheet .dialog { max-width: none; border-radius: 0 0 24px 24px; padding-top: env(safe-area-inset-top); animation-name: drop; }
@keyframes drop { from { transform: translateY(-24px); opacity: 0; } }
.menu-nav { display: grid; margin-bottom: 16px; }
.menu-nav a { display: flex; align-items: center; min-height: 52px; font-size: 1.125rem; font-weight: 500; border-bottom: 1px solid var(--line); }
.menu-sheet .btn + .btn { margin-top: 8px; }

.auth-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding-bottom: 14px; }
.auth-brand img { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 8px; }
.auth-brand h2 { font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.2; }
.auth-brand p { color: var(--tx-2); font-size: 0.9375rem; }
.auth-form { display: grid; gap: 12px; }
.auth-form .notice { order: -1; }
.auth-dialog .dialog-head { padding-top: 8px; }
.auth-dialog .seg { margin-bottom: 14px !important; }
.field { display: grid; gap: 6px; }
.label { font-size: 0.875rem; font-weight: 500; }
.label .opt { display: inline; padding: 0; border: 0; box-shadow: none; background: none; color: var(--tx-3); font-weight: 400; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.label-row a { color: var(--accent-tx); font-size: 0.875rem; }
.input { width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-m); border: 0; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 1rem; transition: box-shadow .15s; }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent-tx); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--err); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 48px; }
.input-act { position: absolute; right: 1px; top: 1px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--tx-3); border-radius: 10px; }
.input-act[aria-pressed="true"] { color: var(--accent-tx); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--tx-2); line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.check a { color: var(--accent-tx); text-decoration: underline; }
.notice { padding: 12px 14px; border-radius: var(--r-m); font-size: 0.875rem; line-height: 1.45; }
.notice-error { background: var(--err-soft); color: var(--err); }
.notice-success { background: var(--ok-soft); color: var(--ok); }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 12px 0; color: var(--tx-3); font-size: 0.8125rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tg-dot { width: 22px; height: 22px; border-radius: 50%; background: #2AABEE; display: grid; place-items: center; flex: none; }
.tg-dot svg { width: 12px; height: 12px; fill: #fff; }
.auth-foot, .auth-note { text-align: center; margin-top: 8px; font-size: 0.875rem; color: var(--tx-2); }
.auth-foot button, .auth-note button { color: var(--accent-tx) !important; font-weight: 500 !important; min-height: 44px; padding-inline: 6px !important; }
button.opt, a.opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); text-align: left; transition: box-shadow .15s, transform .12s var(--ease-out); }
.opt + .opt { margin-top: 8px; }
button.opt:active, a.opt:active { transform: scale(0.985); }
@media (hover: hover) { button.opt:hover, a.opt:hover { box-shadow: inset 0 0 0 1px var(--accent-tx); } }
.opt-ic { width: 44px; height: 44px; border-radius: var(--r-m); flex: none; display: grid; place-items: center; color: #fff; }
.opt-ic svg { width: 22px; height: 22px; }
.opt-ic.tg { background: #2AABEE; }
.opt-ic.tg svg { fill: #fff; }
.opt-ic.site, .opt-ic.code { background: var(--accent); }
.opt-ic.site svg, .opt-ic.code svg { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.opt > span:not(.opt-ic) { flex: 1; min-width: 0; }
.opt b { display: block; font-weight: 500; }
.opt small { display: block; color: var(--tx-2); font-size: 0.8125rem; line-height: 1.4; margin-top: 2px; }
.opt .chev { color: var(--tx-3); }
.pick-tariff { display: flex; justify-content: center; margin: -8px 0 20px; }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 99px; font-size: 0.8125rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.badge-brand { background: var(--accent-soft); color: var(--accent-tx); }
.tg-busy { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 0; color: var(--tx-2); }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent-tx); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast-region { position: fixed; z-index: 80; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--tx); color: var(--bg); font-size: 0.9375rem; box-shadow: var(--shadow-lg); animation: pop .25s var(--ease-out); }
.toast-item.is-leaving { opacity: 0; transition: opacity .2s; }

/* ---------- меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .rvjs .rv { opacity: 1; transform: none; }
}

/* «Забыли пароль?» — только на вкладке входа */
.auth-dialog:has(#authTabs [data-mode="signup"][aria-pressed="true"]) #aForgot { display: none; }

/* правки после проверки */
[data-theme="dark"] .cfg-seg [aria-checked="true"] small { color: var(--tx-2); }
[data-theme="dark"] .stage-rings { stroke: oklch(1 0 0 / 0.14); }
[data-theme="dark"] .ph-ring-tr { stroke: oklch(0.3 0.012 260); }
[data-theme="dark"] .phone { --ph-frame: oklch(0.36 0.012 260); }
@media (min-width: 1200px) { .phone { --pw: 316px; } }
.check { min-height: 44px; align-items: center; }
.check input { width: 22px; height: 22px; margin: 0; }
