/* ===== 00-tokens.css ===== */
/* Дизайн-токены: светлый серо-графитовый фон, акцент «графит + стальной синий» */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Поверхности — светлее и «воздушнее», как на service-ard.ru */
  --bg: #F7F8F9;
  --bg-soft: #EFF1F3;
  --bg-deep: #E7EAED;
  --surface: #FFFFFF;
  --surface-muted: #FAFAFB;

  /* Текст */
  --ink: #14161A;
  --ink-2: #454B54;
  --ink-3: #959595;
  --ink-inverse: #FFFFFF;
  --ink-inverse-2: rgba(255, 255, 255, 0.72);

  /* Линии */
  --line: #E4E6EA;
  --line-strong: #D2D6DB;
  --line-inverse: rgba(255, 255, 255, 0.16);

  /* Акцент: стальной синий (замена красного ARDO) */
  --accent: #1E3A5F;
  --accent-hover: #172F4D;
  --accent-active: #12253C;
  --accent-soft: #E7EDF4;
  --accent-soft-2: #D5E0EC;

  /* Графит */
  --graphite: #17191D;
  --graphite-2: #22252A;
  --graphite-3: #2E3238;

  /* Служебное */
  --success: #1F6B4A;
  --warning: #8A5A12;
  --danger: #A32B2B;

  /* Геометрия — крупные радиусы, как у ARDO (карточки 30px) */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 30px;
  --radius-xl: 30px;
  --radius-card: 30px;
  --radius-media: 20px;
  --radius-pill: 999px;

  /* Тени */
  --shadow-xs: 0 1px 2px rgba(20, 22, 26, 0.04);
  --shadow-sm: 0 4px 14px rgba(20, 22, 26, 0.06);
  --shadow: 0 10px 30px rgba(20, 22, 26, 0.08);
  --shadow-lg: 0 22px 56px rgba(20, 22, 26, 0.14);

  /* Раскладка */
  --container: 1240px;
  --container-narrow: 940px;
  --gutter: 20px;
  --section-y: clamp(56px, 6.5vw, 108px);
  --header-h: 68px;

  /* Типографика */
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-h1: clamp(2.05rem, 1.35rem + 3.1vw, 3.9rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2.1vw, 3.1rem);
  --fs-h3: clamp(1.15rem, 1.02rem + 0.5vw, 1.4rem);
  --fs-lead: clamp(1rem, 0.95rem + 0.28vw, 1.18rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.8125rem;

  /* Анимация */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.22s;
}

@media (min-width: 768px) {
  :root {
    --gutter: 28px;
    --header-h: 76px;
  }
}

@media (min-width: 1200px) {
  :root {
    --gutter: 40px;
  }
}

/* ===== 01-base.css ===== */
/* Базовый слой: сброс, типографика, контейнеры, кнопки, карточки */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

img { height: auto; }

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }

ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

a:hover { color: var(--accent-hover); }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

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

/* Программный фокус на заголовках (для скринридеров) не должен рисовать рамку */
[tabindex='-1']:focus,
[tabindex='-1']:focus-visible {
  outline: none;
}

[hidden] { display: none !important; }

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------------------------------------------------------------- Раскладка */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }

.section--tight { padding-block: clamp(40px, 4.5vw, 72px); }

.section--soft { background: var(--bg-soft); }

.section--surface { background: var(--surface); }

.section--dark {
  background: var(--graphite);
  color: var(--ink-inverse);
}

.section--dark h2,
.section--dark h3 { color: var(--ink-inverse); }

.section--dark p { color: var(--ink-inverse-2); }

.section__head {
  max-width: 760px;
  margin-bottom: clamp(28px, 3.4vw, 52px);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

/* Центрированная метка с чёрточкой по бокам — как «КАТАЛОГ ТЕХНИКИ» на ARDO */
.section__head--center .eyebrow {
  justify-content: center;
}

.section__head--center .eyebrow::after {
  content: '';
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}

.section--dark .section__head--center .eyebrow::after { background: #8FA6BF; }

.section__head p {
  margin-top: 18px;
  font-size: var(--fs-lead);
  color: var(--ink-2);
  max-width: 62ch;
}

.section__head--center p { margin-inline: auto; }

.section--dark .section__head p { color: var(--ink-inverse-2); }

/* ---------------------------------------------------------------- Метки
   Как на ARDO: короткая акцентная чёрточка + uppercase, без плашки */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}

.section--dark .eyebrow {
  background: none;
  border-color: transparent;
  color: var(--ink-inverse-2);
}

.section--dark .eyebrow::before { background: #8FA6BF; }

/* ---------------------------------------------------------------- Кнопки */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: var(--shadow-xs);
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active { transform: translateY(0); }

.btn--lg {
  min-height: 58px;
  padding: 17px 34px;
  font-size: 1rem;
}

.btn--sm {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.875rem;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--line-strong);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--ink-3);
  color: var(--ink);
}

.btn--dark {
  --btn-bg: var(--graphite);
  --btn-fg: #fff;
}

