/* 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; } }

/* uslugi.css */
/* ==========================================================================
   Страница «Услуги» (/uslugi/)
   Общие: .cx-eyebrow, .btn--ghost-inv, .cx-final — в cases-page.css
   ========================================================================== */

/* Логотипы сервисов (как в карточках услуг на главной) */
.svc-logos { display: flex; gap: 8px; }
.svc-logo {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px;
  border-radius: var(--radius-m); background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), inset 0 0 0 1px rgba(16, 24, 40, 0.06);
  transition: transform 200ms var(--ease-out);
}
.svc-logo img { width: 28px; height: 28px; object-fit: contain; }
.svc-logo--dark { background: #1d2b36; box-shadow: none; }
/* Логотип-приложение на всю плитку */
.svc-logo--full { overflow: hidden; box-shadow: none; }
.svc-logo--full img { width: 100%; height: 100%; }
.svc-logos--l .svc-logo { width: 56px; height: 56px; border-radius: var(--radius-l); }
.svc-logos--l .svc-logo img { width: 34px; height: 34px; }
.svc-logo { transition: transform 200ms var(--ease-out); }
.sv-logo--ico { color: var(--primary); }
.sv-logo--ico .icon { width: 24px; height: 24px; }

/* ==========================================================================
   Первый экран
   ========================================================================== */
.sv-hero { padding-top: var(--space-16); }
.sv-hero__box {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center;
  min-height: 600px; padding: 56px; border-radius: var(--radius-block); overflow: hidden;
  background: #01060a; color: #fff; isolation: isolate;
}
.sv-hero__bg { position: absolute; inset: 0 0 0 24%; z-index: -1; }
.sv-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.sv-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #01060a 0%, rgba(1, 6, 10, 0) 30%), linear-gradient(0deg, #01060a 0%, rgba(1, 6, 10, 0) 30%); }
.sv-hero__text { position: relative; max-width: 560px; }
.sv-hero__title { margin-top: var(--space-32); font-family: var(--font-display); font-weight: 600; font-size: clamp(2.125rem, 1.2rem + 2.8vw, 3.75rem); line-height: 1.02; letter-spacing: -0.02em; }
.sv-hero__title span { color: var(--accent); }
.sv-hero__lead { margin-top: var(--space-24); font-size: 1.125rem; line-height: 1.55; color: rgba(255, 255, 255, 0.72); }
.sv-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-12); margin-top: var(--space-32); }
.sv-hero__chain { 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); counter-reset: ch; }
.sv-hero__chain li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: var(--space-20, 20px) var(--space-24) 0 0; counter-increment: ch; }
.sv-hero__chain li + li { padding-left: var(--space-24); }
.sv-hero__chain li::before { content: "0" counter(ch); font-family: var(--font-display); font-size: 0.75rem; color: var(--accent); }
.sv-hero__chain li:not(:last-child)::after { content: "→"; position: absolute; right: 8px; top: 34px; font-size: 1.25rem; color: rgba(255, 255, 255, 0.3); }
.sv-hero__chain b { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; }
.sv-hero__chain span { font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); }
@media (prefers-reduced-motion: no-preference) {
  .js .sv-hero__bg img { transform: scale(1.06); transition: transform 2400ms var(--ease-out); }
  .js .sv-hero__box.is-in .sv-hero__bg img { transform: none; }
  .js .sv-hero__chain li { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
  .js .sv-hero__box.is-in .sv-hero__chain li { opacity: 1; transform: none; }
  .js .sv-hero__box.is-in .sv-hero__chain li:nth-child(2) { transition-delay: 150ms; }
  .js .sv-hero__box.is-in .sv-hero__chain li:nth-child(3) { transition-delay: 300ms; }
  .js .sv-hero__box.is-in .sv-hero__chain li:nth-child(4) { transition-delay: 450ms; }
}

/* ==========================================================================
   Подбор + карта системы
   ========================================================================== */
.sv-sits { display: flex; flex-wrap: wrap; gap: 10px; }
.sv-sit {
  padding: 14px 20px; border-radius: var(--radius-full); background: var(--bg-subtle); font-weight: 600;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform 150ms var(--ease);
}
.sv-sit:hover { box-shadow: inset 0 0 0 1.5px var(--primary); }
.sv-sit:active { transform: scale(0.98); }
.sv-sit[aria-pressed="true"] { background: var(--primary); color: #fff; box-shadow: none; }
.sv-result {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-24); margin-top: var(--space-16);
  padding: 22px 26px; border-radius: var(--radius-xl); background: var(--accent-soft); animation: sv-in 400ms var(--ease-out);
}
.sv-result[hidden] { display: none; }
.sv-result__title { font-size: 1.25rem; font-weight: 700; }
.sv-result__text { margin-top: 4px; max-width: 720px; color: var(--text-secondary); }
.sv-result .btn { flex: none; }
@keyframes sv-in { from { opacity: 0; transform: translateY(8px); } }

.sv-map { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-16); margin-top: var(--space-24); }
.sv-map__flow { position: absolute; left: 4%; right: 4%; top: 38px; width: 92%; height: 20px; z-index: 0; overflow: visible; pointer-events: none; }
.sv-map__flow path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 0.012 0.012; vector-effect: non-scaling-stroke; animation: sv-flow 1.6s linear infinite; }
@keyframes sv-flow { to { stroke-dashoffset: -0.024; } }
.sv-stage { position: relative; z-index: 1; padding: 28px; border-radius: var(--radius-xl); background: var(--bg-subtle); }
.sv-stage__n { display: grid; place-items: center; width: 48px; height: 48px; 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); }
.sv-stage--crm .sv-stage__n { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.sv-stage__name { margin-top: var(--space-16); font-size: 1.25rem; font-weight: 700; }
.sv-stage__desc { margin-top: 4px; font-size: 0.9375rem; color: var(--text-secondary); }
.sv-nodes { display: grid; gap: 8px; margin-top: var(--space-20, 20px); }
.sv-node {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); padding: 12px 16px;
  border-radius: var(--radius-l); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--border);
  font-size: 0.9375rem; font-weight: 600; transition: background-color 250ms var(--ease), color 250ms var(--ease), box-shadow 250ms var(--ease), opacity 250ms var(--ease), transform 250ms var(--ease);
}
.sv-node b { flex: none; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.sv-node:hover { box-shadow: inset 0 0 0 1.5px var(--primary); }
/* подсветка при выборе ситуации */
.sv-map.is-picking .sv-node { opacity: 0.4; }
.sv-map.is-picking .sv-node.is-on { opacity: 1; background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(14, 99, 119, 0.3); transform: translateX(4px); }
.sv-map.is-picking .sv-node.is-on b { color: rgba(255, 255, 255, 0.8); }

/* ==========================================================================
   Каталог по этапам
   ========================================================================== */
.sv-catalog { padding-top: 0; }
.sv-group + .sv-group { margin-top: var(--space-64, 64px); }
.sv-group__head { display: flex; align-items: flex-start; gap: var(--space-24); margin-bottom: var(--space-32); }
.sv-group__n { flex: none; font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 2rem + 3vw, 5rem); line-height: 0.85; color: transparent; -webkit-text-stroke: 1.5px var(--primary); }
.sv-group--crm .sv-group__n { -webkit-text-stroke-color: var(--accent); }
.sv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-16); }

