/* =========================================================================
   Voltsman — раздел «Наши работы» (/raboty/ и страницы домов).
   Самостоятельный файл: базовые правила (палитра, шрифты, шапка, кнопки, подвал,
   карточки кейсов, форма, лайтбокс) скопированы из закоммиченной версии
   public/elektrika-pod-klyuch/styles.css (git HEAD на 2026-11-16, v103), чтобы страницы
   не зависели от неопубликованных правок лендинга А. Свои правила — в конце файла,
   раздел «Наши работы».
   ========================================================================= */
:root {
  /* Липкая шапка .topbar (min-height 64px + 1px рамка) перекрывает верх секции
     при переходе по якорю — останавливаем прокрутку заранее, чтобы был виден заголовок блока. */
  --header-h: 65px;
  --anchor-offset: calc(var(--header-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, .quiz-option, .chip, a { -webkit-tap-highlight-color: transparent; }
.quiz-option, .chip, 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;
}

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ───────────────────────── Секции / ритм ───────────────────────── */
.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;
}
.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); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ───────────────────────── Кнопки (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--block { width: 100%; }
.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); }

.btn--pill { border-radius: var(--r-pill); }

/* ───────────────────────── Логотип (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; }
.topbar__avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: center top; flex: none; border: 2px solid var(--accent-warm); }
/* на мобилке шапка тесная — прячем аватар, чтобы номер телефона влезал целиком */
/* аватар — только на широком десктопе (в ряд); в тесной раскладке прячем */
@media (max-width: 1023px) { .topbar__avatar { display: none; } }

/* Часы + телефон (как на Б) */
/* телефон сверху, часы работы — строкой под ним (на всех ширинах) */
/* до 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: 360px) {
  .topbar__phone { font-size: 13px; gap: 4px; padding: 6px 2px; }
  .topbar__phone-ic { display: none; } /* на самых узких прячем иконку — иначе номер обрезается */
  .logo { font-size: 18px; }
  .topbar__inner { gap: 6px; }
}


/* ── Теги-фильтр (как у отзывов на А) ── */
.reviews-filter {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
}
.filter-chip {
  padding: 9px 16px; min-height: 40px;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text);
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15,18,22,0.06);
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.filter-chip:hover { border-color: var(--accent-warm); box-shadow: 0 4px 10px rgba(15,18,22,0.10); transform: translateY(-1px); }
.filter-chip:active { transform: translateY(0); }
.filter-chip.is-active { background: var(--bg-dark); border-color: var(--bg-dark); color: #fff; box-shadow: 0 2px 6px rgba(15,18,22,0.18); }


/* ── Карточки и поля кейса (как на А) ── */
.cases-intro { margin-bottom: 32px; }
.cases-intro__lead {
  margin-top: 18px; font-size: 16px; color: var(--text-secondary);
  display: flex; align-items: flex-start; gap: 10px;
}
.cases-intro__lead .ic { color: var(--accent); width: 22px; height: 22px; flex: none; margin-top: 2px; }
.cases-intro__cta { color: var(--accent); font-weight: 700; }

/* Мобилка — горизонтальная прокрутка (широкие карточки, как на Б); десктоп (≥600) — сетка */
.cases {
  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-bottom: 6px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cases::-webkit-scrollbar { display: none; }
.cases > .case { scroll-snap-align: start; }
@media (min-width: 600px) {
  .cases {
    grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr 1fr;
    gap: 18px; overflow: visible; scroll-snap-type: none; padding: 0; align-items: start;
  }
}
@media (min-width: 1024px) { .cases { grid-template-columns: repeat(3, 1fr); } }

.case {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  scroll-snap-align: start;
}
.case__cover { position: relative; aspect-ratio: 16 / 10; background: var(--border-soft); overflow: hidden; }
/* img абсолютно — иначе портретное фото распирает контейнер по своей высоте, ломая пропорцию */
.case__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case__tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(60,74,92,0.92); color: #fff;
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: var(--r-pill);
  backdrop-filter: blur(2px);
}
.case__body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.case__title { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.25; }
/* одинаковая высота превью у всех карточек — заголовок резервирует 2 строки */
@media (min-width: 768px) { .case__title { min-height: 2.5em; } }
.case__specs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.spec {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg); border-radius: var(--r-pill);
  padding: 6px 12px; font-size: 13px; color: var(--text);
}
.spec b { font-weight: 600; }
.case__toggle {
  margin-top: 18px;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: none; padding: 6px 0;
  font-size: 15px; font-weight: 700; color: var(--accent);
}
.case__toggle .chev { transition: transform var(--transition); }
.case[aria-expanded="true"] .case__toggle .chev { transform: rotate(180deg); }

/* Детали кейса живут скрытыми в карточке; по клику переносятся в модалку (вариант A) */
.case__details { display: none; }
#caseModalBody .case__details { display: block; }
#caseModalBody .case-gallery { display: none; }   /* пустой контейнер-источник данных, карусель строится в media */
#caseModalBody .case-field:first-child { margin-top: 0; }