.btn--dark:hover { background: #101316; color: #fff; }

.btn--on-dark {
  --btn-bg: #fff;
  --btn-fg: var(--graphite);
  box-shadow: none;
}

.btn--on-dark:hover { background: #E9EDF2; color: var(--graphite); }

.btn--on-dark-ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-border: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.btn--on-dark-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn--block { width: 100%; }

.btn svg { flex: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------------------------------------------------------- Карточки */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.card--flat { box-shadow: none; }

.card--pad { padding: clamp(20px, 2.4vw, 30px); }

/* ---------------------------------------------------------------- Сетки */
.grid { display: grid; gap: 16px; }

@media (min-width: 640px) {
  .grid { gap: 20px; }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- Утилиты */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--graphite);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus-visible { transform: translateY(0); color: #fff; }

.accent-text { color: var(--accent); }

.muted { color: var(--ink-3); }

.no-scroll-x { overflow-x: clip; }

/* ---------------------------------------------------------------- Мобильная панель */
.mobile-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.mobile-bar__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.mobile-bar__call:hover { background: var(--accent-hover); color: #fff; }

.mobile-bar__tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  min-height: 50px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--accent);
}

@media (min-width: 900px) {
  .mobile-bar { display: none !important; }
}

@media (max-width: 899px) {
  body { padding-bottom: 76px; }
}

/* ---------------------------------------------------------------- Анимация появления */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    will-change: opacity, transform;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

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

/* ---------------------------------------------------------------- Печать */
@media print {
  .mobile-bar, .header, .btn { display: none !important; }
  body { background: #fff; padding: 0; }
}

/* ===== 10-header.css ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(27, 31, 36, 0.02);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

/* ---------------------------------------------------------------- Бренд */
.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex: none;
}

.header__brand:hover { color: var(--ink); }

.header__logo {
  width: 38px;
  height: 38px;
  flex: none;
}

.header__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.header__name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.header__role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

/* ---------------------------------------------------------------- Навигация */
.header__nav {
  display: none;
}

.header__nav-link {
  position: relative;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 0;
  white-space: nowrap;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.header__nav-link:hover { color: var(--ink); }

.header__nav-link:hover::after { transform: scaleX(1); }

.header__nav-foot { display: none; }

/* ---------------------------------------------------------------- Действия */
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header__phone {
  display: none;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.header__phone:hover { color: var(--accent); }

.header__phone-icon { color: var(--accent); }

.header__cta { display: none; }

/* Круглая кнопка звонка рядом с бургером (мобильная и планшетная версия) */
.header__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.28);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.header__call:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.header__call:active { transform: translateY(0); }

.header__call svg { flex: none; }

/* ---------------------------------------------------------------- Бургер */
.header__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -4px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.header__burger:hover {
  background: var(--surface-muted);
  border-color: var(--ink-3);
}

.header__burger[aria-expanded='true'] {
  background: var(--accent-soft);
  border-color: var(--accent-soft-2);
  color: var(--accent);
}

.header__burger-box {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.header__burger-box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), top var(--dur) var(--ease);
}

.header__burger-box span:nth-child(1) { top: 0; }
.header__burger-box span:nth-child(2) { top: 5px; }
.header__burger-box span:nth-child(3) { top: 10px; }

.header__burger[aria-expanded='true'] .header__burger-box span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

.header__burger[aria-expanded='true'] .header__burger-box span:nth-child(2) {
  opacity: 0;
}

.header__burger[aria-expanded='true'] .header__burger-box span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

/* ---------------------------------------------------------------- Мобильное меню */
@media (max-width: 899px) {
  /* backdrop-filter у шапки создаёт containing block для position: fixed —
     из-за этого меню схлопывалось. На мобиле отключаем его. */
  .header,
  .header.is-scrolled {
    backdrop-filter: none;
    background: var(--surface);
  }

  .header__nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 79;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
      visibility var(--dur) var(--ease);
  }

  .header__nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .header__nav-link {
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ink);
  }

  .header__nav-link::after { display: none; }

  .header__nav-foot {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
    padding-top: 22px;
  }

  .header__nav-phone {
    color: var(--ink);
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .header__nav-hours {
    color: var(--ink-3);
    font-size: 0.8125rem;
    margin-bottom: 10px;
  }

  /* Кнопки мессенджеров внизу мобильного меню */
  .header__nav-mess {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
  }

  .header__mess {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 700;
  }

  .header__mess:hover {
    color: var(--ink);
    border-color: var(--ink-3);
    background: var(--surface-muted);
  }

  .header__mess--tg:hover { color: var(--accent); border-color: var(--accent-soft-2); }
  .header__mess--max:hover { color: var(--accent); border-color: var(--accent-soft-2); }

  .header__mess svg { flex: none; }
}

/* ---------------------------------------------------------------- Десктоп */
@media (min-width: 900px) {
  .header__burger { display: none; }

  .header__nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-inline: auto;
  }

  .header__phone { display: inline-flex; }

  /* На десктопе номер уже показан текстом — круглая кнопка не нужна */
  .header__call { display: none; }
}

@media (min-width: 1080px) {
  .header__cta { display: inline-flex; }
  .header__nav { gap: 30px; }
}

@media (min-width: 1200px) {
  .header__logo { width: 42px; height: 42px; }
  .header__name { font-size: 1rem; }
}

/* ===== 11-hero.css ===== */
/* ---------------------------------------------------------------- HERO
   Как на service-ard.ru: тёмный первый экран на всю ширину, текст слева,
   справа — карточка. У нас вместо формы «Быстрая заявка» стоит фото мастера.

   Мобильные и планшеты (до 900px): текст сверху, ниже — фото во всю ширину.
   Фото служит подложкой блока .hero__foot, поэтому продолжается вниз ПОД
   стеклянными капсулами и ещё немного ниже них. Кадр запекается скриптом
   scripts/prepare_hero_mobile.py. */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--graphite);
  color: var(--ink-inverse);
}

/* Низ героя: фото-подложка + капсулы поверх неё */
.hero__foot {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Фото-подложка: на весь .hero__foot. Сверху растворяется в графите,
   чтобы стык с текстом не читался. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../img/hero-mobile-bg-1400.webp');
  background-size: cover;
  background-position: var(--hero-bg-pos-x, 50%) var(--hero-bg-pos-y, 0%);
  background-repeat: no-repeat;
  transform: none;
  -webkit-mask-image: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 18%,
    rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 18%,
    rgba(0, 0, 0, 1) 100%);
}

/* Скрим не нужен — края гасит маска. */
.hero__bg::after { content: none; }

.hero__inner {
  padding-block: 34px 0;
}

.hero__content { max-width: 640px; }

/* Метка */
.hero__eyebrow { color: rgba(255, 255, 255, 0.78); }

