/* XBM 5 — сайт, документация и личный кабинет.
   Одна система: системный шрифт (SF на Apple), три радиуса, один акцент. Без внешних ресурсов (CSP: style-src 'self'). */

:root {
    --bg: #000;
    --bg-alt: #0c0c0d;
    --surface: #161617;
    --surface-2: #1d1d1f;
    --surface-3: #2a2a2d;
    --line: rgba(255, 255, 255, .09);
    --line-2: rgba(255, 255, 255, .16);
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --accent: #2997ff;
    --accent-btn: #0071e3;
    --accent-btn-hover: #0077ed;
    --accent-soft: rgba(41, 151, 255, .14);
    --ok: #30d158;
    --ok-soft: rgba(48, 209, 88, .14);
    --warn: #ffb340;
    --warn-soft: rgba(255, 179, 64, .13);
    --bad: #ff6961;
    --bad-soft: rgba(255, 105, 97, .13);

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

    --radius: 22px;
    --radius-sm: 12px;
    --pill: 980px;

    --wrap: 1024px;
    --wrap-wide: 1200px;
    --gutter: 22px;

    --ease: cubic-bezier(.25, .1, .25, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --nav-h: 48px;
    color-scheme: dark;
}

/* ─── Основа ────────────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.47 var(--font); letter-spacing: -.022em;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: rgba(41, 151, 255, .35); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }
code, kbd, .mono { font-family: var(--mono); font-size: .88em; letter-spacing: 0; }
b, strong { font-weight: 600; color: var(--text); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--text); text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: calc(var(--wrap-wide) + var(--gutter) * 2); }
@media (max-width: 734px) { :root { --gutter: 16px; } body { font-size: 16px; } }

/* Типографика: размер, межстрочный и трекинг идут вместе */
.t-hero { font-size: clamp(2.6rem, 7.2vw, 5rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
.t-1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: 1.07; letter-spacing: -.03em; font-weight: 700; }
.t-2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -.025em; }
.t-3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.2; letter-spacing: -.018em; }
.t-lead { font-size: clamp(1.1rem, 2.1vw, 1.32rem); line-height: 1.42; letter-spacing: -.02em; color: var(--text-2); font-weight: 500; }
.t-lead b { color: var(--text); font-weight: 600; }
.t-eyebrow { font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; color: var(--accent); }
.t-small { font-size: .82rem; line-height: 1.4; letter-spacing: -.01em; }
.muted, .dim { color: var(--text-2); }
.faint, .mute { color: var(--text-3); }

