/* PROTOFLOW · страница услуги «Telegram-боты и ИИ-агенты для бизнеса» (/boty-i-ii-agenty/), 2026-11-20.
   Продающая страница, а не статья (бриф, раздел 0): блоки на всю ширину, в каждом один главный элемент,
   крупный шрифт, много воздуха. Сквозная идея: путь одной заявки «заявка → бот → черновик → вы нажимаете».
   Фон - общий фон главной (/fon/fon.css + fon.js в head), свой фон body и секций не рисуем.
   Шапка, подвал, кнопки, вопросы и призыв - как на соседних страницах услуг (общий вид сайта).
   Значения только через токены ниже (МОДУЛИ/Анти-ИИ/токены). Нужен новый - сначала токен. */

@font-face { font-family: "Golos Text"; src: url("/stati/assets/fonts/golos-rub-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("/stati/assets/fonts/golos-rub-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("/stati/assets/fonts/golos-rub-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("/stati/assets/fonts/golos-rub-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* 01. Токены: цвет (роли) -------------------------------------------------- */
:root {
  color-scheme: dark;
  --c-ink: #f4f2ff;
  --c-ink-2: rgba(244, 242, 255, 0.84);
  --c-ink-3: rgba(236, 234, 255, 0.68);
  --c-line: rgba(255, 255, 255, 0.1);
  --c-line-strong: rgba(255, 255, 255, 0.2);
  --c-accent: #b47cff;
  --c-accent-2: #ff9ffc;
  --c-accent-soft: rgba(180, 124, 255, 0.16);
  --c-link: #d9b8ff;
  --c-link-hover: #ff9ffc;
  --c-on-accent: #ffffff;
  --c-btn: linear-gradient(120deg, #5227ff, #8a3df0 55%, #c04ee8);
  --c-btn-hover: linear-gradient(120deg, #4a1fef, #7d33e3 55%, #b343db);
  --c-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(160, 80, 255, 0.05));
  --c-glass-hover: linear-gradient(145deg, rgba(160, 80, 255, 0.16), rgba(255, 110, 220, 0.07));
  --c-glass-line: rgba(255, 255, 255, 0.12);
  --c-glass-line-hover: rgba(255, 159, 252, 0.36);
  --c-plate: rgba(18, 10, 34, 0.74);
  --c-plate-2: rgba(30, 18, 52, 0.86);
  --c-select: rgba(180, 124, 255, 0.38);
  --c-header: rgba(10, 6, 18, 0.78);
  --c-shadow: rgba(0, 0, 0, 0.45);
  --c-mask: #000;
  --c-text-shade: rgba(8, 5, 15, 0.85);
  /* роли из токенов главной (src/styles/tokens.css): рука человека, метка ИИ, ошибка, «отправлено» */
  --c-human: #6ee7ff;
  --c-tag: #f5b342;
  --c-tag-bg: rgba(245, 179, 66, 0.16);
  --c-danger: #ef5a6f;
  --c-danger-bg: rgba(239, 90, 111, 0.14);
  --c-ok: #35c48a;
  --c-ok-bg: rgba(53, 196, 138, 0.16);
  /* чат первого экрана: свои пузыри, бот и ответ */
  --c-bubble-in: rgba(255, 255, 255, 0.08);
  --c-bubble-bot: rgba(180, 124, 255, 0.18);
  --c-bubble-out: linear-gradient(135deg, #5a2fe6, #8a3df0);
  --c-spark: #ff9ffc;
  --c-spark-2: #ffffff;
}

/* 01б. Токены: шрифт, размеры, отступы, радиусы, движение ----------------- */
:root {
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Егор 20.11: основной 18-20 px на компьютере, 17-18 на телефоне, вторичный не мельче 15, заголовки 48-64 */
  --fs-xs: 0.9375rem;
  --fs-sm: 1rem;
  --fs-base: 1.1875rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);
  --fs-2xl: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem);
  --fs-h2: clamp(2.25rem, 1.35rem + 2.8vw, 3.75rem);
  --fs-h1: clamp(2.5rem, 1.3rem + 4vw, 4.5rem);
  --fs-big: clamp(3.5rem, 2rem + 6vw, 7.5rem);
  --lh-tight: 1.05;
  --lh-head: 1.12;
  --lh-text: 1.55;
  --fw-head: 600;
  --ls-display: -0.03em;
  --ls-head: -0.02em;
  --ls-brand: 0.02em;
  --w-line: 34em;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  /* отступ между блоками: 72 на телефоне → 152 на большом экране (бриф, раздел 0, п. 3) */
  --sec-y: clamp(72px, 2.5rem + 7vw, 152px);

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --w-page: 1240px;
  --w-text: 760px;
  --w-faq: 920px;
  --w-h2: 22ch;
  --w-h1: 15ch;
  --w-cta-title: 14ch;
  --w-demo: 540px;
  --w-plist: 560px;
  --w-letter: 520px;
  --h-btn: 48px;
  --h-btn-big: 56px;
  --h-btn-huge: 68px;
  --h-sw: 64px;
  --w-sw: 228px;
  --ball: 52px;
  --box: 30px;
  --ava: 40px;
  --step-n: 26px;
  --dot: 8px;
  --st-station: 128px;
  --st-station-m: 72px;
  --st-key: 120px;
  --st-cta: 112px;
  --line-w: 2px;
  --sh-shot: 0 40px 80px -30px var(--c-shadow);
  --sh-text: 0 1px 2px var(--c-text-shade), 0 0 18px var(--c-text-shade);
  --sh-ring: inset 0 0 0 1px var(--c-line-strong);
  --sh-send: 0 0 0 6px rgba(255, 159, 252, 0.22);

  --t-fast: 160ms;
  --t-base: 420ms;
  --t-slow: 700ms;
  --t-pop: 520ms;
  --t-blink: 1050ms;
  --t-dots: 1200ms;
  --t-line: 900ms;
  --d-1: 120ms;
  --d-2: 220ms;
  --d-3: 360ms;
  --d-step: 160ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.4, 0.64, 1);
}
@media (max-width: 719px) {
  :root { --fs-base: 1.0625rem; --fs-lg: 1.25rem; }
}

/* 02. База --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s-20); interpolate-size: allow-keywords; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-base); line-height: var(--lh-text); color: var(--c-ink); text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--c-select); color: var(--c-ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-link); text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { color: var(--c-link-hover); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--c-accent-2); outline-offset: 3px; border-radius: var(--r-sm); }
h1, h2, h3 { margin: 0; font-weight: var(--fw-head); }
p, ul, ol, dl, dd, figure { margin: 0; }
b { font-weight: var(--fw-head); color: var(--c-ink); }
mark { background: var(--c-tag-bg); color: var(--c-tag); border-radius: var(--r-xs); padding: 0 var(--s-1); font-weight: 600; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s-4); top: calc(-1 * var(--s-20)); z-index: 30; padding: var(--s-2) var(--s-4); background: var(--c-plate); color: var(--c-ink); border-radius: var(--r-sm); }
.skip:focus { top: var(--s-2); }
.wrap { max-width: var(--w-page); margin: 0 auto; padding: 0 var(--s-5); }
@media (min-width: 720px) { .wrap { padding: 0 var(--s-8); } }

/* 03. Шапка и подвал (как в блоге и на соседних страницах услуг) ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--c-header); backdrop-filter: saturate(1.3) blur(10px); border-bottom: 1px solid var(--c-line); }
.top__in { max-width: var(--w-page); margin: 0 auto; padding: var(--s-3) var(--s-5); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
@media (min-width: 720px) { .top__in { padding: var(--s-3) var(--s-8); } }
.top a:first-child { display: inline-flex; align-items: center; }
.top .logo { width: 150px; height: auto; overflow: visible; display: block; }
.top__nav { display: flex; gap: var(--s-1) var(--s-5); font-size: var(--fs-sm); }
.top__nav a { color: var(--c-ink-2); text-decoration: none; padding: var(--s-2) 0; }
.top__nav a:hover { color: var(--c-link-hover); }
@media (max-width: 899px) {
  .top__nav { order: 3; flex: 1 0 100%; gap: var(--s-5); overflow-x: auto; scrollbar-width: none; margin-top: calc(-1 * var(--s-2)); }
  .top__nav::-webkit-scrollbar { display: none; }
  .top__nav a { white-space: nowrap; }
}
@media (min-width: 900px) { .top__nav { margin-left: auto; margin-right: var(--s-6); } }
.logo__wordmark { fill: var(--c-ink); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--c-accent); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .progress { animation: bar-grow linear both; animation-timeline: scroll(root); }
}
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--h-btn); padding: var(--s-2) var(--s-5);
  border-radius: var(--r-pill); border: 1px solid transparent;
  font: 600 var(--fs-sm)/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--main { background: var(--c-btn); color: var(--c-on-accent); }
.btn--main:hover { background: var(--c-btn-hover); color: var(--c-on-accent); }
.btn--ghost { background: var(--c-plate); color: var(--c-ink); border-color: var(--c-line-strong); }
.btn--ghost:hover { color: var(--c-ink); border-color: var(--c-accent-2); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--big { min-height: var(--h-btn-big); padding: var(--s-3) var(--s-8); font-size: var(--fs-base); }
.btn--huge { min-height: var(--h-btn-huge); padding: var(--s-4) var(--s-10); font-size: var(--fs-lg); }

.foot { margin-top: var(--sec-y); border-top: 1px solid var(--c-line); background: var(--c-plate); }
.foot__in { max-width: var(--w-page); margin: 0 auto; padding: var(--s-12) var(--s-5) var(--s-16); display: grid; gap: var(--s-8); grid-template-columns: minmax(0, 1fr); font-size: var(--fs-sm); color: var(--c-ink-3); }
@media (min-width: 560px) { .foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .foot__in { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); padding-left: var(--s-8); padding-right: var(--s-8); } }
.foot__col { display: grid; gap: var(--s-2); align-content: start; }
.foot__col p { max-width: var(--w-line); line-height: 1.5; }
.foot__brand { color: var(--c-ink); font-weight: 600; letter-spacing: var(--ls-brand); }
.foot__h { color: var(--c-ink); font-weight: 600; margin-bottom: var(--s-1); }
.foot a { color: var(--c-ink-2); text-decoration: none; }
.foot a[aria-current] { color: var(--c-ink); }
.foot a:hover { color: var(--c-link-hover); }

/* 04. Общее для блоков ---------------------------------------------------- */
.sec { padding-top: var(--sec-y); }
.sec__title { font-size: var(--fs-h2); line-height: var(--lh-head); letter-spacing: var(--ls-head); text-wrap: balance; max-width: var(--w-h2); }
.sec__lead { margin-top: var(--s-5); font-size: var(--fs-lg); line-height: 1.45; color: var(--c-ink-2); max-width: var(--w-line); }
.sec__note { margin-top: var(--s-10); font-size: var(--fs-lg); line-height: 1.45; color: var(--c-ink-2); max-width: var(--w-text); }
.sec__aside { margin-top: var(--s-6); font-size: var(--fs-sm); color: var(--c-ink-3); max-width: var(--w-text); }

.more-d { margin-top: var(--s-12); max-width: var(--w-text); }
.more-d summary {
  display: inline-flex; align-items: center; gap: var(--s-3); min-height: var(--h-btn);
  padding: var(--s-2) var(--s-6); border-radius: var(--r-pill); border: 1px solid var(--c-glass-line);
  background: var(--c-glass); cursor: pointer; list-style: none; font-weight: 500; color: var(--c-ink-2);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.more-d summary::-webkit-details-marker { display: none; }
.more-d summary::after { content: "+"; font-size: var(--fs-lg); line-height: 1; color: var(--c-ink-3); transition: rotate var(--t-base) var(--ease); }
.more-d[open] summary::after { rotate: 45deg; }
.more-d summary:hover { border-color: var(--c-glass-line-hover); color: var(--c-ink); }
.more-d__list { list-style: none; margin-top: var(--s-4); padding: var(--s-6); border-radius: var(--r-lg); background: var(--c-plate); display: grid; gap: var(--s-4); color: var(--c-ink-2); }

/* 05. Первый экран -------------------------------------------------------- */
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-10) var(--s-16); padding-top: var(--s-6); padding-bottom: var(--s-8); align-items: center; }
.hero__crumbs { grid-column: 1 / -1; }
.crumbs { text-shadow: var(--sh-text); padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--fs-xs); color: var(--c-ink-3); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); }
.crumbs a { color: var(--c-ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--c-link-hover); }
.hero__title { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-display); text-wrap: balance; max-width: var(--w-h1); }
.hero__lead { text-shadow: var(--sh-text); margin-top: var(--s-6); font-size: var(--fs-lg); line-height: 1.45; color: var(--c-ink-2); max-width: 24em; }
.price-chip { margin-top: var(--s-8); display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: var(--s-1) var(--s-4); max-width: 30em; }
.price-chip__sum { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: var(--ls-head); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-chip__what { color: var(--c-ink-2); }
.price-chip__more { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--c-ink-3); text-shadow: var(--sh-text); }
.hero__act { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }
.hero__after { text-shadow: var(--sh-text); margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--c-ink-3); }
/* телефон: столб сияния фона ярче всего за текстом первого экрана - текст на плашке, как на /o-studii/ */
@media (max-width: 719px) {
  .hero__text { margin-inline: calc(-1 * var(--s-3)); padding: var(--s-6) var(--s-4); border-radius: var(--r-lg); background: var(--c-plate); backdrop-filter: blur(8px); }
  .crumbs, .crumbs a { color: var(--c-ink-2); }
}
@media (min-width: 1000px) {
  .hero__in { grid-template-columns: minmax(0, 1fr) var(--w-demo); padding-bottom: var(--s-16); }
}

