/* ==========================================================================
   ВоздухДома.рф — «Кровельная сталь»
   Palette from the job photos: anthracite casings, snow, stainless, pine.
   ========================================================================== */

:root {
  --snow: #edefec;
  --snow-2: #e2e6e2;
  --paper: #f6f7f5;
  --steel: #a7aeb1;
  --graphite: #33393d;
  --graphite-2: #2a2f32;
  --ink: #1a1e20;
  --ink-2: #4c5458;
  --ink-3: #737b7f;
  --pine: #2e4a3d;
  --pine-2: #3b5d4d;
  --line: rgba(26, 30, 32, 0.14);
  --line-strong: rgba(26, 30, 32, 0.26);
  --on-dark: #e9ecea;
  --on-dark-2: rgba(233, 236, 234, 0.64);
  --line-dark: rgba(233, 236, 234, 0.16);
  --error: #9c4a35;

  --font-display: "Tenor Sans", "Golos Text", Georgia, serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-display: clamp(2.5rem, 1.35rem + 3.9vw, 5.1rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.3vw, 3.5rem);
  --fs-h3: 1.2rem;
  --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.22rem);
  --fs-small: 0.875rem;
  --fs-micro: 0.8125rem;

  --gutter: clamp(16px, 4vw, 56px);
  --container: 1320px;
  --section: clamp(88px, 6vw + 56px, 160px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 84px;
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, dl, dd, dt { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--pine); color: var(--on-dark); }
:focus-visible { outline: 2px solid var(--pine-2); outline-offset: 3px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--ink); color: var(--snow); transition: top 0.2s var(--ease); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

/* ------------------------------------------------------------ Typography */
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }

.head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 20px;
  align-items: end;
  margin-bottom: clamp(44px, 5vw, 80px);
}
.head > .h2 { grid-column: 1 / span 6; }
.head__lead { grid-column: 8 / -1; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.head--reviews { grid-template-columns: 1fr auto; }
.head--reviews .head__lead { margin-top: 20px; }

.ph { border-bottom: 1px dashed currentColor; opacity: 0.72; white-space: nowrap; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 0.25s var(--ease);
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------- Buttons */
.btn {
  --bg: var(--ink);
  --fg: var(--snow);
  --bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn__icon { width: 18px; height: 18px; flex: none; }
.btn--block { width: 100%; }
.btn--dark:hover { --bg: var(--pine); --bd: var(--pine); }
.btn--light { --bg: var(--on-dark); --fg: var(--ink); --bd: var(--on-dark); }
.btn--light:hover { --bg: #fff; --bd: #fff; }
.btn--outline-light { --bg: transparent; --fg: var(--on-dark); --bd: var(--line-dark); }
.btn--outline-light:hover { --bd: var(--on-dark); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); }
.btn--ghost:hover { --bd: var(--ink); }
.btn--max { --bg: var(--pine); --fg: var(--on-dark); --bd: var(--pine); }
.btn--max:hover { --bg: var(--pine-2); --bd: var(--pine-2); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.icon-btn:hover:not(:disabled) { border-color: var(--ink); background: var(--ink); color: var(--snow); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn--light { color: var(--on-dark); border-color: var(--line-dark); }
.icon-btn--light:hover:not(:disabled) { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }

/* ---------------------------------------------------------------- Header */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--graphite);
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
  height: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__mark { width: 34px; height: 34px; color: var(--on-dark); flex: none; }
.logo__word { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.005em; }
.logo__tld { color: var(--steel); }

.nav { display: flex; gap: clamp(16px, 2vw, 32px); margin-left: auto; }
.nav__link { font-size: 0.92rem; color: var(--on-dark-2); padding-block: 6px; border-bottom: 1px solid transparent; transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.nav__link:hover { color: var(--on-dark); }
.nav__link.is-active { color: var(--on-dark); border-bottom-color: var(--steel); }

.header__contact { display: grid; justify-items: end; line-height: 1.25; margin-left: clamp(8px, 2vw, 32px); }
.header__phone { font-size: 1.08rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.header__phone:hover { color: #fff; }
.header__hours { font-size: var(--fs-micro); color: var(--on-dark-2); }
.header__max { min-height: 46px; padding: 0 18px; font-size: 0.9rem; }

.burger { display: none; position: relative; width: 46px; height: 46px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: transparent; flex: none; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--on-dark); transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 16px) var(--gutter) max(24px, env(safe-area-inset-bottom));
  background: var(--graphite);
  color: var(--on-dark);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.35s var(--ease); }
.menu__link { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-family: var(--font-display); font-size: clamp(1.8rem, 8vw, 2.6rem); line-height: 1.15; }
.menu__foot { margin-top: auto; display: grid; gap: 6px; }
.menu__phone { font-size: 1.4rem; font-weight: 600; }
.menu__hours { color: var(--on-dark-2); font-size: var(--fs-small); margin-bottom: 16px; }

/* ------------------------------------------------------------------ Hero */
.hero {
  display: grid;
  grid-template-columns: 54fr 46fr;
  min-height: clamp(700px, 100svh, 1000px);
  background: var(--graphite);
  color: var(--on-dark);
}
.hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  padding: calc(var(--header-h) + clamp(48px, 7vh, 104px)) clamp(24px, 4.5vw, 72px) clamp(32px, 4vw, 56px) max(var(--gutter), calc((100vw - var(--container)) / 2));
}
.hero__content { max-width: 680px; }
.hero__kicker { color: var(--steel); font-size: 0.95rem; margin-bottom: 28px; padding-left: 40px; position: relative; }
.hero__kicker::before { content: ""; position: absolute; left: 0; top: 50%; width: 28px; height: 1px; background: var(--steel); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 32px;
}
.hero__lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--on-dark-2); max-width: 32em; margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hero__facts div { padding-top: 16px; border-top: 1px solid var(--line-dark); }
.hero__facts dt { font-weight: 500; margin-bottom: 4px; }
.hero__facts dd { color: var(--on-dark-2); font-size: var(--fs-small); line-height: 1.45; }

.hero__media { position: relative; overflow: hidden; background: var(--graphite-2); }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 60%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 47, 50, 0.55) 0, rgba(42, 47, 50, 0) 22%); pointer-events: none; }
.hero__plate { position: absolute; left: clamp(24px, 3vw, 48px); bottom: clamp(24px, 3vw, 48px); z-index: 2; width: min(330px, calc(100% - 48px)); }