/* ─── Кнопки и ссылки ──────────────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: var(--pill);
    border: 0; background: var(--surface-3); color: var(--text); font: 500 1rem/1 var(--font); letter-spacing: -.01em; cursor: pointer;
    white-space: nowrap; text-decoration: none; -webkit-tap-highlight-color: transparent;
    transition: background-color .2s var(--ease), color .2s var(--ease), transform .12s var(--ease), opacity .2s var(--ease); }
.btn:hover { background: #3a3a3d; text-decoration: none; color: var(--text); }
.btn:active:not([disabled]) { transform: scale(.97); transition-duration: .06s; }
.btn.pri { background: var(--accent-btn); color: #fff; }
.btn.pri:hover { background: var(--accent-btn-hover); }
.btn.ghost { background: transparent; color: var(--accent); padding: 0 12px; }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.lg { min-height: 50px; padding: 0 28px; font-size: 1.06rem; }
.btn.sm { min-height: 34px; padding: 0 16px; font-size: .88rem; }
.btn.block { width: 100%; }
.btn.danger { color: var(--bad); }
.btn[disabled] { opacity: .45; cursor: default; }
.more { display: inline-flex; align-items: center; font-weight: 500; color: var(--accent); }
.more::after { content: ""; width: 7px; height: 7px; margin-left: 6px; border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: rotate(45deg);
    transition: transform .25s var(--ease-out); }
.more:hover { text-decoration: underline; }
.more:hover::after { transform: translateX(3px) rotate(45deg); }

/* ─── Шапка ─────────────────────────────────────────────────────────────────────────────────── */
.gnav { position: sticky; top: 0; z-index: 100; height: var(--nav-h); background: rgba(22, 22, 23, .72);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.gnav.scrolled { background: rgba(22, 22, 23, .86); box-shadow: 0 1px 0 var(--line); }
.gnav-in { display: flex; align-items: center; gap: 8px; height: 100%; max-width: calc(var(--wrap-wide) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; margin-right: auto; }
.brand::after { content: "5"; font-size: .7rem; font-weight: 700; line-height: 1; padding: 3px 6px; border-radius: var(--pill); background: var(--text); color: #000; }
.brand:hover { text-decoration: none; color: var(--text); }
.gnav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 auto; padding: 0; }
.gnav-links a { display: block; padding: 6px 10px; color: rgba(245, 245, 247, .8); font-size: .78rem; letter-spacing: -.005em; transition: color .2s var(--ease); }
.gnav-links a:hover, .gnav-links a[aria-current] { color: #fff; text-decoration: none; }
.gnav-cta { display: inline-flex; align-items: center; min-height: 28px; padding: 0 14px; border-radius: var(--pill); background: var(--accent-btn); color: #fff;
    font-size: .78rem; font-weight: 500; white-space: nowrap; transition: background-color .2s var(--ease), transform .12s var(--ease); }
.gnav-cta:hover { background: var(--accent-btn-hover); text-decoration: none; color: #fff; }
.gnav-cta:active { transform: scale(.96); }
.gnav-user { display: inline-flex; align-items: center; gap: 4px; }
.gnav-user .who { color: var(--text-2); font-size: .78rem; padding: 0 6px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gnav-user .who:empty { display: none; }
.gnav-user .btn { min-height: 28px; padding: 0 12px; font-size: .78rem; }
.gnav-burger { display: none; position: relative; flex: none; width: 44px; height: 44px; margin-right: -12px; border: 0; background: none; cursor: pointer; }
.gnav-burger span { position: absolute; left: 14px; width: 16px; height: 1.5px; border-radius: 1px; background: var(--text);
    transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.gnav-burger span:first-child { top: 18px; }
.gnav-burger span:last-child { top: 25px; }
.gnav-burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.gnav-burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }
@media (max-width: 833px) {
    .gnav-burger { display: block; }
    .gnav-cta, .gnav-user { margin-left: auto; }
    .brand { margin-right: 0; }
    .gnav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; height: calc(100dvh - var(--nav-h)); margin: 0; padding: 12px 32px 40px;
        flex-direction: column; align-items: stretch; gap: 0; background: #000;
        visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s linear .3s; overflow-y: auto; }
    .gnav-links li { opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .4s var(--ease-out); }
    .gnav-links a { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; padding: 10px 0; color: var(--text); }
    .gnav.open .gnav-links { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
    .gnav.open .gnav-links li { opacity: 1; transform: none; }
    .gnav.open .gnav-links li:nth-child(2) { transition-delay: .03s; }
    .gnav.open .gnav-links li:nth-child(3) { transition-delay: .06s; }
    .gnav.open .gnav-links li:nth-child(4) { transition-delay: .09s; }
    .gnav.open .gnav-links li:nth-child(5) { transition-delay: .12s; }
    .gnav.open .gnav-links li:nth-child(6) { transition-delay: .15s; }
    .gnav.open { background: #000; box-shadow: none; }
    body.menu-open { overflow: hidden; }
}

/* ─── Появление при прокрутке (только с JS и без reduced motion) ─────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .d1 { transition-delay: .08s; } .js .d2 { transition-delay: .16s; } .js .d3 { transition-delay: .24s; }
.js .d4 { transition-delay: .32s; } .js .d5 { transition-delay: .4s; } .js .d6 { transition-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.js .hero .rise { opacity: 0; animation: rise 1.2s var(--ease-out) forwards; }
.js .hero .rise.r2 { animation-delay: .12s; } .js .hero .rise.r3 { animation-delay: .24s; } .js .hero .rise.r4 { animation-delay: .38s; } .js .hero .rise.r5 { animation-delay: .55s; }

/* ─── Лендинг: hero ─────────────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(64px, 11vw, 132px) 0 clamp(56px, 8vw, 96px); text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 50%; top: -30%; width: min(1100px, 140vw); aspect-ratio: 1.6; transform: translateX(-50%); pointer-events: none;
    background: radial-gradient(closest-side, rgba(41, 151, 255, .16), rgba(41, 151, 255, 0)); }
.hero .wrap { position: relative; }
.hero .t-eyebrow { margin-bottom: 14px; }
.hero h1 { max-width: 20ch; margin: 0 auto; }
.hero .t-lead { max-width: 640px; margin: 22px auto 0; }
.hero-cta { display: flex; justify-content: center; align-items: center; gap: 14px 28px; flex-wrap: wrap; margin-top: 36px; }
.hero-note { margin-top: 18px; color: var(--text-3); font-size: .86rem; }

/* Терминал */
.term { position: relative; max-width: 780px; margin: clamp(48px, 7vw, 72px) auto 0; text-align: left; background: #0d0d0e; border-radius: var(--radius);
    box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(41, 151, 255, .25), 0 30px 60px -30px rgba(0, 0, 0, .9); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3c; }
.term-bar span { flex: 1; text-align: center; margin-right: 49px; color: var(--text-3); font-size: .76rem; }
.term pre { margin: 0; padding: 20px 22px 24px; font: .9rem/1.75 var(--mono); color: var(--text-2); white-space: pre-wrap; word-break: break-all; min-height: 7.6em; }
.term .p { color: var(--ok); user-select: none; }
.term .c { color: var(--text); }
.term .o { color: var(--text-3); }
.term .caret { display: inline-block; width: .55em; height: 1.1em; margin-left: 1px; vertical-align: -.2em; background: var(--text); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Полоса фактов */
.facts { padding: 8px 0 clamp(72px, 10vw, 120px); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fact { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); }
.fact b { display: block; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1; letter-spacing: -.035em; font-weight: 700; font-variant-numeric: tabular-nums; }
.fact span { display: block; margin-top: 10px; color: var(--text-2); font-size: .92rem; line-height: 1.35; }
@media (max-width: 833px) { .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact { padding: 22px 18px; } }

/* Секции */
.sec-block { padding: clamp(80px, 11vw, 140px) 0; }
.sec-block.alt { background: var(--bg-alt); }
.sec-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .t-eyebrow { margin-bottom: 12px; }
.sec-head .t-lead { margin-top: 20px; }

/* Почему 5.0: плитки */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; grid-column: span 2; display: flex; flex-direction: column; min-height: 300px; padding: 32px; border-radius: var(--radius);
    background: var(--surface); overflow: hidden; }
.tile.w3 { grid-column: span 3; }
.tile.w4 { grid-column: span 4; }
.tile.w6 { grid-column: span 6; min-height: 0; }
.tile h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.15; letter-spacing: -.022em; }
.tile p { margin: 12px 0 0; color: var(--text-2); font-size: 1rem; line-height: 1.45; }
.tile .vis { margin-top: auto; padding-top: 28px; }
.tile:not(:has(.vis)) { min-height: 220px; }
@media (max-width: 1068px) { .tile, .tile.w3, .tile.w4 { grid-column: span 3; } .tile.w6 { grid-column: span 6; } }
@media (max-width: 734px) { .bento { grid-template-columns: minmax(0, 1fr); } .tile, .tile.w3, .tile.w4, .tile.w6 { grid-column: auto; min-height: 0; padding: 28px 24px; } }

/* Визуалы внутри плиток — только типографика и простые формы */
.big-num { font-size: clamp(3.4rem, 7vw, 5.2rem); line-height: .95; letter-spacing: -.05em; font-weight: 700; font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #fff 30%, #8a8a8f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-num small { font-size: .4em; letter-spacing: -.02em; margin-left: 4px; }
.domains { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.domains li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface-2);
    font-size: .92rem; transition: opacity .6s var(--ease), background-color .6s var(--ease); }
.domains li b { font-weight: 500; }
.domains li span { color: var(--text-3); font-size: .8rem; white-space: nowrap; }
.domains li.out { opacity: .5; }
.domains li.out b { text-decoration: line-through; text-decoration-color: var(--bad); }
.domains li.out span { color: var(--bad); }
.domains li.new { background: var(--accent-soft); }
.domains li.new span { color: var(--accent); }
.otp { display: flex; align-items: center; gap: 14px; }
.otp b { font: 600 clamp(2rem, 4vw, 2.6rem)/1 var(--mono); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.otp .ring { --p: 1; flex: none; width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 360deg), var(--surface-3) 0); }
.sigs { display: flex; gap: 10px; flex-wrap: wrap; }
.sigs span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--pill); background: var(--surface-2); font-size: .88rem; color: var(--text-2); }
.sigs span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.sigs span.off::before { background: var(--bad); }
.cmd { display: block; padding: 14px 16px; border-radius: var(--radius-sm); background: #0d0d0e; box-shadow: inset 0 0 0 1px var(--line);
    font: .82rem/1.6 var(--mono); color: var(--text); white-space: normal; overflow-wrap: anywhere; }
.cmd + .cmd { margin-top: 8px; }
.cmd .p { color: var(--ok); user-select: none; }
.bar { position: relative; height: 6px; border-radius: var(--pill); background: var(--surface-3); overflow: hidden; }
.bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--accent); border-radius: inherit; }
.tile.in .bar i { transform: scaleX(1); transition: transform 2.4s var(--ease-out) .4s; }
.bar-cap { display: flex; justify-content: space-between; margin-top: 10px; color: var(--text-3); font-size: .82rem; }
.flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.flow span { padding: 10px 16px; border-radius: var(--pill); background: var(--surface-2); font-size: .92rem; font-weight: 500; }
.flow span:nth-child(2) { background: var(--accent-soft); color: var(--accent); }
.flow span + span { position: relative; margin-left: 18px; }
.flow span + span::before { content: ""; position: absolute; left: -19px; top: 50%; width: 6px; height: 6px; border: solid var(--text-3);
    border-width: 1.6px 1.6px 0 0; transform: translateY(-50%) rotate(45deg); }