/* 06. Демо-чат: заявка → бот → черновик → вы нажимаете -------------------- */
.demo { position: relative; width: 100%; max-width: var(--w-demo); justify-self: center; }
.demo__steps { list-style: none; padding: var(--s-3) var(--s-4) var(--s-4); border-radius: var(--r-lg); background: var(--c-plate); margin-bottom: var(--s-3); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); font-size: var(--fs-xs); color: var(--c-ink-3); text-shadow: var(--sh-text); }
.demo__steps li { display: flex; align-items: center; gap: var(--s-2); line-height: 1.2; padding-top: var(--s-3); border-top: var(--line-w) solid var(--c-line-strong); transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease); }
.demo__steps span { flex: none; display: grid; place-items: center; width: var(--step-n); height: var(--step-n); border-radius: 50%; box-shadow: var(--sh-ring); font-size: var(--fs-xs); font-weight: 600; }
.demo__steps li.is-on { color: var(--c-ink); border-color: var(--c-accent-2); }
.demo__steps li.is-on span { background: var(--c-accent-2); color: var(--c-plate); box-shadow: none; }
@media (max-width: 479px) { .demo__steps li { flex-direction: column; align-items: flex-start; } }

.chat { border-radius: var(--r-xl); background: var(--c-plate); border: 1px solid var(--c-glass-line); box-shadow: var(--sh-shot); overflow: hidden; }
.chat, .chat * { text-shadow: none; }
.chat__head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--c-line); }
.chat__ava { display: grid; place-items: center; width: var(--ava); height: var(--ava); border-radius: 50%; background: var(--c-accent-soft); }
.chat__who { display: grid; line-height: 1.25; }
.chat__who small { font-size: var(--fs-xs); color: var(--c-ink-3); }
.chat__body { display: grid; gap: var(--s-3); padding: var(--s-5); align-content: start; }
.msg { max-width: 86%; padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); font-size: var(--fs-sm); line-height: 1.45; }
.msg--in { background: var(--c-bubble-in); border-bottom-left-radius: var(--r-xs); }
.msg__from { display: block; font-size: var(--fs-xs); color: var(--c-accent-2); font-weight: 600; margin-bottom: var(--s-1); }
.msg--bot { background: var(--c-bubble-bot); border-bottom-left-radius: var(--r-xs); color: var(--c-ink-2); }
.msg--bot u { color: var(--c-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.msg--out { justify-self: end; background: var(--c-bubble-out); border-bottom-right-radius: var(--r-xs); color: var(--c-on-accent); }
.msg__meta { display: flex; justify-content: flex-end; align-items: center; gap: var(--s-1); margin-top: var(--s-1); font-size: var(--fs-xs); color: var(--c-on-accent); }
.msg__meta svg { width: 18px; height: 12px; color: var(--c-ok); }

.compose { margin: 0 var(--s-3) var(--s-3); padding: var(--s-4); border-radius: var(--r-lg); background: var(--c-plate-2); border: 1px solid var(--c-glass-line); }
.compose__label { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-xs); color: var(--c-ink-3); }
.compose__ai { font-weight: 600; color: var(--c-accent); }
.compose__dots { display: none; gap: var(--s-1); }
.compose__dots i { width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--c-accent); }
.compose__text { margin-top: var(--s-2); min-height: 2.9em; font-size: var(--fs-base); line-height: 1.45; }
.compose__human { color: var(--c-human); }
.compose__done { color: var(--c-ink-3); }
.compose__hint { margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--c-ink-3); }
.compose__row { margin-top: var(--s-4); display: flex; align-items: center; justify-content: flex-end; gap: var(--s-3); flex-wrap: wrap; }
.compose__tip { font-size: var(--fs-xs); color: var(--c-ink-3); visibility: hidden; }
.compose__send { position: relative; min-height: var(--h-btn); padding: var(--s-2) var(--s-6); border: 0; border-radius: var(--r-pill); background: var(--c-btn); color: var(--c-on-accent); font: 600 var(--fs-sm)/1.2 var(--font); cursor: pointer; transition: box-shadow var(--t-base) var(--ease), opacity var(--t-base) var(--ease); }
.compose__send:hover { background: var(--c-btn-hover); }
.compose__send[disabled] { background: var(--c-plate-2); color: var(--c-ink-3); box-shadow: var(--sh-ring); cursor: default; }
.compose__send.is-wait { box-shadow: var(--sh-send); }
.demo figcaption { margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--c-ink-3); text-shadow: var(--sh-text); }
.demo__again { margin-top: var(--s-3); min-height: var(--h-btn); padding: var(--s-2) var(--s-5); border-radius: var(--r-pill); border: 1px solid var(--c-line-strong); background: var(--c-plate); color: var(--c-ink-2); font: 500 var(--fs-sm)/1.2 var(--font); cursor: pointer; }
.demo__again:hover { color: var(--c-ink); border-color: var(--c-accent-2); }
.demo__again[hidden] { display: none; }
/* искры ClickSpark рисуются на холсте поверх кнопки */
.spark { position: absolute; pointer-events: none; z-index: 2; }

