/* Дача Мечты — редизайн. Вишнёвый акцент RAL 3005 + тех-подписи моношрифтом. */

:root {
  --bg: #f7f4ee;
  --bg-deep: #ece6dc;
  --bg-card: #ffffff;
  --bg-card-alt: #f2ede4;
  --line: #ddd5c9;
  --line-soft: #cfc5b6;
  --accent: #8e1f2b;
  --accent-hover: #a82a37;
  --accent-light: #9c2734;
  --text: #191413;
  --text-muted: #6b6158;
  --text-dim: #5f564e;
  --text-faint: #6b6158;
  --dark-bg: #14100f;
  --dark-deep: #0e0b0a;
  --light-bg: #ece6dc;
  --light-text: #191413;
  --light-muted: #6b6158;
  --light-line: #d3c9bb;
  --draft: #c9a227;
  --draft-line: #4a3d1c;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Golos Text", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --container: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: var(--accent-light); text-decoration: none; transition: color .18s; }
a:hover { color: #e0707c; }
::selection { background: var(--accent); color: #fff; }
button { font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; width: 100%; }
.container--narrow { max-width: 1120px; }

.muted { color: var(--text-muted); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); }

.mono-note {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  line-height: 1.6;
}

.mono-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.8px;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.mono-label--accent { color: var(--accent); letter-spacing: 2.2px; font-size: 11px; margin-bottom: 16px; }

.price { font-family: var(--mono); color: var(--accent-light); font-weight: 600; }

.badge-draft {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .7px;
  color: var(--draft);
  border: 1px solid var(--draft-line);
  padding: 3px 7px;
  white-space: nowrap;
}
.badge-draft--block { display: inline-block; margin: 0 0 24px; }

.disclaimer { margin: 20px 0 0; letter-spacing: .4px; color: var(--text-faint); }
.section-light .disclaimer { color: var(--light-muted); }

/* ── Кнопки ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font: 600 14px var(--sans);
  padding: 14px 24px;
  cursor: pointer;
  text-align: center;
  transition: background .18s, border-color .18s, color .18s;
}
.btn-lg { font-size: 16px; padding: 19px 32px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { border-color: var(--line-soft); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--text); }
.btn-outline-light { border-color: rgba(245, 241, 234, .35); color: var(--text); }
.btn-outline-light:hover { background: rgba(245, 241, 234, .1); color: var(--text); }
.btn-ghost { border-color: var(--line-soft); color: var(--text); font-size: 13px; padding: 12px 18px; }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.section-light .btn-outline-light { border-color: #c9bfb0; color: var(--light-text); }
.section-light .btn-outline-light:hover { background: var(--light-text); color: var(--light-bg); }

/* ── Тех-строка и шапка ───────────────────── */
.tech-strip {
  background: var(--dark-bg);
  border-bottom: 1px solid #241d1b;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .5px;
  color: #b8ada1;
}
.tech-strip-inner { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; padding: 9px 40px; }
.tech-strip-live { color: var(--accent-light); display: flex; align-items: center; gap: 7px; }
.tech-strip-live i { width: 6px; height: 6px; background: var(--accent-light); border-radius: 50%; animation: blink 2s infinite; }
.tech-strip-hours { margin-left: auto; }

@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(247, 244, 238, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; padding: 16px 40px; }

.logo { display: flex; flex-direction: column; line-height: 1; flex: none; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-name { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .2px; color: var(--text); }
.logo-name--footer { font-size: 24px; margin-bottom: 16px; }
.logo-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.8px; color: var(--accent); margin-top: 5px; }

.main-nav { display: flex; gap: 26px; margin-left: auto; font-size: 13.5px; }
.main-nav a { color: #4a423c; }
.main-nav a:hover { color: var(--accent-light); }

.header-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.phone-link { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; }
.phone-link:hover { color: var(--accent-light); }
.phone-link--footer { font-size: 17px; }

.burger { display: none; background: none; border: 1px solid var(--line-soft); width: 42px; height: 42px; cursor: pointer; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.burger span { width: 18px; height: 1.5px; background: var(--text); display: block; }
.logo-name, .logo:hover { color: var(--text); }

/* ── Герой ────────────────────────────────── */
.hero { position: relative; height: 84vh; min-height: 600px; overflow: hidden; background: var(--dark-deep); color: #f5f1ea; }
.hero .hero-subtitle { color: #d8d2c8; }
.hero--service { height: 72vh; min-height: 520px; }
.hero-media { position: absolute; inset: -14% 0; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14, 11, 10, .84) 0%, rgba(14, 11, 10, .52) 50%, rgba(14, 11, 10, .12) 100%); }
.hero-content { position: absolute; inset: 0; display: flex; align-items: center; will-change: transform; }
.hero-text { max-width: 700px; }

.kicker-line { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.kicker-line .rule { width: 44px; height: 1px; background: var(--accent); display: block; }
.kicker-line .mono { font-family: var(--mono); font-size: 11px; letter-spacing: 2.2px; color: var(--text-muted); }

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 5.6vw, 86px);
  line-height: 1.01;
  letter-spacing: -1.4px;
  margin: 0 0 26px;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: #e07a86; }
.hero .kicker-line .mono { color: #d8d2c8; }
.hero .breadcrumbs a { color: #b8ada1; }
.hero .mono-note { color: #b8ada1; }
.quote-band .mono-label--accent { color: #e07a86; }
.compare-head { color: #b8ada1; }
.h1--service { font-size: clamp(32px, 4.4vw, 64px); letter-spacing: -1px; }

.hero-subtitle { font-size: 18px; line-height: 1.6; color: #c8c0b6; margin: 0 0 34px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.breadcrumbs { display: flex; gap: 10px; align-items: center; padding: 0; margin-bottom: 26px; }
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--accent-light); }

/* ── Полоса цифр ──────────────────────────── */
.stats-bar { background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 40px; }
.stat { padding: 28px 24px 28px 26px; border-left: 1px solid var(--light-line); }
.stat-value { font-family: var(--serif); font-size: 30px; line-height: 1.05; color: var(--text); }
.stat .mono-note { margin-top: 9px; }

/* ── Секции ───────────────────────────────── */
.section { padding: 92px 0; }
.section-light { background: var(--light-bg); color: var(--light-text); }
.section-light .muted { color: var(--light-muted); }
.section-light .mono-note { color: var(--light-muted); }
.section-404 { padding-top: 120px; }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: -.8px;
  margin: 0 0 20px;
}
.section-title--sm { font-size: clamp(26px, 3.2vw, 42px); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 44px; }
.section-head .section-title { margin-bottom: 0; }
.section-head-note { max-width: 340px; font-size: 14.5px; margin: 0; }
.section-head--center { display: block; text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head--center .section-title { margin-bottom: 16px; }

/* ── Карточки услуг ───────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-grid--404 { margin-top: 44px; }

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font: inherit;
  transition: background .2s;
}
.service-card:hover { background: #fbf8f3; color: var(--text); }

.service-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.3px;
  color: var(--text-dim);
}
.service-card-image { position: relative; display: block; height: 190px; overflow: hidden; background: var(--bg-card-alt); }
.service-card-image img { position: absolute; inset: -9% 0; width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.service-card-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--bg-card-alt);
  background-image: linear-gradient(#e2dace 1px, transparent 1px), linear-gradient(90deg, #e2dace 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.2px;
  padding: 20px;
}
.service-card-image .sketch { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media--sketch { inset: 0; background: var(--bg-card-alt); }
.hero-media--sketch img { object-fit: contain; opacity: .5; }
.sketch-frame { border: 1px solid var(--line); background: var(--bg-card-alt); padding: 24px; }
.sketch-frame img { width: 100%; max-width: 680px; margin: 0 auto; }
.service-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.service-card-title { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.12; margin-bottom: 10px; display: block; }
.service-card-desc { font-size: 13.5px; line-height: 1.6; flex: 1; margin-bottom: 20px; display: block; }
.service-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.service-card-foot .price { font-size: 15px; }

/* ── Цитата на параллаксе ─────────────────── */
.quote-band { position: relative; height: 520px; overflow: hidden; background: var(--dark-deep); color: #f5f1ea; }
.quote-band--sm { height: 380px; }
.quote-band > img { position: absolute; inset: -20% 0; width: 100%; height: 140%; object-fit: cover; object-position: 50% 40%; opacity: .5; will-change: transform; }
.quote-inner { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 40px; text-align: center; will-change: transform; }
.quote-inner blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3.6vw, 50px);
  line-height: 1.25;
  margin: 0;
  max-width: 880px;
  text-wrap: balance;
}
.quote-inner .mono-label { margin-top: 30px; }

/* ── Калькулятор ──────────────────────────── */
.calc { display: grid; grid-template-columns: 1.15fr .85fr; border: 1px solid var(--line); background: var(--bg-card); }
.calc-controls { padding: 38px 36px; border-right: 1px solid var(--line); }
.calc-summary { padding: 38px 36px; background: var(--bg-card-alt); display: flex; flex-direction: column; }

.calc-materials { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 30px; }
.calc-opt {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
  cursor: pointer;
  padding: 15px 16px;
  border: none;
  background: var(--bg-card);
  color: var(--text);
  transition: background .15s;
}
.calc-opt:hover { background: #f7f4ee; }
.calc-opt[aria-pressed="true"] { background: var(--accent); color: #fff; }
.calc-opt b { font-weight: 600; font-size: 14px; line-height: 1.35; }
.calc-opt span { font-family: var(--mono); font-size: 12.5px; opacity: .72; }

.calc-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 28px; }
.calc-slider-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }
.calc-slider-head b { font-family: var(--mono); color: var(--text); }
.calc input[type="range"] { width: 100%; accent-color: var(--accent); }

.calc-check { display: flex; align-items: center; gap: 12px; font-size: 14.5px; cursor: pointer; color: #4a423c; border: 1px solid var(--line); padding: 15px 16px; }
.calc-check input { width: 17px; height: 17px; accent-color: var(--accent); }
.calc-check b { font-family: var(--mono); margin-left: auto; color: var(--accent-light); font-size: 13px; font-weight: 500; }

.calc-rows { display: flex; flex-direction: column; gap: 13px; font-size: 13.5px; margin-bottom: 24px; }
.calc-row { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.calc-row span { color: var(--text-dim); }
.calc-row b { font-family: var(--mono); color: var(--text); font-weight: 500; }

.calc-total { border-top: 1px solid var(--accent); padding-top: 20px; margin-top: auto; }
.calc-total-value { font-family: var(--serif); font-size: 40px; line-height: 1; }
.calc-total p { font-size: 12px; color: var(--text-muted); margin: 12px 0 0; line-height: 1.55; }
.calc-total .btn { width: 100%; margin-top: 20px; }

/* ── Этапы ────────────────────────────────── */
.steps { margin-top: 8px; }
.step { display: grid; grid-template-columns: 120px 1fr; gap: 40px; padding: 32px 0; border-top: 1px solid var(--light-line); align-items: start; }
.step-num { font-family: var(--serif); font-size: 46px; line-height: .9; color: #c9bfb0; }
.step-body { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: start; }
.step-body h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0; }
.step-body p { margin: 0; font-size: 15px; line-height: 1.65; }

/* ── Сравнение ────────────────────────────── */
.compare { border: 1px solid var(--line); }
.compare-row { display: grid; grid-template-columns: 1.1fr .8fr .8fr .8fr 1.3fr; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); background: var(--bg-card); font-size: 14px; }
.compare-row > div { padding: 0 22px; }
.compare-head { background: var(--dark-bg); border-bottom: 1px solid var(--line); padding: 14px 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.4px; color: #b8ada1; }
.compare-title { font-family: var(--serif); font-size: 21px; }

/* ── Галерея ──────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 196px; gap: 10px; }
.gallery-item { position: relative; overflow: hidden; cursor: pointer; background: var(--bg-card-alt); border: none; padding: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, opacity .3s; }
.gallery-item:hover img { transform: scale(1.06); opacity: .85; }
.gallery-item--wide { grid-column: span 2; grid-row: span 2; }
.gallery-item--tall { grid-row: span 2; }
.gallery-idx { position: absolute; left: 0; top: 0; background: rgba(14, 11, 10, .82); color: #c8c0b6; padding: 6px 9px; }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; background: linear-gradient(transparent, rgba(14, 11, 10, .92)); color: var(--text); font-size: 12.5px; line-height: 1.4; text-align: left; }
.gallery-placeholder {
  border: 1px dashed var(--line-soft);
  padding: 60px 24px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 1.2px;
  color: var(--text-dim);
}

/* ── Отзывы и FAQ ─────────────────────────── */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 96px; }
.review { background: var(--bg-card); padding: 36px 32px; }
.review p { font-size: 15.5px; line-height: 1.7; color: #4a423c; margin: 0 0 26px; min-height: 110px; }
.review .mono-note { border-top: 1px solid var(--line); padding-top: 18px; letter-spacing: 1px; }
.quote-mark { font-family: var(--serif); font-size: 44px; color: var(--accent); line-height: .7; margin-bottom: 20px; }

.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 26px 0;
  cursor: pointer;
  display: flex;
  gap: 20px;
  align-items: center;
  color: var(--text);
}
.faq-q > span:nth-child(2) { flex: 1; font-family: var(--serif); font-weight: 500; font-size: 19px; }
.faq-q i {
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-soft);
  color: var(--text-dim);
  display: grid;
  place-items: center;
  font-size: 19px;
  font-style: normal;
  transition: transform .25s, border-color .25s, color .25s;
}
.faq-item.is-open .faq-q i { transform: rotate(45deg); border-color: var(--accent); color: var(--accent-light); }
.faq-a { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .3s ease, opacity .3s; }
.faq-item.is-open .faq-a { max-height: 320px; opacity: 1; }
.faq-a p { margin: 0; padding: 0 0 26px 34px; max-width: 640px; font-size: 15px; line-height: 1.7; }

/* ── Варианты (страница услуги / модалка) ──── */
.variants-list { border-top: 1px solid var(--line-soft); }
.variants-list--page { border-top: 1px solid var(--line); }
.variant-row { display: grid; grid-template-columns: 1fr auto; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.variant-title { font-weight: 600; font-size: 15.5px; margin-bottom: 5px; }
.variant-row .price { font-size: 15px; white-space: nowrap; }

/* ── CTA ──────────────────────────────────── */
.cta-section .cta-inner { display: grid; grid-template-columns: 1fr .8fr; gap: 80px; align-items: center; }
.cta-section .section-title { margin-bottom: 22px; }
.phone-xl { font-family: var(--mono); font-size: 30px; font-weight: 600; letter-spacing: -.5px; color: var(--light-text); display: block; margin: 30px 0 8px; }
.phone-xl:hover { color: var(--accent); }
.cta-form-card { background: var(--bg-card); border: 1px solid var(--line); padding: 38px 34px; }
.cta-form-card .mono-label { margin-bottom: 20px; }

/* ── Формы ────────────────────────────────── */
.lead-form { display: flex; flex-direction: column; gap: 13px; }
.lead-form label { display: flex; flex-direction: column; gap: 7px; }
.lead-form label > span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.2px; color: var(--text-dim); }
.lead-form input, .lead-form select, .lead-form textarea {
  font: 15px var(--sans);
  padding: 15px 16px;
  border: 1px solid var(--line-soft);
  background: #fdfbf8;
  color: var(--text);
  outline: none;
  width: 100%;
  transition: border-color .18s;
}
.lead-form input[type="tel"] { font-family: var(--mono); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: var(--accent); }
.lead-form textarea { resize: vertical; }
.lead-form .small { color: var(--text-dim); margin: 0; line-height: 1.5; }
.form-message { font-size: 13.5px; margin: 0; color: var(--accent-light); }
.consent-label { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; cursor: pointer; }
.consent-label input[type="checkbox"] { flex: 0 0 auto; margin-top: 3px; width: 15px; height: 15px; accent-color: var(--accent); }
.consent-label .small { color: var(--text-dim); line-height: 1.5; }
.consent-label .small a { color: var(--text-dim); text-decoration: underline; }
.consent-label .small a:hover { color: var(--accent-light); }

/* ── Подвал ───────────────────────────────── */
.site-footer { background: var(--dark-deep); color: #b8ada1; padding: 70px 0 30px; }
.site-footer .logo-name { color: #f5f1ea; }
.site-footer .muted { color: #b8ada1; }
.site-footer .mono-note { color: #9b9085; }
.site-footer .phone-link { color: #f5f1ea; }
.site-footer .btn-ghost { border-color: #2a2320; color: #f5f1ea; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.site-footer h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.6px; color: #c8c0b6; margin: 0 0 18px; font-weight: 500; }
.site-footer p { margin: 0 0 14px; font-size: 14px; line-height: 1.7; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a { color: #b8ada1; }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid #241d1b; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-copy { letter-spacing: .5px; margin: 0; min-width: 0; }
.footer-legal-links { margin: 0; min-width: 0; }
.footer-legal-links a { color: #b8ada1; }
.footer-legal-links a:hover { color: var(--accent-light); }
.footer-legal-links span { color: #b8ada1; margin: 0 4px; }

/* ── Юридические страницы ─────────────────── */
.legal-page { padding-top: 120px; }
.legal-body { margin-top: 44px; max-width: 720px; }
.legal-body h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 44px 0 14px; color: var(--text); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { font-size: 15.5px; line-height: 1.75; color: var(--text-muted); margin: 0 0 16px; }
.legal-body a { color: var(--accent-light); }
.legal-body a:hover { text-decoration: none; }

/* ── Плавающая кнопка ─────────────────────── */
.fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 130;
  border: none;
  background: var(--accent);
  color: #fff;
  font: 600 13.5px var(--sans);
  padding: 16px 22px;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  gap: 9px;
  transition: background .18s;
}
.fab:hover { background: var(--accent-hover); }
.fab i { width: 7px; height: 7px; background: #f0a5ae; border-radius: 50%; animation: blink 1.6s infinite; }

/* ── Модалки ──────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 6, 6, .82); backdrop-filter: blur(6px); }
.modal-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 44px 100px rgba(0, 0, 0, .6);
  animation: modal-in .32s cubic-bezier(.22, .7, .3, 1) both;
}
.modal-card--service { max-width: 680px; }
.modal-card--box { max-width: 1040px; }

/* Скролл попапа — под общий стиль сайта (прямые углы, без скруглений,
   палитра карточки), а не системный серый скроллбар. */
.modal-card { scrollbar-width: thin; scrollbar-color: var(--line) var(--bg-card-alt); }
.modal-card::-webkit-scrollbar { width: 8px; }
.modal-card::-webkit-scrollbar-track { background: var(--bg-card-alt); border-left: 1px solid var(--line); }
.modal-card::-webkit-scrollbar-thumb { background: var(--line); border-radius: 0; }
.modal-card::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

@keyframes modal-in { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }

.modal-tag {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--dark-bg);
  border-bottom: 1px solid var(--line);
  color: #b8ada1;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  padding: 12px 16px;
}
.modal-close { background: transparent; border: 1px solid #3a322e; color: #d8d2c8; width: 26px; height: 26px; font-size: 15px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--accent); color: #fff; }

.modal-body { padding: 32px 38px 38px; }
.modal-body h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.12; margin: 0 0 14px; }
.modal-lead { margin: 0 0 28px; font-size: 15.5px; line-height: 1.7; }
.modal-body > .muted { margin: 0 0 26px; font-size: 15px; line-height: 1.65; }
.modal-hero { position: relative; height: 230px; overflow: hidden; background: var(--bg-card-alt); }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.modal-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, var(--bg-card)); }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.modal-card--form .modal-body .lead-form { margin-top: 6px; }

.quiz-bars { display: flex; gap: 5px; margin-bottom: 26px; }
.quiz-bars i { flex: 1; height: 2px; background: var(--line-soft); display: block; }
.quiz-bars i.is-on { background: var(--accent); }
.quiz-options { display: flex; flex-direction: column; gap: 1px; }
.quiz-opt {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  padding: 18px 20px;
  font: 500 15.5px var(--sans);
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: border-color .18s, background .18s;
}
.quiz-opt:hover { border-color: var(--accent); background: #f7f4ee; }
.quiz-opt span { color: var(--accent-light); font-size: 17px; }
.quiz-summary { border: 1px solid var(--line-soft); padding: 18px 20px; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); margin-bottom: 13px; }
.quiz-back { margin-top: 22px; background: none; border: none; color: var(--text-dim); font: 600 13.5px var(--sans); cursor: pointer; padding: 0; }
.quiz-back:hover { color: var(--accent-light); }

.box-stage { position: relative; background: #000; }
.box-stage img { width: 100%; max-height: 72vh; object-fit: contain; margin: 0 auto; }
.box-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: none; background: #fff; color: var(--text); font-size: 20px; cursor: pointer; }
.box-nav:hover { background: var(--accent); }
.box-prev { left: 16px; }
.box-next { right: 16px; }
.box-caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; font-size: 13.5px; color: #4a423c; }

body.modal-open { overflow: hidden; }

/* ── Появление при скролле ────────────────── */
[data-reveal] { opacity: 0; }
[data-reveal].is-in { animation: reveal-in .65s cubic-bezier(.22, .7, .3, 1) both; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; animation: none !important; }
  .hero-media, .quote-band > img, .service-card-image img { transform: none !important; }
  * { scroll-behavior: auto; }
}

/* ── Адаптив ──────────────────────────────── */
@media (max-width: 1100px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .stats-grid { padding-left: 24px; padding-right: 24px; }
  .header-inner { padding: 16px 24px; }
  .tech-strip-inner { padding: 9px 24px; gap: 16px; font-size: 10.5px; }

  .main-nav {
    position: fixed;
    inset: 0 0 auto;
    top: 74px;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .burger { display: flex; }
  .header-actions { margin-left: auto; gap: 12px; }
  .header-actions .btn-primary { display: none; }
  .faq-layout { grid-template-columns: 1fr; gap: 44px; }
  .cta-section .cta-inner { grid-template-columns: 1fr; gap: 44px; }
  .reviews { grid-template-columns: 1fr; margin-bottom: 64px; }
  .calc { grid-template-columns: 1fr; }
  .calc-controls { border-right: none; border-bottom: 1px solid var(--line); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 820px) {
  .tech-strip-inner { gap: 14px; }
  .tech-strip-hours { display: none; }

  .header-inner { gap: 12px; }
  .header-actions { gap: 10px; }
  .logo-sub { display: none; }
  .phone-link { font-size: 12.5px; }

  .hero { height: auto; min-height: 0; padding: 64px 0 56px; }
  .hero-content { position: static; }
  .hero-media { inset: 0; }
  .hero h1 { font-size: clamp(32px, 9vw, 46px); letter-spacing: -.8px; }
  .hero-subtitle { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 16px; }
  .stat-value { font-size: 24px; }

  .section { padding: 64px 0; }
  .section-title { font-size: clamp(26px, 7vw, 34px); }
  .section-head { margin-bottom: 28px; }

  .service-grid { grid-template-columns: 1fr; }
  .quote-band { height: 400px; }
  .quote-inner blockquote { font-size: clamp(20px, 6vw, 28px); }

  .calc-controls, .calc-summary { padding: 26px 22px; }
  .calc-materials { grid-template-columns: 1fr; }
  .calc-sliders { grid-template-columns: 1fr; gap: 20px; }
  .calc-total-value { font-size: 32px; }

  .step { grid-template-columns: 64px 1fr; gap: 20px; padding: 24px 0; }
  .step-num { font-size: 30px; }
  .step-body { grid-template-columns: 1fr; gap: 10px; }
  .step-body h3 { font-size: 21px; }

  .compare { border: none; }
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; gap: 6px; border: 1px solid var(--line); margin-bottom: 10px; padding: 18px 0; }
  .compare-title { font-size: 19px; }

  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 6px; }
  .gallery-item--wide, .gallery-item--tall { grid-column: auto; grid-row: auto; }
  .gallery-cap { display: none; }

  .faq-q > span:nth-child(2) { font-size: 17px; }
  .faq-a p { padding-left: 0; }

  .modal { padding: 0; align-items: flex-end; }
  .modal-card { max-width: none; max-height: 94vh; }
  .modal-body { padding: 24px 22px 30px; }
  .modal-body h3 { font-size: 24px; }
  .modal-hero { height: 170px; }
  .modal-actions .btn { flex: 1 1 100%; }
  .box-nav { width: 38px; height: 38px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .phone-xl { font-size: 24px; }
  .fab { right: 16px; bottom: 16px; padding: 14px 18px; font-size: 13px; }
}
