/* ==========================================================================
   АЛЬБИОН — фабрика кухонь в Туле
   Премиальный минимализм. Цифровая экскурсия по производству.
   Вдохновение: Apple, Linear, Stripe. Журнал, а не реклама.
   ========================================================================== */

/* ---- Font: Manrope (self-hosted variable, Cyrillic + Latin) ---- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}

/* ==========================================================================
   TOKENS
   ========================================================================== */
:root {
  /* palette — pure white base, warm near-black ink, whisper of brand taupe */
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f6f5f2;
  --bg-deep: #14110d;       /* warm near-black for the one dark moment (final) */
  --ink: #16130f;           /* primary text */
  --ink-strong: #100d0a;
  --muted: #6c655c;         /* secondary text */
  --faint: #726c64;         /* tertiary / captions (AA on white + soft) */
  --line: rgba(22, 19, 15, 0.10);
  --line-soft: rgba(22, 19, 15, 0.06);
  --taupe: #b9aba2;         /* brand mark */
  --taupe-deep: #9a897c;
  --taupe-num: #7c6a58;     /* small numeric labels, AA on white */
  --gold: #b79b73;          /* review stars only, muted */
  --brand: #e8920c;         /* фирменный оранжевый, акцентные кнопки */
  --brand-hover: #d0820a;
  --accent: #17130e;        /* buttons */
  --accent-hover: #2c2620;
  --on-accent: #f7f4ee;

  /* radii — interactive = 10, media = 16, pill for chips */
  --r-ui: 10px;
  --r-media: 16px;
  --r-pill: 999px;

  /* layout */
  --maxw: 1400px;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3.75rem);
  --nav-h: 72px;

  /* fluid type scale */
  --fs-micro: 0.75rem;
  --fs-small: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --fs-body: clamp(1.02rem, 0.97rem + 0.28vw, 1.2rem);
  --fs-lead: clamp(1.18rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-h3: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.7vw, 3.6rem);
  --fs-h1: clamp(2.35rem, 1.5rem + 3.5vw, 4.4rem);
  --fs-display: clamp(2.1rem, 1.2rem + 3.9vw, 4.2rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.5s;
}

/* ==========================================================================
   RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 14px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-weight: 420;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.024em;
  color: var(--ink-strong);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 580; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 540; letter-spacing: -0.02em; }

p { text-wrap: pretty; }

/* ==========================================================================
   LAYOUT PRIMITIVES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(3.25rem, 2rem + 3.6vw, 5.5rem); }
.section--tight { padding-block: clamp(2.5rem, 1.75rem + 2.4vw, 4rem); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.42;
  color: var(--ink);
  font-weight: 440;
  letter-spacing: -0.014em;
  max-width: 40ch;
}
.muted { color: var(--muted); }
.measure { max-width: 62ch; }

/* section intro (used sparingly, eyebrow rationed) */
.eyebrow {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--taupe-deep);
  font-weight: 600;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.6em;
  border-radius: var(--r-ui);
  font-size: var(--fs-small);
  font-weight: 560;
  letter-spacing: 0.005em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.3s var(--ease),
              border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px rgba(22,19,15,0.28); }
.btn:active { transform: translateY(1px); }

/* quiet text CTA (used after strong blocks) */
.cta-text {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: var(--fs-small);
  font-weight: 540;
  color: var(--ink);
  padding-bottom: 3px;
  box-shadow: inset 0 -1px 0 var(--line);
  transition: box-shadow 0.3s var(--ease), gap 0.3s var(--ease), color 0.3s var(--ease);
}
.cta-text svg { width: 1em; height: 1em; transition: transform 0.3s var(--ease); }
.cta-text:hover { box-shadow: inset 0 -1px 0 rgba(22,19,15,0.45); gap: 0.75em; }
.cta-text:hover svg { transform: translateX(3px); }

/* ==========================================================================
   NAV
   ========================================================================== */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.site-nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav-inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark { width: 26px; height: 24px; flex: none; }
.brand__mark path { stroke: var(--taupe-deep); }
.brand__word {
  font-size: 1.02rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-strong); padding-left: 0.08em;
}
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav-links a {
  font-size: var(--fs-small); font-weight: 480; color: var(--muted);
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 1.1rem; }
.nav-phone {
  font-size: var(--fs-small); font-weight: 540; color: var(--ink);
  white-space: nowrap;
}
.nav-menu-phone { display: none; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: var(--r-ui);
  align-items: center; justify-content: center; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line); transition: background 0.2s var(--ease);
}
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.site-nav.menu-open .nav-toggle .icon-menu { display: none; }
.site-nav.menu-open .nav-toggle .icon-close { display: block; }

/* skip link */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  transform: translateY(-160%);
  background: var(--accent); color: var(--on-accent);
  padding: 0.7em 1.1em; border-radius: var(--r-ui);
  font-size: var(--fs-small); font-weight: 560;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    padding: 0.5rem var(--gutter) 1.5rem;
    border-top: 1px solid var(--line);
    box-shadow: 0 26px 44px -30px rgba(22, 19, 15, 0.45);
  }
  .site-nav.menu-open .nav-links a {
    padding: 0.95rem 0; font-size: 1.05rem; color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
  }
  .site-nav.menu-open .nav-links a:last-child { border-bottom: none; }
  .nav-menu-phone { display: block; color: var(--taupe-deep); font-weight: 560; }
}
@media (max-width: 560px) {
  .brand__word { letter-spacing: 0.2em; font-size: 0.9rem; }
  .nav-actions .btn { padding: 0.72em 1.05em; font-size: 0.8rem; }
}
@media (max-width: 380px) {
  .brand__mark { display: none; }
  .nav-actions .btn { padding: 0.7em 0.9em; }
}

/* ==========================================================================
   VERTICAL VIDEO (shared media, sound control, hint)
   ========================================================================== */
.vmedia video, .vmedia__inner video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* sound / play control shared by all vertical videos */
.vsound {
  position: absolute; z-index: 3; right: 12px; bottom: 12px;
  width: 42px; height: 42px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: rgba(20, 17, 13, 0.5);
  color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.vsound:hover { background: rgba(20, 17, 13, 0.72); }
.vsound svg { width: 20px; height: 20px; }
.vsound .icon-on { display: none; }
.is-unmuted .vsound .icon-on { display: block; }
.is-unmuted .vsound .icon-off { display: none; }

.vhint {
  position: absolute; z-index: 3; left: 12px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.5em 0.85em; border-radius: var(--r-pill);
  background: rgba(20, 17, 13, 0.8);
  color: #fff; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.01em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.4s var(--ease);
}
.vhint svg { width: 14px; height: 14px; }
.is-unmuted .vhint { opacity: 0; pointer-events: none; }
.bleed .cta-text { margin-top: 1.8rem; color: #f4f0ea; box-shadow: inset 0 -1px 0 rgba(255,255,255,0.35); }
.bleed .cta-text:hover { box-shadow: inset 0 -1px 0 rgba(255,255,255,0.7); }

/* ==========================================================================
   FEATURE VERTICAL VIDEO ("вы когда-нибудь задумывались…")
   ========================================================================== */
.feature { background: var(--bg-soft); }
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: clamp(2rem, 1rem + 5vw, 6rem);
  align-items: center;
}
.feature-copy h2 { margin-bottom: 1.3rem; }
.feature-copy .lead { margin-bottom: 2rem; }
.vmedia {
  position: relative; aspect-ratio: 9 / 16; width: 100%;
  max-width: 420px; margin-inline: auto;
  border-radius: var(--r-media); overflow: hidden; background: #e7e3dd;
  box-shadow: 0 40px 80px -50px rgba(22,19,15,0.55);
}
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-copy { order: 1; }
  .feature-media { order: 2; }
  .vmedia { max-width: 360px; }
}

/* ==========================================================================
   STORIES RIBBON (horizontal 9:16)
   ========================================================================== */
.stories-head { margin-bottom: clamp(1.6rem, 3vw, 2.5rem); }
.stories-scroll {
  display: flex; gap: clamp(0.9rem, 1.5vw, 1.4rem);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: var(--gutter);
  padding-bottom: 1rem;
  margin-inline: calc(-1 * var(--gutter));
  scrollbar-width: none;
  cursor: grab;
}
.stories-scroll::-webkit-scrollbar { display: none; }
.stories-scroll.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.stories-scroll::before, .stories-scroll::after { content: ""; flex: 0 0 max(0px, calc((100vw - var(--maxw)) / 2)); }
.story {
  position: relative; flex: 0 0 auto;
  width: clamp(220px, 62vw, 300px);
  aspect-ratio: 9/16;
  border-radius: var(--r-media); overflow: hidden;
  background: #e7e3dd; scroll-snap-align: center;
  box-shadow: 0 30px 60px -45px rgba(22,19,15,0.5);
}
.story::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(to top, rgba(15,12,9,0.62), rgba(15,12,9,0));
  pointer-events: none; z-index: 1;
}
.story__cap {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  color: #fff; font-size: 0.8rem; font-weight: 540; letter-spacing: 0.01em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
  padding-right: 52px;
}

/* ==========================================================================
   TESTIMONIALS (two large vertical videos)
   ========================================================================== */
.testi-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); max-width: 56rem; }
.testi-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.75rem);
  max-width: 940px; margin-inline: auto;
}
.testi { }
.testi .vmedia { max-width: 100%; margin-bottom: 1.1rem; }
.testi figcaption { }
.testi .t-name { font-weight: 600; color: var(--ink-strong); font-size: 1.02rem; }
.testi .t-meta { color: var(--muted); font-size: var(--fs-small); margin-top: 0.25rem; }
@media (max-width: 620px) {
  .testi-grid { grid-template-columns: 1fr; max-width: 380px; gap: 2.5rem; }
}

/* ==========================================================================
   YANDEX REVIEWS
   ========================================================================== */