.hero__eyebrow::before { background: #9DB4CD; }

/* Заголовок — крупный и плотный, как у ARDO */
.hero__title {
  margin-top: 20px;
  color: var(--ink-inverse);
  font-size: clamp(1.95rem, 1.4rem + 2.6vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Подзаголовок — на мобильных и планшетах во всю ширину: текст переносится
   свободно и не залезает под фото (фото теперь отдельной полосой ниже). */
.hero__lead {
  margin-top: 18px;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
  line-height: 1.58;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

/* Кнопки */
.hero__actions {
  margin-top: 26px;
  margin-left: -6px;   /* чуть левее, как просил заказчик */
}

.hero__actions .btn {
  min-height: 46px;
  padding: 11px 22px;
  font-size: 0.9rem;
}

.hero__btn-main {
  --btn-bg: #ffffff;
  --btn-fg: var(--graphite);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.26);
}

.hero__btn-main:hover { background: #EDF1F5; color: var(--graphite); }

.hero__btn-second {
  --btn-bg: rgba(255, 255, 255, 0.07);
  --btn-fg: #fff;
  --btn-border: rgba(255, 255, 255, 0.34);
  box-shadow: none;
  backdrop-filter: blur(4px);
}

.hero__btn-second:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

/* Микрострока */
.hero__meta {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* Фото на мобиле не дублируем — оно уже в фоне */
.hero__media { display: none; }

/* Плашки-цифры
   Как у ARDO: стеклянные «капсулы» с крупной цифрой.
   Полупрозрачные, но с достаточным контрастом — заказчик просил
   «чуть более прозрачными, но чтобы не сливались».
   Лежат ПОВЕРХ фото-подложки: фото продолжается и под ними, и ниже. */
.hero__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  /* отступ сверху — видимая зона фото над капсулами (там мастер и голова),
     снизу — полоска фото под капсулами */
  padding-top: clamp(190px, 54vw, 300px);
  padding-bottom: clamp(40px, 9vw, 70px);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-card);
  background: rgba(22, 26, 32, 0.42);
  backdrop-filter: blur(14px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero__stat-value {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero__stat-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.6875rem;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* ---------------------------------------------------------------- Планшет
   640–899px: та же схема — текст сверху, фото-подложка под ним и под
   капсулами, только капсулы крупнее и зона фото выше. */
@media (min-width: 640px) {
  .hero__inner { padding-block: 52px 0; }
  .hero__lead { font-size: 1rem; }
  .hero__stats {
    gap: 12px;
    padding-top: clamp(250px, 44vw, 380px);
    padding-bottom: clamp(48px, 7vw, 76px);
  }
  .hero__stat { padding: 16px 18px; }
  .hero__stat-value { font-size: 1.375rem; }
  .hero__stat-label { font-size: 0.75rem; }

  .hero__bg { background-position: 50% 0%; }
}

/* ---------------------------------------------------------------- Десктоп: тёмный экран как у ARDO */
@media (min-width: 900px) {
  .hero {
    display: block;
    background: var(--graphite);
    color: var(--ink-inverse);
  }

  /* Обёртка «фото + капсулы» нужна только на мобильных: на десктопе
     растворяем её, чтобы капсулы и фон вели себя как раньше. */
  .hero__foot { display: contents; }

  /* На десктопе фото снова становится фоном всей секции */
  .hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url('../img/hero-bg-desktop-1600.webp');
    background-position: 50% 40%;
    background-size: cover;
    filter: none;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 100% at 78% 18%, rgba(88, 96, 108, 0.28) 0%, rgba(20, 23, 27, 0) 62%);
  }

  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    align-items: center;
    gap: clamp(32px, 4vw, 72px);
    padding-block: clamp(56px, 6vw, 92px) clamp(40px, 4.4vw, 64px);
  }

  .hero__content { max-width: 660px; }

  .hero__eyebrow { color: rgba(255, 255, 255, 0.75); }
  .hero__eyebrow::before { background: #9DB4CD; }

  .hero__title {
    margin-top: 24px;
    color: #fff;
    font-size: clamp(2.5rem, 1.5rem + 2.5vw, 3.7rem);
    line-height: 1.04;
    text-shadow: none;
  }

  .hero__lead {
    margin-top: 22px;
    max-width: 17.5em;
    color: rgba(255, 255, 255, 0.76);
    font-size: var(--fs-lead);
    line-height: 1.62;
  }

  .hero__actions { margin-top: 30px; }

  .hero__actions .btn {
    min-height: 50px;
    padding: 13px 26px;
    font-size: 0.9375rem;
  }

  .hero__btn-main {
    --btn-bg: var(--accent);
    --btn-fg: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  }

  .hero__btn-main:hover { background: var(--accent-hover); color: #fff; }

  .hero__btn-second {
    --btn-bg: rgba(255, 255, 255, 0.07);
    --btn-fg: #fff;
    --btn-border: rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(4px);
  }

  .hero__btn-second:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
  }

  .hero__meta { color: rgba(255, 255, 255, 0.55); }

  /* Фото-карточка на месте формы ARDO */
  .hero__media {
    display: block;
    margin: 0;
    min-width: 0;
  }

  .hero__photo {
    position: relative;
    aspect-ratio: 4 / 5;
    max-height: min(600px, 66vh);
    margin-inline: auto;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--graphite-2);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.4);
  }

  .hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 26%;
  }

  .hero__badge {
    position: absolute;
    left: 14px;
    top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px 9px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    color: var(--graphite);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  }

  .hero__badge svg { color: var(--accent); flex: none; }

  /* Подпись — поверх нижней части фото, как плашка */
  .hero__caption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: rgba(20, 23, 27, 0.72);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
  }

  .hero__caption strong {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
  }

  .hero__caption span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.66);
  }

  /* Плашки-цифры: крупнее и шире, выровнены по тексту */
  .hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: start;
    gap: 16px;
    padding-top: 0;
    padding-bottom: clamp(44px, 5vw, 72px);
  }

  .hero__stat {
    gap: 7px;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius-card);
    background: rgba(22, 26, 32, 0.46);
    backdrop-filter: blur(16px) saturate(120%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .hero__stat-value {
    color: #fff;
    font-size: clamp(1.5rem, 1.15rem + 0.9vw, 1.95rem);
    line-height: 1.1;
  }

  .hero__stat-label {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.875rem;
    line-height: 1.35;
  }

  /* Акцентная плашка «на 20–30% дешевле» */
  .hero__stat--accent {
    border-color: rgba(157, 180, 205, 0.45);
    background:
      linear-gradient(180deg, rgba(157, 180, 205, 0.16) 0%, rgba(157, 180, 205, 0.05) 100%),
      rgba(255, 255, 255, 0.07);
  }

  .hero__stat--accent .hero__stat-value {
    font-size: clamp(1.15rem, 0.95rem + 0.6vw, 1.5rem);
    color: #CFE0F2;
  }
}

@media (min-width: 1200px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); }
  .hero__title { font-size: 3.85rem; }
  .hero__photo { max-height: 640px; }
}

/* ===== 12-types.css ===== */
/* Секция «Что ремонтируем» — объединена с брифом-квизом.
   Плитки техники здесь же являются шагом 1 квиза. */

.types-quiz {
  background: var(--bg);
  /* Заказчик: «сделай внизу меньше свободного места, отрежь немного пустую область» —
     нижний отступ секции урезан примерно на треть, верхний воздух не трогаем. */
  padding-bottom: calc(var(--section-y) * 0.62);
}

