/* ==========================================================================
   dmitriiking.ru: единый визуальный слой сайта.
   Все цвета, шрифты, радиусы, тени, фон «сетка лиц» и логотип заданы
   переменными в блоке ТОКЕНЫ ниже. Чтобы перекрасить сайт или сменить
   логотип, меняем только этот блок (и файл картинки).
   Источник значений: дизайн-система «Дмитрий Кинг» v1 (tokens.json, 28.11.2026).
   ========================================================================== */

/* ---------- ТОКЕНЫ: тёмная тема (основная) ---------- */
:root {
  /* бренд */
  --navy: #040a18;
  --navy-deep: #061630;
  --navy-raise: #0a1d3c;
  --ink-light: #e5eaf2;
  --king-blue: #00c2ff;
  --pill-blue: #00baff;
  --glow-blue: #006ec8;

  /* роли (тёмная тема) */
  --bg: var(--navy);
  --surface: var(--navy-deep);
  --surface-2: var(--navy-raise);
  --line: #e5eaf229;
  --line-strong: #e5eaf247;
  --text: var(--ink-light);
  --text-muted: #a3b1c4;
  --accent: var(--king-blue);
  --on-pill: var(--navy-deep);
  --focus: var(--king-blue);
  --danger: #ff8a8a;
  --success: #6fe3b0;

  /* шрифты (Google Fonts) */
  --font-display: "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-text: "Onest", "Segoe UI", Arial, sans-serif;
  --display-weight: 900;
  --display-tracking: 0.02em;

  /* размеры текста */
  --fs-hero: clamp(2.75rem, 1.6rem + 5vw, 5.75rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3.2vw, 4.25rem);
  --fs-h2: clamp(1.85rem, 1.3rem + 2.2vw, 3.1rem);
  --fs-h3: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  --fs-lead: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-micro: 0.8125rem;

  /* радиусы (из исходников: углы маленькие, круглые только кнопки) */
  --radius-photo: 4px;
  --radius-card: 5.5px;
  --radius-name: 6.5px;
  --radius-pill: 9999px;

  /* тени и свечения */
  --pill-ring: 0 0 0 3px var(--navy-deep);
  --glow-pill: 0 0 20px 8px #006ec880;
  --glow-name: 0 0 26px #006ec859;
  --shadow-text: 0 0 12px #040a1899;
  --glow-photo: 0 0 80px 10px #006ec866;
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--focus);
  --btn-ring: 0 0 0 3px var(--navy-deep);
  --btn-glow: var(--glow-pill);

  /* картинки бренда: фон «сетка лиц» и логотип (один файл) */
  --bg-faces: url("../img/bg-faces.jpg");
  --logo: url("../img/logo.png");
  --logo-ratio: 209 / 160;

  /* сетка и ритм */
  --page-max: 1180px;
  --text-max: 68ch;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --section-y: clamp(4rem, 2.5rem + 6vw, 8rem);

  /* движение */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;

  color-scheme: dark;
}

