:root {
  --ink: #17140d;
  --ink-soft: #6b6255;
  --bg: #f8f6f2;
  --card: #ffffff;
  --accent: #c9962e;
  --accent-2: #17140d;
  --line: #ece7dd;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(23, 20, 13, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding-left: clamp(20px, 3vw, 48px);
  padding-right: clamp(20px, 3vw, 48px);
}

.demo-badge {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 8px 12px;
  letter-spacing: 0.02em;
}

/* Header */
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; }
.logo__icon { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.logo__accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #ff5a4e);
  color: #fff;
  box-shadow: 0 6px 16px rgba(201, 150, 46, 0.32);
}
.btn--secondary {
  background: var(--ink);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 10px 18px;
}
.btn--block { width: 100%; }
.consent-check { display:flex; align-items:flex-start; gap:10px; font-size:13px; line-height:1.45; color:var(--ink-soft); }
.consent-check input { width:18px; height:18px; flex:0 0 auto; margin-top:1px; }
.consent-check a { color:inherit; text-decoration:underline; }

/* Hero */
.hero {
  background: radial-gradient(circle at 20% 20%, rgba(201,150,46,0.14), transparent 55%), var(--ink);
  color: #fff;
  padding: 54px 0 48px;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  text-align: left;
  max-width: 1480px;
}
.hero__copy { min-width: 0; }
.hero h1 { font-size: 38px; line-height: 1.15; margin: 0 0 16px; }
.hero h1 { max-width: 900px; }
.hero__subtitle { font-size: 17px; color: #c7cede; margin: 0 0 28px; max-width: 760px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__visual { min-width: 0; display: flex; justify-content: center; }
.hero__visual img {
  display: block;
  width: min(100%, 590px);
  height: auto;
  object-fit: contain;
}
.hero .btn--secondary { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); }

