/* ============================================================
   ТЕКТУМ — дизайн-система
   Палитра: тёплый графит + терракота + песочная бумага
   Шрифты: Unbounded (дисплей) + Onest (текст)
   Подход: mobile-first, медиазапросы только min-width
   ============================================================ */

:root {
  /* цвет */
  --ink: #23211b;
  --ink-soft: #3d3a31;
  --muted: #7c7668;
  --paper: #f4efe5;
  --paper-deep: #ece5d6;
  --card: #fdfbf5;
  --line: #ddd5c2;
  --terra: #b34f27;
  --terra-deep: #93401f;
  --terra-soft: #f3ddd2;
  --sand: #d9a35e;
  --white: #fffdf9;

  /* типографика */
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-text: "Onest", system-ui, sans-serif;

  /* размеры */
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --gutter: 20px;
  --header-h: 64px;
  --tap: 48px;

  --shadow-soft: 0 14px 40px -18px rgba(35, 33, 27, .35);
  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 64px; }
.section--alt { background: var(--paper-deep); }
.section--dark { background: var(--ink); color: var(--paper); }

.overline {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 14px;
}
.section--dark .overline { color: var(--sand); }

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 5.4vw, 42px);
  letter-spacing: -0.01em;
  max-width: 21ch;
  margin-bottom: 18px;
}
.h2 em { font-style: normal; color: var(--terra); }
.section--dark .h2 em { color: var(--sand); }

.section__lead {
  max-width: 56ch;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.section--dark .section__lead { color: #cfc8b8; }

/* появление при скролле */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
  user-select: none;
}
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[disabled] { opacity: .42; cursor: not-allowed; }
.btn:disabled:active { transform: none; }

.btn--primary { background: var(--terra); color: var(--white); }
.btn--primary:hover { background: var(--terra-deep); }

.btn--outline { background: transparent; border-color: currentColor; }
.btn--outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn--ghost { background: transparent; border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #000; }

.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 16px; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 239, 229, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}
.logo__mark { width: 32px; height: 26px; color: var(--terra); flex: none; }
.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav { display: none; }
.header__actions { display: none; }

.burger {
  margin-left: auto;
  width: var(--tap);
  height: var(--tap);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 0;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* мобильное меню */
.mobmenu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--paper);
  padding: calc(var(--header-h) + 28px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.mobmenu.is-open { opacity: 1; pointer-events: auto; }
.mobmenu__nav { display: flex; flex-direction: column; }
.mobmenu__nav a {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobmenu__contacts { display: flex; flex-direction: column; gap: 14px; }
.mobmenu__phone { font-size: 20px; font-weight: 700; text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  min-height: max(620px, calc(100svh - var(--header-h)));
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 18, 14, .42) 0%, rgba(20, 18, 14, .18) 35%, rgba(20, 18, 14, .78) 100%),
    linear-gradient(78deg, rgba(20, 18, 14, .72) 0%, rgba(20, 18, 14, .25) 55%, rgba(20, 18, 14, 0) 100%);
}
.hero__grain {
  position: absolute; inset: 0;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.hero__inner { padding-block: 30px 26px; }
.hero__content { max-width: 640px; }

/* вертикальная подпись у правого края hero — только десктоп */
.hero__side {
  display: none;
  position: absolute;
  top: 50%;
  right: 26px;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 253, 249, .55);
  z-index: 1;
}

.hero__stats {
  display: flex;
  gap: 26px;
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 253, 249, .22);
}
.hero__stats div { display: flex; flex-direction: column; gap: 2px; }
.hero__stats dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  color: var(--white);
}
.hero__stats dd { margin: 0; font-size: 12.5px; color: rgba(255, 253, 249, .65); max-width: 12ch; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(27px, 7vw, 52px);
  letter-spacing: -0.015em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--sand); white-space: nowrap; }

.hero__sub {
  font-size: clamp(15px, 2vw, 18px);
  max-width: 54ch;
  color: rgba(255, 253, 249, .88);
  margin-bottom: 20px;
}

.hero__bullets {
  /* на мобильном скрыты: оффер и CTA должны помещаться в первый экран */
  display: none;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  flex-direction: column;
  gap: 9px;
  font-size: 15px;
}
.hero__bullets li { display: flex; gap: 10px; align-items: baseline; }
.hero__bullets li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  background: var(--terra);
  transform: translateY(-1px) rotate(45deg);
}

.hero__cta { display: flex; flex-direction: column; gap: 12px; }
.hero__cta .btn--outline { color: var(--white); }
.hero__cta .btn--outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.hero__photo-note {
  margin-top: 26px;
  font-size: 12px;
  color: rgba(255, 253, 249, .6);
}

