/* Основа сайта: токены по умолчанию («Пергамент»), раскладка, общие элементы, окно приложения.
   Цвета, шрифты и формы каждого варианта — в themes.css; здесь только то, что одинаково везде.
   Демо рисуют экраны из общих элементов (список ниже) и не заводят своих цветов —
   только var(--…), иначе вариант оформления их не перекрасит.

   Элементы экрана в окне приложения:
   .scr  .scr-h  .scr-t  .scr-sub            — экран, шапка экрана, заголовок, подпись
   .kpis > .kpi (.kpi-l .kpi-v .kpi-s)       — плитки с цифрами; тон: .t-ok .t-bad .t-warn .t-acc
   .card .card-h .grid2 .grid3 .row .col     — карточки и сетки (сами складываются в узком окне)
   table.tbl (td.r — число справа, tr.click, tr.on)
   .pill (.ok .warn .bad .acc .mute)  .chip  .badge  .dot (.ok .warn .bad)
   .btn (.btn-pri .btn-ghost .btn-sm .btn-ok .btn-bad)  .icon-btn  .seg > button(.on)  .tabs > button(.on)
   .bar > i (style="width:40%"; .ok .warn .bad)          — полоска доли
   .list > .li (.li-i .li-main .li-t .li-s .li-r)        — строки списка; .li.click — нажимается
   .av (style="--h:200") — кружок с инициалами; .field > span + .inp — поле ввода
   .callout (.ok .warn .bad) — выделенный абзац; .legend > .lg > i — легенда графика
   .muted .num .up .down .acc .strong .small .nowrap  — мелочи текста */

