/* =========================================================
   СУ 47 — Бетон · "Industrial Precision"
   Near-black ink + cool concrete paper + one rust accent.
   An art-directed engineering data sheet. Mobile-first.
   One committed identity — no aesthetic variants.
   ========================================================= */

:root {
  /* — Ink ramp (warm-neutral near-black) — */
  --ink:    oklch(20% 0.012 70);    /* #16130f — primary text, dark surfaces */
  --ink-2:  oklch(28% 0.012 70);    /* #2a2520 — secondary text */
  --ink-3:  oklch(45% 0.014 70);    /* #5c544b — muted on light (AA ≥4.5:1) */

  /* — Paper (cool concrete off-white) — */
  --paper:   oklch(93.5% 0.003 90); /* #ECEAE6 — body ground */
  --paper-2: oklch(91% 0.004 90);   /* #E2DFDA — alternating bands */
  --surface: oklch(96.5% 0.002 90); /* #F4F2EF — inputs / raised areas */

  /* — Hairlines — */
  --line:   rgba(22, 19, 15, 0.12);
  --line-2: rgba(22, 19, 15, 0.24);

  /* — On-dark neutrals (text over --ink) — */
  --on-dark:    oklch(94% 0.004 90);   /* near-paper, primary on dark */
  --on-dark-2:  oklch(72% 0.006 80);   /* muted on dark (AA on --ink) */
  --on-dark-3:  oklch(58% 0.006 80);   /* faint on dark — non-text only */
  --on-photo:   oklch(82% 0.005 80);   /* hero copy over the photo scrim — bumped above --on-dark-2 for AA */
  --on-photo-2: oklch(76% 0.005 80);   /* hero stat labels over the photo scrim */
  --line-dark:   rgba(236, 234, 230, 0.14);
  --line-dark-2: rgba(236, 234, 230, 0.26);

  /* — Rust: the one accent — */
  --rust:      oklch(53% 0.165 38);  /* #b8441f — CTAs, markers, key numbers */
  --rust-deep: oklch(46% 0.155 38);  /* #9a3615 — hover/pressed */
  --rust-on-dark: oklch(68% 0.15 42); /* lighter rust for text/icons over --ink / --ink-2 (AA on both) */

  --radius: 2px;
  --radius-sm: 0px;

  --font-display: "Archivo Expanded", "Archivo", system-ui, sans-serif;
  --font-sans:    "Archivo", system-ui, sans-serif;
  --font-mono:    "Archivo", system-ui, sans-serif;

  --container: 1320px;
  --gutter: clamp(24px, 5vw, 64px);
  --section-pad: clamp(64px, 10vw, 120px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1); /* ease-out expo-ish */
}

/* «Mono» role is now Archivo (plain, unmarked zero). Tabular figures keep
   number columns aligned where a monospace used to. */
.hero__stat dt, .prices, .price-row__price, .quote__total-v, .quote__summary-v,
.ticket__total-v, .ticket__head-tot, .trow__v, .vhelp__result-v, .stepper__in,
.picklist__price, .gradegrid__p, .sticky-call__v b, .nav__overlay-call-v {
  font-variant-numeric: tabular-nums;
}


* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }

::selection { background: var(--rust); color: #fff; }

a { color: inherit; }

/* Skip-to-content — first focusable element, off-screen until focused. At rest
   pointer-events:none makes it inert so it is never a stray tap target at the
   top-left and can't be half-tapped while sliding in. It stays focusable (no
   visibility:hidden, which would remove it from the tab order and defeat the
   link). z-index sits above the sticky nav (50) and everything else so that,
   once shown, the tap always lands on the link itself. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  transform: translateY(-150%);
  pointer-events: none;
  padding: 12px 18px;
  background: var(--rust);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease);
}
/* Reveal on ANY focus, not just :focus-visible — touch and assistive-tech focus
   often don't set :focus-visible, which left the link visible-but-unreachable on
   some mobiles. Shadow only when focused (at rest the blurred shadow leaked
   below the top edge and read as a stray smudge on the header's left). */
.skip-link:focus {
  transform: none;
  pointer-events: auto;
  outline-offset: 2px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 35%, transparent);
}
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }
/* Skip-link is a keyboard aid. On touch-only devices it can't be focused by a
   tap and is never useful, yet some in-app WebViews surface it where it just
   blocks taps — so hide it there. Keyboard/desktop users keep it. */
@media (hover: none) and (pointer: coarse) { .skip-link { display: none; } }

/* Global visible focus affordance */
:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}
.on-dark :focus-visible,
.hero :focus-visible,
.quote :focus-visible,
.order :focus-visible,
.sheet :focus-visible,
.nav__overlay :focus-visible,
.footer :focus-visible { outline-color: var(--rust-on-dark); }

/* =========================================================
   Primitives
   ========================================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section-pad) 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
}

/* Section heading block */
.head { max-width: 24ch; margin-bottom: clamp(36px, 6vw, 64px); }
.head--wide { max-width: 40ch; }
/* Centered section intro — compact, balanced; used to introduce the prices sheet. */
.head--center { max-width: 52ch; margin-inline: auto; text-align: center; }
.head--center .head__lede { margin-inline: auto; }
.head__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 18px;
}
.head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.head__lede {
  margin-top: 22px;
  max-width: 60ch;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--ink-3);
  text-wrap: pretty;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:hover { transform: none; }
.btn:disabled:hover .arrow { transform: none; }

.btn--rust { background: var(--rust); color: #fff; }
.btn--rust:hover { background: var(--rust-deep); box-shadow: 0 8px 24px color-mix(in srgb, var(--rust) 30%, transparent); }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--rust); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 3%, transparent); }

.btn--on-dark { background: var(--on-dark); color: var(--ink); }
.btn--on-dark:hover { background: var(--surface); }

.btn--ghost-dark { background: transparent; color: var(--on-dark); border-color: var(--line-dark-2); }
.btn--ghost-dark:hover { border-color: var(--on-dark); background: color-mix(in srgb, var(--on-dark) 6%, transparent); }

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

@media (prefers-reduced-motion: reduce) {
  .btn, .btn .arrow { transition: background 0.2s, color 0.2s, border-color 0.2s; }
  .btn:hover { transform: none; }
  .btn:hover .arrow { transform: none; }
}

/* =========================================================
   Inputs
   ========================================================= */
.input, .textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.2; /* concrete line-box — Archivo's "normal" metric runs tall on iOS and drops the caret below the text */
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
/* Native date control has an intrinsic min width that can overflow its column;
   pin it to the box and keep the picker indicator inside the border. */
/* No native number spinners anywhere — they read as clutter in this sharp UI
   (the volume row uses custom −/+; dimension fields are typed). */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.input--date { appearance: none; -webkit-appearance: none; }
.input--date::-webkit-date-and-time-value { text-align: left; }
.input--date::-webkit-calendar-picker-indicator { margin-left: auto; cursor: pointer; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.input--error { border-color: var(--rust); }
.input--error:focus { box-shadow: inset 0 0 0 1px var(--rust); }

.label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

/* =========================================================
   Combobox (searchable select)
   ========================================================= */
.combo { position: relative; width: 100%; }
.combo__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s;
}
.combo__trigger:hover { border-color: var(--ink-3); }
.combo--open .combo__trigger { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.combo__trigger--empty .combo__value { color: var(--ink-3); }
.combo__value { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex-wrap: wrap; }
.combo__value-hint {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--rust);
  flex-shrink: 0;
}
.combo__chevron { font-size: 12px; color: var(--ink-3); transition: transform 0.2s; flex-shrink: 0; }
.combo--open .combo__chevron { transform: rotate(180deg); color: var(--rust); }

