/* tokens.css */
/* ==========================================================================
   Токены дизайн-системы (Vitrina, адаптировано для pavlyshen.ru)
   Компоненты ссылаются только на смысловые токены, не на сырые цвета.
   ========================================================================== */

/* ---------- Шрифты (локально, только кириллица + латиница) ---------- */
@font-face { font-family: "Unbounded"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/unbounded-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/unbounded-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/unbounded-rub-600.woff2") format("woff2"); unicode-range: U+20BD; }

@font-face { font-family: "Onest"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/onest-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/onest-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/onest-rub-400.woff2") format("woff2"); unicode-range: U+20BD; }

@font-face { font-family: "Onest"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/onest-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/onest-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/onest-rub-600.woff2") format("woff2"); unicode-range: U+20BD; }

@font-face { font-family: "Onest"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/onest-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/onest-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/onest-rub-700.woff2") format("woff2"); unicode-range: U+20BD; }

:root {
  /* ---------- Сырые шкалы ---------- */
  --gray-black: #121614;
  --gray-darker: #262b29;
  --gray-dark: #454c49;
  --gray-medium: #626a66;
  --gray-light: #d3d9d6;
  --gray-lighter: #edf1ef;
  --gray-white: #ffffff;

  --color1-darker: #083b46;
  --color1-dark: #0b4e5d;
  --color1-main: #0e6377;
  --color1-light: #5fa6b6;
  --color1-lighter: #d6e9ed;

  --color2-darker: #7a4a00;
  --color2-dark: #b9771a;
  --color2-main: #e8a33d;
  --color2-light: #f3c886;
  --color2-lighter: #fcefd8;

  --success-dark: #17693a;
  --success-light: #d9f0e0;

  /* ---------- Смысловые токены ---------- */
  --bg: var(--gray-white);
  --bg-subtle: var(--gray-lighter);
  --bg-raised: var(--gray-white);
  --bg-brand: var(--color1-lighter);
  --bg-inverse: var(--gray-black);

  --text: var(--gray-black);
  --text-secondary: var(--gray-dark);
  --text-muted: var(--gray-medium);
  --text-inverse: #ffffff;
  --text-link: var(--color1-dark);

  --border: var(--gray-light);
  --border-control: #8b9490;

  --primary: var(--color1-main);
  --primary-hover: var(--color1-dark);
  --primary-press: var(--color1-darker);
  --on-primary: #ffffff;
  --primary-soft: var(--color1-lighter);
  --on-primary-soft: var(--color1-dark);

  --accent: var(--color2-main);
  --accent-hover: #d98f22;
  --on-accent: #2b1c00;
  --accent-soft: var(--color2-lighter);
  --on-accent-soft: var(--color2-darker);

  --success-text: var(--success-dark);
  --success-bg: var(--success-light);

  --focus: var(--color1-main);
  --overlay: rgba(18, 22, 20, 0.36);

  /* ---------- Типографика ---------- */
  --font-display: "Unbounded", "Onest", system-ui, sans-serif;
  --font-sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* ---------- Отступы (шаг 4px) ---------- */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;

  /* ---------- Радиусы ---------- */
  --radius-xs: 4px;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --radius-xl: 24px;
  --radius-block: 32px;
  --radius-full: 9999px;

  /* ---------- Тени (без смещения) ---------- */
  --shadow-s: 0 0 10px 2px rgba(18, 22, 20, 0.10);
  --shadow-m: 0 0 25px 5px rgba(18, 22, 20, 0.07);
  --shadow-l: 0 0 40px 5px rgba(18, 22, 20, 0.05);
  --shadow-xl: 0 0 64px 8px rgba(18, 22, 20, 0.06);

  /* ---------- Контролы ---------- */
  --control-l: 56px;
  --control-m: 48px;
  --control-s: 40px;

  /* ---------- Раскладка ---------- */
  --container: 1440px;
  --gutter: 64px;
  --header-h: 72px;      /* высота плавающей панели шапки */
  --header-top: 12px;    /* отступ панели от верха окна */
  --pill-pad: 24px;      /* внутренний отступ панели: контент шапки совпадает с краем контента страницы */
  --pill-w: calc(100% - 2 * max(8px, var(--gutter) - var(--pill-pad)));
  --pill-max: calc(var(--container) - 2 * (var(--gutter) - var(--pill-pad)));

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur: 150ms;
}

@media (max-width: 1199px) { :root { --gutter: 40px; } }
@media (max-width: 1023px) { :root { --gutter: 32px; --header-h: 64px; --pill-pad: 16px; } }
@media (max-width: 767px)  { :root { --gutter: 16px; --header-h: 60px; --header-top: 8px; --pill-pad: 8px; } }

/* base.css */
/* ==========================================================================
   База: сброс, типографика, общие компоненты (кнопки, чипы, иконки)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--header-top) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
/* Никакого горизонтального скролла на телефонах: всё, что вылезает за край, обрезается */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
main, section, footer { max-width: 100vw; }
/* Место под плавающую шапку */
body { padding-top: calc(var(--header-h) + var(--header-top)); }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, picture { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-s); }

.visually-hidden {
  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(--space-16); top: -100px; z-index: 100;
  padding: var(--space-12) var(--space-16); border-radius: var(--radius-m);
  background: var(--primary); color: var(--on-primary); font-weight: 600;
}
.skip-link:focus { top: var(--space-16); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Типографика ---------- */
.h1, .h2, .h3, .h4 { font-family: var(--font-display); font-weight: 600; }
.h1 { font-size: clamp(2.125rem, 1.2rem + 3.6vw, 4rem); line-height: 1.05; letter-spacing: -0.01em; }
.h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.625rem); line-height: 1.05; letter-spacing: -0.01em; }
.h3 { font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.1; }
.h4 { font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem); line-height: 1.15; }
.h5 { font-size: 1.25rem; line-height: 1.2; font-weight: 700; }
.t1 { font-size: clamp(1rem, 0.85rem + 0.5vw, 1.25rem); line-height: 1.5; }
.t3 { font-size: 0.8125rem; line-height: 1.5; }
.text-brand { color: var(--primary); }
.text-muted { color: var(--text-muted); }

/* ---------- Иконки ---------- */
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }
.icon--16 { width: 16px; height: 16px; }
.icon--18 { width: 18px; height: 18px; }
.icon--20 { width: 20px; height: 20px; }

/* ---------- Кнопки ---------- */
.btn {
  --h: var(--control-m);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
  min-height: var(--h); padding: 0 var(--space-20);
  border-radius: var(--radius-m); border: 1.5px solid transparent;
  font-size: 1rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn--l { --h: var(--control-l); padding-inline: var(--space-24); }
.btn--s { --h: var(--control-s); padding-inline: var(--space-16); font-size: 0.875rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--primary:active { background: var(--primary-press); }

.btn--soft { background: var(--primary-soft); color: var(--on-primary-soft); }
.btn--soft:hover { background: #c4dfe5; }

.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hover); }

.btn--outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--border-control); }

.btn .icon { width: 20px; height: 20px; transition: transform var(--dur) var(--ease); }
.btn:hover .icon--arrow { transform: translateX(2px); }

/* Круглая кнопка-иконка */
.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: var(--control-m); height: var(--control-m);
  border-radius: var(--radius-full);
  background: var(--bg-subtle); color: var(--text);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--primary-soft); color: var(--on-primary-soft); }
.icon-btn--primary { background: var(--primary); color: var(--on-primary); }
.icon-btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.icon-btn--s { width: 44px; height: 44px; }

/* ---------- Чипы ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px var(--space-12); border-radius: var(--radius-full);
  font-size: 0.875rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.chip--neutral { background: var(--bg-subtle); color: var(--text-secondary); }
.chip--brand   { background: var(--primary-soft); color: var(--on-primary-soft); }
.chip--promo   { background: var(--accent-soft); color: var(--on-accent-soft); }
.chip--outline { background: var(--bg); color: var(--text-secondary); box-shadow: inset 0 0 0 1px var(--border); }

/* ---------- Ссылка со стрелкой ---------- */
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--text-link); font-weight: 600; font-size: 0.875rem; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

.icon-btn img, .f-contact__ico img { width: 22px; height: 22px; }
/* Иконка Яндекс Услуг в ссылке на рейтинг */
.yu-ico { width: 16px; height: 16px; margin-right: 4px; border-radius: 4px; flex: none; }

/* Хлебные крошки (внутренние страницы) */
.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-8); font-size: 0.875rem; color: var(--text-muted); }
.crumbs a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); }
.crumbs a:hover { color: var(--primary); }

/* Мобильные: длинные кнопки переносятся, а не вылезают за экран */
@media (max-width: 767px) {
  .btn { white-space: normal; text-align: center; padding-block: 10px; max-width: 100%; }
  .btn--l { padding-inline: var(--space-20); }
}
/* Страховка: длинные слова в заголовках переносятся, а не вылезают */
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 400px) { h1 { hyphens: auto; -webkit-hyphens: auto; } }
/* Зоны нажатия: крошки и ссылки в согласии — не меньше 24 px по высоте */
.crumbs { align-items: center; }
.crumbs a { display: inline-block; padding: 4px 0; min-height: 24px; }
.consent span { line-height: 1.75; }
.consent a { padding: 4px 0; }

/* ---------- Заголовки: шире контейнер, меньше строк ---------- */
.h1, .h2, .cx-final__title, .cs-hero__title, .ab-hero__title, .sv-hero__title, .sp-hero__title, .cx-hero__title, .bl-hero__title, .ct-hero__title { text-wrap: balance; hyphens: manual; -webkit-hyphens: manual; }
html .ab-hero__title, html .sv-hero__title, html .sp-hero__title, html .cx-hero__title, html .bl-hero__title, html .ct-hero__title {
  font-size: clamp(1.875rem, 1.05rem + 1.9vw, 3rem); line-height: 1.08;
}
/* шапка секции: заголовок занимает всю свободную ширину, а не сжимается рядом с кнопкой */
.section__head > .section__titles { flex: 1 1 auto; min-width: min(100%, 520px); max-width: 1040px; }
/* узкие колонки (заголовок слева, контент справа): кегль от ширины колонки */
.cs-story__head, .how__intro, .bls__text, .cs-takes__grid > div, .sp-tl-box .section__titles { container-type: inline-size; }
.cs-story__head .h2, .how__intro .h2, .bls__text .h2, .cs-takes__grid > div > .h2, .sp-tl-box .section__titles .h2 { font-size: min(clamp(1.75rem, 1.2rem + 1.8vw, 2.625rem), 8.4cqi); }
html .cx-final__title { font-size: clamp(1.5rem, 1rem + 1.1vw, 2.125rem); line-height: 1.1; }
.h1 { font-size: clamp(2.125rem, 1.2rem + 2.6vw, 3.5rem); }

@media (max-width: 767px) {
  .h1 { font-size: clamp(1.625rem, 7.4vw, 2rem); line-height: 1.08; }
  .h2 { font-size: clamp(1.25rem, 5.9vw, 1.5rem); line-height: 1.12; }
  html .ab-hero__title, html .sv-hero__title, html .sp-hero__title, html .cx-hero__title, html .bl-hero__title, html .ct-hero__title, html .cs-hero__title { font-size: clamp(1.375rem, 6.4vw, 1.625rem); line-height: 1.1; }
  html .cx-final__title { font-size: clamp(1.25rem, 5.9vw, 1.5rem); }
  .cs-story__head .h2, .how__intro .h2, .bls__text .h2, .cs-takes__grid > div > .h2, .sp-tl-box .section__titles .h2 { font-size: clamp(1.25rem, 5.9vw, 1.5rem); }
  /* надзаголовки в первом экране — прячем, чтобы не отвлекали от H1 (у главной текст остаётся в H1 для поиска) */
  .hero__kicker { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .sp-hero__eyebrow, .ab-hero__status, .cs-hero .cs-tags { display: none !important; }
  .cs-hero .crumbs + .cs-hero__title, .ab-hero .crumbs + .ab-hero__title { margin-top: 12px; }
}
/* принудительные переносы в заголовках секций не нужны — ширину решает text-wrap: balance */
.h2 br, .cx-final__title br { display: none; }
@media (max-width: 767px) { h1 br, h2 br, .h1 br { display: none; } }

/* header.css */
/* ==========================================================================
   Шапка, мега-меню «Услуги», мобильное меню
   ========================================================================== */

.site-header {
  position: fixed; z-index: 50; left: 0; right: 0; top: var(--header-top);
}

.site-header__inner {
  width: var(--pill-w); max-width: var(--pill-max);
  height: var(--header-h); margin-inline: auto; padding-inline: var(--pill-pad);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-24);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
          backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(211, 217, 214, 0.7), 0 4px 24px -8px rgba(18, 22, 20, 0.08);
  transition: background-color 250ms var(--ease), box-shadow 250ms var(--ease);
}
.site-header.is-scrolled .site-header__inner { box-shadow: inset 0 0 0 1px rgba(211, 217, 214, 0.5), 0 10px 32px -10px rgba(18, 22, 20, 0.18); }
.site-header.is-open .site-header__inner { background: var(--bg-raised); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header__inner { background: var(--bg-raised); }
}

/* ---------- Логотип ---------- */
.logo { display: inline-flex; align-items: center; flex: none; color: var(--text); }
.logo__svg { height: 46px; width: auto; }

/* ---------- Навигация ---------- */
.main-nav__list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: var(--space-4);
  height: 40px; padding: 0 14px; border-radius: var(--radius-m);
  font-size: 1rem; line-height: 1.4; color: var(--text); white-space: nowrap;
  transition: background-color var(--dur) var(--ease);
}
.nav-link:hover { background: var(--bg-subtle); }
.nav-link .icon { width: 18px; height: 18px; color: var(--text-muted); transition: transform 200ms var(--ease), color var(--dur) var(--ease); }
.nav-link[aria-expanded="true"] { background: var(--bg-subtle); font-weight: 600; }
.nav-link[aria-expanded="true"] .icon { transform: rotate(180deg); color: var(--primary); }

/* ---------- Действия ---------- */
.header-actions { display: flex; align-items: center; gap: var(--space-12); flex: none; }
.header-phone { display: flex; align-items: center; gap: 10px; padding-right: var(--space-8); }
.header-phone .icon { color: var(--primary); width: 22px; height: 22px; }
.header-phone__num { display: block; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.header-phone__note { display: block; font-size: 0.8125rem; line-height: 1.5; color: var(--text-muted); white-space: nowrap; }
.header-phone:hover .header-phone__num { color: var(--primary); }

.header-call, .burger { display: none; }

/* ---------- Мега-меню ---------- */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  padding-top: 8px;
}
.mega > .container { width: var(--pill-w); max-width: var(--pill-max); padding-inline: 0; }
.mega__panel {
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
}
.mega.is-open .mega__panel { animation: mega-in 180ms var(--ease) both; }
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.mega__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 340px; gap: var(--space-8); padding: var(--space-16); }
.mega__col { padding: var(--space-12) var(--space-8) var(--space-8); }
.mega__head { display: flex; align-items: center; gap: var(--space-12); padding: 0 var(--space-12) var(--space-12); }
.mega__ico {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: var(--radius-m); background: var(--primary-soft); color: var(--on-primary-soft);
}
.mega__ico .icon { width: 22px; height: 22px; }
.mega__title { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.mega__sub { font-size: 0.8125rem; color: var(--text-muted); }

.mega__link {
  display: flex; align-items: center; gap: var(--space-12);
  padding: var(--space-12); border-radius: var(--radius-m);
  transition: background-color var(--dur) var(--ease);
}
.mega__link-text { flex: 1; min-width: 0; }
.mega__link-name { display: block; line-height: 1.4; }
.mega__link-price { display: block; font-size: 0.8125rem; color: var(--text-muted); }
.mega__link .icon { width: 20px; height: 20px; color: var(--primary); opacity: 0; transform: translateX(-4px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.mega__link:hover, .mega__link:focus-visible { background: var(--bg-subtle); }
.mega__link:hover .mega__link-name { font-weight: 600; }
.mega__link:hover .icon, .mega__link:focus-visible .icon { opacity: 1; transform: none; }

.mega__promo {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-16);
  padding: 28px; border-radius: 20px; background: var(--bg-brand);
}
.mega__promo-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-m); background: var(--accent); color: var(--on-accent); }
.mega__promo-ico .icon { width: 22px; height: 22px; }
.mega__promo-title { margin-top: var(--space-12); }
.mega__promo-text { margin-top: var(--space-12); color: var(--text-secondary); }