.sv-card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-12); padding: 28px; border-radius: var(--radius-xl);
  background: var(--bg-subtle); scroll-margin-top: 120px;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform 200ms var(--ease);
}
.sv-card:hover { background: var(--bg-raised); box-shadow: var(--shadow-s); transform: translateY(-2px); }
.sv-card:hover .svc-logo:nth-child(1) { transform: translateY(-2px) rotate(-4deg); }
.sv-card:hover .svc-logo:nth-child(2) { transform: translateY(-2px) rotate(4deg); }
.sv-card:target, .sv-card.is-flash { box-shadow: 0 0 0 3px var(--accent); }
.sv-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-12); margin-bottom: var(--space-8); }
.sv-card .svc-logo:not(.svc-logo--dark):not(.svc-logo--full) { background: #fff; }
.sv-card__promo, .sv-card__badge { padding: 5px 10px; border-radius: var(--radius-full); background: var(--accent-soft); color: var(--on-accent-soft); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.sv-card__badge { background: var(--primary-soft); color: var(--on-primary-soft); }
.sv-card__name { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.sv-card__desc { font-size: 0.9375rem; line-height: 1.5; color: var(--text-secondary); }
.sv-list { display: grid; gap: 8px; margin-top: var(--space-8); }
.sv-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.9375rem; line-height: 1.4; }
.sv-list .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--success-text); }
.sv-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); margin-top: auto; padding-top: var(--space-16); border-top: 1px solid var(--border); }
.sv-card > .sv-list { margin-bottom: var(--space-8); }
.sv-card__price { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; line-height: 1.1; white-space: nowrap; }
.sv-card__price span { margin-top: 4px; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 500; color: var(--text-muted); }
.sv-card__ask { flex: none; }
.sv-card__more { display: inline-flex; align-items: center; gap: 4px; font-size: 0.875rem; font-weight: 600; color: var(--text-link); }
.sv-card__more .icon { width: 16px; height: 16px; }
.sv-card__more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Директ — широкая карточка с двумя тарифами */
.sv-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); grid-template-rows: auto auto 1fr auto; column-gap: var(--space-32); padding: 36px; background: var(--bg-raised); box-shadow: inset 0 0 0 2px var(--primary), 0 0 25px 5px rgba(11, 78, 93, 0.08); }
.sv-card--featured:hover { box-shadow: inset 0 0 0 2px var(--primary), var(--shadow-s); }
.sv-card--featured .svc-logo { width: 56px; height: 56px; border-radius: var(--radius-l); box-shadow: inset 0 0 0 1px var(--border); }
.sv-card--featured .svc-logo img { width: 34px; height: 34px; }
.sv-card--featured .sv-card__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); }
.sv-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); margin-top: var(--space-12); }
.sv-tier { padding: 22px; border-radius: var(--radius-l); background: var(--bg-subtle); }
.sv-tier--dark { background: var(--bg-inverse); color: #fff; }
.sv-tier--dark .sv-list .icon { color: var(--accent); }
.sv-tier__name { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.sv-tier--dark .sv-tier__name { color: var(--accent); }
.sv-tier__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 8px; margin: 6px 0 var(--space-12); font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; }
.sv-tier__price span { font-family: inherit; font-size: 0.8125rem; font-weight: 500; opacity: 0.6; font-family: var(--font-sans); }
.sv-card--featured .sv-card__foot { border-top: 0; }
.sv-card--featured > .sv-card__head, .sv-card--featured > .sv-card__name, .sv-card--featured > .sv-card__desc, .sv-card--featured > .sv-card__foot { grid-column: 1; }
.sv-card--featured > .sv-tiers { grid-column: 2; grid-row: 1 / -1; margin-top: 0; }
.sv-card--featured > .sv-card__foot { flex-direction: column; align-items: flex-start; gap: var(--space-16); }

/* ==========================================================================
   Пакеты
   ========================================================================== */
.sv-bundles { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-subtle) 100%); }
.sv-bundles__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-16); align-items: stretch; }
.sv-bundle { position: relative; display: flex; flex-direction: column; gap: var(--space-12); padding: 32px; border-radius: var(--radius-xl); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--border); }
.sv-bundle--hl { background: var(--bg-inverse); color: #fff; box-shadow: 0 24px 48px rgba(18, 22, 20, 0.2); transform: translateY(-12px); }
.sv-bundle__flag { position: absolute; top: -14px; left: 32px; padding: 6px 12px; border-radius: var(--radius-full); background: var(--accent); color: var(--on-accent); font-size: 0.75rem; font-weight: 700; }
.sv-bundle__name { font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1; }
.sv-bundle--hl .sv-bundle__name { color: var(--accent); }
.sv-bundle__for { color: var(--text-secondary); }
.sv-bundle--hl .sv-bundle__for { color: rgba(255, 255, 255, 0.65); }
.sv-bundle__stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: var(--space-8) 0; }
.sv-bundle__stages i { height: 6px; border-radius: 3px; background: var(--border); }
.sv-bundle__stages i.on { background: var(--primary); }
.sv-bundle--hl .sv-bundle__stages i { background: rgba(255, 255, 255, 0.12); }
.sv-bundle--hl .sv-bundle__stages i.on { background: var(--accent); }
.sv-bundle--hl .sv-list .icon { color: var(--accent); }
.sv-list li.is-mon span { margin-left: auto; padding-left: 8px; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.sv-bundle--hl .sv-list li.is-mon span { color: rgba(255, 255, 255, 0.5); }
.sv-bundle__price { display: grid; gap: 8px; margin-top: auto; padding-top: var(--space-16); border-top: 1px solid var(--border); }
.sv-bundle--hl .sv-bundle__price { border-color: rgba(255, 255, 255, 0.14); }
.sv-bundle__price p { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-12); }
.sv-bundle__price span { font-size: 0.875rem; color: var(--text-muted); }
.sv-bundle--hl .sv-bundle__price span { color: rgba(255, 255, 255, 0.55); }
.sv-bundle__price b { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; white-space: nowrap; }
.sv-bundle .btn { margin-top: var(--space-8); }
.sv-bundle--hl .btn--outline { color: #fff; }

/* ==========================================================================
   Прайс
   ========================================================================== */
.sv-prices__grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: var(--space-48); align-items: start; }
.sv-prices__grid > div:first-child { position: sticky; top: calc(var(--header-top) + var(--header-h) + 32px); }
.sv-prices__text { margin: var(--space-16) 0 var(--space-32); color: var(--text-secondary); }
.sv-price { border-radius: var(--radius-xl); background: var(--bg-subtle); padding: 8px 24px 16px; }
.sv-price table { width: 100%; border-collapse: collapse; }
.sv-price th, .sv-price td { padding: 14px 8px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9375rem; }
.sv-price thead th { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.sv-price tbody th { font-weight: 600; }
.sv-price tbody th a:hover { color: var(--primary); }
.sv-price td:nth-child(2) { font-weight: 700; white-space: nowrap; }
.sv-price td:nth-child(3) { color: var(--text-muted); white-space: nowrap; }
.sv-price__group th { padding-top: 24px; font-size: 0.75rem !important; font-weight: 700 !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); }
.sv-price__promo { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: var(--radius-full); background: var(--accent-soft); color: var(--on-accent-soft); font-size: 0.6875rem; font-weight: 700; }
.sv-price__free th, .sv-price__free td { border-bottom: 0; color: var(--success-text) !important; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.sv-faq__grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: var(--space-48); }
.sv-faq__list { display: grid; gap: 8px; }
.sv-faq__item { border-radius: var(--radius-l); background: var(--bg-subtle); }
.sv-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); padding: 20px 24px; font-weight: 700; cursor: pointer; list-style: none; }
.sv-faq__item summary::-webkit-details-marker { display: none; }
.sv-faq__item summary .icon { flex: none; transition: transform var(--dur) var(--ease); }
.sv-faq__item[open] summary .icon { transform: rotate(180deg); }
.sv-faq__item p { padding: 0 24px 22px; color: var(--text-secondary); line-height: 1.6; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1199px) {
  .sv-hero__box { padding: 40px; min-height: 540px; }
  .sv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-card--featured { grid-template-columns: minmax(0, 1fr); }
  .sv-card--featured > .sv-tiers { grid-column: 1; grid-row: auto; margin-top: var(--space-12); }
}
@media (max-width: 1023px) {
  .sv-hero__box { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 320px; }
  .sv-hero__bg { inset: 0 0 auto 0; height: 440px; }
  .sv-hero__bg::after { background: linear-gradient(0deg, #01060a 0%, rgba(1, 6, 10, 0) 55%); }
  .sv-hero__chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-hero__chain li:nth-child(3) { padding-left: 0; }
  .sv-hero__chain li:nth-child(2)::after { display: none; }
  .sv-map { grid-template-columns: minmax(0, 1fr); }
  .sv-map__flow { display: none; }
  .sv-result { flex-direction: column; align-items: flex-start; }
  .sv-bundles__grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .sv-bundle--hl { transform: none; }
  .sv-prices__grid, .sv-faq__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-24); }
  .sv-prices__grid > div:first-child { position: static; }
}
@media (max-width: 767px) {
  .sv-hero__box { padding: 210px 20px 24px; border-radius: var(--radius-xl); }
  .sv-hero__bg { height: 280px; }
  .sv-hero__title { margin-top: var(--space-20, 20px); }
  .sv-hero__lead { font-size: 1rem; }
  .sv-hero__actions .btn { width: 100%; }
  .sv-hero__chain li, .sv-hero__chain li + li { padding: var(--space-16) var(--space-12) 0 0; }
  .sv-hero__chain li::after { display: none; }
  .sv-hero__chain b { font-size: 1.125rem; }
  .sv-sits { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; }
  .sv-sits::-webkit-scrollbar { display: none; }
  .sv-sit { flex: none; padding: 12px 16px; font-size: 0.9375rem; }
  .sv-result .btn { width: 100%; }
  .sv-stage { padding: 22px; }
  .sv-group__head { gap: var(--space-16); }
  .sv-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
  .sv-card--featured { grid-column: auto; padding: 24px; }
  .sv-card { padding: 24px; }
  .sv-tiers { grid-template-columns: minmax(0, 1fr); }
  .sv-card__foot { flex-wrap: wrap; }
  .sv-card--featured .sv-card__foot .btn { width: 100%; }
  .sv-bundle { padding: 28px 22px; }
  .sv-price { padding: 4px 14px 8px; overflow-x: auto; }
  .sv-price th, .sv-price td { padding: 12px 6px; font-size: 0.875rem; }
  .sv-price td:nth-child(3) { display: none; }
  .sv-price thead th:nth-child(3) { display: none; }
}
.sv-group__link { margin-left: auto; align-self: center; flex: none; }
@media (max-width: 767px) { .sv-group__head { flex-wrap: wrap; } .sv-group__link { margin-left: 0; width: 100%; } }