.combo__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px color-mix(in srgb, var(--ink) 18%, transparent);
  display: flex;
  flex-direction: column;
  /* Odd cap so a row is half-cut at the fold — a visible cue the list scrolls. */
  max-height: min(50vh, 326px);
  overflow: hidden;
  animation: combo-in 0.16s var(--ease);
}
@keyframes combo-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.combo__search { padding: 10px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.combo__search-input {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
}
.combo__search-input:focus { outline: none; border-color: var(--ink); }
.combo__list {
  list-style: none;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.combo__option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  min-height: 44px;
  cursor: pointer;
  border-radius: var(--radius);
}
.combo__option-label { font-size: 15px; color: var(--ink); }
.combo__option-hint { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); flex-shrink: 0; }
.combo__option--active { background: var(--ink); }
.combo__option--active .combo__option-label { color: var(--on-dark); }
.combo__option--active .combo__option-hint { color: var(--on-dark-2); }
.combo__option--selected { box-shadow: inset 3px 0 0 var(--rust); }
.combo__option--selected.combo__option--active { background: var(--rust); }
.combo__option--selected.combo__option--active .combo__option-label,
.combo__option--selected.combo__option--active .combo__option-hint { color: #fff; }
.combo__empty { padding: 18px 14px; color: var(--ink-3); font-size: 14px; text-align: center; }

/* Dark combobox (over --ink surfaces) */
.combo--dark .combo__trigger { background: color-mix(in srgb, var(--on-dark) 5%, transparent); border-color: var(--line-dark-2); color: var(--on-dark); }
.combo--dark .combo__trigger:hover { border-color: var(--on-dark-2); }
.combo--dark.combo--open .combo__trigger { border-color: var(--rust-on-dark); box-shadow: inset 0 0 0 1px var(--rust-on-dark); }
.combo--dark .combo__trigger--empty .combo__value { color: var(--on-dark-3); }
.combo--dark .combo__value-hint { color: var(--rust-on-dark); }
.combo--dark .combo__chevron { color: var(--on-dark-2); }
.combo--dark .combo__panel { background: var(--ink-2); border-color: var(--line-dark-2); }
.combo--dark .combo__search { border-bottom-color: var(--line-dark); }
.combo--dark .combo__search-input { background: color-mix(in srgb, var(--on-dark) 6%, transparent); border-color: var(--line-dark-2); color: var(--on-dark); }
.combo--dark .combo__search-input:focus { border-color: var(--rust-on-dark); }
.combo--dark .combo__option-label { color: var(--on-dark); }
.combo--dark .combo__option-hint { color: var(--rust-on-dark); }
.combo--dark .combo__option--active { background: color-mix(in srgb, var(--on-dark) 10%, transparent); }
.combo--dark .combo__option--active .combo__option-label { color: #fff; }
.combo--dark .combo__option--active .combo__option-hint { color: var(--rust-on-dark); }
.combo--dark .combo__option--selected.combo__option--active { background: var(--rust); }
.combo--dark .combo__option--selected.combo__option--active .combo__option-label,
.combo--dark .combo__option--selected.combo__option--active .combo__option-hint { color: #fff; }

@media (prefers-reduced-motion: reduce) { .combo__panel { animation: none; } }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Solid (was translucent + backdrop-blur). On iOS the translucency let page
     content show THROUGH the header while scrolling — read as flicker — and
     backdrop-filter on a sticky+animating element is itself an iOS repaint-jitter
     source. Opaque fixes both; the tuck animation is a GPU transform, still smooth. */
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding: 10px 0;
}
.nav__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.nav__logo .dot { color: var(--rust); }
.nav__logo sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  vertical-align: baseline;
}
/* Desktop nav — fully-clickable text buttons (the whole padded cell is the hit
   area, not just the label), divided by short centered hairline rules in the
   spec-sheet spirit. No enclosing box or per-item fill: depth here is hairlines
   + the rust accent, per the One-Oxide / flat-surfaces system — so the only
   framed element in the header stays the rust «Заявка» CTA. State reads through
   rust text + a thin rust underline that wipes in from the centre. */
.nav__links {
  display: flex;
  align-items: center;
  margin-left: 10px;
}
.nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  min-height: 40px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
/* Short centered divider between adjacent items — a ruled tick, not a border box. */
.nav__links a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 18px;
  width: 1px;
  background: var(--line);
  transform: translateY(-50%);
}
/* Rust underline indicator, inset to the label and revealed on hover/focus. */
.nav__links a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 7px;
  height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s var(--ease);
}
.nav__links a:hover,
.nav__links a:focus-visible { color: var(--rust); }
.nav__links a:hover::after,
.nav__links a:focus-visible::after { transform: scaleX(1); }
.nav__links a:focus-visible { outline: 2px solid var(--rust); outline-offset: -3px; border-radius: var(--radius); }
@media (prefers-reduced-motion: reduce) {
  .nav__links a::after { transition: none; }
}
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
  border-radius: var(--radius);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav__phone-ic { color: var(--rust); flex-shrink: 0; }
.nav__phone:hover { color: var(--rust); background: color-mix(in srgb, var(--rust) 6%, transparent); }

/* Mobile menu toggle */
.nav__menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s var(--ease);
}
.nav__menu-btn:hover { border-color: var(--rust); }
.nav__menu-btn span,
.nav__menu-btn span::before,
.nav__menu-btn span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav__menu-btn span::before, .nav__menu-btn span::after { content: ""; position: absolute; left: 0; }
.nav__menu-btn span::before { top: -6px; }
.nav__menu-btn span::after { top: 6px; }
.nav__menu-btn[aria-expanded="true"] span { background: transparent; }
.nav__menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile overlay menu — dark industrial drawer (matches the dark plates) */
.nav__overlay {
  position: fixed;
  inset: 64px 0 0;
  z-index: 49;
  background: var(--ink);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 7vw, 38px) var(--gutter) calc(36px + env(safe-area-inset-bottom, 0px));
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.nav__overlay--open { opacity: 1; transform: none; pointer-events: auto; }
.nav__overlay-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-bottom: 16px;
}
.nav__overlay-links { display: flex; flex-direction: column; }
.nav__overlay-links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-height: 64px;
  padding: 10px 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 9vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  transition: color 0.15s var(--ease), padding-left 0.2s var(--ease);
}
.nav__overlay-links a:hover,
.nav__overlay-links a:focus-visible { color: var(--rust-on-dark); padding-left: 8px; }
.nav__overlay-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--rust-on-dark);
  align-self: center;
}
.nav__overlay-foot { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.nav__overlay-call { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--on-dark); }
.nav__overlay-call-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-2); }
.nav__overlay-call-v { font-family: var(--font-mono); font-size: clamp(26px, 8vw, 34px); font-weight: 700; letter-spacing: -0.01em; color: var(--on-dark); }
.nav__overlay-call:hover .nav__overlay-call-v { color: var(--rust-on-dark); }
.nav__overlay-hours { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--on-dark-3); }
.nav__overlay-foot .btn { margin-top: 4px; }

