﻿/* =========================================================================
   Voltsman / «Вольтсмен» — Лендинг Сегмент А (премиальный монтаж под ключ)
   Визуальный стандарт — строго по DESIGN.md (копия в корне прототипа).
   Палитра, шрифты, радиусы, тени, компоненты — каноничные значения бренда.
   ========================================================================= */

:root {
  /* Липкая шапка .topbar (min-height 64px + 1px рамка) перекрывает верх секции
     при переходе по якорю — останавливаем прокрутку заранее, чтобы был виден заголовок блока. */
  --header-h: 65px;
  --subnav-h: 49px;
  --anchor-offset: calc(var(--header-h) + var(--subnav-h) + 16px);

  /* ── Палитра (DESIGN.md §1) ── */
  --bg: #F4F5F7;
  --bg-alt: #FFFFFF;
  --bg-dark: #3C4A5C;
  --bg-dark-soft: #4A5A6E;
  --accent: #2FAE9B;          /* доверие — чек-марки, фокус, активные точки */
  --accent-warm: #F6B23C;     /* действие — CTA, молния, цифры цен */
  --accent-warm-hover: #E8A22C;
  --warning: #E26D3D;         /* предупреждение — точечно (отзыв про пожар) */
  --warning-hover: #D55C2D;
  --text: #1F242B;
  --text-secondary: #7B8190;
  --border: #E5E7EB;
  --border-soft: #ECEEF1;
  --white: #FFFFFF;

  --tg-blue: #2AABEE;
  --error: #D64545;

  --yandex: #FC3F1D;
  --google: #4285F4;
  --avito: #00BFA5;

  /* ── Шрифты (DESIGN.md §2) ── */
  --font-body: 'Onest', system-ui, -apple-system, sans-serif;
  --font-display: 'Unbounded', 'Onest', system-ui, sans-serif;

  /* ── Радиусы (DESIGN.md §4) ── */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* ── Тени — почти нет (DESIGN.md §4) ── */
  --shadow-card: 0 1px 2px rgba(31, 36, 43, 0.04);
  --shadow-hover: 0 4px 16px rgba(31, 36, 43, 0.06);
  --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.25);

  --transition: 0.2s ease;

  --container: 1200px;
  --container-narrow: 820px;
}

/* ───────────────────────── Базовое ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* [hidden] должен побеждать display у .btn и пр. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: var(--anchor-offset, 80px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* защита от горизонтального скролла из-за bleed-лент */
}
/* убираем синюю подсветку тапа/выделения на кнопках */
button, a { -webkit-tap-highlight-color: transparent; }
button { user-select: none; }

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

p { margin: 0 0 1em; }

button { font-family: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 20px;
}

/* ───────────────────────── Секции / ритм ───────────────────────── */
.section { padding-block: 56px; }
@media (min-width: 1024px) { .section { padding-block: 80px; } }

.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: rgba(255,255,255,0.92); }

.section__head { max-width: 760px; margin-bottom: 36px; }
.section__head--center { margin-inline: auto; text-align: center; }

