/* Panopticum Smart Vision: публичный сайт.
 *
 * Один файл стилей на весь сайт, mobile-first. Характер «дневной пост»:
 * светлая тема кабинета, только крупнее и просторнее. Тёмное только там, где
 * «экран» (видео, кадр камеры), стекло только поверх карты или скриншота.
 *
 * Правила, которые здесь легко нарушить:
 *  - JetBrains Mono в проекте только 400/500/600: вес 700 браузер подделает;
 *  - цвета только через токены ниже;
 *  - у каждого url() метка ?v=: статика отдаётся immutable на 30 суток.
 */

/* ─── Шрифты: только два семейства, оба вариативные ─────────────────────── */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/gNMKW3F-SZuj7xmb-HY6EQ.woff2?v=20260924) 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 800; font-display: swap;
  src: url(/static/fonts/gNMKW3F-SZuj7xmf-HY.woff2?v=20260924) format('woff2');
  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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/static/fonts/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxTcwhsk.woff2?v=20260924) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/static/fonts/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxDcwg.woff2?v=20260924) format('woff2');
  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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ─── Токены ────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --bg: #F4F6FA;
  --bg-band: #E9EDF3;
  --surface: #FFFFFF;
  --surface-2: #F4F6FA;
  --th-bg: #EEF2F7;
  --ink: #0B1220;
  --border: #DCE3EC;
  --border-2: #C7D2E0;
  --text: #0F172A;
  --text-2: #334155;
  --muted: #5A6B85;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-bright: #3B82F6;
  --purple: #6D28D9;
  --purple-bright: #7C3AED;
  --green: #047857;
  --amber: #B45309;
  --red: #DC2626;
  --teal: #0E7490;
  --accent-tint: rgba(37,99,235,.10);
  --purple-tint: rgba(109,40,217,.10);
  --teal-tint: rgba(14,116,144,.11);
  --green-tint: rgba(4,120,87,.11);
  --amber-tint: rgba(180,83,9,.12);
  --red-tint: rgba(220,38,38,.10);
  --grad-brand: linear-gradient(135deg, #3B82F6, #7C3AED);
  --grad-cta: linear-gradient(135deg, #2563EB, #6D28D9);
  --grid: rgba(15,23,42,.055);
  --glass: rgba(255,255,255,.82);
  --glass-edge: rgba(15,23,42,.08);
  --blur: 18px;
  --shadow-card: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lift: 0 2px 6px rgba(15,23,42,.06), 0 24px 48px -12px rgba(15,23,42,.18);
  --shadow-shot: 0 40px 80px -24px rgba(30,41,82,.28), 0 12px 24px -12px rgba(15,23,42,.12);
  --ring: 0 0 0 3px rgba(37,99,235,.40);
  --r-xs: 6px; --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 20px; --r-pill: 999px;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --gutter: 16px;
  --container: 1200px;
  --container-wide: 1320px;
  --section-y: clamp(56px, 8vw, 112px);
  --hdr-h: 64px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1080px) { :root { --gutter: 32px; } }

/* ─── База ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--text); text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--text); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; color: #fff; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
code { font-family: var(--mono); font-size: .92em; background: var(--th-bg); border-radius: 6px; padding: 1px 6px; }

.ic { width: 20px; height: 20px; flex: none; }

/* ─── Раскладка ─────────────────────────────────────────────────────────── */
.wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * var(--gutter), var(--container-wide)); margin-inline: auto; }
.wrap-text { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.sec { padding-block: var(--section-y); position: relative; }
.sec--band { background: var(--bg-band); }
.sec--tight { padding-block: clamp(40px, 5vw, 64px); }
.sec + .sec--band, .sec--band + .sec { border-top: 1px solid transparent; }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .lead { margin-inline: auto; }
.eyebrow { font: 600 12px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px; }
.h1 { font-size: clamp(30px, 4vw, 52px); line-height: 1.08; letter-spacing: -.025em; }
.h1--home { font-size: clamp(34px, 5vw, 64px); line-height: 1.05; letter-spacing: -.03em; }
.h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.h3 { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.3; font-weight: 600; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--text-2); max-width: 68ch; margin-top: 16px; }
.prose { color: var(--text-2); max-width: 68ch; }
.prose p + p { margin-top: 14px; }
.stack > * + * { margin-top: 16px; }