:root {
  --bg: #FBF4ED;
  --bg-2: #F4EADF;
  --surface: #FFFDF9;
  --surface-2: #F6EEE4;
  --line: #E6D9CA;
  --line-2: #D7C6B3;
  --text: #312B24;
  --text-2: #5A5048;
  --muted: #8C8177;
  --accent: #BB7C64;
  --accent-2: #7C8B6F;
  --accent-ink: #FFFFFF;
  --accent-soft: #F3E0D6;
  --ok: #4F7F4B;
  --ok-soft: #E3EEDD;
  --warn: #B07A1E;
  --warn-soft: #F6EAD2;
  --bad: #B4533E;
  --bad-soft: #F6DDD5;
  --c1: #BB7C64; --c2: #7C8B6F; --c3: #C9A66B; --c4: #8A7A9C; --c5: #6E9AA8;
  --gold: #B8924F;
  --gold-soft: rgba(184, 146, 79, .14);
  --sign: #B6ADA5;
  --glow: rgba(187, 124, 100, .18);
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --bw: 1px;
  --shadow: 0 1px 2px rgba(49, 43, 36, .05), 0 6px 18px -8px rgba(49, 43, 36, .16);
  --shadow-lg: 0 30px 70px -30px rgba(49, 43, 36, .35), 0 2px 6px rgba(49, 43, 36, .06);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --display-w: 600;
  --display-track: -0.01em;
  --display-lh: 1.02;
  --display-scale: 1.12;
  --eyebrow-track: .16em;
  --glass-bg: rgba(255, 253, 249, .72);
  --glass-line: rgba(49, 43, 36, .1);
  --glass-blur: 14px;
  --top-bg: rgba(251, 244, 237, .82);
  --logo-ink: #312B24;
  --logo-sign: #B6ADA5;
  --logo-pulse: #BB7C64;
  --app-bg: var(--surface);
  --app-side: var(--surface-2);
  --app-bar: var(--bg-2);
  --focus: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
[data-scheme="dark"] { color-scheme: dark; }

/* ── Основа ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
body.modal-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; }
p { margin: 0; }
em { font-style: normal; color: var(--accent); }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.display {
  font-family: var(--font-display);
  font-weight: var(--display-w);
  letter-spacing: var(--display-track);
  line-height: var(--display-lh);
  text-transform: var(--display-case, none);
}
.ic { width: 18px; height: 18px; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.up { color: var(--ok); }
.down { color: var(--bad); }
.acc { color: var(--accent); }
.strong { font-weight: 700; }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.hide-s { display: inline; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1.2 var(--font-body);
  letter-spacing: var(--eyebrow-track);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow .ic { width: 16px; height: 16px; }

/* ── Кнопки ─────────────────────────────────────────────────────── */
.btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: var(--radius-sm);
  border: var(--bw) solid var(--b);
  background: var(--surface);
  color: var(--text);
  font-weight: 600; font-size: 14.5px;
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .15s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn .ic { width: 17px; height: 17px; }
.btn-pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-pri:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-bad { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: var(--radius); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 13px; gap: 6px; }
.btn-sm .ic { width: 15px; height: 15px; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 0; background: transparent; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border-radius: 999px;
  border: var(--bw) solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13.5px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.chip:hover, .chip.on { border-color: var(--accent); color: var(--text); }
.chip.on { background: var(--accent-soft); }
.chip .ic { width: 15px; height: 15px; }

/* ── Стекло ─────────────────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  border: var(--bw) solid var(--glass-line);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  box-shadow: var(--shadow);
}

/* ── Шапка ──────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--top-bg);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: var(--bw) solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.top-logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.top-logo .logo { height: 38px; width: auto; }
.top-back { display: none; align-items: center; gap: 8px; text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 14px; }
.top-back:hover { color: var(--text); }
.top-case { display: none; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.top-case span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-case .ic { color: var(--accent); }
.top-links { display: flex; gap: 4px; margin-left: 8px; }
.top-links a { padding: 8px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text-2); font-size: 14.5px; font-weight: 500; }
.top-links a:hover { color: var(--text); background: var(--surface-2); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.is-case .top-links { display: none; }
.is-case .top-back, .is-case .top-case { display: inline-flex; }
.is-case .top-case { border-left: var(--bw) solid var(--line); padding-left: 16px; }

/* ── Выбор вида ─────────────────────────────────────────────────── */
.vbtn { gap: 10px; }
.vbtn .sw { display: inline-flex; }
.sw i { width: 12px; height: 12px; border-radius: 50%; margin-left: -4px; box-shadow: 0 0 0 1.5px var(--surface); }
.sw i:first-child { margin-left: 0; }
.vpick-list { display: grid; gap: 10px; }
.vpick-i {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center;
  padding: 10px; border-radius: var(--radius);
  border: var(--bw) solid var(--line); background: var(--surface);
  cursor: pointer; text-align: left; transition: border-color .2s, transform .15s;
}
.vpick-i:hover { border-color: var(--accent); }
.vpick-i.on { border-color: var(--accent); box-shadow: var(--focus); }
.vpick-i b { display: block; font-size: 15px; }
.vpick-i small { color: var(--muted); font-size: 12.5px; line-height: 1.35; display: block; }
.vpick-n { font: 700 12px var(--font-mono); color: var(--muted); }
.vpick-sw { height: 46px; border-radius: 8px; position: relative; overflow: hidden; border: 1px solid rgba(0, 0, 0, .08); }
.vpick-sw i { position: absolute; }
.vpick-sw i:nth-child(2) { left: 10px; top: 10px; width: 34px; height: 6px; border-radius: 3px; }
.vpick-sw i:nth-child(3) { left: 10px; top: 22px; width: 22px; height: 14px; border-radius: 4px; }
.vpick-more { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }

/* ── Тема: Пергамент / Ночь ─────────────────────────────────────── */
.mtog { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; border: var(--bw) solid var(--line); background: var(--surface-2); }
.mtog button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: color .2s, background-color .2s; }
.mtog button:hover { color: var(--text); }
.mtog button.on { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.mtog .ic { width: 17px; height: 17px; }
/* «День и ночь»: солнце встаёт, луна поднимается — когда тема включается */
.mtog[data-now="light"] [data-mode-set="light"] .ic, .mtog[data-now="light"] [data-mode-set="auto"].on .ic { animation: mt-rise .6s var(--ease) both; }
.mtog[data-now="dark"] [data-mode-set="dark"] .ic, .mtog[data-now="dark"] [data-mode-set="auto"].on .ic { animation: mt-rise .6s var(--ease) both; }
.mtog[data-now="dark"] [data-mode-set="auto"] .ic { transform: rotate(180deg); }
@keyframes mt-rise { from { transform: translateY(7px) scale(.8); opacity: .3; } to { transform: none; opacity: 1; } }
.mtog[data-now="dark"] [data-mode-set="auto"].on .ic { animation-name: mt-rise-n; }
@keyframes mt-rise-n { from { transform: translateY(7px) rotate(180deg) scale(.8); opacity: .3; } to { transform: rotate(180deg); opacity: 1; } }
.vt-mode .app, .vt-mode .slide-text, .vt-mode .case-nav { view-transition-name: none !important; }

/* ── Направление: переключатель в шапке (только на время выбора) ── */
.dpick { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: var(--bw) solid var(--line); background: var(--surface-2); font-size: 13px; }
.dpick button { border: 0; background: transparent; color: var(--text-2); cursor: pointer; border-radius: 999px; }
.dp-arrow { width: 30px; height: 34px; display: grid; place-items: center; }
.dp-arrow:hover, .dp-main:hover { background: var(--surface); color: var(--text); }
.dp-arrow .ic { width: 16px; height: 16px; }
.dp-main { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 8px; white-space: nowrap; }
.dp-main b { font-weight: 600; color: var(--text); }
.dp-n { font: 600 11px var(--font-mono); color: var(--muted); }
.dp-sw { background: var(--bg) !important; }
.dp-sw i:nth-child(1) { left: 10px; top: 10px; width: 34px; height: 6px; border-radius: 3px; background: var(--text); }
.dp-sw i:nth-child(2) { left: 10px; top: 22px; width: 22px; height: 14px; border-radius: 4px; background: var(--accent); }
.dp-sw i:nth-child(3) { right: 10px; top: 10px; width: 16px; height: 26px; border-radius: 3px; border: 1px solid var(--line-2); }

/* ── Модальное окно ─────────────────────────────────────────────── */
.modal-wrap { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.modal-dim { position: absolute; inset: 0; background: rgba(10, 8, 6, .5); opacity: 0; transition: opacity .25s; }
.modal {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--surface); color: var(--text);
  border: var(--bw) solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 28px;
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .25s, transform .3s var(--ease);
}
.modal-wrap.in .modal-dim { opacity: 1; }
.modal-wrap.in .modal { opacity: 1; transform: none; }
.modal-x { position: absolute; right: 14px; top: 14px; }
.modal-t { font-family: var(--font-display); font-weight: var(--display-w); font-size: 28px; margin: 0 40px 8px 0; line-height: 1.1; }
.modal-b > p { color: var(--text-2); margin-bottom: 18px; }
.form { display: grid; gap: 12px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contacts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; padding-top: 16px; border-top: var(--bw) solid var(--line); font-size: 14px; }
.contacts a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text-2); }
.contacts a:hover { color: var(--accent); }
/* заявка: ошибки, отправка, ответ сервера */
.field-err { color: var(--bad); font-size: 12.5px; font-weight: 500; }
.inp[aria-invalid="true"] { border-color: var(--bad); }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.form-consent input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--accent); }
.form-consent a { color: var(--accent); }
.form-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.form-acts .btn { flex: 1 1 auto; }
.form [data-status]:empty { display: none; }
.form.is-busy .inp, .form.is-busy .form-consent { opacity: .62; pointer-events: none; }
.form.is-busy .btn-pri:disabled { opacity: .8; }
.btn-spin { flex: none; width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: btnSpin .7s linear infinite; }
@keyframes btnSpin { to { transform: rotate(360deg); } }
.form-sent { display: grid; gap: 16px; }
.form-sent b { overflow-wrap: anywhere; }