.section__title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  overflow-wrap: break-word;
  hyphens: manual;
}
@media (max-width: 480px) { .section__title { font-size: 27px; hyphens: auto; } }
.section__subtitle {
  margin-top: 14px;
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.section--dark .section__subtitle { color: rgba(255,255,255,0.72); }

/* ───────────────────────── Кнопки (DESIGN.md §5) ───────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border: none;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  background: var(--text);
  transition: background var(--transition), transform var(--transition);
  text-align: center;
  line-height: 1.2;
}
@media (min-width: 1024px) { .btn { padding: 18px 28px; } }
.btn:disabled, .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn:active { transform: translateY(1px); }

.btn--form { background: var(--accent-warm); color: #2A2009; }
.btn--form:hover { background: var(--accent-warm-hover); }

.btn--lg { font-size: 17px; padding: 18px 30px; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--text-secondary); }

/* ───────────────────────── Логотип (DESIGN.md §6) ───────────────────────── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.logo__bolt {
  display: inline-flex;
  width: 0.65em;
  height: 1em;
  color: var(--accent-warm);
  transform: skewX(-12deg) translateY(2px);
}
.logo__bolt svg { width: 100%; height: 100%; }
.logo--footer { color: var(--white); }

/* ───────────────────────── Хедер (блок 0) ───────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,245,247,0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-block: 8px;
}
.topbar__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
}
.topbar__tagline { font-size: 12px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }

/* Часы + телефон (как на Б) */
/* телефон сверху, часы работы — строкой под ним (на всех ширинах) */
/* до 1024 (тесно) — телефон сверху, часы строкой под ним; на широком десктопе — в ряд */
.topbar__contact { display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 1px; line-height: 1.2; }
@media (min-width: 1024px) { .topbar__contact { flex-direction: row; align-items: center; gap: 14px; } }
.topbar__hours { font-size: 11px; color: var(--text-secondary); white-space: nowrap; line-height: 1; }
/* часы под телефоном — правый край ровно под цифрами (у .topbar__phone есть правый паддинг) */
@media (max-width: 1023px) { .topbar__hours { padding-right: 12px; } }
@media (max-width: 767px) { .topbar__hours { padding-right: 6px; } }
@media (max-width: 360px) { .topbar__hours { padding-right: 2px; } }

.topbar__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 16px; color: var(--text);
  padding: 8px 12px; border-radius: var(--r-pill);
  transition: background var(--transition); white-space: nowrap;
}
.topbar__phone:hover { background: rgba(60,74,92,0.06); }
.topbar__phone-ic { display: inline-flex; color: var(--accent-warm); }
.topbar__phone-ic svg { width: 19px; height: 19px; }

/* Иконка Telegram в шапке */
.topbar__tg {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(42,171,238,0.12); color: var(--tg-blue);
  transition: background var(--transition); flex: none;
}
.topbar__tg:hover { background: rgba(42,171,238,0.2); }
.topbar__tg svg { width: 20px; height: 20px; }

/* CTA-пилюля */
.topbar__cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border: none; border-radius: var(--r-pill);
  background: var(--accent-warm); color: #2A2009;
  font-family: inherit; font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: background var(--transition);
}
.topbar__cta:hover { background: var(--accent-warm-hover); }

/* ── Адаптив хедера (как на Б: часы прячем только на самых узких) ── */
@media (max-width: 359px) { .topbar__hours { display: none; } }
@media (max-width: 479px) { .topbar__tagline { display: none; } }
@media (max-width: 767px) {
  /* CTA — в sticky снизу + в Hero; Telegram — в плавающих кнопках; телефон остаётся ЦИФРАМИ (канон А) */
  .topbar__cta { display: none; }
  .topbar__tg { display: none; }
  .topbar__phone { padding: 6px 6px; font-size: 16px; }
}
/* Логотип «ЭЛЕКТРОСЕРВИС» длиннее прежнего — сжимаем раньше, чтобы не наезжал на телефон */
@media (max-width: 560px) { .logo { font-size: 18px; } }
@media (max-width: 420px) { .logo { font-size: 15px; } .topbar__inner { gap: 8px; } }
@media (max-width: 360px) {
  .topbar__phone { font-size: 13px; gap: 4px; padding: 6px 2px; }
  .topbar__phone-ic { display: none; } /* на самых узких прячем иконку — иначе номер обрезается */
  .logo { font-size: 13px; }
  .topbar__inner { gap: 6px; }
}

/* ───────────────────────── Hero (блок 1) ───────────────────────── */
.hero { padding-block: 36px 56px; }
@media (min-width: 1024px) { .hero { padding-block: 56px 80px; } }

/* Hero: слева контент, справа карточка доверия с рейтингом */
.hero__inner { max-width: 1120px; }
@media (min-width: 1024px) {
  /* stretch: правая колонка тянется на высоту левой — фото заполняет её целиком */
  .hero__inner { display: grid; grid-template-columns: 1fr clamp(340px, 34%, 460px); gap: 56px; }
}

