:root {
  --bg0: #070708;
  --bg1: #0e0f12;
  --bg2: #16181e;
  --line: rgba(255, 245, 220, 0.12);
  --text: #f4efe6;
  --muted: #9a9489;
  --accent: #e8b44a;
  --accent2: #2ee6a8;
  --danger: #ff5c5c;
  --radius: 14px;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background: radial-gradient(1200px 800px at 10% -10%, rgba(232, 180, 74, 0.08), transparent 55%),
    radial-gradient(900px 600px at 95% 20%, rgba(46, 230, 168, 0.06), transparent 50%), var(--bg0);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-x: hidden;
}

.main {
  flex: 1;
}

.container {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.mono-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 7, 8, 0.78);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(112deg, #ffffff 0%, #ffffff 44%, #e8b44a 50%, #ffffff 56%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoShimmer 6s linear infinite;
  text-shadow: 0 0 16px rgba(232, 180, 74, 0.2);
}

.logo span {
  color: var(--accent);
}

@keyframes logoShimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.9rem;
  color: var(--muted);
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #c4922e);
  color: #1a1204;
  box-shadow: 0 8px 28px rgba(232, 180, 74, 0.28);
}

.btn--telegram.btn--primary {
  background: linear-gradient(135deg, #2aabee, #229ed9);
  color: #fff;
  box-shadow: 0 8px 28px rgba(34, 158, 217, 0.38);
}

.btn--telegram.btn--primary:hover {
  filter: brightness(1.07);
}

.btn--ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.catalog-apply.btn--ghost {
  border-color: rgba(255, 214, 120, 0.95);
  color: #fff5d6;
  background: linear-gradient(135deg, #f1c86a, #d49b2f);
  box-shadow: 0 10px 24px rgba(232, 180, 74, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.catalog-apply.btn--ghost:hover {
  background: linear-gradient(135deg, #ffd978, #e2aa3d);
  border-color: #ffe09a;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.car-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}

.car-card:hover {
  border-color: rgba(232, 180, 74, 0.35);
  transform: translateY(-3px);
}

.car-card__img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.car-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.car-card:hover .car-card__img {
  transform: scale(1.04);
}

.car-card__body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.car-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
}

.car-card__title:hover {
  color: var(--accent);
}

.car-card__meta {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
}

.car-card__price {
  margin-top: auto;
  padding-top: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent2);
}

.search-bar input,
.filter-field input,
.filter-field select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg2);
}

.search-bar input::placeholder {
  color: var(--muted);
}

.catalog-apply {
  width: 100%;
}

.catalog-reset-link {
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  white-space: nowrap;
}

.catalog-reset-link:hover {
  color: var(--accent);
}

.page-head__catalog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
}

.filters {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: grid;
  gap: 1rem;
  height: fit-content;
  position: sticky;
  top: 5.5rem;
}

.filters h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
}

.filter-field label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.filter-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* Убираем стрелки +/- в numeric полях фильтров (цена/год/пробег). */
.filters input[type='number']::-webkit-outer-spin-button,
.filters input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.filters input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .filters {
    position: static;
  }

  .filter-field input,
  .filter-field select,
  .catalog-apply {
    min-height: 44px;
  }
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 840px) {
  .detail-hero {
    grid-template-columns: 1fr;
  }
}

.gallery-main {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0c;
  aspect-ratio: 16 / 11;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.gallery-thumbs button {
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  opacity: 0.75;
  transition: opacity 0.12s, border-color 0.12s;
}

.gallery-thumbs button:hover,
.gallery-thumbs button.active {
  opacity: 1;
  border-color: var(--accent);
}

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 420px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }
}

.spec-pill {
  padding: 0.65rem 0.85rem;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.85rem;
}

.spec-pill strong {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.detail-highlights-wrap {
  margin: 0 0 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg2);
}

.detail-highlights-wrap h3 {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  font-family: var(--font-display);
}