/* метка, которую напечатал ИИ, и курсор TextType */
.t-tag { background: var(--c-tag-bg); color: var(--c-tag); border-radius: var(--r-xs); padding: 0 var(--s-1); font-weight: 600; }
.t-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -0.15em; background: currentColor; }

/* состояния демо (только с JS и без reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .js .demo.is-run [data-step] { opacity: 0; translate: 0 var(--s-3); scale: 0.96; transform-origin: 0 100%; }
  .js .demo.is-run .msg--out[data-step] { transform-origin: 100% 100%; }
  .js .demo.is-run [data-step].is-in { opacity: 1; translate: 0 0; scale: 1; transition: opacity var(--t-pop) var(--ease-out), translate var(--t-pop) var(--ease-back), scale var(--t-pop) var(--ease-back); }
  .js .demo.is-run .compose__hint { opacity: 0; transition: opacity var(--t-base) var(--ease); }
  .js .demo.is-run .compose__hint.is-in { opacity: 1; }
  .js .demo.is-run .compose__tip.is-in { visibility: visible; }
  .js .demo.is-typing .compose__dots { display: inline-flex; }
  .js .demo.is-typing .compose__dots i { animation: dot-wave var(--t-dots) var(--ease) infinite; }
  .js .demo.is-typing .compose__dots i:nth-child(2) { animation-delay: var(--d-step); }
  .js .demo.is-typing .compose__dots i:nth-child(3) { animation-delay: calc(var(--d-step) * 2); }
  .js .t-caret { animation: caret-blink var(--t-blink) steps(1) infinite; }
}
@keyframes dot-wave { 0%, 60%, 100% { translate: 0 0; opacity: 0.45; } 30% { translate: 0 calc(-1 * var(--s-1)); opacity: 1; } }
@keyframes caret-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* 07. Станции пути заявки ------------------------------------------------- */
.stations { position: relative; list-style: none; padding: 0; margin-top: var(--s-16); display: grid; gap: var(--s-10); }
.station { position: relative; display: grid; gap: var(--s-2); }
.station__st { filter: drop-shadow(0 14px 18px var(--c-shadow)); object-fit: contain; }
.station__t { font-size: var(--fs-2xl); line-height: var(--lh-head); letter-spacing: var(--ls-head); }
.station__s { color: var(--c-ink-3); }
.station__p { margin-top: var(--s-2); width: fit-content; padding: var(--s-1) var(--s-4); border-radius: var(--r-pill); background: var(--c-plate); border: 1px solid var(--c-glass-line-hover); font-weight: 600; font-variant-numeric: tabular-nums; }
.station__p--q { border-color: var(--c-glass-line); color: var(--c-ink-3); font-weight: 500; font-size: var(--fs-sm); }
@media (max-width: 899px) {
  .stations::before { content: ""; position: absolute; left: calc(var(--st-station-m) / 2); top: var(--s-8); bottom: var(--s-8); width: var(--line-w); background: var(--c-line-strong); }
  .station { grid-template-columns: var(--st-station-m) minmax(0, 1fr); column-gap: var(--s-5); }
  .station__st { grid-row: span 3; width: var(--st-station-m); height: var(--st-station-m); position: relative; }
  .station > :not(img) { grid-column: 2; }
}
@media (min-width: 900px) {
  .stations { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-8); }
  .stations::before { content: ""; position: absolute; left: 12%; right: 12%; top: calc(var(--st-station) / 2); height: var(--line-w); background: linear-gradient(90deg, var(--c-line-strong), var(--c-accent-2), var(--c-line-strong)); }
  .station__st { position: relative; height: var(--st-station); width: auto; max-width: 70%; margin-bottom: var(--s-6); }
}
@media (prefers-reduced-motion: no-preference) {
  .js .station { opacity: 0; translate: 0 var(--s-6); transition: opacity var(--t-slow) var(--ease), translate var(--t-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * var(--d-step)); }
  .js .stations.is-in .station { opacity: 1; translate: 0 0; }
}