/* Карточка доверия — компактная: 5,0 + звёзды, под ними ряд площадок (без дублей оценок) */
.hero-trust {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px 20px; margin-top: 24px;
}
@media (min-width: 1024px) { .hero-trust { margin-top: 0; } }
.hero-trust__score { display: flex; align-items: center; gap: 12px; }
.hero-trust__num { font-family: var(--font-display); font-weight: 800; font-size: 38px; line-height: 1; }
.hero-trust__label { font-size: 12.5px; color: var(--text-secondary); margin-top: 3px; }

@media (max-width: 1023px) {
  .hero-trust { padding: 14px 16px; }
  .hero-trust__num { font-size: 32px; }
}

/* Полоса городов под Hero (серо-синяя, как trust-strip Б) */
.geo-strip { background: var(--bg-dark); color: #fff; }
.geo-strip__inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 20px; flex-wrap: wrap; text-align: center; }
.geo-strip__ic { width: 22px; height: 22px; color: var(--accent-warm); flex: none; }
.geo-strip__cities { margin: 0; font-size: clamp(14px, 1.5vw, 18px); font-weight: 600; color: #fff; line-height: 1.5; }
.geo-strip__cities span { color: rgba(255,255,255,0.6); font-weight: 400; }

.hero__title-main {
  font-size: clamp(26px, 6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
  hyphens: manual;
  text-wrap: balance;
  text-align: center;
}
/* На мобильной версии заголовок крупнее и по центру */
@media (max-width: 767px) { .hero__title-main { font-size: 40px; text-align: center; } }
/* На очень узких экранах разрешаем мягкий перенос длинных слов */
@media (max-width: 400px) { .hero__title-main { font-size: 32px; hyphens: auto; } }
/* Гарантии — карточки-плашки, молния в янтарном кружке (выделены формой и цветом) */
.hero__bullets { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 600px) { .hero__bullets { grid-template-columns: 1fr 1fr; } }
.hero__bullets li {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 14px;
  font-size: 14.5px; line-height: 1.35; font-weight: 500;
}
/* Третий пункт остаётся один в своём ряду при 2 колонках — растягиваем и центрируем */
@media (min-width: 600px) {
  .hero__bullets li:nth-child(3) { grid-column: 1 / -1; justify-content: center; text-align: center; }
}
/* Компактнее на мобиле — форма заявки должна быть ближе к первому экрану */
@media (max-width: 599px) {
  .hero__bullets { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
  .hero__bullets li { padding: 9px 10px; font-size: 12.5px; gap: 8px; }
  .hero__bullets .ic { width: 24px; height: 24px; padding: 6px 5px; }
  .hero__bullets li:nth-child(3) { grid-column: 1 / -1; justify-content: center; text-align: center; }
}
.hero__bullets .ic {
  flex: none; box-sizing: border-box;
  width: 30px; height: 30px; padding: 8px 7px;
  background: rgba(246,178,60,0.16); border-radius: 50%;
  color: var(--accent-warm);
}

.hero__cta { margin-top: 30px; text-align: center; }
.hero__cta .btn--lg { font-size: 17px; padding: 18px 30px; }

.hero-lead-card {
  position: relative;
  background: var(--bg-alt); border: 2px solid var(--accent-warm);
  border-radius: var(--r-lg); padding: 26px 24px 22px;
  box-shadow: var(--shadow-hover);
}
.hero-lead-card__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: 0.02em;
  padding: 5px 14px; border-radius: var(--r-pill);
  box-shadow: 0 4px 10px rgba(47,174,155,0.35);
}
.hero-lead-card__trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  font-size: 13px; color: var(--text-secondary); margin: 2px 0 14px;
}
.hero-lead-card__trust b { color: var(--text); }
.hero-lead-card__trust .dot { color: var(--border); }
.hero-lead-card__promo {
  margin: 12px 0 0; font-size: 13px; font-weight: 600;
  color: var(--accent-warm-hover); text-align: center;
}

.hero-lead-form__label {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: var(--text); margin: 0 0 12px;
}

.hero-lead-form {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; align-items: flex-start;
}
.hero-lead-form .quiz__field { flex: 1 1 260px; max-width: 340px; margin: 0; }
.hero-lead-form .quiz__field input {
  font-size: 18px; font-weight: 700; padding: 20px 22px; text-align: center;
  height: 100%; color: var(--text);
  background: var(--bg-alt); border: 2px solid var(--accent-warm);
  box-shadow: 0 4px 18px rgba(246,178,60,0.3);
}
.hero-lead-form .quiz__field input::placeholder { color: var(--text-secondary); font-weight: 500; }
.hero-lead-form .quiz__field input:focus { border-color: var(--accent-warm-hover); box-shadow: 0 4px 22px rgba(246,178,60,0.45); }
.hero-lead-form .btn--lg { flex: none; }
@media (max-width: 767px) { .hero-lead-form .btn--lg { width: 100%; } .hero-lead-form .quiz__field { flex-basis: 100%; max-width: none; } }

/* Строка-хук под кнопкой: что будет после клика */
.hero__cta-hook {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 16px 0 0; max-width: 520px;
  font-size: 14px; line-height: 1.45; color: var(--text-secondary);
}
.hero__cta-hook svg { flex: none; margin-top: 2px; color: var(--accent-warm); }
.hero__cta-hook b { color: var(--text); font-weight: 700; }

/* ───────────────────────── Блок 2 — Кто отвечает ───────────────────────── */
.responsible__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .responsible__grid { grid-template-columns: 420px 1fr; gap: 56px; align-items: start; } }

