/* Поток (до 7 окт — «Поехали Бизнес») — пятая концепция, серьёзная версия «Поехали» для среднего и крупного бизнеса.
   Тема «Белый» (выбрана из двух набросков 7 окт): белый и светло-серый, крупный строчный шрифт, чёрные кнопки-таблетки,
   зелёный — только для «лид прошёл». Никаких сгенерированных картинок: рисованные иллюстрации (ill.py) и документы.
   Пыль из «Космоса» (dust.js) — только на главной: воронка в первом экране и поток по схеме.
   Иллюстрации неподвижны, поверх них двигаются только точки, пульс и маркеры — transform и opacity, и только на экране. */

:root {
  color-scheme: light;
  --bg: #ffffff; --bg-2: #f5f5f7; --bg-3: #fbfbfd; --card: #ffffff;
  --ink: #1d1d1f; --ink-2: #424245; --ink-3: #6e6e73; --ink-4: #86868b;
  --line: #d2d2d7; --line-2: #e8e8ed;
  --acc: #0f7a52; --acc-soft: rgba(15, 122, 82, 0.09); --acc-line: rgba(15, 122, 82, 0.32);
  --no: #b42318;
  --dust-ink: #1d1d1f; --dust-acc: #0f7a52; --dust-mute: #a1a1a6;
  --display: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r-card: 22px; --r-stage: 32px; --r-pill: 980px; --r-small: 12px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 24px 60px -24px rgba(0, 0, 0, 0.18);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 30px -18px rgba(0, 0, 0, 0.16);
}

/* ---------- основа ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 44px); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.eyebrow { font-size: 1.05rem; font-weight: 600; color: var(--acc); }
.fineprint { font-size: 0.78rem; color: var(--ink-4); line-height: 1.5; }
.muted { color: var(--ink-3); }
.tbd { color: var(--ink-3); background: var(--bg-2); border-radius: 6px; padding: 0 5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--acc); text-decoration: none; }
.more-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-family: var(--body); font-size: 0.98rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 1.04rem; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 0.86rem; }
.link-btn { background: none; border: 0; padding: 6px 0; font-size: 0.88rem; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }

/* ---------- шапка ---------- */
.site-header { position: relative; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line-2); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-mark { display: inline-block; width: 24px; height: 24px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke-linecap='round'%3E%3Cpath d='M2.5 5.5c5 0 5.5 6.5 10.5 6.5M2.5 18.5c5 0 5.5-6.5 10.5-6.5M2.5 12H13' stroke='%231d1d1f' stroke-width='2'/%3E%3Cpath d='M13 12h7.5' stroke='%230f7a52' stroke-width='3.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.logo-mark--white { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke-linecap='round'%3E%3Cpath d='M2.5 5.5c5 0 5.5 6.5 10.5 6.5M2.5 18.5c5 0 5.5-6.5 10.5-6.5M2.5 12H13' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M13 12h7.5' stroke='%238fe0b8' stroke-width='3.2'/%3E%3C/svg%3E"); }
.logo-name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.025em; }
.logo-tag { font-size: 0.72rem; font-weight: 600; color: var(--ink-3); border: 1px solid var(--line); padding: 1px 7px; border-radius: var(--r-pill); }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 0.9rem; color: var(--ink-2); }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 600; }
.nav .btn { display: none; }
.header-cta { margin-left: 4px; }
.burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 10px; width: 20px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, background 0.2s ease; }
.burger span { top: 19px; }
.burger span::before, .burger span::after { content: ""; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* липкая панель: страница, разделы или роли, кнопка */
.local-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.95); border-bottom: 1px solid var(--line-2);
  transform: translateY(-101%); transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.local-bar.is-on { transform: none; }
.lb-row { display: flex; align-items: center; gap: 18px; min-height: 56px; }
.lb-name { font-family: var(--display); font-weight: 700; font-size: 1.04rem; letter-spacing: -0.02em; white-space: nowrap; text-decoration: none; }
.lb-name i { font-style: normal; color: var(--ink-3); font-weight: 600; }
.lb-links { display: flex; gap: 20px; margin-left: auto; font-size: 0.82rem; color: var(--ink-3); }
.lb-links a { text-decoration: none; white-space: nowrap; }
.lb-links a:hover, .lb-links a.is-here { color: var(--ink); }
.lb-roles { display: flex; gap: 4px; margin-left: auto; }
.lb-roles button, .role-pills button {
  border: 1px solid transparent; background: none; cursor: pointer; white-space: nowrap;
  border-radius: var(--r-pill); padding: 6px 12px; font-size: 0.82rem; color: var(--ink-3);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.lb-roles button:hover, .role-pills button:hover { color: var(--ink); }
.lb-roles button[aria-pressed="true"] { color: var(--ink); background: var(--bg-2); border-color: var(--line-2); }
.lb-role { position: relative; }
.lb-role-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: var(--bg-2); border-radius: var(--r-pill); padding: 6px 12px; font-size: 0.8rem; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.lb-role-btn::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lb-role-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-card); padding: 6px; display: grid; min-width: 230px; }
.lb-role-menu button { text-align: left; border: 0; background: none; border-radius: 10px; padding: 9px 12px; font-size: 0.86rem; cursor: pointer; }
.lb-role-menu button:hover { background: var(--bg-2); }
.lb-role-menu button[aria-pressed="true"] { font-weight: 600; }
.lb-role-menu button[aria-pressed="true"]::after { content: " ✓"; color: var(--acc); }

/* ---------- главная: первый экран ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 84px) 0 0; overflow: hidden; }
.hero-top { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px clamp(28px, 5vw, 80px); align-items: end; margin-bottom: clamp(30px, 3.6vw, 52px); }
.hero-title { display: grid; gap: 18px; }
.hero-side { display: grid; gap: 24px; padding-bottom: 6px; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.7rem, 1.3rem + 3.9vw, 5.4rem); line-height: 1; letter-spacing: -0.045em; }
.h1-a, .h2-a { color: var(--ink); }
.h1-b, .h2-b { color: var(--ink-4); }
.hero .h1-b { display: block; margin-top: 0.22em; font-size: 0.46em; line-height: 1.12; letter-spacing: -0.03em; }
.hero-sub { font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem); line-height: 1.55; color: var(--ink-3); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; z-index: 1; height: clamp(440px, 38vw, 530px); background: var(--bg-2); border-radius: var(--r-stage); }
.dust-layer { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; display: block; }
.fn-src { position: absolute; left: clamp(22px, 3vw, 44px); top: 50%; transform: translateY(-50%); z-index: 1; display: grid; gap: 15px; }
.fn-src li { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.02em; color: var(--ink-3); white-space: nowrap; line-height: 1; }
.fn-gate { position: absolute; z-index: 1; width: 1px; background: var(--line); }
.fn-gate span { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); font-family: var(--mono); font-size: 0.62rem; color: var(--ink-3); white-space: nowrap; letter-spacing: 0.04em; }
.fn-gate.is-v span { left: calc(100% + 10px); bottom: auto; top: 50%; transform: translateY(-50%); }
.fn-drop { position: absolute; z-index: 1; font-family: var(--mono); font-size: 0.62rem; color: var(--ink-4); white-space: nowrap; }
.fn-cap { position: absolute; right: clamp(22px, 3vw, 44px); bottom: 14px; z-index: 1; font-size: 0.72rem; color: var(--ink-4); }
.lead-card--hero { position: absolute; right: clamp(22px, 3vw, 44px); top: 50%; transform: translateY(-50%); width: min(360px, 44%); z-index: 2; }

/* ---------- карточка лида ---------- */
.lead-card {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-card);
  box-shadow: var(--shadow-card); padding: 18px 20px; display: grid; gap: 13px;
  transition: border-color 0.6s ease;
}
.lead-card.is-new { border-color: var(--acc-line); }
.lc-chrome { display: flex; justify-content: space-between; align-items: center; padding-bottom: 11px; border-bottom: 1px solid var(--line-2); font-size: 0.72rem; color: var(--ink-3); }
.lc-app { font-weight: 600; }
.lc-id { font-family: var(--mono); }
.lc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lc-status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; }
.lc-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.lead-card--no .lc-status i { background: var(--ink-4); box-shadow: 0 0 0 4px var(--bg-2); }
.lc-time { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); }
.lc-rows { display: grid; gap: 8px; }
.lc-rows div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.lc-rows dt { font-size: 0.74rem; color: var(--ink-3); }
.lc-rows dd { font-size: 0.9rem; line-height: 1.35; color: var(--ink); transition: opacity 0.35s ease; }
.lead-card.is-swapping .lc-rows dd, .lead-card.is-swapping .lc-rec [data-h], .lead-card.is-swapping .lc-rec [data-f] { opacity: 0; }
.lc-crit { display: flex; flex-wrap: wrap; gap: 6px; }
.lc-crit span { font-size: 0.74rem; font-weight: 500; padding: 4px 10px 4px 9px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--ink-3); transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease; }
.lc-crit span::before { content: "○ "; }
.lc-crit span.ok { color: var(--acc); border-color: var(--acc-line); background: var(--acc-soft); }
.lc-crit span.ok::before { content: "✓ "; }
.lc-crit span.no { color: var(--ink-4); text-decoration: line-through; }
.lc-crit span.no::before { content: "— "; }
.lc-rec { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: var(--r-small); background: var(--bg-2); font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); }
.play-ico { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); position: relative; flex-shrink: 0; }
.play-ico::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.lc-wave { display: flex; gap: 2px; align-items: center; height: 14px; margin-left: auto; }
.lc-wave i { width: 2px; border-radius: 1px; background: var(--ink-4); }
.lc-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lc-actions span { text-align: center; font-size: 0.78rem; font-weight: 600; padding: 8px 4px; border-radius: var(--r-small); border: 1px solid var(--line); color: var(--ink-2); }
.lc-actions span:first-child { background: var(--ink); color: #fff; border-color: var(--ink); }
.lc-note { font-size: 0.78rem; color: var(--ink-3); line-height: 1.45; }

/* ---------- роли ---------- */
.roles { position: relative; z-index: 1; margin-top: clamp(36px, 4.4vw, 60px); }
.roles-head { display: flex; align-items: center; gap: 16px 22px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.roles-label { font-size: 0.86rem; font-weight: 600; }
.role-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.role-pills button { border-color: var(--line); padding: 8px 16px; font-size: 0.9rem; color: var(--ink-2); }
.role-pills button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.role-panels { padding-top: 22px; }
.role-panel { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 36px; }
.role-panel li { display: grid; gap: 6px; align-content: start; animation: roleIn 0.45s ease both; }
.role-panel li:nth-child(2) { animation-delay: 0.05s; }
.role-panel li:nth-child(3) { animation-delay: 0.1s; }
.role-panel b { font-family: var(--display); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em; }
.role-panel span { font-size: 0.92rem; color: var(--ink-3); line-height: 1.5; }
@keyframes roleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.trust { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 0.82rem; color: var(--ink-3); }
.hero .trust { position: relative; z-index: 1; padding-top: clamp(26px, 3vw, 40px); padding-bottom: clamp(36px, 4vw, 56px); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); }

/* доводы для выбранной роли; выбор хранится в body[data-role] */
[data-role-show] { display: none; }
body[data-role="owner"] [data-role-show="owner"], body[data-role="sales"] [data-role-show="sales"], body[data-role="mkt"] [data-role-show="mkt"],
body[data-role="fin"] [data-role-show="fin"], body[data-role="it"] [data-role-show="it"] { display: block; }
body[data-role="owner"] .role-panel[data-role-show="owner"], body[data-role="sales"] .role-panel[data-role-show="sales"], body[data-role="mkt"] .role-panel[data-role-show="mkt"],
body[data-role="fin"] .role-panel[data-role-show="fin"], body[data-role="it"] .role-panel[data-role-show="it"] { display: grid; }
.role-note { font-size: 0.98rem; color: var(--ink-2); max-width: 46em; animation: roleIn 0.45s ease both; }
.role-note b { color: var(--ink); }
.role-notes { margin-top: 28px; }

/* ---------- секции ---------- */
.section { padding: clamp(72px, 9vw, 130px) 0; }
.section--alt { background: var(--bg-2); }
.sec-head { display: grid; gap: 18px; max-width: 900px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem); line-height: 1.06; letter-spacing: -0.035em; }
.h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 1.05rem + 0.8vw, 1.75rem); line-height: 1.15; letter-spacing: -0.025em; }
.lead { font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem); color: var(--ink-3); max-width: 40em; }
.sec-head.center .lead { margin: 0 auto; }
.sec-foot { margin-top: clamp(24px, 3vw, 36px); display: flex; gap: 14px 28px; flex-wrap: wrap; align-items: center; }