/* 08. Схема «сначала сохраняется» ----------------------------------------- */
.scheme { --on: 0; margin-top: var(--s-16); display: grid; gap: var(--s-8); align-items: center; }
.scheme__node { position: relative; display: grid; gap: var(--s-1); padding: var(--s-5) var(--s-6); border-radius: var(--r-lg); background: var(--c-glass); border: 1px solid var(--c-glass-line); }
.scheme__k { font-size: var(--fs-xl); font-weight: 600; line-height: var(--lh-head); }
.scheme__v { color: var(--c-ink-3); font-size: var(--fs-sm); }
.scheme__node--core { background: var(--c-plate-2); border-color: var(--c-accent-2); }
.scheme__node--core .scheme__k { font-size: var(--fs-2xl); color: var(--c-accent-2); }
.scheme__node--core .scheme__v { color: var(--c-ink-2); font-size: var(--fs-base); }
.scheme__outs { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
/* стрелки-связки между узлами */
.scheme__node--src::after, .scheme__node--core::after { content: ""; position: absolute; background: var(--c-accent-2); transform-origin: 0 0; }
@media (max-width: 899px) {
  .scheme__node--src::after, .scheme__node--core::after { left: var(--s-8); top: 100%; width: var(--line-w); height: var(--s-8); }
}
@media (min-width: 900px) {
  .scheme { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-12); }
  .scheme__node--src::after, .scheme__node--core::after { left: 100%; top: 50%; width: var(--s-12); height: var(--line-w); }
  .scheme__node--core { padding: var(--s-8); }
}
@media (prefers-reduced-motion: no-preference) {
  .js .scheme__node--src::after, .js .scheme__node--core::after { transition: scale var(--t-line) var(--ease); }
  .js .scheme:not(.is-in) .scheme__node--src::after, .js .scheme:not(.is-in) .scheme__node--core::after { scale: 0 1; }
  .js .scheme:not(.is-in) .scheme__node--src::after { scale: 1 0; }
  @media (min-width: 900px) { .js .scheme:not(.is-in) .scheme__node--src::after { scale: 0 1; } }
  .js .scheme__node--core::after { transition-delay: var(--t-line); }
  .js .scheme__node--core { transition: border-color var(--t-base) var(--ease) var(--d-3); }
  .js .scheme:not(.is-in) .scheme__node--core { border-color: var(--c-glass-line); }
  .js .scheme__node--out { transition: opacity var(--t-base) var(--ease), translate var(--t-base) var(--ease-out); transition-delay: calc(var(--t-line) * 2 + var(--i, 0) * var(--d-2)); }
  .js .scheme:not(.is-in) .scheme__node--out { opacity: 0; translate: var(--s-4) 0; }
}