.types-quiz__head {
  max-width: 720px;
  margin-bottom: clamp(24px, 2.8vw, 40px);
}

/* ---------------------------------------------------------------- Карточка брифа */
.types-quiz__card {
  padding: clamp(18px, 2.2vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------------- Плитки техники */
.types-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.types-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 16px 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.types-card:hover {
  border-color: var(--accent-soft-2);
  background: var(--surface-muted);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.types-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.types-card--primary {
  border-color: var(--accent-soft-2);
  background:
    linear-gradient(180deg, rgba(228, 235, 243, 0.55) 0%, rgba(255, 255, 255, 0) 70%),
    var(--surface);
}

/* Выбранная плитка */
.types-card.is-selected,
.types-card[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--accent-soft-2);
}

.types-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

.types-icon svg { width: 21px; height: 21px; }

.types-card--primary .types-icon {
  background: var(--accent);
  color: #fff;
}

.types-card.is-selected .types-icon,
.types-card[aria-pressed='true'] .types-icon {
  background: var(--accent);
  color: #fff;
}

.types-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.types-text {
  display: block;
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
}

/* ---------------------------------------------------------------- Подписи под брифом */
.types-quiz__note {
  margin-top: 18px;
  text-align: center;
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.5;
}

.types-quiz__note strong {
  color: var(--accent);
  font-weight: 800;
}

.types-quiz__ask {
  margin-top: 8px;
  text-align: center;
  color: var(--ink-3);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.types-quiz__ask a {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 1px solid var(--accent-soft-2);
}

.types-quiz__ask a:hover { border-bottom-color: var(--accent); }

/* ---------------------------------------------------------------- Планшет */
@media (min-width: 641px) {
  .types-grid { gap: 14px; }
  .types-card { padding: 20px 18px 18px; gap: 7px; }
  .types-icon { width: 42px; height: 42px; }
  .types-icon svg { width: 24px; height: 24px; }
  .types-title { font-size: 1rem; }
  .types-text { font-size: 0.8125rem; }
}

/* Плитки техники живут внутри карточки квиза, поэтому перебиваем
   общее правило .quiz-options (оно задаёт 2 колонки для шага с симптомами). */
@media (min-width: 900px) {
  .quiz-options.types-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1180px) {
  .quiz-options.types-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }

  .types-card { padding: 20px 16px 18px; }
  .types-text { font-size: 0.75rem; }
}

/* ---------------------------------------------------------------- Мобильный бриф
   Заказчик: «сделай для мобильной версии этот блок чуть компактнее, удобнее».
   Ужимаем отступы карточки, плиток и заголовка шага, чтобы блок занимал
   заметно меньше высоты на телефоне. Селекторы с .types-quiz — чтобы
   перебить базовые правила квиза из 20-quiz.css. */
@media (max-width: 640px) {
  .types-quiz {
    padding-bottom: calc(var(--section-y) * 0.6);
  }

  .types-quiz__head {
    margin-bottom: 14px;
  }

  .types-quiz .types-quiz__card {
    padding: 11px 11px 12px;
    border-radius: var(--radius);
  }

  .types-quiz .quiz-step {
    padding-top: 8px;
  }

  .types-quiz .quiz-meta {
    margin-top: 9px;
  }

  .types-quiz .quiz-step-hint {
    margin-top: 5px;
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .types-quiz .quiz-options.types-grid {
    gap: 7px;
    margin-top: 10px;
  }

  .types-card {
    gap: 4px;
    padding: 10px 10px 11px;
    border-radius: var(--radius-sm);
  }

  .types-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
    border-radius: var(--radius-xs);
  }

  .types-icon svg {
    width: 17px;
    height: 17px;
  }

  .types-title {
    font-size: 0.875rem;
    line-height: 1.22;
  }

  .types-text {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .types-quiz__note {
    margin-top: 10px;
    font-size: 0.8125rem;
  }

  .types-quiz__ask {
    margin-top: 5px;
    font-size: 0.75rem;
  }
}

/* ===== 20-quiz.css ===== */
/* Квиз-бриф: три шага, прогресс, растущая скидка */

.quiz-section {
  background: var(--bg);
}

.quiz-layout {
  display: grid;
  gap: clamp(26px, 3.4vw, 56px);
  align-items: start;
}

@media (min-width: 1024px) {
  .quiz-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    gap: clamp(40px, 4.4vw, 72px);
  }
}

/* ---------------------------------------------------------------- Интро */
.quiz-intro {
  max-width: 560px;
}

.quiz-title {
  margin-top: 18px;
}

.quiz-lead {
  margin-top: 14px;
  font-size: var(--fs-lead);
  color: var(--ink-2);
}

.quiz-points {
  display: grid;
  gap: 14px;
  margin-top: clamp(20px, 2.4vw, 30px);
}

.quiz-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.quiz-point-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--accent);
}

.quiz-point-body {
  display: grid;
  gap: 2px;
  padding-top: 1px;
}