/* ── Тосты ──────────────────────────────────────────────────────── */
#toasts { position: fixed; z-index: 300; left: 50%; bottom: 88px; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: var(--radius);
  background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .3s var(--ease);
}
.toast.in { opacity: 1; transform: none; }
.toast.ok .ic { color: var(--ok-soft); }
.toast.bad .ic { color: var(--bad-soft); }

/* ── Поля ───────────────────────────────────────────────────────── */
.field { display: grid; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.inp {
  width: 100%; height: 40px; padding: 0 12px;
  border-radius: var(--radius-sm); border: var(--bw) solid var(--line-2);
  background: var(--surface); color: var(--text); font-size: 14.5px;
  transition: border-color .2s, box-shadow .2s;
}
textarea.inp { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.inp:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.inp::placeholder { color: var(--muted); }

/* ═══ Презентация решения ═══════════════════════════════════════ */
.case { min-height: calc(100vh - 64px); display: flex; flex-direction: column; }
.case-nav { border-bottom: var(--bw) solid var(--line); background: color-mix(in srgb, var(--bg) 70%, var(--bg-2)); position: sticky; top: 64px; z-index: 40; }
.case-nav-in { display: flex; gap: 4px; overflow-x: auto; padding: 8px 24px; max-width: 1240px; margin: 0 auto; scrollbar-width: none; }
.case-nav-in::-webkit-scrollbar { display: none; }
.cn-item {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 8px 12px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text-2); font-size: 14px; font-weight: 500;
  border: var(--bw) solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.cn-item:hover { color: var(--text); background: var(--surface-2); }
.cn-item.on { color: var(--text); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.cn-n { font: 600 11px var(--font-mono); color: var(--muted); }
.cn-item.on .cn-n { color: var(--accent); }
.cn-item.done .cn-n { color: var(--accent); opacity: .65; }
.case-stage { flex: 1; position: relative; overflow-x: clip; }
.case-foot { position: sticky; bottom: 0; z-index: 40; background: var(--top-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: var(--bw) solid color-mix(in srgb, var(--line) 70%, transparent); }
.case-foot-in { display: flex; align-items: center; gap: 14px; height: 64px; }
.case-prog { flex: 1; display: flex; gap: 4px; }
.case-prog a { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background-color .3s; }
.case-prog a.on { background: var(--accent); }
.case-prog a:hover { background: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.case-count { font-size: 13px; color: var(--muted); min-width: 44px; text-align: center; }

.slide { padding: 40px 0 48px; opacity: 0; transform: translateX(24px); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.slide[data-step="prev"] { transform: translateX(-24px); }
.slide.in { opacity: 1; transform: none; }

/* обложка */
.cover-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; min-height: calc(100vh - 64px - 58px - 64px - 88px); }
.cover-title { font-size: calc(clamp(40px, 5.4vw, 76px) * var(--display-scale)); margin-bottom: 22px; }
.cover-lead { font-size: 18px; color: var(--text-2); max-width: 560px; margin-bottom: 28px; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.cover-note { font-size: 13px; color: var(--muted); margin-bottom: 8px; max-width: 520px; }
.cover-toc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 26px; }
.cover-toc .muted { font-size: 13.5px; margin-right: 4px; }
.plates { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plate { border-radius: var(--radius-lg); padding: 18px 20px; animation: plateIn .7s var(--ease) both; animation-delay: var(--d); }
.plate:nth-child(2) { grid-row: span 2; }
.plate-l { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.plate-v { font-family: var(--font-display); font-weight: var(--display-w); font-size: calc(32px * var(--display-scale)); line-height: 1.05; letter-spacing: var(--display-track); }
.plate-s { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.plate.t-ok .plate-v { color: var(--ok); }
.plate.t-bad .plate-v { color: var(--bad); }
.plate.t-acc .plate-v { color: var(--accent); }
.plate-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.plate-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 14px; }
.plate-list b { font-weight: 600; white-space: nowrap; }
.plate-list b.bad { color: var(--bad); }
.plate-list b.ok { color: var(--ok); }
.plate-list b.warn { color: var(--warn); }
@keyframes plateIn { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

/* раздел */
.sec-grid { display: grid; grid-template-columns: minmax(270px, 340px) minmax(0, 1fr); gap: 36px; align-items: start; }
.sec-grid > * { min-width: 0; }
.slide-text { position: sticky; top: 150px; padding-top: 8px; }
.slide-title { font-size: calc(clamp(30px, 3.2vw, 46px) * var(--display-scale)); margin-bottom: 16px; }
.slide-lead { color: var(--text-2); font-size: 16.5px; margin-bottom: 18px; }
.slide-points { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.slide-points li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.slide-points .ic { color: var(--accent); margin-top: 2px; }
.try {
  display: inline-flex; align-items: flex-start; gap: 10px; text-align: left;
  padding: 11px 14px; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--text); border: var(--bw) dashed color-mix(in srgb, var(--accent) 55%, transparent);
  font-size: 14px; line-height: 1.4; cursor: pointer;
}
.try b { color: var(--accent); font-weight: 700; }
.try-dot { flex: none; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.try-ring { position: relative; animation: ring 1.8s ease-out infinite; }
@keyframes ring {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* итог */
.slide-final .wrap { max-width: 1100px; }
.final-title { font-size: calc(clamp(34px, 4.4vw, 60px) * var(--display-scale)); margin-bottom: 14px; max-width: 900px; }
.final-lead { font-size: 18px; color: var(--text-2); max-width: 720px; margin-bottom: 30px; }
.outcomes { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.outcome { padding: 20px; animation: plateIn .6s var(--ease) both; animation-delay: var(--d); }
.outcome-i { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.outcome b { display: block; font-size: 16.5px; margin-bottom: 6px; line-height: 1.3; }
.outcome p { color: var(--text-2); font-size: 14.5px; }
.final-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.final-next .muted { font-size: 13px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
/* настоящие экраны: снимок продукта в рамке браузера, телефон поверх правого края, лента миниатюр */
.slide-real .wrap { max-width: 1240px; }
.real-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px 48px; align-items: end; margin-bottom: 28px; }
.real-title { font-size: calc(clamp(32px, 4vw, 56px) * var(--display-scale)); }
.real-lead { color: var(--text-2); font-size: 16.5px; margin-bottom: 12px; max-width: 560px; }
.real-note { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: var(--bw) solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--muted); font-size: 12.5px; }
.real-note .ic { width: 15px; height: 15px; color: var(--accent); }
.real-stage { --phone-w: clamp(150px, 18vw, 236px); position: relative; }
.real-stage.has-phone { padding-right: calc(var(--phone-w) * .72); }
.real-desk { margin: 0; overflow: hidden; background: var(--app-bg); border: var(--bw) solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.real-bar { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 14px; background: var(--app-bar); border-bottom: var(--bw) solid var(--line); }
.real-url { flex: 1; min-width: 0; text-align: center; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.real-url b { color: var(--text); font-weight: 600; }
.real-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.real-shot { position: relative; display: block; width: 100%; aspect-ratio: 14 / 9; padding: 0; border: 0; overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.real-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: opacity .22s, transform .6s var(--ease); }
.real-shot img.out, .real-phone img.out { opacity: 0; transform: scale(1.012); }
.real-zoom { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(20, 16, 12, .62); color: #fff; font-size: 12.5px; opacity: 0; transition: opacity .2s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.real-zoom .ic { width: 15px; height: 15px; }
.real-shot:hover .real-zoom, .real-shot:focus-visible .real-zoom { opacity: 1; }
.real-phone { position: absolute; right: 0; bottom: -34px; width: var(--phone-w); margin: 0; }
.real-phone-in { padding: 7px; border-radius: calc(var(--phone-w) * .15); background: #1a1613; box-shadow: var(--shadow-lg), 0 34px 60px -24px rgba(0, 0, 0, .5); }
.real-phone-in img { display: block; width: 100%; height: auto; aspect-ratio: 585 / 1266; object-fit: cover; border-radius: calc(var(--phone-w) * .15 - 7px); transition: opacity .22s, transform .6s var(--ease); }
.real-phone figcaption { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.real-pdots { display: inline-flex; gap: 6px; }
.real-pdots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--line-2); cursor: pointer; }
.real-pdots button.on { background: var(--accent); }
.real-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 22px 0 14px; }
.real-stage.has-phone + .real-cap { padding-right: calc(var(--phone-w, 236px) * .8 + 24px); }
.real-cap b { font-family: var(--font-display); font-weight: var(--display-w); font-size: calc(22px * var(--display-scale)); letter-spacing: var(--display-track); }
.real-cap [data-real-s] { flex: 1; min-width: 220px; color: var(--text-2); font-size: 15px; }
.real-count { color: var(--muted); font-size: 13px; }
.real-strip { display: flex; gap: 10px; overflow-x: auto; padding: 18px 2px 10px; scrollbar-width: thin; }
.real-th { position: relative; flex: 0 0 auto; width: 148px; padding: 0; overflow: hidden; text-align: left; cursor: pointer; background: var(--surface); color: var(--text); border: var(--bw) solid var(--line); border-radius: var(--radius-sm); opacity: .7; transition: opacity .2s, border-color .2s, transform .2s var(--ease); }
.real-th img { display: block; width: 100%; aspect-ratio: 14 / 9; object-fit: cover; object-position: top center; }
.real-th span { display: block; padding: 7px 10px 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.real-th:hover { opacity: 1; transform: translateY(-2px); }
.real-th.on { opacity: 1; border-color: var(--accent); }
.real-th::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--accent); }
.real-strip.auto .real-th.on::after { animation: realProg 6s linear forwards; }
@keyframes realProg { to { width: 100%; } }
.real-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.modal-wrap.real-modal .modal { width: min(1320px, 100%); padding: 22px 22px 20px; }
.real-modal .modal-t { font-size: 24px; }
.real-modal .modal-b > p { margin-bottom: 14px; }
.real-modal .modal-b img { display: block; width: 100%; height: auto; border: var(--bw) solid var(--line); border-radius: var(--radius); }
@media (hover: none) { .real-zoom { opacity: 1; } }
@media (max-width: 900px) {
  .real-head { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 20px; }
  .real-stage.has-phone { padding-right: 0; }
  .real-stage.has-phone + .real-cap { padding-right: 0; }
  .real-phone { position: relative; right: auto; bottom: auto; width: min(240px, 58%); margin: -44px auto 0; }
  .real-bar .real-tag { display: none; }
  .real-th { width: 118px; }
}

.mini-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.mini-case { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.mini-case:hover { border-color: var(--accent); transform: translateY(-2px); }
.mini-case > span:nth-child(2) { flex: 1; }
.mini-case b { display: block; }
.mini-case small { color: var(--muted); }
.mc-i { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); }

/* ═══ Окно приложения ═══════════════════════════════════════════ */
.app {
  height: clamp(560px, calc(100vh - 230px), 700px);
  display: flex; flex-direction: column;
  background: var(--app-bg);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
}
.app.flash { animation: appFlash .9s var(--ease); }
@keyframes appFlash { 30% { box-shadow: var(--shadow-lg), 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent); } }
.app-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: var(--app-bar); border-bottom: var(--bw) solid var(--line); flex: none; }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.app-title { font-size: 12.5px; color: var(--muted); font-weight: 600; flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ok); }
.app-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.app-body { flex: 1; display: flex; min-height: 0; position: relative; }
.app-side { width: 186px; flex: none; background: var(--app-side); border-right: var(--bw) solid var(--line); display: flex; flex-direction: column; padding: 12px 10px; gap: 4px; overflow-y: auto; }
.app-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 12px; font-size: 15px; }
.app-brand .ic { color: var(--accent); width: 20px; height: 20px; }
.app-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.app-nav-i {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text-2); font-size: 13.5px; font-weight: 500; transition: background-color .15s, color .15s;
}
.app-nav-i .ic { width: 17px; height: 17px; }
.app-nav-i span { flex: 1; min-width: 0; line-height: 1.25; overflow-wrap: normal; -webkit-hyphens: auto; hyphens: auto; }
.app-nav-i:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text); }
.app-nav-i.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.app-nav-i.on .ic { color: var(--accent); }
.app-side-foot { margin-top: auto; padding-top: 12px; font-size: 12.5px; color: var(--muted); }
.badge { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.btn-pri .badge { background: var(--accent-ink); color: var(--accent); }
.app-main { flex: 1; min-width: 0; overflow: auto; position: relative; container-type: inline-size; scroll-behavior: smooth; }

/* панель справа в окне */
.sheet-wrap { position: absolute; inset: 0; z-index: 20; }
.sheet-dim { position: absolute; inset: 0; background: rgba(10, 8, 6, .28); opacity: 0; transition: opacity .25s; }
.sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 92%);
  background: var(--surface); border-left: var(--bw) solid var(--line); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s var(--ease);
}
.sheet-wrap.in .sheet-dim { opacity: 1; }
.sheet-wrap.in .sheet { transform: none; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: var(--bw) solid var(--line); font-size: 15px; }
.sheet-b { flex: 1; overflow: auto; padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }

/* ── Элементы экранов ───────────────────────────────────────────── */
.scr { padding: 18px 20px 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.scr-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.scr-t { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.scr-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.card { background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-weight: 600; font-size: 14px; }
.card-h .muted { font-weight: 400; font-size: 12.5px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kpi { background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); min-width: 0; }
.kpi-l { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-s { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.kpi.t-ok .kpi-v { color: var(--ok); }
.kpi.t-bad .kpi-v { color: var(--bad); }
.kpi.t-warn .kpi-v { color: var(--warn); }
.kpi.t-acc .kpi-v { color: var(--accent); }
.kpi.click { cursor: pointer; transition: border-color .2s, transform .15s; }
.kpi.click:hover { border-color: var(--accent); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; }
@container (max-width: 620px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
}
@container (max-width: 420px) {
  .scr { padding: 14px 12px 20px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi-v { font-size: 18px; }
}

.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: var(--bw) solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--surface-2); }
.tbl tr.on td { background: var(--accent-soft); }
.tbl tfoot td { font-weight: 700; border-top: var(--bw) solid var(--line); }
.tbl-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--text-2); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.acc { background: var(--accent-soft); color: var(--accent); }
.pill.mute { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.pill .ic { width: 13px; height: 13px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--bad); }
.dot.acc { background: var(--accent); }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-sm); background: var(--surface-2); border: var(--bw) solid var(--line); }
.seg button { border: 0; background: transparent; padding: 5px 11px; border-radius: calc(var(--radius-sm) - 2px); font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.tabs { display: flex; gap: 18px; border-bottom: var(--bw) solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 8px 0; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--text); border-color: var(--accent); }

.bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--accent); transition: width .6s var(--ease); }
.bar.ok > i { background: var(--ok); }
.bar.warn > i { background: var(--warn); }
.bar.bad > i { background: var(--bad); }

.list { display: grid; grid-template-columns: minmax(0, 1fr); }
.li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.li:last-child { border-bottom: 0; }
.li.click { cursor: pointer; border-radius: var(--radius-sm); transition: background-color .15s; padding-left: 8px; padding-right: 8px; }
.li.click:hover { background: var(--surface-2); }
.li-i { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); flex: none; }
.li-i .ic { width: 17px; height: 17px; }
.li-main { flex: 1; min-width: 0; }
.li-t { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-s { font-size: 12.5px; color: var(--muted); }
.li-r { text-align: right; flex: none; font-variant-numeric: tabular-nums; }

.av { --h: 24; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none; font-size: 12px; font-weight: 700; color: hsl(var(--h) 45% 30%); background: hsl(var(--h) 55% 88%); }
[data-scheme="dark"] .av { color: hsl(var(--h) 60% 85%); background: hsl(var(--h) 30% 26%); }
.av.sm { width: 24px; height: 24px; font-size: 10px; }
.av.lg { width: 44px; height: 44px; font-size: 15px; }

.callout { padding: 12px 14px; border-radius: var(--radius); background: var(--accent-soft); font-size: 13.5px; line-height: 1.5; display: flex; gap: 10px; }
.callout .ic { flex: none; color: var(--accent); margin-top: 1px; }
.callout.ok { background: var(--ok-soft); } .callout.ok .ic { color: var(--ok); }
.callout.warn { background: var(--warn-soft); } .callout.warn .ic { color: var(--warn); }
.callout.bad { background: var(--bad-soft); } .callout.bad .ic { color: var(--bad); }
.empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 14px; }

.chart { width: 100%; height: auto; overflow: visible; }
.ch-axis, .ch-zero { stroke: var(--line-2); stroke-width: 1; }
.ch-zero { stroke-dasharray: 4 4; }
.ch-lab { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.ch-val { fill: var(--text-2); font-size: 11px; font-weight: 600; font-family: var(--font-body); }
.ch-bar, .ch-dot, .ch-seg { transition: opacity .2s; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-2); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg i { width: 10px; height: 10px; border-radius: 3px; }

/* ═══ Главная ═══════════════════════════════════════════════════ */
.sec { padding: 96px 0; position: relative; }
.sec-alt { background: var(--bg-2); }
.sec-head { max-width: 860px; margin-bottom: 44px; }
.sec-title { font-size: calc(clamp(32px, 4vw, 56px) * var(--display-scale)); }
.sec-lead { color: var(--text-2); font-size: 18px; margin-top: 16px; max-width: 720px; }

.hero { position: relative; overflow: hidden; padding: 72px 0 90px; min-height: calc(100vh - 64px); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-pulse { position: absolute; left: -5%; right: -5%; bottom: 0; height: 170px; width: 110%; opacity: .55; }
.hero-pulse path { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.hero-pulse .run { stroke-dasharray: 110 1000; animation: run 6s linear infinite; stroke-width: 3; filter: drop-shadow(0 0 6px var(--accent)); }
.hero-pulse .base { opacity: .25; }
@keyframes run { from { stroke-dashoffset: 110; } to { stroke-dashoffset: -1000; } }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: 48px; align-items: center; width: 100%; }
.hero-title { font-size: calc(clamp(42px, 5.8vw, 88px) * var(--display-scale) * var(--hero-scale, 1)); margin-bottom: 26px; }
.hero-lead { font-size: 18.5px; color: var(--text-2); max-width: 600px; margin: 22px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.qa { position: relative; min-height: 92px; max-width: 620px; }
.qa-i { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .6s var(--ease); }
.qa-i.on { opacity: 1; transform: none; position: relative; }
.qa-q { font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.qa-q::before { content: "—"; color: var(--accent); }
.qa-a { font-size: 21px; font-weight: 600; margin-top: 6px; line-height: 1.35; }
.qa-a .typed::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--accent); margin-left: 3px; vertical-align: -2px; animation: blink 1s infinite; }
.qa-dots { display: flex; gap: 6px; margin-top: 14px; }
.qa-dots button { width: 22px; height: 4px; border-radius: 2px; border: 0; background: var(--line-2); cursor: pointer; padding: 0; transition: background-color .3s, width .3s; }
.qa-dots button.on { background: var(--accent); width: 36px; }
.hero-plates { position: relative; display: grid; gap: 14px; }
.hero-plates .plate:nth-child(1) { margin-right: 18%; }
.hero-plates .plate:nth-child(2) { margin-left: 14%; }
.hero-plates .plate:nth-child(3) { margin-right: 8%; }
.hero-plates .plate { transform: none; grid-row: auto; }
.hp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hp-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); flex: none; }

.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pain { padding: 22px 24px; display: flex; gap: 16px; cursor: pointer; transition: border-color .25s, transform .25s var(--ease), background-color .25s; text-align: left; }
.pain:hover { transform: translateY(-2px); border-color: var(--accent); }
.pain-n { font: 700 13px var(--font-mono); color: var(--accent); padding-top: 4px; }
.pain b { display: block; font-size: 19px; margin-bottom: 6px; line-height: 1.3; }
.pain p { color: var(--text-2); font-size: 15px; }
.pain-check { margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: all .25s; }
.pain.on { border-color: var(--accent); background: var(--accent-soft); }
.pain.on .pain-check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pain-after { margin-top: 40px; font-size: calc(clamp(28px, 3.4vw, 46px) * var(--display-scale)); text-align: center; }
.pain-count { text-align: center; color: var(--muted); margin-top: 12px; min-height: 24px; font-size: 15px; }

.svcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.svc-i { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); }
.svc-i .ic { width: 24px; height: 24px; }
.svc-n { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.svc-s { font-family: var(--font-display); font-weight: var(--display-w); font-size: calc(26px * var(--display-scale)); line-height: 1.12; letter-spacing: var(--display-track); text-transform: var(--display-case, none); }
.svc p { color: var(--text-2); font-size: 15px; }
.svc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14.5px; }
.svc li { display: flex; gap: 8px; }
.svc li .ic { color: var(--accent); width: 16px; height: 16px; margin-top: 3px; }
.svc-demo { margin-top: auto; border-radius: var(--radius); background: var(--surface-2); border: var(--bw) solid var(--line); padding: 14px; min-height: 150px; font-size: 13px; }