/* 09. Черновик: переключатель (Uiverse.io, Na3ar-17 «warm-turtle-37», MIT) --
   Там чекбокс с display:none и подпись Play; у нас кнопка role="switch" с клавиатурой,
   подпись «Черновик ↔ Автоответ», шарик со стрелкой «отправить» и полный поворот, как в оригинале,
   цвета из палитры: выключено - спокойный фиолетовый, включено - красный «ошибка уходит клиенту». */
.draft__in { display: grid; gap: var(--s-12); align-items: center; }
@media (min-width: 960px) { .draft__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-16); } }
.draft__tag { margin-top: var(--s-8); font-size: var(--fs-base); color: var(--c-ink-2); max-width: var(--w-line); }
.sw { display: grid; gap: var(--s-5); }
.sw__btn {
  position: relative; width: var(--w-sw); height: var(--h-sw); padding: 0; border: 0; border-radius: var(--r-pill);
  background: var(--c-accent-soft); box-shadow: var(--sh-ring); cursor: pointer; color: var(--c-ink);
  font: 600 var(--fs-base)/1 var(--font); transition: background var(--t-base) var(--ease);
}
.sw__btn[hidden], .sw__label[hidden] { display: none; }
.sw__title { position: absolute; top: 50%; left: calc(50% + var(--ball) / 2); translate: -50% -50%; transition: left var(--t-base) var(--ease); white-space: nowrap; user-select: none; }
.sw__ball { position: absolute; top: calc((var(--h-sw) - var(--ball)) / 2); left: calc((var(--h-sw) - var(--ball)) / 2); width: var(--ball); height: var(--ball); border-radius: 50%; background: var(--c-ink); color: var(--c-plate); display: grid; place-items: center; transition: left var(--t-base) var(--ease), rotate var(--t-base) var(--ease); }
.sw__ball svg { width: 24px; height: 24px; }
.sw__btn[aria-checked="true"] { background: var(--c-danger-bg); }
.sw__btn[aria-checked="true"] .sw__title { left: calc(50% - var(--ball) / 2); }
.sw__btn[aria-checked="true"] .sw__ball { left: calc(100% - var(--ball) - (var(--h-sw) - var(--ball)) / 2); rotate: 360deg; background: var(--c-danger); color: var(--c-on-accent); }
.sw__label { font-size: var(--fs-sm); color: var(--c-ink-3); }
.sw__card { padding: var(--s-8); border-radius: var(--r-xl); background: var(--c-plate); border: 1px solid var(--c-glass-line); }
.sw__card--off { border-color: var(--c-ok); }
.sw__card--on { border-color: var(--c-danger); }
.sw__k { font-size: var(--fs-sm); font-weight: 600; color: var(--c-ok); }
.sw__card--on .sw__k { color: var(--c-danger); }
.sw__big { margin-top: var(--s-3); font-size: var(--fs-2xl); font-weight: 600; line-height: var(--lh-head); letter-spacing: var(--ls-head); }
.sw__small { margin-top: var(--s-3); color: var(--c-ink-3); }
/* с JS видна одна карточка, без JS обе подряд - сравнение читается и так */
.sw.is-on .sw__card[hidden] { display: none; }
@media (min-width: 960px) { .sw { justify-items: start; } .sw__card { width: 100%; } }

