/* ==========================================================================
   «Прораб Групп» — ремонт квартир под ключ.
   Индустриальный стиль: жёсткая сетка, радиус 4px, штриховки,
   табличные цифры и сигнальный жёлтый как единственный акцент.
   ========================================================================== */

:root {
  --ink:      #191c1f;
  --ink-2:    #2a2f34;
  --concrete: #edeef0;
  --white:    #ffffff;
  --yellow:   #ffc531;
  --yellow-d: #e0a80f;
  --muted:    #8a9199;
  --muted-d:  #5f666d;
  --line:     #d9dde1;
  --line-2:   #e8eaec;
  --red:      #c0392b;

  --fs-xs:   .8125rem;
  --fs-sm:   .9375rem;
  --fs-base: 1.0625rem;
  --fs-md:   1.1875rem;
  --fs-lg:   clamp(1.3rem, 1.1rem + .9vw, 1.6rem);
  --fs-xl:   clamp(1.7rem, 1.3rem + 1.9vw, 2.5rem);
  --fs-2xl:  clamp(2.1rem, 1.4rem + 3.2vw, 3.7rem);

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
  --s-9: 56px; --s-10: 72px; --s-12: 96px;

  --r: 4px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 7vw, 112px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: 'Inter Tight', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }

.num {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  padding: var(--s-3) var(--s-5);
  background: var(--yellow); color: var(--ink);
  font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--s-4); }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--dark { background: var(--ink); color: var(--concrete); }
.section--white { background: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-d);
}
.section--dark .eyebrow { color: var(--yellow); }
.section__head { max-width: 64ch; margin-bottom: var(--s-9); }
.section__title { margin-top: var(--s-3); font-size: var(--fs-xl); }
.section__lead { margin-top: var(--s-4); color: var(--muted-d); }
.section--dark .section__lead { color: #b6bcc2; }

/* штриховка — фирменный элемент */
.hatch {
  background-image: repeating-linear-gradient(45deg,
    var(--yellow) 0 8px, transparent 8px 16px);
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-6);
  border: 2px solid transparent;
  border-radius: var(--r);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .01em;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: var(--yellow-d); transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.section--dark .btn--ghost { border-color: rgba(255, 255, 255, .4); color: var(--concrete); }
.section--dark .btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--sm { min-height: 40px; padding-inline: var(--s-4); font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ---------- карточка ---------- */
.box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.section--dark .box { background: var(--ink-2); border-color: rgba(255, 255, 255, .12); }

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

/* ============ шапка ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: var(--s-6); min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: var(--s-3); }
.logo__mark {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  background: var(--yellow);
  border-radius: var(--r);
  font-weight: 800; font-size: .95rem;
}
.logo__name { font-weight: 800; letter-spacing: -.02em; }
.logo__sub { display: block; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-6); }
.nav__list { display: flex; gap: var(--s-5); }
.nav__link { font-size: var(--fs-sm); color: var(--muted-d); }
.nav__link:hover { color: var(--ink); }
.header__phone { font-weight: 700; white-space: nowrap; }
.header__phone small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .04em; }

.burger {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  border: 2px solid var(--ink);
  border-radius: var(--r);
}
.burger svg { width: 22px; height: 22px; margin-inline: auto; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

/* ============ герой ============ */
.hero { position: relative; background: var(--white); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(90% 80% at 70% 10%, #000 20%, transparent 76%);
}
.hero__inner { position: relative; padding-block: clamp(40px, 6vw, 88px); }
.hero__grid { display: grid; gap: var(--s-9); align-items: center; }
.hero__tag {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  background: var(--yellow);
  font-size: var(--fs-xs); font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: var(--r);
}
.hero__title { margin-top: var(--s-5); font-size: var(--fs-2xl); text-wrap: balance; }
.hero__title span { display: inline-block; border-bottom: 8px solid var(--yellow); }
.hero__lead { margin-top: var(--s-5); max-width: 56ch; color: var(--muted-d); font-size: var(--fs-md); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); }
.hero__art { position: relative; }

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  background: var(--white);
  position: relative;
}
.metric { padding: var(--s-6) var(--s-5); border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric__value { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); font-weight: 800; line-height: 1; }
.metric__label { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--muted-d); max-width: 22ch; }