/* сетки и плитки */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--bg-2); border-radius: var(--r-card); padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 10px; align-content: start; }
.section--alt .tile { background: var(--card); }
.tile-n { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-4); letter-spacing: 0.04em; }
.tile b, .tile h3 { font-family: var(--display); font-size: 1.22rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.tile p { color: var(--ink-3); font-size: 0.96rem; }
.tile .kv { display: grid; gap: 4px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 0.88rem; }
.tile .kv span { color: var(--ink-4); font-size: 0.74rem; }
.tile .tag { justify-self: start; font-size: 0.74rem; font-weight: 600; color: var(--acc); background: var(--acc-soft); padding: 3px 10px; border-radius: var(--r-pill); }

/* документ: критерии, отчёт, итог архива */
.doc { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); border: 1px solid var(--line-2); padding: clamp(20px, 2.2vw, 28px); display: grid; gap: 14px; }
.doc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.doc-head b { font-family: var(--display); font-size: 1.08rem; letter-spacing: -0.02em; }
.doc-head span { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); text-align: right; }
.doc-rows { display: grid; gap: 9px; }
.doc-rows div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 0.9rem; }
.doc-rows dt { font-size: 0.76rem; color: var(--ink-3); }
.doc-foot { font-size: 0.74rem; color: var(--ink-4); padding-top: 10px; border-top: 1px solid var(--line-2); }
.doc-stamp { justify-self: start; display: inline-flex; align-items: center; gap: 7px; font-size: 0.74rem; font-weight: 600; color: var(--acc); background: var(--acc-soft); border-radius: var(--r-pill); padding: 4px 11px; }
.doc-stamp::before { content: "✓"; }
.doc-big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.doc-big div { background: var(--bg-2); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.doc-big b { font-family: var(--display); font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.doc-big span { font-size: 0.76rem; color: var(--ink-3); }
.doc-list { display: grid; gap: 8px; font-size: 0.88rem; }
.doc-list li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.doc-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.doc-list em { font-style: normal; font-size: 0.78rem; color: var(--ink-3); white-space: nowrap; }
.doc-list em.up { color: var(--acc); font-weight: 600; }
.doc-list em.off { color: var(--ink-4); text-decoration: line-through; }

/* разбивка «текст + предмет» */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split--top { align-items: start; }
.split .sec-head { margin-bottom: 28px; }
.points { display: grid; gap: 18px; }
.points li { display: grid; gap: 4px; padding-left: 20px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.points b { font-weight: 600; }
.points span { color: var(--ink-3); font-size: 0.95rem; }

/* ---------- схема потока ---------- */
.flow-stage { position: relative; background: var(--bg); border-radius: var(--r-stage); padding: clamp(56px, 5vw, 76px) clamp(18px, 3vw, 44px) clamp(22px, 3vw, 34px); }
.flow {
  --flow-dir: h;
  position: relative; display: grid;
  grid-template-columns: minmax(150px, 196px) minmax(70px, 1fr) minmax(200px, 240px) minmax(36px, 0.5fr) minmax(280px, 340px);
  grid-template-areas: "src hub mods gap2 out";
  align-items: center; min-height: 470px;
}
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.flow > :not(svg):not(canvas) { position: relative; z-index: 1; }
.flow > .dust-layer { position: absolute; z-index: 0; }
.flow-col-title { position: absolute; top: -32px; left: 0; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--ink-3); white-space: nowrap; }
.flow-src-col { grid-area: src; position: relative; }
.flow-src { display: grid; gap: 6px; position: relative; }
.flow-src li { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 10px; border-radius: var(--r-small); background: var(--bg-2); border: 1px solid transparent; font-size: 0.84rem; color: var(--ink-2); white-space: nowrap; transition: color 0.4s ease, border-color 0.4s ease; }
.flow-src li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); flex-shrink: 0; transition: background 0.4s ease; }
.flow-src li.is-hot { color: var(--ink); border-color: var(--ink); }
.flow-src li.is-hot::before { background: var(--ink); }
.flow-src li.yours { border-style: dashed; border-color: var(--line); }
.flow-hub { grid-area: hub; justify-self: center; width: 46%; height: 2px; position: relative; }
.flow-hub span { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; color: var(--ink-3); white-space: nowrap; }
.flow-mods { grid-area: mods; display: grid; gap: clamp(48px, 7vw, 96px); position: relative; }
.module { border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); padding: 14px 16px 15px; display: grid; gap: 9px; transition: border-color 0.4s ease, box-shadow 0.4s ease; }
.module-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.module b { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; }
.module small { font-family: var(--mono); font-size: 0.64rem; color: var(--ink-3); letter-spacing: 0.04em; }
.module p { font-size: 0.8rem; line-height: 1.45; color: var(--ink-3); }
.module .verdict { font-family: var(--mono); font-size: 0.7rem; min-height: 1.4em; color: var(--ink-3); }
.module.is-active { border-color: var(--ink); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.35); }
.module.is-reject .verdict { color: var(--ink-4); text-decoration: line-through; }
.eq { display: flex; align-items: center; gap: 3px; height: 24px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--ink); opacity: 0.35; transform: scaleY(0.15); }
.module.is-active .eq i { opacity: 1; animation: eq 0.9s ease-in-out infinite; animation-delay: calc(var(--d) * -0.13s); }
@keyframes eq { 0%, 100% { transform: scaleY(0.15); } 50% { transform: scaleY(1); } }
.typing { display: grid; gap: 5px; height: 24px; align-content: center; }
.typing i { display: block; height: 4px; border-radius: 2px; background: var(--ink); opacity: 0.18; }
.typing i:nth-child(1) { width: 78%; }
.typing i:nth-child(2) { width: 52%; justify-self: end; }
.module.is-active .typing i { animation: breathe 1.2s ease-in-out infinite; }
.module.is-active .typing i:nth-child(2) { animation-delay: -0.6s; }
@keyframes breathe { 0%, 100% { opacity: 0.18; } 50% { opacity: 0.6; } }
.flow-out { grid-area: out; position: relative; }
.flow-line { fill: none; stroke: var(--line-2); stroke-width: 1.2; transition: stroke 0.5s ease; }
.flow-line--beam { stroke: var(--ink-4); stroke-width: 1.6; }
.flow-line.is-hot { stroke: var(--ink-3); }
.flow-dash { display: none; }
.flow-dot { fill: var(--ink); }
.flow-halo { fill: var(--acc); opacity: 0.18; }
.flow-top { transition: opacity 0.25s ease; }
.flow-log { margin-top: 18px; min-height: 3.9em; font-family: var(--mono); font-size: 0.7rem; line-height: 1.3; color: var(--ink-4); display: grid; gap: 2px; }
.flow-log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-log div:first-child { color: var(--ink-2); }
.flow-log .ok { color: var(--acc); }
.flow-log .no { color: var(--ink-4); text-decoration: line-through; }
.flow-foot { display: grid; gap: 14px; margin-top: 28px; }

/* ---------- схема: источники в трёх группах (тестовый экран test-istochniki.html) ---------- */
.test-note { display: inline-block; margin-bottom: 22px; padding: 7px 14px; border-radius: var(--r-pill); background: var(--card); font-size: 0.82rem; color: var(--ink-3); }
.test-note a { color: var(--acc); }
.flow.flow--groups { grid-template-columns: minmax(270px, 310px) minmax(56px, 1fr) minmax(200px, 230px) minmax(28px, 0.4fr) minmax(290px, 340px); }
.flow-groups { display: grid; gap: 12px; }
.fg { border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); padding: 12px 14px 14px; display: grid; gap: 3px; transition: border-color 0.4s ease; }
.fg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fg-head b { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; }
.fg-head span { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.04em; color: var(--ink-3); white-space: nowrap; }
.fg-sub { font-size: 0.76rem; line-height: 1.35; color: var(--ink-3); }
.fg-ch { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.fg-ch li { padding: 2px 7px; border: 1px solid transparent; border-radius: 8px; background: var(--bg-2); font-size: 0.72rem; line-height: 1.4; color: var(--ink-2); white-space: nowrap; transition: background-color 0.3s ease, color 0.3s ease; }
.fg.is-hot { border-color: var(--ink); }
.fg-ch li.is-hot { background: var(--ink); color: #fff; }
.fg-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 0.7rem; color: var(--ink-3); }
.fg-legend i { display: inline-block; width: 16px; height: 10px; margin-right: 6px; border-radius: 4px; background: var(--bg-2); vertical-align: -1px; }
.fg-legend i.y { background: transparent; border: 1px dashed var(--ink-4); }
/* режимы: что делаем мы, а что уже есть у клиента или у его подрядчиков */
.mode-tabs { display: flex; gap: 2px; width: max-content; max-width: 100%; padding: 5px; border-radius: var(--r-pill); background: var(--card); box-shadow: var(--shadow-soft); overflow-x: auto; scrollbar-width: none; }
.mode-tabs::-webkit-scrollbar { display: none; }
.mode-tabs button { flex-shrink: 0; border: 0; background: none; border-radius: var(--r-pill); padding: 10px 18px; font: inherit; font-size: 0.92rem; color: var(--ink-3); cursor: pointer; white-space: nowrap; transition: background-color 0.2s ease, color 0.2s ease; }
.mode-tabs button:hover { color: var(--ink); }
.mode-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 600; }
.mode-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 16px 40px; align-items: start; margin: 20px 0 24px; }
.mode-desc { max-width: 38em; min-height: 4.5em; color: var(--ink-2); }
.who { display: flex; gap: 8px; }
.who div { flex: 1 1 0; min-width: 0; display: grid; gap: 3px; align-content: start; padding: 10px 14px 11px; border-radius: 14px; background: var(--card); }
.who dt { font-size: 0.72rem; color: var(--ink-3); }
.who dd { position: relative; padding-left: 14px; font-size: 0.88rem; font-weight: 600; line-height: 1.3; }
.who dd::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.who .is-theirs dd { color: var(--ink-3); font-weight: 500; }
.who .is-theirs dd::before { background: transparent; border: 1px solid var(--ink-4); width: 5px; height: 5px; }
.who .is-mixed dd::before { background: linear-gradient(90deg, var(--acc) 50%, transparent 50%); border: 1px solid var(--acc); width: 5px; height: 5px; }
.ways[data-mode="all"] .fg-ch li[data-yours], .ways[data-mode="ads"] .fg-ch li[data-yours="always"], .ways[data-mode="calls"] .fg-ch li, .ways[data-mode="an"] .fg-ch li { background: transparent; border-color: var(--ink-4); border-style: dashed; }
.ways[data-mode="calls"] .fg, .ways[data-mode="an"] .fg, .ways[data-mode="an"] .module { border-style: dashed; border-color: var(--line); box-shadow: none; }
.ways[data-mode] .fg.is-hot, .ways[data-mode] .module.is-active { border-color: var(--ink); }
/* остановленный по правилу канал и канал в тесте */
.ways[data-mode="all"] .fg-ch li[data-off], .ways[data-mode="ads"] .fg-ch li[data-off] { color: var(--ink-4); text-decoration: line-through; }
.ways[data-mode="ads"] .fg-ch li[data-test] { color: var(--acc); background: var(--acc-soft); border-color: var(--acc-line); }
.ways[data-mode] .fg-ch li.is-hot { background: var(--ink); border-color: var(--ink); border-style: solid; color: #fff; }
/* 05 · сквозная аналитика под схемой */
.fa { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px 20px; align-items: start; margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.fa-title { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--ink-3); }
.fa-sub { display: block; margin-top: 6px; font-size: 0.8rem; line-height: 1.4; color: var(--ink-3); }
.fa-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fa-c { display: grid; gap: 2px; align-content: start; padding: 11px 14px 12px; border-radius: 14px; background: var(--bg-2); }
.fa-c span { font-size: 0.74rem; color: var(--ink-3); }
.fa-c b { font-family: var(--display); font-weight: 600; font-size: 1.28rem; line-height: 1.2; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fa-c small { font-size: 0.72rem; line-height: 1.35; color: var(--ink-4); }
.fa-c.fa-v { background: var(--acc-soft); }
.fa-c.fa-v b { color: var(--acc); }

/* ---------- вычеркнуть подрядчиков ---------- */
.strike { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(20px, 3vw, 40px); align-items: start; }
.strike-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; transition: opacity 0.5s ease, filter 0.5s ease; }
.ctr { position: relative; display: grid; gap: 8px; align-content: start; text-align: left; min-height: 132px; padding: 18px 18px 20px; border-radius: 20px; border: 1px solid transparent; background: var(--bg-2); cursor: pointer; overflow: hidden; transition: background 0.3s ease, border-color 0.3s ease; }
.ctr:hover { background: #ececf0; }
.ctr-n { font-family: var(--mono); font-size: 0.66rem; color: var(--ink-4); }
.ctr b { font-family: var(--display); font-size: 1.06rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; transition: color 0.3s ease; }
.ctr-m { font-size: 0.84rem; color: var(--ink-3); margin-top: auto; }
.ctr-line { position: absolute; left: 14px; right: 14px; top: 50%; height: 2px; background: var(--ink); transform: scaleX(0) rotate(-6deg); transform-origin: left center; transition: transform 0.35s cubic-bezier(0.6, 0, 0.2, 1); }
.ctr[aria-pressed="true"] { background: var(--bg); border-color: var(--line-2); }
.ctr[aria-pressed="true"] b, .ctr[aria-pressed="true"] .ctr-m { color: var(--ink-4); }
.ctr[aria-pressed="true"] .ctr-line { transform: scaleX(1) rotate(-6deg); }
.strike-sum { border-radius: var(--r-card); padding: 22px 22px 20px; display: grid; gap: 16px; background: var(--bg-2); position: sticky; top: 76px; }
.ss-title { font-size: 0.86rem; font-weight: 600; }
.strike-sum dl { display: grid; gap: 12px; }
.strike-sum dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.strike-sum dt { font-size: 0.88rem; color: var(--ink-3); }
.strike-sum dd { font-family: var(--display); font-weight: 600; font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1; transition: color 0.3s ease; font-variant-numeric: tabular-nums; }
.strike-sum dd.is-down { color: var(--acc); }
.strike-sum dd[data-k="owner"] { font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; }
.ss-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ss-note { font-size: 0.74rem; color: var(--ink-4); line-height: 1.45; }
.strike-result { position: absolute; left: 0; top: 0; width: calc(100% - 300px - clamp(20px, 3vw, 40px)); min-height: 100%; display: grid; align-content: center; gap: 16px; padding: clamp(24px, 4vw, 56px); border-radius: 28px; background: var(--card); box-shadow: var(--shadow-card); animation: resIn 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.strike-result h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 1.1rem + 1.8vw, 2.7rem); line-height: 1.08; letter-spacing: -0.035em; max-width: 16em; }
.strike-result > p:not(.eyebrow) { color: var(--ink-3); max-width: 36em; }
.sr-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.strike.is-done .strike-grid { opacity: 0.12; filter: grayscale(1); pointer-events: none; }
@keyframes resIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }

/* ---------- планёрка ---------- */
.dispute { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.bubble { max-width: 520px; padding: 16px 20px; border-radius: 22px; background: var(--card); font-size: 1.04rem; line-height: 1.45; box-shadow: var(--shadow-soft); }
.bubble .who { display: block; font-size: 0.76rem; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.bubble.left { border-bottom-left-radius: 6px; }
.bubble.right { justify-self: end; border-bottom-right-radius: 6px; }
.verdict-card { justify-self: center; margin-top: 10px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-card); border: 1px solid var(--acc-line); }
.verdict-card .vc-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--acc-soft); position: relative; flex-shrink: 0; }
.verdict-card .vc-ico::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--acc); font-weight: 700; }
.verdict-card b { display: block; font-size: 0.95rem; }
.verdict-card span { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); }
.verdict-card a { font-weight: 600; font-size: 0.9rem; color: var(--acc); text-decoration: none; }
.dispute-after { text-align: center; max-width: 40em; margin: clamp(28px, 3vw, 40px) auto 0; font-size: 1.1rem; color: var(--ink-2); }