/* faq.css */
/* ==========================================================================
   Частые вопросы — нативный <details>, работает без JS
   ========================================================================== */

.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-64); align-items: start; }
.faq__aside { position: sticky; top: calc(var(--header-h) + var(--header-top) + 24px); display: flex; flex-direction: column; gap: var(--space-24); }
.faq__sub { color: var(--text-secondary); }

.ask-card { display: flex; flex-direction: column; gap: var(--space-16); padding: 28px; border-radius: var(--radius-xl); background: var(--bg-inverse); color: var(--text-inverse); }
.ask-card__text { color: rgba(255, 255, 255, 0.72); }
.ask-card__actions { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.ask-card .btn--ghost { color: var(--text-inverse); border-color: rgba(255, 255, 255, 0.24); }
.ask-card .btn--ghost:hover { border-color: rgba(255, 255, 255, 0.6); }

.faq__list { display: grid; gap: var(--space-8); }
.qa { border-radius: var(--radius-l); background: var(--bg-subtle); transition: background-color var(--dur) var(--ease); }
.qa[open] { background: var(--bg-raised); box-shadow: inset 0 0 0 1.5px var(--border); }
.qa__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-16);
  padding: var(--space-20) var(--space-24); cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 600; line-height: 1.35;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q:hover { color: var(--primary); }
