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

/* pains.css */
/* ==========================================================================
   Знакомые ситуации — боли клиентов
   ========================================================================== */

.pains__accent { color: var(--primary); }

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

.pain {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-12);
  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);
}
/* Полоса сверху проявляется при наведении */
.pain::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 400ms var(--ease-out);
}
.pain:hover { background: var(--bg-raised); box-shadow: var(--shadow-s); transform: translateY(-2px); }
.pain:hover::before { transform: scaleX(1); }

.pain__ico {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--space-8);
  border-radius: var(--radius-m); background: var(--bg-raised); color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--border);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.pain:hover .pain__ico { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.pain__title { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; }
.pain__text { font-size: 0.9375rem; line-height: 1.55; color: var(--text-secondary); }
.pain__tag {
  margin-top: auto; padding: 5px 10px; border-radius: var(--radius-s, 8px);
  background: var(--accent-soft); color: var(--on-accent-soft);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.pain__text + .pain__tag { margin-top: auto; }
.pain { min-height: 100%; }
.pain__text { margin-bottom: var(--space-8); }

.pains__cta {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-24);
  margin-top: var(--space-16); padding: 24px 28px; border-radius: var(--radius-xl);
  background: var(--primary-soft); color: var(--on-primary-soft);
}
.pains__cta-text { max-width: 720px; font-size: 1.0625rem; line-height: 1.5; }
.pains__cta-text b { font-weight: 700; }
.pains__cta .btn { flex: none; }

/* Появление карточек лесенкой */
@media (prefers-reduced-motion: no-preference) {
  .js .pains__grid .pain { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); transition-delay: calc(var(--i) * 70ms); }
  .js .pains__grid.is-in .pain { opacity: 1; transform: none; }
  .js .pains__grid.is-in .pain:hover { transform: translateY(-2px); transition-delay: 0ms; }
}

@media (max-width: 1023px) {
  .pains__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .pains__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
  .pain { padding: 24px; }
  .pains__cta { flex-direction: column; align-items: stretch; padding: 24px; }
  .pains__cta .btn { width: 100%; }
}
@media (max-width: 767px) {
  .pains__grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 16px; scroll-padding-inline: var(--gutter); }
  .pains__grid::-webkit-scrollbar { display: none; }
  .pains__grid > * { flex: 0 0 82%; scroll-snap-align: start; }
  .pains__grid::after { content: ""; flex: 0 0 1px; }
  .js .pains__grid .pain { opacity: 1; transform: none; }
}

/* blog.css */
/* ==========================================================================
   Блог: главная статья + три последние
   ========================================================================== */

.blog__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-16); }
.blog__list { display: grid; gap: var(--space-16); }

.post { position: relative; display: flex; 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); }
.post:hover { background: var(--bg-raised); box-shadow: var(--shadow-s); transform: translateY(-2px); }
.post__img { display: block; overflow: hidden; background: var(--bg-brand); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.post:hover .post__img img { transform: scale(1.04); }
.post__body { display: flex; flex-direction: column; gap: var(--space-8); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.8125rem; color: var(--text-muted); }
.post__tag { padding: 3px 9px; border-radius: var(--radius-full); background: var(--primary-soft); color: var(--on-primary-soft); font-weight: 600; }
.post__title { font-weight: 700; line-height: 1.3; }
.post__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post__link:focus-visible { outline: none; }
.post:has(.post__link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.post:hover .post__title { color: var(--primary); }
.post__text { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.55; }

/* Главная статья */
.post--main { flex-direction: column; }
.post--main .post__img { aspect-ratio: 16 / 9; }
.post--main .post__body { padding: 24px 28px 28px; }
.post--main .post__title { font-size: 1.375rem; }

/* Строка в списке */
.post--row { align-items: stretch; height: 100%; }
.post--row .post__img { flex: none; width: 42%; aspect-ratio: 16 / 9; }
.post--row .post__body { justify-content: center; padding: 16px 20px; }
.post--row .post__title { font-size: 1rem; }

@media (max-width: 1023px) {
  .blog__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .post--main .post__body { padding: 20px; }
  .post--main .post__title { font-size: 1.1875rem; }
  .post--row { flex-direction: column; }
  .post--row .post__img { width: 100%; }
  .blog__list { gap: var(--space-12); }
}

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

/* legal.css */
/* ==========================================================================
   Юридические страницы: политика, согласие, соглашение
   ========================================================================== */

.legal { padding-top: var(--space-32); padding-bottom: var(--space-16); }


.legal__head { max-width: 860px; margin: var(--space-24) 0 var(--space-48); }
.legal__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); line-height: 1.1; }
.legal__lead { margin-top: var(--space-16); font-size: 1.125rem; color: var(--text-secondary); }
.legal__date { display: inline-block; margin-top: var(--space-16); padding: 6px 12px; border-radius: var(--radius-full); background: var(--bg-subtle); font-size: 0.8125rem; color: var(--text-muted); }

.legal__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-48); align-items: start; }
.legal__body { max-width: 760px; line-height: 1.65; }
.legal__body h2 { margin: var(--space-48) 0 var(--space-16); font-size: 1.375rem; font-weight: 700; line-height: 1.25; scroll-margin-top: calc(var(--header-h) + 40px); }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p + p, .legal__body p + ul, .legal__body ul + p { margin-top: var(--space-12); }
.legal__body ul { display: grid; gap: 6px; padding-left: 0; }
.legal__body li { position: relative; padding-left: 22px; }
.legal__body li::before { content: ""; position: absolute; left: 4px; top: 0.68em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.legal__body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.legal__body b { font-weight: 600; }

.legal__card { display: grid; gap: 6px; margin-top: var(--space-48); padding: var(--space-24); border-radius: var(--radius-xl); background: var(--bg-subtle); box-shadow: inset 0 0 0 1px var(--border); }
.legal__card p + p { margin-top: 0; }

.legal__aside { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: var(--space-24); }
.legal__toc { padding: var(--space-24); border-radius: var(--radius-xl); background: var(--bg-subtle); }
.legal__toc-title { margin-bottom: var(--space-12); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.legal__toc ol { display: grid; gap: 8px; padding-left: 1.25em; font-size: 0.9375rem; }
.legal__toc li::marker { color: var(--text-muted); }
.legal__toc a:hover { color: var(--primary); }
.legal__related { display: grid; gap: var(--space-8); }
.legal__related a { display: block; padding: 14px 18px; border-radius: var(--radius-l); box-shadow: inset 0 0 0 1px var(--border); font-weight: 600; transition: box-shadow var(--dur) var(--ease), color var(--dur) var(--ease); }
.legal__related a:hover { color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }

@media (max-width: 1023px) {
  .legal__layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-32); }
  .legal__aside { position: static; order: -1; }
  .legal__related { display: none; }
}
@media (max-width: 767px) {
  .legal__head { margin-bottom: var(--space-32); }
  .legal__title { font-size: clamp(1.25rem, 5.6vw, 1.75rem); overflow-wrap: anywhere; hyphens: auto; }
  .legal__lead { font-size: 1rem; }
  .legal__body h2 { margin-top: var(--space-32); font-size: 1.1875rem; }
}

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