.quiz-point-title {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.quiz-point-text {
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.quiz-note {
  margin-top: clamp(18px, 2.2vw, 26px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: var(--fs-xs);
}

/* ---------------------------------------------------------------- Карточка
   Ширина задаётся секцией-хостом: в объединённом блоке «Что ремонтируем + бриф»
   карточка занимает всю ширину контейнера. */
.quiz-card {
  width: 100%;
  margin-inline: auto;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.quiz-progress {
  height: 6px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--bg-deep);
}

.quiz-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

.quiz-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.quiz-counter {
  color: var(--ink-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.quiz-counter-item {
  display: none;
}

.quiz-card:not([data-current-step]) .quiz-counter-item-1,
.quiz-card[data-current-step="1"] .quiz-counter-item-1,
.quiz-card[data-current-step="2"] .quiz-counter-item-2,
.quiz-card[data-current-step="3"] .quiz-counter-item-3 {
  display: inline;
}

.quiz-discount {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.quiz-discount-value {
  min-width: 2.4em;
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ---------------------------------------------------------------- Шаги */
.quiz-step {
  padding-top: clamp(16px, 2vw, 24px);
}

.quiz-step-title {
  margin: 0;
  color: var(--ink);
}

/* Заголовок шага и экран успеха получают фокус скриптом (tabindex="-1")
   для скринридеров — рамку фокуса на них не рисуем. */
.quiz-step-title:focus,
.quiz-success:focus {
  outline: none;
}

.quiz-step-hint {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.quiz-options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

@media (min-width: 640px) {
  .quiz-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quiz-options:not(.quiz-options-symptoms) .quiz-option:first-child {
    grid-column: 1 / -1;
  }
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.quiz-option:hover {
  border-color: var(--accent);
  background: var(--surface-muted);
}

.quiz-option.is-selected,
.quiz-option[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.quiz-option-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--accent);
  transition: background-color var(--dur) var(--ease);
}

.quiz-option.is-selected .quiz-option-icon,
.quiz-option[aria-pressed="true"] .quiz-option-icon {
  background: var(--surface);
}

.quiz-option-text {
  display: block;
  min-width: 0;
}

.quiz-options-symptoms .quiz-option {
  min-height: 50px;
  padding: 13px 16px;
}

.quiz-step-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 2px;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: color var(--dur) var(--ease);
}

.quiz-back:hover {
  color: var(--accent);
}

/* ---------------------------------------------------------------- Форма */
.quiz-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.quiz-field {
  display: grid;
  gap: 7px;
}

.quiz-label {
  color: var(--ink-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.quiz-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.quiz-input::placeholder {
  color: var(--ink-3);
  font-weight: 400;
}

.quiz-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.quiz-input[aria-invalid="true"] {
  border-color: var(--graphite);
}

.quiz-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-2);
  font-size: var(--fs-xs);
  line-height: 1.45;
  cursor: pointer;
}

.quiz-checkbox {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Ошибка формы: без красного — графитовая плашка с «!» в круге.
   Текст в неё подставляет main.js, поэтому маркер задаём через ::before. */
.quiz-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.45;
}

.quiz-error::before {
  content: '!';
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: var(--radius-pill);
  background: var(--graphite);
  color: var(--ink-inverse);
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1;
}

.quiz-submit {
  margin-top: 2px;
}

.quiz-form-note {
  color: var(--ink-3);
  font-size: var(--fs-xs);
  line-height: 1.45;
  text-align: center;
}

/* ---------------------------------------------------------------- Успех */
.quiz-success {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(14px, 2.6vw, 26px) 0 clamp(4px, 1.2vw, 12px);
  text-align: center;
}

.quiz-success-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
}

.quiz-success-title {
  font-size: var(--fs-h3);
  color: var(--ink);
}

.quiz-success-text {
  max-width: 44ch;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.quiz-success-text a {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.quiz-success-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

/* ---------------------------------------------------------------- Мобильные мелочи */
@media (max-width: 479px) {
  .quiz-card {
    padding: 16px;
    border-radius: var(--radius);
  }

  .quiz-option {
    gap: 10px;
    padding: 10px 12px;
    font-size: 0.9375rem;
  }

  .quiz-option-icon {
    width: 32px;
    height: 32px;
  }

  .quiz-option-icon svg {
    width: 19px;
    height: 19px;
  }
}

/* ===== 21-prices.css ===== */
/* Цены: прайс-лист тонкими линиями + плашка о сложности работы */

.prices-section {
  background: var(--surface);
  /* Заказчик: «сделай, чтобы сверху и снизу было меньше пустого свободного места
     у этого блока» — вертикальные отступы секции урезаны примерно на треть. */
  padding-block: calc(var(--section-y) * 0.7);
}

.prices-head {
  max-width: 760px;
  margin-bottom: clamp(22px, 2.8vw, 38px);
}

.prices-lead {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: var(--fs-lead);
}

/* ---------------------------------------------------------------- Таблица */
.prices-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 1rem;
}

.prices-th {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-align: left;
  text-transform: uppercase;
  vertical-align: bottom;
}

.prices-th-price {
  width: 176px;
  text-align: right;
}

.prices-th-unit {
  width: 104px;
  text-align: right;
}

.prices-th-short {
  display: none;
}

.prices-group-row .prices-group {
  padding: clamp(26px, 3vw, 36px) 0 8px;
  border: 0;
  font-weight: 400;
  text-align: left;
}

.prices-table tbody:first-of-type .prices-group {
  padding-top: clamp(20px, 2.2vw, 28px);
}

.prices-group-title {
  color: var(--ink);
}

/* Строк немного, поэтому дышим вертикалью: 18–22px на строку */
.prices-row .prices-service,
.prices-row .prices-price,
.prices-row .prices-unit {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  vertical-align: middle;
}

.prices-service {
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.45;
  text-align: left;
}

.prices-price {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.prices-price-accent {
  color: var(--accent);
}

.prices-unit {
  color: var(--ink-3);
  font-size: var(--fs-sm);
  text-align: right;
  white-space: nowrap;
}

/* Конец группы — линия чуть заметнее */
.prices-row:last-child .prices-service,
.prices-row:last-child .prices-price,
.prices-row:last-child .prices-unit {
  border-bottom-color: var(--line-strong);
}

/* ---------------------------------------------------------------- Плашка */
.prices-note {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.6vw, 18px);
  margin-top: clamp(26px, 3.2vw, 40px);
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.prices-note-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
}

.prices-note-body {
  display: grid;
  gap: 6px;
}

.prices-note-title {
  max-width: 60ch;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.prices-note-text {
  max-width: 72ch;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* ---------------------------------------------------------------- Мобильный прайс
   Компактнее: меньше отступы строк, уже колонки, мельче шрифт. */
@media (max-width: 599px) {
  .prices-section {
    padding-block: calc(var(--section-y) * 0.55);
  }

  .prices-table {
    font-size: 0.875rem;
  }

  .prices-th {
    padding-bottom: 8px;
    font-size: 0.625rem;
    letter-spacing: 0.03em;
  }

  .prices-th-long {
    display: none;
  }

  .prices-th-short {
    display: inline;
  }

  .prices-th-price {
    width: 78px;
    padding-left: 8px;
  }

  .prices-th-unit {
    width: 34px;
    padding-left: 6px;
  }

  .prices-group-row .prices-group {
    padding: 16px 0 4px;
    font-size: 1rem;
  }

  .prices-table tbody:first-of-type .prices-group {
    padding-top: 10px;
  }

  .prices-row .prices-service {
    padding: 11px 8px 11px 0;
    font-size: 0.875rem;
    line-height: 1.35;
  }

  .prices-row .prices-price {
    padding: 11px 0 11px 8px;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .prices-row .prices-unit {
    padding: 11px 0 11px 6px;
    font-size: 0.75rem;
  }

  .prices-note {
    margin-top: 18px;
    padding: 16px 14px;
  }

  .prices-note {
    gap: 12px;
    border-radius: var(--radius);
  }

  .prices-note-icon {
    width: 40px;
    height: 40px;
  }

  .prices-note-icon svg {
    width: 20px;
    height: 20px;
  }

  .prices-note-title {
    font-size: 0.95rem;
  }
}

/* ===== 30-about.css ===== */
/* ABOUT — «Кто я и почему стоит верить»: личный бренд, спокойная светлая карточка */

/* Заказчик: «сверху и снизу чуть меньше свободного пустого места».
   Вертикальный отступ секции уменьшен примерно на 28% относительно --section-y,
   пропорции сохранены на всех разрешениях. */
.section.about {
  padding-block: clamp(40px, 4.6vw, 78px);
}

.about__grid {
  display: grid;
  gap: clamp(24px, 3.4vw, 40px);
}

/* Обёртка фото+марки нужна только на десктопе; на мобиле раскрываем её,
   чтобы порядок был: фото → текст → марки */
.about__aside {
  display: contents;
}

.about__media { order: 1; }
.about__body { order: 2; }
.about__brands { order: 3; }

/* ---------------------------------------------------------------- Фото
   Кадр фиксированного формата 4:5: фото не растягивается по высоте текста,
   мастер показан чуть отдалённо, без обрезки головы и «в обрез» по груди. */
.about__media {
  position: relative;
  margin: 0;
}

.about__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
}

.about__frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.about__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}

.about__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-xs);
}

.about__caption-name {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
}

.about__caption-role {
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- Текст */
.about__title {
  margin-top: 14px;
}

.about__lead {
  margin-top: clamp(14px, 1.8vw, 18px);
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}

.about__text {
  margin-top: 12px;
  line-height: 1.62;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- Факты */
.about__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(20px, 2.4vw, 28px);
}

.about__fact {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-muted);
}

.about__fact-value {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--accent);
}

.about__fact-text {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- Цитата */
.about__quote {
  margin-top: clamp(20px, 2.4vw, 28px);
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent-soft);
}

.about__quote p {
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.5;
  color: var(--accent);
}

/* ---------------------------------------------------------------- Бренды */
.about__brands {
  margin-top: 0;
  padding-top: clamp(18px, 2.2vw, 24px);
  border-top: 1px solid var(--line);
}

.about__brands-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.about__brands-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.about__brand {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
}

/* ---------------------------------------------------------------- Адаптив */
@media (min-width: 480px) {
  .about__fact { padding: 16px 18px; }
  .about__fact-value { font-size: 1.0625rem; }
}

/* На планшете фото не должно занимать весь первый экран: держим его компактным */
@media (min-width: 640px) and (max-width: 899px) {
  .about__media {
    max-width: 480px;
    margin-inline: auto;
  }
}

/* Десктоп: слева фото 4:5 и марки, справа текст. Колонки выровнены по верху,
   фото не тянется по высоте текста — пропорции кадра всегда 4:5. */
@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
    column-gap: clamp(32px, 4vw, 60px);
  }

  .about__aside {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2.4vw, 30px);
    min-width: 0;
  }

  .about__lead { margin-top: 20px; }
}

/* ===== 31-reports.css ===== */
/* REPORTS — фотоотчёты с выездов: 1 колонка на мобиле, 2 на планшете и десктопе */

.reports__head {
  max-width: 640px;
}

.reports__grid {
  display: grid;
  gap: 16px;
}

/* ---------------------------------------------------------------- Карточка */
.reports-card {
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.reports-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.reports-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
}

.reports-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reports-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 1.8vw, 22px);
}