/* the plate — stamped equipment nameplate, the page's signature detail */
.plate {
  --rivet: radial-gradient(circle, var(--steel) 0 2.2px, rgba(0, 0, 0, 0.18) 2.6px, transparent 3.4px);
  display: grid;
  gap: 0;
  padding: 20px 24px 16px;
  background:
    var(--rivet) 8px 8px / 12px 12px no-repeat,
    var(--rivet) calc(100% - 8px) 8px / 12px 12px no-repeat,
    var(--rivet) 8px calc(100% - 8px) / 12px 12px no-repeat,
    var(--rivet) calc(100% - 8px) calc(100% - 8px) / 12px 12px no-repeat,
    linear-gradient(160deg, #f3f5f3 0%, #dde2df 100%);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.plate__title { font-family: var(--font-display); font-size: 1.05rem; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line-strong); }
.plate__row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); line-height: 1.4; }
.plate__row:last-child { border-bottom: 0; }
.plate__row > span { color: var(--ink-3); }
.plate__row > b { font-weight: 500; }

.plate--inline { padding: 0; background: none; border: 0; box-shadow: none; color: inherit; margin-top: 14px; }
.plate--inline .plate__row { border-color: var(--line-dark); grid-template-columns: 72px 1fr; padding: 7px 0; }
.plate--inline .plate__row:first-child { border-top: 1px solid var(--line-dark); }
.plate--inline .plate__row:last-child { border-bottom: 1px solid var(--line-dark); }
.plate--inline .plate__row > span { color: var(--on-dark-2); }

/* page-load sequence — the one orchestrated moment */
.js .load { opacity: 0; transform: translateY(18px); }
.js.is-loaded .load { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms + 100ms); }
.js .hero__media img { transform: scale(1.06); }
.js.is-loaded .hero__media img { transform: none; transition: transform 2.2s var(--ease-out); }

/* ------------------------------------------------------------------- Why */
.why__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; align-items: end; }
.why__title { grid-column: 1 / span 7; }
.why__lead { grid-column: 9 / -1; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.55; }
.why__list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(24px, 4vw, 56px); }
.why__item { padding-top: 24px; border-top: 1px solid var(--ink); }
.why__item .h3 { margin-bottom: 10px; }
.why__item p { color: var(--ink-2); max-width: 26em; }