.mega__foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-16);
  padding: var(--space-16) 28px; background: var(--bg-subtle);
}
.mega__foot-note { display: flex; align-items: center; gap: var(--space-12); font-size: 0.8125rem; color: var(--text-secondary); }

.page-overlay {
  position: fixed; inset: 0; z-index: 40;
  background: var(--overlay);
  animation: fade-in 180ms var(--ease) both;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Мобильное меню ---------- */
.mobile-menu {
  position: fixed; z-index: 49;
  top: calc(var(--header-top) + var(--header-h) + 8px); bottom: var(--header-top);
  left: 50%; width: var(--pill-w); max-width: var(--pill-max); transform: translateX(-50%);
  display: flex; flex-direction: column;
  border-radius: 20px; background: var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-l);
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu.is-open { animation: fade-in 160ms var(--ease) both; }
.mobile-menu__list { padding: var(--space-8) 16px 0; }
.mobile-menu__row {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: var(--space-16) 0; border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; text-align: left;
}
.mobile-menu__row .icon { width: 22px; height: 22px; color: var(--text-muted); transition: transform 200ms var(--ease); }
.mobile-menu__row[aria-expanded="true"] { color: var(--primary); border-bottom-color: transparent; }
.mobile-menu__row[aria-expanded="true"] .icon { color: var(--primary); transform: rotate(180deg); }

.mobile-menu__sub { margin-bottom: var(--space-8); padding: var(--space-8) var(--space-12); border-radius: var(--radius-l); background: var(--bg-subtle); }
.mobile-menu__sub-group + .mobile-menu__sub-group { border-top: 1px solid var(--border); }
.mobile-menu__sub-title { padding: var(--space-12) 0 var(--space-4); font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.mobile-menu__sub a { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-12); padding: 10px 0; }
.mobile-menu__sub a span:last-child { font-size: 0.8125rem; color: var(--text-muted); white-space: nowrap; }

.mobile-menu__bottom {
  margin-top: auto; display: grid; gap: var(--space-12);
  padding: var(--space-16);
  border-top: 1px solid var(--border);
}
.mobile-menu__contacts { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); }
.mobile-menu__phone { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.mobile-menu__messengers { display: flex; gap: var(--space-8); }

/* ---------- Адаптив ---------- */
@media (max-width: 1439px) {
  .header-phone__text { display: none; }
  .header-phone { padding-right: 0; }
  .nav-link { padding: 0 9px; }
  .logo__svg { height: 42px; }
  .site-header__inner { gap: var(--space-16); }
}
@media (max-width: 1199px) {
  .header-messenger { display: none; }
  .mega__body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega__promo { grid-column: 1 / -1; flex-direction: row; align-items: center; padding: 20px 24px; }
  .mega__promo > div { display: flex; align-items: center; gap: var(--space-16); }
  .mega__promo-title { margin-top: 0; }
  .mega__promo-text { display: none; }
  .mega__promo .btn--block { width: auto; }
}
@media (max-width: 1023px) {
  .main-nav, .header-phone, .header-cta, .mega { display: none !important; }
  .header-call, .burger { display: inline-grid; }
  .header-actions { gap: var(--space-8); }
}
@media (max-width: 767px) {
  .logo__svg { height: 40px; }
  .header-call, .burger { width: 44px; height: 44px; }
}
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* Заголовок колонки — ссылка на раздел (хаб «Разработка сайтов») */
.mega__head--link { margin: -8px 0 var(--space-4); padding: var(--space-8) var(--space-12) var(--space-12); border-radius: var(--radius-m); transition: background-color var(--dur) var(--ease); }
.mega__head--link > div { flex: 1; min-width: 0; }
.mega__head--link .mega__sub { color: var(--primary); font-weight: 600; }
.mega__head-go { width: 20px; height: 20px; color: var(--primary); transition: transform var(--dur) var(--ease); }
.mega__head--link:hover { background: var(--bg-subtle); }
.mega__head--link:hover .mega__head-go { transform: translateX(3px); }
.mobile-menu__sub a.mobile-menu__parent { font-weight: 700; color: var(--primary); }
.mobile-menu__sub a.mobile-menu__child { padding-left: var(--space-16); border-left: 2px solid var(--border); margin-left: 2px; }
.mega__new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: #1b1b1b; font-size: 0.6875rem; font-weight: 700; vertical-align: 2px; }

/* cases.css */
/* ==========================================================================
   Логотипы клиентов + Кейсы
   ========================================================================== */

/* ---------- Бегущая строка логотипов ---------- */
.clients {
  display: flex; align-items: center; gap: var(--space-24);
  padding-block: 28px;
  border-block: 1px solid var(--border);
}
.clients__label { flex: none; font-size: 0.875rem; color: var(--text-muted); }
.clients__viewport {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
          mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}
.clients__track { display: flex; gap: var(--space-16); width: max-content; animation: marquee 40s linear infinite; }
.clients__viewport:hover .clients__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--space-8))); } }
@media (prefers-reduced-motion: reduce) { .clients__track { animation: none; } }

.client-logo { display: grid; place-items: center; flex: none; height: 56px; padding: 0 20px; }
.client-logo img { height: 40px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: 0.55; transition: filter 250ms var(--ease), opacity 250ms var(--ease); }
.client-logo:hover img { filter: none; opacity: 1; }

/* ---------- Секция кейсов ---------- */
.section { padding-block: 96px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-32); margin-bottom: var(--space-48); }
.section__titles { display: flex; flex-direction: column; gap: var(--space-16); max-width: 760px; }
.section__sub { color: var(--text-secondary); }

.filters { display: flex; gap: var(--space-8); }
.filter {
  display: inline-flex; align-items: center; height: 36px; padding: 0 var(--space-16);
  border-radius: var(--radius-full); box-shadow: inset 0 0 0 1px var(--border);
  font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.filter:hover { box-shadow: inset 0 0 0 1px var(--border-control); }
.filter[aria-pressed="true"] { background: var(--primary-soft); color: var(--on-primary-soft); box-shadow: none; }

.cases-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-16); }

/* Обычная карточка */
.case-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-32);
  min-height: 340px; padding: 28px; border-radius: var(--radius-xl);
  background: var(--bg-subtle);
  transition: box-shadow var(--dur) var(--ease), transform 200ms var(--ease);
}
.case-card:hover { box-shadow: var(--shadow-s); transform: translateY(-2px); }
.case-card[hidden] { display: none; }
.case-card__top { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-16); }
.case-card__client { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.case-card__metric { display: flex; align-items: center; gap: var(--space-8); }
.case-card__metric .icon { width: 0.8em; height: 0.8em; stroke-width: 2.5; }
.case-card__label { margin-top: 6px; color: var(--text-secondary); }
.case-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-12);
  padding-top: var(--space-16); border-top: 1px solid var(--border);
  font-size: 0.875rem; color: var(--text-muted);
}
.case-card__go {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-full);
  background: var(--bg); color: var(--text);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.case-card__go .icon { width: 18px; height: 18px; }
.case-card:hover .case-card__go { background: var(--primary); color: var(--on-primary); }
/* Вся карточка кликабельна */
.case-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.case-card__link:focus-visible { outline: none; }
.case-card:has(.case-card__link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Главный кейс — тёмный, на две колонки */
.case-card--featured {
  grid-column: span 2; min-height: 420px; padding: 36px 40px;
  border-radius: var(--radius-block); background: var(--bg-inverse); color: var(--text-inverse);
}
.case-card--featured .case-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-16); }
.case-card--featured .case-card__client { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; }
.case-card__trend { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-full); background: var(--success-bg); color: var(--success-text); flex: none; }
.case-card__trend .icon { width: 26px; height: 26px; }
.case-card__metrics { display: flex; align-items: flex-end; gap: 56px; flex-wrap: wrap; }
.case-card__big { font-family: var(--font-display); font-weight: 600; font-size: clamp(4rem, 2rem + 4.5vw, 7rem); line-height: 0.9; letter-spacing: -0.03em; }
.case-card__second { color: var(--accent); }
.case-card__muted { margin-top: var(--space-8); opacity: 0.72; }
.case-card--featured .case-card__foot { border-top: 0; padding-top: 0; color: rgba(255, 255, 255, 0.72); }

.cases-more { display: flex; align-items: center; justify-content: center; gap: var(--space-16); margin-top: var(--space-48); }
.cases-empty { grid-column: 1 / -1; padding: var(--space-32); text-align: center; color: var(--text-muted); }

/* ---------- Адаптив ---------- */
@media (max-width: 1199px) {
  .section__head { flex-direction: column; align-items: flex-start; }
  .cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .section { padding-block: 64px; }
  .section__head { margin-bottom: var(--space-32); gap: var(--space-24); }
  .clients { gap: var(--space-12); padding-block: 20px; }
  .clients__label { display: none; }
  .client-logo { height: 44px; padding: 0 14px; }
  .client-logo img { height: 30px; max-width: 130px; }
  .filters { width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .cases-grid { grid-template-columns: minmax(0, 1fr); }
  .case-card--featured { grid-column: auto; min-height: 0; padding: 28px 24px; border-radius: var(--radius-xl); gap: var(--space-24); }
  .case-card { min-height: 0; padding: 24px; gap: var(--space-24); }
  .case-card__metrics { gap: var(--space-24); }
  .case-card--featured .case-card__foot { flex-direction: column; align-items: stretch; }
  .cases-more { flex-direction: column; }
  .cases-more .btn { width: 100%; }
}

/* ---------- Подборки кейсов на главной ---------- */
#cases .section__head { flex-direction: column; align-items: flex-start; }
.hc-filters { flex-wrap: wrap; }
.hc-filters .filter span { margin-left: 4px; font-size: 0.75rem; opacity: 0.55; }
.hc-card { min-height: 0; gap: var(--space-24); }
.hc-card__body { display: flex; flex-direction: column; }
.hc-card__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 1.4rem + 1.4vw, 2.75rem); line-height: 1; letter-spacing: -0.02em; color: var(--primary); }
.hc-card__sub { margin-top: var(--space-12); font-size: 0.875rem; color: var(--text-muted); }
.hc-card__sub b { color: var(--text); font-weight: 600; }
.hc-card__cover { display: block; margin-bottom: var(--space-16); border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 10px 24px rgba(18, 22, 20, 0.12); }
.hc-card__cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.hc-card:hover .hc-card__cover img { transform: scale(1.03); }
@media (max-width: 767px) {
  .hc-filters { flex-wrap: nowrap; }
  .hc-filters .filter { flex: none; }
}
.hc-card__cover--photo { position: relative; }
.hc-card__cover--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(1, 8, 11, 0.25)); }
.hc-card .case-card__top { gap: var(--space-12); }

/* process.css */
/* ==========================================================================
   Как работаю: шаги, договор, форма разбора
   ========================================================================== */

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-16); margin-bottom: var(--space-48); }
.step { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-16); }
.step__rail { display: flex; align-items: center; gap: var(--space-12); width: 100%; }
.step__num {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary-soft); color: var(--on-primary-soft); font-weight: 600;
}
.step:first-child .step__num { background: var(--primary); color: var(--on-primary); }
.step__line { position: relative; flex: 1; height: 2px; border-radius: 2px; background: var(--border); overflow: hidden; }
.step__line::after { content: ""; position: absolute; inset: 0; background: var(--primary); transform-origin: left; transform: scaleX(1); }
.step:last-child .step__line { display: none; }
.step__title { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.step__text { color: var(--text-secondary); }

@media (prefers-reduced-motion: no-preference) {
  .js .steps .step__num { transform: scale(0.6); opacity: 0; transition: transform 500ms var(--ease-out), opacity 300ms ease; transition-delay: calc(var(--i) * 260ms); }
  .js .steps .step__line::after { transform: scaleX(0); transition: transform 500ms var(--ease-out); transition-delay: calc(var(--i) * 260ms + 180ms); }
  .js .steps .step__body { opacity: 0; transform: translateY(10px); transition: opacity 500ms ease, transform 600ms var(--ease-out); transition-delay: calc(var(--i) * 260ms + 100ms); }
  .js .steps.is-in .step__num { transform: none; opacity: 1; }
  .js .steps.is-in .step__line::after { transform: scaleX(1); }
  .js .steps.is-in .step__body { opacity: 1; transform: none; }
}
.step__body { display: flex; flex-direction: column; gap: var(--space-12); align-items: flex-start; }

/* ---------- Договор + форма ---------- */
.deal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: var(--space-16); align-items: stretch; }

.contract { display: flex; flex-direction: column; padding: 40px; border-radius: var(--radius-block); background: var(--bg-inverse); color: var(--text-inverse); }
.contract__list { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.contract__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); margin-top: auto; padding-top: var(--space-32); }
.contract__num { display: block; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem); line-height: 1.1; color: var(--accent); }
.contract__cap { display: block; margin-top: 6px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.72); }
.contract__head { display: flex; align-items: center; gap: var(--space-16); margin-bottom: 28px; }
.contract__head .icon { width: 36px; height: 36px; color: var(--accent); }
.contract__list li {
  display: flex; justify-content: space-between; gap: var(--space-24);
  padding: var(--space-16) 0; border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.contract__term { font-weight: 600; white-space: nowrap; }
.contract__desc { text-align: right; color: rgba(255, 255, 255, 0.72); }

.lead {
  display: flex; flex-direction: column; gap: var(--space-24);
  padding: 40px; border-radius: var(--radius-block); background: var(--bg-brand);
  scroll-margin-top: calc(var(--header-h) + var(--header-top) + 24px);
}
.lead__text { margin-top: var(--space-12); color: var(--text-secondary); }

/* ---------- Форма ---------- */
.form { display: grid; gap: var(--space-12); }
.field { display: grid; gap: 6px; }
.field__label { font-size: 0.875rem; font-weight: 600; }
.input {
  width: 100%; height: var(--control-l); padding: 0 var(--space-16);
  border: 1.5px solid transparent; border-radius: var(--radius-m);
  background: var(--bg-raised); color: var(--text);
  font: inherit; font-size: 1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder { color: var(--text-muted); }
.input:hover { border-color: var(--border); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14, 99, 119, 0.15); }
.input[aria-invalid="true"] { border-color: #b42318; }
.field__error { font-size: 0.8125rem; color: #b42318; }

.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.8125rem; color: var(--text-secondary); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.consent a { color: var(--text-link); text-decoration: underline; text-underline-offset: 2px; }

.form .btn { margin-top: var(--space-4); }
.form .btn[disabled] { opacity: 0.7; cursor: progress; }
.form__status { font-size: 0.875rem; }
.form__status--error { color: #b42318; }

.lead__done { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-12); }
.lead__done-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--success-bg); color: var(--success-text); }
.lead__done-ico .icon { width: 28px; height: 28px; }

.lead__alt { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; font-size: 0.8125rem; color: var(--text-muted); }
.lead__alt .icon-btn { width: 44px; height: 44px; background: var(--bg-raised); }

/* ---------- Адаптив ---------- */
@media (max-width: 1199px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { flex-direction: row; align-items: stretch; gap: var(--space-16); }
  .step__rail { flex-direction: column; width: auto; gap: 0; }
  .step__line { width: 2px; height: auto; min-height: 24px; margin: 8px 0; }
  .step__line::after { transform-origin: top; }
  .step:last-child .step__line { display: none; }
  .step__body { padding: 10px 0 var(--space-24); }
  @media (prefers-reduced-motion: no-preference) {
    .js .steps .step__line::after { transform: scaleY(0); }
    .js .steps.is-in .step__line::after { transform: scaleY(1); }
  }
  .deal { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .contract, .lead { padding: 28px 24px; border-radius: var(--radius-xl); }
  .contract__list li { flex-direction: column; gap: 2px; }
  .contract__desc { text-align: left; }
  .contract__stats { gap: var(--space-12); }
  .contract__cap { font-size: 0.8125rem; }
}

/* cases-page.css */
/* ==========================================================================
   Страница «Кейсы» (/cases/) — витрина результатов
   ========================================================================== */

.cx-eyebrow { display: inline-block; margin-bottom: var(--space-16); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.cx-eyebrow--inv { color: var(--accent); }
.cx-head-note { max-width: 420px; color: var(--text-secondary); }
.crumbs--inv, .crumbs--inv a { color: rgba(255, 255, 255, 0.6); text-decoration-color: rgba(255, 255, 255, 0.25); }
.crumbs--inv a:hover { color: #fff; }
.btn--ghost-inv { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); background: transparent; }
.btn--ghost-inv:hover { background: rgba(255, 255, 255, 0.1); }
.btn .icon { flex: none; }

/* ==========================================================================
   1. Первый экран
   ========================================================================== */
.cx-hero { padding-top: var(--space-16); }
.cx-hero__box {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-32) var(--space-48);
  padding: 56px 56px 40px; border-radius: var(--radius-block); overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, #12505f 0%, rgba(18, 80, 95, 0) 60%), var(--bg-inverse);
  color: var(--text-inverse);
}
.cx-hero__field { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--color1-light); opacity: 0.12; pointer-events: none; }
.cx-hero__text { position: relative; }
.cx-hero__title { margin-top: var(--space-24); font-family: var(--font-display); font-weight: 600; font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.5rem); line-height: 1; letter-spacing: -0.02em; }
.cx-hero__title span { color: var(--accent); }
.cx-hero__lead { max-width: 520px; margin-top: var(--space-24); font-size: 1.125rem; line-height: 1.55; color: rgba(255, 255, 255, 0.75); }
.cx-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-12); margin-top: var(--space-32); }