.case-field { margin-top: 20px; }
/* Заголовки полей внутри кейса — заметные: бирюзовый акцент + маркер */
.case-field__label {
  font-size: 12.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--accent); margin-bottom: 8px;
  display: inline-flex; align-items: center; gap: 8px;
}
.case-field__label::before {
  content: ""; width: 16px; height: 2px; border-radius: 2px;
  background: var(--accent-warm); flex: none;
}
.case-field p { margin: 0; font-size: 15px; line-height: 1.6; }
/* «О доме» — чипы-пилюли (как спеки на карточке), а не строка/ведомость */
.case-about { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.case-about > div {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: var(--bg); border-radius: var(--r-pill); padding: 7px 14px;
}
.case-about dt { font-size: 13px; color: var(--text-secondary); }
.case-about dt::after { content: ":"; }
.case-about dd { margin: 0; font-size: 13px; font-weight: 600; color: var(--text); }
.case-field--quote blockquote {
  margin: 0; padding: 14px 18px;
  background: var(--bg); border-left: 3px solid var(--accent);
  border-radius: var(--r-sm); font-style: italic; font-size: 15px;
}
.case-field ol { margin: 0; padding-left: 20px; }
.case-field ol li { margin-bottom: 8px; }
.case-field b { font-weight: 700; }

.case-protect { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.case-protect li { display: flex; gap: 8px; font-size: 14.5px; }
.case-protect .ic { color: var(--accent); flex: none; width: 18px; height: 18px; margin-top: 2px; }

/* Объём работ / оснащение щита — буллиты вместо сплошного текста */
.case-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.case-list li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; }
.case-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-warm);
}
.case-list li small { color: var(--text-secondary); }
.case-list b { font-weight: 700; }

.case-meta-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 18px; }
.case-meta-row .case-field { margin-top: 0; }

.case-price {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px;
}
.case-price__item {
  flex: 1; min-width: 150px;
  background: var(--bg); border-radius: var(--r-md); padding: 14px 18px;
}
.case-price__label { font-size: 12px; color: var(--text-secondary); }
.case-price__val { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-top: 2px; white-space: nowrap; }
/* На телефоне две колонки цен слишком тесные — число «120 000 ₽» рвётся и ₽ уходит вниз.
   Складываем карточки в стопку (во всю ширину) — цена помещается в одну строку. */
@media (max-width: 480px) {
  .case-price__item { min-width: 100%; }
}


/* ── Тёмная карточка-призыв (как на А) ── */
.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; }


/* ── Форма заявки и её окно (как на А) ── */
/* Форма квиза — карточка (живёт 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; }
/* Открыта экранная клавиатура (iOS не сжимает layout-viewport, и центрированная
   панель уходит низом с кнопкой под клавиатуру). Модалку оставляем на весь экран —
   затемняющий фон закрывает ВСЁ, лендинг не просвечивает даже при visualViewport.offsetTop>0.
   Ограничиваем ВЫСОТУ панели формы видимой зоной (--modal-vh задаёт JS) и прижимаем к
   верху — панель становится прокручиваемой, до кнопки и до заголовка/цитаты можно
   доскроллить естественно (активное поле iOS подводит сам, без нашей принудительной прокрутки). */
.quiz-modal--kb {
  align-items: flex-start;
  padding: var(--modal-top, 0px) 8px 0;   /* верх панели = смещение видимой зоны iOS (offsetTop) */
}
.quiz-modal--kb .quiz-modal__panel { max-height: var(--modal-vh, 100%); }
@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__progress { margin-bottom: 24px; }
.quiz__progress-bar { height: 6px; background: var(--border-soft); border-radius: var(--r-pill); overflow: hidden; }
.quiz__progress-fill { height: 100%; width: 16.66%; background: var(--accent); border-radius: var(--r-pill); transition: width 0.3s ease; }
.quiz__progress-label { margin-top: 8px; font-size: 13px; color: var(--text-secondary); }

.quiz__step { display: none; }
.quiz__step.is-active { display: block; animation: fadeStep 0.25s ease; }
@keyframes fadeStep { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .quiz__step.is-active { animation: none; } }

.quiz__q { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 3vw, 26px); margin-bottom: 18px; }

.quiz__options { display: grid; gap: 12px; }
@media (min-width: 560px) { .quiz__options--2col { grid-template-columns: 1fr 1fr; } }
.quiz-option {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; min-height: 44px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--r-md); font-size: 15.5px; text-align: left;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}
.quiz-option:hover { border-color: var(--accent); }
.quiz-option.is-selected { border-color: var(--accent); background: rgba(47,174,155,0.07); }
.quiz-option .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center;
}
.quiz-option.is-selected .tick { background: var(--accent); border-color: var(--accent); }
.quiz-option.is-selected .tick svg { color: #fff; width: 13px; height: 13px; }
.quiz-option .tick svg { opacity: 0; }
.quiz-option.is-selected .tick svg { opacity: 1; }

.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); }

