/* ================================================================
   Сибирские Бани — Премиальный лендинг
   Цветовая палитра из референса Дорогие_Бани_2.HTML
================================================================ */

:root {
  --bg: #141210;
  --bg-2: #1b1816;
  --panel: #231f1c;
  --panel-2: #181513;
  --line: #3a312a;
  --text: #f3eee7;
  --muted: #c9b8a7;
  --soft: #a69584;
  --accent: #c9a77a;
  --gold: #c9a77a;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --radius: 28px;
  --container: 1240px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(38px, 5.5vw, 72px); line-height: 1.02; letter-spacing: -.03em; }
h2 { font-size: clamp(28px, 3.8vw, 54px); line-height: 1.04; letter-spacing: -.03em; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.text { font-size: 18px; line-height: 1.85; color: var(--muted); }
.small { font-size: 15px; line-height: 1.8; color: var(--muted); }
.eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.eyebrow-pill {
  display: inline-flex; padding: 10px 16px;
  border: 1px solid #4a3c31; border-radius: 999px;
  color: var(--muted); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
}

/* ===== LAYOUT ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ===== КАРТОЧКИ МОДЕЛЕЙ (блок Форматы) ===== */
.model-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel);
  transition: transform .3s ease;
}
.model-card:hover { transform: translateY(-4px); }
.model-card .media-frame {
  aspect-ratio: 1/1;
  border-radius: 0;
  flex-shrink: 0;
}
.model-card-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.model-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(201,167,122,0.12);
  border: 1px solid rgba(201,167,122,0.25);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  align-self: flex-start;
}
.model-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.model-card .model-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  margin: 0;
}

/* ===== ДЕТАЛИ — 4 фото горизонтально во всю ширину ===== */
.details-row-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.details-photo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.details-photo-item .media-frame {
  aspect-ratio: 5/6;
  border-radius: 18px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stack { display: grid; gap: 20px; }
.mobile-larch-accordion { display: none; }
.mobile-cedar-accordion { display: none; }
.mobile-rockwool-accordion { display: none; }
.mobile-wind-accordion { display: none; }
.production-mobile-photo2 { display: none; }
.production-mobile-photo3 { display: none; }
.install-mobile-photo1 { display: none; }
.install-mobile-photo2 { display: none; }
.install-mobile-photo3 { display: none; }
.s16 { height: 16px; } .s20 { height: 20px; } .s24 { height: 24px; }
.s32 { height: 32px; } .s36 { height: 36px; } .s40 { height: 40px; } .s48 { height: 48px; }
.text-center { text-align: center; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 18px;
  font-weight: 600; font-size: 16px; font-family: inherit;
  transition: .18s ease; border: 1px solid transparent; cursor: pointer;
}
.btn.primary { background: var(--accent); color: var(--bg); }
.btn.primary:hover { opacity: .9; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201,167,122,.3); }
.btn.ghost { border-color: #4a3c31; color: var(--text); background: transparent; }
.btn.ghost:hover { background: #2a2420; }
.btn.sm { min-height: 44px; padding: 0 20px; font-size: 14px; border-radius: 14px; }

/* ===== PANEL ===== */
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel.inner { background: var(--panel-2); }

/* ===== MEDIA FRAME ===== */
.image-card { padding: 12px; }
.media-frame {
  position: relative; overflow: hidden; border-radius: 22px;
  background: linear-gradient(135deg, #302922, #1f1a17);
}
.media-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.image-card:hover .media-frame img { transform: scale(1.04); }
.image-label {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 10px 14px; border-radius: 16px;
  background: rgba(20,18,16,.6); color: var(--text);
  font-size: 13px; backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ===== CARD ===== */
.card { padding: 28px; }
.card p { margin-top: 12px; }

/* ===== BULLETS ===== */
.bullets { display: grid; gap: 12px; margin-top: 24px; }
.bullet { display: flex; gap: 12px; align-items: flex-start; color: #e7d8c9; font-size: 17px; }
.bullet-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); margin-top: 9px; flex: none; }

/* ===== ACTIONS ===== */
.actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }

/* ================================================================
   HEADER
================================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(20,18,16,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 6px 0;
}
.brand { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-title { font-size: 18px; font-weight: 700; letter-spacing: .02em; color: var(--text); }
.brand-sub { font-size: 11px; color: var(--soft); letter-spacing: .04em; }

nav { display: flex; gap: 24px; align-items: center; color: var(--muted); font-size: 14px; }
nav a { transition: color .15s; position: relative; padding: 4px 0; }
nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--accent); transition: width .2s ease;
}
nav a:hover, nav a.active { color: var(--text); }
nav a.active::after, nav a:hover::after { width: 100%; }

.header-phone { color: var(--muted); font-size: 15px; font-weight: 600; white-space: nowrap; transition: .18s; }
.header-phone:hover { color: var(--text); }
.header-cta { margin-left: 8px; }

/* Burger */
.burger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px 4px; background: none; border: none; z-index: 10;
}
.burger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  transition: .22s ease; border-radius: 2px;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none; flex-direction: column;
  border-top: 1px solid var(--line); padding: 16px 24px 24px;
  background: rgba(20,18,16,.98);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 13px 0; font-size: 16px; color: var(--muted);
  border-bottom: 1px solid var(--line); transition: color .15s;
}
.mobile-nav a:hover { color: var(--text); }
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav .btn { margin-top: 16px; width: 100%; justify-content: center; }