@media (max-width: 1000px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu-btn { display: inline-flex; }
}
@media (max-width: 400px) {
  .nav__inner { gap: 12px; }
  .nav__right { gap: 6px; }
  .nav__phone { font-size: 13.5px; padding: 0 4px; }
  .nav__logo { font-size: 19px; }
  .nav__logo sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav__overlay { transition: opacity 0.2s; transform: none; }
  .nav__menu-btn span, .nav__menu-btn span::before, .nav__menu-btn span::after { transition: none; }
}

/* =========================================================
   Hero (dark plate)
   ========================================================= */
.hero {
  background: var(--ink);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
/* Full-bleed photo behind the type — atmosphere, not the message.
   photo: Unsplash · бетоносмеситель (concrete mixer truck). */
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% center;
  z-index: 0;
  pointer-events: none;
  filter: grayscale(1) contrast(1.05) brightness(0.5);
}
/* Layered scrim so the H1, lede, CTAs, meta and trust row all stay ≥4.5:1.
   Heavy on the left where the type lives, lifting to atmosphere on the right. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 82% 6%, color-mix(in srgb, var(--rust) 15%, transparent), transparent 52%),
    linear-gradient(90deg, var(--ink) 0%, var(--ink) 34%, color-mix(in srgb, var(--ink) 90%, transparent) 58%, color-mix(in srgb, var(--ink) 68%, transparent) 82%, color-mix(in srgb, var(--ink) 60%, transparent) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 80%, transparent) 0%, color-mix(in srgb, var(--ink) 40%, transparent) 26%, color-mix(in srgb, var(--ink) 20%, transparent) 50%, color-mix(in srgb, var(--ink) 78%, transparent) 100%);
  pointer-events: none;
}
@media (max-width: 820px) {
  /* On phones the type spans full width — darken evenly so every line clears AA. */
  .hero__photo { object-position: 66% center; }
  .hero::before {
    background:
      radial-gradient(ellipse at 80% 4%, color-mix(in srgb, var(--rust) 16%, transparent), transparent 56%),
      linear-gradient(180deg, color-mix(in srgb, var(--ink) 88%, transparent) 0%, color-mix(in srgb, var(--ink) 84%, transparent) 45%, var(--ink) 100%);
  }
}
.hero__inner {
  position: relative;
  z-index: 1;
  /* block-only so the container's horizontal gutter is preserved — the hero
     must share the same side margins as every other section. */
  padding-block: clamp(48px, 9vw, 104px) clamp(36px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-photo);
}
.hero__live { display: inline-flex; align-items: center; gap: 9px; }
.hero__live .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rust-on-dark);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--rust-on-dark) 50%, transparent);
  animation: live-pulse 2.4s var(--ease) infinite;
}
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rust-on-dark) 50%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--rust-on-dark) 0%, transparent); } }
.hero__eyebrow-sep { width: 1px; height: 12px; background: var(--line-dark-2); }
@media (prefers-reduced-motion: reduce) { .hero__live .dot { animation: none; } }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 8vw, 88px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--on-dark);
  text-wrap: balance;
  max-width: 16ch;
}
.hero__title em { font-style: normal; color: var(--rust-on-dark); }
.hero__lede {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
  /* Lifted a notch above --on-dark-2 so it clears AA (≥4.5:1) over the photo,
     while staying clearly secondary to the white headline. */
  color: var(--on-photo);
  max-width: 56ch;
  text-wrap: pretty;
}
.hero__lede strong { color: var(--on-dark); font-weight: 600; white-space: nowrap; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Stat strip — an aligned engineering data row, not a wrapping dot-list. */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  margin: 0;
  padding-top: clamp(22px, 4vw, 32px);
  border-top: 1px solid var(--line-dark);
}
.hero__stat { padding: 0 clamp(16px, 2.6vw, 34px); border-left: 1px solid var(--line-dark); }
.hero__stat:first-child { padding-left: 0; border-left: none; }
.hero__stat dt { font-family: var(--font-mono); font-size: clamp(19px, 2.3vw, 26px); font-weight: 700; letter-spacing: -0.01em; line-height: 1; color: var(--rust-on-dark); }
.hero__stat dd { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-photo-2); margin-top: 8px; }

@media (max-width: 600px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__eyebrow { gap: 10px; }
  /* More room from the top so the headline isn't jammed against the status bar. */
  .hero__inner { padding-top: clamp(40px, 13vw, 80px); }
  /* 2×2 grid with crisp internal rules — perfectly aligned. */
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__stat { padding: 16px 14px; border-left: none; }
  .hero__stat:nth-child(even) { border-left: 1px solid var(--line-dark); }
  .hero__stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .hero__stat:nth-child(odd) { padding-left: 0; }
}
/* The sticky tap-to-call bar (≤1000px) already keeps the phone one tap away,
   so the hero's "Позвонить" button is redundant clutter there — drop it and
   let "Рассчитать заказ" stand as the single hero CTA. */
@media (max-width: 1000px) {
  .hero__call { display: none; }
  .hero__photo { object-position: 60% center; }
}

/* =========================================================
   About / trust
   ========================================================= */
.about { background: var(--paper); }

/* Zone 1 — near-even split: heading+copy LEFT, a full-height photo RIGHT.
   align-items: stretch drives the photo column to the text block's height so
   the two masses equalise through height rather than width. */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: stretch;
}
@media (max-width: 820px) { .about__grid { grid-template-columns: 1fr; } }

.about__head { margin-bottom: 0; max-width: none; }
.about__head .about__copy { margin-top: 28px; }
/* Brand «СУ 47» called out in oxide rust within the section heading. */
.about__title em { font-style: normal; color: var(--rust); }

/* Full-height photo: the figure is a direct grid child and fills the row
   height; the 4:3 source covers it (downscale only — never upscaled). The
   min-height is capped at 520px so on ultrawide the copy drives the height and
   no dead band opens under the last paragraph. object-position keeps the plant
   centred when the landscape source is cropped into a taller frame. */
.about__media {
  margin: 0;
  height: 100%;
  min-height: clamp(360px, 42vw, 520px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
}
.about__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ---- Photo treatment ----
   Desaturate the stock photo into cohesive monochrome and lay a faint rust
   duotone over the bordered cover figure — imagery obeys the One-Oxide Rule. */
.about__img, .contacts__img { filter: grayscale(1) contrast(1.06); }
.about__media, .contacts__media { position: relative; }
.about__media::after, .contacts__media::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: var(--rust);
  mix-blend-mode: soft-light;
  opacity: 0.25;
}
@media (max-width: 820px) {
  /* Stack cleanly on mobile; let the picture breathe at a calm 16:9. */
  .about__media { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
}

.about__copy p {
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}
.about__copy p + p { margin-top: 22px; }
.about__copy p:first-child {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 28px;
  text-wrap: balance;
}

/* Zone 2 — proof points promoted to a full-width horizontal band beneath the
   spread. Three equal cells split by hairline rules; each a small vertical card
   (label → description). Top + bottom rules close the ledger. */
.proof {
  margin-top: clamp(48px, 6vw, 88px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line);
}
.proof__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(26px, 2.6vw, 34px) clamp(22px, 2vw, 30px);
  border-right: 1px solid var(--line);
}
.proof__item:first-child { padding-left: 0; }
.proof__item:last-child { padding-right: 0; border-right: none; }
.proof__label {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.proof__desc {
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-3);
  margin-top: 10px;
  letter-spacing: 0;
  text-wrap: pretty;
}

