/* =========================================================
   Центр пропусков — propusk-na-mkad.com
   Дизайн v3 «Бланк пропуска». Адаптив: 1440 → 360.
   ========================================================= */

:root {
  --paper: #F3EEE2;
  --card: #FBF8F1;
  --ink: #1B2340;
  --ink-2: #2C3766;
  --deep: #121830;
  --night: #11162B;
  --red: #C8302A;
  --red-soft: #F08A80;
  --muted: #5B5F6E;
  --text-2: #3A4160;
  --on-dark: #C3C7D6;
  --on-dark-2: #8E93A8;
  --line: rgba(27, 35, 64, .25);
  --line-dark: rgba(243, 238, 226, .25);
  --wa: #25D366;

  --gut: 80px;
  --sec: 96px;
  --radius: 4px;

  --f-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-disp: 'Prata', Georgia, 'Times New Roman', serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}

@media (max-width: 1200px) { :root { --gut: 48px; --sec: 80px; } }
@media (max-width: 900px)  { :root { --gut: 32px; --sec: 64px; } }
@media (max-width: 600px)  { :root { --gut: 20px; --sec: 52px; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(rgba(27, 35, 64, .06) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.disp { font-family: var(--f-disp); font-weight: 400; }
.mono { font-family: var(--f-mono); }
.wrap { width: 100%; max-width: calc(1280px + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }

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

.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--red); text-transform: uppercase; }
.on-dark .eyebrow { color: var(--red-soft); }
.h2 { font-family: var(--f-disp); font-weight: 400; font-size: clamp(30px, 3.8vw, 54px); line-height: 1.07; text-wrap: balance; }
.label { font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 26px;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  font-size: 16px; font-weight: 600; line-height: 1;
  background: transparent; color: var(--ink);
  transition: background .2s, color .2s, transform .2s, border-color .2s;
  white-space: nowrap; max-width: 100%;
}
.btn:hover { background: rgba(27, 35, 64, .06); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); border-color: var(--ink-2); transform: translateY(-2px); }
.btn--lg { height: 62px; padding: 0 32px; font-size: 17px; }
.btn--light { border-color: var(--paper); color: var(--paper); }
.btn--light:hover { background: rgba(243, 238, 226, .1); }
.btn--red { background: var(--red); border-color: var(--red); color: var(--card); }
.btn--red:hover { background: #A82520; border-color: #A82520; transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn svg { flex-shrink: 0; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 238, 226, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--ink), 0 8px 24px rgba(27, 35, 64, .08); }
.header__in {
  height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  border-bottom: 1.5px solid var(--ink);
}
.header.is-scrolled .header__in { border-bottom-color: transparent; }
.logo { display: flex; align-items: baseline; gap: 14px; flex-shrink: 0; }
.logo__name { font-family: var(--f-disp); font-size: 26px; line-height: 1; }
.logo__site { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }

.nav { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.nav a, .footer__nav a {
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s; padding: 2px 0;
}
.nav a:hover, .footer__nav a:hover { background-size: 100% 1.5px; }

.header__side { display: flex; align-items: center; gap: 22px; }
.header__phone { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.header__phone a { font-size: 17px; font-weight: 700; white-space: nowrap; }
.header__phone span { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.header .btn { height: 48px; padding: 0 22px; font-size: 15px; }

.icon-btn {
  width: 44px; height: 44px; display: none; align-items: center; justify-content: center;
  border-radius: var(--radius); border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
}
.icon-btn--ink { background: var(--ink); color: var(--paper); }

@media (max-width: 1200px) {
  .nav { gap: 20px; }
  .logo__site { display: none; }
}
@media (max-width: 1060px) {
  .nav, .header__side .btn { display: none; }
  .icon-btn { display: inline-flex; }
}
@media (min-width: 601px) { .header__side .icon-btn--ink { display: none; } }
@media (max-width: 600px) {
  html { scroll-padding-top: 72px; }
  .header__in { height: 68px; gap: 12px; }
  .logo__name { font-size: 21px; }
  .header__phone { display: none; }
  .header__side { gap: 8px; }
}

/* Мобильное меню */
.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper);
  display: flex; flex-direction: column;
  padding: 0 var(--gut) 32px;
  overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.menu.is-open { transform: none; opacity: 1; visibility: visible; }
.menu__head { height: 68px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1.5px solid var(--ink); }
.menu__head .icon-btn { display: inline-flex; }
.menu__nav { display: flex; flex-direction: column; padding: 12px 0 24px; }
.menu__nav a { font-family: var(--f-disp); font-size: 28px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu__contacts { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.menu__contacts .menu__phone { font-size: 22px; font-weight: 700; }
.menu__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.menu__row .btn { padding: 0 12px; }
body.no-scroll { overflow: hidden; }
/* анимированные печати не должны раздвигать страницу по ширине (iOS) */
main, .footer { overflow-x: hidden; }
@supports (overflow: clip) { main, .footer { overflow-x: clip; } }

/* ---------- Анимации ---------- */
@keyframes stamp { 0%, 20% { opacity: 0; transform: scale(2.4) rotate(-4deg); } 28% { opacity: 1; transform: scale(.94) rotate(-12deg); } 32%, 100% { opacity: 1; transform: scale(1) rotate(-12deg); } }
@keyframes lights { 0%, 40%, 100% { opacity: .35; } 45%, 55% { opacity: 1; } 50% { opacity: .5; } }
@keyframes beam { 0%, 40%, 100% { opacity: 0; } 45%, 55% { opacity: .55; } }
@keyframes idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes arrive { from { opacity: 0; transform: translateY(40px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes strip { from { left: -110px; } to { left: 100%; } }
@keyframes glow { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

.stamp { transform-origin: center; transform: rotate(-12deg); animation: stamp 4.5s cubic-bezier(.3, 1.4, .5, 1) infinite; }
.stamp--once { animation-iteration-count: 1; animation-fill-mode: both; }
.lights { animation: lights 4.5s ease-in-out infinite; }
.beam { animation: beam 4.5s ease-in-out infinite; }
.idle { animation: idle 2.2s ease-in-out infinite; }
.arrive { animation: arrive 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.d1 { animation-delay: .12s; } .d2 { animation-delay: .24s; } .d3 { animation-delay: .36s; }
.glow { animation: glow 1.8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Первый экран ---------- */
.hero { padding: 64px 0 var(--sec); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
  grid-template-rows: 1fr auto auto auto auto auto 1fr;
  grid-template-areas: ". visual" "eyebrow visual" "title visual" "lead visual" "cta visual" "stats visual" ". visual";
  column-gap: 48px; row-gap: 28px;
}
.hero__eyebrow { grid-area: eyebrow; }
.hero__title { grid-area: title; font-family: var(--f-disp); font-weight: 400; font-size: clamp(30px, 3.9vw, 54px); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
.hero__lead { grid-area: lead; max-width: 560px; font-size: 20px; line-height: 1.55; color: var(--text-2); }
.hero__cta { grid-area: cta; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero__stats { grid-area: stats; margin-top: 6px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.stat { padding: 18px 16px 0; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat b { font-family: var(--f-disp); font-weight: 400; font-size: 30px; line-height: 1.15; white-space: nowrap; }
.stat span { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }

.hero__visual { grid-area: visual; position: relative; width: 100%; aspect-ratio: 600 / 640; align-self: center; }
.hero__truck { position: absolute; top: 0; right: 0; width: 86.6%; height: auto; }
.pass {
  position: absolute; left: 0; bottom: 0; width: 55%; min-width: 230px;
  padding: 24px;
  background-color: var(--card);
  background-image: repeating-radial-gradient(circle at 100% 0, rgba(47, 107, 79, .07) 0 2px, transparent 2px 9px);
  border: 1.5px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
  display: flex; flex-direction: column; gap: 14px;
  transform: rotate(-2deg);
}
.pass__head { display: flex; justify-content: space-between; align-items: baseline; }
.pass__head .disp { font-size: 26px; }
.pass__rows { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pass__rows > span { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(27, 35, 64, .35); padding-bottom: 6px; }
.pass__rows > span:last-child { border-bottom: 0; padding-bottom: 0; }
.pass__rows > span > span { color: var(--muted); }
.pass__stamp {
  position: absolute; left: 33%; top: 34%; width: 104px; height: 104px;
  border: 3px double var(--red); border-radius: 50%; color: var(--red);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: rgba(251, 248, 241, .35); text-align: center; pointer-events: none;
  opacity: .92;
}
.pass__stamp .mono { font-size: 8px; font-weight: 600; letter-spacing: .06em; }
.pass__stamp .disp { font-size: 19px; line-height: 1; }

@media (max-width: 1200px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); column-gap: 32px; }
  .stat b { font-size: 25px; }
  .hero__lead { font-size: 18px; }
}
@media (max-width: 900px) {
  .hero { padding-top: 36px; }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "eyebrow" "title" "lead" "visual" "cta" "stats";
    row-gap: 20px;
  }
  .hero__visual { max-width: 520px; justify-self: center; aspect-ratio: 520 / 470; }
  .hero__truck { width: 74%; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 1px solid var(--line); margin-top: 0; }
  .stat, .stat:first-child { padding: 14px; border-left: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .hero__cta .btn--ink { flex: 1 1 100%; }
  .hero__cta .btn:not(.btn--ink) { flex: 1 1 100%; }
}
@media (max-width: 600px) {
  .hero__eyebrow { font-size: 10px; letter-spacing: .06em; }
  .hero__lead { font-size: 16px; }
  .hero__visual { aspect-ratio: 350 / 360; }
  .hero__truck { width: 82%; }
  .pass { width: 64%; min-width: 0; padding: 14px; gap: 8px; box-shadow: 6px 6px 0 var(--ink); }
  .pass__head .disp { font-size: 20px; }
  .pass__rows { font-size: 12.5px; gap: 5px; }
  .pass__rows > span { padding-bottom: 4px; }
  .pass__rows .pass__plate { display: none; }
  .pass__stamp { width: 74px; height: 74px; left: 30%; top: 30%; border-width: 2px; }
  .pass__stamp .mono { font-size: 6px; }
  .pass__stamp .disp { font-size: 13px; }
  .stat b { font-size: 23px; }
  .stat span { font-size: 10px; }
}

/* ---------- Раздел 1: конфигуратор ---------- */
.sec { padding: var(--sec) 0; }
.sec--rule > .wrap > .sec__in { border-top: 1.5px solid var(--ink); padding-top: var(--sec); }
.sec--rule { padding-top: 0; }
.on-dark { background: var(--ink); color: var(--paper); }

.config { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
.config__left { display: flex; flex-direction: column; gap: 28px; }
.fset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fset legend { padding: 0; margin-bottom: 12px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }

.box {
  width: 100%; padding: 18px 20px;
  display: flex; align-items: center; gap: 18px; text-align: left;
  color: var(--ink); background: transparent;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  transition: background .2s, border-color .2s;
}
.box:hover { border-color: var(--ink); }
.box[aria-pressed="true"] { background: var(--card); border-color: var(--ink); }
.box__check { width: 26px; height: 26px; flex-shrink: 0; border: 2px solid var(--ink); background: var(--card); display: flex; align-items: center; justify-content: center; }
.box__check svg { opacity: 0; transform: scale(.5); transition: opacity .15s, transform .2s; }
.box[aria-pressed="true"] .box__check svg { opacity: 1; transform: none; }
.box__name { width: 90px; flex-shrink: 0; font-family: var(--f-disp); font-size: 28px; line-height: 1.1; }
.box__desc { font-size: 15px; line-height: 1.4; color: var(--text-2); }
/* Быстрая форма под выбранной зоной */
.zform {
  display: flex; flex-direction: column; gap: 14px;
  margin: -2px 0 6px; padding: 20px;
  background: var(--card); border: 1.5px solid var(--ink); border-top: 0;
  animation: zform-in .28s ease both;
}
.zform[hidden] { display: none; }
.zform__title { margin: 0; font-size: 17px; line-height: 1.4; }
.zform__title b { font-weight: 700; }
.zform__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.zform .field__err { font-size: 12px; }
@keyframes zform-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .zform { padding: 16px; gap: 12px; }
  .zform__title { font-size: 15px; }
  .zform__row { grid-template-columns: minmax(0, 1fr); }
}

.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.box--term { height: 56px; padding: 0 18px; gap: 12px; font-size: 16px; font-weight: 600; }
.box__dot { width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); box-shadow: inset 0 0 0 3px var(--card); transition: background .2s; }
.box[aria-pressed="true"] .box__dot { background: var(--red); }

.order-card {
  position: relative; align-self: center;
  padding: 40px;
  background-color: var(--card);
  background-image: repeating-radial-gradient(circle at 0 100%, rgba(47, 107, 79, .06) 0 2px, transparent 2px 10px);
  border: 1.5px solid var(--ink); box-shadow: 14px 14px 0 var(--ink);
  display: flex; flex-direction: column; gap: 22px;
}
.order-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1.5px solid var(--ink); }
.order-card__head > span { display: flex; flex-direction: column; gap: 6px; }
.order-card__title { font-family: var(--f-disp); font-size: 40px; line-height: 1; }
.order-card__rows { display: grid; grid-template-columns: 150px minmax(0, 1fr); row-gap: 14px; column-gap: 12px; font-size: 16px; }
.order-card__rows dt { color: var(--muted); }
.order-card__rows dd { margin: 0; font-weight: 600; }
.order-card__note { font-size: 13px; color: var(--muted); }
.order-card__stamp { position: absolute; right: 36px; top: 110px; padding: 10px 16px; border: 3px solid var(--red); border-radius: 6px; color: var(--red); opacity: .9; pointer-events: none; }
.order-card__stamp span { font-family: var(--f-mono); font-size: 15px; font-weight: 600; letter-spacing: .1em; white-space: nowrap; }

@media (max-width: 1060px) {
  .config { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .order-card { max-width: 640px; }
}
@media (max-width: 600px) {
  .config__left { gap: 18px; }
  .fset { gap: 8px; }
  .fset legend { margin-bottom: 8px; font-size: 11px; }
  .box { padding: 14px 16px; gap: 14px; }
  .box__check { width: 24px; height: 24px; }
  .box__name { width: 64px; font-size: 22px; }
  .box__desc { font-size: 13px; line-height: 1.35; }
  .terms { gap: 8px; }
  .box--term { height: 50px; padding: 0 14px; font-size: 15px; gap: 10px; }
  .order-card { padding: 22px; gap: 14px; box-shadow: 8px 8px 0 var(--ink); }
  .order-card__title { font-size: 30px; }
  .order-card__head svg { width: 52px; }
  .order-card__rows { grid-template-columns: 110px minmax(0, 1fr); row-gap: 10px; font-size: 14px; }
  .order-card__stamp { right: 14px; top: 76px; padding: 6px 10px; border-width: 2px; }
  .order-card__stamp span { font-size: 11px; }
}

/* ---------- Раздел 2: условия ---------- */
.terms-sec { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 72px; }
.terms-sec__aside { display: flex; flex-direction: column; gap: 24px; }
.terms-sec__aside p { font-size: 17px; line-height: 1.6; color: var(--on-dark); }
.bigstat { margin-top: 16px; padding: 24px; border: 1.5px solid rgba(243, 238, 226, .3); display: flex; flex-direction: column; gap: 6px; }
.bigstat b { font-family: var(--f-disp); font-weight: 400; font-size: 64px; line-height: 1; }
.bigstat span { font-size: 15px; color: var(--on-dark); }
.clauses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.clause { padding: 24px 0; border-top: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 8px; }
.clause__n { font-family: var(--f-mono); font-size: 12px; color: var(--red-soft); }
.clause__t { font-family: var(--f-disp); font-size: 26px; line-height: 1.2; }
.clause__d { font-size: 15px; line-height: 1.55; color: var(--on-dark); }

@media (max-width: 1060px) {
  .terms-sec { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .bigstat { display: none; }
}
@media (max-width: 600px) {
  .clauses { grid-template-columns: minmax(0, 1fr); }
  .clause { padding: 16px 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; }
  .clause__n { grid-row: 1 / 3; padding-top: 5px; }
  .clause__t { font-size: 20px; }
  .clause__d { font-size: 14px; }
}

/* ---------- Раздел 3: сроки ---------- */
.steps-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 48px; }
.steps-head > div { display: flex; flex-direction: column; gap: 20px; }
.road {
  position: relative; height: 84px; margin-bottom: 48px;
  background-color: var(--card); border: 1.5px solid var(--ink); overflow: hidden;
  background-image: repeating-linear-gradient(90deg, rgba(27, 35, 64, .5) 0 1px, transparent 1px 32px), repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 160px);
  background-size: auto 16px, auto 30px; background-repeat: repeat-x; background-position: 0 100%, 0 100%;
}
.road__truck { position: absolute; top: 14px; left: -110px; animation: strip 12s linear infinite; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step__n { font-family: var(--f-mono); font-size: 13px; color: var(--red); }
.step__t { font-family: var(--f-disp); font-size: 26px; line-height: 1.2; }
.step__d { font-size: 16px; line-height: 1.55; color: var(--text-2); }

@media (max-width: 1060px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 600px) {
  .steps-head { flex-direction: column; align-items: stretch; gap: 20px; margin-bottom: 24px; }
  .steps-head > div { gap: 12px; }
  .road { height: 64px; margin-bottom: 28px; background-size: auto 12px, auto 22px; }
  .road__truck { top: 10px; animation-duration: 7s; }
  .road__truck svg { width: 64px; height: 36px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .step { gap: 4px; }
  .step__n { font-size: 11px; }
  .step__t { font-size: 21px; }
  .step__d { font-size: 15px; }
}

/* ---------- Раздел 4: квиз ---------- */
.quiz-sec {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 720px);
  grid-template-rows: auto 1fr;
  grid-template-areas: "aside quiz" "cheaper quiz";
  column-gap: 72px; row-gap: 36px; align-items: start;
}
.quiz-sec__aside { grid-area: aside; display: flex; flex-direction: column; gap: 24px; }
.quiz-sec__aside p { font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 440px; }
.quiz-sec .quiz { grid-area: quiz; }
.quiz-sec .cheaper { grid-area: cheaper; }
.cheaper { padding: 24px; border: 1.5px dashed var(--ink); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cheaper b { font-family: var(--f-disp); font-weight: 400; font-size: 26px; line-height: 1.2; }
.cheaper p { font-size: 15px; color: var(--text-2); }
/* длинная надпись не должна вылезать за рамку блока */
.cheaper .btn { max-width: 100%; height: auto; min-height: 56px; padding: 14px 22px; white-space: normal; text-align: center; }

.quiz {
  position: relative;
  padding: 40px;
  background-color: var(--card);
  background-image: repeating-radial-gradient(circle at 100% 0, rgba(47, 107, 79, .06) 0 2px, transparent 2px 10px);
  border: 1.5px solid var(--ink); box-shadow: 14px 14px 0 var(--ink);
}
.quiz__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 16px; border-bottom: 1.5px solid var(--ink); }
.quiz__top .disp { font-size: 28px; }
.quiz__progress { margin: 22px 0 26px; }
.quiz__bar { position: relative; height: 8px; background: rgba(27, 35, 64, .12); overflow: hidden; }
.quiz__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--red); transition: width .35s cubic-bezier(.2, .7, .2, 1); }
.quiz__meta { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.quiz__meta b { color: var(--red); font-weight: 600; }
.quiz__step { display: none; flex-direction: column; gap: 14px; }
.quiz__step.is-active { display: flex; animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.quiz__q { font-family: var(--f-disp); font-size: 28px; line-height: 1.2; margin-bottom: 6px; }
.quiz__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quiz__opts .box { min-height: 64px; padding: 14px 16px; gap: 14px; font-size: 16px; font-weight: 500; }
.quiz__opts .box__check { width: 22px; height: 22px; }
.quiz__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.quiz__back { background: none; border: 0; padding: 8px 0; font-weight: 600; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.quiz__back:hover { color: var(--ink); }
.quiz__back[hidden] { display: inline-flex; visibility: hidden; }
.quiz__discount { font-family: var(--f-mono); font-size: 13px; color: var(--muted); text-align: right; }
.quiz__discount b { display: block; font-family: var(--f-disp); font-weight: 400; font-size: 30px; color: var(--red); line-height: 1.1; }
.quiz__final-lead { font-size: 16px; color: var(--text-2); }

@media (max-width: 1060px) {
  .quiz-sec { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "aside" "quiz" "cheaper"; row-gap: 32px; }
  .quiz-sec .cheaper { margin-top: 8px; }
}
@media (max-width: 600px) {
  .quiz { padding: 22px; box-shadow: 8px 8px 0 var(--ink); }
  .quiz__top .disp { font-size: 22px; }
  .quiz__q { font-size: 22px; }
  .quiz__opts { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .quiz__opts .box { min-height: 54px; font-size: 15px; }
  .quiz__discount b { font-size: 24px; }
  .cheaper { padding: 18px; }
  .cheaper b { font-size: 22px; }
  .cheaper .btn { width: 100%; }
}

/* ---------- Раздел 5: отзывы ---------- */
.reviews-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 44px; }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.letter {
  margin: 0; min-height: 250px; padding: 28px;
  background: var(--card); border: 1.5px solid var(--ink);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.letter:hover { transform: rotate(-1deg) translateY(-4px); }
.letter blockquote { margin: 0; font-family: var(--f-disp); font-size: 18px; line-height: 1.5; }
.letter figcaption { padding-top: 14px; border-top: 1px dashed rgba(27, 35, 64, .4); display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.letter figcaption span { font-family: var(--f-mono); color: var(--muted); text-transform: uppercase; text-align: right; }
.letter--cta { background: var(--red); border-color: var(--red); color: var(--card); justify-content: space-between; gap: 16px; }
.letter--cta .mono { font-size: 12px; letter-spacing: .08em; }
.letter--cta a { font-family: var(--f-disp); font-size: 30px; line-height: 1.2; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.reviews-note { margin-top: 20px; font-size: 13px; color: var(--muted); }

@media (max-width: 1060px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .reviews-head { margin-bottom: 24px; gap: 12px; }
  .reviews-scroll { margin: 0 calc(var(--gut) * -1); }
  .reviews {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0 var(--gut) 12px; scroll-padding: 0 var(--gut);
    scrollbar-width: none;
  }
  .reviews::-webkit-scrollbar { display: none; }
  .letter { flex: 0 0 82%; max-width: 320px; min-height: 0; padding: 22px; scroll-snap-align: start; }
  .letter:hover { transform: none; }
  .letter blockquote { font-size: 16px; }
  .letter--cta a { font-size: 24px; }
  .reviews-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
}
.reviews-dots { display: none; }
@media (max-width: 700px) { .reviews-dots { display: flex; } }
.reviews-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
.reviews-dots i.is-active { background: var(--ink); width: 18px; border-radius: 3px; }

/* ---------- Раздел 6: заявка ---------- */
.apply { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 80px; align-items: center; }
.apply__text { display: flex; flex-direction: column; gap: 26px; }
.apply__text .h2 { font-size: clamp(30px, 4vw, 58px); }
.apply__text p { max-width: 500px; font-size: 18px; line-height: 1.55; color: var(--on-dark); }
.apply__messengers { display: flex; flex-wrap: wrap; gap: 12px; }
.apply__messengers .btn { height: 52px; padding: 0 24px; }
.apply__contacts { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--on-dark); }
.apply__contacts a { color: var(--paper); font-weight: 600; }

@media (max-width: 1060px) { .apply { grid-template-columns: minmax(0, 1fr); gap: 36px; } .apply .form-card { max-width: 640px; } }
@media (max-width: 600px) {
  .apply__text { gap: 18px; }
  .apply__text p { font-size: 16px; }
  .apply__messengers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .apply__messengers .btn { padding: 0 12px; }
}

/* ---------- Формы ---------- */
.form-card {
  position: relative;
  padding: 44px;
  background-color: var(--card); color: var(--ink);
  background-image: repeating-radial-gradient(circle at 100% 100%, rgba(47, 107, 79, .06) 0 2px, transparent 2px 10px);
  display: flex; flex-direction: column; gap: 22px;
}
.form-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.form-card__head .disp { font-size: 32px; line-height: 1.1; }
#order-form .form-card__head { padding-right: 76px; }
.form-card__stamp {
  position: absolute; right: -30px; top: -34px; width: 116px; height: 116px;
  border: 4px double var(--red); border-radius: 50%; color: var(--red);
  background: rgba(251, 248, 241, .9);
  display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none;
}
.form-card__stamp .mono { font-size: 9px; font-weight: 600; }
.form-card__stamp .disp { font-size: 18px; }

.field { display: flex; flex-direction: column; gap: 4px; position: relative; }
.field__label { font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; }
.field__label i { font-style: normal; color: var(--red); }
.input {
  width: 100%; height: 46px; padding: 0;
  border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0;
  background: transparent; font-size: 18px; color: var(--ink);
  transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: rgba(27, 35, 64, .38); }
.input:focus { outline: none; border-bottom-color: var(--red); box-shadow: 0 1.5px 0 var(--red); }
textarea.input { height: auto; min-height: 46px; padding: 10px 0; resize: vertical; line-height: 1.4; }
select.input {
  cursor: pointer; padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231B2340' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.input.mono { font-family: var(--f-mono); letter-spacing: .02em; }
.field__err { display: none; font-size: 13px; color: var(--red); }
.field.is-error .input { border-bottom-color: var(--red); }
.field.is-error .field__err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; border: 2px solid var(--ink); background: var(--card); display: flex; align-items: center; justify-content: center; }
.consent__box svg { opacity: 0; }
.consent input:checked + .consent__box svg { opacity: 1; }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--red); outline-offset: 2px; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--ink); }
.field.is-error .consent__box { border-color: var(--red); }

.form-msg { display: none; padding: 12px 14px; font-size: 14px; border: 1.5px solid var(--red); color: var(--red); background: rgba(200, 48, 42, .05); }
.form-msg.is-visible { display: block; }

/* Honeypot: скрыт от людей, виден ботам */
.hp { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 600px) {
  .form-card { padding: 24px 20px; gap: 18px; }
  .form-card__head .disp { font-size: 26px; }
  .form-card__stamp { width: 84px; height: 84px; right: -8px; top: -44px; border-width: 3px; }
  .form-card__stamp .mono { font-size: 7px; }
  .form-card__stamp .disp { font-size: 14px; }
  .input { font-size: 17px; height: 44px; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* ---------- Подвал ---------- */
.footer { padding: 56px 0 40px; background: var(--deep); color: var(--on-dark); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; font-size: 15px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__brand { font-family: var(--f-disp); font-size: 26px; color: var(--paper); }
.footer__about { max-width: 320px; line-height: 1.55; }
.footer__phone { color: var(--paper); font-weight: 700; font-size: 17px; }
.footer a:hover { color: var(--paper); }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(243, 238, 226, .15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13px; color: var(--on-dark-2); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1060px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .footer { padding: 40px 0 88px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer__brand { font-size: 22px; }
  .footer__nav { display: none; }
  .footer__phone { font-size: 19px; }
  .footer__bottom { flex-direction: column; margin-top: 28px; }
}

/* ---------- Кнопка связи (WhatsApp / Telegram / звонок) ---------- */
.cfab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  right: max(20px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.cfab__btn {
  width: 60px; height: 60px; border-radius: 50%; border: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  animation: pulse 2.4s infinite;
  transition: transform .2s, background .2s;
}
.cfab__btn:hover { transform: scale(1.06); }
.cfab__btn.is-wa { background: var(--wa); }
.cfab__btn.is-tg { background: #2AABEE; }
.cfab__btn.is-tel { background: var(--ink); }
.cfab__open.is-flip { animation: cfab-flip .56s ease both; }
@keyframes cfab-flip {
  0% { transform: rotateY(0) scale(1); opacity: 1; }
  45% { transform: rotateY(90deg) scale(.82); opacity: .2; }
  55% { transform: rotateY(-90deg) scale(.82); opacity: .2; }
  100% { transform: rotateY(0) scale(1); opacity: 1; }
}
.cfab__close { display: none; }
.cfab.is-open .cfab__btn { background: var(--ink); animation: none; }
.cfab.is-open .cfab__open { display: none; }
.cfab.is-open .cfab__close { display: block; }

.cfab__menu {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.cfab.is-open .cfab__menu { opacity: 1; visibility: visible; transform: none; }
.cfab__item {
  display: flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 8px 0 18px;
  flex-direction: row-reverse;
  background: var(--card); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 26px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s;
}
.cfab__item:hover { transform: translateX(-3px); }
.cfab__ic { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; font-size: 10px; font-weight: 700; }
.cfab__ic--wa { background: var(--wa); }
.cfab__ic--tg { background: #2AABEE; }
.cfab__ic--max { background: linear-gradient(135deg, #4C6FFF, #9B3CFF); }
.cfab__ic--tel { background: var(--ink); }

@media (hover: hover) and (min-width: 601px) {
  .cfab:hover .cfab__menu { opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 600px) {
  .cfab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .cfab__btn { width: 56px; height: 56px; }
}

/* ---------- Модальные окна ---------- */
.modal {
  width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px);
  padding: 0; border: 1.5px solid var(--ink); border-radius: 0;
  background: var(--card); color: var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  overflow: visible;
}
.modal::backdrop { background: rgba(17, 22, 43, .6); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.modal[open] { animation: rise .35s cubic-bezier(.2, .7, .2, 1) both; }
.modal__in { max-height: calc(100vh - 40px); overflow-y: auto; }
.modal .form-card { background-color: transparent; }
.modal__close {
  position: absolute; right: -14px; top: -14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink); background: var(--card); color: var(--ink);
}
.modal__close:hover { background: var(--ink); color: var(--paper); }
.modal__lead { font-size: 15px; line-height: 1.5; color: var(--text-2); margin-top: -8px; }
.modal__gift { font-family: var(--f-mono); font-size: 12px; color: var(--red); letter-spacing: .06em; }
@media (max-width: 600px) {
  .modal { box-shadow: 6px 6px 0 var(--ink); }
  .modal__close { right: 8px; top: 8px; }
  .modal .form-card__head { padding-right: 36px; }
}

/* ---------- Внутренние страницы ---------- */
.page { padding: 64px 0 var(--sec); }
.page__card {
  max-width: 880px; margin: 0 auto; padding: 48px;
  background: var(--card); border: 1.5px solid var(--ink); box-shadow: 14px 14px 0 var(--ink);
  position: relative;
}
.page__card h1 { font-family: var(--f-disp); font-weight: 400; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; margin-bottom: 18px; text-wrap: balance; }
.page__lead { font-size: 18px; line-height: 1.55; color: var(--text-2); }
.prose { font-size: 16px; line-height: 1.65; color: var(--text-2); }
.prose h2 { font-family: var(--f-disp); font-weight: 400; font-size: 26px; line-height: 1.25; color: var(--ink); margin: 32px 0 10px; }
.prose h3 { font-size: 17px; color: var(--ink); margin: 20px 0 6px; }
.prose p, .prose ul { margin: 0 0 12px; }
.prose ul { padding-left: 20px; list-style: disc; }
.prose li { margin-bottom: 4px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; }
.docs__col { padding: 22px; border: 1.5px solid var(--ink); background: var(--paper); }
.docs__col h2 { font-family: var(--f-disp); font-weight: 400; font-size: 22px; margin-bottom: 12px; }
.docs__col li { padding: 8px 0 8px 30px; border-top: 1px dashed rgba(27, 35, 64, .3); position: relative; font-size: 15px; }
.docs__col li::before { content: ""; position: absolute; left: 0; top: 10px; width: 16px; height: 16px; border: 2px solid var(--ink); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8302A' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5L20 6'/%3E%3C/svg%3E") center / 12px no-repeat; }
.page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page__stamp {
  position: absolute; right: 32px; top: -40px; width: 120px; height: 120px;
  border: 4px double var(--red); border-radius: 50%; color: var(--red); background: rgba(251, 248, 241, .92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none;
}
.page__stamp .mono { font-size: 10px; font-weight: 600; letter-spacing: .06em; }
.page__stamp .disp { font-size: 20px; line-height: 1.05; }
.big404 { font-family: var(--f-disp); font-size: clamp(90px, 16vw, 180px); line-height: 1; color: var(--ink); }
.placeholder { background: rgba(200, 48, 42, .1); color: var(--red); padding: 0 4px; font-family: var(--f-mono); font-size: .9em; }

@media (max-width: 600px) {
  .page { padding: 36px 0 var(--sec); }
  .page__card { padding: 26px 20px; box-shadow: 8px 8px 0 var(--ink); }
  .page__stamp { width: 84px; height: 84px; right: 12px; top: -34px; border-width: 3px; }
  .page__stamp .mono { font-size: 7px; }
  .page__stamp .disp { font-size: 14px; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .page__actions .btn { width: 100%; }
  .prose h2 { font-size: 22px; }
}