/* ---------- протокол: карточка и подписи вокруг ---------- */
.protocol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.callouts { display: grid; gap: clamp(28px, 4vw, 56px); }
.callout { display: grid; gap: 6px; position: relative; }
.callout b { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.02em; }
.callout span { color: var(--ink-3); font-size: 0.94rem; }
.callouts--left .callout { text-align: right; padding-right: 26px; }
.callouts--right .callout { padding-left: 26px; }
.callouts--left .callout::after, .callouts--right .callout::after { content: ""; position: absolute; top: 0.7em; width: 14px; height: 1px; background: var(--ink-4); }
.callouts--left .callout::after { right: 0; }
.callouts--right .callout::after { left: 0; }
.transcript { margin-top: clamp(36px, 5vw, 64px); background: var(--bg-2); border-radius: var(--r-stage); padding: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); }
.section--alt .transcript { background: var(--card); }
.tr-side { display: grid; gap: 14px; align-content: start; }
.tr-side b { font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.02em; }
.tr-player { display: flex; align-items: center; gap: 12px; }
.tr-play { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; position: relative; flex-shrink: 0; }
.tr-play::after { content: ""; position: absolute; left: 18px; top: 15px; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.tr-play.is-playing::after { left: 16px; top: 15px; width: 4px; height: 16px; border: 0; background: #fff; box-shadow: 9px 0 0 #fff; }
.tr-track { flex: 1; display: grid; gap: 6px; }
.tr-bar { height: 4px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.tr-bar i { display: block; height: 100%; width: 100%; background: var(--ink); border-radius: 2px; transform-origin: left center; transform: scaleX(0); transition: transform 0.25s linear; }
.tr-clock { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); display: flex; justify-content: space-between; }
.tr-lines { display: grid; gap: 12px; align-content: start; }
.tr-lines li { display: grid; grid-template-columns: 44px 80px minmax(0, 1fr); gap: 10px; font-size: 0.95rem; opacity: 0.32; transition: opacity 0.35s ease; }
.tr-lines li.on { opacity: 1; }
.transcript:not(.is-armed) .tr-lines li { opacity: 1; }
.tr-lines time { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-4); padding-top: 3px; }
.tr-lines .who { font-size: 0.8rem; font-weight: 600; color: var(--ink-3); padding-top: 1px; }
.tr-lines .sys .who { color: var(--acc); }

/* ---------- калькулятор ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.calc-in { background: var(--card); border-radius: var(--r-stage); padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; align-content: start; box-shadow: var(--shadow-soft); }
.range { display: grid; gap: 10px; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range label { font-size: 0.92rem; color: var(--ink-2); }
.range output { font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.range input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
.range input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--p, 50%), var(--line-2) var(--p, 50%)); }
.range input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-2); }
.range input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink); }
.range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.range input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.calc-out { border-radius: var(--r-stage); padding: clamp(22px, 3vw, 36px); background: var(--ink); color: #fff; display: grid; gap: 22px; align-content: space-between; }
.calc-out .co-label { font-size: 0.92rem; color: rgba(255, 255, 255, 0.62); }
.calc-out .calc-big { color: #fff; font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 1.6rem + 3vw, 4.2rem); letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; margin-top: 8px; }
.calc-rows { display: grid; gap: 12px; }
.calc-rows div { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.95rem; }
.calc-rows span { color: rgba(255, 255, 255, 0.62); }
.calc-rows b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-out p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); }
.calc-out .btn-primary { background: #fff; color: var(--ink); justify-self: start; }
.calc-out .btn-primary:hover { background: #f0f0f2; }

/* ---------- команда ---------- */
.team { border-radius: var(--r-stage); background: var(--bg-2); overflow: hidden; }
.team-row { display: grid; grid-template-columns: 1.1fr 1.3fr 1.5fr 0.7fr; gap: 16px; padding: 18px clamp(18px, 2.4vw, 32px); border-top: 1px solid var(--line-2); align-items: baseline; font-size: 0.94rem; }
.team-row:first-child { border-top: 0; font-size: 0.76rem; color: var(--ink-4); padding-top: 22px; padding-bottom: 12px; }
.team-row b { font-weight: 600; }
.team-row .us { color: var(--acc); }
.team-row .sum { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.team-row--total { background: var(--ink); color: #fff; font-weight: 600; }
.team-row--total .us { color: #8fe0b8; }
.team-row--total .muted { color: rgba(255, 255, 255, 0.6); }
.skills { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.skill { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: var(--r-card); border: 1px solid var(--line-2); }
.skill span { font-size: 0.86rem; color: var(--ink-4); text-decoration: line-through; }
.skill b { font-weight: 600; font-size: 0.98rem; }

/* ---------- петля ---------- */
.loop { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; position: relative; counter-reset: loop; }
.loop li { background: var(--card); border-radius: 20px; padding: 18px 18px 20px; display: grid; gap: 8px; position: relative; box-shadow: var(--shadow-soft); }
.loop li::before { counter-increment: loop; content: "0" counter(loop); font-family: var(--mono); font-size: 0.7rem; color: var(--ink-4); }
.loop li b { font-family: var(--display); font-weight: 600; font-size: 1.04rem; letter-spacing: -0.02em; line-height: 1.25; }
.loop li span { font-size: 0.86rem; color: var(--ink-3); }
.loop li:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 50%; width: 8px; height: 8px; border-top: 1.5px solid var(--ink-4); border-right: 1.5px solid var(--ink-4); transform: translateY(-50%) rotate(45deg); }
.loop-back { position: relative; margin-top: 14px; display: flex; align-items: center; gap: 12px; font-size: 0.86rem; color: var(--ink-3); white-space: nowrap; }
.loop-back span { position: relative; z-index: 1; padding: 0 8px; background: var(--bg-2); }
.loop-run { position: absolute; left: 0; right: 0; top: 50%; height: 0; animation: loopRun 9s linear infinite; }
.loop-run::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
@keyframes loopRun { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.loop-back::before, .loop-back::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--ink-4) 0 6px, transparent 6px 12px); }

/* ---------- галерея «что внутри» с плюсами ---------- */
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(28px, 3.6vw, 44px); }
.gallery-head .sec-head { margin-bottom: 0; }
.gal-nav { display: flex; gap: 10px; flex-shrink: 0; }
.gal-nav button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #e8e8ed; cursor: pointer; position: relative; }
.gal-nav button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--ink-2); border-right: 2px solid var(--ink-2); }
.gal-nav [data-gal-prev]::after { transform: translate(-30%, -50%) rotate(-135deg); }
.gal-nav [data-gal-next]::after { transform: translate(-70%, -50%) rotate(45deg); }
.gal-nav button:disabled { opacity: 0.4; cursor: default; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 4px 28px; }
.gallery::-webkit-scrollbar { display: none; }
.gal-card { scroll-snap-align: start; position: relative; min-height: 420px; border-radius: 28px; background: var(--bg-2); padding: 22px 22px 74px; display: grid; gap: 12px; align-content: start; }
.section--alt .gal-card { background: var(--card); box-shadow: var(--shadow-soft); }
.gal-card .ill { margin-bottom: 8px; border-radius: 18px; }
.gal-card .ill--panel { background: var(--card); }
.section--alt .gal-card .ill--panel { background: var(--bg-2); }
.gal-card .gc-tag, .gal-card h3, .gal-card > p, .gal-card .gc-mini { padding: 0 4px; }
.gal-card .gc-tag { font-size: 0.84rem; font-weight: 600; color: var(--ink-3); }
.gal-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1.12; }
.gal-card p { color: var(--ink-3); font-size: 0.95rem; }
.gc-plus { position: absolute; right: 20px; bottom: 20px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; }
.gc-plus::before, .gc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: #fff; transform: translate(-50%, -50%); }
.gc-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.gc-more { display: none; }
.gc-mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.gc-mini span { font-size: 0.74rem; padding: 4px 10px; border-radius: var(--r-pill); background: var(--card); color: var(--ink-2); }
.section--alt .gc-mini span { background: var(--bg-2); }

/* ---------- сравнение ---------- */
.cmp-scroll { overflow-x: auto; border-radius: var(--r-stage); background: var(--bg-2); -webkit-overflow-scrolling: touch; }
.section--alt .cmp-scroll { background: var(--card); }
.cmp { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 0.9rem; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 16px 18px; border-top: 1px solid var(--line-2); }
.cmp thead th { border-top: 0; font-size: 0.82rem; color: var(--ink-3); font-weight: 600; padding-top: 22px; }
.cmp tbody th { font-weight: 600; color: var(--ink-2); width: 16%; }
.cmp td { color: var(--ink-3); }
.cmp .us { color: var(--ink); font-weight: 600; background: rgba(15, 122, 82, 0.05); }
.cmp thead .us { color: var(--acc); }

/* ---------- кому подходит ---------- */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fit > div { border-radius: var(--r-stage); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; align-content: start; }
.fit-yes { background: var(--bg-2); }
.fit-no { border: 1px solid var(--line-2); }
.section--alt .fit-yes { background: var(--card); }
.fit h3 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.025em; }
.fit ul { display: grid; gap: 12px; }
.fit li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 1rem; }
.fit-yes li::before { content: "✓"; color: var(--acc); font-weight: 700; }
.fit-no li::before { content: "—"; color: var(--ink-4); }
.fit-no li { color: var(--ink-3); }

/* ---------- форматы работы ---------- */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.mode { border-radius: var(--r-stage); background: var(--bg-2); padding: clamp(24px, 2.6vw, 34px); display: grid; gap: 14px; align-content: start; position: relative; }
.section--alt .mode { background: var(--card); }
.mode--main, .section--alt .mode--main { background: var(--ink); color: #fff; }
.mode-top { font-size: 0.82rem; color: var(--ink-3); font-weight: 600; }
.mode--main .mode-top { color: rgba(255, 255, 255, 0.6); }
.mode h3 { font-family: var(--display); font-weight: 600; font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1.1; }
.mode > p { color: var(--ink-3); font-size: 0.96rem; }
.mode--main > p { color: rgba(255, 255, 255, 0.72); }
.mode-price { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.mode--main .mode-price { border-color: rgba(255, 255, 255, 0.14); }
.mode-price span { font-size: 0.76rem; color: var(--ink-4); }
.mode--main .mode-price span { color: rgba(255, 255, 255, 0.55); }
.mode-price b { font-size: 1rem; }
.mode--main .tbd { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.8); }
.mode ul { display: grid; gap: 9px; font-size: 0.92rem; }
.mode li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 6px; }
.mode li::before { content: "✓"; color: var(--acc); font-weight: 700; }
.mode--main li::before { color: #8fe0b8; }
.mode .btn { justify-self: start; margin-top: 6px; }
.mode--main .btn-primary { background: #fff; color: var(--ink); }
.mode--main .btn-primary:hover { background: #f0f0f2; }
.mode-badge { position: absolute; right: 22px; top: 22px; font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.14); color: #fff; }
.mode-start { font-size: 0.8rem; color: var(--ink-3); }
.mode--main .mode-start { color: rgba(255, 255, 255, 0.6); }

/* ---------- вопросы ---------- */
.faq { display: grid; max-width: 900px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.06rem, 1rem + 0.3vw, 1.25rem); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 0 24px; color: var(--ink-3); max-width: 44em; }

/* ---------- финал ---------- */
.final { text-align: center; display: grid; justify-items: center; gap: 22px; padding-top: clamp(80px, 10vw, 150px); padding-bottom: clamp(80px, 10vw, 150px); }
.final--flow { padding-bottom: clamp(40px, 5vw, 72px); }
.final--flow .ill { width: 100%; margin-top: clamp(20px, 3vw, 40px); }
.final .h2 { max-width: 15em; }
.final .lead { margin: 0 auto; }
.final-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- внутренние страницы ---------- */
.page-hero { padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 5vw, 72px); }
.crumbs { font-size: 0.82rem; color: var(--ink-4); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.5rem, 1.3rem + 3.6vw, 5rem); line-height: 1.02; letter-spacing: -0.045em; max-width: 15em; }
.page-hero .hero-sub { margin-top: 24px; max-width: 40em; }
.page-hero .hero-actions { margin-top: 30px; }
.ph-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.ph-grid h1 { font-size: clamp(2.4rem, 1.2rem + 2.7vw, 4.25rem); }
.anchors { margin-top: clamp(34px, 4vw, 52px); display: flex; flex-wrap: wrap; gap: 8px; }
.anchors a { font-size: 0.88rem; padding: 8px 15px; border-radius: var(--r-pill); background: var(--bg-2); text-decoration: none; color: var(--ink-2); }
.anchors a:hover { background: #e8e8ed; color: var(--ink); }
.stats { margin-top: clamp(36px, 4vw, 56px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 4px; }
.stat b { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); letter-spacing: -0.04em; line-height: 1; }
.stat span { font-size: 0.9rem; color: var(--ink-3); }

/* ступени */
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stage { background: var(--card); border-radius: var(--r-card); padding: 24px 22px; display: grid; gap: 12px; align-content: start; box-shadow: var(--shadow-soft); }
.stage h3 { font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.03em; }
.stage small { font-size: 0.78rem; color: var(--ink-4); }
.stage p { color: var(--ink-3); font-size: 0.94rem; }
.stage dl { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-2); margin-top: 4px; font-size: 0.88rem; }
.stage dt { font-size: 0.72rem; color: var(--ink-4); }
.stage .you dd { color: var(--acc); font-weight: 600; }

/* бриф: минуты и документ */
.brief { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.minutes li { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-2); font-size: 1rem; }
.minutes li:last-child { border-bottom: 1px solid var(--line-2); }
.minutes time { font-family: var(--mono); font-size: 0.8rem; color: var(--acc); padding-top: 2px; }

/* граница ответственности */
.zone { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); border-radius: var(--r-stage); overflow: hidden; }
.zone > div { padding: clamp(22px, 3vw, 34px); display: grid; gap: 8px; align-content: start; }
.zone-us { background: var(--ink); color: #fff; }
.zone-us span { color: rgba(255, 255, 255, 0.6); }
.zone-them { background: var(--bg-2); }
.section--alt .zone-them { background: var(--card); }
.zone-them span { color: var(--ink-3); }
.zone > .zone-mid { background: var(--acc); color: #fff; padding: 0 18px; display: grid; place-items: center; font-family: var(--mono); font-size: 0.7rem; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: 0.06em; }
.zone small { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em; }
.zone b { font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.zone-rules { margin-top: 14px; font-size: 0.86rem; color: var(--ink-3); }

/* недели */
.weeks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.weeks li { padding: 18px 18px 0 0; display: grid; gap: 6px; align-content: start; position: relative; }
.weeks li::before { content: ""; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); }
.section--alt .weeks li::before { background: var(--bg-2); }
.weeks li:last-child::before { background: var(--acc); border-color: var(--acc); }
.weeks--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.weeks time { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-4); margin-top: 6px; }
.weeks b { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.02em; }
.weeks p { font-size: 0.9rem; color: var(--ink-3); }

/* пилот */
.pilot { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.pilot .sec-head { margin-bottom: 26px; }
.pilot-card { background: var(--ink); color: #fff; border-radius: var(--r-stage); padding: clamp(24px, 3vw, 40px); display: grid; gap: 16px; }
.pilot-card .doc-rows div { grid-template-columns: 150px minmax(0, 1fr); }
.pilot-card dt { color: rgba(255, 255, 255, 0.55); }
.pilot-card .doc-head { border-color: rgba(255, 255, 255, 0.14); }
.pilot-card .doc-head span { color: rgba(255, 255, 255, 0.55); }
.pilot-card .doc-foot { border-color: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.55); }
.pilot-card .tbd { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.8); }

/* нужно — не нужно */
.need { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.need > div { border-radius: var(--r-stage); padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; align-content: start; }
.need-yes { background: var(--bg-2); }
.section--alt .need-yes { background: var(--card); }
.need-no { border: 1px solid var(--line); }
.need h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; }
.need li { padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 1rem; }
.need-no li { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-4); }