.reports-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.reports-card__brand {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reports-card__time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.reports-card__time svg {
  flex: none;
  color: var(--accent);
}

.reports-card__title {
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--ink);
}

.reports-card__text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.reports-card__label {
  font-weight: 700;
  color: var(--ink);
}

/* ---------------------------------------------------------------- Адаптив */
@media (min-width: 640px) {
  .reports__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1200px) {
  .reports__grid { gap: 24px; }
  .reports-card__title { font-size: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reports-card:hover { transform: none; }
}

/* ===== 32-docs.css ===== */
/* DOCS вЂ” РјР°Р»РµРЅСЊРєРёР№ Р±Р»РѕРє: Р°РєС‚ Рё РіР°СЂР°РЅС‚РёР№РЅС‹Р№ С‚Р°Р»РѕРЅ, 3 С„РѕС‚Рѕ РІ СЂСЏРґ */

.docs__inner {
  display: grid;
  gap: clamp(20px, 2.8vw, 32px);
}

.docs__head {
  max-width: 560px;
  margin-bottom: 0;
}

.docs__head p {
  margin-top: 12px;
  font-size: var(--fs-body);
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- Р¤РѕС‚Рѕ */
.docs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.docs__item {
  margin: 0;
}

.docs__frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.docs__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.docs__cap {
  margin-top: 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- РђРґР°РїС‚РёРІ */
@media (min-width: 640px) {
  .docs__grid { gap: 14px; }
  .docs__cap { font-size: var(--fs-sm); }
}

@media (min-width: 900px) {
  .docs__inner {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
  }

  .docs__grid { gap: 16px; }
}

/* ===== 40-safety.css ===== */
/* SAFETY — тёмный блок: что делать первым делом при протечке, гари, отключении автомата.
   Компактный по высоте: главный акцент — предупреждение с крупным «!» в круге,
   без кнопок. Панель «Пока еду — три правила» только на десктопе (>=900px). */

.safety {
  padding-block: clamp(40px, 4.7vw, 72px);
}

.safety__grid {
  display: grid;
  gap: clamp(20px, 2.6vw, 32px);
  align-items: center;
}

.safety__eyebrow {
  margin-bottom: clamp(12px, 1.4vw, 16px);
}

.safety__title {
  max-width: 26ch;
  font-size: clamp(1.35rem, 1.1rem + 1.15vw, 1.95rem);
  letter-spacing: -0.02em;
}

/* Ключевой акцент блока: крупный значок «!» в круге + само предупреждение */
.safety__urgent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 1.4vw, 18px);
  max-width: 34rem;
  margin-top: clamp(14px, 1.7vw, 20px);
}

.safety__alert {
  display: block;
  flex: none;
  width: clamp(44px, 3.9vw, 56px);
  height: clamp(44px, 3.9vw, 56px);
}

.safety__alert-svg {
  width: 100%;
  height: 100%;
}

.safety__alert-disc {
  fill: var(--accent-soft-2);
}

.safety__alert-bar {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.safety__alert-dot {
  fill: var(--accent);
}

/* селектор сильнее, чем `.section--dark p` из base.css */
.safety__urgent .safety__urgent-text {
  font-size: clamp(1.05rem, 0.98rem + 0.6vw, 1.38rem);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: var(--ink-inverse);
  text-wrap: pretty;
}

.safety__text {
  max-width: 58ch;
  margin-top: clamp(12px, 1.5vw, 16px);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* Панель с правилами — только на десктопе */
.safety__panel {
  display: none;
  padding: clamp(18px, 1.8vw, 24px);
  border: 1px solid var(--line-inverse);
  border-radius: var(--radius-lg);
  background: var(--graphite-2);
}

.safety__panel .safety__panel-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink-inverse);
}

.safety__list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.safety__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.safety__num {
  padding-top: 2px;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: var(--accent-soft-2);
}

.safety__item-text {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--ink-inverse-2);
}