/* -------------------------------------------------------------- Services */
.services { background: var(--paper); border-top: 1px solid var(--line); }
.services__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.services__visual {
  grid-column: 1 / span 5;
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--snow-2);
}
.services__visual picture { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s var(--ease); }
.services__visual picture.is-active { opacity: 1; }
.services__visual img { width: 100%; height: 100%; object-fit: cover; }
.services__list { grid-column: 7 / -1; }
.service { padding: clamp(28px, 3vw, 40px) 0; border-top: 1px solid var(--line-strong); outline-offset: 6px; }
.service:last-child { border-bottom: 1px solid var(--line-strong); }
.service__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2.2rem); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 14px; transition: color 0.4s var(--ease); }
.service__body { color: var(--ink-2); max-width: 36em; }
.service__spec { margin-top: 16px; font-size: var(--fs-small); color: var(--ink-3); padding-left: 28px; position: relative; }
.service__spec::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 16px; height: 1px; background: var(--steel); }
.service__media { display: none; }
@media (min-width: 1025px) {
  .service:not(.is-active) .service__title { color: var(--ink-3); }
}

/* ----------------------------------------------------------------- Works */
.works { background: var(--graphite); color: var(--on-dark); }
.works .head__lead { color: var(--on-dark-2); }
.works__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(32px, 3vw, 48px) 24px; align-items: start; }
.work--a { grid-column: 1 / span 8; }
.work--b { grid-column: 9 / -1; }
.work--c { grid-column: 1 / span 4; }
.work--d { grid-column: 5 / span 4; }
.work--e { grid-column: 9 / span 4; }
.work__btn { display: block; width: 100%; padding: 0; border: 0; background: var(--graphite-2); overflow: hidden; cursor: zoom-in; }
.work__btn picture, .work__btn img { width: 100%; height: 100%; }
.work__btn img { object-fit: cover; transition: transform 1s var(--ease-out); }
.work__btn:hover img { transform: scale(1.03); }
.work--a .work__btn { aspect-ratio: 16 / 10; }
.work--b .work__btn { aspect-ratio: 4 / 5; }
.work--c .work__btn, .work--d .work__btn, .work--e .work__btn { aspect-ratio: 4 / 5; }
.work--e img { object-position: 50% 30%; }
.work--d img { object-position: 50% 35%; }
.works__more { margin-top: clamp(40px, 4vw, 64px); color: var(--on-dark); text-decoration-color: var(--line-dark); }

/* --------------------------------------------------------------- Reviews */
.reviews__summary { display: grid; justify-items: end; gap: 16px; }
.reviews__rating { display: flex; align-items: center; gap: 10px; }
.reviews__rating [data-rating-value] { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.reviews__rating small { color: var(--ink-3); font-size: var(--fs-micro); max-width: 6em; line-height: 1.3; }
.stars { display: inline-flex; gap: 2px; color: var(--pine); }
.stars svg { width: 16px; height: 16px; }

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: 6px; }
.carousel__controls { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 32px; }
.carousel__dots { display: flex; gap: 8px; flex-wrap: wrap; }
.carousel__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 0; background: var(--line-strong); transition: width 0.35s var(--ease-out), background-color 0.25s var(--ease); }
.carousel__dots button[aria-current="true"] { width: 28px; background: var(--pine); }
.carousel__arrows { display: flex; gap: 8px; }

.review {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 320px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.review__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.review__source { font-size: var(--fs-micro); color: var(--ink-3); }
.review__author { display: flex; align-items: center; gap: 14px; }
.review__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--graphite); color: var(--on-dark); font-weight: 500; flex: none; }
.review__name { display: block; font-weight: 500; }
.review__meta { display: block; font-size: var(--fs-micro); color: var(--ink-3); }
.review__text { color: var(--ink-2); line-height: 1.6; }
.review--image { padding: 16px; }
.review--image img { width: 100%; height: 100%; max-height: 520px; object-fit: contain; background: #fff; }
.review--ph .review__avatar { background: var(--snow-2); color: var(--ink-3); }
.review--ph .review__text { color: var(--ink-3); }

/* --------------------------------------------------------------- Process */
.process { background: var(--paper); border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { padding-top: 20px; border-top: 1px solid var(--ink); }
.step__num { display: block; font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--steel); margin-bottom: 28px; }
.step .h3 { margin-bottom: 10px; }
.step p { color: var(--ink-2); max-width: 22em; }

/* ------------------------------------------------------------------ Calc */
.calc { background: var(--snow-2); }
.calc__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; }
.calc__intro { grid-column: 1 / span 5; }
.calc__intro .h2 { margin-bottom: 24px; }
.calc__trust { margin-top: 48px; border-top: 1px solid var(--line-strong); }
.calc__trust li { padding: 14px 0; border-bottom: 1px solid var(--line-strong); }