/* Tablet — keep 3 across, just tighten the cell padding (3 cells don't halve). */
@media (max-width: 980px) {
  .proof__item { padding: clamp(24px, 3.4vw, 32px) clamp(18px, 2.4vw, 26px); }
  .proof__item:first-child { padding-left: 0; }
  .proof__item:last-child { padding-right: 0; }
}

/* Mobile — single column ledger: a hairline rule above every cell. */
@media (max-width: 720px) {
  .proof { grid-template-columns: 1fr; }
  .proof__item {
    padding: 24px 0;
    border-right: none;
    border-top: 1px solid var(--line);
  }
  .proof__item:first-child { border-top: none; }
}

/* =========================================================
   Prices — mono spec sheet
   ========================================================= */
.prices { background: var(--paper-2); }
.prices__sheet { border-top: 2px solid var(--ink); }
/* Group header inside the spec sheet (Товарный бетон / Цементный раствор).
   Made unmistakable: rust tick + bold label + trailing rule, so the grades
   that repeat across both groups (М100–М200) are never confused. */
.price-section {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 26px 0 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.price-section:first-child { margin-top: 0; }
.price-section::before {
  content: "";
  width: 11px; height: 11px;
  background: var(--rust);
  flex-shrink: 0;
}
.price-section::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-2);
}
.price-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) 2fr minmax(140px, 0.9fr) 44px;
  gap: 20px;
  align-items: center;
  padding: 20px 12px;
  margin: 0 -12px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.18s var(--ease);
  position: relative;
}
.price-row:hover { background: var(--surface); }
.price-row--popular { background: color-mix(in srgb, var(--rust) 6%, transparent); }
.price-row--popular:hover { background: color-mix(in srgb, var(--rust) 10%, transparent); }
.price-row__grade {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.price-row__grade b {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.price-row__pop {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--rust);
  padding: 3px 7px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.price-row__detail { min-width: 0; }
.price-row__use { font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.price-row__spec {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ink-3);
  margin-top: 4px;
}
.price-row__price {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 500;
}
.price-row__price b {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.price-row__price small {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-left: 5px;
}
.price-row__go {
  justify-self: end;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--ink);
  font-size: 17px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.price-row:hover .price-row__go { background: var(--rust); color: #fff; border-color: var(--rust); }
.prices__note {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  max-width: 80ch;
  text-wrap: pretty;
}

@media (max-width: 720px) {
  .price-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "grade price"
      "detail detail";
    gap: 6px 16px;
    padding: 18px 12px;
    align-items: start;
  }
  .price-row__grade { grid-area: grade; align-self: center; }
  .price-row__price { grid-area: price; text-align: right; align-self: center; }
  .price-row__detail { grid-area: detail; }
  .price-row__go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .price-row, .price-row__go { transition: none; }
}

/* =========================================================
   Order flow (the merge) — dark surface
   ========================================================= */
.order { background: var(--ink); color: var(--on-dark); }

.quote {
  display: grid;
  grid-template-columns: minmax(380px, 410px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 980px) { .quote { grid-template-columns: 1fr; gap: 36px; } }

.quote__aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 980px) { .quote__aside { position: static; } }
.quote__aside-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust-on-dark);
}
.quote__aside-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  text-wrap: balance;
}
.quote__aside-sub { font-size: 15.5px; line-height: 1.6; color: var(--on-dark-2); max-width: 44ch; text-wrap: pretty; }
.quote__steps { display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); margin-top: 6px; }
.quote__step {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark-3);
  transition: color 0.2s;
}
.quote__step--active { color: var(--on-dark); }
.quote__step--done { color: var(--on-dark-2); }
.quote__step-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; min-width: 22px; }
.quote__step-title { font-size: 14px; font-weight: 500; }
.quote__step-check { margin-left: auto; color: var(--rust-on-dark); }
@media (max-width: 980px) {
  .quote__steps { flex-direction: row; flex-wrap: wrap; gap: 6px; border: none; margin-top: 0; }
  .quote__step { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 7px 11px; }
  .quote__step-title { display: none; }
  .quote__step--active { border-color: var(--rust-on-dark); }
}

.quote__body {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-height: 440px;
}
/* Keyed per-step view — preserves the body's column rhythm and crossfades in
   on each step change so the height shift reads as a transition, not a jump. */
.quote__view { display: flex; flex-direction: column; gap: inherit; animation: quote-step-in 0.3s var(--ease); }
@keyframes quote-step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .quote__view { animation: none; } }

.quote__q-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--on-dark);
  text-wrap: balance;
}
.quote__q-sub { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--on-dark-2); max-width: 48ch; text-wrap: pretty; }

/* on-dark inputs inside the flow */
.quote__body .label { color: var(--on-dark-2); }
.quote__body .input, .quote__body .textarea {
  background: color-mix(in srgb, var(--on-dark) 5%, transparent);
  border-color: var(--line-dark-2);
  color: var(--on-dark);
}
.quote__body .input::placeholder, .quote__body .textarea::placeholder { color: var(--on-dark-3); }
.quote__body .input:focus, .quote__body .textarea:focus {
  border-color: var(--rust-on-dark);
  box-shadow: inset 0 0 0 1px var(--rust-on-dark);
}
.quote__body .input--error { border-color: var(--rust-on-dark); }

.quote__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.quote__option {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 72px;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--on-dark) 4%, transparent);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  text-align: left;
  color: var(--on-dark);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.quote__option:hover { border-color: var(--on-dark-2); background: color-mix(in srgb, var(--on-dark) 7%, transparent); }
.quote__option--active { background: var(--rust); border-color: var(--rust); }
.quote__option-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.quote__option-sub { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--on-dark-2); }
.quote__option--active .quote__option-sub { color: rgba(255,255,255,0.85); }

.quote__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote__grid2 > * { min-width: 0; }
@media (max-width: 480px) { .quote__grid2 { grid-template-columns: 1fr; } }

.quote__check {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--on-dark) 4%, transparent);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14.5px;
  line-height: 1.4;
}
.quote__check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--rust); flex-shrink: 0; }
.quote__check small { color: var(--on-dark-2); }