/* ================================================================
   HERO — полноэкранный слайдшоу фоном, текст слева
================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 60px 0 60px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* Фоновый слайдшоу */
.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  animation: heroFade3 18s infinite;
}
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: blur(3px) brightness(0.62) saturate(0.85);
}

/* 3 слайда × 6 сек каждый = 18 сек цикл */
@keyframes heroFade3 {
  0%        { opacity: 1; }
  28%       { opacity: 1; }
  33%       { opacity: 0; }
  95%       { opacity: 0; }
  100%      { opacity: 1; }
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(8,6,4,0.82) 0%,
    rgba(8,6,4,0.55) 55%,
    rgba(8,6,4,0.25) 100%
  );
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-inner { max-width: 100%; }

/* Мобильный слайдер героя */
.hero-mobile-slider-wrap { display: none; }

/* Коллаж фото */
.hero-collage {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-collage-main {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative; cursor: pointer;
}
.hero-collage-main img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero-collage-small {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero-collage-sm-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.hero-collage-sm-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.hero-counters {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(58,49,42,.7);
}
.counter-item { display: flex; flex-direction: column; gap: 4px; }
.counter-num { font-size: 38px; font-weight: 700; color: var(--accent); line-height: 1; }
.counter-label { font-size: 13px; color: var(--muted); }

/* ================================================================
   ДЛЯ КОГО — фото фоном
================================================================ */
.for-whom-section {
  position: relative;
  padding: 90px 0 80px;
  overflow: hidden;
}
@media (max-width: 480px) {
  .for-whom-section { overflow: visible; }
}
.fw-arrow { display: none; }
.for-whom-slider-wrap { position: relative; }
.for-whom-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.for-whom-bg img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: blur(0px) brightness(0.45) saturate(0.9);
  transform: scale(1.03);
}
.for-whom-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10,7,5,0.30) 0%,
    rgba(10,7,5,0.20) 60%,
    rgba(10,7,5,0.40) 100%
  );
}
.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
/* Карточки поверх фона — полупрозрачные */
.for-whom-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201,167,122,0.25);
  border-radius: 18px;
  padding: 28px 24px;
}
.for-whom-card h3 {
  font-size: 17px; font-weight: 700;
  color: #e8ddd0; margin-bottom: 10px;
}
.for-whom-card .small {
  font-size: 14px; color: #b8a898; line-height: 1.55;
}

/* ================================================================
   ПОДБОР ПОД УЧАСТОК — card-img: картинка + текст в одном блоке
================================================================ */
.panel.card-img {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.panel.card-img .media-frame {
  border-radius: 0;
  flex-shrink: 0;
}
.card-img-body {
  padding: 20px 22px 22px;
  border-top: 1px solid var(--line);
}
.card-img-body h3 { margin: 0 0 8px; font-size: 17px; }
.card-img-body .small { margin: 0; }

/* ================================================================
   ГАЛЕРЕЯ — 2×2 одинаковые фото (как в референсе)
================================================================ */
.gallery-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.gallery-2x2-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: zoom-in;
}
.gallery-2x2-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.gallery-2x2-item:hover img { transform: scale(1.03); }
.card-mini-slider { display: flex; overflow: hidden; width: 100%; height: 100%; }
.card-mini-slide { flex-shrink: 0; width: 100%; height: 100%; position: relative; }
.card-mini-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-arr { display: none; }
.gallery-item-name {
  position: absolute; left: 12px; bottom: 12px;
  padding: 8px 14px; border-radius: 14px;
  background: rgba(20,18,16,.6); color: var(--text);
  font-size: 13px; backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none; z-index: 5;
}