/* каналы и подбор */
.picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.picker button { border: 1px solid var(--line); background: var(--card); border-radius: var(--r-pill); padding: 9px 16px; font-size: 0.9rem; cursor: pointer; color: var(--ink-2); transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.picker button:hover { border-color: var(--ink); }
.picker button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.picker-out { min-height: 1.6em; margin-bottom: 30px; font-size: 1rem; color: var(--ink-2); }
.picker-out b { color: var(--acc); }
.ch-group + .ch-group { margin-top: 26px; }
.ch-group-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; font-size: 0.86rem; font-weight: 600; color: var(--ink-3); }
.ch-group-title span { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-4); }
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.channel { background: var(--card); border-radius: 20px; padding: 20px 20px 22px; display: grid; gap: 8px; align-content: start; border: 1px solid transparent; transition: border-color 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease; box-shadow: var(--shadow-soft); }
.channel b { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.02em; }
.channel p { color: var(--ink-3); font-size: 0.92rem; }
.channel small { font-size: 0.8rem; color: var(--ink-4); padding-top: 8px; border-top: 1px solid var(--line-2); margin-top: 4px; }
.channels-all.is-picking .channel { opacity: 0.38; }
.channels-all.is-picking .channel.is-pick { opacity: 1; border-color: var(--acc); box-shadow: 0 16px 40px -24px rgba(15, 122, 82, 0.5); }
.soon { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.soon span { font-size: 0.84rem; padding: 7px 14px; border-radius: var(--r-pill); border: 1px dashed var(--line); color: var(--ink-3); }
.soon span i { font-style: normal; color: var(--ink-4); }

/* правило остановки: три числа и столбики */
.rule3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.rule3 div { background: var(--bg-2); border-radius: var(--r-card); padding: 22px; display: grid; gap: 6px; }
.section--alt .rule3 div { background: var(--card); }
.rule3 > div > span { font-size: 0.82rem; color: var(--ink-3); }
.rule3 b { font-family: var(--display); font-weight: 600; font-size: 2rem; letter-spacing: -0.035em; line-height: 1.05; }
.bars { background: var(--bg-2); border-radius: var(--r-stage); padding: clamp(20px, 3vw, 34px); display: grid; gap: 14px; }
.section--alt .bars { background: var(--card); }
.bars-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 130px; gap: 16px; align-items: center; font-size: 0.92rem; }
.bars-row.head { font-size: 0.74rem; color: var(--ink-4); }
.bars-row.head > span:nth-child(2) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.bars-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; height: 62px; }
.bars-track i { display: block; width: 16px; justify-self: center; background: var(--ink); border-radius: 8px; height: calc(var(--v) * 6px + 6px); transform-origin: bottom; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bars.is-hidden .bars-track i { transform: scaleY(0); }
.bars-row.off .bars-track i { background: var(--ink-4); }
.bars-row .res { font-size: 0.82rem; font-weight: 600; }
.bars-row .res.up { color: var(--acc); }
.bars-row .res.off { color: var(--ink-4); text-decoration: line-through; }
.bars-foot { font-size: 0.78rem; color: var(--ink-4); }

/* таблица отчёта */
.rep-scroll { overflow-x: auto; border-radius: var(--r-stage); background: var(--card); box-shadow: var(--shadow-card); }
.rep { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.92rem; }
.rep th, .rep td { padding: 15px 18px; text-align: left; border-top: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.rep thead th { border-top: 0; font-size: 0.76rem; color: var(--ink-4); font-weight: 600; padding-top: 20px; }
.rep tfoot td { font-weight: 600; background: var(--bg-2); }
.rep .up { color: var(--acc); font-weight: 600; }
.rep .off { color: var(--ink-4); text-decoration: line-through; }

/* сценарий-развилка */
.script { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.script li { background: var(--card); border-radius: 18px; padding: 18px; display: grid; gap: 6px; align-content: start; box-shadow: var(--shadow-soft); }
.script small { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-4); }
.script b { font-family: var(--display); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.02em; }
.script p { font-size: 0.88rem; color: var(--ink-3); }
.fork { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fork > div { border-radius: 18px; padding: 20px; display: grid; gap: 6px; align-content: start; }
.fork .f-yes { background: var(--acc); color: #fff; }
.fork .f-yes small, .fork .f-yes p { color: rgba(255, 255, 255, 0.82); }
.fork .f-no { background: var(--card); border: 1px solid var(--line-2); }
.fork .f-wait { background: var(--card); border: 1px dashed var(--line); }
.fork small { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-4); }
.fork b { font-family: var(--display); font-weight: 600; font-size: 1.12rem; }
.fork p { font-size: 0.9rem; color: var(--ink-3); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

/* отметка продаж */
.markdemo { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.md-card .lc-actions button { font: inherit; text-align: center; font-size: 0.86rem; font-weight: 600; padding: 11px 4px; border-radius: var(--r-small); border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.md-card .lc-actions button:hover { border-color: var(--ink); }
.md-card .lc-actions button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.md-out { background: var(--card); border-radius: var(--r-stage); padding: clamp(22px, 3vw, 36px); display: grid; gap: 10px; min-height: 220px; align-content: center; box-shadow: var(--shadow-soft); }
.md-out b { font-family: var(--display); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.025em; }
.md-out p { color: var(--ink-3); }
.md-out [data-for] { animation: roleIn 0.4s ease both; }

/* скорость ответа */
.speed { background: var(--bg-2); border-radius: var(--r-stage); padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; }
.speed-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 100px; gap: 16px; align-items: center; font-size: 0.94rem; }
.speed-track { height: 12px; background: var(--card); border-radius: 6px; overflow: hidden; }
.speed-track i { display: block; height: 100%; width: var(--w); background: var(--ink-4); border-radius: 6px; transition: width 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.speed-row.us .speed-track i { background: var(--acc); }
.speed-row.us b { color: var(--acc); }
.speed.is-hidden .speed-track i { width: 0; }
.speed-row b { font-variant-numeric: tabular-nums; text-align: right; }

/* безопасность: матрица доступов, поля CRM, пакет документов */
.access-scroll { overflow-x: auto; border-radius: var(--r-stage); background: var(--card); box-shadow: var(--shadow-card); }
.access { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.9rem; }
.access th, .access td { padding: 15px 16px; border-top: 1px solid var(--line-2); text-align: center; }
.access th:first-child, .access td:first-child { text-align: left; }
.access thead th { border-top: 0; font-size: 0.78rem; color: var(--ink-3); font-weight: 600; padding-top: 20px; }
.access tbody th { font-weight: 600; }
.access .y { color: var(--acc); font-weight: 700; }
.access .n { color: var(--ink-4); }
.access .p { color: var(--ink-2); font-size: 0.8rem; }
.mapping { display: grid; gap: 8px; }
.map-row { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 10px; align-items: center; }
.map-row > span { background: var(--card); border-radius: 12px; padding: 11px 14px; font-size: 0.88rem; box-shadow: var(--shadow-soft); min-width: 0; overflow-wrap: anywhere; }
.map-row > span:last-child { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); }
.map-row i { height: 1px; background: var(--ink-4); position: relative; }
.map-row i::after { content: ""; position: absolute; right: 0; top: -4px; width: 7px; height: 7px; border-top: 1px solid var(--ink-4); border-right: 1px solid var(--ink-4); transform: rotate(45deg); }
.map-row.head > span { background: none; box-shadow: none; font-size: 0.76rem; color: var(--ink-4); font-family: var(--body); padding: 0 4px; }
.map-row.head i { background: none; }
.map-row.head i::after { display: none; }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.checklist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-top: 1px solid var(--line-2); font-size: 0.98rem; }
.checklist li::before { content: ""; width: 18px; height: 18px; border-radius: 6px; background: var(--acc-soft); border: 1px solid var(--acc-line); margin-top: 2px; }
.checklist li span { display: block; font-size: 0.84rem; color: var(--ink-3); margin-top: 2px; }
.logos { display: flex; flex-wrap: wrap; gap: 10px; }
.logos span { font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; padding: 12px 18px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow-soft); }
.logos span.dim { color: var(--ink-3); font-weight: 500; }

/* ---------- иллюстрации: неподвижная картинка, поверх — точки, пульс, маркеры ---------- */
.ill { position: relative; margin: 0; overflow: hidden; }
.ill--panel { background: var(--bg-2); border-radius: var(--r-stage); }
.section--alt .ill--panel { background: var(--card); }
.ill-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: translateX(var(--x, 0px)) scale(var(--k, 1)); }
.ill-svg { position: absolute; left: 0; top: 0; overflow: visible; }
.ill-svg .ln { fill: none; stroke: #c7c7cc; stroke-width: 1.2; stroke-linecap: round; }
.ill-svg .lm { fill: none; stroke: var(--ink-4); stroke-width: 1.6; stroke-linecap: round; }
.ill-svg .lg { fill: none; stroke: var(--acc); stroke-width: 2.4; stroke-linecap: round; }
.ill-svg .ld { fill: none; stroke: var(--ink-4); stroke-width: 1.2; stroke-dasharray: 3 5; stroke-linecap: round; }
.ill-svg .broken { stroke: #c7c7cc; }
.ill-svg .river { stroke: var(--ink-4); stroke-width: 2; }
.ill-svg .src { fill: var(--ink-4); }
.ill-svg .grid { fill: none; stroke: var(--line-2); stroke-width: 1; }
.ill-svg text { font-family: var(--mono); font-size: 11.5px; fill: var(--ink-3); letter-spacing: 0.02em; }
.ill-svg .t-ink { fill: var(--ink); font-weight: 500; font-size: 13px; }
.ill-svg .t-no { fill: var(--ink-4); font-size: 13px; }
.ill-dot { position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); will-change: transform; animation-duration: var(--t, 6s); animation-delay: var(--d, 0s); animation-timing-function: linear; animation-iteration-count: infinite; animation-fill-mode: both; }
.ill-dot.ok { background: var(--acc); }
.ill-dot.no { background: var(--ink-4); }
.ill-dot.big { left: -5.5px; top: -5.5px; width: 11px; height: 11px; box-shadow: 0 0 0 5px rgba(15, 122, 82, 0.16); }
[data-ill]:not(.is-on) .a { animation-play-state: paused; }
.is-idle [data-ill] .a, .is-idle .module .eq i, .is-idle .module .typing i { animation-play-state: paused; }
.ill-card, .ill-doc, .ill-note { position: absolute; background: #fff; border: 1px solid var(--line-2); border-radius: 16px; display: grid; gap: 5px; font-size: 13px; line-height: 1.3; color: var(--ink); text-align: left; }
.ill-card { box-shadow: var(--shadow-card); padding: 12px 14px 13px; }
.ill-card b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.ic-st { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; }
.ic-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.ic-sub { font-size: 12px; color: var(--ink-3); }
.ic-crit { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.ic-crit em { font-style: normal; font-size: 10.5px; font-weight: 500; color: var(--acc); background: var(--acc-soft); border: 1px solid var(--acc-line); border-radius: 99px; padding: 1px 7px; }
.ic-crit em::before { content: "✓ "; }
.ill-doc { box-shadow: var(--shadow-soft); padding: 14px 16px 15px; gap: 6px; }
.ill-doc small { font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); }
.ill-doc b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.ic-list { display: grid; gap: 7px; margin-top: 5px; }
.ic-list li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.ic-list li::before { content: "✓"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 5px; background: var(--acc-soft); border: 1px solid var(--acc-line); color: var(--acc); font-size: 10px; }
.ln-txt { display: block; height: 7px; border-radius: 4px; background: var(--bg-2); }
.ln-txt.s { width: 62%; }
.ill-tag { position: absolute; font-family: var(--mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.ill-tag.ok { color: var(--acc); }
.ill-pulse { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 1.5px solid var(--acc); opacity: 0; animation: pulse 2.8s ease-out infinite; }
.ill-pulse.p2 { animation-delay: -1.4s; }
@keyframes pulse { 0% { transform: scale(0.55); opacity: 0.6; } 100% { transform: scale(2.3); opacity: 0; } }
.hl { position: absolute; left: -6px; right: -6px; top: 2px; bottom: 2px; border-radius: 6px; background: rgba(15, 122, 82, 0.14); transform-origin: left center; transform: scaleX(0); animation: mark 7s ease-in-out infinite; }
@keyframes mark { 0%, 8% { transform: scaleX(0); } 20%, 86% { transform: scaleX(1); } 94%, 100% { transform: scaleX(0); } }
.ill-stamp { position: absolute; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--acc); border: 1.5px solid var(--acc); border-radius: 8px; padding: 4px 9px; background: #fff; opacity: 0; transform: rotate(-8deg); animation: stamp 7s ease infinite; white-space: nowrap; }
@keyframes stamp { 0%, 36% { opacity: 0; transform: rotate(-8deg) scale(1.35); } 42%, 86% { opacity: 1; transform: rotate(-8deg) scale(1); } 94%, 100% { opacity: 0; transform: rotate(-8deg) scale(1); } }

/* горы и ручьи */
.ill-svg .mt-back { fill: #ececf0; }
.ill-svg .mt-mid { fill: #fbfbfd; stroke: #d9d9de; stroke-width: 1.2; stroke-linejoin: round; }
.ill-svg .mt-ridge { fill: none; stroke: #d9d9de; stroke-width: 1; stroke-linecap: round; }
.ill--mountains .ill-svg text { font-size: 11px; }
.ill.is-tiny .ill-svg text { display: none; }

/* телефон и ноутбук */
.ill-svg .ph-body { fill: var(--ink); }
.ill-svg .ph-screen { fill: #fff; }
.ill-svg .lap-base { fill: #d8d8dd; }
.ill-svg .lap-notch { fill: #c3c3c9; }
.ill-svg .chart-line { fill: none; stroke: var(--acc); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.ill-svg .chart-area { fill: rgba(15, 122, 82, 0.08); }
.ph-ui { position: absolute; display: flex; flex-direction: column; align-items: center; padding: 42px 14px 14px; gap: 3px; text-align: center; }
.ph-time { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.ph-ava { margin-top: 12px; width: 52px; height: 52px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-weight: 600; font-size: 20px; color: var(--ink-3); }
.ph-ui > b { margin-top: 6px; font-size: 16px; letter-spacing: -0.01em; }
.ph-who { font-size: 12px; color: var(--ink-3); }
.ph-wave { display: flex; align-items: center; gap: 3px; height: 26px; margin: 12px 0 12px; }
.ph-wave i { width: 3px; border-radius: 2px; background: var(--ink-4); }
.ph-crit { width: 100%; display: grid; gap: 6px; text-align: left; }
.ph-crit li { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 6px; padding: 7px 8px 7px 10px; border-radius: 10px; background: var(--bg-2); font-size: 11.5px; }
.ph-crit span { color: var(--ink-3); }
.ph-crit em { font-style: normal; font-weight: 600; white-space: nowrap; }
.ph-foot { margin-top: auto; font-family: var(--mono); font-size: 10px; color: var(--ink-4); }
.ck { width: 16px; height: 16px; border-radius: 50%; background: var(--acc); position: relative; opacity: 0; }
.ck::after { content: ""; position: absolute; left: 5.5px; top: 3px; width: 3.5px; height: 7px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.ck1 { animation: ck1 8s ease infinite; } .ck2 { animation: ck2 8s ease infinite; } .ck3 { animation: ck3 8s ease infinite; } .ck4 { animation: ck4 8s ease infinite; }
@keyframes ck1 { 0%, 8% { opacity: 0; transform: scale(0.4); } 12%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes ck2 { 0%, 20% { opacity: 0; transform: scale(0.4); } 24%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes ck3 { 0%, 32% { opacity: 0; transform: scale(0.4); } 36%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes ck4 { 0%, 44% { opacity: 0; transform: scale(0.4); } 48%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.ill-card.slide { animation: cardIn 8s ease infinite; }
@keyframes cardIn { 0%, 52% { opacity: 0; transform: translateX(-18px); } 59%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
.lap-ui { position: absolute; padding: 12px 14px; display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto 1fr; gap: 10px 18px; font-size: 12px; text-align: left; }
.lap-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.lap-top b { font-size: 12.5px; }
.lap-top span { font-family: var(--mono); font-size: 10px; color: var(--ink-4); }
.lap-kpi { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lap-kpi span { background: var(--bg-2); border-radius: 10px; padding: 7px 10px; font-size: 10px; color: var(--ink-3); display: grid; gap: 1px; }
.lap-kpi b { font-size: 15px; color: var(--ink); letter-spacing: -0.02em; }
.lap-kpi b.g { color: var(--acc); }
.lap-cap { font-family: var(--mono); font-size: 9.5px; color: var(--ink-4); }
.lap-bars { display: grid; gap: 7px; align-content: start; }
.lap-bars p { display: grid; grid-template-columns: 68px 1fr; align-items: center; gap: 6px; font-size: 10.5px; }
.lap-bars em { font-style: normal; color: var(--ink-3); }
.lap-bars i { display: block; height: 7px; border-radius: 4px; background: var(--ink); }
.lap-bars .off i { background: #c7c7cc; }
.lap-bars .off em { text-decoration: line-through; color: var(--ink-4); }
.ill-note { box-shadow: var(--shadow-card); padding: 11px 13px; gap: 2px; }
.ill-note small { font-family: var(--mono); font-size: 10px; color: var(--ink-4); }
.ill-note b { font-size: 13.5px; }
.ill-note span { color: var(--acc); font-size: 11.5px; }
.pop { animation: pop 7s ease infinite; }
@keyframes pop { 0%, 30% { opacity: 0; transform: translateY(12px); } 36%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }

/* сейф и документы */
.ill-svg .vault { fill: none; stroke: #d2d2d7; stroke-width: 1.2; }
.ill-svg .vault-in { fill: #fff; stroke: #d2d2d7; stroke-width: 1.2; }
.section--alt .ill-svg .vault-in { fill: var(--bg-2); }
.ill-svg .lock-body { fill: var(--ink); }
.ill-svg .lock-arc { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.ill-svg .lock-hole { fill: #fff; }
.doc-inv { padding-bottom: 50px; }
.doc-inv .ill-stamp { right: 16px; bottom: 14px; }
.vchip { position: absolute; transform: translate(-50%, -50%); font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.section--alt .vchip { background: var(--bg-2); }
.inv { display: grid; margin-top: 8px; }
.inv li { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 12.5px; }
.inv li > span:not(.hl), .inv em { position: relative; }
.inv em { font-style: normal; font-weight: 600; white-space: nowrap; }
.inv s { color: var(--ink-4); font-weight: 400; margin-right: 4px; }
.inv .gift em { color: var(--acc); }
.inv .tot { font-weight: 600; }
.inv-foot { font-family: var(--mono); font-size: 10px; color: var(--ink-4); padding-top: 8px; border-top: 1px solid var(--line-2); }

/* комплект онбординга на тёмном */
.kd { position: absolute; background: #fff; color: var(--ink); border-radius: 16px; padding: 14px 16px 16px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); display: grid; gap: 10px; font-size: 12.5px; line-height: 1.3; text-align: left; }
.kd-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 9px; border-bottom: 1px solid var(--line-2); }
.kd-h b { font-size: 14.5px; font-weight: 600; }
.kd-h span { font-family: var(--mono); font-size: 10px; color: var(--ink-4); }
.kd-rows, .kd-map, .kd-script { display: grid; gap: 8px; }
.kd-rows li { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 9px; align-items: center; color: var(--ink-2); }
.kd-rows li i { width: 15px; height: 15px; border-radius: 4px; background: var(--acc-soft); border: 1px solid var(--acc-line); grid-row: span 2; }
.kd-rows em { grid-column: 2; font-style: normal; font-size: 11px; color: var(--ink-4); }
.kd-map li { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-2); }
.kd-map code { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.kd-main { padding-bottom: 50px; }
.kd-script { counter-reset: s; }
.kd-script li { position: relative; padding-left: 22px; color: var(--ink-2); }
.kd-script li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 1px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); }
.kd-script .hl { left: 16px; top: -2px; bottom: -2px; }
.hl2 { animation-delay: 0.45s; } .hl3 { animation-delay: 0.9s; } .hl4 { animation-delay: 1.35s; }
.kd-main .ill-stamp { right: 14px; bottom: 14px; }
.kd-tag { position: absolute; font-size: 12.5px; font-weight: 600; color: var(--ink); background: #8fe0b8; border-radius: 99px; padding: 6px 12px; transform: rotate(8deg); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6); white-space: nowrap; }
.kd-tag s { font-weight: 500; color: rgba(29, 29, 31, 0.55); margin-right: 3px; }

/* картинки в карточках галереи */
.art-call { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-soft); }
.art-ico { position: relative; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--acc); }
.art-ico { display: grid; place-items: center; }
.art-ico svg { position: relative; z-index: 1; }
.art-ico .ill-pulse { left: 20px; top: 20px; }
.art-txt { display: grid; gap: 1px; text-align: left; }
.art-txt small { font-size: 10.5px; color: var(--ink-4); }
.art-txt b { font-size: 14px; font-weight: 600; }
.art-txt em { font-style: normal; font-size: 11.5px; color: var(--acc); }
.ill-svg .wave { fill: var(--ink-4); }
.art-head { position: absolute; left: 23px; top: 38px; width: 2px; height: 58px; background: var(--ink); border-radius: 1px; animation: head 6s linear infinite; }
.art-head::before { content: ""; position: absolute; left: -4px; top: -7px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
@keyframes head { from { transform: translateX(0); } to { transform: translateX(242px); } }
.bub { position: absolute; font-size: 12.5px; line-height: 1.3; background: #fff; border-radius: 14px 14px 14px 4px; padding: 7px 11px; box-shadow: var(--shadow-soft); white-space: nowrap; }
.bub.me { background: var(--ink); color: #fff; border-radius: 14px 14px 4px 14px; }
.tdot { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--ink-4); animation: tdot 1.2s ease-in-out infinite; }
.tdot:nth-child(2) { animation-delay: 0.2s; }
.tdot:nth-child(3) { animation-delay: 0.4s; }
@keyframes tdot { 0%, 100% { opacity: 0.25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.ill-svg .bar { fill: var(--ink); }
.ill-svg .bar.off { fill: #c7c7cc; }
.art-scan { position: absolute; left: 32px; top: 24px; width: 2px; height: 100px; background: linear-gradient(var(--acc), rgba(15, 122, 82, 0)); animation: scan 4.5s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateX(0); opacity: 0; } 10%, 88% { opacity: 0.85; } 100% { transform: translateX(226px); opacity: 0; } }
.ill-svg .srv { fill: #fff; stroke: var(--line); stroke-width: 1; }
.ill-svg .shield { fill: #fff; stroke: var(--ink-4); stroke-width: 1.4; stroke-linejoin: round; }
.led { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); animation: led 2.1s steps(1) infinite; }
@keyframes led { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.2; } }
.app { position: absolute; width: 86px; height: 62px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-soft); display: grid; place-items: center; align-content: center; gap: 3px; text-align: center; font-size: 12px; font-weight: 600; line-height: 1.2; }
.app .logo-mark { width: 20px; height: 20px; }
.chip { position: absolute; left: 92px; top: 64px; font-size: 10.5px; font-weight: 600; color: var(--acc); background: #fff; border: 1px solid var(--acc-line); border-radius: 99px; padding: 3px 8px; white-space: nowrap; animation: chip 3.2s ease-in-out infinite; }
@keyframes chip { 0% { transform: translateX(-12px); opacity: 0; } 15%, 70% { opacity: 1; } 85%, 100% { transform: translateX(44px); opacity: 0; } }

/* «как обычно» и «в коробке» */
.bx { position: absolute; display: grid; align-content: center; min-height: 40px; width: 192px; padding: 8px 14px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-soft); font-size: 13.5px; line-height: 1.25; text-align: left; }
.bx-main { width: 152px; min-height: 52px; justify-items: center; font-weight: 600; font-size: 15px; border: 1px dashed var(--line); box-shadow: none; background: transparent; }
.bx-main.ok { border: 1.5px solid var(--acc); color: var(--acc); background: #fff; }
.bx-src { width: 202px; min-height: 100px; gap: 4px; background: var(--ink); color: rgba(255, 255, 255, 0.7); font-size: 12.5px; box-shadow: var(--shadow-card); }
.bx-src b { color: #fff; font-size: 18px; letter-spacing: -0.02em; }

/* ---------- предложение при регистрации ---------- */
.offer-wrap { padding: 0 0 clamp(64px, 8vw, 120px); }
.offer { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(20px, 3vw, 48px); align-items: center; background: var(--ink); color: #fff; border-radius: var(--r-stage); padding: clamp(28px, 4.4vw, 64px); }
.offer-eyebrow { font-size: 1.05rem; font-weight: 600; color: #8fe0b8; }
.offer-h { margin-top: 14px; font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 1.2rem + 2vw, 3.05rem); line-height: 1.05; letter-spacing: -0.035em; }
.offer-price { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.offer-price s { position: relative; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem); color: rgba(255, 255, 255, 0.5); letter-spacing: -0.02em; }
.offer-price s::after { content: ""; position: absolute; left: -4px; right: -4px; top: 54%; height: 2px; background: #8fe0b8; transform: scaleX(0); transform-origin: left center; transition: transform 0.7s cubic-bezier(0.6, 0, 0.2, 1) 0.35s; }
.offer.is-on .offer-price s::after, html:not(.js) .offer-price s::after { transform: scaleX(1); }
.offer-price b { font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 1.6rem + 2.6vw, 3.9rem); letter-spacing: -0.045em; line-height: 1; }
.offer-price span { flex-basis: 100%; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }
.offer-list { margin-top: 24px; display: grid; gap: 10px; }
.offer-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-size: 1rem; color: rgba(255, 255, 255, 0.88); }
.offer-list li::before { content: "✓"; color: #8fe0b8; font-weight: 700; }
.offer-form { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.offer-form input { flex: 1 1 180px; min-width: 0; min-height: 54px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.08); color: #fff; font: inherit; font-size: 1rem; }
.offer-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.offer-form input:focus { outline: 2px solid #fff; outline-offset: 1px; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f0f0f2; }
.offer-fine { margin-top: 14px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); max-width: 42em; }
.offer .tbd, .gift-strip .tbd { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.8); }
.offer .ill--kit { width: 100%; }
.gift-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px 32px; align-items: center; margin-bottom: 16px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-stage); background: var(--ink); color: #fff; }
.gift-strip > div { display: grid; gap: 6px; }
.gs-eyebrow { font-size: 0.86rem; font-weight: 600; color: #8fe0b8; }
.gift-strip b { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 1rem + 0.8vw, 1.7rem); letter-spacing: -0.025em; line-height: 1.15; }
.gift-strip > div > span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.65); }
.gs-price { display: grid; justify-items: end; line-height: 1; }
.gs-price s { color: rgba(255, 255, 255, 0.5); font-size: 1.1rem; }
.gs-price b { font-size: 2.6rem; letter-spacing: -0.04em; }

/* ---------- сквозная аналитика: отчёт ---------- */
.dash { background: var(--card); border-radius: var(--r-stage); box-shadow: var(--shadow-card); border: 1px solid var(--line-2); overflow: hidden; }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; padding: 16px clamp(16px, 2.4vw, 28px); border-bottom: 1px solid var(--line-2); }
.dash-title { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.dash-dots { display: flex; gap: 6px; }
.dash-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dash-title b { font-size: 0.95rem; }
.dash-title span { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-4); }
.dash-tabs { display: flex; gap: 2px; background: var(--bg-2); border-radius: var(--r-pill); padding: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tabs button { border: 0; background: none; border-radius: var(--r-pill); padding: 7px 14px; font-size: 0.84rem; color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.dash-tabs button:hover { color: var(--ink); }
.dash-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.dash-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border-bottom: 1px solid var(--line-2); }
.dash-kpis div { padding: 16px clamp(14px, 1.8vw, 24px); display: grid; gap: 4px; align-content: start; background: var(--card); min-width: 0; }
.dash-kpis span { font-size: 0.74rem; color: var(--ink-3); }
.dash-kpis b { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 0.85rem + 0.75vw, 1.55rem); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; transition: color 0.4s ease; }
.dash-kpis b.is-up { color: var(--acc); }
.dash-kpis div:last-child b { color: var(--acc); }
.dash-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dash-table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.dash-table th, .dash-table td { padding: 13px 14px; text-align: right; border-top: 1px solid var(--line-2); white-space: nowrap; }
.dash-table th:first-child, .dash-table td:first-child { text-align: left; padding-left: clamp(16px, 2.4vw, 28px); }
.dash-table th:last-child, .dash-table td:last-child { padding-right: clamp(16px, 2.4vw, 28px); }
.dash-table thead th { border-top: 0; font-size: 0.74rem; font-weight: 600; color: var(--ink-4); padding-top: 14px; }
.dash-table td:first-child { font-weight: 600; }
.romi { display: inline-flex; align-items: center; gap: 10px; }
.romi i { display: inline-block; width: 64px; height: 6px; border-radius: 3px; background: var(--bg-2); position: relative; overflow: hidden; }
.romi i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--acc); border-radius: 3px; transition: width 0.6s ease; }
.dash-table tr.neg .romi b { color: var(--no); }
.dash-table tr.is-off td { color: var(--ink-4); }
.dash-table tr.is-off td:first-child { text-decoration: line-through; font-weight: 500; }
.dash-table tr.is-boost td { background: rgba(15, 122, 82, 0.05); }
.dash-table tr.warn td { background: rgba(180, 35, 24, 0.04); }
.dash-table tr.warn b { color: var(--no); }
.fc { margin-left: 5px; font-size: 0.72rem; font-weight: 600; color: var(--acc); }
.dash-act { width: 1%; }
.dash-stop { border: 1px solid var(--line); background: #fff; border-radius: var(--r-pill); padding: 5px 12px; font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.dash-stop:hover { border-color: var(--ink); }
.dash-off { font-size: 0.74rem; color: var(--ink-4); }
.dash-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; flex-wrap: wrap; padding: 14px clamp(16px, 2.4vw, 28px) 18px; border-top: 1px solid var(--line-2); }
.dash-note { font-size: 0.9rem; color: var(--ink-2); max-width: 54em; }
.dash-note b { color: var(--acc); }
.dfun { display: grid; gap: 12px; padding: 20px clamp(16px, 2.4vw, 28px); }
.dfun-row { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) 70px; gap: 16px; align-items: center; font-size: 0.92rem; }
.dfun-row small { display: block; font-size: 0.74rem; color: var(--ink-4); }
.dfun-row i { display: block; height: 26px; width: var(--w); border-radius: 8px; background: var(--ink); transform-origin: left center; }
.dfun-row.q i { background: var(--acc); }
.dfun-row.rs i { height: 14px; background: var(--ink-4); }
.dfun-row b { text-align: right; font-variant-numeric: tabular-nums; }
.dash-pane:not([hidden]) .dfun-row i { animation: growX 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes growX { from { transform: scaleX(0); } }
.boxcmp { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.boxcmp > div { border-radius: var(--r-stage); padding: clamp(22px, 3vw, 34px); display: grid; gap: 14px; align-content: start; }
.bc-usual { border: 1px solid var(--line); }
.bc-ours { background: var(--bg-2); }
.section--alt .bc-ours { background: var(--card); box-shadow: var(--shadow-soft); }
.boxcmp h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; }
.boxcmp ol { display: grid; gap: 10px; counter-reset: b; }
.boxcmp li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px; font-size: 0.96rem; }
.boxcmp li::before { counter-increment: b; content: "0" counter(b); font-family: var(--mono); font-size: 0.72rem; color: var(--ink-4); padding-top: 3px; }
.bc-usual li { color: var(--ink-3); }
.bc-sum { padding-top: 14px; margin-top: auto; border-top: 1px solid var(--line-2); font-weight: 600; }
.bc-usual .bc-sum { color: var(--ink-3); }
.bc-ours .bc-sum { color: var(--acc); }
.boxcmp--ill .ill { margin: -6px -6px 6px; border-radius: 22px; }
.boxcmp--ill .bc-usual .ill--panel { background: var(--bg-2); }
.section--alt .boxcmp--ill .bc-usual .ill--panel { background: var(--card); }
.section--alt .boxcmp--ill .bc-ours .ill--panel { background: var(--bg-2); }

/* путь лида */
.lpath-card { gap: 6px; }
.lpath { position: relative; padding-left: 30px; }
.lpath::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 22px; width: 2px; background: var(--line-2); }
.lpath li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line-2); }
.lpath li:first-child { border-top: 0; }
.lpath li::before { content: ""; position: absolute; left: -28px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink-4); }
.lpath li.ok::before { border-color: var(--acc); background: var(--acc); }
.lpath time { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-4); }
.lpath b { font-weight: 600; font-size: 0.96rem; }
.lpath li span { display: block; font-size: 0.86rem; color: var(--ink-3); }
.lpath em { font-style: normal; font-family: var(--mono); font-size: 0.74rem; color: var(--acc); }
.lpath-run { position: absolute; left: 4px; top: 22px; bottom: 22px; width: 8px; z-index: 1; }
.lpath-run i { position: absolute; left: 0; top: 0; width: 8px; height: 100%; animation: lpRun 7s ease-in-out infinite; }
.lpath-run i::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
@keyframes lpRun { 0% { transform: translateY(-100%); opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }

/* уведомления в Telegram */
.tg { background: var(--card); border-radius: var(--r-stage); padding: clamp(18px, 2.4vw, 26px); display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow-soft); }
.tg-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); }
.tg-head b { display: block; font-size: 0.95rem; }
.tg-head span { font-size: 0.78rem; color: var(--ink-3); }
.tg-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.tg-msg { justify-self: start; max-width: 94%; background: var(--bg-2); border-radius: 18px 18px 18px 6px; padding: 10px 14px 8px; display: grid; gap: 3px; font-size: 0.92rem; }
.tg-msg b { font-size: 0.95rem; }
.tg-msg span { color: var(--ink-2); }
.tg-msg time { justify-self: end; font-size: 0.7rem; color: var(--ink-4); }
.m1 { animation: tg1 12s ease infinite; } .m2 { animation: tg2 12s ease infinite; } .m3 { animation: tg3 12s ease infinite; }
@keyframes tg1 { 0%, 2% { opacity: 0; transform: translateY(10px); } 6%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes tg2 { 0%, 11% { opacity: 0; transform: translateY(10px); } 15%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes tg3 { 0%, 20% { opacity: 0; transform: translateY(10px); } 24%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
.metrics .tile .kv { font-family: var(--mono); font-size: 0.8rem; }

/* ---------- меню: выпадающие «Продукт» и «Компаниям» ---------- */
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 8px 0; font: inherit; color: inherit; cursor: pointer; }
.dd-btn::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s ease; }
.dd-btn:hover, .dd-btn.is-cur, .dd.open .dd-btn { color: var(--ink); }
.dd-btn.is-cur { font-weight: 600; }
.dd::after { content: ""; position: absolute; left: -12px; right: -12px; top: 100%; height: 16px; }
.dd-menu { position: absolute; left: -16px; top: calc(100% + 12px); z-index: 25; width: 320px; display: grid; gap: 2px; padding: 8px; background: #fff; border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow-card); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dd:hover .dd-btn::after, .dd.open .dd-btn::after { transform: translateY(1px) rotate(-135deg); }
.nav .dd-menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; }
.nav .dd-menu a:hover, .nav .dd-menu a[aria-current="page"] { background: var(--bg-2); }
.dd-menu b { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.dd-menu span { font-size: 0.8rem; color: var(--ink-3); }
.dd-menu a[aria-current="page"] b::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--acc); vertical-align: middle; }

/* ---------- ИИ-робот: пульт с разговорами (иллюстрация) ---------- */
.rb { position: absolute; background: #fff; border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow-card); text-align: left; font-size: 12.5px; line-height: 1.3; }
.rb-h { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.rb-h b { font-size: 15px; letter-spacing: -0.01em; }
.rb-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10.5px; color: var(--acc); }
.rb-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.rb-q { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); }
.rb-rows li { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px 128px 32px; gap: 10px; align-items: center; min-height: 52px; padding: 8px 16px; border-top: 1px solid var(--line-2); }
.rb-rows li:first-child { border-top: 0; }
.rb-ava { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-weight: 600; font-size: 12px; color: var(--ink-3); }
.rb-rows b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-rows small { display: block; font-size: 11px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-eq { grid-column: 3; display: flex; align-items: center; gap: 2px; height: 18px; }
.rb-eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--acc); transform: scaleY(0.3); animation: eq 1.3s ease-in-out infinite; }
.rb-eq.dim i { background: var(--ink-4); animation: none; transform: scaleY(0.25); }
.rb-st { grid-column: 4; justify-self: start; font-style: normal; font-size: 11px; font-weight: 600; color: var(--ink-2); background: var(--bg-2); border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.rb-st.ok { color: var(--acc); background: var(--acc-soft); box-shadow: inset 0 0 0 1px var(--acc-line); }
.rb-r.wait .rb-st { color: var(--ink-4); }
.rb-rows time { grid-column: 5; font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); text-align: right; }

/* ИИ-помощники: чат (иллюстрация) */
.pm { position: absolute; background: #fff; border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow-card); padding: 0 16px 16px; display: grid; gap: 10px; text-align: left; font-size: 13px; line-height: 1.38; }
.pm-h { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.pm-h .tg-ava { width: 32px; height: 32px; }
.pm-h b { display: block; font-size: 13.5px; }
.pm-h small { display: block; font-size: 11px; color: var(--ink-4); }
.pm-u { justify-self: end; max-width: 78%; background: var(--ink); color: #fff; border-radius: 16px 16px 4px 16px; padding: 9px 13px; }
.pm-a { justify-self: start; max-width: 90%; background: var(--bg-2); border-radius: 16px 16px 16px 4px; padding: 9px 13px; display: grid; gap: 3px; }
.pm-a small { font-family: var(--mono); font-size: 10px; color: var(--acc); }
.pm-t { display: flex; align-items: center; padding: 12px 14px; }
.pm-res { position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border: 1px solid var(--acc-line); background: rgba(15, 122, 82, 0.04); border-radius: 14px; padding: 12px 14px 14px; }
.pm-res > div { flex: 1 1 100%; display: grid; gap: 1px; }
.pm-res b { font-size: 17px; letter-spacing: -0.02em; color: var(--acc); }
.pm-res > div span { font-size: 11.5px; color: var(--ink-3); }
.pm-btn { position: relative; font-size: 12px; font-weight: 600; background: var(--ink); color: #fff; border-radius: 99px; padding: 6px 14px; }
.pm-btn.ghost { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.pm-btn .ill-pulse { left: 50%; top: 50%; }
.pm-res .ill-stamp { right: 14px; bottom: 14px; }

/* один счёт: девять счетов → один документ (иллюстрация) */
.sc-chip { position: absolute; display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 152px; height: 28px; padding: 0 10px; border-radius: 9px; background: #fff; box-shadow: var(--shadow-soft); font-size: 12px; white-space: nowrap; }
.sc-chip i { font-style: normal; font-family: var(--mono); font-size: 9.5px; color: var(--ink-4); }
.sc-doc { box-shadow: var(--shadow-card); padding-bottom: 46px; }
.sc-rows { display: grid; margin-top: 6px; }
.sc-rows li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 12px; }
.sc-rows em { font-style: normal; font-weight: 600; white-space: nowrap; }
.sc-rows .tot { font-weight: 600; }
.sc-doc .ill-stamp { right: 14px; bottom: 12px; }

/* пульс рынка (иллюстрация) */
.pu-h { position: absolute; display: grid; gap: 12px; text-align: left; }
.pu-h > div:first-child b { display: block; font-size: 16px; letter-spacing: -0.01em; }
.pu-h > div:first-child span { font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); }
.pu-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pu-k span { background: #fff; border-radius: 12px; padding: 8px 11px; font-size: 10.5px; color: var(--ink-3); display: grid; gap: 1px; box-shadow: var(--shadow-soft); }
.pu-k b { font-size: 17px; color: var(--ink); letter-spacing: -0.02em; }
.pu-k .g b { color: var(--acc); }

/* ---------- ИИ-робот: разговоры, карточка, настройки, примеры ---------- */
.dlg { background: var(--card); border-radius: var(--r-stage); box-shadow: var(--shadow-soft); }
.dlg-tabs { display: flex; gap: 2px; width: max-content; max-width: calc(100% - 32px); margin: clamp(16px, 2.2vw, 24px) clamp(16px, 2.4vw, 28px) 0; padding: 5px; border-radius: var(--r-pill); background: var(--bg-2); overflow-x: auto; scrollbar-width: none; }
.dlg-tabs::-webkit-scrollbar { display: none; }
.dlg-tabs button { border: 0; background: none; border-radius: var(--r-pill); padding: 8px 16px; font-size: 0.88rem; color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.dlg-tabs button:hover { color: var(--ink); }
.dlg-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.dlg-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); padding: clamp(20px, 3vw, 32px) clamp(16px, 2.4vw, 28px) clamp(22px, 3vw, 34px); }
.dlg-side { display: grid; gap: 14px; align-content: start; }
.dlg-side > b { font-family: var(--display); font-size: 1.4rem; letter-spacing: -0.02em; }
.dlg-side > p[data-dlg-desc] { color: var(--ink-3); font-size: 0.95rem; }
.dlg-wave { display: flex; align-items: center; gap: 4px; height: 34px; color: var(--ink-4); }
.dlg-wave i { width: 36px; height: 100%; opacity: 0.45; transform: scaleY(0.18); background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px); }
.dlg-wave i:nth-child(2) { animation-delay: -0.31s; }
.dlg-wave i:nth-child(3) { animation-delay: -0.57s; }
.dlg-wave i:nth-child(4) { animation-delay: -0.12s; }
.dlg.is-playing .dlg-wave { color: var(--ink); }
.dlg.is-playing .dlg-wave i { opacity: 1; animation: eq 0.9s ease-in-out infinite; }
.dlg.is-playing.is-sys .dlg-wave { color: var(--acc); }
.dlg-res { font-size: 0.86rem; font-weight: 600; color: var(--acc); background: var(--acc-soft); border: 1px solid var(--acc-line); border-radius: 12px; padding: 10px 12px; animation: roleIn 0.4s ease both; }
.dlg:not(.is-armed) .tr-lines li { opacity: 1; }
.tr-lines .evt .who { color: var(--ink-4); }
.tr-lines .evt > span:last-child { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-3); }
.callme { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding: clamp(20px, 2.6vw, 30px); border-radius: var(--r-stage); background: var(--ink); color: #fff; }
.callme b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 1rem + 0.8vw, 1.7rem); letter-spacing: -0.025em; }
.callme > div > span { display: block; margin-top: 6px; max-width: 40em; font-size: 0.94rem; color: rgba(255, 255, 255, 0.65); }
.callme-num { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); }
.callme .tbd { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.85); }
.lc-sum { display: grid; gap: 4px; padding: 11px 13px; border-radius: var(--r-small); background: var(--acc-soft); }
.lc-sum small, .lc-next small { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--acc); }
.lc-sum p { font-size: 0.88rem; line-height: 1.45; }
.lc-next { display: grid; gap: 2px; padding: 11px 13px; border-radius: var(--r-small); border: 1px solid var(--line-2); }
.lc-next b { font-size: 0.92rem; }
.lc-next span { font-size: 0.78rem; color: var(--ink-3); }
.split > .lead-card { width: 100%; max-width: 440px; justify-self: center; }
.dial-notes { margin-top: 16px; }
.stat .tbd { font-size: inherit; padding: 0 0.12em; border-radius: 0.14em; }
.tile .kv .tbd { font-size: inherit; color: var(--ink-3); }
.pl-row.is-sel span { font-weight: 600; color: var(--ink); }
.set { gap: 0; }
.set .doc-head { margin-bottom: 2px; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.set .doc-head + .set-row { border-top: 0; }
.set-row > div { min-width: 0; }
.set-row b { display: block; font-size: 0.94rem; font-weight: 600; }
.set-row span { display: block; font-size: 0.8rem; color: var(--ink-3); }
.set-row em { flex-shrink: 0; font-style: normal; font-size: 0.8rem; font-weight: 600; white-space: nowrap; color: var(--ink-2); background: var(--bg-2); border-radius: var(--r-pill); padding: 4px 10px; }
.set .doc-foot { margin-top: 4px; }
.sw { flex-shrink: 0; position: relative; width: 42px; height: 24px; padding: 0; border: 0; border-radius: var(--r-pill); background: var(--line); cursor: pointer; transition: background 0.2s ease; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s ease; }
.sw[aria-pressed="true"] { background: var(--acc); }
.sw[aria-pressed="true"]::after { transform: translateX(18px); }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case { background: var(--card); border-radius: var(--r-stage); padding: clamp(22px, 2.6vw, 30px); display: grid; gap: 12px; align-content: start; box-shadow: var(--shadow-soft); }
.case-tag { justify-self: start; font-size: 0.74rem; font-weight: 600; color: var(--acc); background: var(--acc-soft); padding: 3px 10px; border-radius: var(--r-pill); }
.case h3 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.025em; line-height: 1.15; }
.case li { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line-2); font-size: 0.9rem; }
.case li span { flex: 1; color: var(--ink-3); }
.case li em { font-style: normal; color: var(--ink-4); white-space: nowrap; font-variant-numeric: tabular-nums; }
.case li em:not(:empty)::after { content: " →"; }
.case li b { font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- ИИ-помощники: чат, помощники, правила, журнал ---------- */
.chat { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-stage); box-shadow: var(--shadow-card); display: grid; grid-template-rows: auto 1fr auto; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.chat-head b { display: block; font-size: 0.95rem; }
.chat-head span { font-size: 0.78rem; color: var(--ink-3); }
.chat-log { height: 440px; overflow-y: auto; overscroll-behavior: contain; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.cm { max-width: 88%; border-radius: 18px; padding: 10px 14px; font-size: 0.92rem; line-height: 1.45; animation: roleIn 0.35s ease both; }
.cm small { display: block; margin-bottom: 2px; font-family: var(--mono); font-size: 0.68rem; color: var(--acc); }
.cm-a { align-self: flex-start; background: var(--bg-2); border-bottom-left-radius: 6px; }
.cm-u { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.cm ul { display: grid; gap: 4px; margin-top: 6px; }
.cm li { position: relative; padding-left: 14px; }
.cm li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); }
.cm-typing { align-self: flex-start; padding: 13px 14px; border-radius: 18px 18px 18px 6px; background: var(--bg-2); }
.cm-res { align-self: stretch; display: grid; gap: 12px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--acc-line); background: rgba(15, 122, 82, 0.04); animation: roleIn 0.35s ease both; }
.cm-res-top b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.025em; color: var(--acc); }
.cm-res-top span { font-size: 0.84rem; color: var(--ink-3); }
.cm-act { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-done { padding-top: 10px; border-top: 1px solid var(--acc-line); font-size: 0.88rem; color: var(--ink-2); animation: roleIn 0.35s ease both; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--line-2); }
.chat-chips button { border: 1px solid var(--line); background: #fff; border-radius: var(--r-pill); padding: 8px 14px; font-size: 0.86rem; color: var(--ink-2); text-align: left; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease; }
.chat-chips button:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.chat-chips button:disabled { opacity: 0.45; cursor: default; }
.chat-chips button.is-done { border-style: dashed; color: var(--ink-3); }
.pm-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-list li { font-size: 0.86rem; padding: 7px 14px; border-radius: var(--r-pill); background: var(--bg-2); color: var(--ink-2); }
.section--alt .pm-list li { background: var(--card); }
.agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.agent { background: var(--bg-2); border-radius: var(--r-stage); padding: clamp(22px, 2.6vw, 30px); display: grid; gap: 10px; align-content: start; }
.section--alt .agent { background: var(--card); }
.agent h3 { font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.03em; line-height: 1.1; }
.agent > p { color: var(--ink-3); font-size: 0.95rem; }
.agent dl { display: grid; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 0.88rem; }
.agent dt { font-size: 0.72rem; color: var(--ink-4); }
.agent dd { color: var(--ink-2); }
.agent dl div:last-child dd { color: var(--acc); font-weight: 600; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rule { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 22px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow-soft); }
.rule .sw { margin-top: 2px; }
.rule small { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-4); }
.rule p { margin-top: 4px; font-size: 0.98rem; color: var(--ink-2); transition: color 0.25s ease; }
.rule p b { font-weight: 600; color: var(--acc); }
.rule.is-off p, .rule.is-off p b { color: var(--ink-4); }
.rule-n { display: inline-block; margin-top: 10px; font-size: 0.78rem; color: var(--ink-3); }
.jr ol { display: grid; }
.jr li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line-2); }
.jr li:first-child { border-top: 0; }
.jr time { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-4); }
.jr li b { display: block; font-size: 0.94rem; font-weight: 600; }
.jr li span { display: block; font-size: 0.82rem; color: var(--ink-3); }
.jr em { font-style: normal; font-family: var(--mono); font-size: 0.74rem; color: var(--acc); text-align: right; white-space: nowrap; }

/* ---------- один счёт: баланс, УПД, маркировка ---------- */
.bal-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bal-top div { background: var(--bg-2); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.bal-top span { font-size: 0.74rem; color: var(--ink-3); }
.bal-top b { font-family: var(--display); font-size: 1.3rem; letter-spacing: -0.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bal-bar { display: flex; gap: 3px; height: 12px; }
.bal-bar i { flex: 0 1 var(--w); border-radius: 4px; background: var(--ink); }
.bal-bar i:nth-child(2) { background: #48484a; }
.bal-bar i:nth-child(3) { background: #6e6e73; }
.bal-bar i:nth-child(4) { background: #a1a1a6; }
.bal-bar i.free { background: var(--line-2); }
.bal-list { display: grid; gap: 10px; }
.bal-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; font-size: 0.88rem; }
.bal-list em { font-style: normal; font-size: 0.78rem; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.bal-list i { grid-column: 1 / -1; position: relative; height: 5px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.bal-list i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 3px; background: var(--acc); }
.bal-list .off span { color: var(--ink-4); text-decoration: line-through; }
.bal-auto { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 0.86rem; color: var(--ink-2); }
.checklist--one { grid-template-columns: 1fr; }
.upd-rows { display: grid; }
.upd-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 0.88rem; }
.upd-rows li:first-child { border-top: 0; }
.upd-rows em { font-style: normal; font-family: var(--mono); font-size: 0.8rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.upd-rows .sub { margin: 4px -10px; padding: 9px 10px; border: 0; border-radius: 8px; background: var(--bg-2); font-weight: 600; }
.upd-rows .tot { font-weight: 600; font-size: 0.96rem; }
.admock { position: relative; display: grid; place-items: center; padding: clamp(28px, 4vw, 52px) clamp(16px, 3vw, 40px); border-radius: var(--r-stage); background: var(--bg-2); }
.section--alt .admock { background: var(--card); }
.am-card { width: min(420px, 100%); background: #fff; border-radius: 18px; box-shadow: var(--shadow-card); }
.am-img { position: relative; height: 150px; border-radius: 18px 18px 0 0; background: linear-gradient(180deg, #eef3f0, #e2eae5); overflow: hidden; }
.am-img i { position: absolute; display: block; }
.am-img i:nth-child(1) { left: 0; right: 0; bottom: 0; height: 34px; background: #d3ddd7; }
.am-img i:nth-child(2) { left: 50%; bottom: 34px; width: 190px; height: 88px; margin-left: -95px; border: 2px solid #b9c6be; border-bottom: 0; border-radius: 95px 95px 0 0; background: #fff; }
.am-img i:nth-child(3) { left: 50%; bottom: 34px; width: 54px; height: 46px; margin-left: -27px; border-radius: 4px 4px 0 0; background: #b9c6be; }
.am-body { display: grid; gap: 6px; padding: 16px 18px 14px; }
.am-body small { font-size: 0.74rem; color: var(--ink-4); }
.am-body b { font-size: 1.05rem; line-height: 1.3; }
.am-body p { font-size: 0.88rem; color: var(--ink-3); }
.am-btn { justify-self: start; margin-top: 6px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: 0.84rem; font-weight: 600; }
.am-mark { position: relative; margin: 0 18px 16px; padding: 8px 10px; border-radius: 8px; background: var(--bg-2); font-family: var(--mono); font-size: 0.72rem; line-height: 1.5; color: var(--ink-3); }
.am-mark > span:last-child { position: relative; }
.am-mark .hl { left: 0; right: 0; top: 0; bottom: 0; border-radius: 8px; }
.am-mark .tbd { background: rgba(0, 0, 0, 0.05); }
.admock .ill-stamp { right: clamp(12px, 2.4vw, 26px); top: clamp(12px, 2.4vw, 22px); }

/* ---------- пульс рынка ---------- */
.puls { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-stage); box-shadow: var(--shadow-card); overflow: hidden; }
.pl-filters { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 18px clamp(16px, 2.4vw, 28px); border-bottom: 1px solid var(--line-2); }
.pl-f { display: grid; gap: 6px; min-width: 0; }
.pl-f > span { font-size: 0.76rem; font-weight: 600; color: var(--ink-3); }
.pl-f select, .pl-f input { width: 100%; min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid transparent; border-radius: 12px; background-color: var(--bg-2); color: var(--ink); font: inherit; font-size: 0.96rem; }
.pl-f select { -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.pl-f select:focus, .pl-f input:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.pl-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border-bottom: 1px solid var(--line-2); }
.pl-kpis div { display: grid; gap: 4px; align-content: start; min-width: 0; padding: 16px clamp(12px, 1.6vw, 22px); background: var(--card); }
.pl-kpis span { font-size: 0.74rem; color: var(--ink-3); }
.pl-kpis b { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 0.85rem + 0.75vw, 1.55rem); letter-spacing: -0.03em; white-space: nowrap; font-variant-numeric: tabular-nums; transition: opacity 0.25s ease; }
.pl-kpis .main b { color: var(--acc); }
.puls.is-swap [data-pk], .puls.is-swap [data-pdelta] { opacity: 0.35; }
.pl-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.pl-trend { display: grid; gap: 10px; align-content: start; padding: 20px clamp(16px, 2.4vw, 28px); border-right: 1px solid var(--line-2); }
.pl-cap-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pl-cap { font-size: 0.8rem; font-weight: 600; color: var(--ink-3); }
.pl-delta { font-family: var(--display); font-size: 1.1rem; letter-spacing: -0.02em; white-space: nowrap; transition: opacity 0.25s ease; }
.pl-delta.up { color: var(--no); }
.pl-delta.down { color: var(--acc); }
.pl-chart { position: relative; height: 180px; }
.pl-spark { display: block; width: 100%; height: 100%; overflow: visible; }
.pl-grid line { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pl-area { fill: rgba(15, 122, 82, 0.08); }
.pl-line { fill: none; stroke: var(--acc); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pl-last { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 5px rgba(15, 122, 82, 0.16); }
.pl-weeks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.7rem; color: var(--ink-4); }
.pl-rank { display: grid; gap: 12px; align-content: start; padding: 20px clamp(16px, 2.4vw, 28px); }
.pl-rank [data-prank] { display: grid; gap: 10px; }
.pl-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 84px; gap: 10px; align-items: center; font-size: 0.86rem; }
.pl-row i { display: block; height: 10px; width: var(--w); border-radius: 5px; background: var(--ink); transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pl-row:first-child i { background: var(--acc); }
.pl-row b { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-cmp { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 10px 28px; align-items: end; padding: 18px clamp(16px, 2.4vw, 28px) 22px; border-top: 1px solid var(--line-2); background: var(--bg-3); }
.pl-scale { position: relative; height: 50px; }
.pl-scale::before { content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 6px; border-radius: 3px; background: var(--line-2); }
.pl-band { position: absolute; left: 25%; width: 50%; top: 20px; height: 6px; border-radius: 3px; background: rgba(15, 122, 82, 0.35); }
.pl-med { position: absolute; left: 50%; top: 14px; width: 2px; height: 18px; margin-left: -1px; background: var(--acc); }
.pl-me { position: absolute; left: var(--x, 50%); top: 9px; width: 14px; height: 28px; margin-left: -7px; border-radius: 7px; background: var(--ink); box-shadow: 0 0 0 3px #fff; transition: left 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pl-lo, .pl-hi { position: absolute; top: 34px; transform: translateX(-50%); font-family: var(--mono); font-size: 0.7rem; color: var(--ink-4); white-space: nowrap; }
.pl-lo { left: 25%; }
.pl-hi { left: 75%; }
.pl-verdict { grid-column: 1 / -1; font-size: 0.95rem; color: var(--ink-2); }
.pl-verdict b { color: var(--acc); }
.pl-verdict b.no { color: var(--no); }
.puls--mini { background: none; border: 0; box-shadow: none; overflow: visible; }
.pl-mini { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.pl-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; padding: clamp(20px, 2.6vw, 30px); border-radius: var(--r-stage); background: var(--bg-2); }
.pl-steps > div { display: grid; gap: 8px; padding: 0 clamp(10px, 1.6vw, 20px); border-left: 1px solid var(--line); }
.pl-steps > div:first-child { padding-left: 0; border-left: 0; }
.pl-steps span { min-height: 2.9em; font-size: 0.82rem; color: var(--ink-3); }
.pl-steps b { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 1rem + 1.5vw, 2.5rem); letter-spacing: -0.04em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; transition: opacity 0.25s ease; }
.pl-steps small { font-size: 0.8rem; line-height: 1.4; color: var(--ink-4); }
.pl-steps .main b { color: var(--acc); }
.puls--mini .pl-rank { padding: clamp(20px, 2.6vw, 30px); border-radius: var(--r-stage); background: var(--bg-2); }
.puls--mini .fineprint { margin-top: 14px; }
.gap3 { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.15fr); gap: 14px; align-items: stretch; }
.gap3 > div { display: grid; gap: 6px; align-content: start; padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r-card); background: var(--bg-2); }
.gap3 span { font-size: 0.84rem; color: var(--ink-3); }
.gap3 b { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 1.3rem + 1.8vw, 3rem); letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.gap3 p { font-size: 0.92rem; color: var(--ink-3); }
.gap3 .main { background: var(--ink); }
.gap3 .main span, .gap3 .main p { color: rgba(255, 255, 255, 0.65); }
.gap3 .main b { color: #8fe0b8; }
.gap3 > i { align-self: center; font-style: normal; font-family: var(--display); font-size: 2rem; color: var(--ink-4); }
.duo { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo-card { display: grid; gap: 10px; align-content: start; padding: clamp(20px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: var(--r-card); }
.duo-card.ok { border-color: var(--acc-line); background: rgba(15, 122, 82, 0.03); }
.duo-card small { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-4); }
.duo-card b { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; }
.duo-card li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 0.92rem; }
.duo-card li span { color: var(--ink-3); }
.duo-card em { font-style: normal; font-weight: 600; white-space: nowrap; }
.duo-card em.no { color: var(--no); }
.duo-card em.yes { color: var(--acc); }
.sub-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 40px; align-items: center; padding: clamp(24px, 3.6vw, 48px); border-radius: var(--r-stage); background: var(--ink); color: #fff; }
.sub-copy { display: grid; gap: 8px; }
.sub-copy b { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.1; }
.sub-copy > span { color: rgba(255, 255, 255, 0.65); }
.offer-form.sub-form { margin-top: 0; }
.sub-done { grid-column: 1 / -1; font-size: 0.95rem; color: #8fe0b8; }

/* ---------- главная: «Один счёт» карточкой между секциями ---------- */
.band { padding: 0 0 clamp(72px, 9vw, 130px); }
.band-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(24px, 4vw, 56px); border-radius: var(--r-stage); background: var(--bg-2); }
.band-copy { display: grid; gap: 18px; align-content: start; }
.band-copy .points { margin-top: 8px; }
.band-copy .sec-foot { margin-top: 6px; }
.band-card .ill--panel { background: var(--card); }

/* секции, которые на главной сменили фон */
.section--alt .team { background: var(--card); }
.section:not(.section--alt) .loop-back span { background: var(--bg); }

/* ---------- подвал ---------- */
.site-footer { border-top: 1px solid var(--line-2); background: var(--bg-2); padding: clamp(40px, 5vw, 64px) 0 36px; font-size: 0.86rem; color: var(--ink-3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer-grid h4 { font-size: 0.8rem; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.footer-grid ul { display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-brand p { margin-top: 12px; max-width: 26em; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; font-size: 0.78rem; color: var(--ink-4); }
.footer-bottom a { color: inherit; }
.mobile-cta { display: none; }

/* ---------- модалки ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 20, 22, 0.45); }
.modal-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 28px; padding: 30px 28px 26px; display: grid; gap: 16px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.5); }
.modal-card--wide { width: min(680px, 100%); }
.modal-card h2 { font-family: var(--display); font-weight: 600; font-size: 1.9rem; letter-spacing: -0.03em; line-height: 1.1; padding-right: 40px; }
.modal-card .muted { font-size: 0.94rem; }
[data-more-body] > p { margin-top: 16px; }
.modal-close { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; border: 0; background: var(--bg-2); border-radius: 50%; cursor: pointer; font-size: 0.9rem; }
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select { font: inherit; font-size: 1rem; min-height: 48px; padding: 0 14px; border: 1px solid transparent; border-radius: 12px; background: var(--bg-2); color: var(--ink); min-width: 0; }
.field input:focus, .field select:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: var(--ink-3); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); }
.form-error { font-size: 0.82rem; color: var(--no); }
.form-done { display: grid; gap: 10px; padding: 8px 0 4px; }
.form-done b { font-family: var(--display); font-size: 1.5rem; letter-spacing: -0.03em; }
.gift-line { font-size: 0.86rem; color: var(--acc); background: var(--acc-soft); border-radius: 12px; padding: 10px 12px; }
.gift-line s { color: var(--ink-4); }
.is-reg .gift-line { display: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .hero-top { grid-template-columns: 1fr; align-items: start; }
  .hero-visual { height: 480px; }
  .nav, .header-cta { display: none; }
  .burger { display: block; }
  .nav.open { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px clamp(16px, 4vw, 44px) 18px; background: #fff; border-bottom: 1px solid var(--line-2); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.25); }
  .nav.open a { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line-2); }
  .nav.open .btn { display: inline-flex; margin-top: 14px; border-bottom: 0; color: #fff; padding: 0 22px; }
  .lb-roles, .lb-links { display: none; }
  .lb-role { margin-left: auto; }
  .lb-row > .btn { margin-left: auto; }
  .lb-role + .btn { margin-left: 0; }
  .flow { grid-template-columns: minmax(140px, 180px) minmax(40px, 1fr) minmax(190px, 220px) minmax(24px, 0.4fr) minmax(250px, 300px); }
  .strike { grid-template-columns: 1fr; }
  .strike-sum { position: static; }
  .strike-result { width: 100%; min-height: 0; position: relative; }
  .strike.is-done .strike-grid { display: none; }
  .protocol { grid-template-columns: 1fr 1fr; }
  .protocol .lead-card { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: min(420px, 100%); }
  .callouts--left .callout { text-align: left; padding-right: 0; padding-left: 26px; }
  .callouts--left .callout::after { right: auto; left: 0; }
  .loop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .loop li::after { display: none; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .script { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .weeks { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .skills, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gift-strip { grid-template-columns: minmax(0, 1fr) auto; }
  .gift-strip .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 900px) {
  .flow { --flow-dir: v; grid-template-columns: 1fr 1fr; grid-template-areas: "src src" "hub hub" "mods mods" "out out"; row-gap: 56px; min-height: 0; }
  .flow-col-title { position: static; display: block; margin-bottom: 10px; }
  .flow-src { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .flow-src li { white-space: normal; font-size: 0.76rem; line-height: 1.25; padding: 7px 8px; min-height: 44px; min-width: 0; overflow-wrap: anywhere; }
  .flow-hub { width: 2px; height: 46px; }
  .flow-hub span { top: 50%; left: 14px; transform: translateY(-50%); }
  .flow-mods { grid-template-columns: 1fr 1fr; gap: 12px; }
  .flow-mods .flow-col-title { grid-column: 1 / -1; margin-bottom: 0; }
  .module { padding: 12px 12px 13px; align-content: start; }
  .module-top { flex-direction: column; align-items: flex-start; gap: 2px; }
  .module p { display: none; }
  .flow-out { max-width: 440px; width: 100%; justify-self: center; }
  .flow-stage { padding-top: 26px; }
  .role-panel { grid-template-columns: 1fr; gap: 14px; }
  .strike-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .brief, .pilot, .markdemo, .calc, .pair, .transcript { grid-template-columns: 1fr; }
  .grid-3, .modes, .channels { grid-template-columns: 1fr 1fr; }
  .fit, .need, .checklist { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .rule3, .fork { grid-template-columns: 1fr; }
  .team-row { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .team-row > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--ink-3); font-size: 0.86rem; }
  .team-row > :nth-child(3) { grid-column: 1 / -1; grid-row: 3; font-size: 0.86rem; }
  .team-row .sum { grid-column: 2; grid-row: 1; }
  .team-row:first-child { display: none; }
  .zone { grid-template-columns: 1fr; }
  .zone > .zone-mid { writing-mode: horizontal-tb; transform: none; padding: 10px 18px; }
  .bars-row { grid-template-columns: 110px minmax(0, 1fr) 96px; gap: 10px; }
  .speed-row { grid-template-columns: 120px minmax(0, 1fr) 70px; gap: 10px; }
  .gallery-head { align-items: start; flex-direction: column; }
  .ph-grid { grid-template-columns: 1fr; }
  .ph-grid .ill { width: min(560px, 100%); }
  .offer { grid-template-columns: 1fr; }
  .offer .ill--kit { width: min(520px, 100%); justify-self: center; }
  .boxcmp { grid-template-columns: 1fr; }
  .dfun-row { grid-template-columns: minmax(0, 1fr) 64px; gap: 6px 12px; }
  .dfun-row i { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .header-row { min-height: 56px; gap: 12px; }
  .hero-visual { height: auto; padding: 150px 14px 14px; }
  .fn-src, .fn-drop { display: none; }
  .lead-card--hero { position: relative; right: auto; top: auto; transform: none; width: 100%; }
  .fn-cap { position: static; margin-top: 10px; text-align: center; }
  .role-pills button { padding: 7px 12px; font-size: 0.84rem; }
  .strike-grid { gap: 8px; }
  .ctr { min-height: 112px; padding: 14px 14px 16px; }
  .ctr b { font-size: 0.96rem; }
  .local-bar { display: none; }
  .mobile-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; min-height: 52px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.45); transform: translateY(160%); transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .mobile-cta.is-on { transform: none; }
  .site-footer { padding-bottom: 100px; }
  .field-row { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4, .modes, .channels, .loop, .stages, .script, .weeks, .skills, .stats, .protocol { grid-template-columns: 1fr; }
  .callouts--right .callout, .callouts--left .callout { padding-left: 22px; }
  .weeks { border-top: 0; border-left: 2px solid var(--ink); row-gap: 22px; }
  .weeks li { padding: 0 0 0 22px; }
  .weeks li::before { left: -7px; top: 4px; }
  .weeks time { margin-top: 0; }
  .tr-lines li { grid-template-columns: 38px 64px minmax(0, 1fr); font-size: 0.9rem; }
  .doc-rows div, .pilot-card .doc-rows div { grid-template-columns: 1fr; gap: 2px; }
  .bars-row { grid-template-columns: 1fr auto; }
  .bars-row .bars-track { grid-column: 1 / -1; grid-row: 2; }
  .bars-row.head { display: none; }
  .speed-row { grid-template-columns: 1fr auto; }
  .speed-row .speed-track { grid-column: 1 / -1; grid-row: 2; }
  .map-row { grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); gap: 6px; }
  .map-row > span { padding: 9px 10px; font-size: 0.8rem; }
  .gal-card { min-height: 380px; }
  .footer-grid { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lpath li { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .lpath time { grid-column: 1 / -1; }
  .gift-strip { grid-template-columns: 1fr; }
  .gs-price { justify-items: start; grid-auto-flow: column; align-items: baseline; gap: 12px; }
}
@media (max-width: 520px) {
  .hero-actions .btn, .final-actions .btn, .sec-foot .btn, .sr-actions .btn, .offer-form .btn, .gift-strip .btn { width: 100%; }
  .btn-lg { white-space: normal; text-align: center; padding: 0 20px; }
  .flow-src li { font-size: 0.72rem; padding: 6px 7px; min-height: 40px; }
  .flow-src li::before { display: none; }
  .lc-rows div { grid-template-columns: 84px minmax(0, 1fr); }
  .ctr-n { display: none; }
  .gallery { grid-auto-columns: 84%; }
}
/* ---------- адаптив новых страниц: робот, помощники, один счёт, пульс ---------- */
@media (max-width: 1100px) {
  .nav.open { max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav.open .dd { display: block; }
  .nav.open .dd::after { display: none; }
  .nav.open .dd-btn { width: 100%; padding: 18px 0 4px; font-size: 0.8rem; font-weight: 600; color: var(--ink-4); pointer-events: none; }
  .nav.open .dd-btn::after { display: none; }
  .nav.open .dd-menu { position: static; width: auto; padding: 0; gap: 0; opacity: 1; visibility: visible; transform: none; border: 0; border-radius: 0; box-shadow: none; background: none; transition: none; }
  .nav.open .dd-menu a { border-radius: 0; }
  .nav.open .dd-menu a:hover, .nav.open .dd-menu a[aria-current="page"] { background: none; }
  .nav.open .dd-menu span { display: none; }
  .nav.open .dd-menu b { font-size: 1.05rem; font-weight: 400; }
  .nav.open .dd-menu a[aria-current="page"] b { font-weight: 600; }
  .agents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dlg-body { grid-template-columns: 1fr; }
  .cases, .rules, .pl-body, .pl-cmp, .pl-mini, .sub-card, .band-card { grid-template-columns: 1fr; }
  .pl-trend { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .pl-filters { grid-template-columns: 1fr 1fr; }
  .pl-filters .pl-f:first-child { grid-column: 1 / -1; }
  .gap3 { grid-template-columns: 1fr; gap: 8px; }
  .gap3 > i { justify-self: center; line-height: 1; }
  .band-card .ill { width: min(560px, 100%); justify-self: center; }
  .split > .lead-card { justify-self: start; }
}
@media (max-width: 700px) {
  .agents, .duo { grid-template-columns: 1fr; }
  .pl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-steps { grid-template-columns: 1fr; gap: 16px; }
  .pl-steps > div { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .pl-steps > div:first-child { padding-top: 0; border-top: 0; }
  .pl-steps span { min-height: 0; }
  .pl-row { grid-template-columns: 96px minmax(0, 1fr) 76px; gap: 8px; font-size: 0.82rem; }
  .bal-top { grid-template-columns: 1fr 1fr; }
  .bal-top div:first-child { grid-column: 1 / -1; }
  .jr li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .jr em { text-align: left; }
  .set-row { align-items: flex-start; }
  .callme { flex-direction: column; align-items: flex-start; }
  .chat-log { height: 400px; padding: 14px; }
  .puls--mini .picker { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * clamp(16px, 4vw, 44px)); margin-right: calc(-1 * clamp(16px, 4vw, 44px)); padding: 0 clamp(16px, 4vw, 44px) 4px; }
  .puls--mini .picker::-webkit-scrollbar { display: none; }
  .puls--mini .picker button { flex-shrink: 0; white-space: nowrap; }
  .cm { max-width: 94%; }
  .rule { padding: 18px; gap: 12px; }
}
@media (max-width: 520px) {
  .pl-filters { grid-template-columns: 1fr; }
  .dlg-tabs button { padding: 7px 12px; font-size: 0.84rem; }
  .case li { flex-wrap: wrap; }
  .case li span { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ill-dot, .loop-run, .lpath-run, .art-head, .art-scan, .chip { display: none; }
  .cm-typing { display: none; }
  .ck, .ill-card.slide, .ill-stamp, .pop, .tg-msg { opacity: 1; }
  .hl { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- адаптив: источники в трёх группах ---------- */
@media (max-width: 1100px) {
  .fa { grid-template-columns: 1fr; }
  .mode-info { grid-template-columns: 1fr; }
  .mode-desc { min-height: 0; }
  .flow.flow--groups { grid-template-columns: minmax(226px, 256px) minmax(36px, 1fr) minmax(190px, 220px) minmax(20px, 0.4fr) minmax(264px, 310px); }
  .fg { padding: 11px 12px 12px; }
  .fg-ch li { font-size: 0.7rem; padding: 3px 7px; }
}
@media (max-width: 900px) {
  .flow.flow--groups { grid-template-columns: 1fr 1fr; }
  .flow-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .fg { align-content: start; }
  .fg-ch li { white-space: normal; }
  .fa-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .flow-groups { grid-template-columns: 1fr; gap: 10px; }
  .fg-sub { font-size: 0.74rem; }
  .who { flex-wrap: wrap; }
  .who div { flex: 1 1 140px; }
  .mode-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 22px; }
  .mode-tabs button { padding: 10px 8px; font-size: 0.86rem; border-radius: 17px; white-space: normal; }
  .fa-c b { font-size: 1.1rem; }
}