.detail-highlights {
  margin: 0;
  padding: 0 0 0 1rem;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.detail-price {
  margin: 0;
  font-size: clamp(1.2rem, 4vw, 1.45rem);
  color: var(--accent2);
  font-family: var(--font-display);
  font-weight: 700;
}

.detail-keyboard-hint {
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  .detail-keyboard-hint {
    display: none;
  }
}

.detail-similar {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.detail-similar__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  margin: 0 0 1rem;
}

.detail-similar__grid {
  margin-top: 0;
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__legal {
  padding: 0 0 1.25rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.site-footer__legal-line + .site-footer__legal-line {
  margin-top: 0.2rem;
}

.site-header__nav-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}

/* Узкая ширина: крупный логотип; под ним только Главная · Каталог · О нас (без Telegram и заявки в шапке) */
@media (max-width: 1023px) {
  .site-header__inner {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.5rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .logo {
    align-self: flex-start;
    flex-shrink: 0;
    max-width: none;
    font-size: clamp(1.05rem, 4.6vw, 1.55rem);
    white-space: nowrap;
    overflow: visible;
    line-height: 1.15;
    padding: 0.12rem 0.15rem;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  .site-header__nav-wrap {
    width: 100%;
    flex: none;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.45rem 0.75rem;
    overflow-x: visible;
    overflow-y: visible;
    padding: 0.1rem 0 0;
    mask-image: none;
  }

  .nav {
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    row-gap: 0.35rem;
  }

  .nav a {
    white-space: nowrap;
    font-size: clamp(0.92rem, 3.6vw, 1.12rem);
    font-weight: 600;
  }

  .site-header .nav .site-header__nav-telegram,
  .site-header__request {
    display: none !important;
  }
}

.btn--compact {
  padding: 0.48rem 0.95rem;
  font-size: 0.82rem;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.car-card__cta {
  margin-top: 0.35rem;
  padding-top: 0.5rem;
}

.home-cta-row {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.catalog-page-cta {
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.pager {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.pager__btn {
  min-width: 7rem;
}

.pager__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.pager__pos {
  padding: 0 0.25rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.hero-block {
  padding: 3rem 0 2.5rem;
}

.hero-block h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.hero-block p.lead {
  margin: 0 0 1.5rem;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.page-head {
  padding: 2rem 0 1.25rem;
}

@media (max-width: 480px) {
  .page-head {
    padding: 1.35rem 0 1rem;
  }
}

.page-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  margin: 0 0 0.5rem;
}

.page-head p {
  margin: 0;
  color: var(--muted);
}

.sort-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.sort-row__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.sort-row__inner .catalog-sort {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 640px) {
  .sort-row {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }

  .sort-row__inner {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    width: auto;
  }

  .sort-row__inner .catalog-sort {
    width: auto;
    min-width: 12rem;
  }
}

.sort-row select,
.catalog-sort {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg2);
  font: inherit;
  color: inherit;
}

@media (max-width: 900px) {
  .catalog-sort {
    min-height: 44px;
  }
}

/* ── Page enter ── */
@media (prefers-reduced-motion: no-preference) {
  .app-root .main {
    animation: vmMainIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

/* Без transform: иначе position:fixed у потомков main привязывается к main, а не к окну — модалки «уезжают». */
@keyframes vmMainIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-root .main {
    animation: none;
  }
}

/* ── Header topbar ── */
.site-header__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 0 0.35rem;
  border-bottom: 1px solid rgba(255, 245, 220, 0.06);
  flex-wrap: wrap;
}

.site-header__widgets {
  display: flex;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.site-header__address {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: right;
  max-width: 22rem;
  line-height: 1.35;
}

.clock-badge {
  font-size: 0.7rem;
  color: var(--muted);
}

.pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  margin-right: 0.45rem;
  animation: vmPulse 1.8s ease-in-out infinite;
}

@keyframes vmPulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(46, 230, 168, 0.45);
  }
  50% {
    opacity: 0.75;
    box-shadow: 0 0 0 6px rgba(46, 230, 168, 0);
  }
}

.site-header__inner {
  padding: 0.85rem 0;
}

/* ── Hero promo (fullscreen video) ── */
.hero-promo {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  margin: 0;
  background: #050506;
}

.hero-promo__fallback {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-color: #0a0a0c;
}

.hero-promo__fallback--empty {
  background-image: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(232, 180, 74, 0.12), transparent 65%),
    linear-gradient(180deg, #121218 0%, #050506 100%);
}

.hero-promo__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.hero-promo__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 5vw, 3rem) 0;
  background: linear-gradient(
    to top,
    rgba(5, 5, 6, 0.94) 0%,
    rgba(5, 5, 6, 0.5) 42%,
    transparent 72%
  );
  pointer-events: none;
}

.hero-promo__overlay-inner {
  pointer-events: auto;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-promo__overlay-inner {
    padding-left: clamp(24px, 4vw, 64px);
  }
}

.hero-promo__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  line-height: 1.12;
  margin: 0 0 0.75rem;
  max-width: 20ch;
  color: #fff;
}

.hero-promo__lead {
  margin: 0 0 1.25rem;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.55;
}

.hero-promo__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-promo__overlay .btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
}

.hero-promo__overlay .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--catalog-gold {
  border-color: rgba(255, 214, 120, 0.95);
  color: #fff5d6;
  background: linear-gradient(135deg, #f1c86a, #d49b2f);
  box-shadow: 0 10px 28px rgba(232, 180, 74, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--catalog-gold:hover {
  background: linear-gradient(135deg, #ffd978, #e2aa3d);
  border-color: #ffe09a;
  box-shadow: 0 12px 32px rgba(255, 210, 102, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Hero has a stronger .btn--ghost override, so we restate gold fill here. */
.hero-promo__overlay .btn--catalog-gold {
  border-color: rgba(255, 214, 120, 0.95);
  color: #fff5d6;
  background: linear-gradient(135deg, #f1c86a, #d49b2f);
  box-shadow: 0 10px 28px rgba(232, 180, 74, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-promo__overlay .btn--catalog-gold:hover {
  background: linear-gradient(135deg, #ffd978, #e2aa3d);
  border-color: #ffe09a;
  box-shadow: 0 12px 32px rgba(255, 210, 102, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero-promo--no-video .hero-promo__fallback {
  display: block;
}

.hero-promo--no-video .hero-promo__video {
  display: none;
}

@media (max-width: 900px) {
  .hero-promo {
    height: 88vh;
    min-height: 88vh;
    min-height: 88dvh;
  }

  /* CTA не уезжает вниз за пределы визуального героя и не наезжает на следующий блок */
  .hero-promo__overlay-inner {
    transform: translateY(0);
  }

  .hero-promo__overlay {
    padding: clamp(1rem, 3vw, 1.5rem) 0 clamp(1.1rem, 3.5vw, 1.85rem);
  }

  .hero-promo__title {
    margin-bottom: 0.55rem;
  }

  .hero-promo__lead {
    margin-bottom: 0.85rem;
  }

  .hero-promo__cta {
    gap: 0.55rem;
  }

  /* Полоса под героем чуть ниже, зазор от последней кнопки */
  .hero-promo + .search-push {
    margin-top: 0.65rem;
  }
}

@media (max-width: 520px) {
  .hero-promo__overlay .hero-scroll-reviews {
    font-size: 0.78rem;
    padding: 0.55rem 0.75rem;
    line-height: 1.25;
  }
}

/* ── Блок отзывов: 6 промо-превью (a–f .jpg) + ролики (.mp4) | 6 фото выдачи ── */
#section-reviews {
  scroll-margin-top: 5.5rem;
}

.reviews-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}

@media (max-width: 900px) {
  .reviews-two-cols {
    grid-template-columns: 1fr;
  }
}

.reviews-col__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 0 0.85rem;
  color: var(--text);
}

.reviews-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 520px) {
  .reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.reviews-cell {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--line);
}

.reviews-cell--photo {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

.reviews-cell--photo:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

.reviews-video-thumb {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.reviews-video-thumb:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

.reviews-video-thumb__frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0a0c;
}

.reviews-video-thumb__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.reviews-video-thumb__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.reviews-video-thumb__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: transparent;
  pointer-events: none;
}

.reviews-video-thumb__play::after {
  content: '';
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 55% center;
  background-size: 45% 45%;
}

.reviews-cell--photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 60% center;
  vertical-align: middle;
  background: var(--bg2);
}

.hero-scroll-reviews {
  font: inherit;
  cursor: pointer;
}

/* ── Модалка: видео в полном размере ── */
.reviews-video-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.reviews-video-modal[hidden] {
  display: none !important;
}

.reviews-video-modal__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(5, 5, 8, 0.88);
  cursor: pointer;
}

.reviews-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: min(calc(50vw - 0.5rem), calc(100vw - 2rem));
  max-height: min(calc(50vh - 0.5rem), calc(100vh - 2rem));
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviews-video-modal__player {
  display: block;
  width: auto;
  height: auto;
  max-width: min(calc(50vw - 0.5rem), calc(100vw - 2rem));
  max-height: min(calc(50vh - 0.5rem), calc(100vh - 2rem));
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.reviews-video-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}

.reviews-video-modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ── Модалка: фото в оригинальном соотношении ── */
.reviews-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.reviews-photo-modal[hidden] {
  display: none !important;
}

.reviews-photo-modal__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(5, 5, 8, 0.9);
  cursor: pointer;
}

.reviews-photo-modal__dialog {
  position: relative;
  z-index: 2;
  width: 98vw;
  max-width: 1400px;
  height: 94vh;
  max-height: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reviews-photo-modal__frame {
  width: 98vw;
  max-width: 1400px;
  height: 94vh;
  max-height: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: #000;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.reviews-photo-modal__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 94vh;
  object-fit: contain;
  object-position: center;
}

.reviews-photo-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}

.reviews-photo-modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ── Заявка: блок внизу страницы (форма + сводка поверх полей, без модалки) ── */
.site-request {
  scroll-margin-top: 1rem;
  padding: 2.5rem 0 2.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.14);
}

.site-request__card {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg2);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.site-request__title.request-modal__title {
  margin: 0 0 1.1rem 0;
}

.thanks-page {
  padding: 3rem 0 4rem;
  min-height: min(70vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-page__card {
  position: relative;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 2rem 1.35rem 2.25rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: radial-gradient(120% 80% at 50% 0%, rgba(232, 180, 74, 0.08), transparent 55%), var(--bg2);
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.4);
}

.thanks-page__visual {
  position: relative;
  height: 7.5rem;
  margin: 0 auto 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-page__orbit {
  position: relative;
  width: 6.5rem;
  height: 6.5rem;
  display: grid;
  place-items: center;
}

.thanks-page__orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: thanksOrbitSpin 4.2s linear infinite;
}

.thanks-page__orbit-ring--a {
  inset: 0;
  border-top-color: rgba(232, 180, 74, 0.95);
  border-right-color: rgba(232, 180, 74, 0.2);
  border-bottom-color: rgba(48, 48, 56, 0.95);
  border-left-color: rgba(232, 180, 74, 0.45);
  box-shadow: 0 0 24px rgba(232, 180, 74, 0.15);
}

.thanks-page__orbit-ring--b {
  inset: 0.55rem;
  animation-duration: 2.8s;
  animation-direction: reverse;
  border-bottom-color: rgba(232, 180, 74, 0.85);
  border-left-color: rgba(60, 60, 70, 0.9);
  border-top-color: rgba(232, 180, 74, 0.25);
  border-right-color: rgba(90, 88, 78, 0.5);
}

@keyframes thanksOrbitSpin {
  to {
    transform: rotate(360deg);
  }
}

.thanks-page__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  margin: 0 0 0.85rem;
  line-height: 1.1;
  background: linear-gradient(100deg, #f0ebe2 0%, #e8b44a 42%, #c9c5bc 55%, #e8b44a 68%, #fff8ed 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: thanksTitleShine 5s ease-in-out infinite;
}

@keyframes thanksTitleShine {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.thanks-page__subtitle {
  position: relative;
  height: 6.25rem;
  margin: 0 0 1.5rem;
  overflow: visible;
}

.thanks-page__subtitle-track {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(20rem, 92vw);
  margin-left: calc(min(20rem, 92vw) / -2);
  margin-top: -0.65em;
  font-size: clamp(0.85rem, 2.6vw, 1.02rem);
  font-weight: 600;
  color: #c8c4bc;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 0 18px rgba(232, 180, 74, 0.22);
  transform-origin: center center;
  animation: thanksSubtitleOrbit 14s linear infinite;
}

@keyframes thanksSubtitleOrbit {
  from {
    transform: rotate(0deg) translateX(2.5rem) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(2.5rem) rotate(-360deg);
  }
}

.thanks-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
}

@media (max-width: 420px) {
  .thanks-page__subtitle {
    height: 5.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thanks-page__orbit-ring,
  .thanks-page__title {
    animation: none !important;
  }

  .thanks-page__subtitle {
    height: auto;
    margin-bottom: 1rem;
  }

  .thanks-page__subtitle-track {
    position: static;
    display: block;
    margin: 0 auto;
    transform: none !important;
    animation: none !important;
  }
}

.thanks-page__actions .btn {
  flex: 1 1 auto;
  min-width: min(100%, 9.5rem);
}

.thanks-html-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: var(--bg0, #0a0a0d);
}

.thanks-html-body .thanks-page {
  width: 100%;
  max-width: 40rem;
  padding-left: 0;
  padding-right: 0;
}

.request-modal__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 3.8vw, 1.55rem);
  line-height: 1.2;
  margin: 0 2.25rem 1.1rem 0;
  background-size: 220% 100%;
  animation: requestTitleShimmer 5.5s linear infinite;
}

@keyframes requestTitleShimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

.request-modal__subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin: 1.25rem 0 0.65rem;
  color: var(--text);
}

.request-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.request-modal__stack {
  position: relative;
  min-height: 2rem;
}

.request-modal__success {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.35rem 0.15rem 0.15rem;
  overflow: auto;
  border-radius: 12px;
  background: var(--bg2);
  border: 1px solid rgba(232, 180, 74, 0.28);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.request-modal__success[hidden] {
  display: none !important;
}

.request-modal__success-inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  min-height: min-content;
}

.request-modal__success-badge {
  margin: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  line-height: 1;
  color: #0d0d10;
  background: linear-gradient(145deg, #e8b44a, #c9922e);
  box-shadow: 0 6px 20px rgba(232, 180, 74, 0.35);
}

.request-modal__success-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.25;
  color: var(--text);
}

.request-modal__success-lead {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.request-modal__success-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0.15rem 0 0.35rem;
}

.request-modal__success-kv {
  display: grid;
  grid-template-columns: minmax(0, 42%) 1fr;
  gap: 0.35rem 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  align-items: start;
}

.request-modal__success-kv:last-child {
  border-bottom: none;
}

.request-modal__success-k {
  color: var(--muted);
  font-weight: 500;
}

.request-modal__success-v {
  color: var(--text);
  font-weight: 600;
  word-break: break-word;
}

.request-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.request-field__label {
  font-size: 0.82rem;
  color: var(--muted);
}

.request-field__req {
  color: var(--accent);
}

.request-field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg0);
  color: var(--text);
}

.request-field input:focus {
  border-color: rgba(232, 180, 74, 0.45);
  outline: none;
}

.request-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.15rem 0 0.25rem;
  cursor: pointer;
}

.request-checkbox-row input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.request-checkbox-row__text {
  text-decoration: underline;
  text-decoration-color: rgba(232, 180, 74, 0.55);
  text-underline-offset: 0.22em;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.request-field__error {
  margin: -0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--danger);
}

@media (prefers-reduced-motion: reduce) {
  .request-modal__title {
    animation: none;
  }
}

@media (max-width: 600px) {
  /* На телефоне 50vw×50vh для видео слишком мало — даём почти всю ширину и достаточную высоту */
  .reviews-video-modal__dialog,
  .reviews-video-modal__player {
    max-width: min(94vw, calc(100vw - 1rem));
    max-height: min(calc(100dvh - 5.5rem), 78vh);
  }

  .reviews-video-modal__close {
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.65);
  }

  .reviews-grid--photos {
    grid-template-columns: 1fr;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    gap: 0.5rem;
  }

  .reviews-grid--photos .reviews-cell {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .reviews-cell--photo img {
    aspect-ratio: auto;
    max-height: min(72vh, 520px);
    object-fit: contain;
    object-position: center;
    background: #000;
  }

  .reviews-photo-modal__close {
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.65);
  }

  .reviews-cell--photo {
    cursor: default;
  }

  html {
    overflow-x: hidden;
  }
}

/* Узкие экраны: удобные зоны нажатия и герой-кнопки в столбик */
@media (max-width: 480px) {
  .btn {
    min-height: 44px;
    padding: 0.72rem 1.25rem;
  }

  .hero-promo__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-promo__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .grid-cards {
    grid-template-columns: 1fr;
  }
}

/* ── Hero carousel (legacy, не используется на главной) ── */
.hero-carousel {
  position: relative;
  min-height: min(88vh, 820px);
  overflow: hidden;
  margin-bottom: 0;
}

.hero-carousel__track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.05s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide__bg {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  transition: transform 10s linear;
}

.hero-slide.is-active .hero-slide__bg {
  transform: scale(1);
}

.hero-slide__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(5, 5, 6, 0.92) 0%, rgba(5, 5, 6, 0.45) 48%, rgba(5, 5, 6, 0.65) 100%);
  z-index: 1;
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 5rem 0 4rem;
}