/* График роста */
.cx-hero__viz { position: relative; align-self: center; min-height: 340px; }
.cx-chart { position: absolute; inset: 20px 0 0; width: 100%; height: calc(100% - 20px); overflow: visible; }
.cx-chart__grid line { stroke: rgba(255, 255, 255, 0.08); stroke-dasharray: 4 6; }
.cx-chart__line { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.cx-chart__dot { fill: var(--accent); stroke: rgba(232, 163, 61, 0.3); stroke-width: 14; }
.cx-float {
  position: absolute; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: var(--radius-l);
  background: rgba(255, 255, 255, 0.96); color: var(--text); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.cx-float b { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; line-height: 1.1; color: var(--primary); }
.cx-float span { font-size: 0.8125rem; color: var(--text-muted); white-space: nowrap; }
.cx-float--1 { right: 0; top: 0; }
.cx-float--2 { left: 6%; top: 42%; }
.cx-float--3 { right: 8%; bottom: 6%; }

.cx-kpis { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--space-16); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.cx-kpis li { display: flex; flex-direction: column; gap: 6px; padding: var(--space-24) var(--space-24) 0 0; }
.cx-kpis li + li { padding-left: var(--space-24); border-left: 1px solid rgba(255, 255, 255, 0.14); }
.cx-kpis b { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); line-height: 1; }
.cx-kpis li > span { font-size: 0.875rem; line-height: 1.4; color: rgba(255, 255, 255, 0.6); }

@media (prefers-reduced-motion: no-preference) {
  .js .cx-chart__line { stroke-dashoffset: 1; transition: stroke-dashoffset 1800ms var(--ease-out) 300ms; }
  .js .cx-chart__area, .js .cx-chart__dot { opacity: 0; transition: opacity 800ms ease 1400ms; }
  .js .cx-float { opacity: 0; transform: translateY(16px) scale(0.96); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
  .js .cx-hero__box.is-in .cx-chart__line { stroke-dashoffset: 0; }
  .js .cx-hero__box.is-in .cx-chart__area, .js .cx-hero__box.is-in .cx-chart__dot { opacity: 1; }
  .js .cx-hero__box.is-in .cx-float { opacity: 1; transform: none; }
  .js .cx-hero__box.is-in .cx-float--1 { transition-delay: 900ms; }
  .js .cx-hero__box.is-in .cx-float--2 { transition-delay: 1150ms; }
  .js .cx-hero__box.is-in .cx-float--3 { transition-delay: 1400ms; }
  .cx-float { animation: cx-bob 6s ease-in-out infinite alternate; }
  .cx-float--2 { animation-delay: -2s; }
  .cx-float--3 { animation-delay: -4s; }
  .cx-chart__dot { animation: cx-pulse 2.4s ease-in-out infinite; }
}
@keyframes cx-bob { to { translate: 0 -8px; } }
@keyframes cx-pulse { 50% { stroke-width: 24; stroke: rgba(232, 163, 61, 0.15); } }

/* ==========================================================================
   2. Большие истории
   ========================================================================== */
.story {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-48); align-items: center;
  padding: 48px; border-radius: var(--radius-block);
}
.story + .story { margin-top: var(--space-16); }
.story--dark { background: var(--bg-inverse); color: var(--text-inverse); }
.story--brand { background: var(--primary-soft); color: var(--color1-darker); }
.story--accent { background: var(--accent-soft); color: var(--text); }

.story__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.story__chip { padding: 6px 12px; border-radius: var(--radius-full); background: var(--accent); color: var(--on-accent); font-size: 0.8125rem; font-weight: 600; }
.story__chip--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; opacity: 0.7; }
.story--brand .story__chip:not(.story__chip--ghost) { background: var(--primary); color: #fff; }
.story__client { margin-top: var(--space-24); font-size: 1.25rem; font-weight: 700; }
.story__big { margin-top: var(--space-8); font-family: var(--font-display); font-weight: 600; font-size: clamp(4rem, 2rem + 5vw, 7.5rem); line-height: 0.9; letter-spacing: -0.03em; }
.story--dark .story__big { color: #fff; }
.story--brand .story__big { color: var(--primary); }
.story--accent .story__big { color: var(--color2-darker); }
.story__big-label { margin-top: var(--space-12); font-size: 1.0625rem; opacity: 0.75; }
.story__btn { margin-top: 40px; }

.story__media { position: relative; }
.story__frame {
  display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25); transform: rotate(-2deg); transition: transform 600ms var(--ease-out);
}
.story--brand .story__frame { transform: rotate(2deg); }
.story:hover .story__frame { transform: rotate(0) scale(1.02); }
.story__frame img { width: 100%; height: 100%; object-fit: cover; }
.story__badge {
  position: absolute; left: -20px; bottom: -20px; display: flex; flex-direction: column; gap: 2px;
  padding: 16px 20px; border-radius: var(--radius-l); background: var(--accent); color: var(--on-accent);
  font-size: 0.8125rem; font-weight: 600; box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}
.story__badge b { font-family: var(--font-display); font-size: 1.75rem; line-height: 1; }
.story__badge--light { left: auto; right: -20px; background: #fff; color: var(--text); }
.story__badge--light b { color: var(--primary); }

/* Поток денег: бюджет → заявки → оборот */
.flow { display: flex; align-items: stretch; gap: 0; margin-top: var(--space-32); padding-top: var(--space-24); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.flow__step { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 0 20px; }
.flow__step:first-child { padding-left: 0; }
.flow__step + .flow__arrow + .flow__step { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.flow__step b { font-size: 1.25rem; line-height: 1.15; }
.flow__step small { display: block; margin-top: 4px; font-size: 0.75rem; font-weight: 600; color: rgba(255, 255, 255, 0.55); }
.flow__k { font-size: 0.75rem; color: rgba(255, 255, 255, 0.55); }
.flow__step--hl b { color: var(--accent); }
.flow__arrow { display: none; }

/* Воронка */
.funnel2 { display: grid; gap: 10px; margin-top: var(--space-32); }
.funnel2__row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: var(--space-12); font-size: 0.875rem; }
.funnel2__row i { display: block; height: 14px; border-radius: 7px; background: rgba(14, 99, 119, 0.12); position: relative; overflow: hidden; }
.funnel2__row i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: var(--primary); transform-origin: left; }
.funnel2__row--hl i::after { background: var(--accent); }
.funnel2__row b { white-space: nowrap; }

/* Было / стало */
.ba { display: grid; grid-template-columns: 90px 90px minmax(0, 1fr); align-items: end; gap: var(--space-16); margin-top: var(--space-32); }
.ba__col { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.8125rem; }
.ba__col b { font-size: 1.125rem; }
.ba__bar { display: block; width: 56px; height: 140px; border-radius: 12px; background: rgba(122, 74, 0, 0.1); position: relative; overflow: hidden; }
.ba__bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); background: var(--color2-light); border-radius: inherit; transform-origin: bottom; }
.ba__col--hl .ba__bar::after { background: var(--primary); }
.ba__note { align-self: center; font-size: 0.9375rem; line-height: 1.5; color: var(--text-secondary); }

@media (prefers-reduced-motion: no-preference) {
  .js .funnel2__row i::after { transform: scaleX(0); transition: transform 1200ms var(--ease-out); }
  .js .story.is-in .funnel2__row i::after { transform: none; }
  .js .story.is-in .funnel2__row:nth-child(2) i::after { transition-delay: 200ms; }
  .js .story.is-in .funnel2__row:nth-child(3) i::after { transition-delay: 400ms; }
  .js .ba__bar::after { transform: scaleY(0); transition: transform 1200ms var(--ease-out) 300ms; }
  .js .story.is-in .ba__bar::after { transform: none; }
  .js .flow__step { opacity: 0; transform: translateX(-12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
  .js .story.is-in .flow__step { opacity: 1; transform: none; }
  .js .story.is-in .flow__step:nth-of-type(2) { transition-delay: 250ms; }
  .js .story.is-in .flow__step:nth-of-type(3) { transition-delay: 500ms; }
}

/* ==========================================================================
   3. Цена заявки по нишам
   ========================================================================== */
.cx-cpa__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-48); align-items: start; }
.cx-cpa__intro { position: sticky; top: calc(var(--header-top) + var(--header-h) + 32px); }
.cx-cpa__text { margin-top: var(--space-16); color: var(--text-secondary); }
.cx-cpa__median { display: flex; align-items: center; gap: var(--space-16); margin: var(--space-32) 0 var(--space-16); padding: 18px 22px; border-radius: var(--radius-l); background: var(--bg-subtle); }
.cx-cpa__median b { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; color: var(--primary); white-space: nowrap; }
.cx-cpa__median span { font-size: 0.875rem; color: var(--text-secondary); }
.cx-cpa__legend { display: flex; gap: var(--space-16); margin-bottom: var(--space-32); font-size: 0.8125rem; color: var(--text-secondary); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--primary); }
.lg--target::before { background: var(--accent); }
.lg--median::before { width: 0; height: 12px; border-radius: 0; background: none; border-left: 2px dashed var(--primary); }

.cpa { display: grid; gap: 2px; padding: 24px; border-radius: var(--radius-xl); background: var(--bg-subtle); }
.cpa__row a { display: grid; grid-template-columns: 190px minmax(0, 1fr) 92px; align-items: center; gap: 12px; padding: 7px 10px; margin: 0 -10px; border-radius: var(--radius-m); transition: background-color var(--dur) var(--ease); }
.cpa__row a:hover { background: var(--bg-raised); }
.cpa__name { font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpa__track { position: relative; display: block; height: 12px; }
/* пунктир медианы через все строки */
.cpa__track::after { content: ""; position: absolute; top: -10px; bottom: -10px; left: var(--med); border-left: 2px dashed rgba(14, 99, 119, 0.35); }
.cpa__bar { display: block; width: var(--w); height: 100%; border-radius: 6px; background: var(--primary); transform-origin: left; transition: background-color var(--dur) var(--ease); }
.cpa__row--target .cpa__bar { background: var(--accent); }
.cpa__row a:hover .cpa__bar { background: var(--color1-dark); }
.cpa__val { font-size: 0.875rem; font-weight: 700; text-align: right; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .js .cpa .cpa__bar { transform: scaleX(0); transition: transform 900ms var(--ease-out), background-color var(--dur) var(--ease); transition-delay: calc(var(--i) * 45ms); }
  .js .cpa.is-in .cpa__bar { transform: none; }
}

/* ==========================================================================
   4. Каталог кейсов по рекламе (в стиле карточек главной)
   ========================================================================== */
.cx-filters .filter span { margin-left: 4px; font-size: 0.75rem; opacity: 0.55; }
.agrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-16); }
.acard {
  position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-xl);
  background: var(--bg-subtle); overflow: hidden;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform 200ms var(--ease);
}
.acard[hidden], .scard[hidden] { display: none; }
.acard:hover { background: var(--bg-raised); box-shadow: var(--shadow-s); transform: translateY(-3px); }
.acard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-12); }
.acard__niche { padding: 5px 11px; border-radius: var(--radius-full); box-shadow: inset 0 0 0 1px var(--border-control); font-size: 0.8125rem; font-weight: 600; }
.acard__thumb { flex: none; width: 64px; height: 64px; border-radius: 16px; overflow: hidden; transform: rotate(4deg); box-shadow: 0 8px 18px rgba(18, 22, 20, 0.14); transition: transform 400ms var(--ease-out); }
.acard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.acard:hover .acard__thumb { transform: rotate(0) scale(1.08); }
.acard__client { margin-top: 4px; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.acard__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.acard__link:focus-visible { outline: none; }
.acard:has(.acard__link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.acard__big { margin-top: var(--space-24); font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 1.6rem + 2vw, 3.5rem); line-height: 0.95; letter-spacing: -0.02em; color: var(--primary); white-space: nowrap; }
.acard__label { margin-top: 6px; color: var(--text-secondary); }
.acard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-12); margin-top: auto; padding-top: var(--space-24); }
.acard__second { font-size: 0.875rem; color: var(--text-secondary); }
.acard__second b { display: block; font-size: 1.25rem; color: var(--text); }
.acard__go { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--border); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.acard__go .icon { width: 18px; height: 18px; }
.acard:hover .acard__go { background: var(--primary); color: #fff; box-shadow: none; }
.acard__ch { margin-top: var(--space-16); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

/* Ритм: каждая 5-я карточка тёмная */
.acard:nth-child(5n+1) { background: var(--bg-inverse); color: #fff; }
.acard:nth-child(5n+1) .acard__big { color: var(--accent); }
.acard:nth-child(5n+1) .acard__label, .acard:nth-child(5n+1) .acard__second, .acard:nth-child(5n+1) .acard__ch { color: rgba(255, 255, 255, 0.6); }
.acard:nth-child(5n+1) .acard__second b { color: #fff; }
.acard:nth-child(5n+1) .acard__niche { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.acard:nth-child(5n+1) .acard__go { background: rgba(255, 255, 255, 0.1); box-shadow: none; }
.acard:nth-child(5n+1):hover .acard__go { background: var(--accent); color: var(--on-accent); }

.cx-more { display: flex; justify-content: center; margin-top: var(--space-32); }
.cx-more[hidden] { display: none; }
.cx-more [data-n] { opacity: 0.55; }

/* ==========================================================================
   5. Сайты — витрина в окнах браузера
   ========================================================================== */
.sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-32) var(--space-24); }
.scard { position: relative; }
.scard__browser {
  display: block; border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px var(--border), 0 18px 40px rgba(18, 22, 20, 0.1);
  transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}
.scard:hover .scard__browser { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--border), 0 28px 56px rgba(18, 22, 20, 0.16); }
.scard__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--bg-subtle); border-bottom: 1px solid var(--border); }
.scard__bar i { width: 9px; height: 9px; border-radius: 50%; }
.scard__bar i:nth-child(1) { background: #ff6159; }
.scard__bar i:nth-child(2) { background: #ffbd2e; }
.scard__bar i:nth-child(3) { background: #28c941; }
.scard__url { flex: 1; min-width: 0; margin-left: 8px; padding: 3px 10px; border-radius: 6px; background: #fff; font-size: 0.6875rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard__shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.scard__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1600ms var(--ease-out); }
.scard:hover .scard__shot img { transform: scale(1.06); }
.scard__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 4px var(--space-12); margin-top: var(--space-16); }
.scard__pl { grid-column: 2; grid-row: 1 / span 2; padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; }
.scard__pl--tilda { background: #1f1f1f; color: #fff; }
.scard__pl--wordpress { background: #21759b; color: #fff; }
.scard__pl--modx { background: #ffe7b3; color: #8a4b00; }
.scard__title { grid-column: 1; grid-row: 1; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.scard__link::after { content: ""; position: absolute; inset: 0; }
.scard:hover .scard__title { color: var(--primary); }
.scard__niche { grid-column: 1; font-size: 0.875rem; color: var(--text-muted); }

/* ==========================================================================
   6. Видео
   ========================================================================== */
.cx-video__box { padding: 56px; border-radius: var(--radius-block); background: var(--bg-inverse); color: #fff; }
.cx-video__head .h2 { color: #fff; }
.cx-video__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--space-24); align-items: start; }
.player__screen, .player__frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-xl); overflow: hidden; background: #000; }
.player__screen { position: relative; padding: 0; cursor: pointer; }
.player__screen[hidden] { display: none; }
.player__screen img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out), opacity var(--dur) var(--ease); }
.player__screen:hover img { transform: scale(1.03); opacity: 0.85; }
.player__play {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 88px; height: 88px; margin: -44px 0 0 -44px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 12px rgba(232, 163, 61, 0.25);
  transition: transform 200ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.player__play svg { margin-left: 4px; }
.player__screen:hover .player__play { transform: scale(1.08); box-shadow: 0 0 0 20px rgba(232, 163, 61, 0.18); }
.player__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); margin-top: var(--space-16); }
.player__title { font-size: 1.25rem; font-weight: 700; }
.player__alt { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 8px 14px; border-radius: var(--radius-full); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); font-size: 0.875rem; font-weight: 600; }
.player__alt:hover { background: rgba(255, 255, 255, 0.08); }

.vlist { display: grid; gap: 8px; }
.vlist__item { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: var(--space-16); width: 100%; padding: 8px; border-radius: var(--radius-l); text-align: left; color: inherit; transition: background-color var(--dur) var(--ease); }
.vlist__item:hover { background: rgba(255, 255, 255, 0.06); }
.vlist__item[aria-pressed="true"] { background: rgba(255, 255, 255, 0.1); box-shadow: inset 3px 0 0 var(--accent); }
.vlist__thumb { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; }
.vlist__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vlist__text { display: flex; flex-direction: column; gap: 4px; }
.vlist__n { font-family: var(--font-display); font-size: 0.75rem; color: var(--accent); }
.vlist__title { font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }

/* ==========================================================================
   7. Финальный призыв с формой
   ========================================================================== */
.cx-final__box {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-48); align-items: center;
  padding: 64px; border-radius: var(--radius-block); overflow: hidden;
  background: radial-gradient(90% 120% at 0% 100%, #127189 0%, rgba(18, 113, 137, 0) 60%), var(--primary-press);
  color: #fff;
}
.cx-final__field { position: absolute; left: -260px; bottom: -340px; width: 800px; height: 800px; color: #fff; opacity: 0.07; pointer-events: none; }
.cx-final__text { position: relative; }
.cx-final__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 1.1rem + 2.2vw, 3rem); line-height: 1.05; }
.cx-steps { display: grid; gap: var(--space-16); margin-top: var(--space-32); }
.cx-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: var(--space-16); }
.cx-steps b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); font-family: var(--font-display); font-size: 0.875rem; color: var(--accent); }
.cx-steps span { font-size: 1.0625rem; line-height: 1.45; color: rgba(255, 255, 255, 0.85); }
.cx-final__me { display: flex; align-items: center; gap: var(--space-12); margin-top: var(--space-32); }
.cx-final__me img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 3px var(--accent); object-fit: cover; }
.cx-final__me b { display: block; }
.cx-final__me span { font-size: 0.875rem; color: rgba(255, 255, 255, 0.65); }