/* 10. Короткий призыв ----------------------------------------------------- */
.nudge { padding-top: var(--sec-y); }
.nudge__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6); }
.nudge__in::before { content: ""; flex: 1 0 100%; height: 1px; background: var(--c-line); margin-bottom: var(--s-6); }
.nudge__t { font-size: var(--fs-xl); font-weight: 500; line-height: 1.3; max-width: 26em; text-shadow: var(--sh-text); }

/* 11. Риски: письмо со скрытой командой ----------------------------------- */
.risk__in { margin-top: var(--s-16); display: grid; gap: var(--s-12); align-items: start; }
@media (min-width: 960px) { .risk__in { grid-template-columns: var(--w-letter) minmax(0, 1fr); gap: var(--s-16); } }
.letter { position: relative; padding: var(--s-8); border-radius: var(--r-xl); background: var(--c-plate); border: 1px solid var(--c-glass-line); box-shadow: var(--sh-shot); }
.letter, .letter * { text-shadow: none; }
.letter__from { font-size: var(--fs-xs); color: var(--c-ink-3); padding-bottom: var(--s-4); border-bottom: 1px solid var(--c-line); }
.letter__text { margin-top: var(--s-5); font-size: var(--fs-lg); line-height: 1.4; }
.letter__hidden { margin-top: var(--s-6); padding: var(--s-4); border-radius: var(--r-md); border: 1px dashed var(--c-danger); background: var(--c-danger-bg); display: grid; gap: var(--s-2); }
.letter__where { font-size: var(--fs-xs); color: var(--c-ink-3); }
.letter__cmd { font-size: var(--fs-base); font-weight: 600; color: var(--c-danger); font-variant-numeric: tabular-nums; }
.letter.is-done .letter__cmd [data-decrypt] { text-decoration: line-through; text-decoration-thickness: 2px; }
.letter__stamp { margin-top: var(--s-5); width: fit-content; padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); background: var(--c-ok-bg); color: var(--c-ok); font-weight: 600; font-size: var(--fs-sm); }
.d-enc { color: var(--c-ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .js .letter:not(.is-done) .letter__stamp { opacity: 0; scale: 0.9; }
  .js .letter__stamp { transition: opacity var(--t-base) var(--ease), scale var(--t-base) var(--ease-back); }
}
.guards { list-style: none; padding: 0; display: grid; gap: var(--s-8); }
.guards b { display: block; font-size: var(--fs-xl); line-height: var(--lh-head); letter-spacing: var(--ls-head); }
.guards span { display: block; margin-top: var(--s-2); color: var(--c-ink-3); max-width: var(--w-line); }
.risk__honest { margin-top: var(--s-16); display: grid; gap: var(--s-4); }
.risk__num { display: flex; align-items: baseline; gap: var(--s-5); flex-wrap: wrap; }
.risk__num b { font-size: var(--fs-big); line-height: 1; letter-spacing: var(--ls-display); font-variant-numeric: tabular-nums; }
.risk__num span { font-size: var(--fs-lg); color: var(--c-ink-2); max-width: 20em; line-height: 1.35; text-shadow: var(--sh-text); }

/* 12. Цена ---------------------------------------------------------------- */
.cost__in { display: grid; gap: var(--s-12); align-items: center; }
@media (min-width: 960px) { .cost__in { grid-template-columns: minmax(0, 1fr) var(--w-plist); gap: var(--s-16); } }
.cost__big { display: block; margin-top: var(--s-4); font-size: var(--fs-big); font-weight: 600; line-height: 1; letter-spacing: var(--ls-display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.plist { padding: var(--s-8); border-radius: var(--r-xl); background: var(--c-plate); border: 1px solid var(--c-glass-line); }
.plist__rows { display: grid; }
.plist__rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-5); padding: var(--s-4) 0; border-bottom: 1px solid var(--c-line); }
.plist__rows dt { color: var(--c-ink-2); font-size: var(--fs-sm); }
.plist__rows dd { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plist__q { border-bottom: 0; }
.plist__rows .plist__q dd { white-space: normal; text-align: right; color: var(--c-accent-2); font-weight: 500; font-size: var(--fs-sm); max-width: 12em; }
.plist__btn { margin-top: var(--s-6); width: 100%; }

/* 13. Что нужно от вас: чек-лист -------------------------------------------- */
.need__in { display: grid; gap: var(--s-12); align-items: start; }
@media (min-width: 960px) { .need__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-16); } }
.check { margin: 0; padding: var(--s-6); border-radius: var(--r-xl); background: var(--c-plate); border: 1px solid var(--c-glass-line); display: grid; gap: var(--s-2); min-width: 0; }
.check__i { position: relative; display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) var(--s-2); border-radius: var(--r-md); cursor: pointer; font-size: var(--fs-lg); line-height: 1.3; transition: background var(--t-fast) var(--ease); }
.check__i:hover { background: var(--c-accent-soft); }
.check__i input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { flex: none; display: grid; place-items: center; width: var(--box); height: var(--box); border-radius: var(--r-sm); box-shadow: var(--sh-ring); transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.check__box svg { width: 22px; height: 22px; }
.check__box path { fill: none; stroke: var(--c-plate); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset var(--t-base) var(--ease); }
.check__i input:checked + .check__box { background: var(--c-accent-2); box-shadow: none; }
.check__i input:checked + .check__box path { stroke-dashoffset: 0; }
.check__i input:focus-visible + .check__box { outline: 2px solid var(--c-accent-2); outline-offset: 3px; }
.check__res { margin-top: var(--s-4); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--c-accent-soft); color: var(--c-ink-2); font-size: var(--fs-base); }
.check__res.is-ok { background: var(--c-ok-bg); color: var(--c-ink); }