/* ================================================================
   СЛАЙДЕР (интерьер и др.)
================================================================ */
.slider-wrap {
  position: relative; overflow: hidden; border-radius: 22px;
}
.slider-track { display: flex; transition: transform .42s ease; will-change: transform; }
.slide { flex: none; width: 100%; }

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(20,18,16,.65); backdrop-filter: blur(8px);
  border: 1px solid var(--line); color: var(--text);
  cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; font-weight: 300;
  transition: .15s; font-family: sans-serif;
}
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-btn:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.slider-dots {
  display: flex; gap: 6px; justify-content: center; padding: 10px 0 2px;
}
.slider-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--line); cursor: pointer; transition: all .2s;
}
.slider-dot.active { background: var(--accent); width: 22px; border-radius: 3px; }

/* ================================================================
   ИНТЕРЬЕР — split
================================================================ */
/* использует .split */

/* ================================================================
   КОМПЛЕКТАЦИЯ — аккордеоны
================================================================ */
details.panel {
  padding: 18px 22px; box-shadow: none; background: var(--bg-2);
}
summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 16px; font-weight: 600; user-select: none; line-height: 1.4;
}
summary::-webkit-details-marker { display: none; }
details p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.plus {
  color: var(--soft);
  font-size: 0;
  flex: none;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s ease;
}
details[open] .plus {
  transform: rotate(-135deg) translateY(-2px);
}
.accordions { display: grid; gap: 10px; }

/* ================================================================
   ВЕРТИКАЛЬНЫЕ ШАГИ (блок монтаж)
================================================================ */
/* Монтаж — растяжка колонок */
#install .container.split { align-items: stretch; }
#install .stack { display: flex; flex-direction: column; height: 100%; }
#install .stack > .panel:first-child { flex: 1; min-height: 0; }
#install .stack > .panel:first-child .media-frame { aspect-ratio: unset !important; height: 100%; }

.install-steps { display: flex; flex-direction: column; margin-top: 32px; }
.install-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: start;
}
.install-step:last-child { border-bottom: none; }
.install-step-num {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(201,167,122,0.35);
  color: var(--gold);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.install-step-body h3 {
  font-size: 16px; font-weight: 700;
  color: #fff; margin: 0 0 6px;
}
.install-step-body p {
  font-size: 14px; color: rgba(255,255,255,0.6);
  line-height: 1.55; margin: 0;
}

/* ================================================================
   ЭТАПЫ РАБОТЫ
================================================================ */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 48px; position: relative;
}
.steps::before {
  content: '';
  position: absolute; top: 24px;
  left: calc(12.5% + 12px); right: calc(12.5% + 12px);
  height: 1px; background: var(--line); z-index: 0;
}
.step { text-align: center; padding: 0 20px; position: relative; z-index: 1; }
.step-num {
  width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid var(--accent); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; margin: 0 auto 20px;
  background: var(--bg);
}
.step h3 { font-size: 17px; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ================================================================
   ПРОИЗВОДСТВО — мини-сетка
================================================================ */
.production-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.production-photos { display: grid; gap: 14px; padding-top: 35px; }
.production-photos .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.production-mobile-photo { display: none; }
.interior-mobile-photo { display: none; }
.production-mobile-gap { display: none; }

/* ================================================================
   ВИДЕО
================================================================ */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.video-card { padding: 12px; cursor: pointer; }
.video-frame {
  position: relative; border-radius: 22px; overflow: hidden;
  aspect-ratio: 16/9; background: #1f1a17;
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 22px; }
.video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,18,16,.72), rgba(20,18,16,.18));
}
.play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 999px;
  background: rgba(20,18,16,.58); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--text); transition: .2s;
}
.video-card:hover .play-btn {
  background: var(--accent); color: var(--bg);
  transform: translate(-50%, -50%) scale(1.1);
}