.cx-final__form { position: relative; padding: 32px; border-radius: var(--radius-xl); background: #fff; color: var(--text); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25); }
.cx-final__form-title { font-size: 1.375rem; font-weight: 700; }
.cx-final__form-sub { margin: 4px 0 var(--space-24); color: var(--text-muted); font-size: 0.9375rem; }
.cx-final__form .input { background: var(--bg-subtle); }
.cx-final__form .input:focus { background: #fff; border-color: var(--primary); }
.cx-final__alt { margin-top: var(--space-16); text-align: center; font-size: 0.875rem; color: var(--text-muted); }
.cx-final__alt a { color: var(--text-link); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1199px) {
  .cx-hero__box { padding: 48px 40px 32px; }
  .story { padding: 40px; gap: var(--space-32); }
  .cx-video__box, .cx-final__box { padding: 48px 40px; }
}
@media (max-width: 1023px) {
  .cx-hero__box { grid-template-columns: minmax(0, 1fr); }
  .cx-hero__viz { min-height: 300px; }
  .cx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-kpis li:nth-child(3) { padding-left: 0; border-left: 0; }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story--brand .story__media { order: 2; }
  .story__media { max-width: 560px; }
  .cx-cpa__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-32); }
  .cx-cpa__intro { position: static; }
  .agrid, .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-video__grid { grid-template-columns: minmax(0, 1fr); }
  .vlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-final__box { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .flow { flex-direction: column; gap: 14px; }
  .flow__step { padding: 0; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; }
  .flow__step + .flow__arrow + .flow__step { border-left: 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .flow__step b { text-align: right; }
  .cx-hero__box { padding: 28px 20px 24px; border-radius: var(--radius-xl); }
  .cx-hero__lead { font-size: 1rem; }
  .cx-hero__actions .btn { width: 100%; }
  .cx-hero__viz { min-height: 240px; }
  .cx-float { padding: 8px 12px; }
  .cx-float b { font-size: 1.0625rem; }
  .cx-float span { font-size: 0.6875rem; }
  .cx-float--2 { left: 0; }
  .cx-kpis li, .cx-kpis li + li { padding: var(--space-16) var(--space-12) 0 0; border-left: 0; }
  .story { padding: 28px 20px; border-radius: var(--radius-xl); }
  .story__btn { width: 100%; }
  .story__badge { left: auto; right: -6px; bottom: -14px; padding: 12px 14px; }
  .story__badge b { font-size: 1.375rem; }
  .flow { flex-direction: column; }
  .flow__arrow { transform: rotate(90deg); height: 16px; }
  .funnel2__row { grid-template-columns: 96px minmax(0, 1fr); }
  .funnel2__row b { grid-column: 2; font-size: 0.8125rem; }
  .ba { grid-template-columns: 80px 80px; }
  .ba__note { grid-column: 1 / -1; }
  .cpa { padding: 16px; }
  .cpa__row a { grid-template-columns: minmax(0, 1fr) 76px; grid-template-areas: "n v" "t t"; row-gap: 6px; }
  .cpa__name { grid-area: n; }
  .cpa__val { grid-area: v; }
  .cpa__track { grid-area: t; height: 8px; }
  .agrid, .sgrid { grid-template-columns: minmax(0, 1fr); }
  .acard { padding: 24px; }
  .cx-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); max-width: none; }
  .cx-filters::-webkit-scrollbar { display: none; }
  .cx-filters .filter { flex: none; }
  .cx-video__box, .cx-final__box { padding: 28px 20px; border-radius: var(--radius-xl); }
  .player__meta { flex-direction: column; align-items: flex-start; }
  .player__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .vlist { grid-template-columns: minmax(0, 1fr); }
  .vlist__item { grid-template-columns: 104px minmax(0, 1fr); }
  .cx-final__form { padding: 24px 20px; }
}
.scard__browser--cover { background: #0b1214; }

/* Карточка кейса с обложкой */
.acard__cover { display: block; margin: -28px -28px 22px; aspect-ratio: 16 / 10; overflow: hidden; background: #06090c; }
.acard__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1400ms var(--ease-out); }
.acard:hover .acard__cover img { transform: scale(1.05); }
.acard--cover .acard__thumb { display: none; }
.acard--cover .acard__big { margin-top: var(--space-16); }
@media (max-width: 767px) { .acard__cover { margin: -24px -24px 18px; } }
.scard__res { margin: 8px 0 0; font-size: 0.875rem; color: var(--text-muted); }
.scard__res b { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; color: var(--primary); margin-right: 4px; }
@media (max-width: 400px) { .cx-hero__title { font-size: clamp(1.875rem, 9.4vw, 2.25rem); } }
@media (max-width: 767px) { .cx-final__box { padding-left: 16px; padding-right: 16px; } }

/* case.css */
/* ==========================================================================
   Шаблон страницы кейса (/cases/<slug>/)
   Общие элементы (карточки .acard, финальная форма .cx-final, .cx-eyebrow) — в cases-page.css
   ========================================================================== */

/* Полоса прогресса чтения */
.cs-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 3px; pointer-events: none; }
.cs-progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* ==========================================================================
   Первый экран: тёмный блок, справа арт/обложка, растворяется в фон
   ========================================================================== */
.cs-hero { padding-top: var(--space-16); }
.cs-hero__box {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center;
  min-height: 600px; padding: 48px 56px 40px; border-radius: var(--radius-block); overflow: hidden;
  background: #01080b; color: #fff; isolation: isolate;
}
.cs-hero__bg { position: absolute; inset: 0 0 0 28%; z-index: -1; overflow: hidden; }
.cs-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
/* плавный переход картинки в фон слева и снизу */
.cs-hero__bg::after { content: ""; position: absolute; inset: -1px; background: linear-gradient(90deg, #01080b 0%, rgba(1, 8, 11, 0.6) 18%, rgba(1, 8, 11, 0) 42%), linear-gradient(0deg, #01080b 0%, rgba(1, 8, 11, 0) 34%); }
/* если вместо арта — обычная обложка: затемняем сильнее */
.cs-hero__box--cover .cs-hero__bg::after { background: linear-gradient(90deg, #01080b 0%, rgba(1, 8, 11, 0.85) 30%, rgba(1, 8, 11, 0.35) 70%), linear-gradient(0deg, #01080b 0%, rgba(1, 8, 11, 0) 40%); }

.cs-hero__text { position: relative; grid-column: 1; max-width: 560px; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-32); }
.cs-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); font-size: 0.8125rem; font-weight: 600; }
.cs-tag--nda .icon { width: 14px; height: 14px; color: var(--accent); }
.cs-hero__title { margin-top: var(--space-20, 20px); font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.5rem); line-height: 1.04; letter-spacing: -0.02em; }
.cs-hero__lead { margin-top: var(--space-20, 20px); font-size: 1.125rem; line-height: 1.55; color: rgba(255, 255, 255, 0.72); }
.cs-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-12); margin-top: var(--space-32); }

.cs-hero__badge {
  position: absolute; right: 56px; top: 48px; display: flex; flex-direction: column; gap: 2px; padding: 16px 20px;
  border-radius: var(--radius-l); background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.cs-hero__badge b { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; color: var(--accent); }
.cs-hero__badge span { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.7); }

.cs-kpis { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--space-48); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.cs-kpis li { display: flex; flex-direction: column; gap: 4px; padding: var(--space-20, 20px) var(--space-24) 0 0; }
.cs-kpis li + li { padding-left: var(--space-24); border-left: 1px solid rgba(255, 255, 255, 0.14); }
.cs-kpis b { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.375rem, 1rem + 1vw, 2rem); line-height: 1.1; }
.cs-kpis li.is-hl b { color: var(--accent); }
.cs-kpis span { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); }

/* паспорт проекта — в блоке «Контекст» */
.cs-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-16); margin-bottom: var(--space-24); padding: 20px 24px; border-radius: var(--radius-xl); box-shadow: inset 0 0 0 1px var(--border); }
.cs-facts dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.cs-facts dd { margin: 4px 0 0; font-size: 0.9375rem; line-height: 1.4; }

@media (prefers-reduced-motion: no-preference) {
  .js .cs-hero__bg img { transform: scale(1.06); transition: transform 2400ms var(--ease-out); }
  .js .cs-hero__box.is-in .cs-hero__bg img { transform: none; }
  .js .cs-hero__badge { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out) 700ms, transform 700ms var(--ease-out) 700ms; }
  .js .cs-hero__box.is-in .cs-hero__badge { opacity: 1; transform: none; }
}

/* ==========================================================================
   Контекст и задача
   ========================================================================== */
.cs-ctx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-16); }
.cs-ctx { display: flex; flex-direction: column; gap: var(--space-12); padding: 28px; border-radius: var(--radius-xl); background: var(--bg-subtle); }
.cs-ctx__ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--space-8); border-radius: var(--radius-m); background: var(--bg-raised); color: var(--primary); box-shadow: inset 0 0 0 1px var(--border); }
.cs-ctx h3 { font-size: 1.1875rem; font-weight: 700; }
.cs-ctx p { color: var(--text-secondary); line-height: 1.55; }

.cs-target { display: flex; flex-direction: column; gap: var(--space-16); padding: 28px; border-radius: var(--radius-xl); background: var(--bg-inverse); color: #fff; }
.cs-target__k { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.cs-target__bars { display: grid; gap: 14px; margin-top: auto; }
.cs-target__row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.65); }
.cs-target__row b { font-family: var(--font-display); font-size: 1.125rem; color: #fff; white-space: nowrap; }
.cs-target__track { position: relative; display: block; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); }
.cs-target__bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--fact); border-radius: inherit; background: var(--accent); transform-origin: left; }
.cs-target__bar--plan { width: var(--plan); background: rgba(255, 255, 255, 0.3); }
.cs-target__ok { display: flex; align-items: center; gap: 8px; padding-top: var(--space-12); border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.875rem; font-weight: 600; }
.cs-target__ok .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--success-light); color: var(--success-dark); }