/* 14. Шаги и владение --------------------------------------------------------- */
.road { list-style: none; padding: 0; margin-top: var(--s-16); display: grid; gap: var(--s-8); counter-reset: road; }
.road__s { counter-increment: road; display: grid; align-content: start; gap: var(--s-2); padding-top: var(--s-5); border-top: var(--line-w) solid var(--c-line-strong); }
.road__s::before { content: counter(road); font-size: var(--fs-sm); font-weight: 600; color: var(--c-accent-2); }
.road__s b { font-size: var(--fs-2xl); line-height: var(--lh-head); letter-spacing: var(--ls-head); }
.road__s span { color: var(--c-ink-3); }
.road__s:nth-child(3) { border-top-color: var(--c-accent-2); }
@media (min-width: 900px) { .road { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); } }
@media (prefers-reduced-motion: no-preference) {
  .js .road__s { opacity: 0; transition: opacity var(--t-slow) var(--ease); transition-delay: calc(var(--i, 0) * var(--d-2)); }
  .js .road.is-in .road__s { opacity: 1; }
}
.own { margin-top: var(--s-16); display: flex; align-items: center; gap: var(--s-6); max-width: var(--w-text); }
.own__st { flex: none; width: var(--st-key); filter: drop-shadow(0 18px 22px var(--c-shadow)); }
.own p { font-size: var(--fs-lg); line-height: 1.45; color: var(--c-ink-2); text-shadow: var(--sh-text); }
@media (max-width: 559px) { .own { flex-direction: column; align-items: flex-start; } .own__st { width: calc(var(--st-key) * 0.7); } }

