/* =========================================================
   Шрифты лежат локально (без Google Fonts, так спокойнее по RGPD)
   Source Serif 4: заголовки с засечками, как на макете заказчика
   Archivo: всё остальное
   ========================================================= */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* =========================================================
   Токены: цвета меняются здесь, в одном месте
   ========================================================= */
:root {
  --cream:      #f6f2ea;   /* шапка и светлые секции, как на макете */
  --cream-2:    #fbf9f4;
  --white:      #ffffff;
  --graphite:   #23292d;
  --graphite-2: #343b40;
  --shade:      20, 24, 27; /* графит для затемнений (r, g, b) */
  --muted:      #5f6468;
  --rule:       #e3dccd;
  --gold:       #c39150;   /* кнопки и акценты */
  --gold-2:     #d9ae6d;   /* золото на тёмном фоне */
  --gold-ink:   #8a5f28;   /* золото для текста на светлом */

  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-ui:   "Archivo", "Helvetica Neue", Arial, sans-serif;

  --hh: 80px;              /* высота шапки */
  --wrap: 1200px;
  --radius: 6px;
  --space: clamp(4.5rem, 10vw, 8rem);
}
@media (max-width: 1280px) { :root { --hh: 72px; } }
@media (max-width: 860px) { :root { --hh: 64px; } }