.quiz__hint {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 18px; padding: 14px 16px;
  background: var(--bg); border-radius: var(--r-md);
}
.quiz__hint-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-warm); }
.quiz__hint-text { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.quiz__hint-text b { color: var(--text); font-weight: 600; }

/* Компактизация формы на мобилке — чтобы шаги влезали без прокрутки (кнопка липкая — как страховка) */
@media (max-width: 640px) {
  .quiz-modal__panel .quiz { padding: 20px 16px; }
  .quiz__progress { margin-bottom: 14px; }
  .quiz__progress-label { margin-top: 6px; font-size: 12px; }
  .quiz__q { margin-bottom: 12px; }
  .quiz__options { gap: 9px; }
  .quiz-option { padding: 12px 14px; min-height: 40px; font-size: 15px; }
  .quiz__hint { margin-top: 12px; padding: 11px 13px; gap: 10px; }
  .quiz__hint-avatar { width: 32px; height: 32px; }
  .quiz__hint-text { font-size: 12.5px; line-height: 1.4; }
  .quiz__antipromise, .quiz__phone-alt { font-size: 12.5px; margin-top: 10px; }
}

.file-drop {
  margin-top: 14px;
  display: flex; align-items: center; gap: 12px;
  border: 1.5px dashed var(--border); border-radius: var(--r-md);
  padding: 14px 16px; background: var(--bg);
  font-size: 14px; color: var(--text-secondary); cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.file-drop:hover { border-color: var(--accent); }
.file-drop input { display: none; }
.file-drop__ic {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(246,178,60,0.16); color: var(--accent-warm);
  display: flex; align-items: center; justify-content: center;
}
.file-drop__ic svg { width: 18px; height: 18px; }
.file-drop.has-file { border-style: solid; border-color: var(--accent); color: var(--text); }
.file-drop.has-file .file-drop__ic { background: rgba(47,174,155,0.15); color: var(--accent); }

.quiz__channel { display: flex; gap: 10px; flex-wrap: wrap; }
.quiz__channel .quiz-option { width: auto; flex: 1; min-width: 140px; justify-content: center; }

.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__back {
  background: transparent; border: none; color: var(--text-secondary);
  font-weight: 600; font-size: 15px; padding: 12px 6px;
}
.quiz__next { margin-left: auto; }
.quiz__antipromise { margin-top: 14px; font-size: 13px; color: var(--text-secondary); text-align: center; }
.quiz__phone-alt { margin-top: 18px; text-align: center; font-size: 14px; color: var(--text-secondary); }

/* ── Лид-форма (вместо квиза) ── */
.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__persona { margin-bottom: 16px; }
.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; }
.quiz__phone-alt a { color: var(--text); font-weight: 700; border-bottom: 2px solid var(--accent-warm); }


/* ───────────────────────── 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__social--max img { filter: grayscale(1) brightness(1.7); opacity: 0.75; } /* монохром, не цветной */
.footer__nap { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.6); }
.footer__platforms { display: flex; gap: 10px; margin-top: 8px; }

/* ───────────────────────── Плавающие кнопки / 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); }
.float-btn--max { background: transparent; padding: 0; overflow: hidden; }
.float-btn--max img { width: 100%; height: 100%; display: block; }

@media (min-width: 1024px) { .float-contacts { bottom: 24px; } }

/* Липкая мобильная CTA-панель — постоянный доступ к форме на длинной странице.
   На десктопе не нужна (кнопка есть в шапке). Появляется после первого экрана
   (класс is-hidden синхронно с .float-contacts, наблюдатель за .hero в script.js). */
.cta-bar { display: none; }
@media (max-width: 1023px) {
  .cta-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 58;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,0.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid var(--border-soft);
    transition: opacity var(--transition), transform var(--transition);
  }
  .cta-bar.is-hidden { opacity: 0; transform: translateY(100%); pointer-events: none; }
  .cta-bar__btn { width: 100%; }
  /* поднять плавающие мессенджеры над панелью, чтобы не перекрывались */
  .float-contacts { bottom: 84px; }
}

/* ───────────────────────── Лайтбокс ───────────────────────── */
/* Скролл-лок фона под модалками: фиксируем 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; }

/* Список с галочками — общий */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.checklist .ic { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }

/* ───────── Юр-футер + модалка реквизитов + согласие (перенос из Б) ───────── */
.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-btn {
  background: none; border: none; padding: 0; margin: 0;
  font: inherit; color: inherit; text-decoration: underline; cursor: pointer;
}
.footer__legal-btn:hover { color: rgba(255,255,255,0.85); }
.footer__legal-note {
  font-size: 12px; line-height: 1.5; color: rgba(255,255,255,0.4); max-width: 720px; margin: 0;
}