/* ================================================================
   ОТЗЫВЫ — большие карточки (фото + текст)
================================================================ */
.review-big-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  border-radius: 20px;
  padding: 0;
}
.review-big-photo { overflow: hidden; }
.review-big-frame {
  aspect-ratio: unset !important;
  height: 100%;
  border-radius: 0;
  min-height: 300px;
}
.review-big-content {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.stars { color: var(--accent); font-size: 16px; letter-spacing: 3px; }
.review-big-quote {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  margin: 0;
}
.review-big-author { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.review-big-name { font-size: 16px; font-weight: 700; color: #fff; }
.review-big-city { font-size: 13px; color: var(--accent); }

/* ================================================================
   FAQ
================================================================ */
.faq { display: grid; gap: 12px; margin-top: 36px; max-width: 880px; }
.faq details.panel { padding: 22px 26px; background: var(--panel); }

/* ================================================================
   ФОРМА ЗАЯВКИ
================================================================ */
.form-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.form-wrap { padding: 36px; }
.form { display: grid; gap: 12px; }
.field, .select, .textarea {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; font: inherit; font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a69584' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-color: var(--bg);
  padding-right: 48px;
}
.textarea { min-height: 120px; resize: vertical; }
.field::placeholder, .textarea::placeholder { color: #7e6e60; }
.field:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,167,122,.15);
}
.form-success {
  display: none; padding: 22px; border-radius: 16px;
  background: rgba(201,167,122,.1); border: 1px solid rgba(201,167,122,.3);
  text-align: center; font-size: 16px; line-height: 1.6;
}
.form-success.show { display: block; }
.form-error {
  display: none; padding: 14px; border-radius: 12px;
  background: rgba(200,60,60,.1); border: 1px solid rgba(200,60,60,.3);
  color: #f4a0a0; font-size: 14px;
}
.form-error.show { display: block; }
.form-benefits { display: grid; gap: 12px; margin-top: 28px; }
.form-benefit { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--muted); }
.form-benefit-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); flex: none; }