.person-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.person-card__media { position: relative; aspect-ratio: 3 / 4; background: var(--border-soft); }
.person-card__media img { width: 100%; height: 100%; object-fit: cover; }
.person-card__body { padding: 20px 22px 22px; }
.person-card__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.person-card__role { color: var(--text-secondary); font-size: 14px; }

.responsible__text p { font-size: 17px; line-height: 1.6; }
.regalia { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.regalia li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.regalia .ic { flex: none; width: 22px; height: 22px; color: var(--accent-warm); margin-top: 2px; }

/* ───────────────────────── Блок 3 — Отзывы ───────────────────────── */
/* На мобиле — карусель с прокруткой; на десктопе — masonry-колонки (как Б) */
.reviews-masonry {
  display: flex; gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 4px 20px 12px; margin: 0 -20px 16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; align-items: flex-start;
}
.reviews-masonry::-webkit-scrollbar { display: none; }
/* Десктоп — masonry-колонки как на Б; column-fill: balance выравнивает столбцы по высоте */
@media (min-width: 640px) {
  .reviews-masonry { display: block; columns: 2; column-gap: 20px; column-fill: balance; overflow: visible; padding: 0; margin: 0 0 16px; scroll-snap-type: none; }
}
@media (min-width: 1024px) { .reviews-masonry { columns: 3; column-gap: 20px; } }

.review {
  break-inside: avoid;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin: 0 0 20px;
  flex: 0 0 86%; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 640px) { .review { flex: initial; } }
.section--alt .review { background: var(--bg); }
.review__quote { font-size: 16px; line-height: 1.55; margin: 0; }
.review__quote b { font-weight: 700; }
/* Мета прижата к низу карточки — нижние края выравниваются (как на Б) */
.review__meta {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 12px; border-top: 1px dashed var(--border); margin-top: auto;
}
.review__author { font-weight: 700; font-size: 14px; color: var(--text); }
.review__rating { color: var(--accent-warm); font-size: 12px; letter-spacing: 1.5px; line-height: 1; }


/* ───────────────────────── Блок 5 — Цена / смета ───────────────────────── */
.price__head { max-width: 760px; margin-bottom: 32px; }
.price__head .section__subtitle { margin-top: 14px; }

/* CTA-карточка после кейсов (тёмная, как на Б) */
.cta-card {
  background: var(--bg-dark); border-radius: var(--r-lg);
  padding: clamp(32px, 5vw, 52px) clamp(24px, 5vw, 52px);
  text-align: center; margin: 40px 0 0;
}
.cta-card__title { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: clamp(23px, 3.4vw, 31px); line-height: 1.14; margin: 0 0 12px; }
.cta-card__text { color: rgba(255,255,255,0.78); font-size: 16px; line-height: 1.5; margin: 0 auto 26px; max-width: 460px; }

/* ───────────────────────── Блок 6 — Стандарты (тёмная) ───────────────────────── */
/* Светлый блок «Защита» — обычный фон, белые карточки, бирюзовые галочки */
.standards__grid { display: grid; gap: 40px; }
/* Боковая колонка с видео временно снята — сетка одноколоночная.
   При возврате видео: grid-template-columns: 1fr 380px (см. историю). */

/* Карточки-плитки стандартов — белые, с яркой бирюзовой галочкой */
.std-cards { display: grid; gap: 12px; }
@media (min-width: 560px) {
  .std-cards { grid-template-columns: 1fr 1fr; }
  /* если карточек нечётное число — последняя на всю ширину, без пустой ячейки;
     при чётном (nth-child(even)) не срабатывает — сетка остаётся ровной 2×N */
  .std-cards > .std-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.std-card {
  display: flex; gap: 13px; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 17px 18px;
}
.std-card__ic {
  flex: none; box-sizing: border-box;
  width: 28px; height: 28px; padding: 6px;
  background: var(--accent); border-radius: 50%;
  color: #fff; margin-top: 1px;
}
.std-card b { display: block; color: var(--text); font-size: 15px; line-height: 1.35; }
.std-card p { margin: 6px 0 0; color: var(--text-secondary); font-size: 14px; line-height: 1.5; }

/* ───────────────────────── Блок 7 — Этапы (горизонтальная прокрутка) ───────────────────────── */
/* Мобилка — горизонтальная прокрутка (широкие карточки); десктоп (≥768) — сетка 2×2 */
.steps {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%;
  gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 36px 10px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.steps::-webkit-scrollbar { display: none; }
.steps > .step { scroll-snap-align: start; }
@media (min-width: 768px) {
  .steps {
    grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr 1fr;
    gap: 18px; overflow: visible; scroll-snap-type: none; padding: 0;
  }
}
.step {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px 26px;
  scroll-snap-align: start;
}
.section--alt .step { background: var(--bg); }
.step__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.step__num {
  flex: none;
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  color: #fff; background: var(--bg-dark);
  border-radius: var(--r-sm); padding: 6px 11px; letter-spacing: 0.04em;
}
.step__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.25; }
.step__preview { margin: 14px 0 0; font-size: 15px; line-height: 1.55; }

/* ───────────────────────── Блок 8 — Документы / гарантия ───────────────────────── */
.warranty-note {
  background: rgba(47,174,155,0.08);
  border: 1px solid rgba(47,174,155,0.25);
  border-radius: var(--r-lg);
  padding: 22px 24px; font-size: 16px; line-height: 1.6;
}

/* ───────────────────────── Блок 9 — FAQ ───────────────────────── */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
}
.section--alt .faq details { background: var(--bg); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 700; font-size: 16.5px;
  transition: background var(--transition);
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { background: var(--bg-dark); color: #fff; }
.faq summary .q-ic {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--border); position: relative; transition: var(--transition);
}
.faq summary .q-ic::before, .faq summary .q-ic::after {
  content: ""; position: absolute; background: var(--text-secondary);
  top: 50%; left: 50%; transform: translate(-50%,-50%); transition: var(--transition);
}
.faq summary .q-ic::before { width: 12px; height: 2px; }
.faq summary .q-ic::after { width: 2px; height: 12px; }
.faq details[open] summary .q-ic { background: var(--accent); border-color: var(--accent); }
.faq details[open] summary .q-ic::before { background: #fff; }
.faq details[open] summary .q-ic::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq__answer { padding: 4px 22px 22px; font-size: 15.5px; line-height: 1.6; color: var(--text-secondary); }

/* ───────────────────────── Блок 10 — Финальный квиз ───────────────────────── */
.final-quiz { background: var(--bg-dark); color: #fff; }
.final-quiz__head { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.final-quiz__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 5vw, 52px); color: #fff; }

/* Форма квиза — карточка (живёт inline в финале и переезжает в модалку) */
.quiz {
  background: var(--bg-alt); color: var(--text);
  border-radius: var(--r-lg); padding: 28px 24px;
  width: 100%; max-width: 720px; margin: 0 auto;
}
@media (min-width: 768px) { .quiz { padding: 34px 38px; } }

/* ── Модалка квиза — прозрачная обёртка, видимая карточка = сама форма ── */
.quiz-modal {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(15,18,22,0.55);
  opacity: 0; transition: opacity var(--transition);
}
.quiz-modal.is-open { opacity: 1; }
.quiz-modal__panel {
  position: relative;
  width: 100%; max-width: 660px;
  max-height: 92vh; overflow-y: auto;
  transform: translateY(12px) scale(0.98);
  transition: transform var(--transition);
}
.quiz-modal__panel .quiz { box-shadow: var(--shadow-modal); max-width: none; }
.quiz-modal.is-open .quiz-modal__panel { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .quiz-modal, .quiz-modal__panel { transition: none; }
}
.quiz-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 40px; height: 40px; border: none; background: var(--bg);
  border-radius: 50%; color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
  transition: background var(--transition), color var(--transition);
}
.quiz-modal__close:hover { background: var(--border-soft); color: var(--text); }
.quiz-modal__close svg { width: 20px; height: 20px; }

.quiz__field { display: flex; flex-direction: column; gap: 8px; }
.quiz__field label { font-size: 14px; font-weight: 600; }
.quiz__field input[type="text"],
.quiz__field input[type="tel"],
.quiz__field input[type="number"] {
  padding: 14px 16px; border: 1.5px solid var(--border);
  border-radius: var(--r-md); font-size: 16px; font-family: inherit;
  background: var(--bg); transition: border-color var(--transition);
}
.quiz__field input:focus { outline: none; border-color: var(--accent); }
.quiz__field input.is-invalid { border-color: var(--warning); background: rgba(226,109,61,0.05); }
.quiz__error { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--warning); }

/* Компактизация формы на мобилке (кнопка липкая — как страховка) */
@media (max-width: 640px) {
  .quiz-modal__panel .quiz { padding: 20px 16px; }
}

.quiz__nav { display: flex; gap: 12px; margin-top: 24px; align-items: center; }
/* В модалке — липкий футер: кнопка «Далее/Получить расчёт» всегда видна на длинных шагах */
.quiz-modal__panel .quiz__nav {
  position: sticky; bottom: 0; z-index: 2; margin: 20px -24px 0;
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
  background: var(--bg-alt); border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .quiz-modal__panel .quiz__nav { margin-left: -38px; margin-right: -38px; padding-left: 38px; padding-right: 38px; }
}
.quiz__next { margin-left: auto; }

/* ── Лид-форма (вместо квиза) ── */
.lead-form__head { margin-bottom: 18px; padding-right: 44px; } /* не подлезать под крестик закрытия */
.lead-form__title { font-family: var(--font-display); font-size: clamp(19px, 2.6vw, 22px); line-height: 1.3; }
.lead-form__sub { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
/* для двух полей липкий футер квиза не нужен: обычная кнопка на всю ширину */
.quiz-modal__panel .lead-form .quiz__nav { position: static; margin: 18px 0 0; padding: 0; background: none; border-top: 0; }
.lead-form .quiz__nav .quiz__next { width: 100%; }
.lead-form__direct { text-align: center; font-size: 14px; color: var(--text-secondary); margin-top: 16px; }
.lead-form__direct a { color: var(--text); font-weight: 600; border-bottom: 1px solid var(--accent-warm); }

/* в инлайн-секции заголовок формы не нужен — его роль играет заголовок секции */
#quizHome .lead-form__head { display: none; }

/* ───────────────────────── Footer ───────────────────────── */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.8); padding-block: 48px; }
.footer__zone {
  text-align: center; font-size: 15px; color: rgba(255,255,255,0.85);
  padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1fr 1fr 1fr; } }