@media (max-width: 734px) { .copies { grid-template-columns: minmax(0, 1fr); } }
.copies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.copies span { padding: 14px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .82rem; color: var(--text-2); min-width: 0; }
.copies span b { display: block; margin-bottom: 2px; font-size: .95rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }

/* Возможности: перечень по разделам */
.spec { border-top: 1px solid var(--line-2); }
.spec-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.spec-row h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -.02em; }
.spec-row ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.spec-row li { position: relative; padding-left: 22px; color: var(--text-2); }
.spec-row li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.tag-new { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent);
    font-size: .72rem; font-weight: 600; letter-spacing: 0; vertical-align: 2px; white-space: nowrap; }
.spec-more { margin-top: 32px; }
@media (max-width: 734px) { .spec-row { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 28px 0; } }

/* Переезд с v4: сравнение */
.compare { border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .96rem; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { padding-top: 22px; padding-bottom: 18px; color: var(--text); font-size: 1.05rem; font-weight: 600; border-bottom-color: var(--line-2); }
.compare thead th:last-child { color: var(--accent); }
.compare td:first-child { color: var(--text-2); width: 40%; }
.compare .no { color: var(--text-3); }
@media (max-width: 734px) { .compare th, .compare td { padding: 12px 14px; font-size: .86rem; } .compare td:first-child { width: 38%; } }
.move-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.move-card { padding: 28px; border-radius: var(--radius); background: var(--surface); min-width: 0; }
.move-card h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.move-card p { margin: 10px 0 18px; color: var(--text-2); font-size: .98rem; }
@media (max-width: 734px) { .move-grid { grid-template-columns: minmax(0, 1fr); } .move-card { padding: 24px 20px; } }
.move-foot { margin-top: 28px; display: flex; gap: 12px 28px; flex-wrap: wrap; align-items: center; }

/* История: шкала */
.story { position: relative; max-width: 780px; margin: 0 auto; padding-left: 40px; }
.story::before, .story-line { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--surface-3); }
.story-line { --p: 0; background: linear-gradient(var(--accent), var(--ok)); transform-origin: top; transform: scaleY(var(--p)); }
.story ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; }
.story li { position: relative; }
.story li::before { content: ""; position: absolute; left: -40px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-alt);
    box-shadow: inset 0 0 0 2px var(--surface-3); transition: box-shadow .5s var(--ease); }
