:root {
  --red: #d5001c;
  --red-dark: #a6192e;
  --ink: #241e20;
  --ink-soft: #2f363a;
  --muted: #6b777c;
  --line: #e4e5e7;
  --bg: #ffffff;
  --bg-soft: #f6f7f7;
  --radius: 0px;
  --wrap: 1280px;
  --header-h: 152px;
  --shadow: 0 18px 40px rgba(36, 30, 32, .10);
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.icon { width: 20px; height: 20px; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:where(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }

.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }

.btn--outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn--outline:hover { background: var(--red); color: #fff; }

.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 12px; }

/* блик, пробегающий по красным кнопкам раз в несколько секунд */
.btn--red::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 48px;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .45) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: btn-shine 5s linear infinite;
}
@keyframes btn-shine {
  0% { left: -60%; }
  18% { left: 130%; }
  100% { left: 130%; }
}

/* соседние кнопки блестят не разом, а по очереди */
.stock__grid .car:nth-child(3n + 2) .btn--red::after,
.model__actions .btn--red:nth-child(2)::after { animation-delay: 1.7s; }
.stock__grid .car:nth-child(3n + 3) .btn--red::after,
.model__actions .btn--red:nth-child(3)::after { animation-delay: 3.4s; }

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}

.header__main { border-bottom: 1px solid var(--line); }

.header__row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}
.header__logo { height: 34px; width: auto; }
.header__status {
  padding-left: 18px;
  font-weight: 400;
  border-left: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.header__phone {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.header__phone .icon { color: var(--red); }

.header__mark { width: auto; height: 38px; }

.header__cta { min-height: 48px; }

.header__nav { background: var(--bg-soft); }

.header__nav-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.header__nav-row::-webkit-scrollbar { display: none; }

.nav-link {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav-link:hover { color: var(--red); }
.nav-link.is-active { color: var(--red); border-bottom-color: var(--red); }

.nav-link--soon { color: var(--muted); cursor: default; }
.nav-link--soon:hover { color: var(--muted); }

.header__burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform .22s, opacity .22s;
}
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}

.hero__track { display: grid; }

/* запасной hero из пререндера держит ту же высоту, что и настоящий слайд,
   иначе при отрисовке JS страница уезжает вниз */
.pr--hero { min-height: min(76vh, 720px); }

.hero__slide {
  grid-area: 1 / 1;
  position: relative;
  min-height: min(76vh, 720px);
  display: flex;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 7s linear;
}
.hero__slide.is-active .hero__bg { transform: scale(1); }

.hero__shade {
  position: absolute;
  inset: 0;
  /* затемняем только верх и низ — там лежит текст, середина с автомобилем остаётся светлой */
  background:
    linear-gradient(180deg, rgba(16, 13, 14, .84) 0%, rgba(16, 13, 14, .36) 24%, rgba(16, 13, 14, 0) 42%),
    linear-gradient(0deg, rgba(16, 13, 14, .78) 0%, rgba(16, 13, 14, .28) 20%, rgba(16, 13, 14, 0) 38%),
    linear-gradient(90deg, rgba(16, 13, 14, .66) 0%, rgba(16, 13, 14, .42) 22%, rgba(16, 13, 14, .12) 38%, rgba(16, 13, 14, 0) 52%);
}

.hero__body {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(48px, 7vh, 84px) 24px 104px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.hero__foot { display: flex; flex-direction: column; align-items: flex-start; }
.hero__foot > :first-child { margin-top: 0; }
.hero__foot .hero__bullets:empty { display: none; }

.hero__title {
  max-width: 560px;
  font-size: clamp(28px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.02em;
  text-shadow: 0 2px 22px rgba(12, 9, 10, .5);
}

.hero__highlight {
  display: block;
  width: fit-content;
  max-width: min(100%, 520px);
  margin-top: 24px;
  padding: 11px 20px;
  background: #fff;
  color: var(--red);
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 700;
  line-height: 1.25;
}

.hero__bullets { margin-top: 28px; display: grid; gap: 12px; max-width: 500px; }
.hero__bullets li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 500;
  text-shadow: 0 1px 14px rgba(12, 9, 10, .55);
}
.hero__bullets li::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--red);
}