.hero-slide__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent2);
}

.hero-slide__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.02;
  margin: 0 0 0.5rem;
  max-width: 14ch;
  letter-spacing: -0.03em;
}

.hero-slide__tag {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-slide__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.hero-slide__cta a:first-child {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), #c4922e);
  color: #1a1204;
  box-shadow: 0 8px 28px rgba(232, 180, 74, 0.28);
}

.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.15s, transform 0.15s;
}

.hero-carousel__arrow:hover {
  background: rgba(232, 180, 74, 0.25);
}

.hero-carousel__arrow--prev {
  left: min(4vw, 1.5rem);
}

.hero-carousel__arrow--next {
  right: min(4vw, 1.5rem);
}

.hero-carousel__dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.5rem;
}

.hero-carousel__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  transition: transform 0.2s, background 0.2s;
}

.hero-carousel__dots button.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

/* ── Sections ── */
.section {
  padding: 3.5rem 0;
  position: relative;
}

.section--tight {
  padding: 2.25rem 0;
}

.section__head {
  margin-bottom: 1.75rem;
}

.section__head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.35rem;
}

.section-title-shimmer {
  color: #fff;
  background: linear-gradient(112deg, #ffffff 0%, #ffffff 44%, #e8b44a 50%, #ffffff 56%, #ffffff 100%);
  background-size: 220% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section__head p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

/* Quick search strip */
.search-push {
  background: linear-gradient(180deg, var(--bg1), transparent);
  margin-top: -1px;
  border-bottom: 1px solid var(--line);
}

.search-push__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 0 1.5rem;
}

.search-push__quick {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.search-push__inner input {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg2);
}

.search-push__inner button {
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent2), #1fa776);
  color: #04120c;
  border: none;
}