/* =========================================================
   База
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--graphite);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 0; background: var(--graphite); color: var(--white); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.wrap--narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }

.section { padding: var(--space) 0; }
.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section__head.center { margin-left: auto; margin-right: auto; }
.section__title { font-size: clamp(2.1rem, 4.2vw, 3.25rem); margin-bottom: .45em; }
.section__lead { font-size: 1.15rem; color: var(--muted); margin: 0 auto; max-width: 40rem; }

.eyebrow {
  font-family: var(--font-ui); font-size: .78rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-2); margin: 0 0 1rem;
}
.eyebrow--dark { color: var(--gold-ink); }

/* =========================================================
   Кнопки
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem;
  font-family: var(--font-ui); font-size: 1rem; font-weight: 600; line-height: 1.2; text-align: center;
  color: var(--white); background: var(--graphite);
  border: 1px solid var(--graphite); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--graphite-2); border-color: var(--graphite-2); }
.btn--ghost { background: transparent; color: var(--graphite); }
.btn--ghost:hover { background: var(--graphite); color: var(--white); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--graphite); }
.btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }
.btn--block { width: 100%; }

/* =========================================================
   Шапка: логотип, меню, иконки, номер, кнопка (как в примере)
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--hh);
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.header__inner {
  height: 100%; max-width: 1480px; margin: 0 auto;
  padding: 0 clamp(1rem, 2.5vw, 2.5rem);
  display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem);
}
.logo { display: block; flex-shrink: 0; }
.logo img { height: calc(var(--hh) - 16px); width: auto; }

.nav { display: flex; align-items: center; flex: 1; }
.nav__list { display: flex; gap: clamp(1.25rem, 2vw, 2rem); list-style: none; margin: 0 auto; padding: 0; }
.nav__list a { font-size: .98rem; text-decoration: none; padding: .5rem 0; color: var(--graphite-2); white-space: nowrap; }
.nav__list a:hover { color: var(--gold-ink); }
.nav__mobile { display: none; }

.hcontact { display: flex; align-items: center; gap: clamp(.75rem, 1.6vw, 1.5rem); margin-left: auto; }
.hicons { display: flex; gap: .15rem; }
.hicon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--graphite); transition: background-color .2s, color .2s;
}
.hicon:hover { background: rgba(35,41,45,.06); color: var(--gold-ink); }
.hicon svg, .hphone svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* номер: иконка слева, под номером мелкая подчёркнутая подпись */
.hphone {
  display: grid; grid-template-columns: auto auto; column-gap: .55rem; align-items: center;
  text-decoration: none; line-height: 1.2; color: var(--graphite);
}
.hphone svg { grid-row: 1 / 3; color: var(--graphite); }
.hphone__num { font-weight: 600; font-size: 1.02rem; white-space: nowrap; letter-spacing: .01em; }
.hphone__label { justify-self: center; font-size: .78rem; color: var(--muted); border-bottom: 1px solid #b9b1a2; padding-bottom: 1px; white-space: nowrap; }
.hphone:hover .hphone__num { color: var(--gold-ink); }
.hicon--soon { cursor: default; }
/* официальные значки (assets/img/icons/*.svg): пока файла нет, видна нейтральная иконка */
.brand-icon { display: none; width: 21px; height: 21px; object-fit: contain; }
.has-brand > .brand-icon { display: block; }
.has-brand > svg { display: none; }
.wa-float .brand-icon { width: 28px; height: 28px; }

.btn--beige { background: #ebe3d3; border-color: #ebe3d3; color: var(--graphite); }
.btn--beige:hover { background: #e1d6c1; border-color: #e1d6c1; }
.hcta { min-height: 44px; padding: .55rem 1.25rem; font-size: .95rem; white-space: nowrap; }

.burger {
  display: none;
  align-items: center; gap: .7rem;
  min-height: 44px; padding: 0 .25rem;
  background: none; border: 0; color: var(--graphite);
  font-family: var(--font-ui); font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.burger__lines, .burger__lines::before, .burger__lines::after {
  display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
}
.burger__lines::before, .burger__lines::after { content: ""; position: absolute; left: 0; }
.burger__lines::before { top: -7px; }
.burger__lines::after { top: 7px; }
.burger[aria-expanded="true"] .burger__lines { background: transparent; }
.burger[aria-expanded="true"] .burger__lines::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after { transform: translateY(-7px) rotate(-45deg); }

/* до 1280 px: меню прячется под кнопку MENU, иконки, номер и кнопка остаются */
@media (max-width: 1280px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--hh) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 2rem;
    padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 6rem;
    background: var(--cream); overflow-y: auto;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; margin: 0; }
  .nav__list a { display: block; padding: .9rem 0; font-family: var(--font-head); font-size: 1.6rem; border-bottom: 1px solid var(--rule); }
  .nav__mobile { display: flex; flex-direction: column; gap: 1.25rem; }
  .nav__mobile .btn { min-height: 50px; }
  .nav__mobile p { margin: 0; line-height: 1.9; }
  .nav__mobile a:not(.btn) { font-weight: 600; }
  body.nav-open { overflow: hidden; }
}
/* до 860 px: остаются логотип, иконки и MENU, как на макете заказчика */
@media (max-width: 860px) {
  .hphone, .hcta { display: none; }
  .header__inner { gap: .5rem; }
}
@media (max-width: 400px) {
  .hicon { width: 36px; height: 36px; }
  .hicon svg { width: 21px; height: 21px; }
  .burger__text { display: none; }
}

/* =========================================================
   ПЕРВЫЙ ЭКРАН: фон из 3 фото + типы проектов
   ========================================================= */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100vh - var(--hh));
  min-height: calc(100svh - var(--hh));
  display: flex; align-items: center;
  background: var(--graphite); color: var(--white);
}
.hero__slides img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.8s ease;
}
.hero__slides img.is-active { opacity: 1; animation: slow-zoom 12s ease-out forwards; }
.hero__slides img.was-active { transform: scale(1.07); }
@keyframes slow-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }
/* затемнение, чтобы текст читался на любом фото */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(var(--shade), .78) 0%, rgba(var(--shade), .5) 45%, rgba(var(--shade), .38) 100%),
    linear-gradient(0deg, rgba(var(--shade), .55) 0%, rgba(var(--shade), 0) 40%);
}

.hero__inner {
  width: 100%; max-width: 1440px; margin: 0 auto;
  padding: clamp(2rem, 6vh, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  grid-template-areas: "head head" "text types";
  gap: clamp(1.5rem, 3vh, 2.5rem) clamp(2rem, 4vw, 4.5rem); align-items: center;
}
.hero__head { grid-area: head; }
.hero__text { grid-area: text; }
.types { grid-area: types; }
.hero__title { font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1.04; margin: 0; }
.hero__sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.9); max-width: 32rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__note { font-size: .9rem; color: rgba(255,255,255,.72); margin: 1.1rem 0 0; }
.hero__zone { color: var(--gold-2); font-weight: 600; }