/* ================================================================
   FOOTER
================================================================ */
.footer { background: var(--bg-2); padding: 60px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line); margin-bottom: 32px;
}
.footer-brand-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.footer-brand-sub { font-size: 13px; color: var(--soft); margin-bottom: 20px; }
.footer-contacts { display: grid; gap: 8px; }
.footer-contact { font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.footer-contact strong { color: var(--text); font-weight: 600; }
.footer-contact a { transition: color .15s; }
.footer-contact a:hover { color: var(--accent); }
.footer-nav-title { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-bottom: 16px; }
.footer-nav { display: grid; gap: 10px; }
.footer-nav a { font-size: 15px; color: var(--muted); transition: color .15s; }
.footer-nav a:hover { color: var(--text); }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.social-icon {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 17px; transition: .15s; text-decoration: none;
}
.social-icon:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-copy { font-size: 13px; color: var(--soft); }
.footer-policy { font-size: 13px; color: var(--soft); transition: color .15s; }
.footer-policy:hover { color: var(--muted); }

/* ================================================================
   ПЛАВАЮЩАЯ КНОПКА «ПОЗВОНИТЬ» (только мобиле)
================================================================ */
.float-call {
  display: none;
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 200;
  background: var(--accent); color: var(--bg);
  padding: 14px 32px; border-radius: 999px;
  font-weight: 700; font-size: 16px;
  box-shadow: 0 8px 32px rgba(201,167,122,.4);
  transition: .18s; white-space: nowrap;
  text-decoration: none; letter-spacing: .02em;
}
.float-call:hover { opacity: .9; transform: translateX(-50%) translateY(-2px); }

/* ================================================================
   АНИМАЦИИ ПРОКРУТКИ
================================================================ */
.fade-up {
  opacity: 0; transform: translateY(36px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: .1s; }
.fade-up.d2 { transition-delay: .2s; }
.fade-up.d3 { transition-delay: .3s; }
.fade-up.d4 { transition-delay: .4s; }

/* ================================================================
   АДАПТИВНОСТЬ
================================================================ */

/* --- Широкий планшет --- */
@media (max-width: 1240px) {
  .for-whom-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps::before { display: none; }
  .production-grid { gap: 40px; }
}

/* --- Планшет / небольшой ноутбук --- */
@media (max-width: 980px) {
  nav { display: none; }
  .header-cta { display: none; }
  .header-phone { display: none !important; }
  .burger { display: flex; }
  .float-call { display: flex; }
  .section { padding: 60px 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .form-split { grid-template-columns: 1fr; gap: 40px; }
  .production-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 70px 0 50px; min-height: auto; }
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-collage-main { aspect-ratio: 16/9; }
  .hero-collage-small { display: none; }
  .hero-collage { display: none; }
  .hero-mobile-slider-wrap {
    display: block;
    position: relative;
    margin-top: 24px;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 16px;
  }
  .hero-mobile-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hero-mobile-slider::-webkit-scrollbar { display: none; }
  .hero-mobile-slide {
    width: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 16px;
    overflow: hidden;
  }
  .hero-mobile-slide img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
  }
  .hero-mobile-slider-wrap .fw-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 28px;
    height: 44px;
    font-size: 20px;
    background: rgba(20,16,12,.45);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.15);
  }
  .hero-mobile-slider-wrap .fw-prev { left: 8px; }
  .hero-mobile-slider-wrap .fw-next { right: 8px; }

  /* Интерьер — инлайн-сетка → 1 колонка */
  #interior .container { display: grid !important; grid-template-columns: 1fr !important; gap: 36px !important; }
  /* Фото между буллетами показываем уже с планшета */
  .interior-mobile-photo { display: block; margin-top: 4px; margin-bottom: 4px; padding: 0; overflow: hidden; }
  .interior-mobile-photo .media-frame { border-radius: 0; }

  /* Материалы — фото под текстом */
  #construction .split > div:first-child { order: 2; }
  #construction .split > div:last-child { order: 1; }

  /* Аккордеоны под фото — показываем на мобилке, весь блок аккордеонов скрываем */
  .mobile-larch-accordion { display: block; }
  .mobile-cedar-accordion { display: block; }
  .mobile-rockwool-accordion { display: block; }
  .mobile-wind-accordion { display: block; }
  .construction-accordions { display: none; }

  /* Отзывы — фото сверху, текст снизу */
  .review-big-card { grid-template-columns: 1fr; }
  .review-big-frame { min-height: 300px; }
  .review-big-content { padding: 28px 32px 36px; }

  /* Для кого */
  .for-whom-section { padding: 60px 0; }
}