/* ---------- квиз ---------- */
.quiz__head { margin-bottom: 28px; }

.quiz__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px 20px 28px;
  max-width: 760px;
}

.quiz__progress {
  height: 5px;
  background: var(--paper-deep);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}
.quiz__progress-bar { height: 100%; background: var(--terra); border-radius: 99px; transition: width .35s var(--ease); }
.quiz__counter { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

.quiz__step { display: none; }
.quiz__step.is-active { display: block; animation: quizIn .35s var(--ease); }
@keyframes quizIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.quiz__q {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 3.4vw, 24px);
  margin-bottom: 20px;
}

.quiz__options { display: grid; grid-template-columns: 1fr; gap: 12px; }
.quiz__opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: var(--tap);
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  text-align: left;
  transition: border-color .2s, background .2s, transform .15s var(--ease);
}
.quiz__opt:hover { border-color: var(--terra); }
.quiz__opt:active { transform: scale(.985); }
.quiz__opt small { font-weight: 400; font-size: 13.5px; color: var(--muted); }
.quiz__opt-icon { color: var(--terra); }
.quiz__opt-icon svg { width: 38px; height: 38px; }

.quiz__slider { margin-bottom: 26px; }
.quiz__area {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 38px;
  color: var(--terra);
  margin-bottom: 14px;
}
.quiz__slider input[type="range"] {
  width: 100%;
  height: var(--tap);
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.quiz__slider input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px; background: var(--paper-deep);
}
.quiz__slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--terra);
  border: 4px solid var(--white);
  box-shadow: 0 2px 10px rgba(35,33,27,.3);
  margin-top: -12px;
}
.quiz__slider input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 99px; background: var(--paper-deep);
}
.quiz__slider input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--terra);
  border: 4px solid var(--white);
  box-shadow: 0 2px 10px rgba(35,33,27,.3);
}
.quiz__slider-scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; }

.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.quiz__nav .btn--primary { margin-left: auto; }

.quiz__estimate {
  background: var(--terra-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 15px;
  margin-bottom: 18px;
}
.quiz__estimate strong { color: var(--terra-deep); }

.quiz__form { display: flex; flex-direction: column; gap: 16px; }

.quiz__done { text-align: center; padding: 26px 8px; }
.quiz__done-icon { width: 64px; height: 64px; color: var(--terra); margin: 0 auto 18px; }
.quiz__done p { color: var(--ink-soft); max-width: 40ch; margin: 12px auto 0; }

/* ---------- формы ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.field input {
  min-height: var(--tap);
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  color: var(--ink);
  transition: border-color .2s;
}
.field input:focus { outline: none; border-color: var(--terra); }
.field input.is-error { border-color: #c0392b; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--terra); flex: none; }
.consent.is-error { color: #c0392b; }
.consent a { color: var(--terra); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--terra-deep); }

/* ---------- выгоды ---------- */
.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 34px;
}
.benefit {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  transition: transform .25s var(--ease), border-color .25s;
}
.benefit:hover { transform: translateY(-4px); border-color: var(--terra); }
.benefit__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--terra);
  margin-bottom: 14px;
}
.benefit h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.benefit p:not(.benefit__num) { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- каталог ---------- */
.catalog__filter-toggle { margin-bottom: 14px; }
.catalog__filter-count {
  background: var(--terra);
  color: var(--white);
  font-size: 12px;
  min-width: 20px;
  height: 20px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 6px;
}

.catalog__filters {
  display: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 20px;
  flex-direction: column;
  gap: 16px;
}
.catalog__filters.is-open { display: flex; }

.filter-group__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px;
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.catalog__result { font-size: 14px; color: var(--muted); margin-bottom: 18px; }

.catalog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.pcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.pcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-deep); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.045); }
.pcard__code {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
}
.pcard__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard__title { font-size: 17px; font-weight: 700; }
.pcard__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13.5px;
  color: var(--muted);
}
.pcard__specs span { display: inline-flex; align-items: center; gap: 5px; }
.pcard__specs svg { width: 16px; height: 16px; flex: none; }
.pcard__prices { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.pcard__price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; }
.pcard__price-row span { color: var(--muted); }
.pcard__price-row strong { font-size: 16px; white-space: nowrap; }
.pcard__price-row--main strong { color: var(--terra-deep); font-size: 18px; }
.pcard__project { font-size: 12.5px; color: var(--muted); }
.pcard__btn { margin-top: 6px; }