.is-hidden {
  display: none !important;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.step-card {
  padding: 1.35rem;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  opacity: 0.85;
}

.step-card:hover {
  border-color: rgba(232, 180, 74, 0.35);
  transform: translateY(-4px);
}

.step-card__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: rgba(232, 180, 74, 0.25);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Marquee brands */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg1);
  padding: 0.85rem 0;
}

.marquee {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.75rem);
  width: max-content;
  animation: vmMarquee 38s linear infinite;
}

/* Пока курсор/фокус/тап на полосе — пауза. Иначе после скролла Chrome даёт сбой hit-test у потомков внутри анимированного transform. */
.marquee-wrap:focus-within .marquee,
.marquee:has(.marquee__brand:active),
.marquee.marquee--touch-pause {
  animation-play-state: paused;
}

@media (hover: hover) and (pointer: fine) {
  .marquee-wrap:hover .marquee {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
}

@keyframes vmMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.marquee span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--muted);
  white-space: nowrap;
}

.marquee__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  margin: 0;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: rgba(232, 180, 74, 0.18);
  touch-action: manipulation;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.35em;
}

/* Невидимо расширяем зону нажатия между буквами и соседями */
.marquee__brand::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 20px);
  height: calc(100% + 14px);
  min-height: 44px;
  min-width: 44px;
}