/* ============ квиз ============ */
.quiz { max-width: 900px; margin-inline: auto; overflow: hidden; }
.quiz__top { padding: var(--s-6) var(--s-7) 0; }
.quiz__steps { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); }
.quiz__bar { height: 6px; margin-top: var(--s-3); background: var(--line-2); border-radius: var(--r); overflow: hidden; }
.quiz__fill { display: block; height: 100%; background: var(--yellow); transition: width .35s var(--ease); }
.quiz__body { padding: var(--s-7); }
.quiz__title { font-size: var(--fs-lg); }
.quiz__hint { margin-top: var(--s-2); margin-bottom: var(--s-6); font-size: var(--fs-sm); color: var(--muted-d); }

.opts { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.opt {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: var(--s-4) var(--s-5);
  text-align: left;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--r);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.opt:hover { border-color: var(--ink); }
.opt.is-active { border-color: var(--ink); background: var(--yellow); }
/* Оба — <span>, поэтому без display:block название и пояснение слипаются
   в одну строку, а margin-top у пояснения просто не применяется. */
.opt__name { display: block; font-weight: 700; }
.opt__note { display: block; margin-top: var(--s-1); font-size: var(--fs-xs); color: var(--muted-d); }
.opt.is-active .opt__note { color: var(--ink); opacity: .75; }

.range-row { display: flex; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-4); }
.range-row output { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); font-weight: 800; line-height: 1; }
.range-row span { color: var(--muted-d); font-size: var(--fs-sm); }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px;
  margin: var(--s-4) 0;
  background: var(--line);
  border-radius: var(--r);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px;
  background: var(--ink);
  border: 4px solid var(--yellow);
  border-radius: 50%;
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 28px; height: 28px;
  background: var(--ink);
  border: 4px solid var(--yellow);
  border-radius: 50%;
  cursor: pointer;
}
.range-scale { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); }

.quiz__foot {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-5) var(--s-7);
  background: var(--concrete);
  border-top: 1px solid var(--line);
}
.quiz__cart { flex: 1; min-width: 0; font-size: var(--fs-xs); color: var(--muted-d); }
.quiz__cart b { color: var(--ink); }

.result { text-align: center; padding: var(--s-4) 0; }
.result__label { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-d); }
.result__range { margin-top: var(--s-3); font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.8rem); font-weight: 800; line-height: 1.05; }
.result__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s-3); margin: var(--s-7) 0;
  text-align: left;
}
.result__cell { padding: var(--s-4); background: var(--concrete); border-radius: var(--r); }
.result__cell b { display: block; font-size: var(--fs-md); }
.result__cell span { font-size: var(--fs-xs); color: var(--muted-d); }
.result__note { font-size: var(--fs-xs); color: var(--muted-d); max-width: 52ch; margin-inline: auto; }

/* ============ калькулятор ============ */
.calc { display: grid; gap: var(--s-6); align-items: start; }
.calc__panel { padding: var(--s-7); }
.calc__group { margin-bottom: var(--s-7); }
.calc__group:last-child { margin-bottom: 0; }
.calc__legend {
  display: block;
  font-size: var(--fs-xs); font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-d);
  margin-bottom: var(--s-4);
}
.radio-row { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.radio { position: relative; display: block; cursor: pointer; }
.radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio__body {
  display: block;
  padding: var(--s-3) var(--s-4);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--r);
  min-height: 44px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.radio__body b { display: block; font-size: var(--fs-sm); }
.radio__body span { font-size: var(--fs-xs); color: var(--muted-d); }
.radio input:checked + .radio__body { border-color: var(--ink); background: var(--yellow); }
.radio input:checked + .radio__body span { color: var(--ink); opacity: .75; }
.radio input:focus-visible + .radio__body { outline: 3px solid var(--ink); outline-offset: 2px; }

.checks { display: grid; gap: var(--s-2); }
.check { display: flex; align-items: flex-start; gap: var(--s-3); cursor: pointer; padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.check:hover { border-color: var(--ink); }
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--ink); }
.check__text b { display: block; font-size: var(--fs-sm); }
.check__text span { font-size: var(--fs-xs); color: var(--muted-d); }
.check__price { margin-left: auto; font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }

.estimate { padding: var(--s-7); position: sticky; top: calc(var(--header-h) + 16px); }
.estimate__title { font-size: var(--fs-md); }
.estimate__table { width: 100%; margin-top: var(--s-5); font-size: var(--fs-sm); }
.estimate__table th { text-align: left; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); padding-bottom: var(--s-2); border-bottom: 1px solid var(--line); }
.estimate__table th:last-child, .estimate__table td:last-child { text-align: right; }
.estimate__table td { padding: var(--s-3) 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.estimate__table tr:last-child td { border-bottom: 0; }
.estimate__vol { display: block; font-size: var(--fs-xs); color: var(--muted); }
.estimate__total {
  margin-top: var(--s-5); padding-top: var(--s-5);
  border-top: 2px solid var(--ink);
}
.estimate__total-label { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-d); }
.estimate__range { margin-top: var(--s-2); font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.1rem); font-weight: 800; line-height: 1.1; }
.estimate__split { display: flex; gap: var(--s-5); margin-top: var(--s-4); font-size: var(--fs-sm); }
.estimate__split b { display: block; }
.estimate__meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--muted-d); }
.estimate__note { margin-top: var(--s-5); padding: var(--s-4); background: var(--concrete); border-left: 3px solid var(--yellow); font-size: var(--fs-xs); color: var(--muted-d); }
.estimate .btn { margin-top: var(--s-5); }

/* ============ пакеты ============ */
.packages { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pack { display: flex; flex-direction: column; padding: var(--s-7); }
.pack--featured { border-color: var(--ink); border-width: 2px; }
.pack__badge {
  align-self: flex-start;
  padding: var(--s-1) var(--s-3);
  margin-bottom: var(--s-3);
  background: var(--yellow);
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  border-radius: var(--r);
}
.pack__name { font-size: var(--fs-lg); }
.pack__tagline { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--muted-d); }
.pack__price { margin-top: var(--s-5); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); font-weight: 800; line-height: 1; }
.pack__price small { font-size: var(--fs-sm); font-weight: 500; color: var(--muted-d); }
.pack__term { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--muted-d); }
.pack__list { display: grid; gap: var(--s-2); margin: var(--s-6) 0; }
.pack__list li { position: relative; padding-left: var(--s-6); font-size: var(--fs-sm); }
.pack__list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 10px; height: 2px; background: var(--yellow);
}
.pack .btn { margin-top: auto; }

.compare-wrap { margin-top: var(--s-8); overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.compare { min-width: 680px; font-size: var(--fs-sm); }
.compare th, .compare td { padding: var(--s-4) var(--s-5); text-align: left; border-top: 1px solid var(--line-2); }
.compare thead th { border-top: 0; background: var(--ink); color: var(--white); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 160px; }
.compare .is-featured { background: rgba(255, 197, 49, .12); }
.compare thead .is-featured { background: var(--yellow); color: var(--ink); }
.compare .yes { font-weight: 800; }
.compare .no { color: var(--muted); }
.compare .val { font-size: var(--fs-xs); }

/* ============ до / после ============ */
.ba__tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.ba__tab {
  min-height: 44px; padding: 0 var(--s-5);
  border: 2px solid var(--line); border-radius: var(--r);
  background: var(--white);
  font-size: var(--fs-sm); font-weight: 700;
}
.ba__tab:hover { border-color: var(--ink); }
.ba__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.ba {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  aspect-ratio: 800 / 520;
  touch-action: pan-y;
  user-select: none;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 4px;
  margin-left: -2px;
  background: var(--yellow);
  cursor: ew-resize;
  border: 0;
  padding: 0;
}
.ba__handle::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(25, 28, 31, .35);
}
.ba__handle::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  z-index: 1;
  width: 22px; height: 12px;
  margin: -6px 0 0 -11px;
  background:
    linear-gradient(var(--ink), var(--ink)) left center / 8px 12px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right center / 8px 12px no-repeat;
  clip-path: polygon(0 50%, 8px 0, 8px 100%, 100% 50%, 14px 0, 14px 100%);
}
.ba__handle:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

.ba__caption {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6);
  align-items: baseline;
  margin-top: var(--s-4);
  font-size: var(--fs-sm);
  color: var(--muted-d);
}
.ba__caption b { color: var(--ink); }
.ba__hint { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--muted); }

