/* ============================================================
   CORSA MOTORS — главная, v3 «драматургия».
   Hero во всю ширину → тёмная лента цифр → асимметричная витрина →
   тёмная сцена доставки с гигантской 48 → таймлайн покупки →
   красная плитка финансирования → визит на фото во всю ширину →
   отзывы → тёмный финал с формой.
   ============================================================ */

/* ---------- 1. HERO: фото первой секундой, текст поверх ---------- */
.hero { position: relative; }
.hero { background: var(--deep); margin-top: -1px; } /* тёмная подложка + нахлёст на шапку */
.hero-stage {
  position: relative;
  /* высоту держит сцена: видео растянуто абсолютом внутри и не может
     оставить полупиксельную щель на ретине */
  height: clamp(440px, calc(100vh - 244px), 860px);
  height: clamp(440px, calc(100svh - 244px), 860px);
  overflow: hidden;
}
.hero-stage > img,
.hero-stage > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 62%;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,12,14,.42) 0%, rgba(10,12,14,.30) 45%, rgba(10,12,14,.55) 100%);
}
.hero-content {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center;
  text-align: center;
}
.hero-content .wrap { width: 100%; display: grid; justify-items: center; }
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  font-stretch: 118%; font-weight: 830;
  letter-spacing: -0.02em; line-height: 1;
  max-width: 12em; margin-bottom: 18px;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .45);
}
.hero-content h1 .dot { color: #FF5A70; }
.hero-content .lede {
  color: #EDEFF1; font-size: clamp(17.5px, 1.5vw, 19.5px);
  max-width: 34em; margin: 0 0 26px;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .45);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn-big { min-height: 56px; padding: 13px 36px; font-size: 17.5px; }
.hero-content .btn-ghost { color: #fff; border-color: #fff; }
.hero-content .btn-ghost:hover { background: #fff; color: var(--ink); }

/* мобила: видео чистое сверху, текст под ним; первый экран — флекс-колонка,
   видео забирает свободное место на любом разрешении, без магических чисел */
@media (max-width: 760px) {
  .hero {
    background: var(--paper);
    display: flex; flex-direction: column;
    min-height: calc(100vh - 165px);  /* шапка ~67 + лента ~98 */
    min-height: calc(100svh - 165px);
  }
  .hero-stage { height: auto; flex: 1 1 auto; min-height: 230px; position: relative; }
  .hero-stage > video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
  }
  .hero-veil { display: none; }
  .hero-stage::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
    background: linear-gradient(180deg, transparent, var(--paper));
    pointer-events: none;
  }
  .hero-content { position: static; inset: auto; display: block; text-align: left; flex: none; }
  .hero-content .wrap { display: block; padding-top: 22px; padding-bottom: 26px; }
  .hero-content h1 {
    color: var(--ink); text-shadow: none;
    font-size: clamp(1.9rem, 8vw, 2.5rem);
    max-width: none; margin-bottom: 10px;
  }
  .hero-content h1::before {
    content: ""; display: block;
    width: 52px; height: 4px; border-radius: 2px;
    background: var(--red);
    margin-bottom: 16px;
  }
  .hero-content h1 .dot { color: var(--red); }
  .hero-content .lede {
    color: var(--ink-soft); text-shadow: none;
    font-size: 16.5px; max-width: none; margin-bottom: 18px;
  }
  .hero-ctas { justify-content: flex-start; }
  .hero-ctas .btn { width: 100%; }
  .btn-big { min-height: 54px; font-size: 17px; }
}

/* ---------- 2. ЦИФРЫ: компактная тёмная лента ---------- */
.stats {
  background: var(--deep); color: #A7AEB6;
  position: relative; overflow: hidden; margin-top: -1px;
  /* полоса замыкает первый экран с запасом: стык со вторым блоком за кадром */
  min-height: 96px;
  display: grid; align-items: center;
}
/* блик-полир пробегает по ленте после выхода цифр */
@media (prefers-reduced-motion: no-preference) {
  .js .stats::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 22%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.055), transparent);
    transform: skewX(-12deg);
    pointer-events: none;
  }
  .js .stats.go::after { animation: stats-shine 1.4s var(--ease) 1.5s 1 both; }
}
@keyframes stats-shine { from { left: -30%; } to { left: 120%; } }
.stats .wrap {
  display: grid; grid-template-columns: repeat(2, 1fr);
  padding-top: 16px; padding-bottom: 16px; gap: 14px 18px;
  width: 100%;
}
@media (min-width: 860px) { .stats .wrap { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; align-items: baseline; gap: 10px; justify-content: center; }
/* кино-каскад: полоса пустая, цифры выплывают одна за другой (js ставит .go) */
@media (prefers-reduced-motion: no-preference) {
  .js .stats .stat {
    opacity: 0; transform: translateY(14px); filter: blur(5px);
    transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
    transition-delay: calc(var(--si, 0) * 260ms);
  }
  .js .stats.go .stat { opacity: 1; transform: none; filter: none; }
}
@media (min-width: 860px) {
  .stat { padding-left: 24px; border-left: 1px solid var(--line-dark); }
  .stat:first-child { border-left: 0; padding-left: 0; }
}
.stat b {
  font-family: var(--display); font-stretch: 120%; font-weight: 820;
  font-size: clamp(26px, 2.4vw, 34px); line-height: 1; color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat b i { font-style: normal; color: #FF5A70; }
.stat span { font-size: 16px; color: #A7AEB6; }
.stat a { color: inherit; text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.stat a:hover span { color: #fff; text-decoration: underline; }

/* ---------- 3. ВИТРИНА: 1 крупная + 2 сбоку, ниже ряд из трёх ---------- */
.showcase {
  padding-top: var(--section); padding-bottom: var(--section);
  margin-top: -1px; position: relative;
  background: var(--paper-tint); /* подиум: белые карточки светятся на тоне */
}

.showcase .lead-in { max-width: 46em; }

.show-more {
  margin-top: 42px;
  background: #fff; border-radius: var(--r-card);
  box-shadow: 0 2px 10px rgba(20, 23, 27, .07);
  padding: clamp(20px, 2.6vw, 28px) clamp(22px, 3vw, 34px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.show-more p {
  margin: 0;
  font-family: var(--display); font-stretch: 110%; font-weight: 720;
  font-size: clamp(18px, 1.8vw, 21px); color: var(--ink);
}
.show-more p b { color: var(--red); }
.show-more .btn { flex: none; }


/* ---------- 4. ДОСТАВКА: живая карта + квитанция ---------- */
/* блок доставки (.delivery/.d-*) переехал в components.css — нужен и на shipping */
/* квитанция-бар на всю ширину */
/* квитанция FROM->TO переехала в components.css — нужна на shipping и inventory */

/* ---------- 5. КАК КУПИТЬ: таймлайн ---------- */
.how { padding-top: var(--section); }
.how .wrap {
  display: grid; gap: clamp(34px, 5vw, 72px);
  grid-template-columns: 1fr; align-items: start;
}
@media (min-width: 940px) { .how .wrap { grid-template-columns: 5fr 7fr; } }
.how-intro { position: sticky; top: 120px; }
@media (max-width: 939px) { .how-intro { position: static; } }
.how-intro p { max-width: 30em; margin-bottom: 24px; }

/* ---------- 6. ДЕНЬГИ ---------- */
.money { padding-top: var(--section); }
.money-h { margin-bottom: 26px; }
.money-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .money-grid { grid-template-columns: 7fr 5fr; } }
.money-tile {
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(26px, 3.4vw, 40px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.money-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.money-tile { position: relative; overflow: hidden; }
.mt-glyph {
  position: absolute; right: -18px; top: -14px;
  width: 130px; height: 130px;
  color: var(--ink); opacity: .05;
  pointer-events: none;
}
.money-tile.primary { background: var(--red); border-color: var(--red); color: rgba(255,255,255,.92); }
.money-tile.primary h3 { color: #fff; font-size: clamp(22px, 2.4vw, 28px); }
.money-tile.primary .num { color: #fff; font-weight: 800; }
/* живой ползунок платежа */
.m-calc {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,.25);
  padding-top: 16px; margin: 4px 0 16px;
}
.m-calc-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; margin-bottom: 12px;
}
.m-calc-price {
  font-family: var(--display); font-stretch: 116%; font-weight: 820;
  font-size: clamp(24px, 2.4vw, 32px); color: #fff;
  font-variant-numeric: tabular-nums;
}
.m-calc-mo { font-size: 16px; color: rgba(255,255,255,.85); }
.m-calc-mo b {
  font-family: var(--display); font-stretch: 114%; font-weight: 820;
  font-size: clamp(22px, 2.2vw, 28px); color: #fff;
  font-variant-numeric: tabular-nums;
}
.m-calc input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  background: rgba(255, 255, 255, .35);
  outline: none; cursor: pointer;
}
.m-calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
  cursor: grab;
}
.m-calc input[type="range"]::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
  cursor: grab;
}
.m-calc input[type="range"]:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.m-calc-note { margin-top: 10px; font-size: 14.5px; color: rgba(255,255,255,.8); }
.money-tile p { font-size: 17px; margin-bottom: 14px; }
.money-tile .btn { margin-top: auto; }

/* ---------- 7. ВИЗИТ: полароиды из ангара ---------- */
.visit { padding-top: var(--section); }
.visit .wrap {
  display: grid; gap: clamp(34px, 5vw, 72px);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 940px) { .visit .wrap { grid-template-columns: 7fr 5fr; } }

/* полароиды .v-photos/.pol переехали в components.css — нужны и на About */

.v-info h2 { margin-bottom: 12px; }
.visit-where {
  margin: 14px 0 22px;
  font-family: var(--display); font-stretch: 110%; font-weight: 700;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft);
}
.v-info address { font-style: normal; margin: 0 0 24px; display: grid; gap: 14px; }
.v-info .row { display: flex; gap: 12px; align-items: flex-start; font-size: 17.5px; }
.v-info .row .ic { color: var(--red); width: 22px; height: 22px; margin-top: 4px; flex: none; }
.v-info .row a { color: var(--ink); }
.open-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; margin-right: 10px;
}
.open-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.open-status.is-open { color: #1E7B34; }
.open-status.is-open::before { background: #2EA04A; }
.open-status.is-closed { color: var(--ink-soft); }
.open-status.is-closed::before { background: #9AA1A8; }

/* ---------- 8. ОТЗЫВЫ: полоса Google ---------- */
.reviews { padding-top: var(--section); }
.rv-band {
  position: relative; overflow: hidden;
  background: #fff; border-radius: var(--r-card);
  box-shadow: 0 2px 10px rgba(20, 23, 27, .07);
  padding: clamp(30px, 4vw, 48px) clamp(24px, 4vw, 52px);
  display: flex; align-items: center; gap: clamp(22px, 3vw, 44px);
  flex-wrap: wrap;
}
.rv-quote {
  font-family: var(--display); font-stretch: 120%; font-weight: 830;
  font-size: clamp(110px, 12vw, 170px); line-height: .6;
  color: var(--red); opacity: .16;
  flex: none; align-self: flex-start; margin-top: .28em;
  pointer-events: none; user-select: none;
}
.rv-copy { flex: 1; min-width: 260px; }
.rv-copy h2 { margin-bottom: 8px; }
.rv-copy p { margin: 0; font-size: 18.5px; color: var(--ink-soft); }
.rv-copy p b { color: var(--ink); }
.rv-band .btn { flex: none; }

/* ---------- 9. ФИНАЛ: ФОРМА ---------- */
.closer {
  position: relative; overflow: hidden;
  margin-top: var(--section);
  background: var(--deep); color: #B9BEC5;
}
.closer-bg { position: absolute; inset: 0; }
.closer-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.closer-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 14, .93) 0%, rgba(10, 12, 14, .88) 100%);
}
.closer .wrap { position: relative; z-index: 1; }
.next-steps {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: grid; gap: 10px;
  counter-reset: ns;
}
.next-steps li {
  counter-increment: ns;
  display: flex; align-items: center; gap: 12px;
  font-size: 17px; color: #C9CED4;
}
.next-steps li::before {
  content: counter(ns);
  flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff;
  font-family: var(--display); font-stretch: 114%; font-weight: 800; font-size: 14.5px;
}
.closer .wrap {
  display: grid; gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(44px, 5.5vw, 68px); padding-bottom: clamp(44px, 5.5vw, 68px);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 940px) { .closer .wrap { grid-template-columns: 1fr 1fr; } }
/* компактная форма финала */
.closer form { padding: clamp(20px, 2.4vw, 28px); }
.closer .field-row { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .closer .field-row { grid-template-columns: 1fr 1fr; } }
.closer form .field { margin-bottom: 11px; gap: 5px; }
.closer form .field label { font-size: 15px; }
.closer form h3 { font-size: 20px; }
.closer form .field input { min-height: 48px; padding: 10px 13px; }
.closer form .field textarea { min-height: 62px; }
.closer form .field .hint { display: none; }
.closer .consent { font-size: 13.5px; line-height: 1.45; margin: 2px 0 14px; }
.closer .consent input { width: 19px; height: 19px; }
.closer form .btn { min-height: 50px; }
.closer .form-note { margin-bottom: 12px; }
.closer .wish-chips { margin-bottom: 8px; }
.closer .wish-chips .chip { font-size: 13.5px; padding: 5px 11px; }
.closer h2 { color: #fff; }
.closer .lede { font-size: 18.5px; color: #B9BEC5; max-width: 30em; }
.closer .call-line { margin-top: 26px; font-size: 18px; }
.closer .call-line a {
  color: #fff; font-family: var(--display); font-stretch: 114%;
  font-weight: 820; font-size: 28px; text-decoration: none;
  transition: color .18s var(--ease);
}
.closer .call-line a:hover { color: #FF5A70; }
.closer .hours-note { font-size: 16px; color: #8B939C; margin-top: 6px; }

.closer form {
  background: #fff; color: var(--ink);
  border-radius: var(--r-card); padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow);
}
.closer form h3 { margin-bottom: 4px; }
.form-note { font-size: 15px; color: var(--ink-soft); margin: 0 0 18px; }
.closer .consent { color: var(--ink-soft); margin: 4px 0 18px; }
.wish-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.closer form .btn { width: 100%; }


/* ================= МОБИЛЬНАЯ ПОЛИРОВКА ================= */
@media (max-width: 760px) {
  :root { --section: 56px; }

  /* лента цифр: плотнее и ровнее */
  .stats .wrap { padding-top: 14px; padding-bottom: 14px; gap: 10px 14px; }
  .stat { justify-content: flex-start; gap: 8px; }
  .stat b { font-size: 24px; }
  .stat b i { font-size: 22px; }
  .stat span { font-size: 13.5px; line-height: 1.25; }

  /* заголовки секций и штрихи */
  main h2 { font-size: clamp(1.7rem, 7vw, 2rem); }
  .showcase h2::before, .delivery h2::before, .how-intro h2::before,
  .money-h::before, .v-info h2::before, .closer h2::before { margin-bottom: 14px; }

  /* карта и квитанция */
  .qo-chips { width: 100%; }

  /* таймлайн-дорога: уже и компактнее */
  .tl::before { left: 18px; }
  .tl li { padding-left: 64px; }
  .tl li::before { width: 46px; height: 46px; font-size: 20px; }
  .tl .tl-done .tl-check { width: 46px; height: 46px; }
  .tl .tl-done .tl-check .ic { width: 20px; height: 20px; }
  .tl h3 { font-size: 19px; }
  .tl p { font-size: 16px; }
  .how-intro .btn { width: 100%; }

  /* деньги */
  .m-facts { gap: 14px 20px; }
  .m-fact b { font-size: 26px; }
  .money-tile .btn { width: 100%; }

  .v-info .btn { width: 100%; }

  /* полоса-мост: стопкой по центру */
  .footer-sign .wrap { justify-content: center; text-align: center; }
  .fs-left { justify-content: center; }
  .footer-sign .btn { width: 100%; }

  /* подвал */
  .footer-grid { gap: 28px; padding: 36px 0 30px; }
  .footer-brand img { height: 68px; }
  .footer-bottom { padding: 16px 0 22px; }
  .footer-bottom .foot-legal { margin-left: 0; }
}

@media (max-width: 340px) {
  .show-more .btn { flex: 1 1 100%; width: 100%; white-space: normal; line-height: 1.25; }
}