.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.case-card { position: relative; display: flex; flex-direction: column; text-decoration: none; overflow: hidden; padding: 0; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.case-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.cc-top { padding: 26px 26px 18px; }
.cc-kind { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.cc-name { font-family: var(--font-display); font-weight: var(--display-w); font-size: calc(36px * var(--display-scale)); line-height: 1.05; letter-spacing: var(--display-track); text-transform: var(--display-case, none); }
.cc-name small { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; margin-left: 8px; }
.cc-tag { color: var(--text-2); margin-top: 10px; font-size: 15.5px; }
.cc-prev { margin: 0 26px; flex: 1; min-height: 190px; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-2); border: var(--bw) solid var(--line); border-bottom: 0; padding: 16px; position: relative; overflow: hidden; font-size: 13px; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 26px; border-top: var(--bw) solid var(--line); font-weight: 600; font-size: 14.5px; background: var(--surface); }
.cc-foot .muted { font-weight: 500; font-size: 13px; }
.cc-go { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.case-card:hover .cc-go .ic { transform: translateX(4px); }
.cc-go .ic { transition: transform .25s var(--ease); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: st; }
.step { padding: 24px; position: relative; }
.step-n { font-family: var(--font-display); font-weight: var(--display-w); font-size: calc(54px * var(--display-scale)); line-height: 1; color: var(--accent); margin-bottom: 14px; }
.step b { display: block; font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15px; }

.final { text-align: center; }
.final .sec-title { max-width: 980px; margin: 0 auto; }
.final .sec-lead { margin: 18px auto 32px; }
.final .hero-cta { justify-content: center; }

.foot { padding: 40px 0 120px; border-top: var(--bw) solid var(--line); color: var(--muted); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.foot .logo { height: 34px; width: auto; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal.seen { opacity: 1; transform: none; }

/* мини-превью на главной */
.mp-k { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mp-v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mp-rows { display: grid; gap: 8px; margin-top: 10px; }
.mp-row { display: grid; grid-template-columns: 110px 1fr 60px; gap: 10px; align-items: center; font-size: 12.5px; }
.mp-row .r { text-align: right; font-variant-numeric: tabular-nums; }

/* ═══ Узкие экраны ══════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .svcs { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .slide-text { position: static; }
  .slide-title { font-size: calc(clamp(28px, 5vw, 40px) * var(--display-scale)); }
}
@media (max-width: 900px) {
  .top-links { display: none; }
  .hero-grid, .cover-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { min-height: 0; padding: 48px 0 64px; }
  .cases, .pains { grid-template-columns: 1fr; }
  .sec { padding: 68px 0; }
  .app { height: 600px; }
  .app-body { flex-direction: column; }
  .app-side { width: auto; flex-direction: row; align-items: center; padding: 6px 8px; border-right: 0; border-bottom: var(--bw) solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .app-side::-webkit-scrollbar { display: none; }
  .app-brand { display: none; }
  .app-nav { display: flex; gap: 2px; }
  .app-nav-i { flex: none; padding: 7px 10px; }
  .app-nav-i span { white-space: nowrap; overflow: visible; }
  .app-side-foot { display: none; }
  .is-case .top-case { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .case-nav-in { padding: 8px 16px; }
  .hide-s { display: none; }
  .steps, .outcomes { grid-template-columns: minmax(0, 1fr); }
  .plates { grid-template-columns: 1fr; }
  .plate:nth-child(2) { grid-row: auto; }
  .hero-plates .plate { margin: 0 !important; }
  .top-in { gap: 10px; height: 58px; }
  .top-logo .logo { height: 30px; }
  .top-right .btn-cta { display: none; }
  .dp-main b, .dp-arrow { display: none; }
  .dp-main { padding: 0 10px; }
  .case-nav { top: 58px; }
  .case { min-height: calc(100vh - 58px); }
  .slide { padding: 26px 0 36px; }
  .form .row2 { grid-template-columns: 1fr; }
  .modal { padding: 22px 18px; }
  .cc-top { padding: 20px 20px 14px; }
  .cc-prev { margin: 0 20px; }
  .cc-foot { padding: 12px 20px; }
  .pain { padding: 18px; }
  .svc { padding: 20px; }
  .app { height: 580px; border-radius: var(--radius); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