/* --- Мобильный широкий --- */
@media (max-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .details-photo-row { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid .span2 { grid-column: span 2; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .for-whom-grid { grid-template-columns: 1fr 1fr; }

  /* Счётчики */
  .hero-counters { gap: 20px; }
  .counter-num { font-size: 28px; }
  .counter-label { font-size: 12px; }

  /* Отзывы */
  .review-big-card { grid-template-columns: 1fr; }
  .review-big-frame { min-height: 260px; }
  .review-big-content { padding: 24px 24px 28px; }
  .review-big-quote { font-size: 15px; }

  /* Лайтбокс — кнопки поменьше */
  .lb-prev { left: 4px; width: 42px; height: 60px; font-size: 30px; }
  .lb-next { right: 4px; width: 42px; height: 60px; font-size: 30px; }

  /* Иконка зума — всегда видна на тач */
  .lb-zoom-icon { opacity: .6; }

  /* Заголовки */
  h2 { font-size: clamp(22px, 5.5vw, 40px); }
  h3 { font-size: 18px; }
  .text { font-size: 16px; line-height: 1.75; }

  /* Аккордеоны */
  summary { font-size: 15px; }

  /* Детали — пропорции фото */
  .details-photo-item .media-frame { aspect-ratio: 4/5; }
}

/* --- Мобильный --- */
@media (max-width: 480px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .details-photo-row { grid-template-columns: repeat(2, 1fr); }
  /* Карточки галереи — мини-слайдер */
  .card-mini-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .card-mini-slider::-webkit-scrollbar { display: none; }
  .card-mini-slide { scroll-snap-align: start; }
  .card-arr {
    display: flex;
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 10;
    background: rgba(20,16,12,.45);
    border: 1px solid rgba(255,255,255,.15);
    color: #c9a77a; font-size: 20px;
    width: 28px; height: 44px;
    border-radius: 10px; cursor: pointer;
    align-items: center; justify-content: center; line-height: 1;
  }
  .card-arr-prev { left: 8px; }
  .card-arr-next { right: 8px; }

  /* Для кого — горизонтальный слайдер */
  .for-whom-slider-wrap {
    position: relative;
    padding: 0 36px;
    margin-left: -16px;
    margin-right: -16px;
  }
  .for-whom-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .for-whom-grid::-webkit-scrollbar { display: none; }
  .for-whom-card {
    width: calc(100% - 48px);
    min-width: 0;
    flex-shrink: 0;
    flex-grow: 0;
    scroll-snap-align: start;
    overflow: hidden;
    box-sizing: border-box;
    word-break: break-word;
  }
  .fw-arrow {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(20,16,12,.45);
    border: 1px solid rgba(255,255,255,.15);
    color: #c9a77a;
    font-size: 20px;
    width: 28px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  .fw-prev { left: 8px; }
  .fw-next { right: 8px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .span2 { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .actions { display: grid; }
  .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .hero-counters { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
  .production-photos .row { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .container { padding: 0 16px; }

  /* Герой */
  .eyebrow-pill { letter-spacing: .1em; display: block; text-align: center; }
  .hero { padding: 36px 0 40px; }
  h1 { font-size: clamp(30px, 8.5vw, 48px); }
  h2 { font-size: clamp(22px, 7vw, 36px); }
  h3 { font-size: 17px; }
  .text { font-size: 15px; }
  .small { font-size: 14px; }
  .bullet { font-size: 15px; }

  /* Спейсеры */
  .s48 { height: 28px; }
  .s40 { height: 20px; }
  .s36 { height: 22px; }
  .s32 { height: 18px; }
  .s24 { height: 14px; }

  /* Анимации — без задержек на мобиле */
  .fade-up.d1, .fade-up.d2, .fade-up.d3, .fade-up.d4 { transition-delay: 0s; }

  /* Карточки */
  .card { padding: 20px; }
  .for-whom-card { padding: 18px 16px; }

  /* Форма */
  .form-wrap { padding: 20px 16px 24px; }
  .field, .select, .textarea { padding: 14px 16px; font-size: 16px; }

  /* Отзывы */
  .review-big-frame { min-height: 220px; }
  .review-big-content { padding: 18px 16px 22px; }
  .review-big-quote { font-size: 14px; line-height: 1.7; }
  .review-big-name { font-size: 15px; }

  /* Детали */
  .details-photo-row { grid-template-columns: 1fr; }
  .details-photo-item .media-frame { aspect-ratio: 16/9; }
  .details-row-wrap { padding: 0 16px; }

  /* Для кого */
  .for-whom-section { padding: 44px 0; }

  /* Интерьер — убираем gap между текстом и галереей */
  #interior .container { grid-template-columns: 1fr !important; gap: 0 !important; }
  #interior .gallery-2x2 { margin-top: 4px !important; }
  #interior .gallery-2x2-item { background: var(--panel); border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; }

  /* Галерея */
  .gallery-2x2 { grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }
  .gallery-2x2-item { aspect-ratio: 16/9; }

  /* Производство */
  .production-grid { gap: 28px; }
  .interior-mobile-photo { display: block; margin-top: 4px; margin-bottom: 4px; padding: 0; overflow: hidden; }
  .interior-mobile-photo .media-frame { border-radius: 0; }
  .interior-gal2-first { display: none; }
  .interior-gal2-second { display: none; }
  .interior-gal2-third { display: none; }
  .production-mobile-photo { display: block; margin-top: 8px; margin-bottom: 4px; padding: 0; overflow: hidden; }
  .production-mobile-photo .media-frame { border-radius: 0; }
  .production-mobile-photo2 { display: block; margin-top: 12px; margin-bottom: 4px; padding: 0; overflow: hidden; }
  .production-mobile-photo2 .media-frame { border-radius: 0; }
  .production-mobile-photo3 { display: block; margin-top: 12px; margin-bottom: 4px; padding: 0; overflow: hidden; }
  .production-mobile-photo3 .media-frame { border-radius: 0; }
  .production-mobile-gap { display: block; }
  .production-photos { display: none; }

  /* Монтаж — мобильные фото */
  .install-mobile-photo1 { display: block; margin-bottom: 8px; padding: 0; overflow: hidden; }
  .install-mobile-photo1 .media-frame { border-radius: 0; }
  .install-mobile-photo2 { display: block; margin-bottom: 8px; padding: 0; overflow: hidden; }
  .install-mobile-photo2 .media-frame { border-radius: 0; }
  .install-mobile-photo3 { display: block; margin-bottom: 8px; padding: 0; overflow: hidden; }
  .install-mobile-photo3 .media-frame { border-radius: 0; }
  .install-crane-orig { display: none; }
  .install-gotova-orig { display: none; }
  .install-dostavka-orig { display: none; }

  /* Монтаж — сброс растяжки высоты на мобиле */
  #install .stack { height: auto; }
  #install .stack > .panel:first-child { flex: none; }
  #install .stack > .panel:first-child .media-frame { aspect-ratio: 16/9 !important; height: auto; }

  /* Лайтбокс */
  .lb-prev { left: 2px; width: 36px; height: 52px; font-size: 26px; }
  .lb-next { right: 2px; width: 36px; height: 52px; font-size: 26px; }
  .lb-counter { font-size: 12px; bottom: 14px; }
  .lb-overlay #lb-img { max-width: 96vw; max-height: 80vh; }

  /* Плавающая кнопка */
  .float-call { font-size: 14px; padding: 12px 20px; bottom: 14px; }

  /* Футер — отступ снизу под плавающую кнопку */
  .footer { padding-bottom: 90px; }
  /* Форма — отступ снизу под плавающую кнопку */
  #form.section { padding-bottom: 90px; }

  /* Иконка зума — всегда видна */
  .lb-zoom-icon { opacity: .7; }

  /* Видео-карточка */
  .video-card { padding: 8px; }
  .play-btn { width: 52px; height: 52px; font-size: 20px; }

  /* Аккордеоны */
  .faq details.panel { padding: 18px 16px; }
  summary { font-size: 14px; gap: 12px; }
}

/* ================================================================
   LIGHTBOX
================================================================ */
.lb-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(6,5,4,.92); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 20px;
}
.lb-overlay.active { display: flex; }
.lb-overlay #lb-img {
  max-width: 92vw; max-height: 88vh;
  border-radius: 14px; box-shadow: 0 24px 80px rgba(0,0,0,.7);
  object-fit: contain;
}
.lb-close {
  position: fixed; top: 20px; right: 24px;
  background: rgba(30,25,20,.8); border: 1px solid rgba(201,167,122,.3);
  color: #fff; font-size: 22px; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-close:hover { background: rgba(201,167,122,.25); }

.lb-prev, .lb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(30,25,20,.8); border: 1px solid rgba(201,167,122,.3);
  color: #fff; font-size: 36px; width: 52px; height: 72px;
  border-radius: 8px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background .2s; z-index: 10000; line-height: 1;
  user-select: none;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { background: rgba(201,167,122,.25); }
.lb-prev.hidden, .lb-next.hidden { display: none; }

.lb-counter {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: 14px; letter-spacing: .05em;
  pointer-events: none;
}

/* Видео-модал */
.video-modal {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(6,5,4,.92); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  padding: 20px;
}
.video-modal.active { display: flex; }
.video-modal-inner {
  position: relative;
  width: min(90vw, 1100px);
  aspect-ratio: 16/9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.75);
}
.video-modal-inner iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.video-modal-close {
  position: fixed; top: 20px; right: 24px;
  background: rgba(30,25,20,.8); border: 1px solid rgba(201,167,122,.3);
  color: #fff; font-size: 22px; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background .2s; z-index: 10000;
}
.video-modal-close:hover { background: rgba(201,167,122,.25); }
.video-modal-loader {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: #121009; border-radius: 18px;
  transition: opacity .3s;
}
.video-modal-loader.hidden { opacity: 0; pointer-events: none; }
.video-spinner {
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid rgba(201,167,122,.15);
  border-top-color: var(--accent);
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Иконка зума на фото-триггерах */
.lb-trigger { cursor: zoom-in; }
.lb-zoom-icon {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(12,9,7,.55); backdrop-filter: blur(4px);
  color: rgba(255,255,255,.7); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.lb-trigger:hover .lb-zoom-icon { opacity: 1; }