/* Volume helper (collapsible) */
.vhelp { border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.vhelp__toggle {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 52px; padding: 14px 16px;
  background: color-mix(in srgb, var(--on-dark) 4%, transparent);
  border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  color: var(--on-dark); text-align: left;
}
.vhelp__toggle:hover { background: color-mix(in srgb, var(--on-dark) 7%, transparent); }
.vhelp__toggle .vhelp__chev { margin-left: auto; transition: transform 0.2s; color: var(--rust-on-dark); }
.vhelp--open .vhelp__chev { transform: rotate(180deg); }
.vhelp__body { padding: 20px 18px; border-top: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 20px; }
/* Segmented control — three equal cells, no mid-word wrapping; stacks on phones. */
.vhelp__types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vhelp__type {
  min-height: 46px; padding: 10px 12px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: color-mix(in srgb, var(--on-dark) 4%, transparent); border: 1px solid var(--line-dark-2);
  border-radius: var(--radius); cursor: pointer;
  font-family: var(--font-sans); font-size: 13.5px; line-height: 1.25; color: var(--on-dark-2);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.vhelp__type:hover { border-color: var(--on-dark-2); color: var(--on-dark); }
.vhelp__type--active { background: var(--rust); color: #fff; border-color: var(--rust); }
@media (max-width: 560px) { .vhelp__types { grid-template-columns: 1fr; } }
.vhelp__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.vhelp__fields > * { min-width: 0; }
.vhelp__result {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap;
  padding: 18px 20px;
  background: color-mix(in srgb, var(--rust) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--rust) 35%, transparent);
  border-radius: var(--radius);
}
.vhelp__result > div { min-width: 0; }
.vhelp__result-label { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust-on-dark); margin-bottom: 6px; }
.vhelp__result-v { font-family: var(--font-mono); font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -0.01em; color: var(--rust-on-dark); }
.vhelp__result-v small { font-size: 15px; font-weight: 500; color: var(--on-dark-2); margin-left: 6px; }
.vhelp__note { font-family: var(--font-mono); font-size: 12px; line-height: 1.5; letter-spacing: 0.02em; color: var(--on-dark-2); margin-top: 8px; }
.vhelp__result .btn { flex-shrink: 0; }
@media (max-width: 480px) {
  .vhelp__result { flex-direction: column; align-items: stretch; gap: 14px; }
  .vhelp__result .btn { width: 100%; }
}

/* Live total bar */
.quote__total {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 18px 20px;
  background: color-mix(in srgb, var(--on-dark) 4%, transparent);
  border: 1px solid var(--line-dark-2);
  border-radius: var(--radius);
}
.quote__total-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-2); }
.quote__total-v { font-family: var(--font-mono); font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; color: var(--rust-on-dark); }

.quote__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.quote__summary-line { display: flex; flex-direction: column; gap: 5px; }
.quote__summary-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-2); }
.quote__summary-v { font-family: var(--font-mono); font-size: 16px; font-weight: 600; color: var(--on-dark); }

.quote__hint { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--rust-on-dark); }
.quote__consent { font-family: var(--font-mono); font-size: 11px; line-height: 1.5; letter-spacing: 0.02em; color: var(--on-dark-3); }
.quote__navwrap { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.quote__submit-error {
  font-size: 14px; line-height: 1.4; color: var(--rust-on-dark);
  background: color-mix(in srgb, var(--rust) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--rust-on-dark) 40%, transparent);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.quote__nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
@media (max-width: 480px) { .quote__nav { flex-direction: column-reverse; } .quote__nav .btn { width: 100%; } }

.quote__success { display: flex; flex-direction: column; gap: 18px; justify-content: center; min-height: 360px; }
.quote__success-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rust-on-dark);
}
.quote__success p { font-size: clamp(17px, 2vw, 19px); line-height: 1.55; color: var(--on-dark-2); max-width: 46ch; text-wrap: pretty; }
.quote__success strong { color: var(--on-dark); }
.quote__success .btn { align-self: flex-start; }

/* =========================================================
   Order flow v2 (DRAFT) — the order as a single editable
   batch ticket. No wizard. Lives on the dark .order band.
   ========================================================= */
.order2 {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.order2 > * { min-width: 0; } /* let grid items shrink — no track blowout from fixed-width controls */
@media (max-width: 980px) { .order2 { grid-template-columns: 1fr; gap: 30px; } }

.order2__intro { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 980px) { .order2__intro { position: static; gap: 14px; } }
.order2__eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rust-on-dark); }
.order2__title { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; color: var(--on-dark); }
.order2__sub { font-size: 15.5px; line-height: 1.6; color: var(--on-dark-2); max-width: 42ch; text-wrap: pretty; }
.order2__assure { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.order2__assure li { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--on-dark-2); }
.order2__assure li::before { content: "✓"; color: var(--rust-on-dark); font-size: 13px; }
@media (max-width: 980px) { .order2__assure { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; } }
@media (max-width: 560px) { .order2__assure { display: none; } }

/* The ticket card */
.ticket {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 34px);
}
.ticket__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 16px; margin-bottom: 4px;
  border-bottom: 2px solid var(--line-dark-2);
}
.ticket__head-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-2); }
.ticket__head-tot { font-family: var(--font-mono); font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.01em; color: var(--rust-on-dark); }

/* on-dark inputs inside the ticket + sheets */
.ticket .input, .ticket .textarea, .sheet .input, .sheet .textarea {
  background: color-mix(in srgb, var(--on-dark) 5%, transparent); border-color: var(--line-dark-2); color: var(--on-dark);
  color-scheme: dark; /* readable native date/time pickers on the dark form */
}
.ticket .input::placeholder, .ticket .textarea::placeholder,
.sheet .input::placeholder, .sheet .textarea::placeholder { color: var(--on-dark-3); }
.ticket .input:focus, .ticket .textarea:focus,
.sheet .input:focus, .sheet .textarea:focus { border-color: var(--rust-on-dark); box-shadow: inset 0 0 0 1px var(--rust-on-dark); }
.ticket .input--error { border-color: var(--rust-on-dark); }
.ticket .label, .sheet .label { color: var(--on-dark-2); }

/* Ticket rows — a labelled form. Desktop: label-left. Mobile: label-on-top
   with each value rendered as a real form control, so every row reads as an
   obvious, tappable field (no guessing, no crowding chips, no collisions). */
.trow {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  width: 100%; min-height: 64px; padding: 14px 0;
  border: none; border-bottom: 1px solid var(--line-dark);
  background: transparent; color: var(--on-dark);
  font-family: var(--font-sans); text-align: left;
}
.trow--btn { cursor: pointer; }
.trow__k { flex: 0 0 104px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-2); }

/* Select-style value (Марка, Доставка): value + chevron, one line, ellipsis. */
.trow__field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; transition: border-color 0.15s var(--ease); }
.trow__v {
  flex: 1; min-width: 0;
  font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.trow__v small { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--on-dark-2); }
.trow--empty .trow__v { font-family: var(--font-sans); font-weight: 500; font-size: 16px; color: var(--on-dark-3); }
/* Inline price (Марка / Доставка) — mono, dimmed, fixed; value ellipsizes, this stays. */
.trow__hint { flex: 0 0 auto; font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--on-dark-2); white-space: nowrap; }
.trow__chev { flex: 0 0 auto; color: var(--rust-on-dark); font-size: 13px; transition: transform 0.15s var(--ease); }

/* Field flash — fired when a value is set from the price table / volume calc. */
.trow--flash .trow__field, .trow--flash .stepper__in { animation: field-flash 1.1s var(--ease); border-radius: var(--radius); }
@keyframes field-flash { 0% { box-shadow: 0 0 0 2px var(--rust-on-dark); } 100% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--rust-on-dark) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .trow--flash .trow__field, .trow--flash .stepper__in { animation: none; } }
.trow--btn:hover .trow__chev { transform: translateY(2px); }
.trow__date { flex: 1; }
.trow__datetime { flex: 1; min-width: 0; display: flex; gap: 12px; }
.trow__datetime .input { flex: 1; min-width: 0; }
.trow__datetime .input[type="time"] { flex: 0 0 auto; width: 128px; }