.footer__col h4 { font-family: var(--font-display); font-size: 14px; color: #fff; margin-bottom: 14px; letter-spacing: 0.02em; }
.footer__col a { display: block; padding: 4px 0; font-size: 14px; color: rgba(255,255,255,0.75); }
.footer__col a:hover { color: #fff; }
.footer__phone { font-size: 20px; font-weight: 700; color: #fff !important; }
.footer__socials { display: flex; align-items: center; gap: 16px; margin: 10px 0 6px; }
.footer__col a.footer__social { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; color: rgba(255,255,255,0.7); }
.footer__col a.footer__social:hover { color: #fff; }
.footer__social svg { width: 22px !important; height: 22px !important; display: block; }
.footer__social img { width: 22px !important; height: 22px !important; display: block; }
.footer__nap { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.6); }

/* ───────────────────────── Плавающие кнопки / sticky mobile ───────────────────────── */
.float-contacts {
  position: fixed; right: 16px; bottom: 20px; z-index: 60;
  display: flex; flex-direction: column; gap: 12px;
  transition: opacity var(--transition), transform var(--transition);
}
/* скрыты, пока на экране первый экран (hero) */
.float-contacts.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
@media (min-width: 1024px) { .float-contacts { bottom: 24px; } }
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: var(--shadow-hover);
  transition: transform var(--transition);
}
@media (min-width: 1024px) { .float-btn { width: 56px; height: 56px; } }
.float-btn:hover { transform: scale(1.06); }
.float-btn svg { width: 26px; height: 26px; }
.float-btn--phone { background: var(--warning); }
.float-btn--tg { background: var(--tg-blue); }

@media (min-width: 1024px) { .float-contacts { bottom: 24px; } }

/* ───────────────────────── Лайтбокс ───────────────────────── */
/* Скролл-лок фона под модалками: фиксируем body, чтобы мобильный браузер не
   сбрасывал позицию скролла (top задаётся из JS: -scrollY). */
body.is-scroll-locked { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15,18,22,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  /* горизонтальный свайп отдаём JS-листанию (иначе браузер «съедает» жест) */
  touch-action: pan-y;
}
.lightbox.is-open { display: flex; }
.lightbox__media { max-width: 92vw; max-height: 88vh; }
.lightbox__media img, .lightbox__media video { max-width: 92vw; max-height: 88vh; border-radius: var(--r-md); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,0.14); border: none;
  color: #fff; border-radius: 50%; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__close { top: 20px; right: 20px; font-size: 22px; background: rgba(255,255,255,0.28); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__nav svg, .lightbox__close svg { width: 26px; height: 26px; }
.lightbox__close svg { stroke-width: 2.6; }
@media (max-width: 767px) {
  .lightbox__close { width: 56px; height: 56px; top: 14px; right: 14px; }
  .lightbox__close svg { width: 30px; height: 30px; }
}
.lightbox__counter { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.7); font-size: 14px; }

/* ───────── Юр-футер + модалка реквизитов + согласие (перенос из Б) ───────── */
.footer__legal {
  font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.55);
  margin: 24px 0 6px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12);
}
.footer__legal a { color: inherit; }
.footer__legal-note {
  font-size: 12px; line-height: 1.5; color: rgba(255,255,255,0.4); max-width: 720px; margin: 0;
}