.catalog__empty {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.catalog__cta {
  margin-top: 34px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.catalog__cta p { font-size: 17px; max-width: 46ch; }

/* ---------- этапы ---------- */
.steps__list {
  list-style: none;
  counter-reset: none;
  margin: 38px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.step {
  position: relative;
  padding: 0 0 30px 56px;
}
.step::before {
  content: "";
  position: absolute;
  left: 19px; top: 44px; bottom: 4px;
  width: 2px;
  background: var(--line);
}
.step:last-child::before { display: none; }
.step__num {
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--terra);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  border-radius: 12px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; padding-top: 7px; }
.step p:not(.step__num) { font-size: 15px; color: var(--ink-soft); max-width: 52ch; }

.steps__note {
  margin-top: 26px;
  background: var(--terra-soft);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.steps__note p { font-size: 15.5px; max-width: 60ch; }

/* ---------- услуги ---------- */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 34px;
}
.service {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .25s var(--ease), border-color .25s;
}
.service:hover { transform: translateY(-4px); border-color: var(--terra); }
.service h3 { font-family: var(--font-display); font-weight: 500; font-size: 19px; }
.service p { font-size: 14.5px; color: var(--ink-soft); }
.service__meta {
  font-weight: 700;
  color: var(--terra-deep) !important;
  font-size: 15px !important;
}
.service__link {
  margin-top: auto;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  color: var(--ink);
}
.service__link:hover { color: var(--terra); }
.service__link--btn {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}

/* ---------- портфолио ---------- */
.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 34px;
}
.ph-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0;
  padding: 0;
  background: var(--paper-deep);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.ph-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.ph-card:hover img { transform: scale(1.05); }
.ph-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(20, 18, 14, .82));
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.ph-card figcaption small { display: block; font-weight: 400; font-size: 12.5px; opacity: .85; }
.ph-card__count {
  position: absolute;
  top: 12px; right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(20, 18, 14, .62);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}
.ph-card__count svg { width: 14px; height: 14px; }

/* кнопка «Показать ещё» */
.section__more { display: flex; justify-content: center; margin-top: 26px; }