/* Попап реквизитов — нативный <dialog>. */
.req-dialog {
  border: none; padding: 0; background: var(--white); border-radius: var(--r-lg);
  max-width: 420px; width: calc(100vw - 40px); margin: auto; inset: 0;
  box-shadow: var(--shadow-modal); overflow: visible; color: var(--text);
}
.req-dialog::backdrop { background: rgba(31,36,43,0.72); backdrop-filter: blur(2px); }
.req-dialog__inner { position: relative; padding: 22px 22px 20px; }
.req-dialog__title {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em; margin: 0 0 14px; padding-right: 36px; color: var(--text);
}
.req-dialog__close {
  position: absolute; top: 8px; right: 10px; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--text-secondary);
  font-size: 24px; line-height: 1; cursor: pointer; border-radius: 50%;
}
.req-dialog__close:hover { background: var(--border-soft); color: var(--text); }
.req-dialog__list { margin: 0; display: flex; flex-direction: column; gap: 9px; }
.req-dialog__row {
  display: flex; flex-direction: column; gap: 1px; padding-bottom: 9px;
  border-bottom: 1px solid var(--border-soft);
}
.req-dialog__row:last-child { border-bottom: none; padding-bottom: 0; }
.req-dialog__row dt { font-size: 12px; color: var(--text-secondary); }
.req-dialog__row dd { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--text); }

/* Согласие 152-ФЗ в квизе (шаг 6) */
.quiz__consent {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 16px;
  font-size: 13px; line-height: 1.45; color: var(--text-secondary); cursor: pointer;
}
.quiz__consent input {
  margin: 2px 0 0; width: 18px; height: 18px; flex: 0 0 auto;
  accent-color: var(--accent); cursor: pointer;
}
.quiz__consent a { color: var(--accent); text-decoration: underline; }
.quiz__consent input.is-invalid { outline: 2px solid var(--error); outline-offset: 2px; }


/* ── Мини-логотипы площадок (как на А) ── */
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 12px;
}
.logo-mark--yandex { background: var(--yandex); }
.logo-mark--google { background: var(--google); }
.logo-mark--avito  { background: var(--avito); }
.stars { color: var(--accent-warm); letter-spacing: 1px; font-size: 12px; }

/* =========================================================================
   ───────────────────────── Наши работы — свои правила ─────────────────────────
   ========================================================================= */

/* Шапка страницы: крошки, заголовок, подводка */
.page-head { padding-block: 26px 8px; }
@media (min-width: 1024px) { .page-head { padding-block: 40px 12px; } }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }
.crumbs a { color: var(--text-secondary); border-bottom: 1px solid transparent; transition: color var(--transition), border-color var(--transition); }
.crumbs a:hover { color: var(--text); border-bottom-color: var(--accent-warm); }
.crumbs__sep { opacity: 0.6; }
.crumbs__here { color: var(--text); font-weight: 600; }
.page-title { font-size: clamp(27px, 4.2vw, 44px); }
.page-lead { margin-top: 14px; font-size: 19px; color: var(--text-secondary); line-height: 1.5; max-width: 780px; }
.page-lead p { margin: 0 0 10px; }
.page-lead b { color: var(--text); font-weight: 600; }

/* Фильтры */
.filters { margin-top: 26px; display: grid; gap: 12px; }
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters__label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); min-width: 86px; }
.filters .filter-chip { min-height: 44px; padding: 10px 16px; }
.filter-chip small { font-size: 12.5px; font-weight: 600; opacity: 0.8; margin-left: 5px; }
.filter-chip:disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; transform: none; box-shadow: none; }
.filter-chip:disabled:hover { border-color: var(--border); }
.filters__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding-bottom: 4px; font-size: 14px; color: var(--text-secondary);
}
.filters__bar span { font-weight: 600; color: var(--text); }
.filters__reset { background: none; border: none; padding: 6px 0; font: inherit; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--accent-warm); cursor: pointer; }
.filters__reset:disabled { opacity: 0.45; cursor: default; border-bottom-color: transparent; }
.works-note { margin: 22px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-secondary); max-width: 720px; }

/* Сетка работ: на телефоне — колонка (не полоса, как на лендинге): фильтруем и листаем вниз */
.works { display: grid; gap: 16px; margin-top: 26px; }
@media (min-width: 600px) { .works { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (min-width: 1024px) { .works { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.works .case { transition: box-shadow var(--transition), transform var(--transition); color: inherit; }
.works .case:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.works .case.is-hidden { display: none; }
.case__media {
  position: absolute; left: 14px; bottom: 12px;
  background: rgba(15,18,22,0.7); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: var(--r-pill);
  backdrop-filter: blur(2px); pointer-events: none;
}
.case__media--video::before { content: "▶"; font-size: 9px; margin-right: 6px; vertical-align: 1px; }
.case__meta { margin: 10px 0 0; font-size: 13px; color: var(--text-secondary); }
.case__link {
  margin-top: auto; padding-top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--accent);
}
.case__link .chev { width: 18px; height: 18px; }
.works .case__title { font-size: 17px; }

/* ── Страница дома ── */
.house { padding-block: 8px 40px; }
.house__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
/* minmax(0, …) и min-width:0 обязательны: лента миниатюр (14 × 66 px) иначе распирает
   колонку шире экрана на телефоне (html{overflow-x:clip} это прячет, но кнопки галереи уезжают за край) */
.house__top {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 14px;
}
.house__media, .house__side, .house__text { min-width: 0; }
.house__title { font-size: clamp(24px, 4.2vw, 40px); margin: 0; }
.house__specs { margin-top: 14px; }
.house__side .house__text { margin-top: 22px; }
.gallery { max-width: 100%; }
@media (min-width: 1024px) {
  .house__top {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 0 48px; align-items: start;
  }
  .house__media { position: sticky; top: 84px; }
}
/* «О доме» — единственное место с характеристиками: карточка-таблица, заметная */
.house-about { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; }
@media (min-width: 768px) { .house-about { padding: 22px 24px; } }
.house-about .case-field__label { margin-bottom: 10px; }
.house-about__list { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 18px; row-gap: 0; }
.house-about__list dt { font-size: 14px; color: var(--text-secondary); padding: 7px 0; border-top: 1px solid var(--border-soft); }
.house-about__list dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); padding: 7px 0; border-top: 1px solid var(--border-soft); }
.house-about__list dt:first-of-type, .house-about__list dd:first-of-type { border-top: 0; padding-top: 0; }
/* подзаголовки полей — h2 в разметке, вид как у подписей полей карточки */
h2.case-field__label, h3.case-field__label { font-family: var(--font-body); line-height: 1.3; letter-spacing: 0.05em; }
/* заголовки больших разделов страницы (стоимость, отзыв, похожие) */
.house__h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 14px; }
.house__text .case-field:first-child { margin-top: 0; }
.house__text .case-field { margin-top: 20px; }
.house__text .case-field p, .house__text .case-field ol li { font-size: 16px; line-height: 1.6; }
.house__text .case-field--quote blockquote { font-size: 16px; }