.story li.lit::before { box-shadow: inset 0 0 0 5px var(--accent), 0 0 0 6px var(--accent-soft); }
.story time { display: block; color: var(--text-3); font-size: .9rem; font-variant-numeric: tabular-nums; }
.story h3 { margin-top: 4px; font-size: clamp(1.25rem, 2.2vw, 1.55rem); letter-spacing: -.022em; }
.story p { margin: 8px 0 0; color: var(--text-2); }
.story li.now h3 { color: var(--accent); }

/* Как начать */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 32px 28px; border-radius: var(--radius); background: var(--surface); counter-increment: step; }
.step::before { content: counter(step); font-size: 3rem; line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--text-3); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--text-2); font-size: .98rem; }
.step .cmd { margin-top: auto; }
@media (max-width: 833px) { .steps { grid-template-columns: minmax(0, 1fr); } .step { padding: 28px 22px; } }

/* Цена */
.price { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: clamp(32px, 5vw, 48px); border-radius: var(--radius); background: var(--surface); }
.price-card .plan { color: var(--text-2); font-weight: 500; }
.price-card .amount-xl { margin-top: 10px; font-size: clamp(4rem, 9vw, 6rem); line-height: 1; letter-spacing: -.05em; font-weight: 700; }
.price-card .amount-xl small { margin-left: 8px; font-size: .22em; letter-spacing: -.01em; font-weight: 500; color: var(--text-2); }
.price-card .btn { margin-top: 32px; align-self: flex-start; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; color: var(--text-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-soft); }
.checks li::after { content: ""; position: absolute; left: 7px; top: calc(.2em + 4px); width: 4px; height: 8px; border: solid var(--ok); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.price-side { display: grid; gap: 14px; }
.price-side .card { padding: 28px; }
.price-side h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.price-side p { margin: 10px 0 0; color: var(--text-2); font-size: .98rem; }
@media (max-width: 833px) { .price { grid-template-columns: minmax(0, 1fr); } .price-card .btn { align-self: stretch; } }

/* Вопросы */
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; display: block; padding: 24px 48px 24px 0; cursor: pointer; list-style: none; font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    font-weight: 600; letter-spacing: -.02em; -webkit-tap-highlight-color: transparent; }
.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; margin-top: -.8px;
    border-radius: 1px; background: var(--text-2); transition: transform .4s var(--ease-out), background-color .2s; }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0); }
.faq-list summary:hover::before, .faq-list summary:hover::after { background: var(--text); }
.faq-list .ans { overflow: hidden; }
.faq-list .ans p { margin: 0 0 24px; padding-right: 40px; color: var(--text-2); }
.faq-more { margin-top: 32px; text-align: center; }