@media (min-width: 900px) {
  .safety__grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr);
    gap: clamp(28px, 3.4vw, 52px);
  }

  .safety__panel {
    display: block;
  }
}

/* ===== 41-cta.css ===== */
/* CTA — финальный блок: крупный телефон, мессенджеры, форма обратного звонка */

.cta {
  border-top: 1px solid var(--line-inverse);
}

.cta__grid {
  display: grid;
  gap: clamp(28px, 3.6vw, 48px);
  align-items: start;
}

@media (min-width: 900px) {
  .cta__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 424px);
    gap: clamp(32px, 4vw, 64px);
  }
}

@media (min-width: 1200px) {
  .cta__grid {
    grid-template-columns: minmax(0, 1fr) 460px;
  }
}

.cta__eyebrow {
  margin-bottom: clamp(16px, 2vw, 22px);
}

.cta__title {
  max-width: 22ch;
}

.cta__sub {
  max-width: 46ch;
  margin-top: 16px;
  font-size: var(--fs-lead);
  line-height: 1.55;
}

/* ---------------------------------------------------------------- Телефон */
.cta__phone {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 16px);
  margin-top: clamp(22px, 2.8vw, 32px);
  color: var(--ink-inverse);
  font-size: clamp(1.55rem, 1rem + 2.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  transition: color var(--dur) var(--ease);
}

.cta__phone:hover {
  color: var(--accent-soft-2);
}

.cta__phone-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(44px, 5vw, 54px);
  height: clamp(44px, 5vw, 54px);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.cta__phone-icon svg {
  width: 52%;
  height: 52%;
}

.cta__hours {
  max-width: 44ch;
  margin-top: 12px;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

/* ---------------------------------------------------------------- Мессенджеры */
.cta__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(20px, 2.6vw, 28px);
}

.cta__mess {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid var(--line-inverse);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-inverse);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.cta__mess:hover {
  border-color: var(--ink-inverse-2);
  background: var(--graphite-3);
  color: var(--ink-inverse);
}

.cta__mess-icon {
  flex: none;
  opacity: 0.92;
}

/* ---------------------------------------------------------------- Карточка формы */
.cta__form-card {
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.cta__form-card h3 {
  color: var(--ink);
  font-size: var(--fs-h3);
  line-height: 1.25;
}

/* Когда показан экран успеха, заголовок «Или оставьте телефон…» больше не нужен */
.cta__form-card:has([data-form-success]:not([hidden])) .cta__form-title {
  display: none;
}

.cta__form-card p {
  color: var(--ink-2);
}

.cta__form {
  display: grid;
  gap: 14px;
  margin-top: clamp(16px, 2vw, 22px);
}

.cta__field {
  display: grid;
  gap: 6px;
}

.cta__label {
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-2);
}

.cta__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.cta__input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

.cta__input:hover {
  border-color: var(--ink-3);
}

.cta__input:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.cta__input[aria-invalid='true'] {
  border-color: var(--warning);
  background: var(--surface);
}

.cta__input--area {
  min-height: 78px;
  resize: vertical;
}

.cta__consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 2px;
}

.cta__checkbox {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.cta__consent-label {
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--ink-2);
  cursor: pointer;
}

.cta__form-card .cta__error {
  margin-top: -2px;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.45;
  color: var(--warning);
}

.cta__submit {
  margin-top: 4px;
}

.cta__form-card .cta__note {
  font-size: var(--fs-xs);
  line-height: 1.5;
  text-align: center;
  color: var(--ink-3);
}

/* ---------------------------------------------------------------- Экран успеха */
.cta__success {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding-block: 2px;
}

.cta__success:focus {
  outline: none;
}

.cta__success-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--success);
}

.cta__success h3 {
  margin-top: 2px;
}

.cta__success-actions {
  margin-top: 6px;
}

/* ===== 42-faq.css ===== */
/* FAQ — аккордеон на <details>/<summary>. Компактный: плотные отступы,
   читаемые вопросы, скругление карточек сохранено. */

.faq {
  padding-block: clamp(40px, 4.4vw, 64px);
}

.faq__head {
  margin-bottom: clamp(16px, 2vw, 24px);
}

.faq__head .faq__title {
  margin-top: 12px;
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.35rem);
}

.faq__head p {
  margin-top: 12px;
  font-size: var(--fs-body);
  max-width: 58ch;
}