@media (prefers-reduced-motion: no-preference) {
  .js .cs-ctx-grid > * { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
  .js .cs-ctx-grid.is-in > * { opacity: 1; transform: none; }
  .js .cs-ctx-grid.is-in > :nth-child(2) { transition-delay: 100ms; }
  .js .cs-ctx-grid.is-in > :nth-child(3) { transition-delay: 200ms; }
  .js .cs-ctx-grid.is-in > :nth-child(4) { transition-delay: 300ms; }
  .js .cs-target__bar { transform: scaleX(0); transition: transform 1200ms var(--ease-out) 500ms; }
  .js .cs-ctx-grid.is-in .cs-target__bar { transform: none; }
}

/* ==========================================================================
   Что сделали — шаги с линией
   ========================================================================== */
.cs-steps { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--space-16); }
.cs-steps::before { content: ""; position: absolute; left: 28px; right: calc((100% - (var(--n) - 1) * 16px) / var(--n) - 28px); top: 27px; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform-origin: left; }
.cs-step { position: relative; display: flex; flex-direction: column; gap: var(--space-12); }
.cs-step__n {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--primary);
  font-family: var(--font-display); font-weight: 600; color: var(--primary); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cs-step:last-child .cs-step__n { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.cs-step:hover .cs-step__n { background: var(--primary); color: #fff; }
.cs-step__title { margin-top: var(--space-8); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.cs-step__text { font-size: 0.9375rem; line-height: 1.55; color: var(--text-secondary); }
@media (prefers-reduced-motion: no-preference) {
  .js .cs-steps::before { transform: scaleX(0); transition: transform 1600ms var(--ease-out); }
  .js .cs-steps.is-in::before { transform: none; }
  .js .cs-step { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i) * 180ms); }
  .js .cs-steps.is-in .cs-step { opacity: 1; transform: none; }
}

/* ==========================================================================
   Результат
   ========================================================================== */
.cs-result__box { padding: 56px; border-radius: var(--radius-block); background: radial-gradient(100% 80% at 100% 0%, #12505f 0%, rgba(18, 80, 95, 0) 60%), var(--bg-inverse); color: #fff; }
.cs-result__box .h2 { color: #fff; }
.cs-result__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-24); }
.cs-res__k { margin-bottom: var(--space-16); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.cs-res__note { margin-top: var(--space-12); font-size: 0.75rem; color: rgba(255, 255, 255, 0.45); }
.cs-funnel-wrap, .cs-split { padding: 28px; border-radius: var(--radius-xl); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }

.cs-funnel { display: grid; gap: 10px; }
.cs-funnel__row { display: grid; grid-template-columns: minmax(0, 1fr) 64px; align-items: center; gap: var(--space-12); }
.cs-funnel__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); width: var(--w); min-width: 210px; height: 56px; padding: 0 18px;
  border-radius: 14px; background: linear-gradient(90deg, var(--color1-main), #12819a); transform-origin: left;
}
.cs-funnel__label { font-size: 0.875rem; color: rgba(255, 255, 255, 0.75); }
.cs-funnel__bar b { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; white-space: nowrap; }
.cs-funnel__row.is-est .cs-funnel__bar { background: repeating-linear-gradient(135deg, rgba(14, 99, 119, 0.85) 0 10px, rgba(14, 99, 119, 0.65) 10px 20px); }
.cs-funnel__row.cs-funnel__row--money .cs-funnel__bar { background: var(--accent); color: var(--on-accent); }
.cs-funnel__row--money .cs-funnel__label { color: inherit; opacity: 0.75; }
.cs-funnel__rate { font-size: 0.8125rem; font-weight: 700; color: var(--accent); text-align: right; }
.cs-funnel__rate:not(:empty)::before { content: "↘ "; opacity: 0.7; }

.cs-split { display: flex; flex-direction: column; gap: var(--space-20, 20px); }
.cs-split__row { display: grid; gap: 8px; }
.cs-split__row + .cs-split__row { padding-top: var(--space-20, 20px); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.cs-split__name { font-weight: 700; }
.cs-split__track { display: block; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); }
.cs-split__bar { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left; }
.cs-split__row:nth-child(3) .cs-split__bar { background: var(--color1-light); }
.cs-split__vals { display: grid; grid-template-columns: repeat(5, minmax(0, auto)); justify-content: space-between; gap: 8px; margin-top: 4px; }
.cs-split__vals dt { font-size: 0.6875rem; color: rgba(255, 255, 255, 0.5); }
.cs-split__vals dd { font-size: 0.9375rem; font-weight: 600; white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .js .cs-funnel__bar { transform: scaleX(0.2); opacity: 0; transition: transform 900ms var(--ease-out), opacity 400ms ease; transition-delay: calc(var(--i) * 200ms); }
  .js .cs-funnel-wrap.is-in .cs-funnel__bar { transform: none; opacity: 1; }
  .js .cs-split__bar { transform: scaleX(0); transition: transform 1000ms var(--ease-out) 300ms; }
  .js .cs-split.is-in .cs-split__bar { transform: none; }
}

/* Доказательства */
.cs-proof { margin-top: var(--space-24); padding: 28px; border-radius: var(--radius-xl); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.cs-proof__head { display: flex; align-items: center; gap: var(--space-16); margin-bottom: var(--space-20, 20px); color: rgba(255, 255, 255, 0.7); font-size: 0.9375rem; }
.cs-proof__badge { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 12px; border-radius: var(--radius-full); background: var(--success-light); color: var(--success-dark); font-size: 0.8125rem; font-weight: 700; }
.cs-proof__badge .icon { width: 16px; height: 16px; }
.cs-proof__item + .cs-proof__item { margin-top: var(--space-20, 20px); }
.cs-proof__browser { position: relative; display: block; width: 100%; padding: 0; border-radius: 14px; overflow: hidden; background: #fff; cursor: zoom-in; text-align: left; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35); transition: transform 400ms var(--ease-out); }
.cs-proof__browser:hover { transform: translateY(-4px); }
.cs-proof__browser img { display: block; width: 100%; height: auto; }
.cs-proof__zoom { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-full); background: var(--bg-inverse); color: #fff; font-size: 0.8125rem; font-weight: 600; opacity: 0; transition: opacity var(--dur) var(--ease); }
.cs-proof__zoom .icon { width: 16px; height: 16px; }
.cs-proof__browser:hover .cs-proof__zoom, .cs-proof__browser:focus-visible .cs-proof__zoom { opacity: 1; }
.cs-proof figcaption { margin-top: var(--space-12); font-size: 0.8125rem; color: rgba(255, 255, 255, 0.5); }

.cs-zoom { width: min(1280px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius-xl); background: var(--bg-raised); box-shadow: var(--shadow-l); overflow: hidden; }
.cs-zoom[open] { display: flex; flex-direction: column; }
.cs-zoom::backdrop { background: rgba(18, 22, 20, 0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cs-zoom__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); padding: 10px 10px 10px 20px; border-bottom: 1px solid var(--border); font-weight: 600; }
.cs-zoom__body { overflow: auto; background: var(--bg-subtle); }
.cs-zoom__body img { display: block; width: 100%; min-width: 760px; height: auto; }

/* ==========================================================================
   Экономика + калькулятор
   ========================================================================== */
.cs-econ__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-24); align-items: start; }
.cs-formulas { display: grid; gap: var(--space-12); }
.cs-formula { padding: 22px 26px; border-radius: var(--radius-xl); background: var(--bg-subtle); }
.cs-formula__k { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.cs-formula p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 8px; font-size: 1.125rem; }
.cs-formula span { font-weight: 600; }
.cs-formula i { font-style: normal; color: var(--text-muted); }
.cs-formula b { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; color: var(--primary); }
.cs-formula--hl { background: var(--primary-soft); }
.cs-econ__note { display: flex; gap: 10px; padding: 16px 20px; border-radius: var(--radius-l); box-shadow: inset 0 0 0 1px var(--border); font-size: 0.875rem; line-height: 1.5; color: var(--text-secondary); }
.cs-econ__note::before { content: "!"; display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--on-accent-soft); font-weight: 700; font-size: 0.8125rem; }

.calc { position: sticky; top: calc(var(--header-top) + var(--header-h) + 24px); display: grid; gap: var(--space-20, 20px); padding: 32px; border-radius: var(--radius-xl); background: var(--bg-inverse); color: #fff; }
.calc__title { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; }
.calc__sub { margin-top: -8px; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.65); }
.calc__field { display: grid; gap: 10px; }
.calc__field > span { display: flex; justify-content: space-between; gap: var(--space-12); font-size: 0.875rem; color: rgba(255, 255, 255, 0.75); }
.calc__field output { font-weight: 700; color: #fff; }
.calc input[type="range"] { width: 100%; height: 28px; background: transparent; accent-color: var(--accent); cursor: pointer; }
.calc__res { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc__res > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--radius-l); background: rgba(255, 255, 255, 0.06); }
.calc__res span { font-size: 0.75rem; color: rgba(255, 255, 255, 0.55); }
.calc__res b { font-size: 1.25rem; }
.calc__big { grid-column: 1 / -1; background: var(--accent) !important; color: var(--on-accent); }
.calc__big span { color: inherit; opacity: 0.75; }
.calc__big b { font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1.1; }

/* ==========================================================================
   Выводы
   ========================================================================== */
.cs-takes__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-48); align-items: center; }
.cs-take { display: grid; gap: var(--space-16); margin-top: var(--space-32); }
.cs-take li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-16); align-items: start; }
.cs-take__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--on-accent-soft); font-family: var(--font-display); font-weight: 600; }
.cs-take p { padding-top: 8px; font-size: 1.0625rem; line-height: 1.5; }
.cs-quote { position: relative; padding: 48px 40px 36px; border-radius: var(--radius-block); background: var(--primary-soft); color: var(--color1-darker); }
.cs-quote__mark { width: 48px; height: 36px; color: var(--primary); opacity: 0.35; }
.cs-quote blockquote { margin: var(--space-16) 0 0; font-size: 1.25rem; line-height: 1.5; font-weight: 600; }
.cs-quote figcaption { display: flex; align-items: center; gap: var(--space-12); margin-top: var(--space-24); }
.cs-quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.cs-quote figcaption span { display: flex; flex-direction: column; font-size: 0.875rem; color: var(--text-secondary); }
.cs-quote figcaption b { color: var(--text); }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1199px) {
  .cs-hero__box { padding: 40px; min-height: 540px; }
  .cs-hero__badge { right: 40px; top: 40px; }
  .cs-ctx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs-result__box { padding: 48px 40px; }
  .cs-result__grid { grid-template-columns: minmax(0, 1fr); }
  .cs-steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-24); }
  .cs-steps::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: linear-gradient(180deg, var(--primary), var(--accent)); transform-origin: top; }
  .cs-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px var(--space-20, 20px); }
  .cs-step__n { grid-row: 1 / span 2; }
  .cs-step__title { margin-top: 6px; }
}
@media (max-width: 1023px) {
  .cs-hero__box { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 300px; }
  .cs-hero__bg { inset: 0 0 auto 0; height: 420px; }
  .cs-hero__bg::after { background: linear-gradient(0deg, #01080b 0%, rgba(1, 8, 11, 0) 55%); }
  .cs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-kpis li:nth-child(3) { padding-left: 0; border-left: 0; }
  .cs-econ__grid, .cs-takes__grid { grid-template-columns: minmax(0, 1fr); }
  .calc { position: static; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 1199px) {
  .js .cs-steps::before { transform: scaleY(0); }
  .js .cs-steps.is-in::before { transform: none; }
}
@media (max-width: 767px) {
  .cs-hero__box { padding: 220px 20px 24px; border-radius: var(--radius-xl); }
  .cs-hero__bg { height: 280px; }
  .cs-hero__bg img { object-position: 72% center; }
  .cs-hero__badge { right: 16px; top: 16px; padding: 10px 14px; }
  .cs-hero__badge b { font-size: 1.125rem; }
  .cs-tags { margin-top: var(--space-20, 20px); }
  .cs-kpis { margin-top: var(--space-32); }
  .cs-kpis li, .cs-kpis li + li { padding: var(--space-16) var(--space-12) 0 0; border-left: 0; }
  .cs-hero__lead { font-size: 1rem; }
  .cs-hero__actions .btn { width: 100%; }
  .cs-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cs-ctx-grid { grid-template-columns: minmax(0, 1fr); }
  .cs-ctx, .cs-target { padding: 24px; }
  .cs-result__box { padding: 28px 16px; border-radius: var(--radius-xl); }
  .cs-funnel-wrap, .cs-split, .cs-proof { padding: 18px 14px; }
  .cs-funnel__row { grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; }
  .cs-funnel__bar { min-width: 0; width: max(var(--w), 72%); height: 52px; padding: 0 14px; }
  .cs-funnel__bar b { font-size: 1rem; }
  .cs-split__vals { grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 8px 20px; }
  .cs-proof__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cs-zoom__body img { min-width: 900px; }
  .cs-formula { padding: 18px 20px; }
  .cs-formula p { font-size: 1rem; }
  .cs-formula b { font-size: 1.375rem; }
  .calc { padding: 24px 20px; }
  .cs-quote { padding: 32px 24px 28px; border-radius: var(--radius-xl); }
  .cs-quote blockquote { font-size: 1.0625rem; }
}

/* ==========================================================================
   Кейсы по сайтам и подробный разбор (перенесённые со старого сайта)
   ========================================================================== */
.cs-hero__box--site .cs-hero__bg { inset: 0 0 0 40%; }
.cs-hero__box--site .cs-hero__bg img { object-fit: contain; object-position: center; padding: 48px 24px 140px; }
.cs-hero__box--site .cs-hero__bg::after { background: linear-gradient(90deg, #01080b 0%, rgba(1, 8, 11, 0) 22%); }

.cs-logic__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--space-48); align-items: start; }
.cs-feats { display: grid; gap: 12px; margin-top: var(--space-24); }
.cs-feats li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 18px 20px; border-radius: var(--radius-l); background: var(--bg-subtle); line-height: 1.55; }
.cs-feats .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--primary); }
.cs-pal { padding: 28px; border-radius: var(--radius-xl); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--border); }
.cs-pal__list { display: grid; gap: 10px; margin-top: 14px; }
.cs-pal__sw { display: grid; grid-template-columns: 52px auto minmax(0, 1fr); gap: 14px; align-items: center; }
.cs-pal__chip { width: 52px; height: 52px; border-radius: 14px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.cs-pal__sw b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9375rem; }
.cs-pal__sw span:last-child { font-size: 0.9375rem; color: var(--text-secondary); }
.cs-pal__cms { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-secondary); }
.cs-pal__cms img { width: 28px; height: 28px; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
  .js .cs-pal__sw { opacity: 0; transform: translateX(-10px); transition: opacity 400ms ease, transform 500ms var(--ease-out); }
  .js .cs-pal.is-in .cs-pal__sw { opacity: 1; transform: none; }
  .js .cs-pal.is-in .cs-pal__sw:nth-child(2) { transition-delay: 100ms; }
  .js .cs-pal.is-in .cs-pal__sw:nth-child(3) { transition-delay: 200ms; }
  .js .cs-pal.is-in .cs-pal__sw:nth-child(4) { transition-delay: 300ms; }
  .js .cs-pal.is-in .cs-pal__sw:nth-child(5) { transition-delay: 400ms; }
}

.cs-scr__grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: var(--space-24); align-items: start; }
.cs-scr__grid--one { grid-template-columns: minmax(0, 1fr); }
.cs-scr { margin: 0; overflow: hidden; border-radius: var(--radius-xl); background: var(--bg-raised); box-shadow: 0 24px 60px rgba(11, 18, 20, 0.12), inset 0 0 0 1px var(--border); }
.cs-scr img { display: block; width: 100%; height: auto; }
.cs-scr--d { max-height: 760px; overflow-y: auto; scrollbar-width: thin; }
.cs-scr--d .scard__bar { position: sticky; top: 0; z-index: 1; }
.cs-scr--m { border-radius: 32px; padding: 10px; background: #0b1214; max-height: 760px; overflow-y: auto; scrollbar-width: none; }
.cs-scr--m img { border-radius: 24px; }

.cs-story__grid { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); gap: var(--space-48); align-items: start; }
.cs-story__head { position: sticky; top: calc(var(--header-h) + var(--header-top) + 24px); }
.cs-story__head p { margin-top: 12px; }
.cs-story__body { max-width: 760px; }
.cs-story__body h2:first-child { margin-top: 0; }

@media (max-width: 1023px) {
  .cs-logic__grid, .cs-story__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-24); }
  .cs-story__head { position: static; }
  .cs-scr__grid { grid-template-columns: minmax(0, 1fr) 200px; }
  .cs-hero__box--site .cs-hero__bg { inset: 0 0 auto 0; }
  .cs-hero__box--site .cs-hero__bg img { padding: 24px 24px 60px; }
}
@media (max-width: 767px) {
  .cs-scr__grid { grid-template-columns: minmax(0, 1fr); }
  .cs-scr--m { max-width: 280px; margin-inline: auto; }
  .cs-scr--d { max-height: 520px; }
  .cs-pal { padding: 20px; }
  .cs-feats li { padding: 14px 16px; }
  .cs-hero__box--site .cs-hero__bg img { padding: 16px 12px 40px; }
}

/* Галерея доказательств: сетка, высокие кадры обрезаются сверху (полностью — по клику) */
.cs-proof__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-20, 20px); align-items: start; }
.cs-proof__grid--one { grid-template-columns: minmax(0, 1fr); }
.cs-proof__grid .cs-proof__item + .cs-proof__item { margin-top: 0; }
.cs-proof__item.is-wide { grid-column: 1 / -1; }
.cs-proof__grid:not(.cs-proof__grid--one) .cs-proof__browser img { max-height: 560px; object-fit: cover; object-position: top center; }
.cs-proof__grid--one .cs-proof__browser img { max-height: 720px; object-fit: cover; object-position: top center; }
@media (max-width: 767px) {
  .cs-proof__grid { grid-template-columns: minmax(0, 1fr); }
  .cs-proof__grid .cs-proof__browser img { max-height: 440px; }
}
.cs-hero__box--site .cs-kpis b { font-size: clamp(1.25rem, 1rem + 1vw, 2rem); overflow-wrap: anywhere; }
@media (max-width: 767px) { .cs-hero__box--site .cs-kpis li:first-child { grid-column: 1 / -1; } }