/* панель типов проектов: фото + список */
.types {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.25rem; align-items: center;
  padding: 1.1rem; border-radius: calc(var(--radius) + 4px);
  background: rgba(var(--shade), .42); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.types__preview { position: relative; aspect-ratio: 4 / 3; margin: 0; overflow: hidden; border-radius: var(--radius); background: #4a4f52; }
.types__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.types__preview img.is-shown { opacity: 1; }
.types__list { list-style: none; margin: 0; padding: 0; }
.type {
  display: flex; align-items: center; gap: .8rem; width: 100%;
  padding: .6rem .5rem; text-align: left; cursor: pointer;
  background: transparent; border: 0; border-radius: 4px;
  font-family: var(--font-ui); font-size: .97rem; line-height: 1.25; color: rgba(255,255,255,.78);
  transition: background-color .2s, color .2s;
}
.types__list li + li .type { border-top: 1px solid rgba(255,255,255,.1); border-radius: 0; }
.type svg { width: 26px; height: 26px; flex-shrink: 0; fill: none; stroke: var(--gold-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.type:hover, .type.is-active { color: var(--white); background: rgba(255,255,255,.08); }
.type.is-active span { box-shadow: inset 0 -1px 0 var(--gold-2); }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; grid-template-areas: "head" "text" "types"; text-align: center; padding-top: 2.25rem; padding-bottom: 2.25rem; gap: 1.25rem; }
  .hero__title br { display: none; }
  .hero__sub { margin-left: auto; margin-right: auto; margin-bottom: 1.5rem; }
  .hero__actions { justify-content: center; }
  .hero__actions .btn--outline-light { display: none; } /* на телефоне есть нижняя панель */
  .hero::after { background: rgba(var(--shade), .55); }
  /* телефон: фото на всю ширину панели, список направлений под ним */
  .types { grid-template-columns: 1fr; gap: .6rem; padding: .6rem; text-align: left; }
  .types__preview { aspect-ratio: 4 / 3; }
  .type { gap: .7rem; padding: .62rem .5rem; font-size: .95rem; }
  .type svg { width: 22px; height: 22px; }
}

/* =========================================================
   Услуги
   ========================================================= */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 3px solid var(--gold);
}
.service__title { font-size: 1.6rem; margin-bottom: .6rem; }
.service__lead { color: var(--muted); margin-bottom: 1.25rem; }
.service__list { list-style: none; margin: 0; padding: 0; font-size: .97rem; }
.service__list li { position: relative; padding: .35rem 0 .35rem 1.4rem; border-top: 1px solid var(--rule); }
.service__list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: .75rem; height: 1px; background: var(--gold); }
.services__cta { margin: clamp(2rem, 4vw, 3rem) 0 0; }
@media (max-width: 1000px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services__grid { grid-template-columns: 1fr; } }

/* =========================================================
   До / после
   ========================================================= */
.exemples { background: var(--white); }
.tabs { display: flex; justify-content: center; gap: .5rem; margin: 0 0 2.25rem; }
.tab {
  min-height: 44px; padding: .55rem 1.5rem; cursor: pointer;
  font-family: var(--font-ui); font-size: 1rem; font-weight: 600; color: var(--graphite);
  background: var(--white); border: 1px solid var(--rule); border-radius: 999px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tab:hover { border-color: var(--graphite); }
.tab.is-active { background: var(--graphite); color: var(--white); border-color: var(--graphite); }

.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.ba { margin: 0; }
.ba figcaption { margin-top: .8rem; font-family: var(--font-head); font-size: 1.25rem; }
.ba__frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; user-select: none; background: #d8d2c6; }
.ba__frame:has(.ba__range:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__img--after { clip-path: inset(0 0 0 var(--pos)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); pointer-events: none; }
.ba__handle::after {
  content: "\2039\00a0\203A"; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,.25);
  font-family: var(--font-ui); font-weight: 700; font-size: 1.25rem; line-height: 1; color: var(--graphite);
}
.ba__tag {
  position: absolute; top: .8rem; padding: .15rem .55rem; border-radius: 4px;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  background: rgba(35,41,45,.78); color: var(--white); pointer-events: none;
}
.ba__tag--before { left: .8rem; }
.ba__tag--after { right: .8rem; }
.ba--no-tags .ba__tag, .ba--no-before-tag .ba__tag--before { display: none; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.exemples__note { margin: 2rem 0 0; text-align: center; font-size: .85rem; color: var(--muted); }
@media (max-width: 1000px) { .ba-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ba-grid { grid-template-columns: 1fr; } }

/* =========================================================
   О компании: тёмный блок на фото дома
   ========================================================= */
.about { position: relative; overflow: hidden; isolation: isolate; color: var(--white); padding: var(--space) 0; background: var(--graphite); }
.about__bg { position: absolute; inset: 0; z-index: -2; }
.about__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.about::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(var(--shade), .92) 0%, rgba(var(--shade), .82) 45%, rgba(var(--shade), .62) 100%),
    linear-gradient(0deg, rgba(var(--shade), .7) 0%, rgba(var(--shade), 0) 50%);
}
.about__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about__stat { display: flex; flex-direction: column; gap: 1rem; padding-top: .5rem; }
.about__num {
  font-family: var(--font-head); font-weight: 400; line-height: .85;
  font-size: clamp(6rem, 14vw, 11rem); color: var(--gold-2); letter-spacing: -0.03em;
}
.about__num span { font-size: .55em; vertical-align: .55em; margin-left: .05em; }
.about__unit { max-width: 16rem; font-size: 1.05rem; line-height: 1.45; color: rgba(255,255,255,.85); border-top: 1px solid rgba(255,255,255,.3); padding-top: 1rem; }
.about__intro p:not(.eyebrow) { color: rgba(255,255,255,.86); font-size: 1.08rem; max-width: 40rem; }