.faq__list {
  display: grid;
  gap: 8px;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.faq__item[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.faq__summary::-webkit-details-marker {
  display: none;
}

.faq__summary::marker {
  content: '';
}

.faq__summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
  border-radius: var(--radius-card);
}

.faq__q {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}

.faq__summary:hover .faq__q,
.faq__item[open] .faq__q {
  color: var(--accent);
}

.faq__icon {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 2px;
  background: var(--accent);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.faq__icon::before {
  width: 11px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  width: 2px;
  height: 11px;
  transform: translate(-50%, -50%);
}

.faq__item[open] .faq__icon {
  border-color: var(--accent);
  background: var(--accent);
}

.faq__item[open] .faq__icon::before {
  background: var(--ink-inverse);
}

.faq__item[open] .faq__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__body {
  padding: 0 18px 16px;
}

.faq__body p {
  font-size: 0.95rem;
  line-height: 1.58;
  color: var(--ink-2);
}

.faq__body p + p {
  margin-top: 8px;
}

.faq__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes faq-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.faq__item[open] .faq__body {
  animation: faq-reveal 0.26s var(--ease) both;
}

/* ---------------------------------------------------------------- «Не нашли свой вопрос» */
.faq__ask {
  display: grid;
  gap: 14px;
  margin-top: clamp(18px, 2.2vw, 26px);
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

@media (min-width: 720px) {
  .faq__ask {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
  }
}

.faq__ask h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.faq__ask p {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-2);
}

@media (max-width: 560px) {
  .faq__q {
    font-size: 0.95rem;
  }

  .faq__summary {
    gap: 12px;
    min-height: 52px;
    padding: 16px;
  }

  .faq__body {
    padding: 0 16px 16px;
  }
}

/* ===== 43-footer.css ===== */
/* FOOTER — тёмный, спокойный подвал */

.footer {
  padding-block: clamp(44px, 5vw, 72px) clamp(28px, 3.4vw, 44px);
  background: var(--graphite);
  color: var(--ink-inverse-2);
}

.footer__top {
  display: grid;
  gap: clamp(28px, 3.6vw, 40px);
}

@media (min-width: 760px) {
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(28px, 4vw, 48px);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1000px) {
  .footer__top {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.75fr) minmax(0, 1fr);
    column-gap: clamp(32px, 4.4vw, 60px);
  }

  .footer__brand {
    grid-column: auto;
  }
}

/* ---------------------------------------------------------------- Бренд */
.footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-inverse);
}

.footer__brand-link:hover {
  color: var(--ink-inverse);
}

.footer__logo {
  flex: none;
  width: 44px;
  height: 44px;
}

.footer__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer__name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink-inverse);
}

.footer__role {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-inverse-2);
}

.footer__desc {
  max-width: 44ch;
  margin-top: 16px;
  font-size: var(--fs-sm);
  line-height: 1.62;
  color: var(--ink-inverse-2);
}

/* ---------------------------------------------------------------- Колонки */
.footer__col-title {
  margin-bottom: 14px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink-inverse);
}

.footer__contacts {
  display: grid;
  gap: 10px;
  justify-items: start;
  font-style: normal;
}

.footer__phone {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink-inverse);
}

.footer__link {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-inverse);
}

.footer__phone:hover,
.footer__link:hover {
  color: var(--accent-soft-2);
}

.footer__hours {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--ink-inverse-2);
}

.footer__text {
  font-size: var(--fs-sm);
  line-height: 1.62;
  color: var(--ink-inverse-2);
}

.footer__text--muted {
  margin-top: 8px;
  font-size: var(--fs-xs);
}

/* ---------------------------------------------------------------- Нижняя часть */
.footer__bottom {
  display: grid;
  gap: 16px;
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--line-inverse);
}

@media (min-width: 860px) {
  .footer__bottom {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: start;
    gap: 32px;
  }
}

.footer__meta {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.footer__policy {
  font-size: var(--fs-sm);
  color: var(--ink-inverse);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__policy:hover {
  color: var(--accent-soft-2);
}

.footer__copy {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--ink-inverse-2);
}

.footer__disclaimer {
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--ink-inverse-2);
}

@media (max-width: 560px) {
  .footer__desc {
    max-width: none;
  }
}

/* ===== 44-cookie.css ===== */
/* COOKIE — плашка согласия на cookie и Метрику (152-ФЗ).
   Показывается только при первом визите, после «Принять» не возвращается. */

.cookie {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  padding-block: 12px;
  background: var(--graphite);
  color: var(--ink-inverse-2);
  box-shadow: 0 -10px 30px rgba(20, 22, 26, 0.18);
}

.cookie__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
}

.cookie__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: var(--fs-xs);
  line-height: 1.55;
}

.cookie__link {
  color: var(--ink-inverse);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie__link:hover {
  color: var(--accent-soft-2);
}

.cookie__accept {
  flex: none;
}

/* Пока плашка видна — добавляем отступ снизу, чтобы она не перекрывала кнопки */
body.has-cookie {
  padding-bottom: 84px;
}

@media (min-width: 768px) {
  body.has-cookie {
    padding-bottom: 76px;
  }
}

/* Экран «заявка не отправилась»: спокойный предупреждающий вид, без красного */
.is-fallback .cta__success-icon,
.is-fallback .quiz-success-icon {
  color: var(--warning);
  background: rgba(138, 90, 18, 0.1);
}

.is-fallback .cta__success-actions .btn:first-child,
.is-fallback .quiz-success-links .btn:first-child {
  background: var(--accent);
  color: var(--ink-inverse);
  border-color: transparent;
}

/* ===== 45-legal.css ===== */
/* LEGAL — страница политики обработки персональных данных */

.legal-header {
  padding-block: 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.legal-header__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.legal-header__brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
}

.legal-header__logo {
  flex: none;
  width: 44px;
  height: 44px;
}

.legal-header__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.legal-header__name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.legal-header__role {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-3);
}

.legal {
  max-width: 820px;
  padding-block: clamp(32px, 4vw, 56px) clamp(48px, 6vw, 80px);
}

.legal h1 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.15rem);
  line-height: 1.18;
}

.legal__date {
  margin-bottom: 28px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.legal h2 {
  margin: 30px 0 10px;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.3;
}

.legal p {
  margin-bottom: 10px;
  color: var(--ink-2);
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal ul {
  margin: 0 0 12px;
  padding-left: 22px;
  list-style: disc;
  color: var(--ink-2);
}

.legal li {
  margin-bottom: 6px;
}

.legal__note {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.legal-footer {
  padding-block: 24px;
  background: var(--graphite);
  color: var(--ink-inverse-2);
}

.legal-footer__text {
  font-size: var(--fs-xs);
  line-height: 1.55;
}

/* ===== 46-404.css ===== */
/* 404 — страница «не найдено» */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 100svh;
  max-width: 640px;
  padding-block: clamp(48px, 8vw, 96px);
}

.not-found__code {
  font-size: clamp(3.5rem, 2rem + 8vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--accent-soft-2);
}

.not-found__title {
  margin-top: 12px;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
}

.not-found__text {
  margin-top: 12px;
  color: var(--ink-2);
}

.not-found__actions {
  margin-top: 24px;
}