/* Volume row: stepper + a clear, uncrowded "calculate" action. */
.trow__volume { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.trow__calc {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  min-height: 42px; padding: 9px 14px;
  background: transparent; border: 1px solid var(--line-dark-2); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; color: var(--on-dark);
  cursor: pointer; white-space: nowrap;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}
.trow__calc:hover, .trow__calc:focus-visible { border-color: var(--rust-on-dark); color: var(--rust-on-dark); background: color-mix(in srgb, var(--rust-on-dark) 6%, transparent); }
.trow__calc-ic { color: var(--rust-on-dark); font-size: 15px; line-height: 1; }

/* Volume stepper */
.stepper { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.stepper__b { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--on-dark) 5%, transparent); border: 1px solid var(--line-dark-2); border-radius: var(--radius); color: var(--on-dark); font-size: 22px; line-height: 1; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.stepper__b:hover { border-color: var(--on-dark-2); background: color-mix(in srgb, var(--on-dark) 8%, transparent); }
.stepper__in { width: 60px; flex-shrink: 0; min-height: 44px; padding: 0 6px; text-align: center; background: color-mix(in srgb, var(--on-dark) 5%, transparent); border: 1px solid var(--line-dark-2); border-radius: var(--radius); color: var(--on-dark); font-family: var(--font-mono); font-size: 18px; font-weight: 700; }
.stepper__in:focus { outline: none; border-color: var(--rust-on-dark); box-shadow: inset 0 0 0 1px var(--rust-on-dark); }
.stepper__u { font-family: var(--font-mono); font-size: 14px; color: var(--on-dark-2); }

/* Sharp industrial toggle (radius ≤2px — stays on brand) */
.trow--toggle { cursor: pointer; }
.trow__toggle-label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.trow__toggle-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.trow__toggle-txt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--on-dark-2); white-space: nowrap; }
.trow__check { position: absolute; opacity: 0; width: 1px; height: 1px; }
.trow__switch { flex: 0 0 auto; width: 50px; height: 28px; border-radius: 2px; background: color-mix(in srgb, var(--on-dark) 10%, transparent); border: 1px solid var(--line-dark-2); position: relative; transition: background 0.2s var(--ease), border-color 0.2s var(--ease); }
.trow__switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 1px; background: var(--on-dark-2); transition: transform 0.2s var(--ease), background 0.2s var(--ease); }
.trow__check:checked ~ .trow__switch { background: var(--rust); border-color: var(--rust); }
.trow__check:checked ~ .trow__switch::after { transform: translateX(22px); background: #fff; }
.trow__check:focus-visible ~ .trow__switch { outline: 2px solid var(--rust-on-dark); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .trow__switch, .trow__switch::after, .trow__chev { transition: none; } }

/* Mobile: stack label on top; tappable values become real select controls. */
@media (max-width: 600px) {
  .trow { flex-direction: column; align-items: stretch; gap: 8px; min-height: 0; padding: 14px 0; }
  .trow__k { flex: none; }
  .trow--btn .trow__field {
    min-height: 54px; padding: 13px 14px;
    background: color-mix(in srgb, var(--on-dark) 5%, transparent);
    border: 1px solid var(--line-dark-2);
    border-radius: var(--radius);
  }
  .trow--btn:active .trow__field { border-color: var(--rust-on-dark); background: color-mix(in srgb, var(--on-dark) 8%, transparent); }
  .trow__v { font-size: 17px; }
  .trow__volume { width: 100%; }
  /* the насос row stays one horizontal line (label-block + switch). */
  .trow--toggle { flex-direction: row; align-items: center; gap: 14px; }
}

/* Contacts block + foot */
.ticket__contacts { margin-top: 8px; padding-top: 22px; border-top: 2px solid var(--line-dark-2); display: flex; flex-direction: column; gap: 16px; }
.ticket__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ticket__grid2 > * { min-width: 0; }
@media (max-width: 520px) { .ticket__grid2 { grid-template-columns: 1fr; } }
/* Total + submit stick to the bottom of the viewport while the form is scrolled,
   so the running price and the CTA are always one glance / one tap away. */
.ticket__foot {
  position: sticky; bottom: 0;
  margin-top: 24px; padding-top: 18px; padding-bottom: 6px;
  /* A 1px rust top-rule is the separator; just a whisper of shadow for depth so
     content fades under it without a heavy slab. */
  border-top: 1px solid var(--rust-on-dark);
  background: var(--ink-2);
  box-shadow: 0 -10px 20px -18px color-mix(in srgb, var(--ink) 50%, transparent);
  display: flex; flex-direction: column; gap: 14px;
}
.ticket__total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.ticket__total-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-2); }
.ticket__total-v { font-family: var(--font-mono); font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; color: var(--rust-on-dark); }
.ticket__error { font-size: 14px; line-height: 1.4; color: var(--rust-on-dark); background: color-mix(in srgb, var(--rust) 12%, transparent); border: 1px solid color-mix(in srgb, var(--rust-on-dark) 40%, transparent); border-radius: var(--radius); padding: 12px 16px; }
.ticket__hint { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--rust-on-dark); }
.ticket__consent { font-family: var(--font-mono); font-size: 11px; line-height: 1.5; letter-spacing: 0.02em; color: var(--on-dark-3); }

/* Success ticket */
.ticket--done { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-height: 320px; justify-content: center; }
.ticket__stamp { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rust-on-dark); border: 2px solid var(--rust-on-dark); padding: 7px 16px; transform: rotate(-3deg); }
.ticket__done-title { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; color: var(--on-dark); }
.ticket__done-text { font-size: clamp(16px, 2vw, 19px); line-height: 1.55; color: var(--on-dark-2); max-width: 48ch; text-wrap: pretty; }
.ticket__done-text strong { color: var(--on-dark); }

/* Bottom-sheet / modal — fixed, so its scroll container is reliable on touch */
/* top/height (not inset) so JS can pin it to the visual viewport when the
   mobile keyboard is up — see the Sheet component. */
.sheet { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 120; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 720px) { .sheet { align-items: center; padding: 24px; } }
.sheet__scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 62%, transparent); animation: sheet-fade 0.2s var(--ease); }
.sheet__panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px;
  /* cap to the visible sheet height (JS sets it to the visual viewport) so the
     panel never extends behind the keyboard; 90% leaves a small peek at rest. */
  max-height: 90%;
  display: flex; flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line-dark-2);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -24px 70px color-mix(in srgb, var(--ink) 45%, transparent);
  animation: sheet-up 0.26s var(--ease);
}
@media (min-width: 720px) { .sheet__panel { max-height: 80%; border-radius: var(--radius); box-shadow: 0 30px 90px color-mix(in srgb, var(--ink) 50%, transparent); animation: sheet-pop 0.2s var(--ease); } }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line-dark); flex-shrink: 0; }
.sheet__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--on-dark); }
.sheet__close { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; background: transparent; border: 1px solid var(--line-dark-2); border-radius: var(--radius); color: var(--on-dark); font-size: 15px; cursor: pointer; }
.sheet__close:hover { border-color: var(--on-dark-2); }
.sheet__body { padding: 16px 20px 24px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet__search { position: sticky; top: 0; z-index: 2; background: var(--ink-2); padding-bottom: 12px; }
.sheet__note { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; letter-spacing: 0.02em; color: var(--on-dark-2); }
.sheet__note b { color: var(--on-dark); }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-pop { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes sheet-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet__panel, .sheet__scrim { animation: none; } }

/* District pick-list inside the sheet */
.picklist { list-style: none; margin: 0; padding: 0; }
.picklist__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 54px; padding: 14px; background: transparent; border: none; border-radius: var(--radius); cursor: pointer; color: var(--on-dark); text-align: left; }
.picklist__row:hover { background: color-mix(in srgb, var(--on-dark) 6%, transparent); }
.picklist__row--sel { background: color-mix(in srgb, var(--on-dark) 4%, transparent); box-shadow: inset 3px 0 0 var(--rust-on-dark); }
.picklist__name { font-size: 16px; }
.picklist__price { font-family: var(--font-mono); font-size: 14px; color: var(--rust-on-dark); flex-shrink: 0; }
.picklist__empty { padding: 22px 14px; text-align: center; color: var(--on-dark-2); font-size: 14px; }