/* Финальный призыв */
.closing { padding: clamp(96px, 13vw, 160px) 0; text-align: center; }
.closing h2 { max-width: 18ch; margin: 0 auto; }
.closing .t-lead { max-width: 600px; margin: 20px auto 0; }
.closing .hero-cta { margin-top: 36px; }

/* Подвал */
.foot { border-top: 1px solid var(--line); background: var(--bg-alt); color: var(--text-3); font-size: .8rem; }
.foot-in { max-width: calc(var(--wrap-wide) + var(--gutter) * 2); margin: 0 auto; padding: 40px var(--gutter) 48px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-cols h2 { margin-bottom: 10px; font-size: .8rem; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.foot-cols a { display: block; padding: 4px 0; color: var(--text-2); }
.foot-cols a:hover { color: var(--text); }
.foot-legal { margin: 32px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* ─── Документация ──────────────────────────────────────────────────────────────────────────── */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr) 200px; gap: 48px; max-width: calc(var(--wrap-wide) + var(--gutter) * 2); margin: 0 auto;
    padding: 40px var(--gutter) 96px; }
.docs-side, .docs-toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; }
.docs-side-toggle { display: none; }
.docs-group + .docs-group { margin-top: 24px; }
.docs-group h2 { margin-bottom: 8px; color: var(--text-3); font-size: .75rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.docs-group a { display: block; margin-left: -12px; padding: 6px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-size: .9rem; line-height: 1.35;
    transition: background-color .2s var(--ease), color .2s var(--ease); }
.docs-group a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.docs-group a[aria-current] { color: var(--text); background: var(--surface-2); font-weight: 500; }
.docs-toc h2 { margin-bottom: 10px; color: var(--text-3); font-size: .75rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.docs-toc ol { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 1px solid var(--line); }
.docs-toc a { display: block; padding: 5px 0; color: var(--text-3); font-size: .82rem; line-height: 1.35; transition: color .2s var(--ease); }
.docs-toc a:hover, .docs-toc a.on { color: var(--text); text-decoration: none; }
.docs-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 64px; }
.docs-pager a { display: block; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); color: var(--text); font-weight: 600;
    transition: background-color .2s var(--ease); }
