/* BlackTest — сайт. Графитовая шкала, один янтарный акцент, шрифт Geist.
   Дизайн-направление: docs/design/2026-11-24-redesign.md */
@font-face { font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/geist-cyrillic-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/geist-cyrillic-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/geist-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/geist-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/geist-mono-cyrillic-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/geist-mono-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/geist-mono-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --bg0: #0f0f10;          /* самая глубокая поверхность */
  --bg: #141415;           /* фон страницы */
  --bg2: #111112;          /* поля ввода */
  --panel: #19191b;        /* карточки */
  --panel2: #232325;       /* приподнятое: активные строки, кнопки */
  --line: rgba(237,237,237,.08);
  --line2: rgba(237,237,237,.14);
  --border: var(--line); --border2: var(--line2);
  --white: #ededed;        /* основной текст */
  --text: #ededed;
  --sec: #a1a1a6;          /* второстепенный */
  --muted: #85858b;        /* подписи */
  --accent: #f5a524;       /* янтарь: курсор воспроизведения, главное действие */
  --accent-h: #ffb83d;
  --accent-ink: #2a1a00;   /* текст на янтаре */
  --up: #4cc38a; --down: #e5484d; --warn: #f5a524; --kaspi: #f14635;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: 'Geist', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(237,237,237,.3); text-underline-offset: 3px; transition: text-decoration-color .15s var(--ease); }
a:hover { text-decoration-color: var(--white); }
h1, h2, h3 { color: var(--white); line-height: 1.2; margin: 0 0 12px; font-weight: 500; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line2); box-shadow: 0 16px 40px rgba(0,0,0,.45); font-size: 13.5px; color: var(--sec); }
.cookie-bar p { margin: 0; flex: 1; }
@media (max-width: 720px) { .cookie-bar { flex-direction: column; align-items: stretch; } }
.foot-risk { max-width: 620px; margin: 6px 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); } .sec { color: var(--sec); }
.pos { color: var(--up); } .neg { color: var(--down); }
.small { font-size: 13px; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.sm-only { display: none; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--white); color: #141415; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; transition: top .15s var(--ease); }
.skip-link:focus { top: 12px; }
#main:focus { outline: none; }
.center { text-align: center; }

/* ---------- шапка ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(20,20,21,.86); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 32px; height: 60px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; }
.logo svg { width: 22px; height: 22px; display: block; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--sec); font-size: 14px; text-decoration: none; transition: color .15s var(--ease); }
.nav a:hover { color: var(--white); }
.head-fill { flex: 1; }
.head-user { display: flex; align-items: center; gap: 16px; }
.head-user .text-link { color: var(--sec); font-size: 14px; text-decoration: none; }
.head-user .text-link:hover { color: var(--white); }

/* ---------- кнопки и поля ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line2);
  background: var(--panel2); cursor: pointer; white-space: nowrap; color: var(--white); font-weight: 500; font-size: 14px; text-decoration: none;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .12s var(--ease); }
.btn:hover { background: #2b2b2e; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--white); border-color: var(--white); color: #141415; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.btn.primary:hover { background: #fff; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { background: var(--accent-h); border-color: var(--accent-h); }
.btn.green { background: var(--up); border-color: var(--up); color: #062014; }
.btn.green:hover { background: #5fd39b; }
.btn.red { background: transparent; color: #ff8d8f; border-color: rgba(229,72,77,.4); }
.btn.red:hover { background: rgba(229,72,77,.14); }
.btn.kaspi::before, .btn.rub::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--kaspi); flex: none; }
.btn.rub::before { background: linear-gradient(#fff 0 33%, #2c5bd6 33% 66%, #d52b1e 66%); border-radius: 2px; }
.btn.big { height: 48px; padding: 0 20px; font-size: 15px; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.field { margin-bottom: 16px; }
.field label { display: block; color: var(--sec); font-size: 13px; margin-bottom: 8px; }
.input { width: 100%; height: 40px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 8px; padding: 0 12px; outline: none; transition: border-color .15s var(--ease); }
textarea.input { height: auto; min-height: 112px; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: rgba(245,165,36,.7); }
.input::placeholder { color: #6b6b70; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--sec); }
.check input { margin-top: 2px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.err { color: #ff8d8f; font-size: 13px; min-height: 20px; margin: 4px 0 8px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.note { background: var(--panel); border: 1px solid var(--line2); border-left: 2px solid var(--sec); border-radius: 8px; padding: 12px 16px; font-size: 14px; color: var(--text); }
.note.warn { border-left-color: var(--accent); }
.note.ok { border-left-color: var(--up); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--panel2); color: var(--sec); white-space: nowrap; }
.badge.ok { background: rgba(76,195,138,.12); color: var(--up); }
.badge.bad { background: rgba(229,72,77,.14); color: #ff8d8f; }
.badge.wait { background: rgba(245,165,36,.12); color: var(--accent); }
.badge.blue { background: var(--panel2); color: var(--white); }

/* ---------- главная: первый экран ---------- */
.hero { padding: 96px 0 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: end; }
.hero h1 { font-size: 60px; line-height: 1.04; letter-spacing: -0.03em; margin: 0; font-weight: 500; }
.hero h1 .ph { color: var(--accent); }
.hero-side p { font-size: 18px; line-height: 1.6; color: var(--sec); margin: 0 0 24px; max-width: 36rem; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .trial { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.shot { position: relative; margin: 64px auto -1px; border-radius: 14px 14px 0 0; border: 1px solid var(--line2); border-bottom: 0; overflow: hidden; background: var(--bg0);
  box-shadow: 0 -24px 80px rgba(0,0,0,.35); max-height: 560px; }
.shot img { display: block; width: 100%; }
.shot::after { content: ''; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(to bottom, rgba(20,20,21,0), var(--bg)); pointer-events: none; }

/* ---------- секции ---------- */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-size: 36px; letter-spacing: -0.02em; margin-bottom: 12px; }
.section .lead { color: var(--sec); max-width: 40rem; margin: 0 0 40px; font-size: 17px; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.sec-head h2, .sec-head .lead { margin-bottom: 0; }
.video-box { margin: 0; border-radius: 14px; border: 1px solid var(--line2); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-box video { display: block; width: 100%; height: 100%; }
.video-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; color: var(--sec); font-size: 14px; flex-wrap: wrap; }

/* возможности: сетка на волосяных линиях, без карточек */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { padding: 28px 28px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature svg { width: 18px; height: 18px; display: block; margin-bottom: 16px; fill: none; stroke: var(--sec); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feature b { display: block; color: var(--white); margin-bottom: 8px; font-size: 16px; font-weight: 500; }
.feature span { color: var(--sec); font-size: 14px; line-height: 1.6; }
.feature kbd, kbd { font: 500 12px var(--sans); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line2); border-bottom-width: 2px; background: var(--panel2); color: var(--white); }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.plan { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.plan.sel { border-color: rgba(245,165,36,.6); }
.plan.best { border-color: var(--line2); background: linear-gradient(#1d1d20, #19191b); }
.plan .best-tag { position: absolute; top: 24px; right: 24px; font-size: 12px; color: var(--accent); }
.plan h3 { margin: 0 0 16px; font-size: 15px; color: var(--sec); font-weight: 500; }
.plan .price { font: 500 34px/1.1 var(--sans); letter-spacing: -0.02em; color: var(--white); }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 400; }
.plan .price-rub { font-size: 14px; color: var(--sec); margin-top: 8px; font-variant-numeric: tabular-nums; }
.plan .per { font-size: 13px; color: var(--muted); margin-top: 12px; }
.plan .descr { color: var(--sec); font-size: 14px; flex: 1; margin-top: 4px; }
.plan .btn { margin-top: 16px; }
.plan .btn + .btn { margin-top: 8px; }

/* вопросы */
.faq { max-width: 800px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 0; }
.faq summary { cursor: pointer; color: var(--white); font-weight: 500; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 300 22px/1 var(--sans); color: var(--muted); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--sec); margin: -4px 0 20px; max-width: 44rem; }

.faq-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 48px; align-items: start; }
.faq-aside { position: sticky; top: 100px; }
.faq-grid .faq { max-width: none; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }

/* подвал */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 13px; }
.site-foot .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.site-foot a { color: var(--sec); text-decoration: none; }
.site-foot a:hover { color: var(--white); }
.site-foot .foot-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- вход ---------- */
.auth { max-width: 400px; margin: 80px auto; }
.auth .logo { justify-content: center; margin-bottom: 32px; font-size: 20px; }
.auth .logo svg { width: 26px; height: 26px; }
.auth h2 { font-size: 22px; margin-bottom: 20px; }
.tabs { display: flex; gap: 4px; background: var(--bg0); border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.tabs button { flex: 1; height: 32px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; color: var(--sec); font-weight: 500; font-size: 14px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.tabs button.active { background: var(--panel2); color: var(--white); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }

/* ---------- кабинет и админка ---------- */
.page { padding-top: 40px; padding-bottom: 80px; }
.page-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.page-head h1 { margin: 0; font-size: 28px; flex: 1; letter-spacing: -0.01em; }
.side-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.side-menu { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 84px; }
.side-menu button { text-align: left; height: 36px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; padding: 0 12px; color: var(--sec); display: flex; align-items: center; gap: 8px; font-size: 14px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.side-menu button:hover { color: var(--white); background: var(--panel); }
.side-menu button.active { color: var(--white); background: var(--panel2); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.side-menu .cnt { margin-left: auto; color: var(--accent); font: 500 12px var(--mono); }
.panel-title { font-size: 20px; color: var(--white); margin: 0 0 16px; font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.stat small { display: block; color: var(--sec); font-size: 13px; margin-bottom: 8px; }
.stat b { font: 500 30px/1.1 var(--sans); color: var(--white); letter-spacing: -0.02em; }
.stat .sub { color: var(--muted); font-size: 12px; margin-top: 8px; }
.stat.live b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--up); margin-right: 12px; vertical-align: middle; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; color: var(--muted); font-weight: 400; font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
table.t td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; }
table.t td b, table.t td .code { white-space: nowrap; font-weight: 500; }
table.t tr.click:hover td { background: rgba(237,237,237,.03); }
.t-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input { width: auto; flex: 1; min-width: 200px; height: 36px; }
.toolbar select.input { flex: none; }
.chip-row { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--sec); font-size: 13px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.chip:hover { color: var(--white); }
.chip.active { color: var(--white); border-color: var(--line2); background: var(--panel2); }
.empty { color: var(--muted); text-align: center; padding: 32px; }
.sub-box { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.sub-box .sub-until { font: 500 30px/1.2 var(--sans); color: var(--white); margin: 4px 0 8px; letter-spacing: -0.02em; }
.pay-box { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.qr { width: 240px; height: 240px; border-radius: 12px; background: #fff; padding: 12px; display: flex; align-items: center; justify-content: center; color: #333; text-align: center; font-size: 13px; }
.qr img { width: 100%; height: 100%; object-fit: contain; }
.pay-sum { font: 500 34px/1.2 var(--sans); color: var(--white); letter-spacing: -0.02em; }
.code { font: 500 14px var(--mono); background: var(--bg0); border: 1px dashed var(--line2); padding: 2px 8px; border-radius: 6px; color: var(--white); }
.steps { margin: 12px 0 16px; padding-left: 20px; color: var(--text); }
.steps li { margin-bottom: 8px; }
.msgs { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.msg { max-width: 85%; padding: 8px 12px; border-radius: 12px; background: var(--panel2); white-space: pre-wrap; font-size: 14px; }
.msg.admin { align-self: flex-start; background: var(--bg0); border: 1px solid var(--line2); }
.msg.user { align-self: flex-end; }
.msg small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.ticket { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.ticket-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ticket-head b { color: var(--white); flex: 1; font-weight: 500; }
.chart { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.chart-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.chart-head b { color: var(--white); flex: 1; font-weight: 500; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--sec); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.chart svg { display: block; width: 100%; height: 240px; }
.chart svg text { font-family: var(--mono); }
.chart .tip { position: fixed; pointer-events: none; background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; padding: 8px 12px; font-size: 12px; z-index: 50; white-space: nowrap; }

/* ---------- окна и уведомления ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(8,8,9,.66); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .18s var(--ease); }
.modal { width: 560px; max-width: 100%; max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; padding: 24px; box-shadow: 0 24px 64px rgba(0,0,0,.5); animation: rise .22s var(--ease); }
.modal h3 { margin-bottom: 16px; font-size: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { background: var(--panel2); border: 1px solid var(--line2); padding: 12px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.4); max-width: 380px; font-size: 14px; animation: rise .22s var(--ease); }
.toast.ok { box-shadow: inset 2px 0 0 var(--up), 0 8px 24px rgba(0,0,0,.4); }
.toast.err { box-shadow: inset 2px 0 0 var(--down), 0 8px 24px rgba(0,0,0,.4); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; font-size: 14px; margin-bottom: 16px; }
.kv span { color: var(--muted); }

/* юридические страницы */
.legal { max-width: 800px; }
.legal h1 { font-size: 32px; letter-spacing: -0.02em; }
.legal h2 { font-size: 19px; margin-top: 32px; scroll-margin-top: 80px; }
.legal p, .legal li { color: var(--sec); }
.legal .fill { background: rgba(245,165,36,.14); color: var(--accent); padding: 0 4px; border-radius: 4px; }

/* страница обзора */
.chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 24px; margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.chapters button { width: 100%; display: flex; gap: 12px; align-items: baseline; text-align: left; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--sec); font: inherit; font-size: 14px; cursor: pointer; transition: color .15s var(--ease); }
.chapters button:hover { color: var(--white); }
.chapters .tc { font: 500 13px var(--mono); color: var(--accent); min-width: 44px; }
.ob-sec { margin-top: 48px; max-width: 46rem; }
.ob-sec h3 { margin: 0 0 12px; font-size: 22px; letter-spacing: -0.01em; }
.ob-sec p { margin: 0 0 12px; line-height: 1.7; color: var(--sec); }
.ob-sec b { color: var(--white); font-weight: 500; }
.rub-req { display: grid; gap: 8px; padding: 16px; border-radius: 10px; background: var(--bg0); border: 1px solid var(--line2); margin-bottom: 8px; }

/* ---------- узкие экраны ---------- */
@media (max-width: 960px) {
  .hero { padding-top: 56px; }
  .hero-grid, .sec-head, .contact-grid, .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .faq-aside { position: static; }
  .hero h1 { font-size: 40px; }
  .shot { margin-top: 40px; }
  .section { padding: 64px 0; }
  .section h2 { font-size: 28px; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .site-head .wrap { gap: 16px; }
  .nav { display: none; }
  .head-user { gap: 12px; }
  .hero h1 { font-size: 36px; }
  .features { grid-template-columns: 1fr; }
  .side-layout { grid-template-columns: 1fr; gap: 24px; }
  .side-menu { flex-direction: row; overflow-x: auto; position: static; }
  .side-menu button { flex: none; }
  .pay-box, .grid2 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .head-user .hide-sm, .lg-only { display: none; }
  .sm-only { display: inline; }
  .logo { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