/* Grade grid inside the sheet */
/* Product toggle (Товарный бетон / Цементный раствор) above the grade grid —
   segmented control on the dark sheet. */
.gradeseg { display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; background: color-mix(in srgb, var(--on-dark) 5%, transparent); border: 1px solid var(--line-dark); border-radius: var(--radius); }
.gradeseg__b { flex: 1; min-height: 40px; padding: 8px 12px; background: transparent; border: none; border-radius: var(--radius); cursor: pointer; color: var(--on-dark-2); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; transition: color 0.15s, background 0.15s; }
.gradeseg__b--on { background: var(--rust); color: var(--on-dark); }
.gradeseg__b:not(.gradeseg__b--on):hover { color: var(--on-dark); }

.gradegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.gradegrid__item { position: relative; display: flex; flex-direction: column; gap: 5px; min-height: 80px; padding: 16px; background: color-mix(in srgb, var(--on-dark) 4%, transparent); border: 1px solid var(--line-dark); border-radius: var(--radius); cursor: pointer; color: var(--on-dark); text-align: left; transition: border-color 0.15s, background 0.15s; }
.gradegrid__item:hover { border-color: var(--on-dark-2); background: color-mix(in srgb, var(--on-dark) 7%, transparent); }
.gradegrid__item--sel { border-color: var(--rust-on-dark); box-shadow: inset 0 0 0 1px var(--rust-on-dark); }
.gradegrid__g { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.gradegrid__p { font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-2); }
.gradegrid__pop { position: absolute; top: 10px; right: 10px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rust-on-dark); }

/* "Подобрать марку" CTA + questionnaire inside the grade sheet */
.gradequiz-cta {
  display: flex; align-items: center; gap: 14px; width: 100%;
  margin-bottom: 16px; padding: 16px 18px; text-align: left; cursor: pointer;
  background: color-mix(in srgb, var(--rust) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--rust) 45%, transparent);
  border-radius: var(--radius);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.gradequiz-cta:hover { background: color-mix(in srgb, var(--rust) 18%, transparent); border-color: var(--rust-on-dark); }
.gradequiz-cta__txt { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.gradequiz-cta__txt b { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--on-dark); }
.gradequiz-cta__txt small { font-size: 13px; color: var(--on-dark-2); }
.gradequiz-cta__arrow { flex: 0 0 auto; color: var(--rust-on-dark); font-size: 20px; }
.gradequiz__back { background: none; border: none; cursor: pointer; color: var(--on-dark-2); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; padding: 0 0 14px; }
.gradequiz__back:hover { color: var(--rust-on-dark); }
.gradequiz__q { font-family: var(--font-display); font-size: clamp(20px, 3vw, 26px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; margin-bottom: 16px; color: var(--on-dark); }
.gradequiz__opt {
  display: block; width: 100%; text-align: left; min-height: 56px; padding: 16px 18px; margin-bottom: 10px;
  background: color-mix(in srgb, var(--on-dark) 4%, transparent); border: 1px solid var(--line-dark); border-radius: var(--radius);
  color: var(--on-dark); font-family: var(--font-sans); font-size: 16px; cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.gradequiz__opt:hover { border-color: var(--rust-on-dark); background: color-mix(in srgb, var(--on-dark) 7%, transparent); }
.gradequiz__result { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.gradequiz__result-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust-on-dark); }
.gradequiz__result-g { font-family: var(--font-display); font-size: clamp(40px, 9vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--on-dark); }
.gradequiz__result-g small { font-family: var(--font-mono); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--on-dark-2); }
.gradequiz__result-desc { font-size: 15px; line-height: 1.55; color: var(--on-dark-2); max-width: 46ch; }
.gradequiz__result-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { background: var(--paper-2); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  padding: 24px 0;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: color 0.2s;
}
.faq__q:hover { color: var(--rust); }
.faq__q-num { font-family: var(--font-mono); font-size: 12px; color: var(--rust); flex-shrink: 0; padding-top: 6px; min-width: 26px; }
.faq__q-text {
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.faq__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  position: relative;
  margin-top: 4px;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.faq__icon::before { width: 15px; height: 2px; transform: translate(-50%, -50%); }
.faq__icon::after { width: 2px; height: 15px; transform: translate(-50%, -50%); }
.faq__item--open .faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.faq__item--open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a p {
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 72ch;
  padding: 0 0 28px 46px;
  text-wrap: pretty;
}
@media (max-width: 560px) {
  .faq__a p { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .faq__a { transition: none; }
  .faq__icon::before, .faq__icon::after { transition: none; }
}

/* =========================================================
   Contacts
   ========================================================= */
.contacts { background: var(--paper); }
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: stretch;
}
@media (max-width: 820px) {
  .contacts__grid { grid-template-columns: 1fr; }
  /* Lead with the question form; the contact details follow. */
  .contacts__form { order: -1; }
}
/* Desktop: the form is shorter than the photo-anchored left panel, which left a
   long empty bottom under it. Let it size to its content and stick while the
   panel scrolls past. */
@media (min-width: 821px) {
  .contacts__form { align-self: start; position: sticky; top: 88px; }
}

/* Left column is a proper contact panel — eyebrow, heading, the tap-to-call
   phone as the focal point, supporting details, then a photo anchor. */
.contacts__panel { display: flex; flex-direction: column; }
.contacts__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-top: 16px;
  text-wrap: balance;
}