/* ───────── Hero: фото на всю правую колонку + рейтинг-оверлей (только десктоп) ─────────
   Карточка рейтинга — в верхнем ЛЕВОМ углу фото: справа в кадре щит, он остаётся видимым.
   На <1024 фото скрыто, карточка рейтинга — обычным блоком (как раньше). */
.hero__photo { display: none; }
@media (min-width: 1024px) {
  .hero__aside { position: relative; }
  .hero__photo {
    display: block; position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
    border-radius: var(--r-lg);
  }
  .hero__aside .hero-trust {
    position: absolute; top: 20px; left: 20px; z-index: 2;
    max-width: 260px; padding: 14px 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  }
  /* компактная «плавающая метка», а не панель */
  .hero__aside .hero-trust .hero-trust__num { font-size: 30px; }
  .hero__aside .hero-trust .hero-trust__label { font-size: 11.5px; }
}

/* =========================================================================
   ДОПОЛНЕНИЯ ДЛЯ ТОКСЕРВИС — компонентов, которых нет в оригинале Voltsman
   (галерея работ вместо кейсов, таблица цен вместо PDF-смет).
   Используются те же переменные и тот же визуальный язык, что и выше.
   ========================================================================= */

.gallery { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gallery__item {
  border-radius: var(--r-lg); overflow: hidden; background: var(--bg-alt);
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}
.gallery__item:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.gallery__media { aspect-ratio: 4 / 3; background: var(--border-soft); cursor: pointer; }
.gallery__media img { width: 100%; height: 100%; object-fit: cover; }
.gallery__cap { padding: 14px 18px; font-size: 14.5px; font-weight: 600; }

.price-list { display: grid; gap: 10px; max-width: var(--container-narrow); margin: 0 auto; }
.price-row.price-row--extra { display: none; }
.price-list.is-expanded .price-row.price-row--extra { display: flex; }
.price-list__more { display: flex; justify-content: center; margin: 20px auto 0; max-width: var(--container-narrow); }
.price-list__more .btn svg { transition: transform var(--transition); }
.price-list__more .btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 18px;
  font-size: 15px; font-weight: 500;
}
.price-row__name { flex: 1; }
.price-row__val { font-family: var(--font-display); font-weight: 700; color: var(--accent-warm-hover); white-space: nowrap; }
.price-row__val span { font-family: var(--font-body); font-weight: 400; color: var(--text-secondary); font-size: 13px; }