/* ===== Кейс сайта: презентация (видео прокрутки) ===== */
.cs-show__box { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px); border-radius: var(--radius-2xl, 32px); color: #fff;
  background: radial-gradient(80% 90% at 75% 30%, color-mix(in srgb, var(--brand) 85%, #000) 0%, color-mix(in srgb, var(--brand) 30%, #05070d) 48%, #05070d 100%); isolation: isolate; }
.cs-show__glow { position: absolute; right: -10%; top: -20%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: var(--brand); filter: blur(120px); opacity: 0.4; z-index: -1; }
.cs-show__box::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask: radial-gradient(70% 70% at 60% 55%, #000, transparent 85%); mask: radial-gradient(70% 70% at 60% 55%, #000, transparent 85%); }
.cs-show .section__sub { color: rgba(255, 255, 255, 0.72); }
.cs-show__stage { position: relative; margin-top: var(--space-32); padding-right: clamp(0px, 14%, 170px); }
.cs-show__browser { margin: 0; border-radius: 16px; overflow: hidden; background: #0d1018; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 40px 90px rgba(0,0,0,.55); }
.cs-show__browser .scard__bar { background: #161a24; }
.cs-show__browser .scard__url { background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); }
.cs-show__video { display: block; width: 100%; height: auto; background: #0d1018; }
.cs-show__browser .cs-show__video { aspect-ratio: 16 / 10; }
.cs-show__phone { position: absolute; right: 0; bottom: -28px; width: clamp(150px, 22%, 250px); margin: 0; padding: 8px; border-radius: 36px; background: #0b0d12;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.2), 0 30px 70px rgba(0,0,0,.6); }
.cs-show__phone .cs-show__video { border-radius: 28px; aspect-ratio: 540 / 1168; }
.cs-show__phone::before { content: ""; position: absolute; left: 50%; top: 15px; z-index: 1; width: 30%; height: 16px; translate: -50% 0; border-radius: 10px; background: #000; }
.cs-show__stack { display: flex; flex-wrap: wrap; gap: 8px; margin: calc(var(--space-32) + 28px) 0 0; padding: 0; list-style: none; }
.cs-show__stack li { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); font-size: 0.875rem; font-weight: 600; }
@media (max-width: 767px) {
  .cs-show__box { padding: 24px 16px 28px; border-radius: var(--radius-xl); }
  .cs-show .section__head .btn { width: 100%; }
  .cs-show__stage { padding-right: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
  .cs-show__browser { display: none; }
  .cs-show__phone { position: relative; right: auto; bottom: auto; width: min(280px, 82%); margin: 0 auto; }
  .cs-show__stack { margin-top: var(--space-24); }
}

/* ===== Кейс сайта: цифры из рекламы ===== */
.cs-impact__box { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-32) var(--space-48); align-items: center;
  padding: clamp(24px, 4.5vw, 56px); border-radius: var(--radius-2xl, 32px); background: var(--bg-brand); }
.cs-impact__text .h2 { margin-top: var(--space-8); }
.cs-impact__text .t1 { margin-top: var(--space-16); color: var(--text-muted); }
.cs-impact__text .btn { margin-top: var(--space-24); }
.cs-impact__kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cs-impact__kpis li { padding: 20px 22px; border-radius: var(--radius-xl); background: var(--bg-raised, #fff); box-shadow: inset 0 0 0 1px var(--border); }
.cs-impact__kpis li.is-hl { grid-column: 1 / -1; background: var(--color1-main, #0e6377); color: #fff; box-shadow: none; }
.cs-impact__kpis b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); line-height: 1; letter-spacing: -0.02em; }
.cs-impact__kpis li.is-hl b { color: var(--accent); font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem); }
.cs-impact__kpis span { display: block; margin-top: 8px; font-size: 0.9375rem; color: var(--text-muted); }
.cs-impact__kpis li.is-hl span { color: rgba(255,255,255,.8); }
.cs-impact__note { grid-column: 1 / -1; margin: 0; font-size: 0.8125rem; color: var(--text-muted); }
@media (max-width: 899px) { .cs-impact__box { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .cs-impact__box { padding: 24px 16px; border-radius: var(--radius-xl); } .cs-impact__text .btn { width: 100%; } }

/* Много шагов (> 6) — сетка карточек вместо ленты */
.cs-steps--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.cs-steps--grid::before { display: none; }
.cs-steps--grid .cs-step { padding: 22px 22px 24px; border-radius: var(--radius-xl); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--border); }
.cs-steps--grid .cs-step__n { width: 44px; height: 44px; font-size: 0.875rem; }
@media (max-width: 1023px) { .cs-steps--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .cs-steps--grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cs-steps--grid .cs-step { padding: 16px; grid-template-columns: 44px minmax(0, 1fr); }
}
@media (min-width: 1024px) { .cs-hero__box--site .cs-hero__bg { left: 47%; } .cs-hero__box--site .cs-hero__bg img { padding-left: 0; } }
.cs-show--solo .cs-show__stage { padding-right: 0; }
@media (max-width: 767px) { .cs-show--solo .cs-show__browser { display: block; } }
.cs-show--phone .cs-show__stage { padding-right: 0; display: grid; place-items: center; }
.cs-show--phone .cs-show__phone { position: relative; right: auto; bottom: auto; width: min(300px, 80%); }
.cs-show--phone .cs-show__stack { margin-top: var(--space-32); }

/* ---------- Карусель скриншотов ---------- */
.cs-car { --car-h: 440px; }
.cs-car__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0; padding: 4px 2px 28px; margin: -4px -2px 0; scrollbar-width: none; overscroll-behavior-x: contain; }
.cs-car__track::-webkit-scrollbar { display: none; }
.cs-car__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 14px; }
.cs-car__slide { flex: none; width: min(calc(var(--car-h) * var(--ar)), 86%); min-width: min(280px, 80%); scroll-snap-align: start; }
.cs-car__slide .cs-proof__browser { height: var(--car-h); background: #fff; box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3); }
.cs-car__slide .cs-proof__browser img { width: 100%; height: calc(100% - 28px); object-fit: cover; object-position: top center; }
.cs-car__slide figcaption { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-car__nav { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 4px; }
.cs-car__count { min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; color: rgba(255, 255, 255, 0.75); }
.cs-car__btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); transition: background var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.cs-car__btn:hover:not(:disabled) { background: var(--accent); color: var(--on-accent); }
.cs-car__btn:disabled { opacity: 0.35; cursor: default; }
.cs-car__btn--prev .icon, .cs-zoom__nav--prev .icon { transform: rotate(180deg); }
.cs-zoom { position: fixed; inset: 0; margin: auto; height: fit-content; }
.cs-zoom__nav { position: absolute; top: 50%; right: 14px; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: var(--bg-inverse); color: #fff; box-shadow: var(--shadow-m, 0 8px 24px rgba(0,0,0,.25)); }
.cs-zoom__nav--prev { right: auto; left: 14px; }
.cs-zoom__nav[hidden] { display: none; }
@media (max-width: 767px) {
  .cs-car { --car-h: 340px; }
  .cs-car__slide { width: min(calc(var(--car-h) * var(--ar)), 88%); }
  .cs-car__nav { justify-content: center; }
  .cs-zoom__nav { top: auto; bottom: 14px; margin-top: 0; }
}
.cs-zoom__body { flex: 1 1 auto; min-height: 0; }
.cs-zoom__body img { width: auto; max-width: 100%; min-width: 0; margin: 0 auto; }
.cs-zoom__body img.is-wide { width: 100%; min-width: 760px; max-width: none; }
@media (max-width: 767px) { .cs-zoom__body img.is-wide { min-width: 900px; } }

/* ---------- Компактный первый экран кейса ---------- */
.cs-hero__box { min-height: 460px; padding: 40px 48px 32px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.cs-hero__text { max-width: 720px; }
.cs-tags { margin-top: var(--space-24); }
.cs-hero__title { margin-top: 16px; font-size: clamp(1.75rem, 1.05rem + 1.6vw, 2.625rem); line-height: 1.08; text-wrap: balance; }
.cs-hero__lead { margin-top: 16px; font-size: 1.0625rem; max-width: 640px; }
.cs-hero__actions { margin-top: var(--space-24); }
.cs-hero__badge { top: 40px; right: 48px; }
.cs-kpis { margin-top: var(--space-32); }
.cs-kpis li { padding-top: 16px; }
.cs-kpis b { font-size: clamp(1.25rem, 0.95rem + 0.8vw, 1.75rem); }
.cs-hero__box--site .cs-hero__text { max-width: 600px; }
.cs-hero__box--site .cs-kpis b { font-size: clamp(1.125rem, 0.9rem + 0.8vw, 1.75rem); }
@media (max-width: 1199px) { .cs-hero__box { padding: 36px; min-height: 0; } }
@media (max-width: 1023px) { .cs-hero__box { grid-template-columns: minmax(0, 1fr); padding-top: 300px; } }
@media (max-width: 767px) { .cs-hero__box { padding: 220px 20px 24px; } .cs-hero__title { font-size: 1.75rem; } }
.cs-hero__title { hyphens: manual; -webkit-hyphens: manual; } .cs-hero__title .nw { white-space: nowrap; }
@media (max-width: 767px) { .cs-hero__box { padding-left: 16px; padding-right: 16px; } }

/* post.css */
/* ==========================================================================
   Статья блога
   ========================================================================== */
.art-progress { position: fixed; z-index: 90; left: 0; right: 0; top: 0; height: 4px; pointer-events: none; }
.art-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; }

/* --- Шапка статьи --- */
.art-hero { padding-top: var(--space-40, 40px); }
.art-hero .container { display: grid; justify-items: center; text-align: center; }
.art-hero__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: var(--space-24); font-size: 0.8125rem; }
.art-hero__tags .bp__topic, .art-hero__tags .bp__series { padding: 4px 12px; }
.art-hero__title { max-width: 980px; margin-top: var(--space-16); font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.art-hero__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: var(--space-24); }
.art-author { display: flex; align-items: center; gap: 10px; text-align: left; }
.art-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; box-shadow: 0 0 0 2px var(--accent); }
.art-author span { display: grid; line-height: 1.25; }
.art-author b { font-size: 0.9375rem; }
.art-author em { font-style: normal; font-size: 0.8125rem; color: var(--text-muted); }
.art-hero__facts { display: flex; gap: 18px; font-size: 0.875rem; color: var(--text-secondary); }
.art-hero__facts > span { display: inline-flex; align-items: center; gap: 6px; }
.art-hero__facts .icon { width: 16px; height: 16px; color: var(--primary); }
.art-cover { width: 100%; max-width: 1120px; margin: var(--space-40, 40px) 0 0; aspect-ratio: 16 / 8; border-radius: 28px; overflow: hidden; background: var(--bg-subtle); box-shadow: 0 30px 60px rgba(11, 18, 20, 0.14); }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }

/* --- Сетка: содержание + текст --- */
.art-layout { display: grid; grid-template-columns: 250px minmax(0, 720px); justify-content: center; gap: 72px; margin-top: var(--space-56, 56px); }
.art-side { position: relative; }
.art-side__in { position: sticky; top: 110px; }
.art-toc { max-height: calc(100vh - 220px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.art-toc__t { margin-bottom: 12px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.art-toc ol { display: grid; gap: 2px; border-left: 2px solid var(--border); }
.art-toc a { display: block; margin-left: -2px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; font-size: 0.875rem; line-height: 1.35; color: var(--text-secondary); transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.art-toc a:hover { color: var(--text); }
.art-toc a.is-on { border-left-color: var(--accent); color: var(--primary); font-weight: 700; }
.art-side__share { margin-top: 28px; }
.art-side__share p { margin-bottom: 10px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.art-toc-m { display: none; }

/* --- Типографика статьи --- */
.art-body { font-size: 1.125rem; line-height: 1.75; color: var(--text); }
.art-body > * + * { margin-top: 1.1em; }
.art-body .art-lead { font-size: 1.3125rem; line-height: 1.6; font-weight: 500; color: var(--text); }
.art-body h2 { margin-top: 2.2em; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem); line-height: 1.2; letter-spacing: -0.01em; scroll-margin-top: 110px; }
.art-body h3 { margin-top: 1.8em; font-size: 1.3125rem; font-weight: 700; line-height: 1.3; }
.art-body h2 + *, .art-body h3 + * { margin-top: 0.7em; }
.art-body strong, .art-body b { font-weight: 700; }
.art-body a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(14, 99, 119, 0.35); text-underline-offset: 3px; }
.art-body a:hover { text-decoration-color: currentColor; }
.art-body ul { display: grid; gap: 10px; padding: 0; }
.art-body ul > li { position: relative; padding-left: 28px; }
.art-body ul > li::before { content: ""; position: absolute; left: 6px; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.art-body ol { display: grid; gap: 12px; padding: 0; counter-reset: art; }
.art-body ol > li { position: relative; padding-left: 44px; counter-increment: art; }
.art-body ol > li::before { content: counter(art); position: absolute; left: 0; top: 0.15em; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 0.875rem; font-weight: 800; line-height: 1; }
.art-body blockquote { margin: 2em 0; padding: 22px 26px 22px 28px; border-left: 4px solid var(--accent); border-radius: 0 20px 20px 0; background: var(--bg-subtle); font-size: 1.1875rem; line-height: 1.6; font-style: italic; }
.art-body blockquote p + p { margin-top: 0.6em; }
.art-fig { margin: 2em 0; }
.art-fig img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 0 0 1px var(--border), 0 16px 36px rgba(11, 18, 20, 0.08); }
.art-fig__cap { margin-top: 10px; font-size: 0.875rem; line-height: 1.45; color: var(--text-muted); text-align: center; }
.art-body img { max-width: 100%; height: auto; }

/* --- Врезка с услугой --- */
.art-cta { display: grid; gap: 18px; margin: 2.6em 0 !important; padding: 28px; border-radius: 24px; background: radial-gradient(70% 90% at 100% 0%, rgba(232, 163, 61, 0.22), rgba(232, 163, 61, 0) 70%), var(--bg-inverse); color: #fff; font-style: normal; }
.art-cta__t { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.art-cta__s { margin-top: 8px; font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, 0.72); }
.art-cta__act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.art-cta__more { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9375rem; font-weight: 700; color: var(--accent) !important; text-decoration: none !important; }
.art-cta__more .icon { width: 16px; height: 16px; }

/* --- Серия --- */
.art-series { margin-top: 48px; padding: 24px; border-radius: 22px; background: var(--bg-subtle); }
.art-series__t { margin-bottom: 12px; font-weight: 800; }
.art-series__t span { margin-left: 6px; font-weight: 600; color: var(--text-muted); }
.art-series ol { display: grid; gap: 6px; }
.art-series li a { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 10px 14px; border-radius: 12px; font-size: 0.9375rem; line-height: 1.35; transition: background-color var(--dur) var(--ease); }
.art-series li a:hover { background: var(--bg-raised); }
.art-series li a span { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); padding-top: 2px; }
.art-series li.is-cur a { background: var(--bg-raised); box-shadow: inset 0 0 0 2px var(--primary); font-weight: 700; }
.art-series li.is-cur a span { color: var(--primary); }
.art-series__next { margin-top: 14px; }

/* --- Конец статьи --- */
.art-end { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); display: grid; gap: 28px; }
.art-end__share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.art-end__share p { font-weight: 700; }
.art-share { display: flex; gap: 8px; }
.art-share__b { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-subtle); box-shadow: inset 0 0 0 1px var(--border); color: var(--text); transition: background-color var(--dur) var(--ease), transform 200ms var(--ease-out); }
.art-share__b:hover { transform: translateY(-2px); background: var(--primary-soft); }
.art-share__b .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.art-share__b--tg { color: #26a5e4; }
.art-share__b--tg .icon { fill: currentColor; stroke: none; }
.art-share__b img { width: 20px; height: 20px; }
.art-share__ok { position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 0; padding: 4px 8px; border-radius: 8px; background: var(--bg-inverse); color: #fff; font-size: 0.75rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease); }
.art-share__b.is-done .art-share__ok { opacity: 1; }
.art-bio { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: start; padding: 28px; border-radius: 24px; background: var(--bg-subtle); }
.art-bio__ph { width: 120px; height: 120px; border-radius: 24px; object-fit: cover; object-position: top; }
.art-bio__name { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; }
.art-bio__role { margin-top: 2px; color: var(--primary); font-weight: 600; font-size: 0.9375rem; }
.art-bio__about { margin-top: 10px; line-height: 1.55; color: var(--text-secondary); }
.art-bio__act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.art-rel { padding-top: var(--space-64, 64px); }

/* --- Адаптив --- */
@media (max-width: 1199px) { .art-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 48px; } }
@media (max-width: 1023px) {
  .art-layout { grid-template-columns: minmax(0, 720px); margin-top: var(--space-32); }
  .art-side { display: none; }
  .art-toc-m { display: block; margin-bottom: 28px; border-radius: 18px; background: var(--bg-subtle); }
  .art-toc-m summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; font-weight: 800; cursor: pointer; list-style: none; }
  .art-toc-m summary::-webkit-details-marker { display: none; }
  .art-toc-m summary span { font-weight: 500; font-size: 0.875rem; color: var(--text-muted); }
  .art-toc-m summary .icon { width: 20px; height: 20px; margin-left: auto; transition: transform var(--dur) var(--ease); }
  .art-toc-m[open] summary .icon { transform: rotate(180deg); }
  .art-toc-m ol { display: grid; gap: 2px; padding: 0 12px 14px; counter-reset: tm; }
  .art-toc-m li { counter-increment: tm; }
  .art-toc-m a { display: grid; grid-template-columns: 28px minmax(0, 1fr); padding: 8px; border-radius: 10px; font-size: 0.9375rem; line-height: 1.35; color: var(--text-secondary); }
  .art-toc-m a::before { content: counter(tm) "."; font-weight: 700; color: var(--primary); }
  .art-toc-m a:hover { background: var(--bg-raised); }
}
@media (max-width: 767px) {
  .art-hero { padding-top: var(--space-16); }
  .art-hero .container { justify-items: start; text-align: left; }
  .art-hero__tags { justify-content: flex-start; }
  .art-hero__meta { justify-content: flex-start; gap: 12px; }
  .art-hero__facts { gap: 14px; font-size: 0.8125rem; }
  .art-cover { margin-top: 24px; aspect-ratio: 16 / 10; border-radius: 18px; width: 100%; max-width: 100%; margin-inline: 0; }
  .art-body { font-size: 1.0625rem; line-height: 1.7; }
  .art-body .art-lead { font-size: 1.1875rem; }
  .art-body blockquote { padding: 18px 18px 18px 20px; font-size: 1.0625rem; }
  .art-cta { padding: 22px 20px; border-radius: 20px; }
  .art-cta__act .btn { width: 100%; }
  .art-series { padding: 16px; }
  .art-series li a { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .art-bio { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 20px; }
  .art-bio__ph { width: 72px; height: 72px; border-radius: 18px; }
  .art-bio__act { grid-column: 1 / -1; }
  .art-bio__act .btn { flex: 1 1 100%; }
  .art-bio__text { display: contents; }
  .art-bio__name, .art-bio__role { grid-column: 2; }
  .art-bio__about { grid-column: 1 / -1; }
}
@media (max-width: 767px) { .art-bio__ph { grid-row: 1 / span 2; } .art-bio__name { align-self: end; } }
/* Узкие телефоны: длинные слова в H1 статьи не вылезают за край */
@media (max-width: 400px) {
  .art-hero__title { font-size: clamp(1.5rem, 7.4vw, 2rem); overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
}

/* ---------- Блоки статей автопостинга (render/article.py в /opt/autopost) ---------- */
.art-body .pav-callout { position: relative; margin: 1.8em 0; padding: 20px 24px 20px 60px; border-radius: 20px; background: var(--primary-soft); color: var(--text); font-size: 1.0625rem; line-height: 1.65; }
.art-body .pav-callout::before { content: ""; position: absolute; left: 22px; top: 22px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 8h.01M11 12h1v5h1'/%3E%3C/svg%3E") center/18px no-repeat; }
.art-body .pav-callout__t { display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--primary); }
.art-body .pav-callout--warning { background: var(--accent-soft); }
.art-body .pav-callout--warning::before { background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b1c00' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E"); }
.art-body .pav-callout--warning .pav-callout__t { color: #8a5a12; }
.art-body .pav-callout--example { background: var(--bg-subtle); border: 1px solid var(--border); }
.art-body .pav-callout--example::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E"); }
.art-body .pav-table-wrap { margin: 1.8em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 20px; }
.art-body .pav-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.art-body .pav-table th { padding: 14px 18px; background: var(--bg-subtle); text-align: left; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--border); }
.art-body .pav-table td { padding: 13px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.art-body .pav-table tr:last-child td { border-bottom: 0; }
.art-body .pav-summary { margin-top: 2.2em; padding: 24px 28px; border-radius: 24px; background: #0b4e5d; color: #fff; }
.art-body .pav-summary__t { display: block; margin-bottom: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--accent); }
.art-body .pav-summary a { color: #fff; }
.art-body .pav-faq { margin-top: 2.4em; }
.art-body .pav-faq > h2 { margin-bottom: 0.8em; }
.art-body .pav-faq__item { border-top: 1px solid var(--border); }
.art-body .pav-faq__item:last-child { border-bottom: 1px solid var(--border); }
.art-body .pav-faq__item summary { position: relative; padding: 18px 44px 18px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.125rem; line-height: 1.4; }
.art-body .pav-faq__item summary::-webkit-details-marker { display: none; }
.art-body .pav-faq__item summary::after { content: "+"; position: absolute; right: 6px; top: 14px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 700; transition: transform var(--dur, .2s); }
.art-body .pav-faq__item[open] summary::after { transform: rotate(45deg); }
.art-body .pav-faq__a { padding: 0 0 18px; color: var(--text-secondary, var(--text)); }
.art-body .pav-faq__a > * + * { margin-top: 0.6em; }
@media (max-width: 760px) {
  .art-body .pav-callout { padding: 18px 18px 18px 52px; font-size: 1rem; }
  .art-body .pav-callout::before { left: 16px; top: 19px; }
  .art-body .pav-summary { padding: 20px; }
  .art-body .pav-faq__item summary { font-size: 1.0625rem; }
}

/* footer.css */
/* ==========================================================================
   Подвал
   ========================================================================== */

.site-footer {
  position: relative; overflow: hidden;
  margin-top: var(--space-32);
  padding: 72px 0 var(--space-32);
  background: var(--bg-inverse); color: var(--text-inverse);
  border-radius: var(--radius-block) var(--radius-block) 0 0;
}
/* Крупный знак-магнит фоном */
.site-footer::before {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 520px; height: 520px;
  background: url("../img/logo/logo-mark.svg") center / contain no-repeat;
  opacity: 0.05; pointer-events: none;
}

.footer__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-32); padding-bottom: var(--space-48); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer__brand { display: flex; flex-direction: column; gap: var(--space-16); max-width: 520px; }
.footer__logo img { height: 52px; width: auto; }
.footer__cta { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-12); }
.footer__cta-note { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); }

.footer__cols { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr); gap: var(--space-32); padding: var(--space-48) 0; }
.footer__title { margin-bottom: var(--space-16); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: rgba(255, 255, 255, 0.85); transition: color var(--dur) var(--ease); }
.footer__links a:hover { color: var(--accent); }

.footer__contacts { display: grid; gap: var(--space-16); }
.f-contact { display: flex; align-items: center; gap: var(--space-12); }
.f-contact__ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--accent); }
.f-contact__ico .icon { width: 20px; height: 20px; }
.f-contact__main { display: block; font-weight: 600; line-height: 1.3; }
.f-contact__sub { display: block; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.55); }
a.f-contact:hover .f-contact__main { color: var(--accent); }

.socials { display: grid; gap: 6px; }
.soc { display: flex; align-items: center; gap: var(--space-12); padding: 6px 0; }
.soc__ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius-m); background: #fff; transition: transform 200ms var(--ease-out); }
.soc__ico img { width: 24px; height: 24px; object-fit: contain; }
.soc__name { display: block; font-weight: 600; line-height: 1.3; color: rgba(255, 255, 255, 0.92); }
.soc__sub { display: block; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.55); }
.soc:hover .soc__ico { transform: translateY(-2px) rotate(-4deg); }
.soc:hover .soc__name { color: var(--accent); }
.footer__cookie { font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); }
.footer__cookie:hover { color: var(--text-inverse); }
.social {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border-radius: var(--radius-full); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: 0.875rem; font-weight: 600; color: rgba(255, 255, 255, 0.9);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}
.social .icon { width: 18px; height: 18px; }
.social:hover { background: var(--accent); color: var(--on-accent); box-shadow: none; }