.marquee__brand:hover {
  color: var(--text);
  text-decoration-color: rgba(232, 180, 74, 0.55);
}

.marquee__brand:active {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stat-card {
  text-align: center;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.stat-card__val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-height: 2.25rem;
  white-space: nowrap;
}

.stat-card__lbl {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}

/* Horizontal cards */
.h-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.h-scroll .car-card {
  flex: 0 0 min(280px, 85vw);
  scroll-snap-align: start;
}

.home-latest-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .stats-row {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-card__val {
    font-size: clamp(1.2rem, 8.2vw, 1.75rem);
  }

  .home-latest-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .home-latest-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Quote + API bento */
.quote-live {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 0;
}

.quote-live blockquote {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.55;
  font-style: italic;
}

.quote-live footer {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--accent2);
  font-style: normal;
}

.bento-api {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 800px) {
  .bento-api {
    grid-template-columns: 1fr;
  }
}

.bento-api__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.bento-api__grid img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: transform 0.35s ease;
}

.bento-api__grid a:hover img {
  transform: scale(1.04);
}

.bento-api__caption {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* About split */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 840px) {
  .about-split {
    grid-template-columns: 1fr;
  }
}

.about-split__visual {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--bg2);
}

.about-split__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-split__text p {
  color: var(--muted);
  line-height: 1.65;
}

.about-split__address {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--accent2);
  line-height: 1.45;
}

/* CTA banner */
.cta-banner {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.cta-banner__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 6, 0.95), rgba(5, 5, 6, 0.55));
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin: 0 0 0.75rem;
  max-width: 16ch;
}

.cta-banner p {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 0 1.25rem;
}

/* Scroll reveal: только opacity — без translateY, чтобы не дёргать вёрстку и слои при скролле */
.reveal-on-scroll {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.reveal-on-scroll.is-in {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transition: none;
  }

  .section-title-shimmer {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #fff;
  }

  .hero-slide__bg {
    transition: none;
  }
}

.reveal-stagger .reveal-on-scroll:nth-child(1) {
  transition-delay: 0s;
}
.reveal-stagger .reveal-on-scroll:nth-child(2) {
  transition-delay: 0.08s;
}
.reveal-stagger .reveal-on-scroll:nth-child(3) {
  transition-delay: 0.16s;
}
.reveal-stagger .reveal-on-scroll:nth-child(4) {
  transition-delay: 0.24s;
}