/* ============ этапы ============ */
.stages { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stage { padding: var(--s-6); border-top: 3px solid var(--line); background: var(--white); }
.stage.is-active { border-top-color: var(--yellow); }
.stage__num { font-size: var(--fs-sm); font-weight: 800; color: var(--muted); }
.stage__title { margin-top: var(--s-2); font-size: var(--fs-md); }
.stage__term {
  display: inline-block; margin-top: var(--s-2);
  padding: 2px var(--s-3);
  background: var(--concrete);
  border-radius: var(--r);
  font-size: var(--fs-xs);
}
.stage__text { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--muted-d); }
.stage__you {
  margin-top: var(--s-4); padding-top: var(--s-4);
  border-top: 1px dashed var(--line);
  font-size: var(--fs-xs);
}
.stage__you b { display: block; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; margin-bottom: 2px; }

/* ============ бригада ============ */
.crew { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.crew__item { padding: var(--s-6); }
.crew__avatar { width: 64px; height: 64px; margin-bottom: var(--s-4); }
.crew__role { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.crew__name { margin-top: var(--s-2); font-size: var(--fs-md); }
.crew__stats { margin-top: var(--s-2); font-size: var(--fs-sm); color: #b6bcc2; }
.crew__note { margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--muted); }

/* ============ гарантии ============ */
.guarantees { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.guarantee { padding: var(--s-6); border-left: 4px solid var(--yellow); background: var(--white); }
.guarantee__title { font-size: var(--fs-md); }
.guarantee__text { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--muted-d); }

/* ============ форма ============ */
.lead { display: grid; gap: var(--s-8); align-items: start; }
.form { padding: var(--s-7); display: grid; gap: var(--s-5); }
.field { display: grid; }
.field__label { margin-bottom: var(--s-2); font-size: var(--fs-sm); font-weight: 700; }
.field__input {
  min-height: 52px;
  padding: var(--s-3) var(--s-4);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--r);
  transition: border-color .2s var(--ease);
}
.field__input::placeholder { color: var(--muted); }
.field__input:focus { outline: none; border-color: var(--ink); }
.field.has-error .field__input { border-color: var(--red); }
.field__error { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--red); }
.form__ok {
  display: flex; gap: var(--s-3);
  padding: var(--s-5);
  background: var(--yellow);
  border-radius: var(--r);
  font-size: var(--fs-sm);
}
.form__ok svg { width: 24px; height: 24px; flex: none; }

.lead__side ul { display: grid; gap: var(--s-4); }
.lead__side li { display: flex; gap: var(--s-3); font-size: var(--fs-sm); color: var(--muted-d); }
.lead__side svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--yellow-d); }

/* ============ подвал ============ */
.footer { background: var(--ink); color: #b6bcc2; padding-block: var(--s-9) var(--s-6); }
.footer a:hover { color: var(--yellow); }
.footer__grid { display: grid; gap: var(--s-7); }
.footer .logo__name, .footer h2 { color: var(--white); }
.footer__title { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-4); font-weight: 700; }
.footer__list { display: grid; gap: var(--s-2); font-size: var(--fs-sm); }
.footer__pitch { margin-top: var(--s-4); font-size: var(--fs-sm); max-width: 34ch; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6);
  justify-content: space-between;
  margin-top: var(--s-8); padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* ============ адаптив ============ */
@media (min-width: 640px) {
  .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .calc { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .lead { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (max-width: 899px) {
  .estimate { position: static; }
}

@media (max-width: 860px) {
  .burger { display: grid; place-items: center; }
  .header__phone { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--s-4);
    padding: var(--s-6) var(--gutter) var(--s-10);
    background: var(--white);
    overflow-y: auto;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; min-height: 54px; line-height: 54px; font-size: var(--fs-md); color: var(--ink); border-bottom: 1px solid var(--line); }
  .quiz__body, .quiz__top { padding-inline: var(--s-5); }
  .quiz__foot { padding-inline: var(--s-5); flex-wrap: wrap; }
  .quiz__cart { order: 3; flex-basis: 100%; }
}

@media (max-width: 520px) {
  .btn { width: 100%; }
  .quiz__foot .btn { width: auto; flex: 1; }
  .ba__handle::after { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