.footer__bottom {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-12) var(--space-32);
  padding-top: var(--space-24); border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem; color: rgba(255, 255, 255, 0.55);
}
.footer__legal { display: flex; flex-direction: column; gap: 4px; }
.footer__docs { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-24); }
.footer__docs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); }
.footer__docs a:hover { color: var(--text-inverse); text-decoration-color: currentColor; }

.to-top {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: var(--text-inverse);
  transition: background-color var(--dur) var(--ease), transform 200ms var(--ease);
}
.to-top .icon { width: 20px; height: 20px; transform: rotate(-90deg); }
.to-top:hover { background: var(--primary); transform: translateY(-2px); }

.site-footer :focus-visible { outline-color: var(--accent); }

/* ---------- Адаптив ---------- */
@media (max-width: 1023px) {
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__cta { align-items: flex-start; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .site-footer { padding-top: var(--space-48); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .site-footer::before { width: 320px; height: 320px; right: -80px; bottom: -60px; }
  .footer__logo img { height: 44px; }
  .footer__top { padding-bottom: var(--space-32); gap: var(--space-24); }
  .footer__cta, .footer__cta .btn { width: 100%; }
  .footer__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-32) var(--space-16); padding: var(--space-32) 0; }
  .footer__col--contacts { grid-column: 1 / -1; order: -1; }
  .footer__col--social { grid-column: 1 / -1; order: 1; }
  .socials { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { align-items: flex-end; }
  .footer__legal { max-width: calc(100% - 60px); }
}

/* modal.css */
/* ==========================================================================
   Попапы заявок: аудит (2 шага), консультация, разработка сайта
   ========================================================================== */

.lead-modal {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: var(--radius-xl);
  background: var(--bg-raised); color: var(--text); box-shadow: var(--shadow-l);
  overflow: auto; overscroll-behavior: contain;
}
.lead-modal::backdrop { background: rgba(18, 22, 20, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lead-modal[open] { animation: lm-in 260ms var(--ease-out) both; }
.lead-modal[open]::backdrop { animation: fade-in 200ms ease both; }
@keyframes lm-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

.lm { position: relative; display: flex; flex-direction: column; gap: var(--space-20); padding: 32px; }
.lm__close { position: absolute; top: 16px; right: 16px; }
.lm__head { display: flex; flex-direction: column; gap: var(--space-8); padding-right: 48px; }
.lm__person { display: flex; align-items: center; gap: var(--space-12); margin-bottom: var(--space-8); }
.lm__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--bg-raised), 0 0 0 5px var(--primary-soft); }
.lm__person-name { display: block; font-weight: 600; line-height: 1.3; }
.lm__person-status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--success-text); }
.lm__person-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px var(--success-bg); }
.lm__title { font-family: var(--font-display); font-weight: 600; font-size: 1.625rem; line-height: 1.15; }
.lm__sub { color: var(--text-secondary); }

/* Шаги */
.lm__progress { display: flex; align-items: center; gap: var(--space-12); padding-right: 52px; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
.lm__dot { display: inline-flex; align-items: center; gap: 8px; }
.lm__dot span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-subtle); color: var(--text-muted); transition: background-color 200ms ease, color 200ms ease; }
.lm__dot[aria-current="step"] { color: var(--text); }
.lm__dot[aria-current="step"] span, .lm__dot.is-done span { background: var(--primary); color: var(--on-primary); }
.lm__line { flex: 1; height: 2px; border-radius: 2px; background: var(--border); position: relative; overflow: hidden; }
.lm__line::after { content: ""; position: absolute; inset: 0; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease-out); }
.lm__line.is-done::after { transform: scaleX(1); }

/* Выбор формата */
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); border: 0; padding: 0; margin: 0; }
.formats legend { margin-bottom: var(--space-12); font-size: 0.875rem; font-weight: 600; }
.format { position: relative; cursor: pointer; }
.format input { position: absolute; opacity: 0; pointer-events: none; }
.format__card {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: var(--space-16); border-radius: var(--radius-l);
  box-shadow: inset 0 0 0 1.5px var(--border); transition: box-shadow 150ms ease, background-color 150ms ease;
}
.format__ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; border-radius: var(--radius-m); background: var(--bg-subtle); color: var(--text-secondary); transition: background-color 150ms ease, color 150ms ease; }
.format__ico .icon { width: 22px; height: 22px; }
.format__name { font-weight: 600; }
.format__note { font-size: 0.8125rem; color: var(--text-muted); }
.format:hover .format__card { box-shadow: inset 0 0 0 1.5px var(--border-control); }
.format input:checked + .format__card { background: var(--bg-brand); box-shadow: inset 0 0 0 2px var(--primary); }
.format input:checked + .format__card .format__ico { background: var(--primary); color: var(--on-primary); }
.format input:focus-visible + .format__card { outline: 2px solid var(--focus); outline-offset: 2px; }

.lm__result { padding: var(--space-16) var(--space-20); border-radius: var(--radius-l); background: var(--bg-subtle); }
.lm__result-title { font-size: 0.875rem; font-weight: 600; }
.lm__result-text { margin-top: 4px; font-size: 0.875rem; color: var(--text-secondary); }

.lm__back { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); }
.lm__back:hover { color: var(--primary); }

/* Поля в попапе — на сером фоне */
.lead-modal .input { background: var(--bg-subtle); }
.lead-modal .input:hover { border-color: var(--border); }
.lm__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); }
.check { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--text-secondary); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); }

.lm__or { display: flex; align-items: center; gap: var(--space-12); font-size: 0.8125rem; color: var(--text-muted); }
.lm__or::before, .lm__or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.messengers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.messenger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--control-m); border-radius: var(--radius-m); box-shadow: inset 0 0 0 1.5px var(--border);
  font-weight: 600; transition: box-shadow 150ms ease, background-color 150ms ease;
}
.messenger:hover { background: var(--bg-subtle); box-shadow: inset 0 0 0 1.5px var(--border-control); }
.messenger .icon, .messenger img { width: 20px; height: 20px; }
.messenger--tg .icon { color: #229ed9; }

/* Успех */
.lm__done { display: flex; flex-direction: column; align-items: center; gap: var(--space-12); padding: var(--space-24) 0 var(--space-8); text-align: center; }
.lm__done-ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--success-bg); color: var(--success-text); animation: pop 400ms var(--ease-out) both; }
.lm__done-ico .icon { width: 36px; height: 36px; stroke-width: 2.25; }
@keyframes pop { from { transform: scale(0.5); opacity: 0; } to { transform: none; opacity: 1; } }

[data-step][hidden] { display: none !important; }

@media (max-width: 767px) {
  .lead-modal { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .lead-modal[open] { animation-name: lm-up; }
  @keyframes lm-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .lm { padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
  .lm__title { font-size: 1.375rem; }
  .lm__row { grid-template-columns: 1fr; }
  .formats { grid-template-columns: 1fr; }
  .format__card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; }
  .format__ico { margin: 0; }
  .format__note { flex-basis: 100%; }
}

.lm__list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-top: 8px; font-size: 0.875rem; color: var(--text-secondary); }
.lm__list li { position: relative; padding-left: 16px; }
.lm__list li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 767px) { .lm__list { grid-template-columns: 1fr; } }

/* ---------- Мобильная форма — в один экран ---------- */
@media (max-width: 767px) {
  .lead-modal { max-height: 100dvh; }
  .lm { gap: 14px; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); }
  .lm__close { top: 10px; right: 10px; }
  .lm__progress { padding-right: 48px; }
  .lm__dot span { width: 22px; height: 22px; font-size: 0.75rem; }
  .lm__title { font-size: 1.25rem; }
  .lm__sub, .lm__analyze, .lm__result, .format__note, .formats legend { display: none !important; }
  .formats { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px !important; }
  .format__card { flex-direction: column; align-items: flex-start; padding: 12px; gap: 6px; min-height: 0; }
  .format__ico { width: 34px; height: 34px; }
  .format__name { font-size: 0.9375rem; line-height: 1.2; }
  .lm [data-step-next] { margin-top: 4px !important; }
  .lm__head { gap: 4px; margin-top: 0 !important; }
  .lm__person { margin-bottom: 4px; gap: 10px; }
  .lm__avatar { width: 40px; height: 40px; }
  .lm__person-status { font-size: 0.75rem; }
  .lead-modal .form { gap: 10px; }
  .lead-modal .input { min-height: 48px; padding-block: 10px; }
  .lead-modal .form .btn--l { min-height: 52px; }
  .lead-modal .checkbox, .lead-modal .consent { font-size: 0.8125rem; }
  .lm__back { font-size: 0.8125rem; }
}