.docs-pager a:hover { background: var(--surface-2); text-decoration: none; }
.docs-pager a span { display: block; margin-bottom: 4px; color: var(--text-3); font-size: .8rem; font-weight: 400; }
.docs-pager .next { grid-column: 2; text-align: right; }
@media (max-width: 1100px) { .docs { grid-template-columns: 220px minmax(0, 1fr); } .docs-toc { display: none; } }
@media (max-width: 833px) {
    .docs { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
    .docs-side { position: sticky; top: var(--nav-h); z-index: 10; max-height: none; overflow: visible; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter);
        background: rgba(0, 0, 0, .86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
    .docs-side-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 48px; padding: 0; border: 0; background: none;
        color: var(--text); font: 500 .95rem var(--font); cursor: pointer; }
    .docs-side-toggle::after { content: ""; width: 7px; height: 7px; border: solid var(--text-2); border-width: 0 1.6px 1.6px 0; transform: translateY(-3px) rotate(45deg);
        transition: transform .3s var(--ease-out); }
    .docs-side-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
    .docs-nav { display: none; max-height: 70vh; overflow-y: auto; padding: 4px 0 20px; }
    .docs-side.open .docs-nav { display: block; animation: screen-in .4s var(--ease-out); }
    .docs-main { padding-top: 28px; }
    .docs-pager { grid-template-columns: minmax(0, 1fr); }
    .docs-pager .next { grid-column: auto; }
}

/* Текст документации */
.prose { max-width: 760px; font-size: 1.02rem; line-height: 1.6; color: #e3e3e6; }
.prose h1 { margin-bottom: 20px; font-size: clamp(2rem, 4.4vw, 2.8rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.prose h2 { margin: 56px 0 14px; padding-top: 8px; font-size: clamp(1.45rem, 2.6vw, 1.8rem); line-height: 1.15; letter-spacing: -.025em; }
.prose h3 { margin: 36px 0 10px; font-size: 1.22rem; line-height: 1.25; letter-spacing: -.02em; }
.prose h4 { margin: 28px 0 8px; font-size: 1.04rem; letter-spacing: -.015em; }
.prose h1 + p { font-size: 1.16rem; line-height: 1.5; color: var(--text-2); }
.prose .anchor { margin-left: 8px; color: var(--text-3); font-weight: 400; opacity: 0; transition: opacity .2s; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose .anchor:focus-visible { opacity: 1; text-decoration: none; }
.prose p, .prose ul, .prose ol, .prose .table, .prose .code, .prose blockquote { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li > ul, .prose li > ol { margin: 6px 0 0; }
.prose li::marker { color: var(--text-3); }
.prose code { padding: .12em .4em; border-radius: 6px; background: var(--surface-2); font-size: .86em; color: var(--text); overflow-wrap: anywhere; }
.prose hr { margin: 48px 0; border: 0; border-top: 1px solid var(--line); }
.prose blockquote { padding: 16px 20px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .table { overflow-x: auto; border-radius: var(--radius-sm); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.45; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text-2); font-weight: 600; font-size: .82rem; background: var(--surface-2); }
.prose tr:last-child td { border-bottom: 0; }
.prose td code { white-space: nowrap; }
.code { position: relative; border-radius: var(--radius-sm); background: #0d0d0e; box-shadow: inset 0 0 0 1px var(--line); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: .84rem/1.65 var(--mono); color: var(--text); tab-size: 4; }
.code code { padding: 0; background: none; font-size: inherit; color: inherit; overflow-wrap: normal; }
.code .copy { position: absolute; top: 8px; right: 8px; min-height: 28px; padding: 0 12px; border: 0; border-radius: var(--pill); background: var(--surface-3);
    color: var(--text-2); font: 500 .75rem var(--font); cursor: pointer; opacity: 0; transition: opacity .2s var(--ease), color .2s, background-color .2s; }
.code:hover .copy, .code .copy:focus-visible { opacity: 1; }
.code .copy:hover { color: var(--text); }
@media (hover: none) { .code .copy { opacity: 1; } }

/* ─── Личный кабинет ────────────────────────────────────────────────────────────────────────── */
.acc { padding: 48px 0 112px; min-height: calc(100dvh - var(--nav-h)); }
.acc > .wrap { max-width: calc(820px + var(--gutter) * 2); }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 80px 0; color: var(--text-2); }
.ph { margin-bottom: 32px; }
.ph h1 { font-size: clamp(2rem, 4.4vw, 2.6rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.ph p { margin: 8px 0 0; color: var(--text-2); font-size: 1.02rem; }
.ph.spread { align-items: flex-end; }
.sec { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 52px 0 14px; }
.sec h2 { font-size: 1.4rem; letter-spacing: -.022em; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; color: var(--accent); font-size: .95rem; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mt { margin-top: 16px; }
.mt2 { margin-top: 40px; }
.m0 { margin: 0; }
.ok { color: var(--ok); }
.err { margin-top: 12px; min-height: 1.3em; color: var(--bad); font-size: .9rem; }
.err:empty { margin-top: 0; min-height: 0; }

.card { padding: 28px; border-radius: var(--radius); background: var(--surface); }
.card h3 { margin-bottom: 8px; font-size: 1.15rem; letter-spacing: -.02em; }
.card > p:last-child, .card h3:last-child { margin-bottom: 0; }
@media (max-width: 734px) { .card { padding: 22px 20px; } }

/* Поля */
label { display: block; margin: 18px 0 8px; color: var(--text-2); font-size: .86rem; font-weight: 500; letter-spacing: -.01em; }
form > label:first-child, .card > label:first-child, .card > div > label:first-child { margin-top: 0; }
input, select { width: 100%; height: 50px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--surface-2);
    color: var(--text); font: 400 1.02rem var(--font); letter-spacing: -.01em; outline: none;
    transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); }
input::placeholder { color: var(--text-3); }
input:hover { background: #222225; }
input:focus { border-color: var(--accent); background: var(--surface-2); box-shadow: 0 0 0 4px var(--accent-soft); }
input.mono { font-family: var(--mono); font-size: .95rem; letter-spacing: .02em; }
form .btn.pri { width: 100%; margin-top: 24px; }

/* Уведомления */
.note { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); font-size: .95rem; line-height: 1.5; }
.note h3 { margin-bottom: 4px; color: var(--text); }
.note.warn { background: var(--warn-soft); color: #ffe2b8; }
.note.bad { background: var(--bad-soft); color: #ffd3cf; }
.note.good { background: var(--ok-soft); color: #c9f5d3; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 200; max-width: calc(100vw - 32px); padding: 12px 20px;
    border-radius: var(--pill); background: rgba(44, 44, 46, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--text);
    font-size: .92rem; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .8); transform: translateX(-50%); animation: toast .5s var(--ease-out); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 16px) scale(.96); } }
.spin { display: inline-block; flex: none; width: 16px; height: 16px; border: 2px solid var(--surface-3); border-top-color: var(--text-2); border-radius: 50%;
    vertical-align: -3px; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* Появление экранов кабинета */
@keyframes screen-in { from { opacity: 0; transform: translateY(12px); } }
#app > * { animation: screen-in .6s var(--ease-out) both; }
#app > :nth-child(2) { animation-delay: .04s; } #app > :nth-child(3) { animation-delay: .08s; } #app > :nth-child(4) { animation-delay: .12s; }
#app > :nth-child(5) { animation-delay: .16s; } #app > :nth-child(n+6) { animation-delay: .2s; }

/* Вход */
.auth { max-width: 420px; margin: 32px auto 0; }
.auth .ph { text-align: center; }
.auth .card { padding: 28px; }
@media (max-width: 734px) { .auth { margin-top: 0; } .auth .card { padding: 20px 18px; } }
.auth .card > p { font-size: .92rem; }
.seg { position: relative; display: flex; gap: 2px; padding: 3px; border-radius: var(--radius-sm); background: var(--surface-2); }
.seg button { position: relative; z-index: 1; flex: 1; min-width: 0; height: 36px; padding: 0 6px; border: 0; border-radius: 9px; background: transparent;
    color: var(--text-2); font: 500 .88rem var(--font); letter-spacing: -.01em; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color .2s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease); }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface-3); color: var(--text); box-shadow: 0 3px 8px rgba(0, 0, 0, .35), inset 0 0 0 .5px rgba(255, 255, 255, .08); }
.auth .seg { margin-bottom: 24px; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0; font: 500 1rem var(--mono); }
.codes span { padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); text-align: center; letter-spacing: .04em; }
@media (max-width: 340px) { .codes { grid-template-columns: minmax(0, 1fr); } }

/* Баланс */
.bal { padding: 0; overflow: hidden; }
.bal .main { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 32px; }
.bal .lbl { margin-bottom: 6px; color: var(--text-2); font-size: .95rem; font-weight: 500; }
.amount { font-size: 2.2rem; line-height: 1.05; letter-spacing: -.04em; font-weight: 700; font-variant-numeric: tabular-nums; }
.amount small { margin-left: 4px; font-size: .45em; letter-spacing: -.01em; font-weight: 500; color: var(--text-2); }
.bal .amount { font-size: clamp(2.6rem, 7vw, 3.4rem); }
.bal .note { margin: 0 32px 32px; }
.bal .note .row { margin-top: 12px; }
@media (max-width: 734px) { .bal .main { padding: 24px 20px; } .bal .main .btn { width: 100%; } .bal .note { margin: 0 20px 20px; } }

/* Ключи */
.keys { display: grid; gap: 14px; }
.key { border-radius: var(--radius); background: var(--surface); overflow: hidden; scroll-margin-top: calc(var(--nav-h) + 24px); transition: box-shadow .4s var(--ease); }
.key:target { box-shadow: 0 0 0 2px var(--accent); }
.key .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 24px 28px 0; }
.mask { font: 500 1.05rem var(--mono); letter-spacing: .02em; overflow-wrap: anywhere; }
.key > .note { margin: 16px 28px 0; }
.key dl.kv { margin: 18px 28px 0; }
.key .reveal { margin: 14px 28px 0; }
.key .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 22px; padding: 16px 28px 20px; border-top: 1px solid var(--line); }
@media (max-width: 734px) {
    .key .head { padding: 20px 20px 0; }
    .key > .note, .key dl.kv, .key .reveal { margin-left: 20px; margin-right: 20px; }
    .key .acts { padding: 14px 20px 18px; }
    .key .acts .toggle { width: 100%; margin: 6px 0 0; justify-content: space-between; }
}
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--pill); font-size: .8rem; font-weight: 500; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-active, .b-paid, .b-done { color: var(--ok); background: var(--ok-soft); }
.b-grace, .b-waiting { color: var(--warn); background: var(--warn-soft); }
.b-stopped, .b-revoked, .b-missing { color: var(--bad); background: var(--bad-soft); }
.b-unpaid, .b-unknown, .b-expired, .b-cancelled { color: var(--text-2); background: var(--surface-2); }
.b-open { color: var(--accent); background: var(--accent-soft); }
.b-open::before { animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* Сведения — сгруппированный список, как в настройках iOS */
dl.kv { margin: 16px 0 0; border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; }
dl.kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 16px; }
dl.kv > div + div { box-shadow: 0 -1px 0 var(--line); }
dl.kv dt { flex: none; color: var(--text-2); font-size: .94rem; }
dl.kv dd { min-width: 0; margin: 0; text-align: right; font-size: .94rem; overflow-wrap: anywhere; }
dl.kv dd.mono { font-size: .88rem; }