/* Галерея: все фото — обычные картинки в разметке (миниатюры), крупный кадр показывает выбранную */
.gallery { background: #0d1014; border-radius: var(--r-lg); overflow: hidden; }
.gallery__main { position: relative; aspect-ratio: 1 / 1; max-height: 46svh; width: 100%; touch-action: pan-y; }
@media (min-width: 768px) { .gallery__main { aspect-ratio: 1 / 1; } }
.gallery__img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(15,18,22,0.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px); transition: background var(--transition);
}
.gallery__nav:hover { background: rgba(15,18,22,0.75); }
.gallery__nav svg { width: 22px; height: 22px; }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__counter {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(15,18,22,0.62); color: #fff;
  font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: var(--r-pill);
}
.gallery__hint {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(15,18,22,0.62); color: #fff;
  font-size: 12px; padding: 4px 10px; border-radius: var(--r-pill); pointer-events: none;
}
@media (max-width: 767px) { .gallery__hint { display: none; } }
.gallery__caption { margin: 0; padding: 10px 14px 0; font-size: 13px; line-height: 1.4; color: rgba(255,255,255,0.78); min-height: 1.4em; }
.gallery__video { position: absolute; inset: 0; }
.gallery__video img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery__vplay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px 12px 14px; border: none; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.94); color: var(--text);
  font-family: inherit; font-weight: 700; font-size: 15px; white-space: nowrap;
  box-shadow: var(--shadow-modal); transition: transform var(--transition);
}
.gallery__vplay:hover { transform: translate(-50%, -50%) scale(1.04); }
.gallery__vplay svg { width: 22px; height: 22px; }
.gallery__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.gallery__video.is-playing img, .gallery__video.is-playing .gallery__vplay { display: none; }
.gallery__thumb { position: relative; }
.gallery__thumb-play {
  position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.gallery__thumb-play svg { width: 12px; height: 12px; margin-left: 1px; color: var(--text); }
.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px; scrollbar-width: thin; }
.gallery__thumbs::-webkit-scrollbar { height: 5px; }
.gallery__thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 999px; }
.gallery__thumb {
  flex: none; width: 66px; height: 66px; padding: 0; border: 2px solid transparent;
  border-radius: 8px; overflow: hidden; background: none; cursor: pointer;
  opacity: 0.55; transition: opacity var(--transition), border-color var(--transition);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumb:hover { opacity: 0.85; }
.gallery__thumb.is-active { opacity: 1; border-color: var(--accent-warm); }


/* Отзыв хозяев — полной цитатой, встроен в кейс */
.review-card { margin-top: 28px; background: var(--bg); border-radius: var(--r-lg); border-left: 4px solid var(--accent); padding: 22px 20px; }
@media (min-width: 768px) { .review-card { padding: 28px 32px; } }
.review-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; }
.review-card__who { font-weight: 700; font-size: 15px; }
.review-card__src { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-secondary); }
.review-card__quote { margin: 16px 0 0; font-size: 16px; line-height: 1.6; max-width: 720px; }
.review-card__foot { margin-top: 14px; }
.review-card__quote p { margin: 0 0 10px; }
.review-card__quote p:last-child { margin-bottom: 0; }
.review-card__quote b { font-weight: 700; }
.review-card__link { display: inline-block; font-size: 14px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--accent-warm); }