/* ---------- ТОКЕНЫ: светлая тема (длинный текст: гайды, документы, статьи) ---------- */
.theme-light {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eaf0f8;
  --line: #06163024;
  --line-strong: #0616303d;
  --text: var(--navy-deep);
  --text-muted: #45536a;
  --accent: var(--glow-blue);
  --focus: var(--glow-blue);
  --danger: #b42318;
  --success: #0f7a4f;
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--focus);
  --btn-ring: 0 0 0 3px var(--surface-2);
  --btn-glow: 0 8px 24px #006ec84d;
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); border-radius: 2px; }
::selection { background: var(--pill-blue); color: var(--on-pill); }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
.prose p, .prose li { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 40;
  background: var(--pill-blue); color: var(--on-pill); padding: 0.6rem 1rem;
  border-radius: var(--radius-pill); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.wrap { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--raise { background: var(--surface); }

/* заголовки: узкие, капсом, плакатные */
.display, .h-hero, .h1, .h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  text-transform: uppercase;
  line-height: 0.98;
}
.h-hero { font-size: var(--fs-hero); }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); line-height: 1.02; }
.h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; letter-spacing: -0.005em; }
.accent { color: var(--accent); }
.glow { text-shadow: var(--glow-name); }
.theme-light .glow { text-shadow: none; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text); max-width: 46ch; }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-small); }
.micro { font-size: var(--fs-micro); line-height: 1.5; }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); max-width: 52rem; }
.section-head p { margin: 0; color: var(--text-muted); font-size: var(--fs-lead); line-height: 1.55; max-width: 44ch; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block; vertical-align: middle;
  padding: 1.05rem 1.6rem 1rem;
  border: 0; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 1.15rem; line-height: 1.1; letter-spacing: 0.03em; text-transform: uppercase;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
}
.btn--primary { background: var(--pill-blue); color: var(--on-pill); box-shadow: var(--btn-ring); }
.btn--primary:hover { box-shadow: var(--btn-ring), var(--btn-glow); transform: translateY(-1px); text-decoration: none; }
.btn--primary:active { transform: translateY(0); }
.btn--primary:focus-visible { box-shadow: var(--focus-ring); }
.btn--ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn--ghost:hover { background: var(--surface); text-decoration: none; }
.btn--lg { font-size: 1.3rem; padding: 1.15rem 2rem 1.1rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.btn__arrow { display: inline-block; margin-left: 0.45em; transition: transform 0.35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.link-quiet {
  display: inline-block; padding-block: 0.6rem;
  color: var(--text); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--accent); text-underline-offset: 0.3em;
}
.link-quiet:hover { color: var(--accent); }

.tag {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.2rem 0.7rem; border-radius: var(--radius-pill);
  font-size: var(--fs-micro); font-weight: 600; line-height: 1.6;
  box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-muted);
}
.tag--ready { background: var(--pill-blue); color: var(--on-pill); box-shadow: none; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  --focus-ring: 0 0 0 2px var(--navy), 0 0 0 4px var(--king-blue);
  background: #040a18f7;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5eaf21a;
  color: var(--ink-light);
}
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink-light); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark {
  display: block; height: 2.1rem; aspect-ratio: var(--logo-ratio);
  background: var(--logo) center / contain no-repeat;
}
.brand__nick { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: 0.04em; font-size: 1rem; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: clamp(0.75rem, 0.3rem + 1.4vw, 1.75rem); }
.nav a { color: var(--ink-light); text-decoration: none; font-size: var(--fs-small); font-weight: 600; padding-block: 0.65rem; }
.brand { min-height: 2.75rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--king-blue); }
.nav .btn { padding: 0.6rem 1.1rem 0.55rem; font-size: 0.95rem; color: var(--king-blue); box-shadow: inset 0 0 0 2px var(--king-blue); }
.nav .btn:hover { color: var(--king-blue); background: var(--navy-deep); }
@media (max-width: 760px) {
  .site-header__row { flex-wrap: wrap; row-gap: 0; padding-block: 0.5rem; }
  .nav { width: 100%; overflow-x: auto; padding-block: 0.4rem 0.2rem; gap: 1.1rem; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .nav .btn { display: none; }
  .brand__nick { font-size: 0.9rem; }
}

/* ---------- Первый экран главной ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(2.5rem, 1rem + 5vw, 5.5rem) clamp(2rem, 1rem + 3vw, 3.5rem);
  color: var(--ink-light);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--bg-faces) center top / cover no-repeat;
  transform: scale(1.06);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 72% 40%, #006ec840 0%, transparent 70%),
    linear-gradient(180deg, #040a1880 0%, #040a18b8 50%, #040a18e6 82%, var(--navy) 100%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.hero__copy { display: grid; gap: 1.5rem; }
.hero__title { text-shadow: var(--shadow-text); }
.hero__title .h-hero { display: block; color: var(--king-blue); text-shadow: var(--glow-name); }
.hero__title .hero__sub {
  display: block; margin-top: 0.6rem;
  font-size: clamp(1.45rem, 1.05rem + 1.7vw, 2.4rem); line-height: 1.05; color: var(--ink-light);
}
.hero__who { margin: 0; font-size: var(--fs-lead); line-height: 1.5; max-width: 40ch; text-shadow: var(--shadow-text); }
.hero__who strong { color: var(--king-blue); font-weight: 600; white-space: nowrap; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.hero__photo { position: relative; justify-self: center; width: min(100%, 26rem); }
.hero__photo::before {
  content: ""; position: absolute; inset: 12% 8% 10%; z-index: -1; border-radius: 50%;
  background: var(--glow-blue); filter: blur(60px); opacity: 0.55;
}
.hero__photo img {
  width: 100%; aspect-ratio: 720 / 909; object-fit: cover; border-radius: var(--radius-photo);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 70%, transparent 100%), linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 70%, transparent 100%), linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-composite: intersect;
}
.hero__caption { position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; }

/* схема 12 ролей в первом экране */
.team-strip { margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); }
.team-strip__label { margin: 0 0 0.9rem; font-size: var(--fs-small); color: var(--text-muted); }
.team-strip__label strong { color: var(--ink-light); }
.roles { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.roles li {
  padding: 0.4rem 0.85rem; border-radius: var(--radius-pill);
  background: #0616309e; box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: var(--fs-small); font-weight: 600; line-height: 1.4; color: var(--ink-light);
}
.roles li.roles__main { background: var(--pill-blue); color: var(--on-pill); box-shadow: var(--glow-pill); }
.roles li.roles__private { color: var(--text-muted); box-shadow: inset 0 0 0 1px var(--line); background: transparent; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { order: -1; justify-self: start; width: min(64%, 15rem); }
  .hero__photo img { aspect-ratio: 1 / 1; object-position: 50% 12%; }
  .hero__photo::before { filter: blur(40px); }
}

/* ---------- Определение «что такое ИИ-агент» ---------- */
.define { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.define__text { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem); line-height: 1.5; margin: 0; max-width: 38ch; }
.define__text em { font-style: normal; color: var(--accent); }
@media (max-width: 760px) { .define { grid-template-columns: 1fr; } }

/* ---------- Двери «Что тебе нужно» ---------- */
.doors { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.door { border-bottom: 1px solid var(--line-strong); }
.door a {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center;
  padding: clamp(1.25rem, 1rem + 1vw, 1.9rem) 0.25rem; color: var(--text); text-decoration: none;
  transition: background-color 0.4s var(--ease-out);
}
.door__title { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: uppercase; letter-spacing: var(--display-tracking); font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2.15rem); line-height: 1.02; }
.door__desc { color: var(--text-muted); font-size: var(--fs-body); line-height: 1.55; }
.door__go {
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); font-size: 1.35rem;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.door__title, .door__desc { transition: transform 0.4s var(--ease-out), color 0.4s var(--ease-out); }
.door a:hover { background: linear-gradient(90deg, #006ec81f, transparent 70%); }
.door a:hover .door__title, .door a:hover .door__desc { transform: translateX(0.75rem); }
.door a:hover .door__title { color: var(--accent); }
.door a:hover .door__go { background: var(--pill-blue); color: var(--on-pill); box-shadow: var(--glow-pill); transform: translateX(4px); }
@media (max-width: 760px) {
  .door a { grid-template-columns: 1fr auto; }
  .door__desc { grid-column: 1 / -1; grid-row: 2; }
  .door__go { grid-row: 1; grid-column: 2; width: 2.5rem; height: 2.5rem; }
}

/* ---------- Путь: 4 шага (настоящая последовательность) ---------- */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; position: relative; counter-reset: step; }
.path::before {
  content: ""; position: absolute; left: 1.6rem; right: 1.6rem; top: 1.6rem; height: 2px;
  background: linear-gradient(90deg, var(--king-blue), #00c2ff33);
  transform-origin: left center;
}
.path li { position: relative; display: grid; gap: 0.6rem; align-content: start; counter-increment: step; }
.path li::before {
  content: counter(step); position: relative; z-index: 1;
  width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); box-shadow: inset 0 0 0 2px var(--king-blue);
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.4rem; color: var(--king-blue);
}
.path li:first-child::before { background: var(--pill-blue); color: var(--on-pill); box-shadow: var(--glow-pill); }
.path__title { font-weight: 600; font-size: 1.15rem; line-height: 1.3; margin: 0.4rem 0 0; }
.path__text { margin: 0; color: var(--text-muted); font-size: var(--fs-small); line-height: 1.6; }
.path__actions { margin-top: 2.5rem; }
@media (max-width: 860px) {
  .path { grid-template-columns: 1fr; gap: 1.75rem; }
  .path::before { left: 1.6rem; right: auto; top: 1.6rem; bottom: 1.6rem; width: 2px; height: auto; background: linear-gradient(180deg, var(--king-blue), #00c2ff33); transform-origin: center top; }
  .path li { grid-template-columns: 3.2rem 1fr; column-gap: 1.1rem; }
  .path li::before { grid-row: 1 / span 2; }
  .path__title { margin-top: 0.55rem; }
}

/* ---------- Материалы ---------- */
.materials { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; }
.materials__soon { display: grid; gap: 1.25rem; }
.mat {
  position: relative; display: grid; gap: 0.9rem; align-content: start;
  padding: clamp(1.4rem, 1rem + 1.5vw, 2.25rem); border-radius: var(--radius-card);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text); text-decoration: none;
}
.mat--feature {
  background:
    radial-gradient(80% 90% at 100% 0%, #006ec855 0%, transparent 60%),
    var(--surface);
  box-shadow: inset 0 0 0 1px #00c2ff55;
  align-content: space-between; min-height: 22rem;
  transition: box-shadow 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.mat--feature:hover { box-shadow: inset 0 0 0 1px var(--king-blue), 0 0 40px -6px #006ec8aa; transform: translateY(-2px); text-decoration: none; }
.mat__title { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: uppercase; letter-spacing: var(--display-tracking); line-height: 1.02; font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.4rem); }
.mat--soon .mat__title { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); }
.mat__text { margin: 0; color: var(--text-muted); max-width: 42ch; }
.mat__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.mat__list li { padding-left: 1.4rem; position: relative; }
.mat__list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.55rem; height: 2px; background: var(--accent); }
.mat__foot { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; justify-content: space-between; }
.mat--soon { opacity: 0.92; }
@media (max-width: 860px) { .materials { grid-template-columns: 1fr; } .mat--feature { min-height: 0; } }

/* ---------- Кейсы ---------- */
.proof { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: end; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.proof__big { margin: 0; }
.proof__num {
  display: block; font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(2.6rem, 1.4rem + 5.4vw, 6rem); line-height: 0.95; letter-spacing: 0.01em;
  color: var(--accent); text-shadow: var(--glow-name); white-space: nowrap;
}
.proof__cap { display: block; margin-top: 0.75rem; font-size: var(--fs-lead); line-height: 1.45; max-width: 30ch; }
.ledger { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.ledger li { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1.25rem; padding: 1rem 0; border-bottom: 1px solid var(--line-strong); align-items: baseline; }
.ledger__num { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem); color: var(--text); white-space: nowrap; letter-spacing: 0.01em; }
.ledger__text { color: var(--text-muted); font-size: var(--fs-small); line-height: 1.5; }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; align-items: start; } }

.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.case { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.case__photo { position: relative; aspect-ratio: 720 / 628; overflow: hidden; background: var(--navy-deep); }
.case__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.case:hover .case__photo img { transform: scale(1.03); }
.case__name {
  position: absolute; left: 1rem; bottom: 1rem; padding: 0.25rem 0.75rem; border-radius: var(--radius-name);
  background: #040a18cc; color: var(--ink-light);
  font-family: var(--font-display); font-weight: var(--display-weight); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.05rem;
}
.case__body { display: grid; gap: 1rem; padding: 1.4rem 1.4rem 1.6rem; align-content: start; }
.case__role { margin: 0; font-weight: 600; }
.case__dl { margin: 0; display: grid; gap: 0.9rem; }
.case__dl dt { font-size: var(--fs-micro); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.case__dl dd { margin: 0.15rem 0 0; font-size: var(--fs-small); line-height: 1.55; }
.case__dl dd strong { color: var(--accent); font-weight: 600; white-space: nowrap; }
@media (max-width: 960px) { .cases { grid-template-columns: 1fr; max-width: 34rem; } .case { grid-template-columns: 0.9fr 1.1fr; grid-template-rows: none; } .case__photo { aspect-ratio: auto; min-height: 100%; } }
@media (max-width: 560px) { .case { grid-template-columns: 1fr; } .case__photo { aspect-ratio: 720 / 560; } }

.stairs { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: clamp(1.25rem, 1rem + 2vw, 3rem); align-items: center; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--radius-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.stairs img { border-radius: var(--radius-photo); width: 100%; aspect-ratio: 547 / 720; object-fit: cover; }
.stairs__steps { margin: 1rem 0 0; font-family: var(--font-display); font-weight: var(--display-weight); text-transform: uppercase; letter-spacing: 0.03em; color: var(--accent); font-size: 1.05rem; }
@media (max-width: 680px) { .stairs { grid-template-columns: 1fr; } .stairs img { max-width: 16rem; } }

/* ---------- ИИ-команда изнутри ---------- */
.inside { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.inside__photo { position: sticky; top: 6rem; }
.inside__photo img { border-radius: var(--radius-photo); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; box-shadow: var(--glow-photo); }
.inside__photo figcaption { margin-top: 0.75rem; color: var(--text-muted); font-size: var(--fs-micro); }
.teamlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.teamlist li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line-strong); }
.teamlist__n { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.9rem; line-height: 1; color: var(--accent); }
.teamlist__t { margin: 0 0 0.2rem; font-weight: 600; font-size: 1.1rem; line-height: 1.35; }
.teamlist__d { margin: 0; color: var(--text-muted); font-size: var(--fs-small); line-height: 1.55; }
.facts { margin: 2rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.facts li { padding: 1.1rem 1.1rem 1.2rem; border-radius: var(--radius-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-small); line-height: 1.5; }
.facts b { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.6rem; color: var(--accent); line-height: 1.05; margin-bottom: 0.35rem; letter-spacing: 0.01em; }
@media (max-width: 860px) { .inside { grid-template-columns: 1fr; } .inside__photo { position: static; max-width: 24rem; } .facts { grid-template-columns: 1fr; } }

/* ---------- Группа ---------- */
.group {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-card); padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  background: radial-gradient(70% 80% at 0% 0%, #006ec84d 0%, transparent 60%), var(--surface);
  box-shadow: inset 0 0 0 1px #00c2ff40;
}
.group__head { display: grid; gap: 0.9rem; margin-bottom: 2rem; max-width: 46rem; }
.group__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; }
.group__cols h3 { margin-bottom: 0.75rem; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.checks li { position: relative; padding-left: 1.75rem; line-height: 1.55; }
.checks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.45em; width: 0.75rem; height: 0.42rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.checks--no li::before { width: 0.8rem; height: 2px; border: 0; background: var(--text-muted); transform: none; top: 0.78em; }
.format { margin: 2rem 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.format li { padding: 0.5rem 1rem; border-radius: var(--radius-pill); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 600; font-size: var(--fs-small); }
.group__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
@media (max-width: 760px) { .group__cols { grid-template-columns: 1fr; } }

/* ---------- FAQ (видимым текстом) ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line-strong); max-width: 54rem; margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.faq__item { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 0.5rem 2.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line-strong); }
.faq__q { font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
.faq__a { margin: 0; color: var(--text-muted); }
.faq__a strong { color: var(--text); }
@media (max-width: 760px) { .faq__item { grid-template-columns: 1fr; } }

/* ---------- Подвал ---------- */
.site-footer {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) 2rem;
  background: var(--navy); color: var(--ink-light);
  --text: var(--ink-light); --text-muted: #a3b1c4; --accent: var(--king-blue); --line-strong: #e5eaf247; --bg: var(--navy);
  --focus-ring: 0 0 0 2px var(--navy), 0 0 0 4px var(--king-blue); --btn-ring: 0 0 0 3px var(--navy-deep); --btn-glow: var(--glow-pill);
}
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--bg-faces) center bottom / cover no-repeat; opacity: 0.45;
}
.site-footer::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--navy) 0%, #040a18cc 45%, #040a18e6 100%); }
.footer__cta { display: grid; gap: 1.25rem; justify-items: start; padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); border-bottom: 1px solid #e5eaf229; }
.footer__cta p { margin: 0; max-width: 44ch; color: var(--text-muted); font-size: var(--fs-lead); line-height: 1.5; }
.footer__cta .h2 { max-width: 24ch; color: var(--ink-light); font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.02; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; padding-top: 2rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin: 0; padding: 0; list-style: none; }
.footer__links a { color: var(--ink-light); font-weight: 600; text-decoration: none; font-size: var(--fs-small); }
.footer__links a:hover { color: var(--king-blue); }
.footer__legal { margin: 1.5rem 0 0; color: var(--text-muted); font-size: var(--fs-micro); line-height: 1.6; }

/* ---------- Внутренние страницы: тёмная полоса заголовка ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem);
  background: var(--navy); color: var(--ink-light);
  --text: var(--ink-light); --text-muted: #a3b1c4; --accent: var(--king-blue); --bg: var(--navy); --focus: var(--king-blue);
  --focus-ring: 0 0 0 2px var(--navy), 0 0 0 4px var(--king-blue);
  --btn-ring: 0 0 0 3px var(--navy-deep); --btn-glow: var(--glow-pill);
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg-faces) center / cover no-repeat; opacity: 0.8; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 85% 20%, #006ec833 0%, transparent 70%), linear-gradient(180deg, #040a18bf, #040a18f2); }
.page-hero__inner { display: grid; gap: 1.25rem; }
.page-hero .h1 { max-width: 24ch; }
.page-hero .h1 { text-shadow: var(--shadow-text); }
.page-hero .lead { text-shadow: var(--shadow-text); max-width: 52ch; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 0.5rem; }
.crumbs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: var(--fs-micro); color: var(--text-muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; opacity: 0.6; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Длинный текст (статья, гайд, документ) ---------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.article--single { grid-template-columns: minmax(0, 1fr); }
.doc-list { max-width: 52rem; }
.prose { max-width: var(--text-max); font-size: 1.075rem; line-height: 1.75; }
.prose h2 { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: uppercase; letter-spacing: var(--display-tracking); font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.35rem); line-height: 1.05; margin: 3.25rem 0 1.1rem; scroll-margin-top: 6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.35; margin: 2rem 0 0.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.5rem 0; padding: 1.1rem 1.4rem; border-radius: var(--radius-card); background: var(--surface-2); }
.prose blockquote p:last-child { margin-bottom: 0; }
.answer { font-size: var(--fs-lead); line-height: 1.6; padding: 1.4rem 1.6rem; border-radius: var(--radius-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin: 0 0 2rem; }
.answer b { color: var(--accent); font-weight: 600; }
.toc { position: sticky; top: 6rem; display: grid; gap: 0.5rem; font-size: var(--fs-small); }
.toc__title { font-weight: 600; margin: 0 0 0.25rem; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.toc a { color: var(--text-muted); text-decoration: none; line-height: 1.4; display: block; }
.toc a:hover { color: var(--accent); }
.toc .btn { margin-top: 1rem; }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; } .toc { display: none; } }

.steps { list-style: none; margin: 1.5rem 0 2rem; padding: 0; counter-reset: s; display: grid; gap: 1rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; padding: 1.2rem 1.3rem; border-radius: var(--radius-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin: 0; }
.steps li::before { content: counter(s); width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--pill-blue); color: var(--on-pill); font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.3rem; }
.steps li > div > p:last-child { margin-bottom: 0; }
.steps h3 { margin: 0.35rem 0 0.4rem; }

.split-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 1.75rem; }
.split-cols > div { padding: 1.2rem 1.3rem; border-radius: var(--radius-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.split-cols h3 { margin-top: 0; }
.split-cols ul { margin-bottom: 0; }
@media (max-width: 640px) { .split-cols { grid-template-columns: 1fr; } }

.price-list { margin: 1rem 0 1.5rem; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.price-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line-strong); margin: 0; }
.price-list li > span:last-child { font-weight: 600; white-space: nowrap; }
.price-list li.price-list__total { font-weight: 600; }
.price-list li.price-list__total > span:last-child { color: var(--accent); }

.cta-band { margin-top: 3rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-card); background: var(--navy); color: var(--ink-light); display: grid; gap: 1rem; justify-items: start;
  --text: var(--ink-light); --text-muted: #a3b1c4; --accent: var(--king-blue); --bg: var(--navy); --focus-ring: 0 0 0 2px var(--navy), 0 0 0 4px var(--king-blue);
  --btn-ring: 0 0 0 3px var(--navy-deep); --btn-glow: var(--glow-pill);
  background: radial-gradient(80% 120% at 100% 0%, #006ec866 0%, transparent 60%), var(--navy);
}
.cta-band .h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.2rem); color: var(--ink-light); }
.cta-band p { margin: 0; color: var(--text-muted); max-width: 48ch; }

/* документы */
.doc { font-size: 1rem; line-height: 1.7; }
.doc h2 { font-family: var(--font-text); text-transform: none; font-weight: 600; letter-spacing: 0; font-size: 1.25rem; margin: 2.25rem 0 0.75rem; line-height: 1.35; }
.doc p, .doc li { text-wrap: pretty; }
.doc .doc__meta { color: var(--text-muted); font-size: var(--fs-small); }
.fill { background: #ffe9a8; color: #3a2c00; padding: 0 0.3em; border-radius: 3px; font-weight: 600; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.doc-list a { display: grid; gap: 0.3rem; padding: 1.25rem 1.4rem; border-radius: var(--radius-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--text); transition: box-shadow 0.35s var(--ease-out); }
.doc-list a:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.doc-list b { font-size: 1.1rem; font-weight: 600; }
.doc-list span { color: var(--text-muted); font-size: var(--fs-small); }

/* ---------- Анкета ---------- */
.form-shell { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.form-aside { position: sticky; top: 6rem; display: grid; gap: 1rem; color: var(--text-muted); font-size: var(--fs-small); }
.form-aside b { color: var(--text); }
@media (max-width: 960px) { .form-shell { grid-template-columns: 1fr; } .form-aside { position: static; order: -1; } }
.form { display: grid; gap: 1.25rem; }
.fieldset { margin: 0; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border: 0; border-radius: var(--radius-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 1.6rem; min-width: 0; }
.fieldset > legend { float: left; width: 100%; padding: 0; margin: 0 0 0.25rem; font-family: var(--font-display); font-weight: var(--display-weight); text-transform: uppercase; letter-spacing: var(--display-tracking); font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); line-height: 1.05; }
.fieldset > legend + * { clear: both; }
.q { display: grid; gap: 0.7rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.q__label, .q > legend { padding: 0; font-weight: 600; font-size: 1.05rem; line-height: 1.4; }
.q__hint { margin: -0.35rem 0 0; color: var(--text-muted); font-size: var(--fs-small); line-height: 1.5; }
.req { color: var(--accent); }
.opts { display: grid; gap: 0.5rem; }
.opts--cols { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.opt { position: relative; display: flex; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt > span {
  flex: 1; display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0.65rem 1rem;
  border-radius: var(--radius-card); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer; line-height: 1.4; font-size: var(--fs-small);
  transition: box-shadow 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.opt > span::before { content: ""; flex: none; width: 1.1rem; height: 1.1rem; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--text-muted); transition: box-shadow 0.25s var(--ease-out), background-color 0.25s var(--ease-out); }
.opt input[type="checkbox"] + span::before { border-radius: 3px; }
.opt > span:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.opt input:checked + span { box-shadow: inset 0 0 0 2px var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.opt input:checked + span::before { background: var(--accent); box-shadow: inset 0 0 0 3px var(--bg), 0 0 0 2px var(--accent); }
.opt input:focus-visible + span { box-shadow: var(--focus-ring); }
.field { display: grid; gap: 0.5rem; }
.input {
  width: 100%; min-height: 3.1rem; padding: 0.7rem 1rem; border: 0; border-radius: var(--radius-card);
  background: var(--bg); color: var(--text); font: inherit; font-size: 1rem;
  box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow 0.25s var(--ease-out);
}
.input::placeholder { color: var(--text-muted); opacity: 1; }
.input:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--danger); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.err { margin: 0; color: var(--danger); font-size: var(--fs-small); font-weight: 600; line-height: 1.45; }
.err:empty { display: none; }
.consent { display: flex; gap: 0.8rem; align-items: flex-start; cursor: pointer; font-size: var(--fs-small); line-height: 1.55; }
.consent input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--pill-blue); }
.form__submit { display: grid; gap: 1rem; justify-items: start; }
.form-status { padding: 1.1rem 1.3rem; border-radius: var(--radius-card); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--danger); }
.form-status p { margin: 0 0 0.5rem; }
.form-status p:last-child { margin: 0; }
.form-note { margin: 0; color: var(--text-muted); font-size: var(--fs-micro); line-height: 1.55; }

/* спасибо */
.thanks { min-height: 62vh; display: grid; align-content: center; gap: 1.25rem; justify-items: start; }

/* ---------- Движение ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes chip-in { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes glow-in { from { opacity: 0; filter: blur(80px); } to { opacity: 0.55; filter: blur(60px); } }
@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: no-preference) {
  .hero__title, .hero__who, .hero__actions { animation: rise 0.9s var(--ease-out) both; }
  .hero__who { animation-delay: 0.12s; }
  .hero__actions { animation-delay: 0.22s; }
  .hero__photo img { animation: rise 1.1s var(--ease-out) 0.1s both; }
  .hero__photo::before { animation: glow-in 1.6s var(--ease-out) 0.2s both; }
  .roles li { animation: chip-in 0.5s var(--ease-out) both; animation-delay: calc(0.45s + var(--i, 0) * 70ms); }

  /* появление блоков: включается скриптом только для того, что ниже первого экрана */
  .js .reveal.is-pending { opacity: 0; transform: translateY(18px); }
  .js .reveal.is-in { animation: rise var(--dur) var(--ease-out) both; }
  .js .path.is-pending::before { transform: scaleX(0); }
  .js .path.is-in::before { animation: draw-x 1.2s var(--ease-out) 0.15s both; }
  .js .path.is-in li { animation: rise 0.7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 120ms); }
  @media (max-width: 860px) {
    .js .path.is-pending::before { transform: scaleY(0); }
    .js .path.is-in::before { animation-name: draw-y; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* печать документов */
@media print {
  .site-header, .site-footer, .toc, .page-hero__actions, .cta-band { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0; }
  .page-hero::before, .page-hero::after { display: none; }
}

/* ---------- Мелкие отступы (вместо style в разметке) ---------- */
.cases-head { margin-bottom: 1.25rem; }
.group__foot p { margin: 0; }
.inside__more { margin-top: 1.5rem; }
.mat--feature .tag { justify-self: start; }
.mat--soon .tag { justify-self: start; }
.prose .teamlist, .prose .price-list, .prose .steps { padding-left: 0; }
.prose .teamlist li, .prose .price-list li, .prose .steps li { margin-bottom: 0; }
.prose .faq__q { margin: 0; font-size: 1.1rem; }
.prose .faq { max-width: none; }
.faq-wrap { margin-top: 3.5rem; }
.faq-wrap + p { margin-top: 1.5rem; }
.faq-wrap .h2 { margin-bottom: 1.25rem; }
.prose .cta-band .h2 { margin: 0; }
[hidden] { display: none !important; }
.lichno { display: grid; gap: 1.6rem; }
.q__label sup, .form-note sup { color: var(--accent); }
.page-hero__inner > .tag, .page-hero__inner > nav { justify-self: start; }

.theme-light .site-header { background: var(--navy); }
.step-time { display: inline-block; margin-left: 0.5rem; padding: 0 0.55rem; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text-muted); font-size: var(--fs-micro); font-weight: 600; vertical-align: 0.15em; white-space: nowrap; }
.rules { list-style: none; margin: 1.25rem 0 2rem; padding: 0; counter-reset: r; border-top: 1px solid var(--line-strong); }
.prose .rules { padding-left: 0; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-strong); margin: 0; }
.rules li::before { content: counter(r); grid-row: 1 / span 2; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.6rem; line-height: 1.1; color: var(--accent); }
.rule__t { margin: 0 0 0.25rem; font-weight: 600; line-height: 1.45; }
.rule__why { margin: 0; color: var(--text-muted); font-size: var(--fs-small); line-height: 1.6; }

/* ==========================================================================
   Вторая волна (29.11.2026): промпты, предложение с ценой, сравнение,
   разбор ошибок, тест «Три дела». Только компоненты, токены выше не менялись.
   ========================================================================== */

/* карточки материалов-ссылки рядом с главной карточкой */
.mat--side { transition: box-shadow 0.45s var(--ease-out), transform 0.45s var(--ease-out); }
.mat--side .mat__title { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); }
.mat--side .tag { justify-self: start; }
a.mat--side:hover { box-shadow: inset 0 0 0 1px var(--accent), 0 0 32px -8px #006ec8aa; transform: translateY(-2px); text-decoration: none; }
.mat__go { margin: 0; font-weight: 600; color: var(--accent); }

/* списки внутри длинного текста без лишнего отступа */
.prose .checks, .prose .howto, .prose .result__list { padding-left: 0; }
.prose .checks li { margin-bottom: 0; }

/* три шага «как пользоваться» */
.howto { list-style: none; margin: 0 0 2.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; counter-reset: h; }
.howto li { counter-increment: h; display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; padding: 0.45rem 1rem 0.45rem 0.45rem; border-radius: var(--radius-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: var(--fs-small); line-height: 1.3; }
.howto li::before { content: counter(h); width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--pill-blue); color: var(--on-pill); font-family: var(--font-display); font-weight: var(--display-weight); }

/* блок промпта с кнопкой «Скопировать» */
.btn--sm { font-size: 0.95rem; padding: 0.6rem 1.15rem 0.55rem; }
.prompt { margin: 1.25rem 0 0.5rem; border-radius: var(--radius-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); overflow: hidden; }
.prompt__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; padding: 0.75rem 0.9rem 0.75rem 1.2rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.prompt__label { margin: 0; font-size: var(--fs-small); font-weight: 600; color: var(--text-muted); }
.prompt__text { margin: 0; padding: 1.1rem 1.2rem 1.3rem; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-text); font-size: 0.975rem; line-height: 1.65; color: var(--text); }
.copy-status { margin: 0 0 1rem; min-height: 1.5em; font-size: var(--fs-small); font-weight: 600; color: var(--success); }

/* предложение с ценой (пакет промптов, набор) */
.offer {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem 2.5rem; align-items: end;
  margin: 2rem 0 2.5rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-card);
  background: radial-gradient(80% 120% at 100% 0%, #006ec866 0%, transparent 60%), var(--navy);
  box-shadow: inset 0 0 0 1px #00c2ff40; color: var(--ink-light);
  --text: var(--ink-light); --text-muted: #a3b1c4; --accent: var(--king-blue); --bg: var(--navy);
  --focus-ring: 0 0 0 2px var(--navy), 0 0 0 4px var(--king-blue); --btn-ring: 0 0 0 3px var(--navy-deep); --btn-glow: var(--glow-pill);
}
.offer__title { margin: 0 0 0.6rem; font-family: var(--font-display); font-weight: var(--display-weight); text-transform: uppercase; letter-spacing: var(--display-tracking); font-size: clamp(1.4rem, 1.15rem + 1.1vw, 2rem); line-height: 1.05; color: var(--ink-light); }
.offer__text { margin: 0; color: var(--text-muted); max-width: 46ch; }
.offer .mat__list { margin-top: 0.4rem; color: var(--ink-light); }
.offer__buy { display: grid; gap: 0.75rem; justify-items: start; }
.offer__price { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); line-height: 1; color: var(--king-blue); text-shadow: var(--glow-name); white-space: nowrap; }
.stub-note { margin: 0; flex-basis: 100%; font-size: var(--fs-small); color: var(--text-muted); max-width: 34ch; }
@media (max-width: 640px) { .offer { grid-template-columns: 1fr; } }

/* таблица сравнения */
.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.75rem; border-radius: var(--radius-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.compare { width: 100%; min-width: 32rem; border-collapse: collapse; font-size: var(--fs-small); line-height: 1.55; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
.compare thead th { font-weight: 600; background: var(--surface-2); color: var(--text); }
.compare tbody th { font-weight: 600; color: var(--text-muted); width: 30%; }
.compare tbody tr:last-child > * { border-bottom: 0; }

/* разбор ошибки: во что обошлось и правило после */
.fail-cost { margin: 1rem 0 0.75rem; padding: 0.9rem 1.15rem; border-radius: var(--radius-card); background: var(--surface); box-shadow: inset 3px 0 0 var(--danger), inset 0 0 0 1px var(--line); }
.fail-rule { margin: 0 0 1rem; padding: 1rem 1.2rem; border-radius: var(--radius-card); background: var(--surface-2); }
.fail-rule p { margin: 0; }
.fail-cost b, .fail-rule b { display: block; margin-bottom: 0.2rem; font-size: var(--fs-micro); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }

/* путь из трёх шагов */
.path--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .path--3 { grid-template-columns: 1fr; } }
.path--3 + .offer { margin-top: 3rem; }

/* тест «Три дела» */
.quiz { max-width: 48rem; }
.quiz__top { display: grid; gap: 0.6rem; margin-bottom: 1.25rem; scroll-margin-top: 6rem; }
.quiz__count { margin: 0; font-size: var(--fs-small); font-weight: 600; color: var(--text-muted); }
.quiz__bar { height: 4px; border-radius: var(--radius-pill); background: var(--line-strong); overflow: hidden; }
.quiz__bar span { display: block; height: 100%; width: 0; background: var(--pill-blue); transition: width 0.4s var(--ease-out); }
.quiz__step:focus { outline: none; }
.quiz__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.result { display: grid; gap: 1.25rem; }
.result:focus { outline: none; }
.result .lead { margin: 0; color: var(--text-muted); }
.result__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.result-card { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0 1rem; padding: 1.3rem 1.4rem 1.4rem; border-radius: var(--radius-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.result-card:first-child { box-shadow: inset 0 0 0 1px #00c2ff66; }
.result-card__n { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 2.2rem; line-height: 1; color: var(--accent); }
.result-card .h3 { margin: 0.15rem 0 0.5rem; }
.result-card__why { margin: 0 0 0.9rem; color: var(--text-muted); font-size: var(--fs-small); }
.result-card .case__dl { margin-bottom: 0.9rem; }
.result-card__mine { margin: 0 0 0.75rem; font-size: var(--fs-small); padding-left: 0.9rem; box-shadow: inset 2px 0 0 var(--accent); }
.result-card__link { font-weight: 600; font-size: var(--fs-small); }
.result__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.result .cta-band { margin-top: 0.5rem; }
.quiz__again { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 560px) { .result-card { grid-template-columns: 1fr; } .result-card__n { margin-bottom: 0.4rem; } }
.group__cols + .group__foot { margin-top: 2.25rem; }
/* широкая таблица не должна распирать колонку статьи на телефоне */
@media (max-width: 960px) { .article { grid-template-columns: minmax(0, 1fr); } }
.prose { min-width: 0; }
@media (max-width: 560px) {
  .compare { min-width: 0; font-size: var(--fs-micro); }
  .compare th, .compare td { padding: 0.7rem 0.55rem; }
  .compare tbody th { width: 27%; }
}