.g { display: grid; gap: 16px; }
@media (min-width: 768px) {
  .g2, .g3, .g4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
.g-kpi { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 767px) { .g-kpi { gap: 12px; } .g-kpi .kpi { padding: 16px; } .g-kpi .kpi-l { font-size: 13px; } }
@media (min-width: 1080px) {
  .g3 { grid-template-columns: repeat(3, 1fr); }
  .g4 { grid-template-columns: repeat(4, 1fr); }
  .g { gap: 24px; }
}

.split { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 1080px) {
  .split { grid-template-columns: 5fr 7fr; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--rev > :first-child { order: 2; }
}
.split + .split { margin-top: clamp(56px, 7vw, 96px); }
/* Элемент сетки по умолчанию не уже своего содержимого: одна строка команды
   в <pre> или ряд кнопок без переноса распирали колонку за край экрана. */
.split > *, .g > *, .article > *, .pd > *, .tour-body > *, .cta-band .card > *, .form-row > * { min-width: 0; }

/* ─── Кнопки ────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: var(--r); font: 600 15px/1 var(--sans); border: 1px solid transparent; cursor: pointer;
  white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-cta { background: var(--grad-cta); color: #fff; box-shadow: 0 8px 20px -8px rgba(37,99,235,.55); }
.btn-cta:hover { color: #fff; box-shadow: 0 12px 28px -8px rgba(37,99,235,.6); filter: saturate(1.1); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; height: auto; padding: 0; background: none; color: var(--accent); border: 0; font-weight: 600; }
.btn-ghost::after { content: '→'; transition: transform .15s var(--ease); }
.btn-ghost:hover::after { transform: translateX(3px); }
.btn-tg { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-tg .ic { color: #229ED9; }
.btn-tg:hover { border-color: #229ED9; color: var(--text); }
.btn-block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-dl { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 18px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border-2); color: var(--text); text-align: left; }
.btn-dl:hover { border-color: var(--accent); color: var(--text); box-shadow: var(--shadow-card); }
.btn-dl .ic { width: 28px; height: 28px; color: var(--accent); }
.btn-dl b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.btn-dl small { display: block; font: 500 12.5px/1.4 var(--mono); color: var(--muted); }

/* ─── Карточки, плитки, бейджи ─────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px;
  box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
@media (max-width: 767px) { .card { padding: 20px; } }
.card[data-edge]::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--edge, var(--accent)); }
[data-edge="accent"] { --edge: var(--accent); --tile: var(--accent-tint); --tile-ink: var(--accent); }
[data-edge="purple"] { --edge: var(--purple); --tile: var(--purple-tint); --tile-ink: var(--purple); }
[data-edge="teal"] { --edge: var(--teal); --tile: var(--teal-tint); --tile-ink: var(--teal); }
[data-edge="green"] { --edge: var(--green); --tile: var(--green-tint); --tile-ink: var(--green); }
[data-edge="amber"] { --edge: var(--amber); --tile: var(--amber-tint); --tile-ink: var(--amber); }
[data-edge="red"] { --edge: var(--red); --tile: var(--red-tint); --tile-ink: var(--red); }
[data-edge="grad"] { --edge: var(--grad-brand); --tile: var(--accent-tint); --tile-ink: var(--purple); }
.card--link { display: block; color: inherit; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.card--link:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--border-2); }
.card--link .h3 { transition: color .15s; }
.card--link:hover .h3 { color: var(--accent); }
.card p { color: var(--text-2); font-size: 15px; margin-top: 8px; }
.card .btn-ghost { margin-top: 14px; font-size: 14px; }

.tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tile, var(--accent-tint)); color: var(--tile-ink, var(--accent)); margin-bottom: 16px; }
.tile .ic { width: 22px; height: 22px; }
.tile--sm { width: 36px; height: 36px; border-radius: 10px; margin: 0; }
.tile--sm .ic { width: 19px; height: 19px; }

.feature h3 { font-size: 17px; font-weight: 600; }
.feature p { font-size: 14.5px; color: var(--text-2); margin-top: 6px; }

.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 22px 20px; position: relative; overflow: hidden; box-shadow: var(--shadow-card); }
.kpi::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--edge, var(--accent)); }
.kpi-v { font: 600 clamp(32px, 4vw, 48px)/1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--text); }
.kpi-v small { font-size: .42em; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.kpi-l { font-size: 14px; color: var(--text-2); margin-top: 10px; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  font: 600 12px/1 var(--sans); background: var(--tile, var(--accent-tint)); color: var(--tile-ink, var(--accent)); white-space: nowrap; }
.badge--live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(4,120,87,.5); animation: pulse 1.8s infinite; }
.badge--grad { background: var(--grad-cta); color: #fff; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(4,120,87,.45); } 70% { box-shadow: 0 0 0 7px rgba(4,120,87,0); } 100% { box-shadow: 0 0 0 0 rgba(4,120,87,0); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border); font: 500 14px/1 var(--sans); color: var(--text-2); white-space: nowrap; }
.chip--mono { font-family: var(--mono); font-size: 13px; }
a.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-on { background: var(--accent-tint); border-color: rgba(37,99,235,.35); color: var(--accent); }

.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.checks li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat; }

/* ─── Скриншоты и рамки ─────────────────────────────────────────────────── */
.shot { margin: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid rgba(15,23,42,.08); box-shadow: var(--shadow-shot); position: relative; }
@media (max-width: 767px) { .shot { border-radius: var(--r-lg); } }
.shot-bar { height: 36px; background: var(--surface-2); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: 0 12px; }
.shot-bar span { font: 500 12px/1 var(--mono); color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 6px 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-bar span::before { content: ''; display: inline-block; width: 8px; height: 10px; margin-right: 7px; vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 10'%3E%3Crect x='.5' y='4' width='7' height='5.5' rx='1' fill='%235A6B85'/%3E%3Cpath d='M2 4V3a2 2 0 0 1 4 0v1' fill='none' stroke='%235A6B85'/%3E%3C/svg%3E") no-repeat; }
.shot img { width: 100%; height: auto; }
/* Окно приложения для Windows: тёмная полоса заголовка в тон приложению,
   название слева и три кнопки окна справа. */
.shot--win { background: #0B1220; border-color: rgba(15,23,42,.35); }
.shot--win .shot-bar { background: #0F172A; border-bottom-color: #1E293B; justify-content: flex-start; gap: 0; }
.shot--win .shot-bar b { font: 600 12px/1 var(--sans); color: #CBD5E1; margin-right: auto; padding-left: 4px; }
.shot--win .shot-bar i { width: 30px; height: 36px; position: relative; }
.shot--win .shot-bar i::before { content: ''; position: absolute; left: 10px; top: 17px; width: 10px; height: 1.5px; background: #94A3B8; }
.shot--win .shot-bar i:nth-of-type(2)::before { top: 13px; height: 9px; background: none; border: 1.5px solid #94A3B8; width: 7px; }
.shot--win .shot-bar i:nth-of-type(3)::before { top: 17px; background: #94A3B8; transform: rotate(45deg); }
.shot--win .shot-bar i:nth-of-type(3)::after { content: ''; position: absolute; left: 10px; top: 17px; width: 10px; height: 1.5px; background: #94A3B8; transform: rotate(-45deg); }
/* Заглушка снимка: фирменная испытательная таблица, а не полоски «в работе». */
.shot-ph { width: 100%; display: grid; place-items: center; text-align: center; padding: 24px;
  background: #0B1220 url(/static/img/testcard.svg?v=20260924) center/cover no-repeat; }
.shot-ph span { max-width: 36ch; background: #000; color: #fff; font: 600 13px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: .7em 1.1em; }
/* Вырез телефона живёт в толстой верхней рамке, а не поверх экрана: иначе он
   закрывал заголовок Mini App, а cover обрезал края снимка. */
.phone { position: relative; width: min(100%, 300px); margin-inline: auto; border-radius: 40px; background: #0F172A; padding: 28px 9px 12px; box-shadow: var(--shadow-shot); }
.phone::before { content: ''; position: absolute; top: 10px; left: 50%; width: 24%; height: 8px; border-radius: 4px; background: #1E293B; transform: translateX(-50%); z-index: 2; }
.phone > img, .phone > .shot-ph { width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: fill; border-radius: 12px 12px 26px 26px; }
.screen { background: var(--ink); border-radius: var(--r); overflow: hidden; }
.photo { border-radius: var(--r-xl); overflow: hidden; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(109,40,217,.14)); pointer-events: none; }

/* ─── Шапка ─────────────────────────────────────────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 50; height: var(--hdr-h); background: var(--glass);
  backdrop-filter: saturate(1.4) blur(var(--blur)); -webkit-backdrop-filter: saturate(1.4) blur(var(--blur));
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
@supports not (backdrop-filter: blur(1px)) { .hdr { background: rgba(255,255,255,.97); } }
.hdr.is-scrolled { background: rgba(255,255,255,.94); border-bottom-color: var(--border); box-shadow: 0 1px 12px rgba(15,23,42,.05); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.logo:hover { color: var(--text); }
.logo-box { width: 32px; height: 32px; border-radius: 9px; background: var(--grad-brand); display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(79,70,229,.6); }
.logo-box svg { width: 18px; height: 18px; fill: #fff; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font: 700 16px/1 var(--sans); letter-spacing: -.01em; }
.logo-text small { font: 600 9.5px/1 var(--sans); letter-spacing: .16em; color: var(--muted); margin-top: 4px; }
.nav { display: none; }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hdr-login { display: none; font: 600 15px/1 var(--sans); color: var(--text-2); padding: 10px 12px; border-radius: var(--r-sm); }
.hdr-login:hover { color: var(--accent); }
.hdr-try { height: 40px; padding: 0 16px; font-size: 14.5px; display: none; }
@media (min-width: 400px) { .hdr-try { display: inline-flex; } }
.burger { width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.burger .ic { width: 22px; height: 22px; }

@media (min-width: 1080px) {
  .burger { display: none; }
  .hdr-login { display: inline-flex; }
  .nav { display: flex; align-items: center; gap: 2px; margin-left: 20px; }
  .nav-item { position: relative; }
  .nav-link, .nav-btn { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: var(--r-pill);
    font: 500 15px/1 var(--sans); color: var(--text-2); background: none; border: 0; cursor: pointer; white-space: nowrap; }
  .nav-link:hover, .nav-btn:hover, .nav-btn[aria-expanded="true"], .nav-link.is-current { background: rgba(15,23,42,.05); color: var(--text); }
  .nav-btn .ic { width: 14px; height: 14px; transition: transform .2s; }
  .nav-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
}
.mega { position: fixed; left: 0; right: 0; top: var(--hdr-h); z-index: 49; background: var(--surface); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); box-shadow: 0 24px 48px -24px rgba(15,23,42,.25); padding: 28px 0 32px;
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .16s, transform .16s; visibility: hidden; }
.mega.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.mega-in { display: grid; grid-template-columns: repeat(3, 1fr) 300px; gap: 28px; }
.mega-in--sol { grid-template-columns: repeat(2, 1fr) 300px; }
.mega-col h4 { font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; padding-left: 10px; }
.mega-link { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: var(--r); color: var(--text); }
.mega-link:hover { background: var(--surface-2); color: var(--text); }
.mega-link b { display: block; font: 600 15px/1.3 var(--sans); }
.mega-link small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.mega-promo { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; }
.mega-promo .shot { box-shadow: none; border-radius: var(--r); }
.mega-promo p { font-size: 13.5px; color: var(--text-2); margin: 12px 4px 8px; }
.mega-promo a.btn-ghost { font-size: 14px; margin: 0 4px; }
.dd { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift); padding: 8px; opacity: 0; transform: translateY(-4px); pointer-events: none; visibility: hidden; transition: opacity .16s, transform .16s; }
.dd.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.dd a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--text); font-size: 15px; }
.dd a:hover { background: var(--surface-2); color: var(--text); }
.dd a .ic { width: 16px; height: 16px; color: var(--muted); }

/* Ящик на телефоне */
.drawer-back { position: fixed; inset: 0; z-index: 59; background: rgba(15,23,42,.35); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-back.is-open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(420px, 100%); background: var(--surface);
  transform: translateX(100%); transition: transform .25s var(--ease); display: flex; flex-direction: column; visibility: hidden; }
.drawer.is-open { transform: none; visibility: visible; }
.drawer-hd { height: var(--hdr-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); border-bottom: 1px solid var(--border); flex: none; }
.drawer-bd { flex: 1; overflow-y: auto; padding: 8px var(--gutter) 24px; overscroll-behavior: contain; }
.drawer-bd details { border-bottom: 1px solid var(--border); }
.drawer-bd summary { list-style: none; display: flex; justify-content: space-between; align-items: center; height: 56px; font: 600 17px/1 var(--sans); cursor: pointer; }
.drawer-bd summary::-webkit-details-marker { display: none; }
.drawer-bd summary .ic { transition: transform .2s; color: var(--muted); }
.drawer-bd details[open] summary .ic { transform: rotate(180deg); }
.drawer-bd .dr-links { padding: 0 0 12px; display: grid; gap: 2px; }
.drawer-bd .dr-links a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: var(--r-sm); color: var(--text-2); font-size: 15.5px; }
.drawer-bd .dr-links a:hover { background: var(--surface-2); }
.drawer-bd > a { display: flex; align-items: center; height: 56px; font: 600 17px/1 var(--sans); color: var(--text); border-bottom: 1px solid var(--border); }
.drawer-ft { flex: none; padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); display: grid; gap: 10px; background: var(--surface); }
html.drawer-lock { overflow: hidden; }

/* ─── Подвал ────────────────────────────────────────────────────────────── */
.ftr { background: var(--bg-band); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.ftr-top { display: grid; gap: 32px; }
.ftr-brand p { color: var(--text-2); font-size: 15px; margin: 14px 0 18px; max-width: 32ch; }
.ftr-brand .btns { margin-top: 0; }
.ftr-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
.ftr-col h4 { font: 600 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ftr-col ul { list-style: none; display: grid; gap: 10px; }
.ftr-col a { color: var(--text-2); font-size: 15px; }
.ftr-col a:hover { color: var(--accent); }
.ftr-dl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.ftr-dl a.chip { gap: 8px; }
.ftr-dl .ic { width: 16px; height: 16px; }
.ftr-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.ftr-legal a { color: var(--muted); }
.ftr-legal a:hover { color: var(--accent); }
@media (min-width: 1080px) {
  .ftr-top { grid-template-columns: 300px 1fr; gap: 48px; }
  .ftr-cols { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Первые экраны ─────────────────────────────────────────────────────── */
/* overflow не прячем: скриншот первого экрана нарочно заходит на следующий блок */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 0; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 360px at 18% 8%, rgba(59,130,246,.16), transparent 70%),
              radial-gradient(520px 340px at 86% 22%, rgba(124,58,237,.13), transparent 70%); }
.hero-bg::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px; -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 85%); mask-image: linear-gradient(to bottom, #000 30%, transparent 85%); }
.hero-center { text-align: center; max-width: 860px; margin-inline: auto; }
.hero-center .lead { margin-inline: auto; }
.hero-center .btns { justify-content: center; }
.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 24px; color: var(--text-2); font-size: 14.5px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .ic { width: 18px; height: 18px; color: var(--green); }
.hero-shot { margin-top: clamp(36px, 5vw, 56px); position: relative; margin-bottom: -80px; z-index: 1; }
.hero-shot + * { position: relative; }
.after-hero { padding-top: calc(80px + var(--section-y) * .6); }
.toasts { position: absolute; right: -10px; top: 24%; display: grid; gap: 10px; z-index: 3; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px 11px 12px; border-radius: 14px; background: var(--glass);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-lift); font-size: 14px; color: var(--text); white-space: nowrap; opacity: 0; transform: translateX(16px);
  animation: toastIn .5s var(--ease) forwards; }
.toast:nth-child(1) { animation-delay: .8s; } .toast:nth-child(2) { animation-delay: 1.6s; } .toast:nth-child(3) { animation-delay: 2.4s; }
.toast i { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--dot, var(--accent)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot, var(--accent)) 18%, transparent); }
.toast b { font-weight: 600; }
.toast .mono { color: var(--muted); font-size: 12.5px; }
@keyframes toastIn { to { opacity: 1; transform: none; } }
@media (max-width: 1079px) { .toasts { right: 12px; top: auto; bottom: 16px; } .toast:not(:first-child) { display: none; } }
@media (max-width: 559px) { .toasts { display: none; } }

.page-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero .split { align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: .6; }
.tag-group { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 6px; border-radius: var(--r-pill);
  background: var(--tile); color: var(--tile-ink); font: 600 13px/1 var(--sans); margin-bottom: 18px; }
.tag-group .ic { width: 18px; height: 18px; }

/* ─── Модули (сетка разделов) ──────────────────────────────────────────── */
.mod { display: flex; flex-direction: column; min-height: 100%; }
.mod .h3 { font-size: 18px; }
.mod p { flex: 1; font-size: 14.5px; }
.mod .btn-ghost { margin-top: 16px; }
.mod > .badge, .mod > .btn-ghost { align-self: flex-start; }
/* Разделов не всегда кратно трём: одинокая последняя карточка растягивается
   на всю строку и раскладывается в ширину, а не висит слева с пустотой справа. */
@media (min-width: 1080px) {
  .g-mods > .mod:last-child:nth-child(3n+1) { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; column-gap: 20px; align-items: center; }
  .g-mods > .mod:last-child:nth-child(3n+1) .tile { margin: 0; }
  .g-mods > .mod:last-child:nth-child(3n+1) p { margin: 0; }
  .g-mods > .mod:last-child:nth-child(3n+1) .h3 { grid-column: 2; grid-row: 1; margin: 0; }
  .g-mods > .mod:last-child:nth-child(3n+1) p { grid-column: 2; grid-row: 2; }
  .g-mods > .mod:last-child:nth-child(3n+1) .tile { grid-row: 1 / 3; }
  .g-mods > .mod:last-child:nth-child(3n+1) .btn-ghost { grid-column: 3; grid-row: 1 / 3; margin: 0; align-self: center; }
}
/* Мелкий акцентный текст на серой полосе давал 4,4:1, ниже AA. */
.sec--band .eyebrow, .sec--band .btn-ghost { color: var(--accent-hover); }
.dl-list { display: grid; gap: 10px; max-width: 380px; }
.dl-list .btn-dl { width: 100%; }
.wrap > .rm { max-width: 960px; margin-inline: auto; }
.hero-shot-m { display: none; }
@media (max-width: 767px) {
  .hero-shot > .shot { display: none; }
  .hero-shot-m { display: block; }
}

/* ─── Совместимость ─────────────────────────────────────────────────────── */
.compat { text-align: center; padding-bottom: 0; }
.compat h2 { font: 600 15px/1.4 var(--sans); color: var(--muted); margin-bottom: 18px; }
.compat .chips { justify-content: center; }

/* ─── Тарифы ────────────────────────────────────────────────────────────── */
.prices { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 900px) { .prices { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.price { display: flex; flex-direction: column; }
.price.is-featured { border-color: rgba(109,40,217,.35); box-shadow: 0 0 0 4px rgba(109,40,217,.07), var(--shadow-lift); }
.price-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price-name { font: 700 20px/1.2 var(--sans); }
.price-note { color: var(--text-2); font-size: 14.5px; line-height: 1.6; margin-top: 6px; min-height: 3.2em; }
/* Пробел в моноширинном шрифте шириной в целую цифру: «1 490 ₽» читается
   как три числа. Сжимаем только пробелы (word-spacing касается и неразрывного). */
.price-v { font: 600 clamp(36px, 4vw, 46px)/1 var(--mono); letter-spacing: -.03em; word-spacing: -.35em; margin-top: 20px; font-variant-numeric: tabular-nums; }
.kpi-v { word-spacing: -.35em; }
.price-per { color: var(--muted); font-size: 14px; margin-top: 6px; }
.price-lim { list-style: none; margin: 20px 0 22px; padding: 16px 0 0; border-top: 1px solid var(--border); display: grid; gap: 8px; flex: 1; }
.price-lim li { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--text-2); }
.price-lim b { font-weight: 600; color: var(--text); text-align: right; }

/* clip, а не hidden: hidden делает обёртку прокручиваемым контейнером, и
   липкая шапка таблицы прилипала к ней, оставляя пустую полосу. */
.cmp-wrap { overflow: clip; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-card); }
.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 13px 18px; border-bottom: 1px solid var(--border); text-align: left; }
.cmp thead th { position: sticky; top: var(--hdr-h); background: var(--th-bg); font-weight: 600; z-index: 1; }
.cmp thead th small { display: block; font: 600 13px/1.2 var(--mono); color: var(--accent); margin-top: 3px; }
.cmp td + td, .cmp th + th { text-align: center; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp .yes { display: inline-block; width: 20px; height: 20px; border-radius: 50%; vertical-align: middle;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat; }
@supports not (overflow: clip) { .cmp thead th { position: static; } }
/* .seg.cmp-switch, а не .cmp-switch: правило .seg ниже с той же силой
   иначе показывало переключатель и на широком экране, где он ничего не делает. */
.seg.cmp-switch { display: none; }
@media (max-width: 767px) {
  .seg.cmp-switch { display: flex; margin-bottom: 14px; }
  .cmp[data-col] th:not(:first-child), .cmp[data-col] td:not(:first-child) { display: none; }
  .cmp[data-col="1"] th:nth-child(2), .cmp[data-col="1"] td:nth-child(2),
  .cmp[data-col="2"] th:nth-child(3), .cmp[data-col="2"] td:nth-child(3),
  .cmp[data-col="3"] th:nth-child(4), .cmp[data-col="3"] td:nth-child(4) { display: table-cell; }
  .cmp thead th { top: var(--hdr-h); }
}
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); max-width: 100%; overflow-x: auto; }
.seg button { height: 36px; padding: 0 14px; border-radius: 9px; border: 0; background: none; font: 600 14px/1 var(--sans); color: var(--text-2); cursor: pointer; white-space: nowrap; }
.seg button[aria-checked="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(15,23,42,.12); }

.bundle .price-v { font-size: clamp(28px, 3vw, 36px); }
.bundle .price-per b { font-family: var(--mono); color: var(--text); font-weight: 600; }
.vs { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 768px) { .vs { grid-template-columns: 1fr 1fr; } }
.vs > div { border-radius: var(--r-lg); padding: 20px 22px; border: 1px solid var(--border); background: var(--surface); }
.vs b { display: block; font: 700 30px/1.1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
/* Пробел в моноширинном шрифте шириной в цифру: у чисел внутри строк тоже поджимаем. */
.price-per b, .cmp thead th small, .rm-hud .rm-spd, .btn-dl small { word-spacing: -.35em; }
.vs .vs-us { border-color: rgba(4,120,87,.3); background: var(--green-tint); }
.vs .vs-us b { color: var(--green); }
.vs span { color: var(--text-2); font-size: 14.5px; display: block; margin-top: 6px; }

/* ─── FAQ ───────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 0 20px; }
.faq summary { list-style: none; min-height: 56px; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font: 600 16px/1.35 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { flex: none; color: var(--muted); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details > div { padding: 0 0 18px; color: var(--text-2); font-size: 15px; }

/* ─── Таблица «задача → решение» ───────────────────────────────────────── */
.tasks { display: grid; gap: 12px; }
.task { display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; }
.task-q { font-weight: 600; }
.task-a { color: var(--text-2); font-size: 15px; }
.task-m { font-size: 14px; }
@media (min-width: 900px) {
  .task { grid-template-columns: 1fr 1.3fr 180px; align-items: center; gap: 20px; }
  .task-m { text-align: right; }
}

/* ─── Форма ─────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label, .field .lbl { display: block; font: 600 14px/1.3 var(--sans); margin-bottom: 7px; }
.field small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.input { width: 100%; height: 48px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); padding: 0 14px; font: 400 16px/1.2 var(--sans); color: var(--text); transition: border-color .15s, box-shadow .15s, background .15s; }
textarea.input { height: auto; min-height: 112px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); background: var(--surface); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; }
.pick span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); font-size: 14px; color: var(--text-2); cursor: pointer; user-select: none; }
.pick input:checked + span { background: var(--accent-tint); border-color: rgba(37,99,235,.4); color: var(--accent); font-weight: 600; }
.pick input:focus-visible + span { box-shadow: var(--ring); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: var(--r); padding: 12px 14px; font-size: 14.5px; }
.form-msg.is-err { background: var(--red-tint); color: var(--red); }
.form-done { text-align: center; padding: 28px 12px; }
.form-done .tile { margin: 0 auto 16px; --tile: var(--green-tint); --tile-ink: var(--green); }

.cta-band .card { display: grid; gap: 28px; padding: clamp(24px, 4vw, 48px); }
@media (min-width: 1080px) { .cta-band .card { grid-template-columns: 1fr 1fr; align-items: center; } }

/* ─── Госномер ──────────────────────────────────────────────────────────── */
.rus-plate { display: inline-flex; align-items: stretch; background: #fff; border: 2px solid #0F172A; border-radius: 6px; font: 600 1em/1 var(--mono); color: #0F172A; overflow: hidden; }
.rp-main { padding: .28em .5em; letter-spacing: .04em; display: flex; align-items: center; }
.rp-reg { border-left: 2px solid #0F172A; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .1em .35em; min-width: 2.3em; }
.rp-num { font-size: .82em; }
.rp-rus { display: flex; align-items: center; gap: 2px; font: 700 .34em/1 var(--sans); margin-top: 1px; }
.rp-flag { width: .9em; height: .6em; background: linear-gradient(#fff 33%, #1C57A7 33% 66%, #D52B1E 66%); border: 1px solid #CBD5E1; }

/* ─── Новости, кейсы, документы ────────────────────────────────────────── */
.news-card .meta { display: flex; align-items: center; gap: 10px; font: 500 13px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); }
.news-card h3 { margin-top: 12px; font-size: 18px; }
.news-card p { font-size: 14.5px; }
.case-card .kpi-v { font-size: 32px; }
.doc-card { display: flex; gap: 14px; align-items: flex-start; }
.doc-card .tile { margin: 0; }
.doc-card .h3 { font-size: 17px; }
.doc-card p { margin-top: 4px; font-size: 14.5px; }
.pdf-card { display: flex; gap: 14px; align-items: center; }
.pdf-card .tile { margin: 0; --tile: var(--red-tint); --tile-ink: var(--red); }
.steps { counter-reset: st; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: st; }
.step::after { content: counter(st, decimal-leading-zero); position: absolute; top: 18px; right: 20px; font: 600 28px/1 var(--mono); color: var(--border-2); }

.article { display: grid; gap: 40px; }
@media (min-width: 1080px) { .article { grid-template-columns: 240px 1fr; gap: 56px; } }
.toc { font-size: 14.5px; }
.toc-in { position: sticky; top: calc(var(--hdr-h) + 24px); }
.toc h4 { font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--border); color: var(--text-2); }
.toc a:hover { color: var(--accent); border-left-color: var(--accent); }
.doc-body { max-width: 720px; color: var(--text-2); }
.doc-body h2 { font-size: 24px; margin: 40px 0 14px; letter-spacing: -.01em; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 18px; margin: 24px 0 10px; }
.doc-body p { margin-top: 12px; }
.doc-body ul, .doc-body ol { margin: 12px 0 0 22px; display: grid; gap: 6px; }
.callout { border-radius: var(--r); padding: 14px 16px; margin-top: 18px; font-size: 15px; background: var(--accent-tint); color: var(--text); }
.callout--warn { background: var(--amber-tint); }
.code { position: relative; margin-top: 16px; background: #0F172A; color: #E2E8F0; border-radius: var(--r); padding: 16px 52px 16px 16px; font: 400 14px/1.6 var(--mono); overflow-x: auto; white-space: pre; }
.code-copy { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #CBD5E1; display: grid; place-items: center; cursor: pointer; }
.code-copy:hover { background: rgba(255,255,255,.14); }
.code-copy .ic { width: 16px; height: 16px; }

.news-body { color: var(--text-2); }
.news-body p + p, .news-body ul { margin-top: 14px; }
.news-body ul { margin-left: 22px; display: grid; gap: 6px; }

/* ─── Документация: статья ─────────────────────────────────────────────── */
/* Три колонки от 1320 px (статьи раздела, текст, оглавление), две от 1080 px,
   уже одна. Навигация и оглавление для узкого экрана лежат блоками <details>
   в начале текста (.doc-m): закрытый <details> CSS не раскрыть. */
.doc-hero { padding-bottom: clamp(24px, 3vw, 36px); }
.doc-head { max-width: 860px; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.doc-apps { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.doc-app { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font: 500 13px/1 var(--sans); }
.doc-app .ic, .doc-read .ic { width: 15px; height: 15px; color: var(--muted); }
.doc-read { display: inline-flex; align-items: center; gap: 6px; }
.doc-sec { padding-top: 0; }
.doc-grid { display: grid; gap: 32px; align-items: start; }
.doc-grid > * { min-width: 0; }
.doc-nav, .doc-toc { display: none; }
@media (min-width: 1080px) {
  .doc-grid { grid-template-columns: 232px minmax(0, 1fr); gap: 48px; }
  .doc-nav { display: block; }
  .doc-m-nav { display: none; }
}
@media (min-width: 1320px) {
  .doc-grid { grid-template-columns: 232px minmax(0, 760px) 216px; justify-content: space-between; }
  .doc-toc { display: block; }
  /* Сильнее правила .doc-body .doc-m ниже по файлу: иначе на широком экране
     блок «На странице» для телефона стоял над текстом рядом с оглавлением. */
  .doc-grid .doc-body .doc-m { display: none; }
}
.doc-nav-in, .doc-toc .toc-in { position: sticky; top: calc(var(--hdr-h) + 20px); max-height: calc(100vh - var(--hdr-h) - 40px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px; }
.doc-nav h4, .doc-toc h4 { font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 20px 0 10px 10px; }
.doc-toc h4 { margin: 0 0 12px; }
.doc-nav ul { list-style: none; display: grid; gap: 2px; }
.doc-nav a, .doc-body .doc-m-nav a { display: block; padding: 7px 10px; border-radius: var(--r-sm); color: var(--text-2); font-size: 14.5px; line-height: 1.35; }
.doc-nav a:hover { background: var(--surface); color: var(--text); }
.doc-nav a[aria-current="page"], .doc-body .doc-m-nav a[aria-current="page"] { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.doc-nav .doc-nav-all, .doc-body .doc-nav-all { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; color: var(--accent); }
.doc-nav-all .ic { width: 16px; height: 16px; }
.doc-toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--border); color: var(--text-2); font-size: 13.5px; line-height: 1.4; }
.doc-toc a:hover { color: var(--accent); }
.doc-toc a[aria-current="true"] { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

.doc-body .doc-m { display: grid; gap: 8px; margin: 0 0 28px; }
.doc-m details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.doc-m summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; cursor: pointer; font: 600 15px/1.3 var(--sans); color: var(--text); }
.doc-m summary::-webkit-details-marker { display: none; }
.doc-m summary span { flex: 1; }
.doc-m summary .ic { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.doc-m details[open] summary .ic:last-child { transform: rotate(180deg); }
.doc-body .doc-m ul { list-style: none; margin: 0; padding: 0 8px 8px; gap: 2px; }
.doc-m-toc div { display: grid; padding: 0 8px 10px; }
.doc-m-toc a { padding: 8px 10px; border-radius: var(--r-sm); color: var(--text-2); font-size: 14.5px; }
.doc-body .doc-m .doc-nav-all { margin: 0 18px 14px; }

.doc-body { max-width: 760px; }
.doc-body h2 { scroll-margin-top: calc(var(--hdr-h) + 20px); }
.doc-body h3 { scroll-margin-top: calc(var(--hdr-h) + 20px); }
.h-anchor { margin-left: 8px; color: var(--border-2); font-weight: 500; opacity: 0; transition: opacity .15s; }
.doc-body h2:hover .h-anchor { opacity: 1; }
.doc-body b, .doc-body strong { color: var(--text); font-weight: 600; }
.doc-body li > ul, .doc-body li > ol { margin-top: 6px; }
.doc-body kbd { font: 600 12.5px/1 var(--mono); padding: 3px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border-2); box-shadow: inset 0 -2px 0 var(--border); color: var(--text); white-space: nowrap; }
.doc-body .ui { font-weight: 600; color: var(--text); }
.doc-body .doc-after { margin-top: 48px; }
.callout--tip { background: var(--green-tint); }
.callout--danger { background: var(--red-tint); }
.callout > b:first-child { display: block; margin-bottom: 4px; }
.callout a { font-weight: 600; }

.doc-body .dsteps { list-style: none; counter-reset: ds; margin: 18px 0 0; gap: 18px; }
.dsteps > li { counter-increment: ds; position: relative; padding-left: 44px; }
.dsteps > li::before { content: counter(ds); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--grad-brand); color: #fff; font: 600 14px/30px var(--mono); text-align: center; }
.dsteps > li > .fig { margin-top: 12px; }

.tbl { margin-top: 16px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.tbl thead th { background: var(--th-bg); font-weight: 600; color: var(--text); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }

/* Метка состояния в справочнике «Состояния и цвета»: кружок того цвета, каким
   это состояние рисует кабинет, и слово рядом. Цвет не единственный носитель
   смысла, подпись есть всегда. st--bar рисует полосу шкалы вместо кружка. */
.doc-body .st { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text); white-space: nowrap; }
.doc-body .st::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.doc-body .st--bar::before { width: 20px; height: 9px; border-radius: 3px; }
.doc-body .st--green::before { background: var(--green); }
.doc-body .st--amber::before { background: var(--amber); }
.doc-body .st--red::before { background: var(--red); }
.doc-body .st--blue::before { background: var(--accent-bright); }
.doc-body .st--purple::before { background: var(--purple-bright); }
.doc-body .st--teal::before { background: var(--teal); }
.doc-body .st--grey::before { background: var(--muted); opacity: .55; }
.doc-body .st--faint::before { background: var(--border-2); }
/* Три цвета панели «Связь» повторяют tracking.css кабинета (.tk-up-legend). */
.doc-body .st--orange::before { background: rgba(245,158,11,.85); }
.doc-body .st--pale::before { background: rgba(16,185,129,.35); }
.doc-body .st--empty::before { background: transparent; box-shadow: inset 0 0 0 1px var(--border-2); }
.doc-body .st--hatch::before { background: repeating-linear-gradient(45deg, rgba(100,116,139,.55) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--border-2); }

/* Словарь: термин слева, пояснение справа, на телефоне колонкой. Строка, к
   которой привёл поиск (якорь g-…), подсвечивается. */
.doc-body .gl { margin: 14px 0 0; border-top: 1px solid var(--border); }
.doc-body .gl-row { display: grid; grid-template-columns: minmax(140px, 28%) minmax(0, 1fr); gap: 4px 20px; padding: 12px 10px; border-bottom: 1px solid var(--border); border-radius: var(--r-sm); scroll-margin-top: calc(var(--hdr-h) + 20px); }
.doc-body .gl dt { font-weight: 600; color: var(--text); }
.doc-body .gl dd { margin: 0; }
.doc-body .gl-more { font-weight: 600; font-size: 14px; }
.doc-body .gl-row:target { background: var(--accent-tint); }
@media (max-width: 560px) { .doc-body .gl-row { grid-template-columns: minmax(0, 1fr); } }

/* Снимок с выносками: номера стоят в процентах от КАРТИНКИ (без полоски адреса
   и рамки телефона), поэтому .fig-marks лежит внутри .fig-img, а не рамки. */
.doc-body .fig, .fig { margin: 22px 0 0; }
.fig-img { position: relative; }
.fig-zoom { display: block; cursor: zoom-in; }
.fig .shot { box-shadow: var(--shadow-lift); border-radius: var(--r-lg); }
.doc-body .fig-marks { list-style: none; position: absolute; inset: 0; margin: 0; padding: 0; pointer-events: none; display: block; }
.fig-marks li { position: absolute; transform: translate(-50%, -50%); }
/* Размер кружка зашит и в tools/docshots/marks.py (DOT): по нему съёмка ищет
   номеру пустое место рядом с элементом. Меняются только вместе. */
.fig-marks b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad-brand); color: #fff; font: 600 13px/1 var(--mono); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(15,23,42,.35); }
@media (max-width: 640px) { .fig:not(.fig--phone) .fig-marks b { width: 24px; height: 24px; font-size: 12px; } }
.fig figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.doc-body .fig-legend { counter-reset: fl; list-style: none; margin: 8px 0 0; gap: 6px 18px; }
@media (min-width: 640px) { .doc-body .fig-legend { grid-template-columns: 1fr 1fr; } }
.fig-legend li { counter-increment: fl; display: flex; gap: 8px; align-items: flex-start; color: var(--text-2); font-size: 14px; }
.fig-legend li::before { content: counter(fl); flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font: 600 11px/20px var(--mono); text-align: center; margin-top: 1px; }
.fig--phone { max-width: 340px; margin-inline: auto; text-align: center; }
.fig--phone .fig-legend { text-align: left; }
.fig-phone .fig-img img, .fig-phone .shot-ph { width: 100%; height: auto; aspect-ratio: var(--fig-ar); object-fit: cover; border-radius: 12px 12px 26px 26px; }
.fig-bare .fig-img img { border-radius: var(--r-lg); border: 1px solid var(--border); }
.fig--narrow { max-width: min(100%, var(--fig-w)); }
.fig--narrow .fig-img img { width: 100%; height: auto; }
.figs { display: grid; gap: 20px; margin-top: 22px; }
@media (min-width: 640px) { .figs--2 { grid-template-columns: 1fr 1fr; } }
.figs > .fig { margin: 0; }

.zoom { position: fixed; inset: 0; z-index: 90; background: rgba(11,18,32,.88); display: grid; place-items: center; padding: 60px 12px 12px; cursor: zoom-out; }
.zoom img { max-width: min(100%, 1600px); max-height: 100%; width: auto; height: auto; border-radius: var(--r); box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #fff; }
.zoom-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.zoom-x:hover { background: rgba(255,255,255,.24); }
html.zoom-lock { overflow: hidden; }

/* Вкладки платформ: без скрипта видны все панели подряд со своими
   заголовками, со скриптом заголовки прячутся за переключателем. */
.ptabs { margin-top: 18px; }
.ptabs-bar { display: flex; margin-bottom: 16px; }
.ptabs-bar button { display: inline-flex; align-items: center; gap: 7px; }
.ptabs-bar button .ic { width: 16px; height: 16px; }
.ptab-h { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 22px 0 6px; color: var(--text); }
.ptab-h .ic { width: 18px; height: 18px; color: var(--muted); }
.ptabs.is-live .ptab-h { display: none; }
.ptab > :first-child { margin-top: 0; }

.doc-pn { display: grid; gap: 12px; margin-top: 44px; }
@media (min-width: 640px) { .doc-pn { grid-template-columns: 1fr 1fr; } }
.doc-pn-a { display: block; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.doc-pn-a:hover { border-color: var(--accent); box-shadow: var(--shadow-card); color: var(--text); }
.doc-pn-a small { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.doc-pn-a b { font-weight: 600; }
.doc-pn-next { text-align: right; }
.doc-pn-prev small::before { content: '← '; }
.doc-pn-next small::after { content: ' →'; }
.doc-fb { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); border: 1px dashed var(--border-2); font-size: 14.5px; }
.doc-fb .ic { color: var(--accent); margin-top: 2px; }
.doc-related .doc-card .h3 { font-size: 16px; }
.doc-related .doc-card p { font-size: 14px; }

/* ─── Документация: поиск ──────────────────────────────────────────────── */
.doc-search { position: relative; display: flex; align-items: center; }
.doc-search > .ic { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; z-index: 1; }
.doc-search input { width: 100%; height: 40px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); padding: 0 12px 0 36px; font: 400 14.5px/1 var(--sans); color: var(--text); -webkit-appearance: none; appearance: none; }
.doc-search input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.ds-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lift); padding: 6px; max-height: min(60vh, 520px); overflow-y: auto; text-align: left; }
.doc-nav .ds-pop { width: min(440px, calc(100vw - 32px)); right: auto; }
.ds-pop a { display: block; padding: 10px 12px; border-radius: var(--r-sm); color: var(--text); }
.ds-pop a:hover, .ds-pop a.is-on { background: var(--surface-2); color: var(--text); }
.ds-pop b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.ds-pop small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ds-pop span { display: block; font-size: 13px; color: var(--text-2); margin-top: 4px; line-height: 1.45; }
.ds-pop mark { background: rgba(245,158,11,.28); color: inherit; border-radius: 3px; padding: 0 1px; }
.ds-empty { padding: 12px; font-size: 14px; color: var(--muted); }
.ds-note { padding: 8px 12px 4px; font-size: 12.5px; color: var(--muted); }
.dh-help { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ─── Документация: главная ────────────────────────────────────────────── */
.dh-search { max-width: 640px; margin-top: 28px; }
.dh-search input { height: 56px; font-size: 17px; padding-left: 48px; border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.dh-search > .ic { left: 17px; width: 20px; height: 20px; }
.dh-app { display: flex; gap: 14px; align-items: flex-start; }
.dh-app .tile { margin: 0; }
.dh-app .h3 { font-size: 17px; }
.dh-app p { margin-top: 4px; font-size: 14.5px; }
.dh-app .mono { font-size: 12.5px; color: var(--muted); }
.dh-sec h3 { display: flex; align-items: center; gap: 10px; }
.dh-sec h3 .tile { margin: 0; }
.dh-sec > p { font-size: 14.5px; }
.dh-sec ul { list-style: none; display: grid; gap: 2px; margin-top: 14px; }
.dh-sec li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: var(--r-sm); color: var(--text); font-size: 15px; }
.dh-sec li a:hover { background: var(--surface-2); color: var(--accent); }
.dh-sec li a .ic { width: 15px; height: 15px; color: var(--muted); flex: none; }
.dh-role ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.dh-role .chip { height: 30px; font-size: 13.5px; }

/* ─── Появление при прокрутке ──────────────────────────────────────────── */
/* Класс rv ставит site.js, и только если есть IntersectionObserver: без
   скрипта содержимое не имеет права остаться прозрачным. */
.rv .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rv .reveal.is-in { opacity: 1; transform: none; }

/* ─── 404 ───────────────────────────────────────────────────────────────── */
.nf-screen { position: relative; aspect-ratio: 16 / 9; max-width: 720px; margin: 0 auto 32px; border-radius: var(--r-lg); overflow: hidden;
  background: #111 url(/static/img/testcard.svg?v=20260924) center/cover no-repeat; box-shadow: var(--shadow-shot); }
.nf-screen span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #000; color: #fff; font: 700 clamp(16px, 3vw, 28px)/1 Arial, sans-serif; letter-spacing: .08em; padding: .5em 1em; white-space: nowrap; }

/* ─── Общие анимации ────────────────────────────────────────────────────── */
.anim { position: relative; }
.anim-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.anim-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); font: 600 13.5px/1 var(--sans); color: var(--text-2); cursor: pointer; }
.anim-btn:hover { border-color: var(--accent); color: var(--accent); }
.anim-btn .ic { width: 15px; height: 15px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1.2 var(--sans); color: var(--text-2); cursor: pointer; user-select: none; background: none; border: 0; padding: 4px 0; }
.switch i { width: 38px; height: 22px; border-radius: 11px; background: var(--border-2); position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s; }
.switch[aria-checked="true"] i { background: var(--green); }
.switch[aria-checked="true"] i::after { transform: translateX(16px); }
.is-paused *, html.pano-hidden .anim * { animation-play-state: paused !important; }
.hit { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; z-index: 4; }
.hit:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }

/* ─── Анимация 1: схема тракта ──────────────────────────────────────────── */
.flow-stage { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-card); padding: clamp(10px, 2vw, 20px); overflow: hidden; }
.flow-box { position: relative; max-width: 440px; margin-inline: auto; }
@media (min-width: 768px) { .flow-box { max-width: none; } }
.flow-svg { display: block; width: 100%; height: auto; }
.flow-svg text { font-family: var(--sans); }
.fl-hit { position: absolute; border: 0; padding: 0; background: transparent; border-radius: 12px; cursor: pointer; }
.fl-hit:hover { background: rgba(37,99,235,.05); }
.fl-hit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fl-node rect.body { transition: stroke .2s; }
.fl-node.is-hot rect.body { stroke: var(--accent-bright); stroke-width: 2; }
.fl-link { fill: none; stroke: var(--border-2); stroke-width: 2; stroke-dasharray: 5 6; }
.fl-link.is-draw { stroke-dasharray: none; stroke: #CBD5E1; }
.fl-zone { fill: var(--surface-2); stroke: var(--border-2); stroke-dasharray: 6 6; }
.fl-cloud { fill: #EEF2FF; stroke: #C7D2FE; }
.fl-node rect.body { fill: #fff; stroke: var(--border-2); }
.fl-node.is-sel rect.body { stroke: var(--accent); stroke-width: 2; }
/* Размер и цвет подписей узлов задаёт flow.js атрибутами, по раскладке: CSS
   сильнее атрибутов, поэтому здесь только то, чего атрибут не ставит. */
.fl-cap { font-weight: 600; fill: var(--text); }
.fl-sub:not([fill]) { fill: var(--muted); }
.fl-label { font-size: 12px; }
.fl-label:not([fill]) { fill: var(--muted); }
.fl-ban { stroke: var(--red); stroke-width: 2; stroke-dasharray: 4 4; fill: none; }
.fl-led { fill: #22C55E; animation: led 1.2s steps(2) infinite; }
@keyframes led { 50% { fill: #86EFAC; } }
.flow-note { margin-top: 14px; min-height: 3.2em; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; font-size: 15px; color: var(--text-2); }
.flow-note b { color: var(--text); }
.flow-idle { font: 600 12px/1 var(--sans); fill: var(--muted); }

/* ─── Анимация 2: карта с машиной ───────────────────────────────────────── */
.rm { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-card); overflow: hidden; }
.rm-stage { position: relative; background: #F4F6FA; }
.rm-svg { display: block; width: 100%; height: auto; }
.rm-hud { position: absolute; left: 12px; top: 12px; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 14px;
  background: var(--glass); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-card); }
.rm-hud b { font: 600 15px/1 var(--mono); }
.rm-hud span { font-size: 13px; color: var(--text-2); }
.rm-hud .rm-spd { font: 600 13px/1 var(--mono); color: var(--text); }
.rm-toasts { position: absolute; right: 12px; top: 12px; z-index: 3; display: grid; gap: 8px; list-style: none; width: min(290px, 46%); }
.rm-toast { display: flex; gap: 9px; align-items: flex-start; padding: 9px 12px; border-radius: 12px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-edge); box-shadow: var(--shadow-card); font-size: 13px; line-height: 1.35; color: var(--text); animation: rmIn .35s var(--ease); }
.rm-toast i { width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; flex: none; background: var(--dot, var(--accent)); }
.rm-toast.is-out { opacity: 0; transform: translateX(10px); transition: opacity .4s, transform .4s; }
@keyframes rmIn { from { opacity: 0; transform: translateX(14px); } }
.rm-bottom { padding: 14px clamp(12px, 2vw, 20px) 16px; border-top: 1px solid var(--border); }
.rm-band { position: relative; height: 16px; border-radius: 5px; background: var(--th-bg); overflow: hidden; display: flex; }
.rm-band i { height: 100%; display: block; }
.seg--move { background: #10B981; } .seg--idle { background: #F59E0B; } .seg--park { background: #94A3B8; } .seg--off { background: #EF4444; } .seg--nodata { background: #CBD5E1; }
.rm-marks { position: relative; height: 12px; margin-bottom: 4px; }
.rm-marks b { position: absolute; bottom: 0; width: 8px; height: 8px; border-radius: 50%; transform: translateX(-50%); background: var(--dot); }
.rm-axis { display: flex; justify-content: space-between; font: 500 11.5px/1 var(--mono); color: var(--muted); margin-top: 7px; }
.rm-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
.rm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rm-legend i { width: 10px; height: 10px; border-radius: 3px; }
.rm-feed { list-style: none; display: grid; gap: 6px; margin-top: 12px; }
.rm-feed li { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-2); }
.rm-feed li i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--dot); }
@media (min-width: 640px) { .rm-feed { display: none; } }
@media (max-width: 639px) { .rm-toasts { display: none; } .rm-hud { left: 8px; top: 8px; padding: 7px 10px; gap: 8px; } .rm-hud span { display: none; } }

/* ─── Анимации документации (templates/site/anim/_doc_*.html) ──────────────
   Общий каркас: сцена в рамке, под ней органы управления и пересказ шагов
   (.da-steps), где текущий шаг подсвечен. Пересказ обязателен: без движения
   (prefers-reduced-motion) и для экранного диктора это и есть анимация. */
.da-stage { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-card); }
.da-svg { display: block; width: 100%; height: auto; }
.da-svg text { font-family: var(--sans); }
.da-maplabel { font-weight: 600; font-size: 12px; fill: var(--text-2); }
.da-qmark { font-weight: 700; font-size: 13px; fill: #fff; }
.da-vtext { font-family: var(--mono); font-weight: 600; font-size: 11px; fill: #fff; }
.da-svg .da-vtext, .da-svg .da-vclock { font-family: var(--mono); }
.da-vclock { font-weight: 600; font-size: 13px; fill: #fff; }
.da-vnote { font-weight: 600; font-size: 12.5px; fill: var(--text); }
.da-bottom { padding: 14px clamp(12px, 2vw, 20px) 4px; }
.da-tl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.da-tl-k { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.da-when { font-size: 13px; color: var(--text); flex: 1; }
.da-live { height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid var(--border-2); background: var(--surface); font: 600 11px/1 var(--mono); color: var(--muted); cursor: pointer; }
.da-live:hover { border-color: var(--accent); color: var(--accent); }
.da-live.is-on { background: var(--green-tint); border-color: rgba(4,120,87,.35); color: var(--green); }
.da-band-wrap { position: relative; }
.da-band { position: relative; height: 18px; border-radius: 5px; background: var(--th-bg); overflow: hidden; display: flex; cursor: pointer; }
.da-band i { height: 100%; display: block; }
.da-band:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.da-cur { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; background: var(--text); border-radius: 2px; pointer-events: none; box-shadow: 0 0 0 2px #fff; }
.da-cur.is-live { background: var(--green); }
.doc-body .da-steps, .da-steps { list-style: none; counter-reset: dst; display: grid; gap: 4px; margin: 14px 0 0; padding: 0; }
.da-steps li { counter-increment: dst; display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r); font-size: 14.5px; color: var(--text-2); transition: background .25s, color .25s; }
.da-steps li::before { content: counter(dst); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font: 600 11px/22px var(--mono); text-align: center; }
.da-steps li.is-on { background: var(--accent-tint); color: var(--text); }
.da-steps li.is-on::before { background: var(--grad-brand); color: #fff; }
.da-steps b { color: var(--text); }
.da-hint { font-size: 13.5px; }
.doc-body .anim { margin-top: 22px; }
/* «Жизнь видеоплитки»: надпись на плашке тем же шрифтом, что на испытательной таблице кабинета. */
.dti-plaque { fill: #fff; font-family: Arial, sans-serif; font-weight: 700; font-size: 25px; letter-spacing: .03em; }
.dti-name { fill: #fff; font-size: 13px; font-weight: 600; }
.dti-axis { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dti-k { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.dti-try { padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); font: 600 12px/1.4 var(--mono); color: var(--muted); transition: all .25s; }
.dti-try.is-done { background: var(--amber-tint); border-color: rgba(180,83,9,.35); color: var(--amber); }
.dti-try.is-ok { background: var(--green-tint); border-color: rgba(4,120,87,.35); color: var(--green); }
.dti-try--more { opacity: .7; }
.doc-body .dti-status, .dti-status { margin: 10px 0 0; min-height: 1.6em; font-size: 13px; color: var(--text-2); }
/* «Чёрный ящик» */
/* Плашка под сценой, а не поверх: поверх она закрывала сервер, к которому летят точки. */
.dbb-hud { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; padding: 9px 12px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.dbb-hud b { color: var(--text); font-weight: 600; }
.dbb-hud .dbb-link.is-off { color: var(--red); }
.dbb-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); font-size: 14px; color: var(--text); }
.dbb-dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; flex: none; }
.dbb-badge { padding: 1px 8px; border-radius: var(--r-pill); background: var(--amber-tint); color: var(--amber); font: 600 11px/1.6 var(--mono); }
.dbb-badge[hidden] { display: none; }
/* «Как всё связано» (главная документации): узлы схемы ведут в статьи. */
.dl-box { position: relative; }
.dl-hit { position: absolute; border-radius: 12px; }
a.dl-hit:hover { background: rgba(37,99,235,.05); }
.dl-svg .dl-zone { font-weight: 600; }
.dl-svg .dl-wire { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.dl-eq .dl-bar { fill: var(--accent); }
.dl-srv .dl-bar { fill: var(--purple); }
.dl-app .dl-bar { fill: var(--teal); }
.dl-map { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; font-size: 14px; color: var(--muted); }
.dl-map li { display: inline-flex; }
.dl-map a { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); text-decoration: none; }
.dl-map a:hover { border-color: var(--accent); color: var(--accent); }
/* «Геозона и гистерезис»: два счёта по одному пути. */
.da-svg .dgf-zone { fill: #0E7490; }
.dgf-cmp { display: grid; gap: 10px; }
@media (min-width: 640px) { .dgf-cmp { grid-template-columns: 1fr 1fr; } }
.dgf-col { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); padding: 10px 12px; }
.dgf-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.dgf-n { font-size: 22px; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.dgf-col--bad .dgf-n { color: var(--red); }
.dgf-col--ok .dgf-n { color: var(--green); }
.doc-body .dgf-col ul, .dgf-col ul { list-style: none; margin: 8px 0 0; padding: 0; min-height: 5.6em; display: grid; align-content: start; gap: 2px; font-size: 12.5px; color: var(--text-2); }
.dgf-col li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* «Поездка, остановка, стоянка» */
.da-svg .dtr-axis text { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.da-svg .dtr-axis .dtr-lab { font-family: var(--sans); font-weight: 600; font-size: 12px; fill: var(--text-2); }
.da-svg .dtr-axis .dtr-thr { fill: #B45309; text-anchor: end; }
.da-svg .dtr-note { font-family: var(--sans); font-weight: 600; font-size: 12px; fill: #B45309; }
.dtr-seg.seg--move { fill: #10B981; } .dtr-seg.seg--idle { fill: #F59E0B; } .dtr-seg.seg--park { fill: #94A3B8; }
.doc-body .dtr-now, .dtr-now { margin: 0; font-size: 13px; color: var(--text); min-height: 1.5em; }
/* «Подключение прибора» */
.da-svg .dcn-h { font-weight: 600; font-size: 13px; fill: var(--text); }
.da-svg .dcn-k { font-size: 11.5px; fill: var(--muted); }
.da-svg .dcn-v { font-weight: 600; font-size: 13px; fill: var(--text); }
.da-svg .dcn-mono, .da-svg .dcn-pkt { font-family: var(--mono); }
.da-svg .dcn-sm { font-size: 12px; }
.da-svg .dcn-warn { font-weight: 600; font-size: 11.5px; fill: #B45309; }
.da-svg .dcn-btn { font-weight: 600; font-size: 11.5px; fill: #fff; }
.da-svg .dcn-pkt { font-weight: 600; font-size: 10px; }
.doc-body .dcn-now, .dcn-now { margin: 0 0 4px; font-size: 13px; color: var(--text); min-height: 1.5em; }
/* «Пульт поворота»: экранные надписи тем же фосфорным, что прибор в кабинете. */
.da-svg .dpz-h { font-weight: 600; font-size: 13px; fill: var(--text); }
.da-svg .dpz-k { font-size: 11.5px; fill: var(--muted); }
.da-svg .dpz-bad { font-weight: 600; font-size: 11.5px; fill: #DC2626; }
.da-svg .dpz-osd { font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: .08em; fill: #39FF5A; }
.da-svg .dpz-pkt { font-family: var(--mono); font-weight: 600; font-size: 10.5px; }
.da-svg .dpz-post { font-family: var(--mono); font-weight: 600; font-size: 13px; fill: #0F172A; }
.doc-body .dpz-now, .dpz-now { margin: 0 0 4px; font-size: 13px; color: var(--text); min-height: 1.5em; }
/* «Решение у ворот» */
.da-svg .dgt-k { font-size: 11.5px; fill: var(--muted); }
.da-svg .dgt-v { font-weight: 600; font-size: 13px; fill: var(--text); }
.da-svg .dgt-st { font-weight: 600; font-size: 12px; }
.da-svg .dgt-num { font-family: var(--mono); font-weight: 600; font-size: 11px; fill: var(--muted); }
.da-svg .dgt-osd { font-family: var(--mono); font-weight: 600; font-size: 11px; fill: #fff; }
.da-svg .dgt-plate { font-family: var(--mono); font-weight: 600; font-size: 21px; fill: #0F172A; letter-spacing: .02em; }
.da-svg .dgt-reg { font-size: 15px; }
.da-svg .dgt-mini { font-family: var(--mono); font-weight: 600; font-size: 9px; fill: #0F172A; }
.da-svg .dgt-badge { font-weight: 600; font-size: 13px; }
.da-svg .dgt-log { font-size: 12px; fill: var(--text-2); }
.da-svg .dgt-mono { font-family: var(--mono); }
.doc-body .dgt-now, .dgt-now { margin: 0 0 4px; font-size: 13px; color: var(--text); min-height: 1.5em; }
/* «Оповещение в Telegram» */
.da-svg .dtb-v { font-weight: 600; font-size: 13px; fill: var(--text); }
.da-svg .dtb-k { font-size: 11.5px; fill: var(--muted); }
.da-svg .dtb-sm { font-size: 11px; }
.da-svg .dtb-xs { font-size: 9.5px; }
.da-svg .dtb-mono { font-family: var(--mono); }
.da-svg .dtb-ava { font-weight: 700; font-size: 13px; fill: #fff; }
.da-svg .dtb-quiet { font-weight: 600; font-size: 11.5px; fill: #CBD5E1; }
.doc-body .dtb-now, .dtb-now { margin: 0 0 4px; font-size: 13px; color: var(--text); min-height: 1.5em; }
/* «Ретрансляция» */
.da-svg .drt-h { font-weight: 600; font-size: 13px; fill: var(--text); }
.da-svg .drt-k { font-size: 11.5px; fill: var(--muted); }
.da-svg .drt-mono, .da-svg .drt-id, .da-svg .drt-pkt { font-family: var(--mono); }
.da-svg .drt-id { font-weight: 600; font-size: 11px; }
.da-svg .drt-bb { font-family: var(--mono); font-weight: 600; font-size: 9.5px; fill: #fff; }
.da-svg .drt-pkt { font-weight: 600; font-size: 11px; }
.da-svg .drt-mark { font-family: var(--mono); font-weight: 600; font-size: 11px; fill: #6D28D9; }
.doc-body .drt-now, .drt-now { margin: 0 0 4px; font-size: 13px; color: var(--text); min-height: 1.5em; }
/* «Оплата и доступ» */
.da-svg .dbl-h { font-weight: 600; font-size: 13px; fill: var(--text); }
.da-svg .dbl-k { font-size: 11.5px; fill: var(--muted); }
.da-svg .dbl-v { font-weight: 600; font-size: 13px; fill: var(--text); }
.da-svg .dbl-sm { font-size: 12px; }
.da-svg .dbl-mono, .da-svg .dbl-day { font-family: var(--mono); }
.da-svg .dbl-day { font-weight: 600; font-size: 12px; }
.da-svg .dbl-mark { font-size: 11px; fill: var(--text-2); }
.da-svg .dbl-bad { font-weight: 600; font-size: 12px; fill: #B91C1C; }
.doc-body .dbl-now, .dbl-now { margin: 0 0 4px; font-size: 13px; color: var(--text); min-height: 1.5em; }

/* ─── Пошаговые показы ({% walk %}, static/site/js/walk.js) ─────────────────
   По умолчанию лента шагов: миниатюра с подсвеченной целью и текст. Её видят
   без скрипта и при prefers-reduced-motion. Скрипт ставит .walk--live и
   собирает проигрыватель: снимок крупно, курсор, круг нажатия, шаги. */
.doc-body .walk, .walk { margin: 24px 0 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-xl);
  background: var(--surface-2); }
.walk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.walk-head .ic { width: 18px; height: 18px; color: var(--accent); }
.walk-k { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.walk-head b { font-size: 15px; font-weight: 600; color: var(--text); }
.doc-body .walk-strip, .walk-strip { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.walk-card { margin: 0; }
.walk-thumb { position: relative; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.walk-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.walk-thumb--phone { max-width: 170px; border-radius: 16px; }
.walk-box { position: absolute; border: 2px solid var(--accent); border-radius: 6px; pointer-events: none;
  box-shadow: 0 0 0 4px rgba(37,99,235,.18); }
.walk-card p { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.walk-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--grad-brand); color: #fff;
  font: 600 11px/22px var(--mono); text-align: center; }
.walk--live .walk-strip { display: none; }
/* Снимок во всю ширину колонки статьи, текст и кнопки под ним: колонка статьи
   уже 800 точек, и рядом с боковой панелью кадр кабинета сжимался до 460, где
   подписи интерфейса не читаются. */
.walk-player { display: grid; gap: 14px; }
.walk-side { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; }
.walk-side .walk-nav { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.walk-side .walk-dots { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .walk-side { grid-template-columns: minmax(0, 1fr); }
  .walk-side .walk-nav { grid-column: 1; grid-row: auto; }
}
.walk-screen { margin: 0 auto; width: 100%; }
.walk-screen.phone { width: min(100%, 300px); }
.walk-view { position: relative; overflow: hidden; background: var(--surface); }
.walk-screen.phone .walk-view { border-radius: 12px 12px 26px 26px; }
.walk-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.walk-img.is-on { opacity: 1; }
.walk-view .walk-box { opacity: 0; transition: opacity .3s ease, left .4s ease, top .4s ease, width .4s ease, height .4s ease; }
.walk-view .walk-box.is-on { opacity: 1; }
.walk-cur { position: absolute; width: 20px; height: 27px; margin: -2px 0 0 -2px; pointer-events: none; opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(15,23,42,.45)); transition: opacity .25s; z-index: 3; }
.walk-cur svg { display: block; width: 100%; height: 100%; }
.walk-ring { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  border: 3px solid var(--accent); opacity: 0; pointer-events: none; z-index: 2; }
.walk-count { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.doc-body .walk-text, .walk-text { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--text); min-height: 3em; }
.walk-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.walk-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface);
  font-size: 20px; line-height: 1; color: var(--text); cursor: pointer; }
.walk-arrow:hover { border-color: var(--accent); color: var(--accent); }
.walk-arrow:focus-visible, .walk-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.walk-nav .walk-ctrl { margin: 0; }
.doc-body .walk-dots, .walk-dots { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.walk-dots button { display: block; width: 22px; height: 6px; border-radius: 3px; border: 0; padding: 0; background: var(--border-2); cursor: pointer; }
.walk-dots button.is-on { background: var(--accent); }

/* ─── Анимация 3: тур ───────────────────────────────────────────────────── */
.tour-tabs { margin-bottom: 20px; text-align: center; }
.tour-body { display: grid; gap: 20px; }
@media (min-width: 1080px) { .tour-body { grid-template-columns: 8fr 4fr; align-items: start; } }
.tour-pane[hidden] { display: none !important; }
.tour-view { position: relative; overflow: hidden; }
.tour-zoom { position: relative; transform-origin: 50% 50%; transition: transform .45s var(--ease); }
/* Точки стоят в процентах от КАРТИНКИ, а не от рамки: полоска адреса сверху
   (36 px) и рамка телефона иначе сдвигали бы их тем сильнее, чем уже экран. */
.tour-dots { position: absolute; left: 0; right: 0; top: 36px; bottom: 0; pointer-events: none; }
.tour-phone .tour-dots { top: 28px; left: 9px; right: 9px; bottom: 12px; }
.tour-phone .tour-zoom { width: min(100%, 300px); margin-inline: auto; }
.tour-dots .tour-dot { pointer-events: auto; }
.tour-dot { position: absolute; transform: translate(-50%, -50%); width: 40px; height: 40px; border: 0; background: none; cursor: pointer; z-index: 3; display: grid; place-items: center; }
.tour-dot i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(15,23,42,.35); opacity: .75; transition: all .2s; position: relative; font-size: 0; font-style: normal; }
.tour-dot i::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.tour-dot.is-on i { width: 22px; height: 22px; background: var(--grad-brand); opacity: 1; display: grid; place-items: center; font: 600 11px/1 var(--mono); color: #fff; font-style: normal; }
.tour-dot.is-on i::after { animation: ring 1.8s infinite; }
@keyframes ring { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(2.2); } }
.tour-steps { list-style: none; display: grid; gap: 8px; }
.tour-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.tour-step button { width: 100%; text-align: left; background: none; border: 0; padding: 14px 16px; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; }
.tour-step button b { font: 600 15px/1.35 var(--sans); }
.tour-step button em { flex: none; font: 600 12px/1 var(--mono); font-style: normal; color: var(--muted); width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
.tour-step p { display: none; padding: 0 16px 14px 52px; font-size: 14.5px; color: var(--text-2); }
.tour-step.is-on { border-color: rgba(37,99,235,.35); box-shadow: var(--shadow-card); }
.tour-step.is-on p { display: block; }
.tour-step.is-on button em { background: var(--grad-brand); color: #fff; }
.tour-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font: 500 13px/1 var(--mono); color: var(--muted); }
.tour-phone { max-width: 320px; margin-inline: auto; }
@media (max-width: 1079px) {
  .tour-steps .tour-step:not(.is-on) { display: none; }
  .tour-step.is-on p { display: block; }
}

/* ─── Анимация 4: распознавание номера ──────────────────────────────────── */
.pd { display: grid; gap: 20px; }
@media (min-width: 1080px) { .pd { grid-template-columns: 7fr 5fr; align-items: start; } }
.pd-cam { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #111827; box-shadow: var(--shadow-shot); }
.pd-cam svg { display: block; width: 100%; height: auto; }
.pd-ocr { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.pd-ocr .rus-plate { font-size: clamp(22px, 3vw, 30px); min-width: 7.6em; }
.pd-ocr .rp-main { min-width: 4.9em; }
.pd-caret { display: inline-block; width: .08em; height: .9em; background: #0F172A; margin-left: 2px; animation: caret 1s steps(2) infinite; vertical-align: -2px; }
@keyframes caret { 50% { opacity: 0; } }
.pd-conf { flex: 1; min-width: 140px; }
.pd-conf small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.pd-conf i { display: block; height: 6px; border-radius: 3px; background: var(--th-bg); overflow: hidden; }
.pd-conf i b { display: block; height: 100%; width: 0; background: var(--green); transition: width .9s var(--ease); }
.pd-status { margin-top: 10px; font: 500 13.5px/1.4 var(--sans); color: var(--muted); }
/* Пустые состояния между машинами: без них табличка и журнал выглядели сломанными. */
.pd-ocr .rp-main:empty::before { content: 'А000АА'; color: var(--border-2); }
.pd-ocr .rp-num:empty::before { content: '000'; color: var(--border-2); }
.pd-rows { min-height: 120px; }
.pd-rows:empty::before { content: 'Здесь появится первый проезд'; display: block; padding: 12px; border: 1px dashed var(--border-2); border-radius: var(--r-sm); font-size: 13px; color: var(--muted); text-align: center; }
.pd-side .card { padding: 18px; }
.pd-side .card + .card { margin-top: 14px; }
.pd-side h3 { font: 600 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pd-rows { list-style: none; display: grid; gap: 6px; }
.pd-row { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; align-items: center; padding: 9px 10px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 13px; }
.pd-row.is-new { animation: rowIn .45s var(--ease), rowFlash 1.4s ease-out; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes rowFlash { 0% { background: var(--accent-tint); } 100% { background: var(--surface-2); } }
.pd-row .mono { font-size: 12px; color: var(--muted); }
.pd-row .rus-plate { font-size: 12.5px; }
.pd-row .res { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pd-row .res i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); flex: none; }
.pd-q { font: 600 11px/1 var(--sans); padding: 3px 7px; border-radius: 6px; background: var(--amber-tint); color: var(--amber); }
.pd-q.is-sent { background: var(--green-tint); color: var(--green); }
.pd-cloud { font: 500 12.5px/1.3 var(--sans); color: var(--muted); display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; }
.pd-cloud.is-off { color: var(--amber); }
.pd-manual { margin-top: 10px; }

/* ─── Иллюстрации и схемы ───────────────────────────────────────────────── */
.illus { width: 100%; height: auto; display: block; }
.scheme { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(14px, 2.5vw, 28px); box-shadow: var(--shadow-card); }
.scheme svg { display: block; width: 100%; height: auto; }
.scheme text { font-family: var(--sans); }
.sol-card .illus-box { background: var(--surface-2); border-radius: var(--r); margin: -4px -4px 18px; padding: 16px; }
.sol-card .illus-box svg { height: 110px; width: 100%; }
.sol-hero-illus { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow-card); }
.sol-hero-illus svg { display: block; width: 100%; height: auto; }
.lead-box { position: relative; }
.card > .tile:first-child + .h3, .card > .tile:first-child + h2, .card > .tile:first-child + h3 { margin-top: 0; }
.tour-view .shot { box-shadow: var(--shadow-lift); }
.tour-view.tour-phone { max-width: 320px; margin-inline: auto; }
.tour-nav .anim-btn { width: 40px; justify-content: center; }
.pd-side h3 .switch { padding: 0; }
.pd .seg { display: flex; width: 100%; }
.pd .seg button { flex: 1; padding: 0 8px; }

/* ─── Демо-экраны: нарисованные кадры камер ─────────────────────────────── */
.demo-screen { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-shot); }
.demo-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo-osd { position: absolute; left: 12px; top: 10px; font: 500 12px/1.3 var(--mono); color: #F8FAFC; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.demo-osd b { font-weight: 600; margin-right: 6px; }
.demo-live { position: absolute; right: 12px; top: 10px; font: 600 11px/1 var(--mono); color: #22C55E; display: inline-flex; align-items: center; gap: 5px; }
.demo-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #22C55E; }
.ptz-demo .ptz-pad { position: absolute; right: 4%; bottom: 7%; width: 34%; max-width: 236px; }
.ptz-demo .demo-pan { transform: scale(1.18); animation: ptzPan 9s ease-in-out infinite; }
@keyframes ptzPan { 0%, 100% { transform: scale(1.18) translateX(-5%); } 50% { transform: scale(1.18) translateX(5%); } }
.ptz-on { animation: ptzBlink 9s ease-in-out infinite; }
@keyframes ptzBlink { 0%, 45% { opacity: 1; filter: drop-shadow(0 0 4px #39FF5A); } 55%, 100% { opacity: .35; } }
.demo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.demo-chips span { font: 600 12.5px/1 var(--sans); padding: 8px 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.demo-chips span.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-grid .demo-screen { border-radius: var(--r); box-shadow: none; }
.demo-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ─── Движение: уважаем настройки человека ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv .reveal { opacity: 1; transform: none; }
  .toast { opacity: 1; transform: none; }
}

@media print {
  .hdr, .drawer, .drawer-back, .ftr-dl, .btns, .anim-ctrl { display: none !important; }
  body { background: #fff; }
}