/* 15. Вопросы: плашки как на главной -------------------------------------- */
.faq__list { margin-top: var(--s-12); display: grid; gap: var(--s-3); max-width: var(--w-faq); }
.qa { border-radius: var(--r-lg); border: 1px solid var(--c-glass-line); background: var(--c-glass); transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.qa:hover, .qa[open] { border-color: var(--c-glass-line-hover); background: var(--c-glass-hover); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; padding: var(--s-5) var(--s-6); font-weight: 600; font-size: var(--fs-lg); line-height: 1.3; border-radius: var(--r-lg); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font-weight: 400; font-size: var(--fs-xl); line-height: 1; color: var(--c-ink-3); transition: rotate var(--t-base) var(--ease); }
.qa[open] summary::after { rotate: 45deg; }
.qa__a { padding: 0 var(--s-6) var(--s-6); color: var(--c-ink-2); max-width: var(--w-line); }
@media (prefers-reduced-motion: no-preference) {
  .qa::details-content, .more-d::details-content { block-size: 0; overflow: clip; transition: block-size var(--t-base) var(--ease), content-visibility var(--t-base) allow-discrete; }
  .qa[open]::details-content, .more-d[open]::details-content { block-size: auto; }
}

/* 16. Призыв -------------------------------------------------------------- */
.cta { position: relative; display: grid; justify-items: start; gap: var(--s-5); padding: var(--s-12) var(--s-6); border-radius: var(--r-xl); border: 1px solid var(--c-glass-line-hover); background: var(--c-glass); overflow: hidden; }
@media (min-width: 900px) { .cta { padding: var(--s-20) var(--s-16); } }
.cta__st { width: var(--st-cta); filter: drop-shadow(0 18px 22px var(--c-shadow)); }
@media (min-width: 900px) { .cta__st { position: absolute; right: var(--s-16); top: 50%; translate: 0 -50%; width: calc(var(--st-cta) * 1.6); } }
.cta__title { font-size: var(--fs-h2); line-height: var(--lh-head); letter-spacing: var(--ls-head); max-width: var(--w-cta-title); }
.cta__text { font-size: var(--fs-lg); color: var(--c-ink-2); }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); margin-top: var(--s-5); }
.cta__tel { color: var(--c-ink); font-weight: 600; font-size: var(--fs-lg); text-decoration: none; white-space: nowrap; padding: var(--s-2) 0; }
.cta__tel:hover { color: var(--c-link-hover); }

/* 17. Статьи: тихий выход -------------------------------------------------- */
.reads { padding-top: var(--s-20); }
.reads__title { font-size: var(--fs-lg); color: var(--c-ink-2); font-weight: 500; }
.reads__title--2 { margin-top: var(--s-8); }
.reads__list { list-style: none; padding: 0; margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-3); }
.reads__list a { display: inline-flex; align-items: center; min-height: var(--h-btn); padding: var(--s-2) var(--s-5); border-radius: var(--r-pill); border: 1px solid var(--c-glass-line); background: var(--c-plate); color: var(--c-ink-2); text-decoration: none; font-size: var(--fs-sm); transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.reads__list a:hover { border-color: var(--c-glass-line-hover); color: var(--c-ink); }

/* 18. Появление: разное по типу блока (методичка: не одинаковый fade у всех) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-in="title"] { animation: in-fade var(--t-base) var(--ease) both; }
  .js [data-in="lead"] { animation: in-fade var(--t-base) var(--ease) var(--d-1) both; }
  .js [data-in="act"] { animation: in-fade var(--t-base) var(--ease) var(--d-3) both; }
  .js [data-in="demo"] { animation: in-rise var(--t-slow) var(--ease-out) var(--d-2) both; }
  .js .sec__title, .js .cta__title { opacity: 0; transition: opacity var(--t-slow) var(--ease); }
  .js .sec__title.is-in, .js .cta__title.is-in { opacity: 1; }
}
@keyframes in-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes in-rise { from { opacity: 0; translate: 0 var(--s-6); } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