.atouts { list-style: none; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.atout {
  padding: 1.5rem 1.4rem; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.atout svg { width: 34px; height: 34px; fill: none; stroke: var(--gold-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.atout h3 { font-size: 1.3rem; margin-bottom: .45rem; }
.atout p { margin: 0; font-size: .95rem; color: rgba(255,255,255,.75); }
@media (max-width: 1000px) {
  .about__top { grid-template-columns: 1fr; gap: 1.5rem; }
  .about__stat { flex-direction: row; align-items: center; gap: 1.5rem; }
  .about__unit { border-top: 0; padding-top: 0; border-left: 1px solid rgba(255,255,255,.3); padding-left: 1.25rem; }
  .atouts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .atouts { grid-template-columns: 1fr; }
  .about__num { font-size: 5.5rem; }
}

/* =========================================================
   Формы (общие)
   ========================================================= */
.field { margin-bottom: 1.25rem; text-align: left; }
.field label { display: block; font-weight: 600; font-size: .98rem; margin-bottom: .4rem; }
.field label .muted { font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  font: inherit; font-size: 1rem; color: var(--graphite);
  background: var(--white); border: 1px solid #a8a296; border-radius: var(--radius);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--graphite); }
.field__error { display: none; margin: .4rem 0 0; font-size: .9rem; color: #a02c1f; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #a02c1f; }
.field.is-invalid .field__error { display: block; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .85rem; color: var(--muted); margin: 1rem 0 0; text-align: left; }
.form__status { font-weight: 600; margin: 1rem 0 0; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #2d5b3a; }
.form__status.is-error { color: #a02c1f; }

/* =========================================================
   Квиз
   ========================================================= */
.quiz { background: var(--white); }
.quiz__form {
  max-width: 680px; margin: 2.5rem auto 0;
  background: var(--cream-2); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem); position: relative;
}
.quiz__step { border: 0; margin: 0 0 1.5rem; padding: 0; min-width: 0; }
.quiz__step legend { width: 100%; font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: 1.25rem; padding: 0; text-align: center; }
.quiz__progress { color: var(--muted); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; display: none; margin-bottom: 1.25rem; padding-bottom: .9rem; border-bottom: 1px solid var(--rule); }
.choices { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block; padding: .75rem 1.2rem; font-size: 1rem;
  background: var(--white); border: 1px solid #a8a296; border-radius: 999px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.choice:hover span { border-color: var(--graphite); }
.choice input:checked + span { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.quiz__nav { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.quiz__nav [data-prev], .quiz__nav [data-next] { display: none; }
/* С JS показываем вопросы по одному. Без JS видна вся форма целиком. */
.js .quiz__progress { display: block; }
.js .quiz__step { display: none; }
.js .quiz__step.is-current { display: block; }
.js .quiz__nav [data-prev]:not([hidden]),
.js .quiz__nav [data-next]:not([hidden]) { display: inline-flex; }

/* =========================================================
   Отзывы: 4 карточки, 2 в ряд
   ========================================================= */
.reviews__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.5vw, 1.75rem); }
.review {
  position: relative; margin: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1.75rem, 3vw, 2.5rem); padding-top: clamp(3rem, 4vw, 3.5rem);
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
}
.review::before {
  content: "\201C"; position: absolute; top: .4rem; left: 1.4rem;
  font-family: var(--font-head); font-size: 4.5rem; line-height: 1; color: var(--gold);
}
.review__text p { margin: 0 0 .9em; font-size: 1rem; color: var(--graphite-2); }
.review footer { display: flex; flex-direction: column; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.review footer strong { font-family: var(--font-head); font-weight: 500; font-size: 1.2rem; }
.review footer span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .reviews__grid { grid-template-columns: 1fr; } }

/* =========================================================
   FAQ
   ========================================================= */
.qa { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: .6rem; padding: 0 1.4rem; }
.qa summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-family: var(--font-head); font-size: 1.2rem; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: .1rem; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--gold-ink), var(--gold-ink)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--gold-ink), var(--gold-ink)) center / 1.5px 14px no-repeat;
  transition: transform .2s;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0 0 1.25rem; color: var(--graphite-2); }

/* =========================================================
   Финальный блок на затемнённом фото
   ========================================================= */
.cta { position: relative; overflow: hidden; isolation: isolate; color: var(--white); padding: var(--space) 0; background: var(--graphite); }
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(4px); transform: scale(1.05); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(var(--shade), .76); }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.cta__text p { color: rgba(255,255,255,.88); max-width: 34rem; }
.cta__nocall { font-weight: 600; color: var(--white) !important; margin-top: 1.5rem; }
.cta__buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.cta__hours { font-size: .9rem; margin-top: 1rem; color: rgba(255,255,255,.7) !important; }
.cta__form { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem); }
.cta__formtitle { font-size: 1.6rem; margin-bottom: 1.25rem; }
.cta__form .muted, .cta__form .consent { color: rgba(255,255,255,.7); }
.cta__form .form__status.is-ok { color: #a6dcb3; }
.cta__form .form__status.is-error, .cta__form .field__error { color: #ffb4a8; }
@media (max-width: 860px) { .cta__grid { grid-template-columns: 1fr; } }

/* =========================================================
   Подвал
   ========================================================= */
.footer { background: #1b2024; color: var(--white); padding: 3.5rem 0 2.5rem; }
.footer .muted { color: rgba(255,255,255,.65); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer__brand img { width: 96px; height: 96px; margin-bottom: 1rem; }
.footer__brand p { font-size: .95rem; max-width: 22rem; }
.footer__col { display: flex; flex-direction: column; gap: .45rem; font-size: .95rem; }
.footer__col a { text-decoration: none; color: rgba(255,255,255,.85); }
.footer__col a:hover { color: var(--white); text-decoration: underline; }
.footer__col p { margin: .5rem 0 0; font-size: .95rem; }
.footer__head { font-weight: 600; color: var(--gold-2); margin: 0 0 .4rem !important; }
.footer__copy { grid-column: 1 / -1; font-size: .88rem; margin: 1.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); }
.footer__inner--legal { grid-template-columns: 1fr 2fr; }
.footer__inner--legal .footer__col { flex-direction: row; flex-wrap: wrap; gap: .5rem 1.5rem; }
@media (max-width: 960px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__inner { grid-template-columns: 1fr; } }

/* =========================================================
   Круглая кнопка и нижняя панель
   ========================================================= */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); color: var(--graphite); border: 2px solid var(--gold);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.wa-float:hover { background: var(--cream); }
.mobilebar { display: none; }
@media (max-width: 760px) {
  .wa-float { display: none; }
  .mobilebar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr 1.4fr;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--graphite); border-top: 1px solid rgba(255,255,255,.15);
  }
  .mobilebar a { display: flex; align-items: center; justify-content: center; min-height: 56px; color: var(--white); text-decoration: none; font-weight: 600; font-size: .98rem; }
  .mobilebar a + a { border-left: 1px solid rgba(255,255,255,.15); }
  .mobilebar__main { background: var(--gold); color: var(--graphite) !important; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}

/* =========================================================
   Юридические страницы
   ========================================================= */
.legal { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--white); }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.legal dl { display: grid; grid-template-columns: minmax(10rem, 1fr) 2fr; gap: .5rem 1.5rem; margin: 0; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; }
.header__back { margin-left: auto; font-weight: 600; color: var(--gold-ink); }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: .75rem; } }

/* =========================================================
   Уважение к настройке «меньше анимации»
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slides img.is-active { animation: none; }
  .hero__slides img.was-active { transform: none; }
  *, *::before, *::after { transition-duration: .01s !important; }
}