/* Объём · щит · защита — три колонки на широком экране */
.house__cols { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 768px) { .house__cols { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.house__col { background: var(--bg); border-radius: var(--r-md); padding: 18px; }
.house__col .case-field { margin-top: 0; }

/* Срок, цены и форма */
.house__deal { margin-top: 32px; display: grid; gap: 22px; }
@media (min-width: 1024px) { .house__deal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; } }
.house__deal .case-meta-row { margin-top: 0; }
.price-note { margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-secondary); max-width: 560px; }
.house-form .quiz { max-width: none; }
.house-form .lead-form__head { padding-right: 0; }
.trust-line { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--text-secondary); }
.trust-line li { display: flex; gap: 8px; align-items: flex-start; }
.trust-line .ic { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.trust-line a { color: var(--text); border-bottom: 1px solid var(--accent-warm); }

/* Похожие дома */
.similar { margin-top: 36px; }
.similar__title { font-size: clamp(22px, 3vw, 30px); }
.similar .works { margin-top: 18px; }
.more-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-weight: 600; font-size: 15px; }
.more-links a { color: var(--text); border-bottom: 1px solid var(--accent-warm); }

/* ── Страница дома: отзыв свёрнут до первых строк, полный текст — по кнопке ── */
.review-card.is-collapsed .review-card__quote { display: none; }
.review-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.review-card__more { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; font-weight: 700; color: var(--text); border-bottom: 2px solid var(--accent-warm); cursor: pointer; }
/* ── Страница дома: призыв вместо формы ── */
.house-cta { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
@media (min-width: 768px) { .house-cta { padding: 28px 32px; } }
.house-cta .house__h2 { margin-bottom: 8px; }
.house-cta__text { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
.house-cta__btn { width: 100%; }
@media (min-width: 768px) { .house-cta__btn { width: auto; } }
/* Плашки «О доме» на странице дома лежат на сером фоне — делаем их белыми, как в окне кейса */
/* Телефон: первый экран — фото + заголовок + начало плашек (как в окне кейса) */
@media (max-width: 767px) {
  .house .crumbs { margin-bottom: 10px; }
  .house .gallery__main { max-height: 38svh; }
  .house .gallery__caption { display: none; }
  .house .gallery__thumbs { padding: 8px; gap: 6px; }
  .house .gallery__thumb { width: 48px; height: 48px; flex-basis: 48px; }
  .house__title { font-size: 26px; }
}
/* Строка источника отзыва — обычным текстом, переносится по словам, а не столбиками */
/* Отзыв на странице дома: главная фраза дословно + подпись как на главной; полный текст — по кнопке */
.review-card__by { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-top: 14px; max-width: 720px; }
.review-card__author { font-weight: 700; font-size: 14px; }
.review-card__by .review-card__src { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-secondary); }
.review-card .review-card__foot { margin-top: 16px; }
/* Цены и кнопка — одним блоком */
.deal { display: grid; gap: 22px; }
@media (min-width: 1024px) { .deal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; } }
.deal__nums { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 481px) { .deal__nums { grid-template-columns: 1fr 1fr; } }
.deal .price-note { margin-top: 10px; }
.deal__cta { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
@media (min-width: 768px) { .deal__cta { padding: 26px 30px; } }
.deal__h3 { font-family: var(--font-display); font-size: 21px; line-height: 1.25; margin: 0 0 8px; }
.deal__text { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
.deal__btn { width: 100%; }
.deal__trust { margin-top: 14px; gap: 6px 16px; font-size: 13px; }
.house__deal { display: block; }
/* Правки 16.11 по замечаниям Артёма */
/* главная фраза отзыва — обычным начертанием, как цитаты на главной; подпись отделена пунктирной линией */
/* 18.11: отзыв — как цитаты лендинга (styles.css .review): 16px, подпись 14/12 (дизайнер) */
.review-card__key { margin: 0; font-size: 16px; line-height: 1.55; font-weight: 400; color: var(--text); max-width: 720px; }
.review-card__by { padding-top: 12px; border-top: 1px dashed var(--border); }
/* цены — на белых плашках, как в окне кейса (на сером фоне страницы серые плашки не видны) */
/* объём / щит / защита: на телефоне без пустых карточек — разделы идут плотнее */
@media (max-width: 767px) {
  .house__cols { gap: 22px; margin-top: 26px; }
  .house__col { padding: 0; background: none; }
  .review-card { margin-top: 24px; }
}
/* кнопки отзыва: основная — под подписью; «Свернуть» в конце — только когда текст раскрыт */
.review-card__more { margin-top: 14px; }
.review-card__more--end { display: inline-block; margin-top: 14px; }
.review-card.is-collapsed .review-card__more--end { display: none; }
/* 16.11: цены и кнопка — одной колонкой, без карточки; фото на компьютере не закрепляем */
.deal { display: block; max-width: 640px; }
.deal__cta { background: none; border: 0; border-radius: 0; padding: 0; margin-top: 20px; }
@media (min-width: 768px) { .deal__cta { padding: 0; } }
.deal__btn { width: 100%; }
@media (min-width: 768px) { .deal__btn { width: auto; min-width: 320px; } }
.deal__text { margin: 10px 0 0; font-size: 14px; }
.deal__trust { margin-top: 12px; }
@media (min-width: 1024px) { .house__media { position: static; } }

/* ═══ Страница дома — одна колонка-история (16.11) ═══
   Порядок: заголовок и дом → фото и видео → запрос и решение → отзыв → что вошло → цена и кнопка → другие дома.
   Одна ширина чтения сверху вниз: без пустот рядом с фото и без прыжков взгляда между колонками. */
.house--story .house__story { max-width: 840px; }
.house--story .house__title { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; }
.house--story .house__specs { margin-top: 14px; }
.house--story .house__media { margin-top: 22px; position: static; }
.house--story .house__text { margin-top: 30px; }
.house--story .house__text .case-field { margin-top: 24px; }
.house--story .house__text .case-field:first-child { margin-top: 0; }

/* галерея: рамка под вертикальные кадры, по бокам — размытый тот же кадр вместо чёрных полей */
.house--story .gallery__main { aspect-ratio: auto; height: min(620px, 70svh); max-height: none; overflow: hidden; }
.house--story .gallery__main::before { content: ""; position: absolute; inset: -30px; background: var(--gbg, none) center / cover no-repeat; filter: blur(26px) brightness(0.5); }
.house--story .gallery__img { position: relative; z-index: 1; }
.house--story .gallery__video { z-index: 1; }
.house--story .gallery__nav, .house--story .gallery__counter, .house--story .gallery__hint { z-index: 2; }

/* заголовки разделов — заметно меньше заголовка страницы */
.house--story .house__h2, .house--story .house__h2--sm { font-size: clamp(21px, 2.4vw, 26px); line-height: 1.25; margin: 0 0 14px; }

.house--story .review-card { margin-top: 36px; }
.house--story .review-card__key, .house--story .review-card__by, .house--story .review-card__quote { max-width: none; }

/* что вошло в работу — одна карточка, группы друг под другом */
.scope { margin-top: 40px; }  /* без подложки, как в окне кейса (17.11) */
.scope__group { margin-top: 24px; }
.scope__group:first-of-type { margin-top: 4px; }
.scope .case-field__label { margin: 0 0 10px; }
.scope .case-protect { margin-top: 0; }
.scope .case-protect li { font-size: 15px; line-height: 1.5; }
@media (min-width: 768px) {
  /* две колонки «газетой», а не сеткой: пункты разной длины не оставляют дыр между строками (19.11) */
  .scope .case-list, .scope .case-protect { display: block; columns: 2; column-gap: 32px; }
  .scope .case-list li, .scope .case-protect li { break-inside: avoid; margin-bottom: 9px; }
}

/* цена и кнопка */
.house--story .deal { margin-top: 40px; max-width: none; }
.house--story .deal__trust { font-size: 15px; color: var(--text); gap: 8px 22px; }
.house--story .deal__text { font-size: 16px; }
@media (min-width: 768px) { .house--story .deal__btn { width: auto; min-width: 340px; } }

/* другие дома — компактные строки, легче самого кейса */
.house--story .similar { margin-top: 48px; }
.house--story .similar .works { grid-template-columns: 1fr; gap: 10px; }
.house--story .similar .case { flex-direction: row; display: flex; align-items: stretch; }
.house--story .similar .case__cover { aspect-ratio: auto; width: 112px; min-height: 104px; flex: none; }
.house--story .similar .case__media, .house--story .similar .case__link { display: none; }
.house--story .similar .case__body { padding: 12px 16px; justify-content: center; }
.house--story .similar .case__title { font-size: 16px; min-height: 0; }
.house--story .similar .case__specs { margin-top: 6px; }
.house--story .similar .spec:nth-child(4) { display: none; }
.house--story .more-links { margin-top: 24px; }

@media (max-width: 767px) {
  .house--story .house__title { font-size: 25px; }
  /* плашки по ширине текста, без пустых белых хвостов (17.11) */
  .house--story .house__specs { display: flex; flex-wrap: wrap; gap: 6px; }
  .house--story .gallery__main { height: auto; aspect-ratio: 4 / 5; max-height: 62svh; }
  .house--story .gallery__caption { display: block; }
  .house--story .similar .case__cover { width: 88px; min-height: 96px; }
  .house--story .similar .case__title { font-size: 15px; }
}
.house--story .similar .case__specs { display: flex; flex-wrap: wrap; gap: 5px; }
@media (max-width: 767px) { .house--story .similar .spec:nth-child(3) { display: none; } }

/* правки по независимой проверке 16.11 */
/* «С чем пришёл клиент» и «Что сделали и почему» — главные разделы истории, а не подписи */
.house--story .house__text .case-field__label { font-family: var(--font-display); font-size: clamp(21px, 2.4vw, 26px); line-height: 1.25; font-weight: 700; color: var(--text); text-transform: none; letter-spacing: 0; margin: 0 0 12px; }
.house--story .house__text .case-field__label::before { display: none; }
.house--story .house__text .case-field { margin-top: 32px; }
.house--story .house__text .case-field:first-child { margin-top: 0; }
/* 320: ничего не вылезает за колонку */
.house--story .similar .case__body { min-width: 0; flex: 1 1 0; }
.house--story .similar .case__title { overflow-wrap: normal; }
/* на телефоне липкая кнопка не закрывает низ подвала */
@media (max-width: 1023px) { body[data-page="house"] .footer { padding-bottom: 96px; } }
/* удобные для пальца зоны нажатия */
@media (max-width: 767px) {
  .house--story .review-card__more, .house--story .review-card__link, .house--story .more-links a { padding-block: 9px; }
  .house--story .gallery__nav { width: 44px; height: 44px; }
}

/* ── Единое правило подложек (17.11): рассказ — по фону, отзыв и справка — одинаковые карточки ── */
.house--story .review-card { background: var(--bg); border: 0; border-left: 3px solid var(--accent); }

/* Сверка с окном кейса (17.11): страница белая, выделенное — серыми плашками без рамок; на узком — строка «Других домов» в столбик */
@media (max-width: 359px) {
  .house--story .similar .case { flex-direction: column; }
  .house--story .similar .case__cover { width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
}

/* Карточка кейса: имя дома + строка особенности (17.11) */
.case__feature { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--text); }
.house__lead { margin: 8px 0 0; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.4; color: var(--text-secondary); font-weight: 500; }
@media (min-width: 768px) { .case__feature { min-height: 2.9em; } }
.house--story .similar .case__feature { min-height: 0; }

/* ── Фильтры, вариант А (17.11) ── */
.filters { gap: 16px; }
.filters__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.25; margin: 0; }
.filters__hint { margin: -10px 0 0; font-size: 15px; color: var(--text-secondary); }
.filters__group { display: block; }
.filters__label { display: block; min-width: 0; margin: 0 0 8px; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text); }
.filters__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip.is-active::before { content: "✓"; margin-right: 6px; font-weight: 700; }
.filter-chip.is-empty { opacity: 0.5; }
.filter-chip.is-empty small { opacity: 1; }
.filters__bar { display: flex; align-items: center; justify-content: flex-start; gap: 24px; margin: 0; padding-top: 4px; }
.filters__count { font-size: 15px; font-weight: 700; color: var(--accent); text-decoration: none; }
.filters__reset { font-size: 15px; }
.filters__reset[hidden] { display: none; }
#works { scroll-margin-top: 80px; }
.float-contacts { transition: opacity var(--transition); }
.float-contacts.is-away { opacity: 0; pointer-events: none; }
/* «Другие дома» (17.11): с 768px — обычные карточки в ряд, как на «Примерах работ»; заголовки стали короткими, строка с крошечной обложкой больше не нужна */
@media (min-width: 768px) {
  .house--story .similar .works { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .house--story .similar .case { flex-direction: column; }
  .house--story .similar .case__cover { width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
  .house--story .similar .case__body { padding: 16px 18px; justify-content: flex-start; }
  .house--story .similar .case__title { font-size: 16px; }
}
/* на телефоне — строки, но обложка крупнее */
@media (max-width: 767px) {
  .house--story .similar .case__cover { width: 120px; min-height: 120px; }
}
@media (min-width: 768px) { .house--story .similar .case__feature { min-height: 2.9em; } }
/* «Другие дома» на телефоне (17.11): тоже обычные карточки столбиком, обложка 16:10 во всю ширину — без узких полос разной высоты */
@media (max-width: 767px) {
  .house--story .similar .case { flex-direction: column; }
  .house--story .similar .case__cover { width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
  .house--story .similar .case__body { padding: 14px 16px; }
}
.filter-chip.is-empty:disabled { text-decoration: none; opacity: 0.45; cursor: default; }

/* Страница дома: несколько абзацев подряд в «Что сделали и почему» — шаг 8px, как между пунктами списка (17.11.2026) */
.house__text .case-field p + p, .house__text .case-field p + ol { margin-top: 8px; }

/* Фильтры на телефоне (17.11): свёрнуты под одну кнопку «Фильтр» */
.filters__toggle { display: none; }
.filters__body { display: grid; gap: 16px; }
@media (max-width: 767px) {
  .filters__title { display: none; }
  .filters__toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px;
    background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-pill);
    font: inherit; font-size: 15px; font-weight: 700; color: var(--text); cursor: pointer; justify-self: start;
  }
  .filters__toggle svg { width: 20px; height: 20px; flex: none; }
  .filters.is-open .filters__toggle { background: var(--bg-dark); border-color: var(--bg-dark); color: #fff; }
  .filters__badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent-warm); color: #2A2009; font-size: 13px; line-height: 22px; text-align: center; }
  .filters__badge[hidden] { display: none; }
  .filters__body { display: none; }
  .filters.is-open .filters__body { display: grid; }
  .filters { gap: 12px; }
}
@media (max-width: 767px) {
  .page-lead { font-size: 16px; line-height: 1.45; margin-top: 10px; }
  .filters { margin-top: 16px; }
}
@media (max-width: 359px) {
  .filters__toggle { font-size: 14px; padding: 10px 14px; gap: 8px; white-space: nowrap; }
}
@media (max-width: 767px) { .filters__toggle { max-width: 100%; } .filters__label-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } }
/* «Примеры работ»: карточки сразу под фильтром, без пустой полосы (17.11) */
.page-head + .section--alt { padding-top: 20px; }
.page-head + .section--alt .works { margin-top: 0; }
.page-head { padding-bottom: 20px; }
@media (max-width: 767px) { .filters__toggle { max-width: 100%; min-width: 0; overflow: hidden; } }