.reviews { background: var(--bg-soft); overflow: hidden; }
.reviews-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(1.8rem, 3.5vw, 3rem);
}
.rating { display: flex; align-items: center; gap: 1rem; }
.rating__num { font-size: clamp(2.6rem, 1.5rem + 3vw, 3.8rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--ink-strong); }
.rating__stars { display: flex; gap: 3px; color: var(--gold); }
.rating__stars svg { width: 18px; height: 18px; }
.rating__meta { font-size: var(--fs-small); color: var(--muted); margin-top: 0.3rem; }
.rating__yx { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; color: var(--ink); }
.rating__yx .yx { width: 20px; height: 20px; border-radius: 5px; background: #fc3f1d; color:#fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }

.reviews-scroll {
  display: flex; gap: clamp(0.9rem, 1.5vw, 1.4rem);
  overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 1rem; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  cursor: grab;
}
.reviews-scroll::-webkit-scrollbar { display: none; }
.reviews-scroll.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rev-card {
  flex: 0 0 auto; width: clamp(280px, 78vw, 380px);
  background: var(--white); border-radius: var(--r-media);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 0.9rem;
}
.rev-card__top { display: flex; align-items: center; gap: 0.8rem; }
.rev-card__ava { width: 42px; height: 42px; border-radius: var(--r-pill); background: var(--bg-soft); display: grid; place-items: center; font-weight: 600; color: var(--taupe-deep); box-shadow: inset 0 0 0 1px var(--line); }
.rev-card__name { font-weight: 600; color: var(--ink-strong); font-size: 0.98rem; }
.rev-card__date { font-size: 0.78rem; color: var(--faint); }
.rev-card__stars { display: flex; gap: 2px; color: var(--gold); }
.rev-card__stars svg { width: 15px; height: 15px; }
.rev-card p { color: var(--ink); font-size: var(--fs-small); line-height: 1.55; }

/* ==========================================================================
   PROCESS TIMELINE
   ========================================================================== */
.flow { }
.flow-head { margin-bottom: clamp(2.2rem, 4vw, 3.5rem); max-width: 26ch; }
.flow-steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1.5rem);
  counter-reset: step;
}
.flow-step {
  position: relative; padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.flow-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 1rem; left: 0;
  font-size: 0.78rem; font-weight: 600; color: var(--taupe-num);
  font-variant-numeric: tabular-nums; letter-spacing: 0.05em;
}
.flow-step h3 { font-size: var(--fs-h3); font-weight: 520; }
.flow-step p { color: var(--muted); font-size: var(--fs-small); margin-top: 0.5rem; }
@media (max-width: 820px) {
  .flow-steps { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.5rem; }
}
@media (max-width: 480px) {
  .flow-steps { grid-template-columns: 1fr; }
  .flow-step { padding-top: 1.4rem; }
  .flow-step::before { top: 0.5rem; }
}

/* ==========================================================================
   FINAL — dark, image bg, form overlay
   ========================================================================== */
.final {
  position: relative; overflow: hidden;
  background: var(--bg-deep);
  color: #f4f0ea;
}
.final__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.5;
}
.final::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15,12,9,0.86) 0%, rgba(15,12,9,0.64) 46%, rgba(15,12,9,0.35) 100%);
}
.final .container { position: relative; z-index: 2; }
.final-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 1rem + 5vw, 5rem); align-items: center;
}
.final-copy h2 { color: #fbf8f3; max-width: 15ch; margin-bottom: 1.3rem; }
.final-copy .lead { color: rgba(244,240,234,0.86); max-width: 38ch; }
@media (max-width: 820px) { .final-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* form (shared: final + modal) */
.form {
  background: var(--white); color: var(--ink);
  border-radius: var(--r-media);
  padding: clamp(1.6rem, 3vw, 2.5rem);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.5);
}
.form h3 { margin-bottom: 0.5rem; }
.form__sub { color: var(--muted); font-size: var(--fs-small); margin-bottom: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1rem; }
.field label { font-size: 0.82rem; font-weight: 540; color: var(--ink); }
.field input {
  padding: 0.85em 1em; border-radius: var(--r-ui);
  border: none; -webkit-appearance: none; appearance: none;
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--accent); }
.field.invalid input { box-shadow: inset 0 0 0 1.5px #c0473a; }
.field .err { font-size: 0.76rem; color: #c0473a; display: none; }
.field.invalid .err { display: block; }
.form .btn--primary { width: 100%; justify-content: center; margin-top: 0.4rem; padding-block: 1.05em; }
.form__foot { margin-top: 1rem; font-size: 0.78rem; color: var(--muted); text-align: center; }
.form__foot a { color: var(--ink); box-shadow: inset 0 -1px 0 var(--line); }
.form__success { display: none; text-align: center; padding: 1rem 0; }
.form.is-sent .form__success { display: block; }
.form.is-sent .form__body { display: none; }
.form__success .ok {
  width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: var(--r-pill);
  background: var(--bg-soft); color: var(--taupe-deep); display: grid; place-items: center;
}
.form__success .ok svg { width: 26px; height: 26px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer-top {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 1.5rem + 5vw, 6.5rem); align-items: start;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}
.footer-logo { width: 168px; height: auto; margin-bottom: 1.7rem; }
.footer-tagline {
  color: var(--muted); font-size: var(--fs-lead); line-height: 1.5;
  max-width: 32ch; margin-bottom: 2.1rem; letter-spacing: -0.01em;
}
.footer-cta { display: inline-flex; }
.footer-contacts { display: flex; flex-direction: column; gap: 1.9rem; }
.footer-phone {
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.75rem); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1; color: var(--ink-strong);
  transition: color 0.2s var(--ease);
}
.footer-phone:hover { color: var(--taupe-deep); }
.footer-dl { display: grid; gap: 1.35rem; }
.finfo { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.9rem; align-items: start; }
.finfo svg { width: 18px; height: 18px; color: var(--taupe-deep); margin-top: 3px; }
.finfo dt { font-size: 0.76rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.2rem; }
.finfo dd { font-size: var(--fs-small); color: var(--ink); font-weight: 480; }
.finfo dd a:hover { color: var(--taupe-deep); }
.footer-social { display: flex; gap: 0.7rem; margin-top: 0.2rem; }
.footer-social a {
  width: 44px; height: 44px; border-radius: var(--r-ui);
  display: grid; place-items: center; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.footer-social a:hover { background: var(--accent); color: var(--on-accent); }
.footer-social svg { width: 20px; height: 20px; }

/* full-bleed Yandex map */
.footer-map--full {
  position: relative; width: 100%;
  height: clamp(360px, 40vw, 520px);
  background: #e9e6e1; border-top: 1px solid var(--line);
}
.footer-map--full iframe { width: 100%; height: 100%; border: 0; display: block; }
.footer-map__open {
  position: absolute; left: clamp(1rem, 3vw, 2.25rem); bottom: clamp(1rem, 3vw, 2.25rem);
  display: inline-flex; align-items: center; gap: 0.5em; z-index: 2;
  background: var(--white); color: var(--ink);
  font-size: var(--fs-small); font-weight: 560;
  padding: 0.72em 1.15em; border-radius: var(--r-pill);
  box-shadow: 0 14px 34px -14px rgba(22, 19, 15, 0.5), inset 0 0 0 1px var(--line-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.footer-map__open:hover { background: var(--accent); color: var(--on-accent); }
.footer-map__open svg { width: 15px; height: 15px; color: var(--taupe-deep); }
.footer-map__open:hover svg { color: currentColor; }

.footer-legal { border-top: 1px solid var(--line); }
.footer-legal > .container {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.5rem; font-size: 0.78rem; color: var(--faint);
}
.footer-legal a:hover { color: var(--taupe-deep); }

@media (max-width: 780px) {
  .footer-top { grid-template-columns: 1fr; gap: 2.75rem; padding-block: 3rem; }
  .footer-map--full { height: clamp(300px, 72vw, 440px); }
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal {
  border: none; padding: 0; background: transparent;
  max-width: 460px; width: calc(100% - 2rem);
  margin: auto;
}
.modal::backdrop { background: rgba(18, 15, 11, 0.55); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in 0.4s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal .form { position: relative; }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  width: 36px; height: 36px; border-radius: var(--r-pill);
  display: grid; place-items: center; color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.modal__close:hover { background: var(--bg-soft); color: var(--ink); }
.modal__close svg { width: 18px; height: 18px; }

/* video lightbox (gallery -> review) */
.lightbox { border: none; padding: 0; background: transparent; max-width: 400px; width: calc(100% - 2rem); margin: auto; }
.lightbox::backdrop { background: rgba(14, 11, 8, 0.82); backdrop-filter: blur(6px); }
.lightbox[open] { animation: modal-in 0.4s var(--ease); }
.lightbox .vmedia { max-width: 100%; box-shadow: 0 40px 90px -30px rgba(0,0,0,0.7); }
.lightbox__close {
  position: absolute; top: -46px; right: 0;
  width: 38px; height: 38px; border-radius: var(--r-pill);
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,0.14);
}
.lightbox__wrap { position: relative; }

/* ==========================================================================
   SCROLL REVEAL (JS-gated so no-JS shows everything)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.06s; }
.js .reveal.d2 { transition-delay: 0.12s; }
.js .reveal.d3 { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .modal[open], .lightbox[open] { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ==========================================================================
   BACKGROUND ENRICHMENT — subtle film grain + a whisper of warm depth
   ========================================================================== */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  opacity: 0.05; mix-blend-mode: multiply;
}
.bg-soft-block { background: var(--bg-soft); }

/* ==========================================================================
   BESPOKE VIDEO SCRUBBER (injected into every [data-video])
   ========================================================================== */
[data-video] .vsound { bottom: 24px; }
[data-video] .vhint { bottom: 28px; }
.story .story__cap { bottom: 28px; }

.vscrub {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  height: 22px; display: flex; align-items: flex-end;
  padding: 0 14px 9px; touch-action: none; cursor: pointer;
}
.vscrub__track {
  position: relative; width: 100%; height: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.22);
  transition: height 0.22s var(--ease);
}
.vscrub:hover .vscrub__track, .vscrub.is-scrubbing .vscrub__track { height: 5px; }
.vscrub__fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  background: #fff; border-radius: 999px;
}
.vscrub__handle {
  position: absolute; top: 50%; left: 0%;
  width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 7px rgba(0, 0, 0, 0.45);
  transform: translateY(-50%) scale(0);
  transition: transform 0.18s var(--ease);
}
.vscrub:hover .vscrub__handle, .vscrub.is-scrubbing .vscrub__handle { transform: translateY(-50%) scale(1); }
.vscrub__time {
  position: absolute; bottom: 15px; left: 0; transform: translateX(-50%);
  background: rgba(20, 17, 13, 0.86); color: #fff;
  font-size: 0.7rem; font-weight: 560; letter-spacing: 0.01em;
  padding: 0.25em 0.5em; border-radius: 6px; white-space: nowrap;
  opacity: 0; transition: opacity 0.15s var(--ease);
  font-variant-numeric: tabular-nums; backdrop-filter: blur(4px);
}
.vscrub.is-scrubbing .vscrub__time { opacity: 1; }

/* ==========================================================================
   FLIP-BOOK CATALOG
   ========================================================================== */
.catalog { background: var(--bg-soft); }

/* ==========================================================================
   GUARANTEES STRIP
   ========================================================================== */
.guar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.guar { padding: clamp(1.3rem, 2.4vw, 1.9rem); border-radius: var(--r-media); background: var(--bg-soft); display: flex; flex-direction: column; gap: 0.6rem; }
.guar__ic { width: 30px; height: 30px; color: var(--taupe-deep); }
.guar__ic svg { width: 100%; height: 100%; }
.guar b { font-weight: 600; color: var(--ink-strong); font-size: 1.02rem; }
.guar p { color: var(--muted); font-size: var(--fs-small); line-height: 1.5; }
@media (max-width: 820px) { .guar-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .guar-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   QUIZ / CALCULATOR
   ========================================================================== */
.quiz { position: relative; overflow: hidden; background: var(--bg-soft); color: var(--ink); }
.quiz::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 15% 0%, rgba(185,171,162,0.10), transparent 60%),
              radial-gradient(90% 70% at 100% 100%, rgba(185,171,162,0.08), transparent 55%);
}
.quiz .container { position: relative; z-index: 2; }
.quiz-head { text-align: center; max-width: 46ch; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.quiz-head h2 { color: #fbf8f3; margin-bottom: 0.9rem; }
.quiz-head p { color: rgba(244, 240, 234, 0.82); }
.quiz-card { max-width: 1080px; margin-inline: auto; background: var(--white); color: var(--ink); border-radius: var(--r-media); padding: clamp(1.5rem, 3vw, 2.75rem); box-shadow: 0 50px 110px -50px rgba(0, 0, 0, 0.6); }
.quiz-progress { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.8rem; }
.quiz-progress__track { flex: 1; height: 4px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.quiz-progress__fill { height: 100%; width: 0%; background: var(--accent); border-radius: 999px; transition: width 0.4s var(--ease); }
.quiz-progress__label { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.quiz-step { display: none; }
.quiz-step.is-active { display: block; animation: quiz-in 0.4s var(--ease); }
@keyframes quiz-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.quiz-step h3 { font-size: var(--fs-h3); margin-bottom: 0.4rem; }
.quiz-step h3:focus { outline: none; }
.quiz-step__hint { color: var(--muted); font-size: var(--fs-small); margin-bottom: 1.5rem; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.quiz-opts.cols-4 { grid-template-columns: repeat(4, 1fr); }
.quiz-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; text-align: left; padding: 1.1rem 1.2rem; border-radius: var(--r-ui); background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line-soft); font-weight: 520; color: var(--ink); transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease), transform 0.15s var(--ease); }
.quiz-opt:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(22, 19, 15, 0.22); }
.quiz-opt:active { transform: translateY(1px); }
.quiz-opt.is-picked { box-shadow: inset 0 0 0 2px var(--accent); background: #fff; }
.quiz-opt__ic { width: 40px; height: 30px; color: var(--taupe-deep); }
.quiz-opt__ic svg { width: 100%; height: 100%; }
.quiz-opt.is-picked .quiz-opt__ic { color: var(--accent); }
.quiz-opt span { font-size: var(--fs-small); }
@media (max-width: 620px) { .quiz-opts, .quiz-opts.cols-4 { grid-template-columns: 1fr 1fr; } }
.quiz-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; }
.quiz-back { font-size: var(--fs-small); color: var(--muted); font-weight: 520; display: inline-flex; align-items: center; gap: 0.4em; }
.quiz-back svg { width: 16px; height: 16px; }
.quiz-back:hover { color: var(--ink); }
.quiz-back[hidden] { visibility: hidden; }
.quiz-result { text-align: center; }
.quiz-result__cap { font-size: var(--fs-small); color: var(--muted); }
.quiz-result__range { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); font-weight: 620; letter-spacing: -0.03em; color: var(--ink-strong); line-height: 1.05; margin: 0.5rem 0 0.4rem; }
.quiz-result__note { color: var(--muted); font-size: var(--fs-small); max-width: 42ch; margin: 0 auto 1.6rem; }
.quiz-result .field { text-align: left; }
.quiz-result .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.quiz-result .btn--primary { width: 100%; justify-content: center; margin-top: 0.4rem; padding-block: 1.05em; }
.quiz-result__foot { margin-top: 0.9rem; font-size: 0.78rem; color: var(--muted); }
.quiz-result__foot a { color: var(--ink); box-shadow: inset 0 -1px 0 var(--line); }
.quiz-result__perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.1rem; margin: 1.2rem 0 1.6rem; }
.quiz-result__perks li { list-style: none; display: inline-flex; align-items: center; gap: 0.45em; font-size: var(--fs-small); color: var(--muted); }
.quiz-result__perks svg { width: 16px; height: 16px; color: var(--taupe-deep); }
@media (max-width: 520px) { .quiz-result .form-row { grid-template-columns: 1fr; } }
.quiz-form.is-sent .form__body { display: none; }
.quiz-form.is-sent .form__success { display: block; }