.stat-row {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft);
}
.stat-row__item { font-size: 13px; font-weight: 600; }

/* Строка быстрых переходов по разделам под шапкой */
.subnav {
  position: sticky; top: var(--header-h); z-index: 45;
  background: rgba(244,245,247,0.95); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.subnav__inner {
  display: flex; gap: 26px; align-items: center;
  padding: 13px 42px; white-space: nowrap; min-height: var(--subnav-h);
  box-sizing: border-box;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a {
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  padding: 2px 1px; border-bottom: 2px solid transparent; flex: none;
  transition: color var(--transition), border-color var(--transition);
}
.subnav a:hover { color: var(--text); border-color: var(--accent-warm); }
.subnav[data-hscroll] { position: sticky; padding: 0; }

/* Стрелки для горизонтальной прокрутки (появляются только когда есть что листать — см. script.js) */
.hscroll-wrap { position: relative; }
.hscroll-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); border: 1px solid var(--border);
  box-shadow: var(--shadow-hover); color: var(--text);
  z-index: 6; transition: opacity var(--transition);
}
.hscroll-arrow svg { width: 18px; height: 18px; }
.hscroll-arrow--prev { left: 2px; }
.hscroll-arrow--next { right: 2px; }
.hscroll-arrow.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.subnav .hscroll-arrow { width: 30px; height: 30px; background: var(--bg-alt); }
.subnav .hscroll-arrow--prev { left: 4px; }
.subnav .hscroll-arrow--next { right: 4px; }
.subnav .hscroll-arrow svg { width: 15px; height: 15px; }

/* Эмблема компании поверх фото в карточке «О компании» */
.person-card__badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: inline-flex; background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(1.4) blur(6px);
  padding: 10px 16px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-hover);
}
.person-card__badge .logo { font-size: 16px; }

/* Модалка «Спасибо за заявку» */
.thanks-modal { text-align: center; padding: 8px 4px; }
.thanks-modal__icon {
  width: 60px; height: 60px; margin: 0 auto 18px;
  background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.thanks-modal__title { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.thanks-modal__text { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