.reveal { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.reveal code { flex: 1 1 auto; min-width: 0; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .92rem; letter-spacing: .03em; overflow-wrap: anywhere; }
.toggle { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 0 auto; color: var(--text-2); font-size: .9rem; font-weight: 400; cursor: pointer; user-select: none; }
.chk { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 51px; height: 31px; margin: 0; padding: 0; border: 0; border-radius: var(--pill);
    background: var(--surface-3); cursor: pointer; box-shadow: none; transition: background-color .3s var(--ease); }
.chk::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .3), 0 1px 1px rgba(0, 0, 0, .16); transition: transform .35s var(--ease-out); }
.chk:checked { background: var(--ok); }
.chk:checked::after { transform: translateX(20px); }
.chk:hover, .chk:focus { background-color: var(--surface-3); border-color: transparent; box-shadow: none; }
.chk:checked:hover, .chk:checked:focus { background-color: var(--ok); }
.chk:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.empty { padding: 56px 28px; text-align: center; }
.empty p { max-width: 400px; margin: 8px auto 24px; }

/* История */
.tblwrap { border-radius: var(--radius); background: var(--surface); overflow: hidden; }
table.list { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.list th, table.list td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.list tr:last-child td { border-bottom: 0; }
table.list th { padding-top: 16px; padding-bottom: 12px; color: var(--text-3); font-size: .8rem; font-weight: 500; }
table.list th:nth-child(n+3), table.list td:nth-child(n+3) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.list td.mono { font-family: var(--font); font-size: .94rem; }
td.ok { color: var(--ok); }
@media (max-width: 600px) {
    table.list thead { display: none; }
    table.list, table.list tbody { display: block; }
    table.list tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
    table.list tr:last-child { border-bottom: 0; }
    table.list td { display: block; padding: 0; border: 0; text-align: left; }
    table.list td:nth-child(1) { grid-column: 1; grid-row: 2; font-size: .84rem; }
    table.list td:nth-child(2) { grid-column: 1; grid-row: 1; }
    table.list td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; font-weight: 600; }
    table.list td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; font-size: .84rem; }
}