/* Интерактивный обзор автомобиля */
.car-experience {
  padding: 72px 0;
  background:
    radial-gradient(circle at 16% 42%, rgba(201, 150, 46, 0.16), transparent 34%),
    #000;
  color: #fff;
  overflow: hidden;
  transition: background 360ms ease, color 260ms ease;
}
.car-experience[data-presentation-active="1"] {
  padding-top: 56px;
  padding-bottom: 56px;
  background:
    radial-gradient(circle at 84% 20%, rgba(26, 103, 183, 0.28), transparent 35%),
    linear-gradient(112deg, #e2f3ff 0%, #b9dcf7 40%, #2d78bd 100%);
  color: #061a3a;
}
.car-experience[data-presentation-active="1"] h2 { font-size: clamp(34px, 4.4vw, 56px); }
.car-experience__layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.72fr);
  gap: 18px;
  align-items: center;
}
.car-experience__copy { position: relative; z-index: 2; min-width: 0; }
.car-presentation-copy { display: none; }
.car-presentation-copy.is-active { display: block; animation: presentation-in 280ms ease both; }
.car-experience__eyebrow {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.car-experience h2 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 0 0 20px;
}
.car-experience h2 span { white-space: nowrap; }
.car-experience__copy p {
  color: #a9a9ad;
  font-size: 15px;
  max-width: 34ch;
  margin: 0;
}
.car-experience[data-presentation-active="1"] .car-experience__eyebrow { color: #17385f; }
.car-experience[data-presentation-active="1"] .car-experience__copy p { color: #24496e; }
.car-presentation-nav { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 40px; }
.car-presentation-tabs { display: flex; align-items: flex-end; gap: 24px; min-width: 0; }
.car-presentation-tab { position: relative; padding: 7px 0 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #777980; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.car-presentation-tab span { margin-right: 8px; color: #8d8f95; font-size: 11px; }
.car-presentation-tab.is-active { color: #fff; border-bottom-color: var(--accent); }
.car-presentation-tab.is-active span { color: var(--accent); }
.car-experience[data-presentation-active="1"] .car-presentation-tab { color: rgba(6, 26, 58, 0.56); }
.car-experience[data-presentation-active="1"] .car-presentation-tab.is-active { color: #061a3a; border-bottom-color: #061a3a; }
.car-experience[data-presentation-active="1"] .car-presentation-tab.is-active span { color: #061a3a; }
.car-presentation-arrows { display: flex; gap: 10px; flex: none; }
.car-presentation-arrows button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0 0 3px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 29px; line-height: 1; cursor: pointer; }
.car-experience[data-presentation-active="1"] .car-presentation-arrows button { border-color: rgba(6,26,58,.12); background: rgba(255,255,255,.54); color: #0a315d; }
.car-presentation-hint { display: block; margin-top: 13px; color: #777980; font-size: 11px; }
.car-experience[data-presentation-active="1"] .car-presentation-hint { color: rgba(6,26,58,.55); }
#car-360-canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.car-viewer {
  min-width: 0;
  position: relative;
  margin-right: -4vw;
  transform: translateX(22px);
}
.car-experience[data-presentation-active="1"] .car-viewer { margin-right: 0; transform: none; }
.car-presentation-media { display: none; }
.car-presentation-media.is-active { display: block; animation: presentation-media-in 320ms ease both; }
.car-viewer__stage {
  position: relative;
  aspect-ratio: 9 / 5;
  min-height: 300px;
  overflow: visible;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.car-viewer__stage:active { cursor: grabbing; }
#car-360-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y pinch-zoom;
}
.car-viewer__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #a9a9ad;
  font-size: 13px;
  background: transparent;
  transition: opacity 300ms ease, visibility 300ms ease;
}
.car-viewer--ready .car-viewer__loading { opacity: 0; visibility: hidden; }
.car-viewer__hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(12, 12, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #d5d5d8;
  font-size: 12px;
  transition: opacity 220ms ease, transform 220ms ease;
}
.car-viewer--interacted .car-viewer__hint { opacity: 0; transform: translate(-50%, 8px); }
.car-viewer__gesture { color: var(--accent); font-size: 18px; line-height: 1; }
.car-viewer--video .car-viewer__stage {
  cursor: default;
  overflow: visible;
  aspect-ratio: 16 / 9;
  background: #000;
  isolation: isolate;
}
.car-viewer--video .car-viewer__stage::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: -2px;
  pointer-events: none;
  box-shadow:
    inset 0 0 54px 22px #000,
    inset 0 0 110px 34px rgba(0, 0, 0, 0.82);
}
#zeekr-showreel {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: scale(1.08);
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 80% 78% at 50% 50%, #000 42%, rgba(0, 0, 0, 0.96) 56%, rgba(0, 0, 0, 0.62) 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 78% at 50% 50%, #000 42%, rgba(0, 0, 0, 0.96) 56%, rgba(0, 0, 0, 0.62) 70%, transparent 100%);
}
#zeekr-showreel::-webkit-media-controls,
#zeekr-showreel::-webkit-media-controls-enclosure { display: none !important; }
.car-presentation-media--bmw .car-viewer__stage { overflow: hidden; border: 1px solid rgba(255,255,255,.78); border-radius: 16px; background: #071525; box-shadow: 0 18px 46px rgba(5,38,71,.24); }
.car-presentation-media--bmw .car-viewer__stage::after { display: none; }
#bmw-showreel { display: block; width: 100%; height: 100%; object-fit: contain; background: #071525; }
#bmw-showreel::-webkit-media-controls,
#bmw-showreel::-webkit-media-controls-enclosure { display: none !important; }
.car-video-controls { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.car-video-controls button { pointer-events: auto; border: 0; color: #fff; cursor: pointer; backdrop-filter: blur(8px); }
.car-video-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(7,18,32,.64); transform: translate(-50%,-50%); transition: opacity .18s ease, transform .18s ease, background .18s ease; }
.car-video-play span { display: block; margin-left: 4px; font-size: 26px; line-height: 1; }
.car-video-play.is-playing { opacity: 0; pointer-events: none; }
.car-viewer__stage.is-controls-visible .car-video-play.is-playing,
.car-video-play.is-playing:focus-visible { opacity: .9; pointer-events: auto; }
@media (hover: hover) and (pointer: fine) {
  .car-viewer__stage:hover .car-video-play.is-playing { opacity: .9; pointer-events: auto; }
}
.car-video-play.is-playing span { margin-left: 0; font-size: 19px; letter-spacing: -2px; }
.car-video-play:hover { background: rgba(7,18,32,.82); transform: translate(-50%,-50%) scale(1.04); }
.car-video-sound { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(7,18,32,.68); font-size: 17px; }
.car-presentation-media:not(.car-presentation-media--bmw) .car-video-sound { right: clamp(14px, 4vw, 58px); }
.car-video-sound.is-unmuted { background: rgba(201,150,46,.88); }
.sound-icon, .sound-icon svg { display: block; width: 21px; height: 21px; }
.sound-icon svg { fill: #fff; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sound-icon .sound-wave { fill: none; display: none; }
.sound-icon .sound-muted { fill: none; }
.car-video-sound.is-unmuted .sound-wave { display: block; }
.car-video-sound.is-unmuted .sound-muted { display: none; }
.car-video-duration { position: absolute; z-index: 3; right: 14px; bottom: 66px; padding: 4px 8px; border-radius: 999px; background: rgba(7,18,32,.72); color: #fff; font-size: 11px; }
.car-presentation-media:not(.car-presentation-media--bmw) .car-video-duration { display: none; }
@keyframes presentation-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes presentation-media-in { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: translateX(0); } }

/* Sections */
.section { padding: 56px 0; }
.section--alt { background: #eef1f8; }
.section__title { font-size: 26px; margin: 0 0 6px; }
.section__hint { color: var(--ink-soft); margin: 0 0 28px; font-size: 15px; }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink-soft);
}
.chip--active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Cars grid */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.car-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.car-card__media {
  height: clamp(190px, 15vw, 240px);
  position: relative;
  background: #ece7dd;
  overflow: hidden;
}
.car-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
}
.badge--available { color: #1a7d3a; }
.badge--transit { color: #b06a00; }
.badge--stock { color: #1a4d9e; }
.badge--new { color: var(--accent); font-weight: 700; }

/* Promo */
.promo {
  padding: 48px 0;
  background: linear-gradient(135deg, #17140d, #2c2210);
}
.promo__inner { max-width: 1100px; }
.promo-card { display: grid; grid-template-columns: minmax(0, .82fr) minmax(320px, 1fr); gap: 38px; align-items: center; }
.promo-card + .promo-card { margin-top: 40px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.14); }
.promo-card__copy { color: #fff; }
.promo-card__copy h2 { margin: 8px 0 12px; font-size: clamp(28px, 4vw, 46px); line-height: 1.08; }
.promo-card__copy > p:not(.promo-card__eyebrow) { margin: 0; color: rgba(255,255,255,.76); font-size: 17px; line-height: 1.6; }
.promo-card__eyebrow { margin: 0; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.promo-card__cta { margin-top: 24px; }
.promo__poster-link { display: block; line-height: 0; }
.promo__poster {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
}
@media (max-width: 760px) { .promo { padding: 34px 0; } .promo-card { grid-template-columns: 1fr; gap: 24px; } .promo-card__copy h2 { font-size: 30px; } .promo-card__copy > p:not(.promo-card__eyebrow) { font-size: 15px; } .promo-card__cta { width: 100%; justify-content: center; } }
.car-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.car-card__body h3 { font-size: 16px; margin: 0; }
.car-card__specs { font-size: 13px; color: var(--ink-soft); margin: 0; }
.car-card__price { font-size: 17px; font-weight: 700; margin: 4px 0 8px; }
.car-card__price span { font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.catalog-loading, .catalog-empty { color: var(--ink-soft); margin: 0; }
.reserved-card__note { margin: 0; font-size: 13px; color: var(--ink-soft); }
.reserved-card__ordered { font-size: 12px; color: #9a5a00; }
.reserved-card__source { font-size: 13px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.reserved-card--clickable { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.catalog-card--clickable { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.reserved-card--clickable:hover { transform: translateY(-3px); }
.catalog-card--clickable:hover { transform: translateY(-3px); }
.reserved-card--clickable:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.catalog-card--clickable:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.reserved-card .car-card__media { background: #e5e1d9; }
.reserved-card .car-card__media img { object-fit: contain; }

.gallery-open { overflow: hidden; }
.reserved-gallery {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
}
.reserved-gallery.is-open { display: block; }
.reserved-gallery__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 6, .78);
}
.reserved-gallery__panel {
  position: absolute;
  inset: 24px;
  max-width: 1320px;
  margin: auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  overflow: hidden;
}
.reserved-gallery__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 20, 13, .86);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.reserved-gallery__main {
  min-height: 0;
  background: #161513;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reserved-gallery__main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.reserved-gallery__info { padding: 28px 18px 20px; overflow: auto; }
.reserved-gallery__info h2 { margin: 0 40px 4px 0; font-size: 21px; }
.reserved-gallery__city { margin: 0 0 18px; color: var(--ink-soft); font-size: 14px; }
.reserved-gallery__thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.reserved-gallery__thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #e5e1d9;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}
.reserved-gallery__thumbs button.is-active { border-color: var(--accent); }
.reserved-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 760px) {
  .reserved-gallery__panel { inset: 10px; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .reserved-gallery__info { padding: 14px; max-height: 190px; }
  .reserved-gallery__thumbs { grid-template-columns: repeat(5, minmax(58px, 1fr)); overflow-x: auto; }
}
.header__actions { display: flex; gap: 8px; align-items: center; }
.header__actions .btn { display:inline-flex;align-items:center;justify-content:center;width:174px;min-height:44px;padding:9px 12px;line-height:1.2;white-space:nowrap; }
.header__actions .header__cabinet { width:210px;padding-inline:20px; }
.btn--cabinet { border:1px solid #dfcfaa;background:#fffaf0;color:var(--ink);box-shadow:inset 0 1px rgba(255,255,255,.8),0 3px 10px rgba(201,150,46,.09); }
.cabinet-user-icon { position:relative;flex:0 0 auto;width:18px;height:18px;margin-right:8px;border:1.6px solid currentColor;border-radius:50%; }
.cabinet-user-icon::before { position:absolute;top:3px;left:50%;width:4px;height:4px;transform:translateX(-50%);border:1.4px solid currentColor;border-radius:50%;content:""; }
.cabinet-user-icon::after { position:absolute;bottom:2px;left:50%;width:9px;height:4px;transform:translateX(-50%);border:1.4px solid currentColor;border-bottom:0;border-radius:8px 8px 0 0;content:""; }
.mobile-cabinet-access { display:none; }
.services-note-link { border-radius:999px; }

@media (max-width: 560px) {
  .header__actions { gap: 6px; }
  .header__actions .btn { width:auto;min-height:40px;padding:8px 12px;font-size:12px; }
  .header__cabinet { display:none !important; }
  .header__actions .header__gallery { display:none; }
  .mobile-cabinet-access { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:10px 16px;border-bottom:1px solid #34373b;background:#222428;color:#fff; }
  .mobile-cabinet-access__copy { min-width:0; }
  .mobile-cabinet-access__copy strong,.mobile-cabinet-access__copy small { display:block; }
  .mobile-cabinet-access__copy strong { font-size:13px;line-height:1.25; }
  .mobile-cabinet-access__copy small { margin-top:2px;color:#aaaeb3;font-size:10px; }
  .mobile-cabinet-access__button { display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;min-height:44px;padding:7px 13px;border-radius:10px;font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap; }
  .mobile-cabinet-access__button .cabinet-user-icon { margin-right:6px; }
}

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 1000px; }
.faq__item {
  background: var(--card);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
}
.faq__item summary { cursor: pointer; font-weight: 600; }
.faq__item p { margin: 10px 0 2px; color: var(--ink-soft); font-size: 14px; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.service-card {
  background: var(--card);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.service-card__num { font-size: 13px; font-weight: 700; color: var(--accent); min-width: 22px; }
.service-card__title { font-size: 15px; font-weight: 600; margin: 0; line-height: 1.35; }
.services-note { margin-top: 18px; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

.client-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.client-gallery__item { padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; cursor: pointer; }
.client-gallery__item img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.client-gallery__item { position: relative; }
.client-gallery__item video { display: block; width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #090a0c; }
.gallery-video-mark { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.72); color: #fff; font-style: normal; }
.client-gallery__item span { display: grid; gap: 3px; padding: 12px 14px; }
.client-gallery__item b { font-size: 14px; }
.client-gallery__item small { color: var(--ink-soft); font-size: 12px; }
.gallery-preview { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 12px; margin-bottom: 16px; }
.gallery-show-all { margin-top: 22px; }
.full-gallery-modal { position: fixed; inset: 0; z-index: 650; display: none; }
.full-gallery-modal.is-open { display: grid; place-items: center; padding: 20px; }
.full-gallery-modal__backdrop { position: absolute; inset: 0; z-index: 0; background: rgba(10, 9, 6, .76); }
.full-gallery-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  overflow: auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .4);
  padding: 28px;
}
.full-gallery-modal__title { margin: 0 44px 16px 0; font-size: 24px; }
.full-gallery-modal__close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 25px; cursor: pointer; }
.full-gallery-modal__grid { margin-top: 0; }
@media (max-width: 720px) { .full-gallery-modal__panel { padding: 20px; } .full-gallery-modal__grid.client-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
@media (max-width: 420px) { .full-gallery-modal__grid.client-gallery { grid-template-columns: 1fr; } }
.contact-location { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.contact-location .contact-address { margin: 0; }
.btn--route { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 5px 10px 3px; color: #fff; background: #df3037; border: 1px solid #c9232a; border-radius: 9px; box-shadow: 0 2px 8px rgba(170, 28, 35, .18); font-size: 12.5px; line-height: 1; animation: route-fill-attention 1.8s ease-in-out infinite; }
.attention-pulse { position: relative; isolation: isolate; }
.attention-pulse::after { position: absolute; z-index: -1; inset: -2px; border: 1px solid rgba(230, 198, 117, .9); border-radius: inherit; box-shadow: 0 0 0 3px rgba(230, 198, 117, .14), 0 0 18px rgba(201, 150, 46, .28); content: ""; opacity: 0; pointer-events: none; animation: contact-link-attention 1.6s cubic-bezier(.77, 0, .175, 1) infinite; }
.btn--route.attention-pulse::after { z-index: 1; inset: 0; border: 2px solid rgba(255,255,255,1); box-shadow: none; opacity: .35; animation: outline-attention 1.8s ease-in-out infinite; }
.bonus-site-btn { position: relative; isolation: isolate; min-height: 42px; padding: 10px 17px; color: #fff; background: #e98224; border: 1px solid #cf6c13; border-radius: 12px; box-shadow: 0 4px 14px rgba(207,108,19,.2); animation: bonus-fill-attention 1.8s ease-in-out infinite; }
.bonus-site-btn::after { position: absolute; z-index: 1; inset: 0; border: 2px solid rgba(255,255,255,1); border-radius: inherit; content: ""; opacity: .35; pointer-events: none; animation: outline-attention 1.8s ease-in-out infinite; }
@keyframes outline-attention { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes route-fill-attention { 0%, 100% { background-color: #df3037; } 50% { background-color: #f45a60; } }
@keyframes bonus-fill-attention { 0%, 100% { background-color: #e98224; } 50% { background-color: #f6a756; } }
@media (max-width: 720px) { .client-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .header__gallery { display: none; } }
@media (max-width: 420px) { .client-gallery { grid-template-columns: 1fr; } }

/* Videos */
.video-reviews-link { margin-top: 22px; }
.videos-grid--latest { margin-top: 22px; }
.videos-page { min-height: 100vh; background: var(--bg); }
.videos-page__header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.videos-page__header .container { display: flex; align-items: center; min-height: 72px; }
.videos-back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; text-decoration: none; }
.videos-back::before { content: "←"; font-size: 22px; }
.videos-page__main { padding-top: 44px; padding-bottom: 72px; }
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1200px;
}
.video-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.video-card__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}
.video-card__frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-card__title { padding: 12px 16px; font-size: 14px; font-weight: 600; margin: 0; }

@media (max-width: 700px) {
  .videos-grid { grid-template-columns: 1fr; }
  .videos-page__header .container { min-height: 60px; }
  .videos-page__main { padding-top: 28px; }
}

/* Referral */
.referral-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  max-width: 760px;
}
.referral-card .section__hint { margin-bottom: 20px; }
.referral-card__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.referral-card__link span { font-size: 13px; color: var(--ink-soft); }
.referral-card__link code {
  background: #eef1f8;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  word-break: break-all;
}
.referral-card__stats { display: flex; gap: 20px; }
.referral-stat { text-align: center; flex: 1; }
.referral-stat strong { display: block; font-size: 20px; }
.referral-stat span { font-size: 12px; color: var(--ink-soft); }

/* Contact form */
.contact-form {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form[hidden] { display: none; }
#application-open { margin-bottom: 18px; }
.contact-form__row { display: flex; gap: 12px; }
.contact-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 15px;
}
.contact-links { display: flex; gap: 10px; margin-top: 16px; flex-wrap: nowrap; }
.contact-address { color: var(--ink-soft); font-size: 14px; margin-top: 14px; }
.contact-link {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 150, 46, .72);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
  cursor: pointer;
  isolation: isolate;
  transition: transform 140ms cubic-bezier(.23, 1, .32, 1), background-color 140ms ease-out, box-shadow 140ms ease-out;
}
.contact-link::after {
  position: absolute;
  z-index: -1;
  inset: -2px;
  border: 1px solid rgba(230, 198, 117, .9);
  border-radius: inherit;
  box-shadow: 0 0 0 3px rgba(230, 198, 117, .14), 0 0 18px rgba(201, 150, 46, .28);
  content: "";
  opacity: 0;
  pointer-events: none;
}
.contact-links.is-attention-ready .contact-link::after {
  animation: contact-link-attention 1.6s cubic-bezier(.77, 0, .175, 1) infinite;
}
.contact-link:active {
  transform: translateY(1px);
  background: #fbf4df;
  box-shadow: inset 0 1px 4px rgba(147, 113, 31, .16);
}
.contact-link:focus-visible {
  outline: 3px solid rgba(230, 198, 117, .38);
  outline-offset: 3px;
}
@keyframes contact-link-attention {
  0%, 100% { opacity: 0; }
  48% { opacity: 1; }
}

/* Footer */
.footer { padding: 28px 0 60px; text-align: center; color: var(--ink-soft); font-size: 13px; }
.social-links { display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.social-link {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.social-link svg { width: 25px; height: 25px; fill: currentColor; }
.social-link--telegram { color: #229ed9; }
.social-link--youtube { color: #ff0000; }
.social-link--instagram { color: #d62976; }
.social-link--instagram rect, .social-link--instagram circle:not(.social-icon-dot) { fill: none; stroke: currentColor; stroke-width: 2; }
.social-link--instagram .social-icon-dot { fill: currentColor; }
.social-link--vk { color: #0077ff; }
.social-link--tiktok, .social-link--dzen { color: #111; }
.social-link--dzen .social-icon-cut { fill: #fff; }
.social-link--max { border-color: #d9d8ed; }
.social-link--max svg { width: 29px; height: 29px; }
.contact-form__status { min-height: 20px; margin: 0; font-size: 13px; color: var(--ink-soft); }

.info-modal { position: fixed; inset: 0; z-index: 700; display: none; }
.info-modal.is-open { display: grid; place-items: center; padding: 20px; }
.info-modal__backdrop { position: absolute; inset: 0; z-index: 0; background: rgba(10, 9, 6, .76); }
.info-modal__panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .4);
  padding: 28px;
}
.info-modal__panel h2 { margin: 0 44px 6px 0; font-size: 24px; }
.info-modal__close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 25px; cursor: pointer; }
.contact-card__phone { margin: 0 0 16px; color: var(--ink-soft); font-size: 18px; }
/* Compact, equal-width contact tiles. Class names stay unchanged so all
   existing phone, Telegram and MAX links and analytics remain intact. */
.contact-card__actions { display: flex; gap: 7px; }
.contact-circle { flex: 1 1 0; min-width: 0; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; border: 1px solid #e4dccb; border-radius: 12px; background: #fbf7ed; text-decoration: none; color: var(--ink); }
.contact-circle__icon { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 21px; height: 21px; }
.contact-circle__icon svg { width: 20px; height: 20px; flex-shrink: 0; }
.contact-circle__label { min-width: 0; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.contact-circle:active { transform: scale(0.97); }
.contact-circle:focus-visible { outline: 3px solid rgba(201, 150, 46, .28); outline-offset: 2px; }
.referral-terms p { margin: 0 0 14px; color: var(--ink-soft); }
.referral-terms.is-authenticating > p { display: none; }
.referral-terms.is-authenticating .referral-personal { margin-top: 8px; }
.referral-personal { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.referral-personal code { display: block; padding: 11px 12px; background: #eef1f8; border-radius: 8px; word-break: break-all; }
.referral-auth { display: grid; gap: 9px; }
.referral-auth p { margin: 0 0 4px; }
.referral-auth label { font-size: 14px; font-weight: 700; color: var(--ink); }
.referral-auth input { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.referral-auth input:focus { outline: 2px solid rgba(201, 150, 46, .28); border-color: var(--accent); }
.referral-auth small { color: var(--ink-soft); line-height: 1.45; }
.referral-auth .form-error { min-height: 18px; color: #b42318; font-size: 14px; }
.referral-auth button { margin-top: 2px; }
.social-link:hover { border-color: var(--accent); color: var(--accent); }

/* Tablet */
@media (max-width: 900px) {
  .cars-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__visual img { width: min(100%, 600px); }
  .hero h1 { font-size: 32px; }
  .car-experience__layout { grid-template-columns: 1fr; gap: 28px; }
  .car-experience__copy { max-width: 560px; }
  .car-experience__copy p { max-width: 50ch; }
  .car-presentation-nav { margin-top: 28px; }
}

/* Mobile */
@media (max-width: 560px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .cars-grid { grid-template-columns: 1fr; }
  .hero { padding: 37px 0 34px; }
  .hero__inner { gap: 18px; }
  .hero h1 { font-size: 26px; }
  .hero__subtitle { font-size: 15px; }
  .hero__visual img { width: 100%; }
  .section { padding: 40px 0; }
  .contact-form__row { flex-direction: column; }
  .contact-links { gap: 7px; }
  .contact-link { padding-inline: 7px; font-size: 13px; }
  .header__contact { padding: 8px 14px; font-size: 14px; }
  .referral-card__stats { flex-wrap: wrap; gap: 12px; }
  .car-experience { padding: 48px 0; }
  .car-experience__layout { gap: 22px; }
  .car-experience h2 { font-size: 38px; }
  .car-experience[data-presentation-active="1"] { padding-top: 48px; padding-bottom: 48px; }
  .car-experience[data-presentation-active="1"] h2 { font-size: 38px; }
  .car-experience__copy p { font-size: 14px; }
  .car-presentation-nav { align-items: center; margin-top: 24px; }
  .car-presentation-tabs { gap: 14px; overflow-x: auto; max-width: calc(100% - 96px); scrollbar-width: none; }
  .car-presentation-tabs::-webkit-scrollbar { display: none; }
  .car-presentation-tab { font-size: 12px; }
  .car-presentation-tab span { margin-right: 5px; }
  .car-presentation-arrows button { width: 40px; height: 40px; }
  .car-viewer { margin-right: 0; transform: none; }
  .car-viewer { touch-action: pan-y; }
  .car-viewer__stage { min-height: 210px; }
  .car-viewer--video .car-viewer__stage::after {
    box-shadow:
      inset 0 0 34px 14px #000,
      inset 0 0 68px 22px rgba(0, 0, 0, 0.82);
  }
  .car-viewer__hint { bottom: 12px; }
  .car-video-play { width: 62px; height: 62px; }
  .car-video-sound { right: 10px; bottom: 10px; }
  .car-video-duration { right: 10px; bottom: 60px; }
  .info-modal__panel { padding: 22px 18px; }
  .contact-card__actions { gap: 6px; }
  .contact-circle { min-height: 44px; gap: 4px; padding: 7px 4px; }
  .contact-circle__icon, .contact-circle__icon svg { width: 18px; height: 18px; }
  .contact-circle__label { font-size: 11px; }
}

@media (max-width: 340px) {
  .contact-card__actions { gap: 5px; }
  .contact-circle { gap: 3px; padding-inline: 3px; }
  .contact-circle__label { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .car-viewer__loading { animation: none; }
  .car-viewer__hint { transition: none; }
  .contact-links.is-attention-ready .contact-link::after { animation: none; opacity: .55; }
  .attention-pulse::after { animation: none; opacity: .55; }
  .btn--route.attention-pulse::after { animation: none; opacity: .7; }
  .bonus-site-btn::after { animation: none; opacity: .7; }
  .btn--route, .bonus-site-btn { animation: none; }
  .car-experience, .car-presentation-copy.is-active, .car-presentation-media.is-active { animation: none; transition: none; }
  .contact-link { transition: background-color 140ms ease-out, box-shadow 140ms ease-out; }
  .contact-link:active { transform: none; }
}

/* ===== BMW X4 — тестовый интерактивный 3D-просмотр ===== */
.car-card__media { position: relative; }
.car-card__media--3d { cursor: pointer; }
.car-card__3d-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(23, 20, 13, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.car-card__3d-hint::before { content: '⟳'; font-size: 14px; line-height: 1; }

.car3d-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
}
.car3d-modal.is-open { display: block; }
.car3d-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 6, 0.72);
}
.car3d-modal__panel {
  position: absolute;
  inset: 16px;
  margin: 0 auto;
  max-width: 1200px;
  background: #eeeeec;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.car3d-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(23, 20, 13, 0.5);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.car3d-modal__stage {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 38%, #f5f5f3, #dcdcda 88%);
}
.car3d-modal__stage canvas { display: block; width: 100%; height: 100%; }
.car3d-modal__badge {
  position: absolute;
  right: 20px;
  bottom: 16px;
  max-width: 32%;
  text-align: right;
  color: rgba(23, 20, 13, 0.45);
  font-size: 10.5px;
  line-height: 1.4;
  z-index: 15;
}
.car3d-modal__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.04em;
  z-index: 15;
}

/* Навигация — поверх сцены, как в референсе */
.car3d-tabs {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 60px;
  z-index: 15;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.car3d-tab {
  border: none;
  background: transparent;
  color: rgba(23, 20, 13, 0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.car3d-tab.is-active { color: var(--ink); }
.car3d-tab.is-active::after {
  content: '';
  display: block;
  margin-top: 4px;
  height: 2px;
  background: var(--accent);
}

/* Текст — поверх сцены слева, машина держится справа камерой */
.car3d-panels {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 15;
  max-width: 340px;
}
.car3d-panel { display: none; }
.car3d-panel.is-active { display: block; animation: car3d-fade 0.3s ease; }
@keyframes car3d-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.car3d-panel h3 { margin: 0 0 8px; font-size: 19px; color: var(--ink); }
.car3d-panel p { margin: 0 0 8px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; }

.car3d-spec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.car3d-spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(23, 20, 13, 0.1);
  font-size: 13px;
}
.car3d-spec-list li span:first-child { color: var(--ink-soft); }
.car3d-spec-list li span:last-child { font-weight: 700; }

.car3d-feature-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.car3d-feature-grid .num { color: var(--accent); font-weight: 800; font-size: 12px; }
.car3d-feature-grid h4 { margin: 2px 0 2px; font-size: 14px; }
.car3d-feature-grid p { margin: 0; font-size: 12.5px; }

.car3d-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.car3d-cta .car3d-price { font-size: 20px; font-weight: 800; }
.car3d-cta .car3d-price span { display: block; font-size: 12px; font-weight: 500; color: var(--ink-soft); }

@media (max-width: 768px) {
  .car3d-modal__panel { inset: 0; border-radius: 0; }
  .car3d-tabs { top: 14px; left: 14px; right: 50px; gap: 2px; }
  .car3d-tab { padding: 6px 8px; font-size: 10.5px; }
  .car3d-panels { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .car3d-panel h3 { font-size: 17px; }
  .car3d-panel p { font-size: 12.5px; }
  .car3d-modal__badge { top: 84px; right: 14px; bottom: auto; max-width: 55%; font-size: 9px; }
}