.form { grid-column: 7 / -1; display: grid; gap: 30px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 24px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: var(--fs-small); color: var(--ink-2); }
.input {
  width: 100%;
  min-height: 52px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-size: 1.08rem;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.input::placeholder { color: var(--ink-3); opacity: 0.75; }
.input:hover { border-color: var(--ink-2); }
.input:focus { outline: none; border-color: var(--pine); box-shadow: 0 1px 0 0 var(--pine); }
.input[type="number"] { -moz-appearance: textfield; }
.input[type="number"]::-webkit-outer-spin-button, .input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field__error { display: none; font-size: var(--fs-micro); color: var(--error); }
.field.has-error .field__error { display: block; }
.field.has-error .input { border-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 0.92rem; background: transparent; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }
.chip:hover span { border-color: var(--ink-2); }
.chip input:checked + span { background: var(--graphite); border-color: var(--graphite); color: var(--on-dark); }
.chip input:focus-visible + span { outline: 2px solid var(--pine-2); outline-offset: 2px; }

.consent { grid-template-columns: 22px 1fr; column-gap: 12px; font-size: var(--fs-small); color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--pine); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.consent .field__error { grid-column: 2; }

.form__success { display: none; grid-column: 7 / -1; align-self: start; gap: 16px; padding: clamp(28px, 3vw, 44px); background: var(--paper); border: 1px solid var(--line); }
.form__success svg { width: 44px; height: 44px; color: var(--pine); }
.form__success p { color: var(--ink-2); }
.calc.is-sent .form { display: none; }
.calc.is-sent .form__success { display: grid; }

/* ------------------------------------------------------------------- FAQ */
.faq__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; }
.faq__grid > .h2 { grid-column: 1 / span 4; }
.faq__list { grid-column: 6 / -1; border-top: 1px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line-strong); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); font-weight: 500; line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa__toggle { position: relative; flex: none; width: 18px; height: 18px; }
.qa__toggle::before, .qa__toggle::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease-out); }
.qa__toggle::after { transform: rotate(90deg); }
.qa[open] .qa__toggle::after { transform: rotate(0deg); }
.qa__body { padding: 0 48px 26px 0; color: var(--ink-2); max-width: 44em; }