/* Аккаунт */
.acct { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.acct .who2 { display: flex; align-items: center; gap: 14px; min-width: 0; }
.avatar { display: flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(180deg, #6e6e73, #48484a); color: #fff; font-size: 1.2rem; font-weight: 600; text-transform: uppercase; }
.acct .login { font-weight: 600; overflow-wrap: anywhere; }
.acct .sub { color: var(--text-3); font-size: .88rem; }
.acct .sub.warn { color: var(--warn); }
.drawer { margin-top: 14px; }
.drawer .card { max-width: 480px; animation: screen-in .5s var(--ease-out); }

/* Оплата */
.pay { max-width: 600px; margin: 0 auto; }
.pay > .card + .card { margin-top: 14px; }
.months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.months button { position: relative; padding: 16px 14px; border: 0; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); text-align: left;
    font: 600 1rem var(--font); letter-spacing: -.015em; cursor: pointer; box-shadow: inset 0 0 0 1px transparent;
    transition: box-shadow .25s var(--ease), background-color .25s var(--ease), transform .12s var(--ease); }
.months button:hover { background: #222225; }
.months button:active { transform: scale(.98); }
.months button small { display: block; margin-top: 4px; color: var(--text-2); font-size: .84rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.months button.on { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.total { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.total .lbl { color: var(--text-2); font-size: .95rem; }
.total + .dim { margin: 10px 0 0; font-size: .92rem; }
.pay .card > .btn.pri { width: 100%; margin-top: 22px; }
.way { margin-top: 22px; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.presets .btn { font-variant-numeric: tabular-nums; }
.field { display: flex; align-items: stretch; border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; }
.field code { flex: 1; min-width: 0; padding: 14px 16px; font-size: .92rem; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.field button { flex: none; padding: 0 18px; border: 0; background: transparent; color: var(--accent); font: 500 .9rem var(--font); cursor: pointer;
    box-shadow: inset 1px 0 0 var(--line); transition: background-color .2s var(--ease); }
.field button:hover { background: var(--accent-soft); }
.field.hl { background: var(--accent-soft); }
.field.hl code { padding: 16px 18px; font: 600 1.6rem/1.15 var(--mono); letter-spacing: -.01em; }
@media (max-width: 420px) { .field { flex-direction: column; } .field button { height: 44px; box-shadow: inset 0 1px 0 var(--line); } }
.status { margin-top: 22px; }
.live { display: flex; align-items: flex-start; gap: 12px; }
.live::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--accent); animation: ring 2s var(--ease) infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(41, 151, 255, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(41, 151, 255, 0); } }
.pay .foot { margin-top: 18px; color: var(--text-3); font-size: .88rem; text-align: center; }
.done { padding: 12px 0 4px; text-align: center; }
.done .check { position: relative; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--ok); animation: pop .6s var(--ease-out); }
.done .check::after { content: ""; position: absolute; left: 24px; top: 15px; width: 13px; height: 25px; border: solid #fff; border-width: 0 3.5px 3.5px 0; transform: rotate(45deg); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
.done h3 { font-size: 1.4rem; letter-spacing: -.025em; }
.done .row { justify-content: center; }

/* ─── Меньше движения, меньше прозрачности ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .js .hero .rise { opacity: 1; animation: none; }
    .tile .bar i { transform: scaleX(1); transition: none; }
    .term .caret { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
    .gnav, .gnav.scrolled, .toast { background: #161617; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