.hero__cta { margin-top: 42px; }

.hero__nav {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  translate: -50% 0;
  width: 100%;
  max-width: var(--wrap);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  pointer-events: none;
}
.hero__nav > * { pointer-events: auto; }

.hero__arrows { display: flex; gap: 2px; }

.hero__arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background-color .18s;
}
.hero__arrow:hover { background: var(--red); }

.hero__dots {
  display: flex;
  gap: 10px;
}
.hero__dots button {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: background-color .2s;
}
.hero__dots button.is-active { background: var(--red); }

/* ---------- countdown ---------- */

.timer { background: var(--bg-soft); color: var(--ink); border-bottom: 1px solid var(--line); }

.timer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 24px;
  flex-wrap: wrap;
}

.timer__title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.timer__title .icon { color: var(--red); width: 24px; height: 24px; }

.timer__clock { display: flex; gap: 10px; }

.timer__cell {
  min-width: 74px;
  padding: 8px 6px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}
.timer__num { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.timer__unit { display: block; font-size: 11px; color: var(--muted); text-transform: lowercase; }

.timer__cta { min-height: 50px; }

/* ---------- sections ---------- */

.section { padding: 88px 0; }
.section--flush { padding-top: 0; }

.section__title {
  font-size: clamp(30px, 3.6vw, 50px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.section__lead {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--muted);
}

.section__lead--wide { max-width: none; }

/* ---------- model picker ---------- */

.picker {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.picker__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 104px;
  padding: 0 0 0 28px;
  background: var(--bg-soft);
  border: 0;
  border-bottom: 3px solid transparent;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background-color .2s, border-color .2s;
}
.picker__item:hover { background: #eef0f1; }
.picker__item.is-active { border-bottom-color: var(--red); }

.picker__name {
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 700;
  z-index: 1;
}

.picker__img {
  margin-left: auto;
  width: 56%;
  height: 100px;
  object-fit: contain;
  object-position: right center;
}

/* ---------- model card ---------- */

.model { padding-top: 56px; }

.model__inner {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 40px;
  align-items: start;
}

.model__panel {
  background: var(--bg-soft);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-height: 100%;
}

.model__title {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.model__benefit {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 16px 22px;
  background: var(--red);
  color: #fff;
  text-align: center;
}
.model__benefit-label { font-size: 15px; }
.model__benefit-value { font-size: 28px; font-weight: 700; line-height: 1.2; }

.model__specs { display: grid; gap: 14px; }
.model__specs li {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}
.model__specs .icon { color: var(--red); width: 22px; height: 22px; }

.model__price {
  margin-top: auto;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  color: var(--red);
  letter-spacing: -.02em;
}
.model__price-label { font-weight: 700; }

.model__stage {
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 16px;
  align-items: start;
}

.model__photo {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #fff;
  overflow: hidden;
}
.model__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.model__colors {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  padding-top: 8px;
}
.model__color {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: transform .18s, border-color .18s;
}
.model__color:hover { transform: scale(1.08); }
.model__color.is-active { border-color: var(--ink); }

.model__actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.model__actions .btn { min-height: 52px; padding: 0 16px; font-size: 12px; gap: 8px; }

.model__thumbs {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: var(--bg-soft);
  cursor: pointer;
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.thumb:hover img { transform: scale(1.05); }

.thumb__more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(20, 16, 17, .6);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* ---------- footnotes ---------- */

.note-ref {
  display: inline-block;
  margin-left: 3px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: .55em;
  font-weight: 700;
  vertical-align: super;
  line-height: 1;
  cursor: pointer;
  opacity: .75;
}
.note-ref:hover { opacity: 1; }

/* ---------- test drive ---------- */

.testdrive {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: var(--ink) center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.testdrive::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(20, 16, 17, .9) 0%, rgba(20, 16, 17, .6) 40%, rgba(20, 16, 17, 0) 70%);
}

.testdrive__body {
  position: relative;
  z-index: 1;
  padding: 56px 44px;
  max-width: 560px;
  display: grid;
  gap: 22px;
  justify-items: start;
}
.testdrive__title { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; letter-spacing: -.02em; }
.testdrive__text { font-size: 17px; color: #d9dcde; }

/* ---------- trade-in ---------- */

.tradein {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
.tradein__media { position: relative; overflow: hidden; }
.tradein__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tradein__panel { padding: 44px 40px; display: grid; gap: 22px; align-content: start; }
.tradein__title { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.tradein__text { color: var(--muted); }

/* ---------- forms ---------- */

.form { display: grid; gap: 22px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field--wide { grid-column: 1 / -1; }

.field { display: grid; gap: 7px; }
.field__label { font-size: 13px; color: var(--muted); }
.field__input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color .18s;
}
.field__input:hover { border-color: #c3c8cc; }
.field__input:focus { border-color: var(--ink); outline: none; }
.field__input:disabled { background: var(--bg-soft); color: var(--muted); }
select.field__input {
  appearance: none;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); }

.form__done {
  padding: 18px 20px;
  background: #eef7f0;
  border-left: 3px solid #2f8f4e;
  font-size: 15px;
}

/* ---------- credit ---------- */

.credit {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
.credit__panel { padding: 44px 40px; background: var(--bg-soft); }
.credit__media { position: relative; overflow: hidden; }
.credit__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.credit__note {
  padding: 18px 22px;
  background: #fff;
  border-left: 3px solid var(--red);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- stock ---------- */

.stock__filter { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.chip {
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.stock__grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.stock__more:not(:empty) { margin-top: 32px; display: flex; justify-content: center; }
.stock__more .btn { min-width: 280px; }

.car { display: flex; flex-direction: column; border: 1px solid var(--line); }

.car__media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.car__media img { width: 100%; height: 100%; object-fit: cover; }

.car__badge {
  position: absolute;
  left: 0;
  top: 16px;
  padding: 7px 14px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.car__open {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
}

.car__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  translate: 0 -50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  transition: opacity .18s, background-color .18s;
}
.car__nav .icon { width: 18px; height: 18px; }
.car__nav:hover { background: #fff; }
.car__nav--prev { left: 10px; }
.car__nav--next { right: 10px; }
.car__media:hover .car__nav,
.car__nav:focus-visible { opacity: 1; }

@media (hover: none) {
  .car__nav { opacity: 1; background: rgba(255, 255, 255, .82); }
}

.car__bars {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  gap: 4px;
}
.car__bars span {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, .45);
  transition: background-color .2s;
}
.car__bars span.is-on { background: var(--red); }

.car__body { padding: 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.car__name { font-size: 19px; font-weight: 700; line-height: 1.25; }
.car__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.car__tag { padding: 5px 10px; background: var(--bg-soft); font-size: 12px; color: var(--ink-soft); }

.car__prices { margin-top: auto; display: grid; gap: 2px; }
.car__price-old { font-size: 15px; color: var(--muted); text-decoration: line-through; }
.car__price { font-size: 26px; font-weight: 800; color: var(--red); letter-spacing: -.02em; }

/* ---------- документ ---------- */

.doc { max-width: 92ch; padding-top: 8px; }
.doc__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.doc__h2 {
  margin-top: 44px;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 800;
  line-height: 1.3;
}
.doc__h3 { margin-top: 28px; font-size: 16px; font-weight: 700; }
.doc p { margin-top: 14px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.doc__label { font-weight: 700; color: var(--ink) !important; }
.doc__list { margin-top: 12px; display: grid; gap: 8px; }
.doc__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.doc__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 2px;
  background: var(--red);
}
.doc__req { font-weight: 600; color: var(--ink) !important; }

/* ---------- marquee ---------- */

.marquee { background: var(--red); color: #fff; overflow: hidden; padding: 16px 0; }
.marquee__track {
  display: flex;
  gap: 60px;
  width: max-content;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
  animation: marquee 64s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- contacts ---------- */

.contacts { display: grid; grid-template-columns: 420px 1fr; gap: 40px; align-items: start; }
.contacts__title { font-size: clamp(28px, 3vw, 42px); }
.contacts__list { margin-top: 28px; display: grid; gap: 18px; }
.contacts__list li { display: grid; grid-template-columns: 28px 1fr; align-items: start; gap: 10px; font-size: 18px; font-weight: 600; }
.contacts__list .icon { color: var(--red); margin-top: 3px; }
.contacts__list a { text-decoration: none; }

.contacts__form { margin-top: 36px; padding: 30px 28px; background: var(--bg-soft); display: grid; gap: 18px; }
.contacts__form-title { font-size: 22px; font-weight: 700; }
.contacts__form-text { font-size: 14px; color: var(--muted); }

.contacts__map { height: 100%; min-height: 520px; border: 1px solid var(--line); }
.contacts__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- footer ---------- */

.footer { padding: 56px 0 40px; background: var(--ink); color: #c8ccce; font-size: 14px; }
.footer__top { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer__logo { height: 36px; width: auto; }
.footer__contacts { display: flex; gap: 28px; flex-wrap: wrap; color: #fff; font-weight: 600; }
.footer__contacts a { text-decoration: none; }

.legal { margin-top: 28px; }
.legal__summary { font-size: 16px; font-weight: 700; color: #fff; cursor: pointer; }
.legal__body { margin-top: 20px; display: grid; gap: 18px; max-width: 100ch; }
.legal__notes { display: grid; gap: 12px; counter-reset: note; }
.legal__notes li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #a9aeb1;
  transition: color .3s;
}
.legal__notes li::before { counter-increment: note; content: counter(note); color: var(--red); font-weight: 700; }
.legal__notes li.is-target { color: #fff; }
.legal__common, .legal__req { font-size: 13px; line-height: 1.55; color: #8f9497; }

.footer__policy { margin-top: 22px; font-size: 13px; }
.footer__policy a { color: #8f9497; text-decoration: underline; text-underline-offset: 3px; }
.footer__policy a:hover { color: #fff; }

/* ---------- cookie ---------- */

.cookie {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 56;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}
.cookie p { margin: 0; }
.cookie .btn { flex: none; min-height: 32px; padding: 0 14px; font-size: 11px; }

/* ---------- modal ---------- */

.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 16, 17, .7); }
.modal__dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 44px 40px;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
}
.modal__close, .lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.modal__title { font-size: 26px; font-weight: 800; letter-spacing: -.01em; padding-right: 40px; }
.modal__text { font-size: 14px; color: var(--muted); }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  grid-template-columns: 84px 1fr 84px;
  align-items: center;
  background: rgba(16, 13, 14, .94);
}
.lightbox__close { color: #fff; top: 20px; right: 20px; }
.lightbox__stage { display: grid; place-items: center; padding: 24px; }
.lightbox__stage img {
  width: 100%;
  max-width: 1100px;
  max-height: calc(100vh - 140px);
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #17181a;
}
.lightbox__arrow {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  transition: background-color .18s;
}
.lightbox__arrow:hover { background: var(--red); }
.lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 26px;
  translate: -50% 0;
  color: #b9bdbf;
  font-size: 14px;
}

body.is-locked { overflow: hidden; }

/* ---------- adaptive ---------- */

@media (max-width: 1180px) {
  .model__inner { grid-template-columns: 380px 1fr; gap: 28px; }
  .contacts { grid-template-columns: 360px 1fr; }
}

@media (max-width: 1024px) {
  :root { --header-h: 132px; }
  .section { padding: 64px 0; }
  .header__status { display: none; }
  .header__phone { font-size: 18px; }
  .model__inner { grid-template-columns: 1fr; }
  .model__panel { min-height: 0; }
  .tradein, .credit { grid-template-columns: 1fr; }
  .tradein__media, .credit__media { height: 320px; }
  .credit { direction: ltr; }
  .credit__media { order: -1; }
  .stock__grid { grid-template-columns: repeat(2, 1fr); }
  .header__nav-row { justify-content: flex-start; }
  .contacts { grid-template-columns: 1fr; }
  .contacts__map { min-height: 380px; }
}

@media (max-width: 820px) {
  :root { --header-h: 66px; }
  .header__row { gap: 14px; min-height: 66px; }
  .header__cta, .header__mark { display: none; }
  .header__phone { margin-left: auto; font-size: 17px; }
  .header__logo { height: 28px; }

  .header__burger { display: block; }
  .header__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .header__nav.is-open { display: block; }
  .header__nav-row {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    min-height: 0;
    padding: 6px 24px 16px;
    overflow: visible;
  }
  .nav-link {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
    padding-left: 12px;
    font-size: 15px;
  }
  .nav-link.is-active { border-bottom-color: var(--line); border-left-color: var(--red); }
  .picker { grid-template-columns: 1fr; gap: 12px; }
  .picker__item { min-height: 88px; padding-left: 20px; }
  .picker__img { height: 88px; }

  .model__inner { gap: 22px; }
  .model__panel, .model__media { display: contents; }
  .model__title { order: 1; }
  .model__benefit { order: 2; }
  .model__stage { order: 3; }
  .model__thumbs { order: 4; }
  .model__specs { order: 5; }
  .model__price { order: 6; }
  .model__panel > .btn { order: 7; }
  .model__actions { order: 8; }

  .model__stage { grid-template-columns: 1fr; gap: 18px; }
  .model__colors { flex-direction: row; flex-wrap: wrap; justify-content: center; padding-top: 0; }
  .model__specs { padding: 24px 20px; background: var(--bg-soft); gap: 16px; }
  .model__price { margin-top: 0; }
  .model__actions { display: none; }
  .model__thumbs {
    margin-top: 0;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .model__thumbs::-webkit-scrollbar { display: none; }
  .thumb { scroll-snap-align: start; }
  .form__grid { grid-template-columns: 1fr; }
  .tradein__panel, .credit__panel { padding: 30px 22px; }
  .testdrive__body { padding: 40px 24px; max-width: none; }
  .testdrive::after { background: linear-gradient(180deg, rgba(20, 16, 17, .88) 30%, rgba(20, 16, 17, .35) 100%); }
  .timer__row { justify-content: center; text-align: center; }
  .timer__cta { width: 100%; }
  .stock__grid { grid-template-columns: 1fr; }
  /* правый отступ — под плавающей кнопкой звонка Calltouch */
  .cookie { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 60px 8px 12px; font-size: 10px; text-align: left; }
  .cookie .btn { min-height: 30px; }
  .modal__dialog { padding: 34px 22px; }
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lightbox__arrow { position: static; }
  .lightbox__stage { grid-row: 1; }
  .lightbox__arrow--prev { grid-column: 1; grid-row: 2; justify-self: start; margin-left: 24px; }
  .lightbox__arrow--next { grid-column: 1; grid-row: 2; justify-self: end; margin-right: 24px; }
  .lightbox__counter { bottom: 76px; }
  .hero__arrows { display: none; }
  .hero__nav { bottom: 16px; padding: 0 20px; justify-content: center; }

  /* мобильная раскладка: фото сверху, текст в тёмной полосе под ним — без наложения */
  .pr--hero { min-height: 0; }
  .hero__slide {
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(46vw, 1fr) auto;
    grid-template-columns: 100%;
    align-items: stretch;
    background: var(--ink);
  }
  .hero__slide picture {
    position: relative;
    grid-area: 1 / 1;
    display: block;
    min-height: 0;
    overflow: hidden;
  }
  .hero__bg {
    transform: none;
    object-position: 50% 50% !important;
  }
  .hero__slide.is-active .hero__bg { transform: none; }
  .hero__shade {
    position: relative;
    grid-area: 1 / 1;
    inset: auto;
    align-self: end;
    height: 38%;
    background: linear-gradient(180deg, rgba(36, 30, 32, 0) 0%, rgba(36, 30, 32, .72) 62%, var(--ink) 100%);
  }
  .hero__body {
    grid-area: 2 / 1;
    padding: 22px 20px 62px;
    gap: 16px;
  }
  .hero__title { max-width: none; }
  .hero__highlight { margin-top: 16px; padding: 9px 14px; max-width: 100%; }
  .hero__bullets { margin-top: 18px; gap: 10px; max-width: none; }
  .hero__bullets li { grid-template-columns: 26px 1fr; font-size: 15px; }
  .hero__bullets li::before { width: 16px; }
  .hero__cta { margin-top: 24px; }
  .model__specs li { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__bg { transform: none; }
}