/* cookie.css */
/* Плашка cookie */
.cookie {
  position: fixed; z-index: 60; left: 16px; bottom: 16px;
  display: flex; align-items: center; gap: var(--space-16);
  width: min(560px, calc(100vw - 32px)); padding: var(--space-16) var(--space-16) var(--space-16) var(--space-20);
  border-radius: var(--radius-l); background: var(--bg-raised); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-l);
  animation: cookie-in 400ms var(--ease-out, ease) both;
}
.cookie[hidden] { display: none; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cookie__ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--on-accent-soft); }
.cookie__ico .icon { width: 22px; height: 22px; }
.cookie__text { flex: 1; font-size: 0.8125rem; line-height: 1.45; color: var(--text-secondary); }
.cookie__text a { color: var(--text-link); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; flex-direction: column; gap: 6px; flex: none; }
.cookie__actions .btn { min-height: 36px; padding: 0 14px; font-size: 0.8125rem; }
.cookie__more { font-size: 0.75rem; color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.cookie__more:hover { color: var(--text); }
@media (max-width: 767px) {
  .cookie { left: 8px; right: 8px; bottom: 8px; width: auto; flex-wrap: wrap; padding: var(--space-16); }
  .cookie__ico { display: none; }
  .cookie__actions { flex-direction: row; width: 100%; align-items: center; }
  .cookie__actions .btn { flex: 1; }
  .cookie__more { flex: none; }
}

/* motion.css */
/* ==========================================================================
   Анимации: появление при прокрутке, фото, «магнитное поле», инфографика.
   Всё включается только при JS (класс .js на <html>) и без prefers-reduced-motion.
   ========================================================================== */

:root { --ease-out: cubic-bezier(0.16, 1, 0.3, 1); }

/* ---------- Появление блоков ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* Фото: раскрытие маской + лёгкий «наезд» камеры */
  .js [data-reveal="photo"] {
    transform: none; opacity: 1;
    clip-path: inset(7% 7% 7% 7% round var(--radius-block));
    transition: clip-path 1100ms var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal="photo"].is-in { clip-path: inset(0 round var(--radius-block)); }
  .js [data-reveal="photo"] img { transform: scale(1.08); transition: transform 1600ms var(--ease-out); }
  .js [data-reveal="photo"].is-in img { transform: none; }
}

/* ---------- Магнитное поле за фото ---------- */
.hero { overflow: clip; }
.hero__visual { grid-area: media; align-self: start; position: relative; isolation: isolate; }
.hero__visual .hero__media { grid-area: auto; }
.hero__field {
  position: absolute; z-index: -1; pointer-events: none;
  left: -36.765%; top: -29.412%; width: 173.53%; height: 158.82%;
  overflow: visible;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 82%), linear-gradient(to right, transparent 8%, #000 22%);
          mask-image: linear-gradient(to bottom, #000 55%, transparent 82%), linear-gradient(to right, transparent 8%, #000 22%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.hero__field path { fill: none; vector-effect: non-scaling-stroke; }
.field-lines path { stroke: var(--primary); stroke-width: 1.5; opacity: 0.16; }
.field-dots path { stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 0 0.0625; opacity: 0.9; }
.field-dots path:nth-child(2) { stroke-width: 5; opacity: 0.6; }
.field-dots path:nth-child(3) { stroke-width: 4; opacity: 0.35; }

@media (prefers-reduced-motion: no-preference) {
  .js .field-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1800ms var(--ease-out); }
  .js .field-lines path:nth-child(2) { transition-delay: 150ms; }
  .js .field-lines path:nth-child(3) { transition-delay: 300ms; }
  .js .hero__visual.is-in .field-lines path { stroke-dashoffset: 0; }

  .js .field-dots { opacity: 0; transition: opacity 800ms ease 900ms; }
  .js .hero__visual.is-in .field-dots { opacity: 1; }
  .field-dots path { animation: field-flow 3.2s linear infinite; }
  .field-dots path:nth-child(2) { animation-duration: 4.4s; animation-direction: reverse; }
  .field-dots path:nth-child(3) { animation-duration: 6s; }
}
@keyframes field-flow { to { stroke-dashoffset: -0.125; } }

@media (max-width: 899px) { .hero__field { display: none; } }

/* ---------- Инфографика в кейсах ---------- */
.funnel { display: grid; gap: 10px; }
.funnel__row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 128px; align-items: center; gap: var(--space-12); font-size: 0.875rem; }
.funnel__name { color: rgba(255, 255, 255, 0.72); }
.funnel__val { font-weight: 600; text-align: right; white-space: nowrap; }
.funnel__track { height: 10px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.funnel__bar { display: block; height: 100%; min-width: 8px; width: var(--w); border-radius: inherit; background: var(--color1-light); }
.funnel__bar--accent { background: var(--accent); }

.bars { display: grid; gap: 8px; margin-top: var(--space-16); }
.bars__row { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: var(--space-8); font-size: 0.8125rem; color: var(--text-muted); }
.bars__track { height: 8px; border-radius: var(--radius-full); background: var(--bg); overflow: hidden; }
.bars__bar { display: block; height: 100%; min-width: 6px; width: var(--w); border-radius: inherit; background: var(--border-control); }
.bars__bar--brand { background: var(--primary); }

@media (prefers-reduced-motion: no-preference) {
  .js .funnel__bar, .js .bars__bar { width: 0; transition: width 1400ms var(--ease-out) 350ms; }
  .js .bars__row + .bars__row .bars__bar, .js .funnel__row + .funnel__row .funnel__bar { transition-delay: 650ms; }
  .js .is-in .funnel__bar, .js .is-in .bars__bar { width: var(--w); }
}

@media (max-width: 767px) {
  .funnel__row { grid-template-columns: 60px minmax(0, 1fr) auto; gap: var(--space-8); font-size: 0.8125rem; }
}

/* Первый экран виден сразу: без ожидания скрипта анимаций (Speed Index / LCP) */
.js main > section:first-of-type [data-reveal],
.js main > section:first-of-type[data-reveal],
.js main > section:first-of-type .hero__visual { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
.js main > section:first-of-type [data-reveal="photo"] img { transform: none !important; }

/* assistant.css */
/* ==========================================================================
   ИИ-консультант: кнопка в углу + окно чата
   ========================================================================== */
.aiw { --aiw-w: 400px; font-family: var(--font-sans); }
.aiw [hidden] { display: none !important; }

/* --- Кнопка --- */
.aiw__launch {
  position: fixed; z-index: 70; right: 20px; bottom: 20px;
  display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 22px 0 6px;
  border-radius: 999px; background: var(--primary); color: #fff;
  box-shadow: 0 16px 36px rgba(14, 99, 119, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-weight: 700; font-size: 0.9375rem;
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease);
}
.aiw__launch:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(14, 99, 119, 0.5); }
.aiw__launch-ava { position: relative; display: block; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--accent); }
.aiw__launch-ava img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.aiw__launch-dot { position: absolute; left: 44px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: #28c941; box-shadow: 0 0 0 3px var(--primary); }
.aiw__launch-txt { display: grid; line-height: 1.15; text-align: left; }
.aiw__launch-txt small { font-size: 0.6875rem; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
.aiw.is-open .aiw__launch { transform: scale(0.8); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .aiw__launch-dot { animation: aiw-pulse 2s ease-in-out infinite; }
  .aiw__launch { animation: aiw-in 600ms var(--ease-out) 1.2s both; }
}
@keyframes aiw-pulse { 50% { box-shadow: 0 0 0 3px var(--primary), 0 0 0 7px rgba(40, 201, 65, 0.25); } }
@keyframes aiw-in { from { opacity: 0; transform: translateY(20px) scale(0.9); } to { opacity: 1; transform: none; } }

/* --- Подсказка над кнопкой --- */
.aiw__teaser {
  position: fixed; z-index: 70; right: 20px; bottom: 92px; width: 280px; padding: 14px 36px 14px 16px;
  border-radius: 18px 18px 6px 18px; background: var(--bg-raised); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-l); font-size: 0.9375rem; line-height: 1.4;
  animation: aiw-in 500ms var(--ease-out) both; cursor: pointer;
}
.aiw__teaser b { display: block; margin-bottom: 2px; }
.aiw__teaser-x { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--text-muted); }
.aiw__teaser-x:hover { background: var(--bg-subtle); }
.aiw__teaser-x .icon { width: 14px; height: 14px; }

/* --- Окно --- */
.aiw__panel {
  position: fixed; z-index: 80; right: 20px; bottom: 20px; display: flex; flex-direction: column;
  width: var(--aiw-w); height: min(680px, calc(100dvh - 40px)); border-radius: 24px; overflow: hidden;
  background: var(--bg); box-shadow: 0 30px 80px rgba(11, 18, 20, 0.35), 0 0 0 1px rgba(11, 18, 20, 0.08);
  transform-origin: 100% 100%; animation: aiw-open 300ms var(--ease-out) both;
}
@keyframes aiw-open { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
.aiw__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: linear-gradient(120deg, #0b1214, #0e3a45); color: #fff; }
.aiw__ava { position: relative; flex: none; width: 44px; height: 44px; }
.aiw__ava img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; box-shadow: 0 0 0 2px var(--accent); }
.aiw__ava-ai { position: absolute; right: -4px; bottom: -3px; padding: 1px 5px; border-radius: 6px; background: var(--accent); color: #1b1b1b; font-size: 0.5625rem; font-weight: 800; }
.aiw__who { flex: 1; min-width: 0; }
.aiw__who b { display: block; font-size: 1rem; }
.aiw__who span { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: rgba(255, 255, 255, 0.7); }
.aiw__who span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #28c941; }
.aiw__hbtn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; }
.aiw__hbtn:hover { background: rgba(255, 255, 255, 0.12); }
.aiw__hbtn .icon { width: 20px; height: 20px; }

.aiw__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-subtle); }
.aiw__note { align-self: center; max-width: 92%; padding: 8px 12px; border-radius: 12px; background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--border); font-size: 0.75rem; line-height: 1.4; color: var(--text-muted); text-align: center; }
.aiw__msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 0.9375rem; line-height: 1.45; white-space: normal; word-wrap: break-word; animation: aiw-msg 260ms var(--ease-out) both; }
@keyframes aiw-msg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.aiw__msg--bot { align-self: flex-start; border-bottom-left-radius: 6px; background: var(--bg-raised); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.aiw__msg--me { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--primary); color: #fff; }
.aiw__msg p + p, .aiw__msg p + ul, .aiw__msg ul + p { margin-top: 6px; }
.aiw__msg ul { display: grid; gap: 3px; padding-left: 0; }
.aiw__msg li { position: relative; padding-left: 14px; }
.aiw__msg li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.aiw__msg b { font-weight: 700; }
.aiw__links { display: grid; gap: 6px; align-self: flex-start; width: 86%; }
.aiw__link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--bg-raised); box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary); font-size: 0.875rem; font-weight: 700; }
.aiw__link:hover { background: var(--primary-soft); }
.aiw__link .icon { width: 16px; height: 16px; flex: none; }
.aiw__typing { align-self: flex-start; display: flex; gap: 4px; padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: var(--bg-raised); }
.aiw__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); animation: aiw-dot 1.2s ease-in-out infinite; }
.aiw__typing i:nth-child(2) { animation-delay: 0.15s; }
.aiw__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiw-dot { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.aiw__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; background: var(--bg-subtle); }
.aiw__chip { padding: 8px 12px; border-radius: 999px; background: var(--bg-raised); box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary); font-size: 0.8125rem; font-weight: 700; text-align: left; }
.aiw__chip:hover { background: var(--primary); color: #fff; }

/* --- Форма контактов внутри чата --- */
.aiw__form { align-self: stretch; display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: var(--bg-raised); box-shadow: inset 0 0 0 2px var(--accent), 0 10px 24px rgba(232, 163, 61, 0.15); animation: aiw-msg 260ms var(--ease-out) both; }
.aiw__form-t { font-weight: 800; }
.aiw__form-s { margin-top: -4px; font-size: 0.8125rem; color: var(--text-muted); }
.aiw__form input[type="text"], .aiw__form input[type="tel"] { width: 100%; height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--bg-subtle); box-shadow: inset 0 0 0 1px var(--border); font: inherit; font-size: 1rem; color: var(--text); }
.aiw__form input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--primary); }
.aiw__form input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #e5484d; }
.aiw__via { display: flex; gap: 6px; }
.aiw__via label { flex: 1; }
.aiw__via input { position: absolute; opacity: 0; pointer-events: none; }
.aiw__via span { display: block; padding: 8px 4px; border-radius: 10px; background: var(--bg-subtle); box-shadow: inset 0 0 0 1px var(--border); font-size: 0.8125rem; font-weight: 700; text-align: center; cursor: pointer; }
.aiw__via input:checked + span { background: var(--primary); color: #fff; box-shadow: none; }
.aiw__via input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.aiw__consent { display: flex; gap: 8px; align-items: flex-start; font-size: 0.75rem; line-height: 1.4; color: var(--text-secondary); }
.aiw__consent input { margin-top: 2px; flex: none; accent-color: var(--primary); }
.aiw__consent a { color: var(--text-link); text-decoration: underline; }
.aiw__form .btn { width: 100%; }
.aiw__err { font-size: 0.8125rem; color: #c23a3e; }
.aiw__done { align-self: stretch; padding: 16px; border-radius: 18px; background: #e8f7ee; color: #1b5e37; font-size: 0.9375rem; line-height: 1.45; }
.aiw__done b { display: block; margin-bottom: 4px; font-size: 1.0625rem; }

/* --- Ввод --- */
.aiw__foot { padding: 10px 12px 12px; background: var(--bg); border-top: 1px solid var(--border); }
.aiw__input { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 22px; background: var(--bg-subtle); box-shadow: inset 0 0 0 1px var(--border); }
.aiw__input:focus-within { box-shadow: inset 0 0 0 2px var(--primary); }
.aiw__input textarea { flex: 1; min-height: 24px; max-height: 120px; padding: 7px 0; border: 0; background: none; resize: none; font: inherit; font-size: 1rem; line-height: 1.4; color: var(--text); outline: none; }
.aiw__send { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #1b1b1b; }
.aiw__send:disabled { opacity: 0.4; cursor: default; }
.aiw__send .icon { width: 18px; height: 18px; }
.aiw__meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 0 4px; font-size: 0.6875rem; color: var(--text-muted); }
.aiw__meta button { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* --- Мобильные: окно на весь экран --- */
@media (max-width: 767px) {
  .aiw__launch { right: 12px; bottom: 12px; height: 56px; padding: 0 4px; }
  .aiw__launch-ava { width: 48px; height: 48px; }
  .aiw__launch-txt { display: none; }
  .aiw__launch-dot { left: 40px; top: 4px; }
  .aiw__teaser { right: 12px; bottom: 80px; width: calc(100vw - 88px); max-width: 280px; }
  .aiw__panel { inset: 0; width: 100%; height: 100dvh; border-radius: 0; }
  body:has(.cookie:not([hidden])) .aiw__launch { bottom: 150px; }
  body:has(.cookie:not([hidden])) .aiw__teaser { display: none; }
  body.aiw-locked { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .aiw__panel, .aiw__msg, .aiw__form, .aiw__teaser, .aiw__launch { animation: none; } }

/* Уходит, когда мешает заявке (меню, окно, форма в зоне видимости, ввод в поле) */
.aiw__launch, .aiw__teaser { transition: opacity 200ms ease, transform 250ms ease, visibility 0s; }
.aiw.is-away .aiw__launch, .aiw.is-away .aiw__teaser { opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; transition: opacity 200ms ease, transform 250ms ease, visibility 0s 250ms; }