/* The phone — the clear focal point of the section. */
.contacts__phone {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: clamp(24px, 3vw, 32px);
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.contacts__phone:hover { border-color: var(--ink); background: var(--surface); }
.contacts__phone-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contacts__phone-num {
  font-family: var(--font-mono);
  /* Lower floor + nowrap so the number stays on ONE line on narrow screens and
     when text is scaled up, instead of breaking to two rows. */
  font-size: clamp(20px, 5.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
}
.contacts__phone:hover .contacts__phone-num { color: var(--rust); }

.contacts__lines { display: flex; flex-direction: column; margin-top: 8px; }
.contacts__line {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contacts__line:first-child { border-top: 1px solid var(--line); }
.contacts__line .label { margin-bottom: 0; }
.contacts__line a, .contacts__line .v {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}
.contacts__line a:hover { color: var(--rust); }

/* Photo anchor — gives the panel visual weight, fills the lower void.
   Grows to bottom-align the panel against the form on desktop. */
.contacts__media {
  margin: clamp(24px, 3vw, 32px) 0 0;
  flex: 1 1 auto;
  min-height: 200px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.contacts__img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .contacts__media { flex: 0 0 auto; aspect-ratio: 16 / 10; min-height: 0; }
}

.contacts__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}
.contacts__form-title { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
.contacts__form-sub { font-size: 14.5px; color: var(--ink-3); margin-top: -8px; line-height: 1.5; }
.contacts__consent { font-family: var(--font-mono); font-size: 11px; line-height: 1.55; letter-spacing: 0.02em; color: var(--ink-3); }
.contacts__success {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: color-mix(in srgb, var(--rust) 8%, transparent);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.contacts__success-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rust);
}
.contacts__success p { font-size: 15px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.contacts__error {
  font-size: 14px; line-height: 1.4; color: var(--rust);
  background: color-mix(in srgb, var(--rust) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--rust) 40%, transparent);
  border-radius: var(--radius);
  padding: 12px 16px;
}

/* =========================================================
   Reviews — intro panel + embedded Yandex.Maps widget (2-col → stacked)
   ========================================================= */
.reviews { background: var(--paper); } /* band rhythm: …Order(ink) · Reviews(paper) · FAQ(paper-2) · Contacts(paper)… */
.reviews__layout {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 520px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.reviews__intro { max-width: 40ch; }
.reviews__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}
.reviews__links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 26px; }
/* Outline (ghost) button so the path to the full reviews is an obvious tap target,
   not a faint text link — but understated, not a loud filled CTA. */
.reviews__btn { gap: 10px; }
.reviews__btn .arrow { transition: transform 0.2s var(--ease); }
.reviews__btn:hover .arrow { transform: translateX(3px); }
.reviews__widget {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.reviews__frame { display: block; width: 100%; height: 600px; border: 0; }
@media (max-width: 860px) {
  .reviews__layout { grid-template-columns: 1fr; gap: 28px; }
  .reviews__intro { max-width: none; }
  .reviews__widget { max-width: 600px; width: 100%; }
  .reviews__frame { height: 540px; }
}
@media (max-width: 520px) { .reviews__frame { height: 480px; } }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--ink); color: var(--on-dark); padding: clamp(48px, 7vw, 72px) 0 32px; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 28px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }
.footer__logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--on-dark);
  margin-bottom: 16px;
  display: inline-block;
}
.footer__logo .dot { color: var(--rust-on-dark); }
.footer__about p { color: var(--on-dark-2); font-size: 15px; line-height: 1.6; max-width: 44ch; text-wrap: pretty; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-bottom: 16px;
}
.footer__col a {
  display: flex;
  align-items: center;
  min-height: 36px;
  color: var(--on-dark);
  font-size: 15px;
  text-decoration: none;
}
.footer__col a:hover { color: var(--rust-on-dark); }
.footer__hours { display: flex; align-items: center; min-height: 36px; color: var(--on-dark-2); font-size: 15px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--on-dark-2);
}

/* =========================================================
   Sticky tap-to-call (mobile)
   ========================================================= */
.sticky-call {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 100;
  min-height: 56px;
  padding: 12px 20px;
  background: var(--rust);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 35%, transparent);
  /* Hand-off motion: a quick ease-out slide-down + fade, so it ducks away cleanly
     as the contacts slab arrives (and over the order form). */
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  transform-origin: center;
}
.sticky-call--hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .sticky-call { transition: opacity 0.2s; } .sticky-call--hidden { transform: none; } }
.sticky-call__v { display: flex; flex-direction: column; gap: 1px; }
.sticky-call__v small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; }
.sticky-call__v b { font-family: var(--font-mono); font-size: 18px; font-weight: 600; }
.sticky-call__arrow { font-size: 20px; }
@media (max-width: 1000px) {
  .sticky-call { display: flex; }
  /* Hide the floating call bar behind the full-screen menu overlay. */
  body.menu-open .sticky-call { display: none; }
  /* Clearance for the fixed tap-to-call bar lives INSIDE the (dark) footer, so
     the last content never sits under the bar AND no pale body strip shows below
     the footer. (Previously body padding-bottom exposed the light --paper ground
     beneath the dark footer — the "whiteout footer".) */
  .footer { padding-bottom: 92px; }
}
/* Hide-on-scroll header (mobile): tuck the sticky nav away while scrolling DOWN
   so the form/content isn't sandwiched between two sticky bars; reveal on scroll
   up. Desktop keeps the nav always visible (the class is a no-op there). */
.nav { transition: transform 0.32s var(--ease); will-change: transform; }
@media (max-width: 1000px) {
  .nav--tuck { transform: translateY(-100%); }
}

/* =========================================================
   Mobile decompression — give packed blocks room to breathe.
   Phones only; desktop/tablet rhythm is untouched.
   ========================================================= */
@media (max-width: 720px) {
  /* More air between a heading block and its body. */
  .head { margin-bottom: clamp(28px, 7vw, 44px); }
  .head__lede { margin-top: 18px; }

  /* Price spec-sheet rows — more vertical padding + line gap. */
  .price-row { padding: 22px 12px; gap: 8px 16px; }
  .price-row__use { line-height: 1.45; }

  /* Quote option cards — taller, looser, easier to scan. */
  .quote__options { gap: 12px; }
  .quote__option { min-height: 76px; padding: 18px 18px; gap: 7px; }
  .quote__body { gap: 28px; padding: clamp(22px, 6vw, 32px); }

  /* FAQ rows a touch roomier. */
  .faq__q { padding: 22px 0; gap: 16px; }

  /* Contacts lines breathe. */
  .contacts__line { padding: 20px 0; }
}

/* Extra rhythm between sections on phones — the section-pad token bottoms out
   at its 64px floor below ~640px, which reads cramped between bands. Lift it. */
@media (max-width: 720px) {
  :root { --section-pad: clamp(72px, 18vw, 96px); }
}

/* =========================================================
   Scroll reveal — base state fully VISIBLE.
   Only enhanced when JS adds .reveal-ready to <html>.
   ========================================================= */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal-ready .reveal--in { opacity: 1; transform: none; }

/* Staggered reveal — the container itself stays put; its direct children enter
   in sequence (a spec sheet printing row by row). Same JS gate + reduced-motion
   fallback as .reveal. Placed after .reveal so it wins the cascade. */
.reveal-ready .reveal-stagger { opacity: 1; transform: none; }
.reveal-ready .reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal-ready .reveal-stagger.reveal--in > * { opacity: 1; transform: none; }
.reveal-ready .reveal-stagger.reveal--in > *:nth-child(1)  { transition-delay: 0ms; }
.reveal-ready .reveal-stagger.reveal--in > *:nth-child(2)  { transition-delay: 50ms; }
.reveal-ready .reveal-stagger.reveal--in > *:nth-child(3)  { transition-delay: 100ms; }
.reveal-ready .reveal-stagger.reveal--in > *:nth-child(4)  { transition-delay: 150ms; }
.reveal-ready .reveal-stagger.reveal--in > *:nth-child(5)  { transition-delay: 200ms; }
.reveal-ready .reveal-stagger.reveal--in > *:nth-child(6)  { transition-delay: 250ms; }
.reveal-ready .reveal-stagger.reveal--in > *:nth-child(7)  { transition-delay: 300ms; }
.reveal-ready .reveal-stagger.reveal--in > *:nth-child(8)  { transition-delay: 340ms; }
.reveal-ready .reveal-stagger.reveal--in > *:nth-child(9)  { transition-delay: 380ms; }
.reveal-ready .reveal-stagger.reveal--in > *:nth-child(10) { transition-delay: 420ms; }
.reveal-ready .reveal-stagger.reveal--in > *:nth-child(n+11) { transition-delay: 460ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal { opacity: 1; transform: none; transition: opacity 0.3s; }
  .reveal-ready .reveal--in { opacity: 1; transform: none; }
  .reveal-ready .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Utility
   ========================================================= */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.hint {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--ink-3);
}
.field__error {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--rust-on-dark);
}
.field__req { color: var(--rust-on-dark); }
.field__opt { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.quote__body .field__opt { color: var(--on-dark-3); }