/* ---------- материалы ---------- */
.materials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 34px;
}
.material {
  border: 1px solid #43403a;
  border-radius: var(--radius-lg);
  padding: 24px 22px;
}
.material h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  color: var(--sand);
  margin-bottom: 10px;
}
.material p { font-size: 14.5px; color: #d4cdbd; }
.materials__note {
  margin-top: 24px;
  font-size: 15px;
  color: #b8b1a0;
  max-width: 72ch;
}

/* ---------- контроль ---------- */
.control { background: var(--paper); }
.control__prices {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.control__prices li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.control__prices strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--terra-deep);
}
.control__prices span { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- faq ---------- */
.faq__list { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }
.faq__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  min-height: var(--tap);
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-right: 2.2px solid var(--terra);
  border-bottom: 2.2px solid var(--terra);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
  margin-top: -4px;
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.faq__item p { padding: 0 20px 18px; font-size: 14.5px; color: var(--ink-soft); max-width: 70ch; }

/* ---------- финальный cta ---------- */
.final { background: var(--ink); color: var(--paper); }
.final .h2 em { color: var(--sand); }
.final__inner { display: grid; grid-template-columns: 1fr; gap: 34px; }
.final__text p { color: #cfc8b8; max-width: 50ch; }
.final__alt { margin-top: 22px; font-size: 14px; }
.final__phone {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(21px, 4.5vw, 28px);
  color: var(--sand);
  text-decoration: none;
  white-space: nowrap;
}
.final__form {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.final__success { color: #1e7d36; font-weight: 600; font-size: 14.5px; }

/* ---------- подвал ---------- */
.footer {
  background: #1b1915;
  color: #b8b1a0;
  padding: 48px 0 26px;
  font-size: 14.5px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
.footer__col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.footer__col a { text-decoration: none; padding-block: 2px; }
.footer__col a:hover { color: var(--sand); }
.footer__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7c7668;
  margin-bottom: 4px;
}
.logo--footer { color: var(--paper); margin-bottom: 6px; }
.footer__req { font-size: 13px; color: #7c7668; }
.footer__muted { color: #7c7668; font-size: 13.5px; }
.footer__social { display: flex; gap: 10px; margin-top: 8px; }
.footer__soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap);
  height: 40px;
  padding-inline: 14px;
  border: 1px solid #43403a;
  border-radius: 99px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.footer__soc:hover { border-color: var(--sand); color: var(--sand); }
.footer__bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #2e2b26;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #7c7668;
}
.footer__bottom a { color: inherit; }

/* ---------- sticky cta (мобайл) ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(244, 239, 229, .94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.sticky-cta.is-shown { transform: none; }
.sticky-cta__calc { flex: 1; }
.sticky-cta__call { flex: none; width: 52px; padding: 0; }
body { padding-bottom: 0; }
@media (max-width: 1023.5px) {
  body.has-sticky { padding-bottom: 78px; }
}

/* ---------- модалка ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 18, 14, .6); }
.modal__card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92svh;
  overflow: auto;
  background: var(--card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 30px 22px 30px;
  transform: translateY(24px);
  transition: transform .3s var(--ease);
}
.modal.is-open .modal__card { transform: none; }
.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: var(--tap); height: var(--tap);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-deep);
  border: 0;
  border-radius: 50%;
}
.modal__title { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin-bottom: 8px; padding-right: 44px; }
.modal__sub { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }
.modal__form { display: flex; flex-direction: column; gap: 16px; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 14, 11, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox__figure img {
  max-width: 100%;
  max-height: 78svh;
  width: auto;
  margin-inline: auto;
  border-radius: 10px;
}
.lightbox__figure figcaption { color: var(--paper); margin-top: 14px; font-size: 15px; }
.lightbox__close, .lightbox__arrow {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tap); height: var(--tap);
  background: rgba(255, 253, 249, .12);
  color: var(--paper);
  border: 0;
  border-radius: 50%;
  transition: background .2s;
}
.lightbox__close:hover, .lightbox__arrow:hover { background: rgba(255, 253, 249, .25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__arrow--prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__arrow--next { right: 10px; top: 50%; transform: translateY(-50%); }

/* фокус-видимость */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2.5px solid var(--terra);
  outline-offset: 2px;
}

/* ============================================================
   ПЛАНШЕТ ≥ 700px
   ============================================================ */
@media (min-width: 700px) {
  .section { padding-block: 84px; }

  .hero__inner { padding-block: 56px 36px; }
  .hero__bullets { display: flex; }
  .hero__cta { flex-direction: row; }
  .quiz__card { padding: 34px 36px 38px; }
  .quiz__options { grid-template-columns: 1fr 1fr; }

  .benefits__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .catalog__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .materials__grid { grid-template-columns: repeat(3, 1fr); }

  .control__prices li { flex-direction: row; align-items: baseline; gap: 16px; }
  .control__prices strong { min-width: 110px; }

  .steps__note { flex-direction: row; align-items: center; justify-content: space-between; }
  .catalog__cta { flex-direction: row; align-items: center; justify-content: space-between; }

  .final__inner { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .final__form { padding: 30px 28px; }

  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }

  .modal { align-items: center; padding: 24px; }
  .modal__card { border-radius: var(--radius-lg); padding: 34px 30px; }
}

/* ============================================================
   ДЕСКТОП ≥ 1024px
   ============================================================ */
@media (min-width: 1024px) {
  :root { --header-h: 76px; --gutter: 32px; }

  .nav {
    display: flex;
    gap: 28px;
    margin-inline: auto;
  }
  .nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: border-color .2s, color .2s;
  }
  .nav a:hover { border-color: var(--terra); color: var(--terra-deep); }

  .header__actions { display: flex; align-items: center; gap: 18px; }
  .header__phone { font-weight: 700; font-size: 15.5px; text-decoration: none; white-space: nowrap; }
  .header__phone:hover { color: var(--terra-deep); }
  .burger, .mobmenu { display: none; }

  .hero { min-height: max(680px, calc(100vh - var(--header-h))); }
  .hero__inner { padding-block: 80px 44px; }
  .hero__bullets { font-size: 16px; }
  .hero__side { display: block; }

  .quiz__card { max-width: 820px; }

  .benefits__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .benefit { padding: 30px 28px; }

  .catalog__filter-toggle { display: none; }
  .catalog__filters {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px 40px;
    padding: 22px 26px;
  }
  .catalog__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .catalog__cta { padding: 34px 38px; }

  .steps__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 44px;
  }
  .step { padding: 54px 0 0; }
  .step::before {
    left: 52px; right: -28px; top: 19px;
    width: auto; bottom: auto;
    height: 2px;
  }
  .step:last-child::before { display: none; }

  .portfolio__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .ph-card--wide { grid-column: span 2; aspect-ratio: auto; }

  .control__inner { max-width: 880px; }

  .faq__inner {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: start;
  }
  .faq__list { margin-top: 0; }

  .sticky-cta { display: none; }
}

/* ============================================================
   ШИРОКИЙ ДЕСКТОП ≥ 1320px
   ============================================================ */
@media (min-width: 1320px) {
  .hero__title { font-size: 56px; }
  .portfolio__grid { grid-template-columns: repeat(4, 1fr); }
}