/* -------------------------------------------------------------- Contacts */
.contacts { background: var(--graphite); color: var(--on-dark); padding-top: var(--section); }
.contacts__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.8rem, 1rem + 6.5vw, 7.5rem); line-height: 1; letter-spacing: -0.025em; margin-bottom: clamp(48px, 5vw, 88px); }
.contacts__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px 24px; padding-block: 32px clamp(64px, 6vw, 104px); border-top: 1px solid var(--line-dark); }
.contact { display: grid; align-content: start; justify-items: start; gap: 12px; }
.contact__label { font-size: var(--fs-small); color: var(--on-dark-2); }
.contact__value { font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
.contact__value--big { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.1; }
a.contact__value:hover { color: #fff; }
.contact__note { font-size: var(--fs-small); color: var(--on-dark-2); max-width: 24em; }

.footer { border-top: 1px solid var(--line-dark); color: var(--on-dark-2); font-size: var(--fs-small); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 28px; }
.footer .logo__word { font-size: 1rem; color: var(--on-dark); }
.footer .logo__mark { width: 26px; height: 26px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__nav a:hover { color: var(--on-dark); }

/* ----------------------------------------------------------- Mobile dock */
.dock {
  position: fixed;
  left: 12px; right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 80;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  background: var(--graphite);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.55);
  transform: translateY(150%);
  transition: transform 0.45s var(--ease-out);
}
.dock.is-visible { transform: none; }
.dock .btn { min-height: 48px; padding: 0 12px; }

/* -------------------------------------------------------------- Lightbox */
.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: #1d2124; color: var(--on-dark); }
.lightbox::backdrop { background: rgba(29, 33, 36, 0.7); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade 0.3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.lightbox__top, .lightbox__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--gutter); font-size: var(--fs-small); color: var(--on-dark-2); }
.lightbox__stage { display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__nav { display: flex; gap: 8px; }

/* ----------------------------------------------------------------- Legal */
.legal { padding-top: calc(var(--header-h) + 64px); }
.legal__body { max-width: 760px; }
.legal__body h1 { margin-bottom: 32px; }
.legal__body h2 { font-size: 1.25rem; font-weight: 500; margin: 40px 0 12px; }
.legal__body p, .legal__body li { color: var(--ink-2); }
.legal__body ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }
.header--simple .header__inner { justify-content: space-between; }

@media (prefers-reduced-motion: reduce) {
  html, .carousel__track { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .load, .js .hero__media img { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1240px) {
  .nav { display: none; }
  .header__contact { margin-left: auto; }
  .burger { display: block; }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__panel { padding: calc(var(--header-h) + 48px) var(--gutter) 40px; }
  .hero__media { aspect-ratio: 4 / 3; }
  .hero__media img { object-position: 50% 55%; }

  .head > .h2, .head__lead { grid-column: 1 / -1; }
  .head--reviews { grid-template-columns: 1fr; }
  .reviews__summary { justify-items: start; }

  .why__title, .why__lead, .why__list { grid-column: 1 / -1; }

  .services__visual { display: none; }
  .services__list { grid-column: 1 / -1; }
  .service__media { display: block; margin-top: 20px; aspect-ratio: 16 / 10; overflow: hidden; }
  .service__media img { width: 100%; height: 100%; object-fit: cover; }

  .work--a { grid-column: 1 / -1; }
  .work--b, .work--c { grid-column: span 6; }
  .work--d, .work--e { grid-column: span 6; }

  .carousel__track { grid-auto-columns: calc((100% - 24px) / 2); }

  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }

  .calc__intro, .form, .form__success { grid-column: 1 / -1; }

  .faq__grid > .h2, .faq__list { grid-column: 1 / -1; }

  .contacts__grid { grid-template-columns: 1fr 1fr; }
  .contact--phone { grid-column: 1 / -1; }

  .dock { display: grid; }
  .footer { padding-bottom: 84px; }
}

@media (max-width: 720px) {
  .header__max { display: none; }
  .header__inner { gap: 12px; }
  .header__phone { font-size: 0.95rem; }
}

@media (max-width: 440px) {
  .header__inner { gap: 8px; }
  .logo { gap: 8px; }
  .logo__mark { width: 28px; height: 28px; }
  .logo__word { font-size: 0.95rem; }
  .header__phone { font-size: 0.84rem; letter-spacing: 0; }
  .header__hours { font-size: 0.75rem; }
  .burger { width: 42px; height: 42px; }
  .burger span { left: 11px; right: 11px; }
  .burger span:nth-child(1) { top: 16px; }
  .burger span:nth-child(2) { top: 24px; }
  .burger[aria-expanded="true"] span:nth-child(1),
  .burger[aria-expanded="true"] span:nth-child(2) { top: 20px; }
}

@media (max-width: 359px) {
  .header__hours { display: none; }
  .logo__mark { display: none; }
}

@media (max-width: 640px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts { grid-template-columns: 1fr; gap: 0; }
  .hero__facts div { padding: 14px 0; }
  .hero__media { aspect-ratio: 4 / 5; }
  .hero__plate { left: 16px; right: 16px; bottom: 16px; width: auto; }

  .why__list { grid-template-columns: 1fr; gap: 32px; }

  .works__grid > .work { grid-column: 1 / -1; }

  .carousel__track { grid-auto-columns: 88%; gap: 12px; }
  .review { padding: 22px; min-height: 0; }

  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .step__num { font-size: 2.6rem; margin-bottom: 16px; }

  .form__row { grid-template-columns: 1fr; }
  .qa__body { padding-right: 0; }

  .contacts__grid { grid-template-columns: 1fr; }
  .footer__nav { gap: 16px; }
}