/* form network-error fallback */
.form-neterr { display: none; margin-top: 0.9rem; text-align: center; font-size: 0.82rem; color: #c0473a; }
.form-neterr a { color: inherit; font-weight: 600; box-shadow: inset 0 -1px 0 currentColor; }
.form.has-neterr .form-neterr, .quiz-form.has-neterr .form-neterr { display: block; }

/* ==========================================================================
   OFFER (final, dark)
   ========================================================================== */
.offer { position: relative; overflow: hidden; background: var(--bg-deep); color: #f4f0ea; }
.offer__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.offer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,12,9,0.88), rgba(15,12,9,0.58) 55%, rgba(15,12,9,0.38)); }
.offer .container { position: relative; z-index: 2; }
.offer-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,0.9fr); gap: clamp(2rem,1rem+5vw,5rem); align-items: center; }
.offer-copy h2 { color: #fbf8f3; max-width: 17ch; margin-bottom: 1.3rem; }
.offer-list { display: grid; gap: 0.9rem; margin-top: 1.6rem; }
.offer-list li { list-style: none; display: grid; grid-template-columns: 20px 1fr; gap: 0.8rem; align-items: start; color: rgba(244,240,234,0.92); font-size: var(--fs-small); }
.offer-list svg { width: 18px; height: 18px; color: var(--taupe); margin-top: 2px; }
@media (max-width: 820px) { .offer-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.center-cta { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); }

@media (prefers-reduced-motion: reduce) {
  .quiz-step.is-active { animation: none; }
  .quiz-progress__fill { transition: none; }
  .vscrub__track, .vscrub__handle { transition: none; }
}

/* ==========================================================================
   V2 — image hero, compare block, comparison table, included, geo, file
   ========================================================================== */
.hero2 { position: relative; z-index: 0; padding-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); padding-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
.compare-copy .lead { margin-bottom: 1.8rem; }

/* geo badge (on production reveal) */
.geo-badge { display: inline-flex; align-items: center; gap: 0.5em; background: rgba(255,255,255,0.14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #f4f0ea; border-radius: var(--r-pill); padding: 0.5em 0.95em; font-size: var(--fs-small); font-weight: 520; margin-bottom: 1.3rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.geo-badge svg { width: 16px; height: 16px; }

/* file-attach field */
.filefield { margin-bottom: 1rem; }
.filefield input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.filefield__btn { display: inline-flex; align-items: center; gap: 0.55em; width: 100%; padding: 0.85em 1em; border-radius: var(--r-ui); background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: var(--fs-small); cursor: pointer; transition: box-shadow 0.2s var(--ease), color 0.2s var(--ease); text-align: left; }
.filefield__btn:hover { box-shadow: inset 0 0 0 1px rgba(22,19,15,0.22); }
.filefield input[type="file"]:focus-visible + .filefield__btn { box-shadow: inset 0 0 0 2px var(--accent); }
.filefield__btn svg { width: 17px; height: 17px; flex: none; color: var(--taupe-deep); }
.filefield.has-file .filefield__btn { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(22,19,15,0.28); }
.filefield__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filefield__hint { font-size: 0.76rem; color: var(--faint); margin-top: 0.35rem; }

/* ==========================================================================
   V3 LAYOUT (структура по макету клиента)
   ========================================================================== */
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* --- eyebrow / dotline / big button --- */
.eyebrow {
  display: inline-block; font-size: 0.74rem; font-weight: 650;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--taupe-num);
  margin-bottom: 0.9rem;
}
.eyebrow--dot {
  display: inline-flex; align-items: center; gap: 0.6em;
  background: var(--bg-soft); border-radius: var(--r-pill);
  padding: 0.5em 1.1em; box-shadow: inset 0 0 0 1px var(--line-soft);
}
.eyebrow--dot::before { content:""; width:9px; height:9px; border-radius:50%; background:#5b9c6b; box-shadow:0 0 0 3px rgba(91,156,107,0.18); }
.eyebrow--warm { color: var(--taupe-deep); }
.btn--lg { padding: 1.05em 1.7em; font-size: 1.02rem; }
.dotline {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.15rem;
  font-size: var(--fs-small); color: var(--faint); list-style: none; padding: 0;
}
.dotline li { position: relative; }
.dotline li + li::before { content:"·"; position:absolute; left:-0.85rem; color: var(--taupe); }
.dotline--center { justify-content: center; }
.dotline--end { justify-content: flex-end; }

/* --- NAV additions --- */
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__sub { font-size: 0.68rem; color: var(--faint); letter-spacing: 0.02em; font-weight: 460; margin-top: 2px; }
.nav-yx {
  display: inline-flex; align-items: center; gap: 0.45em; margin-left: 0.4rem;
  padding: 0.45em 0.85em; border-radius: var(--r-pill); font-size: 0.82rem; font-weight: 560;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.2s var(--ease);
}
.nav-yx:hover { box-shadow: inset 0 0 0 1px rgba(22,19,15,0.24); }
.nav-yx b { font-weight: 700; }
.nav-yx__star { width: 14px; height: 14px; color: var(--gold); }
.nav-call { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.nav-call__label { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #5b9c6b; box-shadow: 0 0 0 3px rgba(91,156,107,0.2); }
@media (prefers-reduced-motion: no-preference) { .live-dot { animation: pulse 2.4s var(--ease) infinite; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(91,156,107,0.2); } 50% { box-shadow: 0 0 0 6px rgba(91,156,107,0.06); } }

@media (max-width: 860px) { .nav-call__label { display: none; } }

/* --- HERO v3 --- */
.hero3 { padding-top: clamp(2rem, 1rem + 3vw, 4rem); padding-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.hero3-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero3__copy h1 { max-width: 15ch; margin-bottom: 1.25rem; }
.hero3__copy h1 em { font-style: normal; color: var(--taupe-deep); }
.hero3__sub { color: var(--muted); max-width: 40ch; margin-bottom: 1.9rem; }
.hero3__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero3__media { display: flex; flex-direction: column; gap: 0.9rem; }
.hero3__shot { position: relative; margin: 0; border-radius: var(--r-media); overflow: hidden; background: #eeece7; box-shadow: 0 50px 100px -60px rgba(22,19,15,0.55); }
.hero3__shot img { width: 100%; height: auto; display: block; }
.hero3__person {
  position: absolute; left: clamp(0.7rem, 2vw, 1.2rem); bottom: clamp(0.7rem, 2vw, 1.2rem);
  display: flex; flex-direction: column; gap: 2px;
  background: var(--white); border-radius: var(--r-ui); padding: 0.7em 1.05em;
  box-shadow: 0 14px 34px -16px rgba(22,19,15,0.5);
}
.hero3__person b { font-size: 0.92rem; color: var(--ink-strong); font-weight: 620; }
.hero3__person span { font-size: 0.78rem; color: var(--faint); }
.hero3__video {
  display: inline-flex; align-items: center; gap: 0.7em; align-self: flex-start;
  padding: 0.7em 1.2em 0.7em 0.7em; border-radius: var(--r-pill);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--fs-small); font-weight: 540; color: var(--ink);
  transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.hero3__video:hover { background: var(--bg-soft); box-shadow: inset 0 0 0 1px rgba(22,19,15,0.22); }
.hero3__video-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); flex: none; }
.hero3__video-ic svg { width: 13px; height: 13px; margin-left: 1px; }
@media (max-width: 960px) {
  .hero3-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero3__copy h1 { max-width: none; }
}

/* --- TICKER --- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-soft); padding: 0.85rem 0; }
.ticker__row { display: flex; width: max-content; }
.ticker__set { display: inline-flex; align-items: center; white-space: nowrap; }
.ticker__set b {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--taupe-num);
}
.ticker__set i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--taupe); margin: 0 1.5rem; }
@media (prefers-reduced-motion: no-preference) { .ticker__row { animation: tick 42s linear infinite; } }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- USP CARDS --- */
.usp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.8rem, 1.5vw, 1.4rem); }
.usp__card { background: var(--white); border-radius: var(--r-media); padding: clamp(1.3rem, 2vw, 1.8rem); box-shadow: inset 0 0 0 1px var(--line); }
.usp__ic { width: 34px; height: 34px; color: var(--taupe-deep); margin-bottom: 1.1rem; }
.usp__card h3 { font-size: 1.06rem; font-weight: 620; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.usp__card p { font-size: var(--fs-small); color: var(--muted); line-height: 1.55; }
.usp__note { text-align: center; margin-top: clamp(1.4rem, 3vw, 2.2rem); color: var(--taupe-deep); font-size: var(--fs-small); font-weight: 520; }
@media (max-width: 900px) { .usp { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .usp { grid-template-columns: 1fr; } }

/* --- CALC HEAD + CHIPS --- */
.calc-head { text-align: center; max-width: 62ch; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.calc-head h2 { margin-bottom: 0.9rem; }
.calc-head .lead { margin-inline: auto; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.6rem; margin-top: 1.5rem; padding: 0.85rem 1.4rem; list-style: none; background: var(--bg-soft); border-radius: var(--r-pill); width: fit-content; margin-inline: auto; }
.chips li { display: inline-flex; align-items: center; gap: 0.5em; font-size: var(--fs-small); font-weight: 540; color: var(--ink); }
.chips svg { width: 14px; height: 14px; color: var(--taupe-deep); }
.chips__n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #dfe9df; color: #35603f; font-size: 0.74rem; font-weight: 700; }

/* --- QUIZ: style cards + tiers --- */
.quiz-opts.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.quiz-opt--img { flex-direction: column; align-items: stretch; text-align: center; padding: 0.65rem 0.65rem 1rem; gap: 0.55rem; }
.quiz-opt--img img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 55%; border-radius: 10px; background: #eeece7; }
.quiz-opt__t { font-weight: 600; font-size: 0.92rem; line-height: 1.3; color: var(--ink-strong); }
.quiz-opt__d { font-size: 0.76rem; color: var(--faint); line-height: 1.4; }
.quiz-opt--plain { justify-content: center; }
.quiz-opt__ic--lg { width: 100%; aspect-ratio: 1 / 1; display: grid; place-items: center; border-radius: 10px; background: var(--bg-soft); }
.quiz-opt__ic--lg svg { width: 40px; height: 40px; color: var(--taupe-deep); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin: 1.4rem 0 0.4rem; }
.tier { background: var(--bg-soft); border-radius: var(--r-ui); padding: 0.85rem 0.7rem; text-align: center; }
.tier span { display: block; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.3rem; }
.tier b { font-size: 0.98rem; font-weight: 650; color: var(--ink-strong); }
.tier--mid { background: var(--accent); }
.tier--mid span { color: rgba(244,240,234,0.72); }
.tier--mid b { color: var(--on-accent); }
@media (max-width: 900px) { .quiz-opts.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .quiz-opts.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiers { grid-template-columns: 1fr; } }

/* --- BEFORE / AFTER --- */
.ba-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.ba { position: relative; border-radius: var(--r-media); overflow: hidden; background: #eeece7; touch-action: pan-y; user-select: none; cursor: ew-resize; box-shadow: 0 44px 90px -60px rgba(22,19,15,0.55); }
.ba__pane { position: relative; }
.ba__pane img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; display: block; }
.ba__pane--before { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.ba__tag { position: absolute; top: 0.9rem; background: var(--white); color: var(--ink); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.4em 0.85em; border-radius: var(--r-pill); box-shadow: 0 8px 20px -10px rgba(0,0,0,0.4); }
.ba__tag--l { left: 0.9rem; }
.ba__tag--r { right: 0.9rem; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(255,255,255,0.9); transform: translateX(-1px); pointer-events: none; }
.ba__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--white); color: var(--ink);
  display: grid; grid-auto-flow: column; place-items: center; gap: 1px;
  box-shadow: 0 10px 26px -10px rgba(0,0,0,0.5); pointer-events: auto; cursor: ew-resize;
}
.ba__grip svg { width: 15px; height: 15px; }
.ba.is-dragging .ba__grip { transform: translate(-50%, -50%) scale(0.94); }
.ba-copy h2 { margin-bottom: 1.2rem; }
.ba-copy p { color: var(--muted); margin-bottom: 1rem; max-width: 46ch; }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.stats3 dt { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.1rem); font-weight: 620; letter-spacing: -0.03em; color: var(--ink-strong); line-height: 1.05; }
.stats3 dd { margin: 0.35rem 0 0; font-size: var(--fs-small); color: var(--muted); line-height: 1.4; }
.stats3 > div + div { padding-left: 1.2rem; border-left: 1px solid var(--line); }
@media (max-width: 900px) { .ba-grid { grid-template-columns: 1fr; gap: 2rem; } }
@media (max-width: 520px) { .stats3 { grid-template-columns: 1fr; } .stats3 > div + div { padding-left: 0; border-left: none; padding-top: 1rem; border-top: 1px solid var(--line-soft); } }

/* --- CTA BAR --- */
.cta-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem clamp(1.5rem, 3vw, 3rem); align-items: center; margin-top: clamp(2rem, 4vw, 3.2rem); padding: clamp(1.3rem, 2.5vw, 2rem); border-radius: var(--r-media); background: var(--bg-soft); }
.cta-bar__q { font-size: 1.06rem; font-weight: 560; color: var(--ink-strong); line-height: 1.4; letter-spacing: -0.01em; }
.cta-bar__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.cta-bar .dotline { grid-column: 1 / -1; margin-top: 0; }
.cta-bar .btn--ghost { background: var(--white); }
.cta-bar .btn svg { width: 15px; height: 15px; }
@media (max-width: 860px) { .cta-bar { grid-template-columns: 1fr; } .cta-bar .dotline { justify-content: flex-start; } }

/* --- PLANS / DRAWINGS --- */
.plans { background: var(--bg-soft); }
.plans-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.plans-copy h2 { margin-bottom: 1.3rem; }
.plans-copy p { color: var(--muted); margin-bottom: 0.9rem; max-width: 50ch; }
.plans-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin: 1.8rem 0; }
.plans-card { background: var(--white); border-radius: var(--r-ui); padding: 1.1rem; box-shadow: inset 0 0 0 1px var(--line); }
.plans-card svg { width: 26px; height: 26px; color: var(--taupe-deep); margin-bottom: 0.7rem; }
.plans-card h3 { font-size: 0.95rem; font-weight: 620; letter-spacing: -0.015em; margin-bottom: 0.35rem; }
.plans-card p { font-size: 0.8rem; color: var(--faint); line-height: 1.45; margin: 0; }
.plans-step { font-weight: 520; color: var(--ink); }
.plans-cta-title { margin: 1.6rem 0 0.6rem; }
.plans-copy .btn { margin-top: 1rem; }
.plans-draw { margin: 0; background: var(--white); border-radius: var(--r-media); padding: clamp(1rem, 2vw, 1.6rem); box-shadow: inset 0 0 0 1px var(--line); }
.plans-draw svg { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; } .plans-cards { grid-template-columns: 1fr; } }

/* --- CATALOG SLIDER --- */
.cat-head { text-align: center; max-width: 60ch; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.cat-head h2 { margin-bottom: 0.9rem; }
.cat-head .lead { margin-inline: auto; }
.cat__stage { position: relative; }
.cat__track { border-radius: var(--r-media); background: var(--white); box-shadow: 0 46px 96px -62px rgba(22,19,15,0.5), inset 0 0 0 1px var(--line-soft); overflow: hidden; }
.cat__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cat-card { display: none; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); gap: clamp(1.2rem, 2.5vw, 2.4rem); padding: clamp(1.2rem, 2.5vw, 2.2rem); }
.cat-card.is-active { display: grid; }
.cat-card__gal { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; align-content: start; }
.cat-card__gal--1 .cat-shot { grid-column: 1 / -1; }
.cat-card__gal--3 .cat-shot:first-child { grid-column: 1 / -1; }
.cat-card__gal--1 .cat-shot img,
.cat-card__gal--3 .cat-shot:first-child img { aspect-ratio: 16 / 10; }
.cat-shot { margin: 0; border-radius: 12px; overflow: hidden; background: #eeece7; }
.cat-shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; display: block; }
.cat-card__info { min-width: 0; display: flex; flex-direction: column; }
.cat-card__no { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--taupe-num); margin-bottom: 0.7rem; }
.cat-card__tag { display: inline-block; background: #efe6db; color: #6d5540; font-size: 0.78rem; font-weight: 560; padding: 0.35em 0.9em; border-radius: var(--r-pill); }
.cat-card__title { font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); font-weight: 620; letter-spacing: -0.025em; margin: 0.8rem 0 0.5rem; }
.cat-card__meta { font-size: var(--fs-small); font-weight: 540; color: var(--taupe-deep); margin-bottom: 0.8rem; }
.cat-card__desc { font-size: var(--fs-small); color: var(--muted); line-height: 1.55; margin-bottom: 1.1rem; }
.cat-spec { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.cat-spec tr { border-top: 1px solid var(--line-soft); }
.cat-spec tr:first-child { border-top: none; }
.cat-spec th { text-align: left; font-weight: 600; color: var(--ink-strong); padding: 0.5rem 0.9rem 0.5rem 0; vertical-align: top; white-space: nowrap; width: 1%; }
.cat-spec td { color: var(--muted); padding: 0.5rem 0; vertical-align: top; line-height: 1.45; }
.cat-card__foot { display: grid; grid-template-columns: 1fr auto; gap: 1rem; margin-top: auto; padding: 1rem 1.1rem; border-radius: var(--r-ui); background: var(--bg-soft); }
.cat-card__foot span { display: block; font-size: 0.74rem; color: var(--faint); margin-bottom: 0.25rem; }
.cat-card__foot b { font-size: 1.12rem; font-weight: 700; color: var(--ink-strong); letter-spacing: -0.02em; }
.cat__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 46px; height: 46px; border-radius: var(--r-pill); display: grid; place-items: center; color: var(--ink);
  background: var(--white); box-shadow: 0 12px 30px -12px rgba(0,0,0,0.45), inset 0 0 0 1px var(--line-soft);
  transition: background 0.2s var(--ease), opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.cat__nav:hover { background: var(--bg-soft); }
.cat__nav:active { transform: translateY(-50%) scale(0.94); }
.cat__nav[disabled] { opacity: 0; pointer-events: none; }
.cat__nav svg { width: 21px; height: 21px; }
.cat__nav--prev { left: -22px; }
.cat__nav--next { right: -22px; }
.cat__bar { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-top: 1.3rem; flex-wrap: wrap; }
.cat__counter { font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.cat__counter b { color: var(--ink-strong); font-weight: 650; }
.cat__dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.cat__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(22,19,15,0.16); transition: background 0.2s var(--ease), transform 0.2s var(--ease); }
.cat__dot:hover { background: rgba(22,19,15,0.34); }
.cat__dot.is-on { background: var(--accent); transform: scale(1.25); }
.cat__hint { text-align: center; margin-top: 0.9rem; font-size: 0.82rem; color: var(--faint); }
.center-cta .dotline { margin-top: 0.9rem; }
@media (max-width: 980px) {
  .cat-card { grid-template-columns: 1fr; }
  .cat__nav--prev { left: 6px; }
  .cat__nav--next { right: 6px; }
}
@media (max-width: 560px) {
  .cat-spec th { white-space: normal; width: 38%; }
  .cat-card__foot { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* --- PRODUCTION --- */
.prod { background: var(--bg-soft); }
.prod-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.72fr); gap: clamp(1.6rem, 1rem + 3vw, 3.2rem); align-items: start; }
.prod-main h2 { margin-bottom: 0.9rem; }
.prod-main > .lead { margin-bottom: 2rem; }
.prod-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; list-style: none; padding: 0; margin: 0 0 1.6rem; }
.prod-steps li { background: var(--white); border-radius: var(--r-ui); padding: 1.1rem; box-shadow: inset 0 0 0 1px var(--line-soft); }
.prod-steps__n { font-size: 0.76rem; font-weight: 700; color: var(--taupe); letter-spacing: 0.08em; }
.prod-steps h3 { font-size: 0.98rem; font-weight: 620; letter-spacing: -0.015em; margin: 0.5rem 0 0.35rem; }
.prod-steps p { font-size: 0.79rem; color: var(--faint); line-height: 1.45; }
.prod-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.prod-shots figure { margin: 0; background: var(--white); border-radius: var(--r-media); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-soft); display: flex; flex-direction: column; }
.prod-shots img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.prod-shots figcaption { padding: 0.9rem 1rem 1.1rem; }
.prod-shots figcaption b { display: block; font-size: 0.92rem; font-weight: 620; letter-spacing: -0.015em; margin-bottom: 0.3rem; }
.prod-shots figcaption span { font-size: 0.78rem; color: var(--faint); line-height: 1.45; }
.prod-note { display: inline-flex; align-items: center; gap: 0.6em; margin-top: 1.2rem; font-size: var(--fs-small); color: var(--muted); }
.prod-note svg { width: 18px; height: 18px; color: var(--taupe-deep); }
.prod-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: calc(var(--nav-h) + 1.2rem); }
.prod-video { position: relative; max-width: none; margin: 0; }
.prod-video__tag { position: absolute; top: 0.8rem; left: 0.8rem; z-index: 3; background: var(--white); color: var(--ink); font-size: 0.74rem; font-weight: 560; padding: 0.4em 0.85em; border-radius: var(--r-pill); box-shadow: 0 8px 20px -10px rgba(0,0,0,0.4); }
.prod-visit { background: var(--white); border-radius: var(--r-media); padding: clamp(1.2rem, 2vw, 1.6rem); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.prod-visit__q { font-size: var(--fs-small); color: var(--muted); }
.prod-visit h3 { font-size: 1.28rem; }
.prod-visit .btn { width: 100%; justify-content: center; }
.prod-visit__foot { font-size: 0.76rem; color: var(--faint); }
@media (max-width: 1000px) {
  .prod-grid { grid-template-columns: 1fr; }
  .prod-side { position: static; }
  .prod-video { max-width: 380px; margin-inline: auto; }
}
@media (max-width: 760px) { .prod-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prod-shots { grid-template-columns: 1fr; } }

/* --- PRICE / BREAKDOWN --- */
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.price-copy h2 { margin-bottom: 1.1rem; }
.price-copy > .muted { max-width: 44ch; margin-bottom: 1.8rem; }
.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 1.4rem; }
.price-cards article { background: var(--bg-soft); border-radius: var(--r-ui); padding: 1.1rem; }
.price-cards svg { width: 24px; height: 24px; color: var(--taupe-deep); margin-bottom: 0.7rem; }
.price-cards h3 { font-size: 0.94rem; font-weight: 620; letter-spacing: -0.015em; margin-bottom: 0.35rem; }
.price-cards p { font-size: 0.79rem; color: var(--faint); line-height: 1.45; }
.price-claim { display: flex; gap: 0.8em; align-items: flex-start; background: var(--bg-soft); border-radius: var(--r-ui); padding: 1rem 1.15rem; font-size: var(--fs-small); color: var(--muted); }
.price-claim svg { width: 20px; height: 20px; flex: none; color: var(--white); background: var(--accent); border-radius: 50%; padding: 4px; margin-top: 1px; }
.price-claim b { color: var(--ink-strong); font-weight: 620; }
.price-media { position: relative; }
.bars { display: flex; gap: 3px; height: 15px; }
.bar { border-radius: 3px; }
.bar--a { background: #4a4038; }
.bar--b { background: #9a897c; }
.bar--c { background: #c8bdb2; }
.bar--d { background: #e0d7cd; }
.bar--e { background: #eee8e1; }
.bar--empty { background: repeating-linear-gradient(90deg, #f1eee9 0 5px, transparent 5px 10px); }
.bars__key { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; list-style: none; padding: 0; margin-top: 0.55rem; font-size: 0.68rem; color: var(--faint); }
@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-cards { grid-template-columns: 1fr; }
}

/* --- LIFE CARDS --- */
.life-wrap { margin-top: clamp(3rem, 6vw, 5rem); }
.life-head { text-align: center; max-width: 62ch; margin: 0 auto clamp(1.8rem, 3.5vw, 2.6rem); }
.life-head h2 { margin-bottom: 0.8rem; }
.life-head .lead { margin-inline: auto; }
.life { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.8rem, 1.5vw, 1.3rem); }
.life__card { background: var(--white); border-radius: var(--r-media); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.life__card img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; display: block; }
.life__body { padding: 1.1rem 1.15rem 1.3rem; }
.life__body h3 { display: flex; align-items: center; gap: 0.5em; font-size: 1rem; font-weight: 620; letter-spacing: -0.02em; margin-bottom: 0.5rem; flex-wrap: wrap; }
.life__body h3 svg { width: 19px; height: 19px; color: var(--taupe-deep); flex: none; }
.life__body h3 em { font-style: normal; font-weight: 460; font-size: 0.84rem; color: var(--faint); }
.life__body p { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 1000px) { .life { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .life { grid-template-columns: 1fr; } }

/* --- REVIEWS additions --- */
.rev-title { text-align: center; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.rating__count { display: inline-flex; align-items: center; gap: 0.7em; }
.rating__count > svg { width: 20px; height: 20px; color: var(--gold); }
.rating__count b { display: block; font-size: 1.02rem; font-weight: 650; color: var(--ink-strong); }
.rating__count span { display: block; font-size: var(--fs-small); color: var(--muted); }
.rating__yx svg { width: 15px; height: 15px; }
.offer-plus { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 0.45rem; }
.offer-plus li { position: relative; padding-left: 1.4em; font-size: var(--fs-small); color: var(--muted); }
.offer-plus li::before { content: "+"; position: absolute; left: 0; color: var(--taupe-deep); font-weight: 700; }

/* --- calc head on the dark quiz surface --- */
.quiz .calc-head h2 { color: #fbf8f3; }
.quiz .calc-head .lead { color: rgba(244,240,234,0.82); }
.quiz .eyebrow--dot { color: rgba(244,240,234,0.9); background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); }
.quiz .chips { background: rgba(255,255,255,0.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.quiz .chips li { color: rgba(244,240,234,0.92); }
.quiz .chips svg { color: var(--taupe); }
.quiz .chips__n { background: rgba(223,233,223,0.92); color: #2c5136; }

/* --- single project shot in the «миллиметр в миллиметр» block --- */
.ba-shot { margin: 0; border-radius: var(--r-media); overflow: hidden; background: #eeece7; box-shadow: 0 44px 90px -60px rgba(22,19,15,0.55); position: relative; }
.ba-shot img { width: 100%; height: auto; display: block; }
.ba-shot figcaption {
  position: absolute; left: 0.9rem; bottom: 0.9rem;
  background: var(--white); color: var(--ink);
  font-size: 0.76rem; font-weight: 540; padding: 0.45em 0.9em; border-radius: var(--r-pill);
  box-shadow: 0 8px 20px -10px rgba(0,0,0,0.4);
}

/* --- hero: кнопка видеообзора со стрелкой (как в макете) --- */
.hero3__cta { display: flex; align-items: center; gap: 0.4rem; }
.hero3__arrow { width: 74px; height: 56px; flex: none; color: var(--taupe-deep); margin-top: -1.6rem; }
@media (max-width: 640px) { .hero3__arrow { display: none; } }

/* --- before/after: обёртки picture --- */
.ba__pane picture { display: block; }

/* --- чертёж из макета --- */
.plans-draw img { width: 100%; height: auto; display: block; border-radius: var(--r-ui); }

/* --- широкая полоса цеха --- */
.prod-wide { margin: 0.8rem 0 0; border-radius: var(--r-media); overflow: hidden; background: #eeece7; }
.prod-wide img { width: 100%; height: auto; display: block; }

/* --- блок цены: композитная картинка --- */
.price-media { margin: 0; border-radius: var(--r-media); overflow: hidden; background: #eeece7; box-shadow: 0 40px 90px -60px rgba(22,19,15,0.5); }
.price-media img { width: 100%; height: auto; display: block; }

/* ==========================================================================
   EXIT-INTENT POPUP
   ========================================================================== */
.exitpop { max-width: 620px; }
.exitpop__inner {
  position: relative; text-align: center;
  background: #16130f; color: #f4f0ea;
  border-radius: var(--r-media); overflow: hidden;
  padding: clamp(1.8rem, 4vw, 2.6rem) clamp(1.3rem, 3vw, 2.2rem) clamp(1.4rem, 3vw, 2rem);
  box-shadow: 0 60px 120px -45px rgba(0, 0, 0, 0.75);
}
.exitpop .modal__close { z-index: 4; color: rgba(244, 240, 234, 0.75); }
.exitpop .modal__close:hover { color: #fff; }

.exitpop__inner h3 {
  font-size: clamp(1.25rem, 1rem + 1.3vw, 1.72rem); font-weight: 800;
  line-height: 1.2; letter-spacing: 0.005em; text-transform: uppercase;
  color: #fff; margin-bottom: 1rem;
}
.exitpop__inner h3 em { display: block; font-style: normal; color: var(--taupe); margin-top: 0.35rem; }

.exitpop__lead { font-size: var(--fs-small); line-height: 1.6; color: rgba(244, 240, 234, 0.82); max-width: 46ch; margin: 0 auto 1.4rem; }
.exitpop__lead b { color: #fff; font-weight: 700; }

/* карточка-превью видео */
.exitpop__promo {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 14px; overflow: hidden; background: #e6dfd4;
  aspect-ratio: 16 / 10;
}
.exitpop__promo-img { display: block; overflow: hidden; }
.exitpop__promo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.exitpop__promo-panel {
  display: flex; flex-direction: column; justify-content: center; gap: 0.7rem;
  padding: 1rem clamp(0.9rem, 2vw, 1.5rem) 1rem clamp(1.6rem, 4vw, 2.6rem);
  background: #e6dfd4; color: var(--ink-strong); text-align: left;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -18%;
}
.exitpop__promo-panel b { font-size: clamp(0.95rem, 0.8rem + 0.7vw, 1.28rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; text-transform: uppercase; }
.exitpop__promo-panel b i { font-style: normal; font-weight: 800; }
.exitpop__promo-panel > span { font-size: 0.8rem; color: var(--muted); }
.exitpop__play {
  position: absolute; top: 50%; left: 38%; transform: translate(-50%, -50%);
  width: clamp(52px, 9vw, 68px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; z-index: 3;
  background: rgba(255, 255, 255, 0.9); color: var(--ink);
  box-shadow: 0 16px 38px -14px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.exitpop__promo:hover .exitpop__play { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.exitpop__play svg { width: 40%; height: 40%; margin-left: 8%; }

.exitpop__foot { margin: 1.3rem auto 1.2rem; max-width: 42ch; font-size: var(--fs-small); line-height: 1.55; color: rgba(244, 240, 234, 0.82); }
.exitpop__foot b { color: #fff; font-weight: 700; }

.exitpop__cta {
  width: 100%; justify-content: center; gap: 0.6em;
  background: #e6dfd4; color: var(--ink-strong);
  border-radius: 14px; padding: 1.05em 1.4em;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.88rem;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
}
.exitpop__cta:hover { background: #f1ece3; }
.exitpop__cta:active { transform: translateY(1px); }
.exitpop__cta svg { width: 18px; height: 18px; }

.exitpop__skip {
  display: block; margin: 0.9rem auto 0; font-size: 0.8rem;
  color: rgba(244, 240, 234, 0.55); text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
.exitpop__skip:hover { color: rgba(244, 240, 234, 0.9); }

@media (max-width: 520px) {
  .exitpop__promo { aspect-ratio: 4 / 3; }
  .exitpop__promo-panel { padding-left: 1.1rem; }
}

/* ==========================================================================
   VIDEO PAGE
   ========================================================================== */
.vpage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.vpage-copy h1 { margin-bottom: 1.1rem; max-width: 17ch; }
.vpage-copy .lead { margin-bottom: 1.8rem; max-width: 46ch; }
.vpage-list { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: 0.7rem; }
.vpage-list li { display: flex; gap: 0.7em; align-items: flex-start; font-size: var(--fs-small); color: var(--ink); }
.vpage-list svg { width: 18px; height: 18px; flex: none; color: var(--taupe-deep); margin-top: 2px; }
.vpage-video { max-width: 420px; margin-inline: auto; }
.vpage-form-wrap { background: var(--bg-soft); }
.vpage-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.vpage-form-grid h2 { margin-bottom: 0.9rem; }
.vpage-form-grid .form { background: var(--white); border-radius: var(--r-media); padding: clamp(1.4rem, 2.5vw, 2rem); box-shadow: inset 0 0 0 1px var(--line); }
.vpage-form-grid .form h3 { margin-bottom: 1.1rem; }
@media (max-width: 900px) {
  .vpage-grid, .vpage-form-grid { grid-template-columns: 1fr; }
  .vpage-media { order: -1; }
}

/* --- QUIZ v2: колонки, мультивыбор, широкие варианты --- */
.quiz-opts.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quiz-opts.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* подпись-пояснение внутри варианта */
.quiz-opt em {
  display: block; margin-top: 0.3rem; font-style: normal;
  font-size: 0.76rem; line-height: 1.4; color: var(--faint); font-weight: 420;
}
.quiz-opt.is-picked em { color: var(--muted); }
.quiz-opt b { font-weight: 620; }

/* широкий вариант (бюджет) */
.quiz-opt--wide { text-align: left; align-items: flex-start; padding: 1rem 1.15rem; }
.quiz-opt--wide > span { display: block; }

/* мультивыбор: галочка в углу */
.quiz-opts[data-multi] .quiz-opt { position: relative; padding-right: 2.4rem; }
.quiz-opts[data-multi] .quiz-opt::after {
  content: ""; position: absolute; top: 0.85rem; right: 0.85rem;
  width: 20px; height: 20px; border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  background: var(--white) no-repeat center / 12px 12px;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.quiz-opts[data-multi] .quiz-opt.is-picked::after {
  background-color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* кнопка «Далее» на шагах с мультивыбором */
.quiz-next {
  display: inline-flex; align-items: center; gap: 0.55em; margin-top: 1.4rem;
  padding: 0.85em 1.6em; border-radius: var(--r-ui);
  background: var(--accent); color: var(--on-accent);
  font-size: var(--fs-small); font-weight: 560;
  transition: background 0.2s var(--ease);
}
.quiz-next:hover { background: var(--accent-hover); }
.quiz-next svg { width: 16px; height: 16px; }

/* строка «подходит N проектов» */
.quiz-result__match {
  background: var(--bg-soft); border-radius: var(--r-ui);
  padding: 0.85rem 1.1rem; margin-bottom: 1.2rem;
  font-size: var(--fs-small); color: var(--muted); line-height: 1.5;
}
.quiz-result__match b { color: var(--ink-strong); font-weight: 700; font-size: 1.05rem; }

@media (max-width: 760px) {
  .quiz-opts.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .quiz-opts.cols-2, .quiz-opts.cols-3 { grid-template-columns: 1fr; }
}

/* --- шаг выбора стиля: плитки пошире --- */
.quiz-opts--style { gap: clamp(0.7rem, 1.2vw, 1.1rem); }
.quiz-opt--img { padding: 0.7rem 0.7rem 1.1rem; }
.quiz-opt__t { font-size: 0.95rem; }
.quiz-opt__d { font-size: 0.79rem; }
@media (min-width: 901px) {
  .quiz-opts.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* --- финальный экран квиза: не растягиваем на всю широкую карточку --- */
.quiz-step--result .quiz-result { max-width: 720px; margin-inline: auto; }
.quiz-result__note { max-width: 52ch; margin-inline: auto; }

/* --- фирменная кнопка с иконкой (шапка) --- */
.btn--brand {
  background: var(--brand); color: #fff;
  border-radius: var(--r-pill); padding: 0.75em 1.4em;
  font-weight: 600; letter-spacing: 0.01em;
  box-shadow: 0 12px 28px -12px rgba(232, 146, 12, 0.55);
  transition: background 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.btn--brand:hover { background: var(--brand-hover); box-shadow: 0 14px 32px -12px rgba(232, 146, 12, 0.7); }
.btn--brand:active { transform: translateY(1px); }
.btn--brand svg { width: 18px; height: 18px; }

/* --- коричневый акцент в заголовках --- */
.plans-copy h2 em { font-style: normal; color: var(--taupe-deep); }

/* --- стрелка в CTA-баре --- */
.cta-bar__q { display: flex; align-items: flex-start; gap: 0.9rem; }
.cta-bar__arrow { width: 62px; height: 48px; flex: none; color: var(--taupe-deep); margin-top: -0.6rem; }
@media (max-width: 640px) { .cta-bar__arrow { display: none; } }

/* --- коричневый акцент в заголовках блоков --- */
.life-head h2 em, .rev-title h2 em { font-style: normal; color: var(--taupe-deep); }
.life-head .lead b { color: var(--ink-strong); font-weight: 620; }
.rev-title .lead { max-width: 62ch; margin-inline: auto; }

/* --- плашка на широком фото цеха --- */
.prod-wide { position: relative; }
.prod-wide__badge {
  position: absolute; right: clamp(0.8rem, 2vw, 1.4rem); top: clamp(0.8rem, 2vw, 1.4rem); z-index: 2;
  background: var(--white); border-radius: var(--r-ui); padding: 0.7em 1.05em;
  box-shadow: 0 14px 34px -16px rgba(22, 19, 15, 0.55);
  display: flex; flex-direction: column; gap: 2px;
}
.prod-wide__badge b { font-size: 0.92rem; font-weight: 620; color: var(--ink-strong); }
.prod-wide__badge span { font-size: 0.78rem; color: var(--faint); }

/* --- «Обзоры в деталях»: воздух перед лентой --- */
.stories-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* --- бейдж Яндекс Карт не должен переноситься --- */
.nav-yx { white-space: nowrap; flex: none; }
.nav-yx span { white-space: nowrap; }
@media (max-width: 1240px) { .nav-links { gap: 0.9rem; } .nav-yx { padding: 0.4em 0.7em; font-size: 0.78rem; } }
@media (max-width: 1100px) { .nav-yx { display: none; } }

/* --- каталог: эффект перелистывания страницы (только десктоп) --- */
@media (min-width: 981px) and (prefers-reduced-motion: no-preference) {
  .cat__track { position: relative; perspective: 2400px; perspective-origin: 50% 45%; }
  .cat__track.is-flipping { overflow: hidden; }
  .cat__track.is-flipping .cat-card { position: absolute; inset: 0; }
  .cat-card--out, .cat-card--in {
    backface-visibility: hidden; will-change: transform, opacity;
    transform-style: preserve-3d; background: var(--white);
  }
  /* уходящая страница */
  .cat-card--out.cat-card--next { transform-origin: left center; animation: catTurnOutNext 0.34s cubic-bezier(0.55, 0, 0.85, 0.35) forwards; }
  .cat-card--out.cat-card--prev { transform-origin: right center; animation: catTurnOutPrev 0.34s cubic-bezier(0.55, 0, 0.85, 0.35) forwards; }
  /* приходящая страница */
  .cat-card--in.cat-card--next { transform-origin: right center; animation: catTurnInNext 0.34s cubic-bezier(0.2, 0.7, 0.3, 1) 0.3s backwards; }
  .cat-card--in.cat-card--prev { transform-origin: left center;  animation: catTurnInPrev 0.34s cubic-bezier(0.2, 0.7, 0.3, 1) 0.3s backwards; }
  /* тень сгиба */
  .cat-card--out::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
    animation: catFold 0.34s linear forwards;
  }
  .cat-card--out.cat-card--next::after { background: linear-gradient(90deg, rgba(0,0,0,0.03), rgba(0,0,0,0.22) 78%, rgba(0,0,0,0.38)); }
  .cat-card--out.cat-card--prev::after { background: linear-gradient(270deg, rgba(0,0,0,0.03), rgba(0,0,0,0.22) 78%, rgba(0,0,0,0.38)); }
}
@keyframes catTurnOutNext { from { transform: rotateY(0); } to { transform: rotateY(-92deg); } }
@keyframes catTurnOutPrev { from { transform: rotateY(0); } to { transform: rotateY(92deg); } }
@keyframes catTurnInNext  { from { transform: rotateY(92deg); }  to { transform: rotateY(0); } }
@keyframes catTurnInPrev  { from { transform: rotateY(-92deg); } to { transform: rotateY(0); } }
@keyframes catFold { from { opacity: 0; } to { opacity: 1; } }

/* --- ПРАВКИ: выравнивание, цвета, компактность --- */
/* 1. кнопка в шапке коричневая, в цвет текстовых акцентов */
.btn--brand { background: var(--taupe-deep); box-shadow: 0 12px 28px -14px rgba(122, 96, 74, 0.85); }
.btn--brand:hover { background: #86735f; box-shadow: 0 14px 32px -14px rgba(122, 96, 74, 0.95); }

/* 2 и 6. преимущества центруются по ширине кнопки над ними */
.dotline--under { justify-content: center; max-width: 100%; }
.hero3__actions, .plans-copy .btn--lg, .center-cta .btn--lg { align-self: flex-start; }
.hero3__copy .dotline--under,
.plans-copy .dotline--under { width: fit-content; max-width: 100%; margin-inline: 0; }
.hero3__copy .hero3__actions { display: inline-flex; }

/* 7. «миллиметр в миллиметр»: акцент и компактнее, чтобы блок влезал в экран */
.ba-copy h2 em { font-style: normal; color: var(--taupe-deep); }
.ba-copy h2 { font-size: clamp(1.7rem, 1.1rem + 1.9vw, 2.7rem); margin-bottom: 0.9rem; }
.ba-copy p { margin-bottom: 0.8rem; font-size: 0.98rem; }
.ba-copy .stats3 { margin-top: 1.4rem; padding-top: 1.2rem; }

/* 8. заголовок производства в две строки */
.prod-main h2 { font-size: clamp(1.7rem, 1.1rem + 1.9vw, 2.6rem); }

/* 12 и 13. компактные заголовки */
.h2--tight { font-size: clamp(1.6rem, 1.05rem + 1.8vw, 2.5rem); }
.flow-head--wide { max-width: none; }
.flow-head--wide h2 { white-space: nowrap; font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); }
@media (max-width: 560px) { .flow-head--wide h2 { white-space: normal; } }

/* 14. коричневый надзаголовок на финальном экране */
.eyebrow--brown { color: var(--taupe); }

/* 9. адрес на тёмной карточке: крупнее и контрастнее */
.geo-badge--solid {
  background: var(--accent); color: #fff;
  font-size: 0.95rem; font-weight: 560; padding: 0.62em 1.1em;
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.geo-badge--solid svg { width: 18px; height: 18px; color: var(--taupe); }

/* 10. подпись под кнопкой в модалке */
.form__note { margin-top: 0.7rem; font-size: var(--fs-small); font-weight: 540; color: var(--ink); text-align: center; }

/* --- 3. светлый квиз: возвращаем тёмный текст --- */
.quiz::before { display: none; }
.quiz .calc-head h2 { color: var(--ink-strong); }
.quiz .calc-head .lead { color: var(--muted); }
.quiz .eyebrow--dot { color: var(--taupe-num); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.quiz .chips { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.quiz .chips li { color: var(--ink); }
.quiz .chips svg { color: var(--taupe-deep); }
.quiz .chips__n { background: #dfe9df; color: #35603f; }
.quiz-card { box-shadow: 0 40px 90px -55px rgba(22, 19, 15, 0.4), inset 0 0 0 1px var(--line-soft); }

/* --- 4. варианты-строки с кружком, как на референсе --- */
.quiz-opts--rows { grid-template-columns: 1fr; gap: 0.6rem; }
.quiz-opts--rows .quiz-opt {
  display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 0.85rem;
  text-align: left; padding: 0.95rem 1.15rem; border-radius: var(--r-ui);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
}
.quiz-opts--rows .quiz-opt::before {
  content: ""; width: 21px; height: 21px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.6px rgba(22,19,15,0.22); background: var(--white);
  transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  margin-top: 1px;
}
.quiz-opts--rows .quiz-opt.is-picked { box-shadow: inset 0 0 0 1.6px var(--taupe-deep); background: #fbf8f4; }
.quiz-opts--rows .quiz-opt.is-picked::before {
  background: var(--taupe-deep); box-shadow: inset 0 0 0 1.6px var(--taupe-deep), inset 0 0 0 5px var(--white);
}
/* мультивыбор: квадратная галочка вместо кружка */
.quiz-opts--rows[data-multi] .quiz-opt::before { border-radius: 6px; }
.quiz-opts--rows[data-multi] .quiz-opt.is-picked::before {
  background: var(--taupe-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 13px 13px;
  box-shadow: inset 0 0 0 1.6px var(--taupe-deep);
}
.quiz-opts--rows[data-multi] .quiz-opt::after { display: none; }
.quiz-opts--rows .quiz-opt > span { display: block; }
.quiz-opts--rows .quiz-opt b { display: block; }

/* кнопка «Далее» в фирменном цвете */
.quiz-next { background: var(--taupe-deep); border-radius: var(--r-ui); width: 100%; justify-content: center; padding: 1em 1.6em; font-size: 0.95rem; }
.quiz-next:hover { background: #86735f; }

/* --- футер: ВК, график, дисклеймер --- */
.footer-vk {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.7em 1.15em; border-radius: var(--r-pill);
  background: var(--white); color: var(--ink); font-size: var(--fs-small); font-weight: 560;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.footer-vk:hover { background: var(--bg-soft); box-shadow: inset 0 0 0 1px rgba(22,19,15,0.22); }
.footer-vk svg { width: 22px; height: 22px; color: #0077ff; }
.footer-disclaimer { font-size: 0.74rem; line-height: 1.55; color: var(--faint); max-width: 92ch; margin-bottom: 0.6rem; }
.footer-legal__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line-soft); }
.footer-pd, .linkish {
  font: inherit; color: var(--taupe-deep); text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
.footer-pd { font-size: 0.78rem; }
.footer-pd:hover, .linkish:hover { color: var(--ink); }

/* --- попап согласия на обработку ПД --- */
.pdmodal { max-width: 720px; }
.pdmodal__inner {
  position: relative; background: var(--white); border-radius: var(--r-media);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  max-height: min(86vh, 760px); display: flex; flex-direction: column;
  box-shadow: 0 60px 120px -50px rgba(0,0,0,0.6);
}
.pdmodal__inner h3 { font-size: 1.15rem; padding-right: 2.4rem; margin-bottom: 1rem; }
.pdmodal__body { overflow-y: auto; padding-right: 0.6rem; }
.pdmodal__body p, .pdmodal__body li { font-size: var(--fs-small); line-height: 1.6; color: var(--muted); }
.pdmodal__body p { margin-bottom: 0.8rem; }
.pdmodal__body ul { margin: 0 0 0.9rem; padding-left: 1.1rem; }
.pdmodal__body li { margin-bottom: 0.3rem; }

/* --- страница видео: как в макете попапа --- */
.vpage-wrap { max-width: 640px; margin-inline: auto; text-align: center; }
.vpage-head h1 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.1rem); font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; line-height: 1.2; margin-bottom: 0.5rem; }
.vpage-sub { font-size: clamp(1rem, 0.9rem + 0.8vw, 1.35rem); font-weight: 800; text-transform: uppercase; color: var(--taupe-deep); letter-spacing: 0.01em; margin-bottom: 1.6rem; }
.vpage-player { margin-bottom: 1.6rem; }
.vpage-video { max-width: 320px; margin-inline: auto; }
.vpage-cta__title { font-size: 1.05rem; font-weight: 700; color: var(--ink-strong); margin-bottom: 0.5rem; }
.vpage-cta__sub { font-size: var(--fs-small); color: var(--muted); max-width: 48ch; margin: 0 auto 1.6rem; line-height: 1.55; }
.vquiz { max-width: 640px; text-align: left; }
.vquiz .quiz-step h3 { font-size: 1.06rem; text-align: center; margin-bottom: 1rem; }
.vquiz .quiz-progress__label { text-align: center; }
.vquiz-final { font-size: 1.15rem; text-align: center; margin-bottom: 0.6rem; }
.vquiz-foot { display: flex; align-items: center; justify-content: center; gap: 0.5em; margin-top: 1rem; font-size: 0.78rem; color: var(--faint); }
.vquiz-foot svg { width: 14px; height: 14px; }
.btn--brand-wide { width: 100%; justify-content: center; background: var(--taupe-deep); color: #fff; padding: 1.05em 1.4em; border-radius: var(--r-ui); font-weight: 620; }
.btn--brand-wide:hover { background: #86735f; }

/* --- попап на выходе: помещается в экран без прокрутки --- */
.exitpop { max-width: min(620px, calc(100vw - 2rem)); }
.exitpop__inner { max-height: calc(100vh - 2.5rem); overflow: auto; }
@media (max-height: 780px) {
  .exitpop__inner { padding-block: 1.2rem; }
  .exitpop__inner h3 { font-size: 1.12rem; margin-bottom: 0.6rem; }
  .exitpop__lead { margin-bottom: 0.9rem; font-size: 0.84rem; }
  .exitpop__foot { margin: 0.9rem auto 0.8rem; font-size: 0.84rem; }
  .exitpop__cta { padding: 0.9em 1.2em; }
  .exitpop__skip { margin-top: 0.6rem; }
}
@media (max-height: 660px) {
  .exitpop__promo { aspect-ratio: 21 / 9; }
  .exitpop__lead { display: none; }
}

/* --- мелкие правки страницы видео --- */
/* ссылка-кнопка должна течь как обычный текст, без переноса точки на новую строку */
.linkish { display: inline; padding: 0; background: none; border: 0; }

/* «Бесплатно. Без обязательств.» показываем один раз: под кнопкой шага,
   а на финальном шаге, где есть подпись внутри формы, внешнюю прячем */

/* полоса прогресса в фирменном цвете, а не почти чёрная */
.vquiz .quiz-progress__fill { background: var(--taupe-deep); }

/* --- заголовок квиза строго в две строки --- */
.calc-head { max-width: 74rem; }
.calc-head h2 {
  font-size: clamp(1.5rem, 0.7rem + 2.6vw, 3rem);
  line-height: 1.14; text-wrap: nowrap; white-space: nowrap;
}
.calc-head .lead { max-width: 68rem; white-space: nowrap; }
@media (max-width: 1100px) {
  .calc-head h2, .calc-head .lead { white-space: normal; text-wrap: balance; }
}

/* ==========================================================================
   КВИЗ ПО РЕФЕРЕНСУ: крупный вопрос по центру, простые строки-варианты
   ========================================================================== */
.quiz-card { padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.2rem, 3vw, 2.6rem) clamp(1.4rem, 2.5vw, 2rem); }
.quiz-step h3 {
  font-size: clamp(1.35rem, 0.9rem + 1.7vw, 2.15rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
  text-align: center; text-wrap: balance; margin-bottom: 0.5rem;
}
.quiz-step__hint { text-align: center; color: var(--muted); margin-bottom: 1.8rem; }
.quiz-step h3:last-of-type + .quiz-opts { margin-top: 1.6rem; }

/* строки-варианты без карточек, как на референсе */
.quiz-opts--rows { grid-template-columns: 1fr; gap: 0.15rem; max-width: 660px; margin-inline: auto; }
.quiz-opts--rows .quiz-opt {
  display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 0.85rem;
  text-align: left; padding: 0.6rem 0.4rem; border-radius: 8px;
  background: transparent; box-shadow: none;
}
.quiz-opts--rows .quiz-opt:hover { background: rgba(22, 19, 15, 0.035); }
.quiz-opts--rows .quiz-opt.is-picked { background: transparent; box-shadow: none; }
.quiz-opts--rows .quiz-opt::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; margin-top: 2px;
  box-shadow: inset 0 0 0 1.6px rgba(22,19,15,0.28); background: var(--white);
  transition: box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.quiz-opts--rows .quiz-opt.is-picked::before {
  background: var(--accent);
  box-shadow: inset 0 0 0 1.6px var(--accent), inset 0 0 0 4.5px var(--white);
}
.quiz-opts--rows[data-multi] .quiz-opt::before { border-radius: 5px; }
.quiz-opts--rows[data-multi] .quiz-opt.is-picked::before {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 12px 12px;
  box-shadow: inset 0 0 0 1.6px var(--accent);
}
.quiz-opts--rows .quiz-opt span { font-size: 1rem; line-height: 1.45; color: var(--ink); }
.quiz-opts--rows .quiz-opt em { display: inline; font-style: normal; color: var(--faint); }
.quiz-opts--rows .quiz-opt em::before { content: " "; }
.quiz-opts--rows .quiz-opt b { display: inline; font-weight: 500; }

/* плитки планировки без рамок-карточек */
.quiz-opts--tiles .quiz-opt { background: transparent; box-shadow: none; }
.quiz-opts--tiles .quiz-opt.is-picked { box-shadow: inset 0 0 0 2px var(--accent); background: var(--white); }

/* карточки стиля: только фото и подпись */
.quiz-opt--img { background: transparent; box-shadow: none; padding: 0.4rem; }
.quiz-opt--img.is-picked { box-shadow: inset 0 0 0 2px var(--accent); background: var(--white); }

/* нижняя панель навигации */
.quiz-nav { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin-top: 2rem; flex-wrap: wrap; }
.quiz-nav .quiz-back {
  position: static; width: 46px; height: 46px; padding: 0; border-radius: var(--r-ui);
  display: grid; place-items: center; background: var(--bg-soft); color: var(--ink);
  box-shadow: none; font-size: 0;
}
.quiz-nav .quiz-back:hover { background: #ece8e1; }
.quiz-nav .quiz-back svg { width: 18px; height: 18px; }
.quiz-nav .quiz-next {
  width: auto; min-width: 190px; margin-top: 0;
  background: var(--taupe-deep); color: #fff; border-radius: var(--r-ui);
  padding: 0.95em 2.2em; font-size: 1rem; font-weight: 620;
}
.quiz-nav .quiz-next:hover { background: #86735f; }
.quiz-nav__hint { font-size: var(--fs-small); color: var(--faint); }
@media (max-width: 560px) {
  .quiz-nav__hint { display: none; }
  .quiz-nav .quiz-next { flex: 1; min-width: 0; }
}

/* ==========================================================================
   КВИЗ: точная копия раскладки референса
   ========================================================================== */
/* без белой панели и теней, вопрос живёт прямо на фоне секции */
.quiz-card {
  max-width: 920px; background: transparent; box-shadow: none;
  padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  min-height: clamp(420px, 52vh, 620px);
  display: flex; flex-direction: column;
}
.quiz-progress[hidden] { display: none; }

.quiz-step h3 {
  font-size: clamp(1.4rem, 0.95rem + 1.75vw, 2.2rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
  text-align: center; text-wrap: balance; margin-bottom: 2.2rem;
}

/* список вариантов: строки с кружком, блок по центру, текст слева */
.quiz-opts--rows { grid-template-columns: 1fr; gap: 0.1rem; max-width: 640px; margin-inline: auto; width: 100%; }
.quiz-opts--rows .quiz-opt { padding: 0.55rem 0.3rem; }
.quiz-opts--rows .quiz-opt span { font-size: 1.02rem; }

/* плитки стиля: только фото и подпись под ним */
.quiz-opts--style { max-width: 100%; }
.quiz-opt--img { padding: 0; gap: 0.7rem; }
.quiz-opt--img.is-picked { box-shadow: none; background: transparent; }
.quiz-opt--img img { border-radius: 4px; transition: box-shadow 0.2s var(--ease); }
.quiz-opt--img.is-picked img { box-shadow: 0 0 0 3px var(--accent); }
.quiz-opt--img .quiz-opt__t { font-weight: 460; font-size: 0.98rem; color: var(--ink); }
.quiz-opt--img.is-picked .quiz-opt__t { font-weight: 620; }
.quiz-opt--img .quiz-opt__d { display: none; }
.quiz-opt__ic--lg { background: var(--bg-soft); border-radius: 4px; }

/* навигация прижата к низу блока */
.quiz-nav { margin-top: auto; padding-top: 2.5rem; }

/* --- кнопка расчёта и 3 преимущества под ней: единый блок по ширине кнопки --- */
.cta-stack { display: inline-flex; flex-direction: column; align-items: center; max-width: 100%; }
.cta-stack .btn { width: 100%; justify-content: center; }
.cta-stack .dotline { justify-content: center; margin-top: 1rem; width: 100%; }
/* в центрированных секциях сам блок тоже по центру */
.center-cta .cta-stack { display: inline-flex; }
@media (max-width: 560px) { .cta-stack { display: flex; width: 100%; } }

/* --- галочка согласия на обработку ПД --- */
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 0.7rem; align-items: start; margin: 0.9rem 0 1.1rem; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent span { font-size: 0.82rem; line-height: 1.5; color: var(--muted); }
.consent::before {
  content: ""; width: 19px; height: 19px; border-radius: 5px; margin-top: 1px;
  box-shadow: inset 0 0 0 1.6px rgba(22,19,15,0.28); background: var(--white);
  transition: background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.consent:has(input:checked)::before {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 12px 12px;
  box-shadow: inset 0 0 0 1.6px var(--accent);
}
.consent:has(input:focus-visible)::before { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent.is-invalid::before { box-shadow: inset 0 0 0 1.8px #c0473a; animation: shake 0.35s var(--ease); }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

/* --- финальный шаг квиза: заголовок как у референса --- */
.quiz-final-title {
  font-size: clamp(1.35rem, 0.95rem + 1.6vw, 2.05rem); font-weight: 700;
  line-height: 1.22; letter-spacing: -0.02em; text-align: center;
  max-width: 24ch; margin: 0 auto 1.6rem;
}
.quiz-result__note { max-width: 52ch; margin: 0 auto 1.4rem; text-align: left; }
.quiz-step--result .form { max-width: 560px; margin-inline: auto; }

/* --- попап: текстовую панель сдвигаем правее от диагонали --- */
.exitpop__promo { grid-template-columns: 1.05fr 1fr; }
.exitpop__promo-panel {
  padding-left: clamp(2.2rem, 6vw, 3.6rem);
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -22%;
}
.exitpop__play { left: 34%; }
@media (max-width: 520px) { .exitpop__promo-panel { padding-left: 1.4rem; } }

/* «Далее» и подсказка скрываются на шагах с автопереходом */
.quiz-nav [data-quiz-next][hidden], .quiz-nav__hint[hidden] { display: none; }

/* --- форма: колонки не должны вылезать за карточку --- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-row > * { min-width: 0; }
.form .field input, .form input[type="tel"], .form input[type="text"] { min-width: 0; width: 100%; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

/* текст согласия всегда слева, даже если форма центрирована */
.consent span { text-align: left; }
.consent { justify-items: start; text-align: left; }