.qa__q:focus-visible { outline-offset: -2px; border-radius: var(--radius-l); }
.qa__icon {
  position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-raised); transition: background-color 200ms ease, transform 300ms var(--ease-out);
}
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: currentColor; }
.qa__icon::after { transform: rotate(90deg); transition: transform 300ms var(--ease-out); }
.qa[open] .qa__icon { background: var(--primary); color: var(--on-primary); transform: rotate(180deg); }
.qa[open] .qa__icon::after { transform: rotate(0deg); }

.qa__a { padding: 0 var(--space-24) var(--space-24); color: var(--text-secondary); }
.qa__a p + p, .qa__a p + ul, .qa__a ul + p { margin-top: var(--space-12); }
.qa__a ul { display: grid; gap: 6px; }
.qa__a li { position: relative; padding-left: 18px; }
.qa__a li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.qa__a b { color: var(--text); font-weight: 600; }

/* Плавное раскрытие там, где браузер это умеет (Chrome 131+); в остальных — мгновенно */
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .faq__list { interpolate-size: allow-keywords; }
    .qa::details-content { height: 0; overflow: clip; transition: height 350ms var(--ease-out), content-visibility 350ms allow-discrete; }
    .qa[open]::details-content { height: auto; }
  }
}

@media (max-width: 1023px) {
  .faq__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-16); }
  .faq__aside { display: contents; }
  .faq__list { order: 2; margin-top: var(--space-16); }
  .ask-card { order: 3; margin-top: var(--space-16); }
}
@media (max-width: 767px) {
  .qa__q { padding: var(--space-16) var(--space-16) var(--space-16) var(--space-20); font-size: 1rem; }
  .qa__a { padding: 0 var(--space-20) var(--space-20); }
  .ask-card { padding: 24px; }
  .ask-card__actions .btn { flex: 1; }
}
@media (max-width: 767px) { .ask-card__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; } .ask-card__actions .btn { width: 100%; } }

/* 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; }

