:root {
  --dark: #000000;
  --dark-2: #151515;
  --dark-3: #222222;
  --accent: #ff7300;
  --accent-dark: #d95f00;
  --light: #f6f6f6;
  --text: #1d1d1d;
  --text-muted: #6b7280;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .14);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden { display: none !important; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  text-align: center;
  font-family: var(--font);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, #ffa733 0%, #ff7300 55%, #ff4d00 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(255, 115, 0, .4);
}
.btn-primary:hover { background: linear-gradient(135deg, #ffc266 0%, #ff8c2e 55%, #ff5a1a 100%); }

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn-outline:hover { background: var(--dark); color: var(--white); }

.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Секция «Подписаться в Telegram» ---------- */
.section-tg .tg-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.tg-cta { margin-top: 28px; }

/* Кнопка Telegram вверху — компактная, без полоски.
   z-index 60 — выше шапки (50): логотип в шапке наползает на кнопку
   на мобильных (ссылка #top), иначе палец попадает по логотипу. */
.tg-top {
  display: flex;
  justify-content: center;
  padding: 20px 16px 0;
  position: relative;
  z-index: 60;
}
.tg-join--top {
  padding: 10px 18px;
  font-size: 14px;
}

/* Стандартная кнопка Telegram (официальный стиль виджета) */
.tg-join {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  position: relative;
  z-index: 1;
  background: var(--accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 26px;
  border-radius: 24px;
  text-decoration: none;
  touch-action: manipulation;
  transition: background .2s ease;
}
.tg-join:hover { background: var(--accent-dark); }
.tg-join:active { background: #b85000; }
.tg-join svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
  flex: none;
}

/* Элементы, значение которых пустое в config.js — скрываются */
.cfg-hidden { display: none !important; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #000000 0%, #1c1c1c 100%);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: nowrap;
  padding-top: 4px;
  padding-bottom: 4px;
}

.logo { display: flex; align-items: center; gap: 10px; }

.logo-img {
  height: 240px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: -84px 0;
}

.header-contacts { display: flex; align-items: center; gap: 18px; }

.phone { font-size: 18px; font-weight: 700; color: var(--white); white-space: nowrap; }
.phone:hover { color: var(--accent); }

.messengers { display: flex; align-items: center; gap: 10px; }

.messengers a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--dark-2);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.messengers a[aria-label="Telegram"] { background: #229ed9; }
.messengers a[aria-label="MAX"] { background: linear-gradient(135deg, #00bfff, #471aff 55%, #9500ff); }
.messengers a:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .38);
}

.messengers svg { width: 20px; height: 20px; fill: currentColor; }

@media (max-width: 1100px) {
  .logo-img { height: 170px; margin: -49px 0; }
  .header-inner { gap: 12px; }
  .nav { gap: 12px; }
  .nav a { font-size: 13px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/hero.jpg") center center / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0, 0, 0, .97) 25%, rgba(0, 0, 0, .82) 45%, rgba(0, 0, 0, .42) 72%, rgba(0, 0, 0, .72) 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 115, 0, .15);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.hero h1 span { color: var(--accent); }

.hero-sub { font-size: 17px; color: #c9c9c9; max-width: 540px; margin-bottom: 22px; }

.hero-points { margin-bottom: 28px; }
.hero-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  color: #e3e3e3;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Формы лид-магнита ---------- */
.lead-form-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.lead-form h3 { font-size: 20px; color: var(--dark); margin-bottom: 4px; }
.lead-form-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }

.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form textarea {
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: var(--light);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 115, 0, .2);
}

.form-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}
.form-status.ok { color: #1cbf60; }
.form-status.err { color: #d64545; }

.form-note { margin-top: 10px; font-size: 13px; color: var(--text-muted); }

/* Капча — математический вопрос */
.captcha-row { margin-bottom: 14px; }
.captcha-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.captcha-input { margin-bottom: 0; }
.captcha-example { color: var(--accent); font-weight: 700; }

/* Большая форма */
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.form-row input { margin-bottom: 0; }

.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 18px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}
.agree a { color: var(--text); text-decoration: underline; }
.agree input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }

/* ---------- Секции ---------- */
.section { padding: 84px 0; }

.section-light { background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%); }
.section-dark { background: linear-gradient(135deg, #000 0%, #222222 100%); color: var(--white); }

.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  margin-bottom: 8px;
}
.section-dark .section-title { color: var(--white); }

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 44px;
}
.section-dark .section-sub { color: #a9a9a9; }

.section-note {
  text-align: center;
  color: var(--text-muted);
  margin-top: 30px;
  font-size: 15px;
}

/* ---------- Карточки авто ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}

.car-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.car-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,0,0,.16); }

.car-card-img { position: relative; height: 210px; overflow: hidden; background: #f0f0f0; }
.car-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.car-card:hover .car-card-img img { transform: scale(1.06); }

.car-card-status {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--dark);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}

.car-card-body { padding: 18px 20px 20px; }

.car-card-body h3 { font-size: 17px; color: var(--dark); margin-bottom: 4px; }

.car-card-region { color: var(--text-muted); font-size: 13px; margin-bottom: 12px; }

.car-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.car-card-specs li {
  font-size: 12px;
  color: var(--dark-3);
  background: var(--light);
  border: 1px solid #e6e6e6;
  padding: 4px 10px;
  border-radius: 20px;
}

.car-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #eeeeee;
  padding-top: 14px;
}

.car-card-price { font-size: 18px; font-weight: 800; color: var(--dark); }

.link-with-arrow {
  color: var(--dark);
  font-weight: 600;
  font-size: 13px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
  white-space: nowrap;
}
.link-with-arrow:hover { color: var(--accent-dark); }

/* ---------- Преимущества ---------- */
#advantages {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, .95) 0%, rgba(24, 24, 24, .97) 100%),
    url("../images/car7-audi.jpg") center/cover no-repeat;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}

.feature {
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(160deg, #1f1f1f 0%, #141414 100%);
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
  transition: transform .2s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}
.feature:hover { transform: translateY(-5px); }

.feature svg { width: 52px; height: 52px; margin: 0 auto 16px; }

.feature h3 { color: var(--white); font-size: 17px; margin-bottom: 8px; }
.feature p { color: #a9a9a9; font-size: 14px; }

/* ---------- Тарифы ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}

.plan {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  border-top: 4px solid #e0e0e0;
}

.plan-featured {
  border-top-color: var(--accent);
  background: linear-gradient(180deg, #fffaf2 0%, #ffe9d6 100%);
  box-shadow: 0 18px 45px rgba(255, 115, 0, .25);
  transform: translateY(-6px);
}

.plan-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan h3 { font-size: 16px; color: var(--text-muted); margin-bottom: 6px; }

.plan-price { font-size: 30px; font-weight: 800; color: var(--dark); margin-bottom: 18px; }
.plan-featured .plan-price { color: var(--dark); }

.plan-features { flex: 1; margin-bottom: 22px; }
.plan-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  font-size: 14px;
  color: var(--text);
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

/* ---------- Площадки ---------- */
.auctions {
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
  overflow: hidden;
}
.auctions .auction-marquee { margin-top: 44px; }

/* Карточка-бегущая строка логотипов площадок (стилистика Abrema) */
.auction-marquee {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  background: var(--white);
  border: 1px solid var(--border-subtle, rgba(0,0,0,.05));
  padding: 22px 0;
  box-shadow: var(--shadow);
}
@media (min-width: 768px) {
  .auction-marquee { border-radius: 3rem; padding: 30px 0; }
}

/* Маска-градиент по краям карточки */
.auction-marquee-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  z-index: 2;
  pointer-events: none;
}
@media (min-width: 768px) { .auction-marquee-edge { width: 96px; } }
.auction-marquee-edge--left { left: 0; background: linear-gradient(90deg, var(--white) 0%, transparent 100%); }
.auction-marquee-edge--right { right: 0; background: linear-gradient(270deg, var(--white) 0%, transparent 100%); }

.auction-marquee-track {
  display: flex;
  width: max-content;
  animation: auction-marquee 40s linear infinite;
  will-change: transform;
}
@keyframes auction-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.auction-marquee-group {
  display: flex;
  align-items: center;
  margin-right: 24px;
}
.auction-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 14px;
  flex-shrink: 0;
}
.auction-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.auction-logo:hover img { transform: scale(1.05); box-shadow: 0 12px 26px rgba(0,0,0,.16); }
@media (min-width: 768px) { .auction-logo img { height: 50px; } }

/* ---------- Секция заявки ---------- */
.section-request {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, .93) 0%, rgba(24, 24, 24, .95) 100%),
    url("../images/car5-mercedes.jpg") center/cover no-repeat;
  color: var(--white);
}
.section-request .section-title { color: var(--white); }
.section-request .section-sub { color: #c9c9c9; }

.section-request { position: relative; }

.request-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 48px;
  align-items: center;
}
.request-inner h2,
.request-inner .section-sub { grid-column: 1; }
.request-form-wrap { grid-column: 1; }
.request-image {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  height: 280px;
  width: auto;
  object-fit: contain;
}
.request-inner h2 { text-align: center; font-size: 30px; font-weight: 800; margin-bottom: 6px; }

.lead-form { background: var(--white); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.35); padding: 30px; }

/* ---------- Подвал ---------- */
.footer { background: #000000; color: #a9a9a9; padding: 16px 0 0; font-size: 14px; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-bottom: 12px;
}

.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 10px; }

.footer .logo { display: inline-flex; margin-bottom: 0; }
.footer .logo-img { height: 76px; width: auto; margin: 0; }
.footer-logo { justify-self: center; }

.footer-tagline {
  justify-self: start;
  max-width: 520px;
  margin: 0;
  color: #a9a9a9;
  line-height: 1.5;
}
.footer-social { justify-self: end; text-align: right; }

.footer-col a { display: block; color: #a9a9a9; margin-bottom: 8px; transition: color .2s ease; }
.footer-col a:hover { color: var(--accent); }

.footer-col .messengers { margin-top: 4px; display: flex; }
.footer-col .messengers a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 8px 0 0;
  color: var(--white);
}

.footer-col p { max-width: 300px; }
.footer-note { margin-top: 12px; color: #8a8a8a; font-size: 13px; max-width: 420px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: center;
  color: #8a8a8a;
}

/* ---------- Адаптив ---------- */
@media (max-width: 820px) {
  .request-inner { grid-template-columns: 1fr; }
  .request-image {
    grid-column: 1;
    grid-row: auto;
    height: 240px;
    margin: 26px auto 0;
  }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; }
  .plans { grid-template-columns: 1fr; max-width: 460px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-tagline { max-width: none; }
  .footer-logo { justify-self: center; }
  .footer-social { text-align: center; }
  .footer-col p, .footer-col .messengers { margin-left: auto; margin-right: auto; }
  .footer-col .messengers { justify-content: center; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero h1 { font-size: 30px; }
  .section-title, .request-inner h2 { font-size: 24px; }
  .header-inner { justify-content: center; text-align: center; }
  .header-cta { display: none; }
}

/* ---------- Навигация ---------- */
.nav { display: flex; gap: 16px; flex-wrap: nowrap; align-items: center; }
.nav a { color: #d5d5d5; font-size: 14px; font-weight: 600; white-space: nowrap; transition: color .2s ease; }
.nav a:hover { color: var(--accent); }

/* ---------- Категории ---------- */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 24px;
  text-align: center;
  border-bottom: 3px solid transparent;
  transition: transform .2s ease, border-color .2s ease;
}
.category-card:hover { transform: translateY(-6px); border-bottom-color: var(--accent); }
.category-icon { display: block; width: 64px; height: 64px; margin: 0 auto 16px; }
.category-card h3 { font-size: 18px; color: var(--dark); margin-bottom: 10px; }
.category-card p { color: var(--text-muted); font-size: 14px; }

/* ---------- Марки ---------- */
.brands { background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%); overflow: hidden; }
.brands-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.brands-track {
  display: flex;
  width: max-content;
  animation: brands-marquee 80s linear infinite;
}
.brands-group {
  display: flex;
  gap: 12px;
  padding-right: 12px;
}
@keyframes brands-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid #e6e6e6;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 40px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.brand:hover { background: var(--accent); border-color: var(--accent); color: var(--white); transform: translateY(-3px); }
.brand-logo { height: 26px; width: auto; max-width: 72px; object-fit: contain; }

/* ---------- Появление при прокрутке ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left {
  transform: translateX(-36px);
}
.reveal-right {
  transform: translateX(36px);
}
.reveal-visible,
.reveal-left.reveal-visible,
.reveal-right.reveal-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Как мы работаем ---------- */
.section-steps {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(0, 0, 0, .93) 0%, rgba(24, 24, 24, .95) 100%),
    url("../images/car3-tlc300.jpg") center/cover no-repeat;
}
.section-steps .section-title { color: var(--white); }
.section-steps .section-sub { color: #c9c9c9; }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 16px;
  border-radius: 40px;
  border: 1px solid rgba(255, 115, 0, .35);
  background: rgba(255, 115, 0, .08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.step {
  position: relative;
  padding: 24px 24px 22px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,.03) 100%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 34px rgba(0,0,0,.25);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 24px;
  width: 46px; height: 3px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity .2s ease;
}
.step:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 115, 0, .55);
  background: linear-gradient(160deg, rgba(255,115,0,.16) 0%, rgba(255,115,0,.05) 100%);
}
.step:hover::before { opacity: 1; }
.step-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 115, 0, .22) 0%, rgba(255, 115, 0, .06) 100%);
  border: 1px solid rgba(255, 115, 0, .3);
  color: var(--accent);
}
.step-icon svg { width: 26px; height: 26px; }
.step-num {
  display: inline-block;
  font-size: 30px;
  font-weight: 800;
  color: rgba(255, 115, 0, .4);
  line-height: 1;
}
.step h3 { font-size: 16px; color: var(--white); margin-bottom: 8px; }
.step p { font-size: 14px; color: #c9c9c9; margin-bottom: 0; }

/* ---------- Видео ---------- */
.video-section {
  padding-bottom: 60px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, .93) 0%, rgba(24, 24, 24, .95) 100%),
    url("../images/car4-nio.jpg") center/cover no-repeat;
}
.video-poster {
  position: relative;
  display: block;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.video-poster img { width: 100%; height: 420px; object-fit: cover; display: block; transition: transform .5s ease; }
.video-poster:hover img { transform: scale(1.04); }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; }
.play-btn svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 20px rgba(0,0,0,.4)); }
.video-poster:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.video-card {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.video-card-media {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.video-card-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-card:hover .video-card-media {
  transform: translateY(-4px);
  box-shadow: 0 26px 56px rgba(0,0,0,.5);
}
.video-card-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%);
}
.video-card-media .play-btn { width: 64px; height: 64px; }
.video-card-title {
  display: block;
  margin-top: 12px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

/* ---------- Статистика ---------- */
.stats {
  background: linear-gradient(120deg, #ffa733 0%, #ff7300 45%, #ff4d00 100%);
  background-size: 220% 220%;
  color: var(--white);
  animation: stats-gradient 14s ease-in-out infinite;
}
@keyframes stats-gradient {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 40px;
  text-align: center;
}
.stat {
  display: block;
  padding: 12px 10px;
  border-radius: var(--radius);
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}
.stat:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .22);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}
.stat-num {
  display: block;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  transition: transform .3s ease;
  font-variant-numeric: tabular-nums;
}
.stat-text { font-size: 14px; font-weight: 600; }
.stat:hover .stat-num { transform: scale(1.1); }

/* Поочерёдное появление цифр */
@keyframes stat-pop {
  from { transform: scale(.55); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.stats .stat.reveal-visible .stat-num { animation: stat-pop .55s cubic-bezier(.2, .8, .25, 1) backwards; }
.stats .stat:nth-child(2).reveal-visible .stat-num { animation-delay: .18s; }
.stats .stat:nth-child(3).reveal-visible .stat-num { animation-delay: .36s; }

/* ---------- О нас ---------- */
#about {
  background:
    linear-gradient(180deg, rgba(255,255,255,.90) 0%, rgba(244,247,251,.96) 100%),
    url("../images/car1-bmw.jpg") center/cover no-repeat;
}
.about-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.about-inner p { color: var(--text); font-size: 16px; margin-bottom: 16px; }
.about-inner .btn { margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq-section {
  background:
    radial-gradient(ellipse 75% 70% at 50% 50%, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 55%, rgba(255,255,255,.5) 100%),
    url("../images/car2-tesla.jpg") center/cover no-repeat;
}
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--light);
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--dark);
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--accent-dark);
  font-weight: 700;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 22px 20px; color: var(--text-muted); }

/* ---------- Новости ---------- */
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.news-card:hover { transform: translateY(-5px); }
.news-thumb img { width: 100%; height: 170px; object-fit: cover; }
.news-body { padding: 16px 20px 20px; }
.news-date { color: var(--text-muted); font-size: 13px; }
.news-body h3 { font-size: 16px; color: var(--dark); margin-top: 6px; }

/* ---------- Офисы ---------- */
.offices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.office {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
  border-top: 3px solid var(--accent);
}
.office h3 { color: var(--dark); margin-bottom: 8px; }
.office p { color: var(--text-muted); margin-bottom: 10px; }
.office a { color: var(--dark); font-weight: 700; }
.office a:hover { color: var(--accent-dark); }

/* ---------- Модальное окно видео ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .86); }
.modal-content {
  position: relative;
  width: 100%;
  max-width: 880px;
  background: var(--dark);
  border-radius: var(--radius);
  padding: 16px;
  z-index: 1;
}
.modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Капча (всплывающее окно) ---------- */
.captcha-content {
  max-width: 400px;
  text-align: center;
  background: #ffffff;
  color: #111111;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
}
.captcha-content h3 {
  margin: 4px 0 12px;
  font-size: 20px;
  color: #111111;
}
.captcha-question {
  font-size: 18px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 16px;
}
.captcha-answer {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 14px;
  padding: 12px 14px;
  font-size: 18px;
  text-align: center;
  color: #111111;
  background: #ffffff;
  border: 2px solid #ff7300;
  border-radius: 10px;
  outline: none;
}
.captcha-answer:focus {
  border-color: #b85000;
  box-shadow: 0 0 0 3px rgba(255, 115, 0, .25);
}
.captcha-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #d64545;
}
.captcha-status.ok { color: #1cbf60; }

/* Модальное окно с согласием на обработку персональных данных */
.privacy-content {
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
  background: #ffffff;
  color: #111111;
  text-align: left;
}
.privacy-content .modal-close {
  top: 8px;
  right: 8px;
  color: #111111;
  font-size: 26px;
}
.privacy-content h3 {
  text-align: center;
  color: #111111;
  margin-bottom: 14px;
  font-size: 20px;
  padding: 0 44px;
}
.privacy-text p {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #111111;
}
.video-frame {
  position: relative;
  background: #000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-frame video { width: 100%; max-height: 82vh; border: 0; border-radius: 8px; display: block; }

/* ---------- Адаптив (доп.) ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-poster img { height: 220px; }
  .play-btn { width: 60px; height: 60px; }
  .video-card-media .play-btn { width: 56px; height: 56px; }
  .stats { text-align: center; }
  .stat-num { font-size: 32px; }
  .header-contacts .phone { font-size: 15px; }
}

/* ===== Секция «Скорость и Логистика» ===== */
.section-logistics {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .93) 0%, rgba(24, 24, 24, .95) 100%),
    url("../images/car1-bmw.jpg") center/cover no-repeat;
}
.section-logistics .section-kicker { color: var(--accent); }
.speed-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 3rem; }
.speed-card { background: #151515; border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 1.5rem; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.speed-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(255,115,0,.4); }
.speed-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.speed-icon { width: 48px; height: 48px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(255,115,0,.12); color: var(--accent); }
.speed-icon svg { width: 26px; height: 26px; }
.speed-days { display: inline-block; padding: .4rem .75rem; border-radius: 999px; background: rgba(255,115,0,.12); color: var(--accent); font-size: .8rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.speed-card h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.speed-card p { font-size: .9rem; line-height: 1.55; color: #a9a9a9; margin: 0; }
.tracking { margin-top: 3.5rem; background: #000; border: 1px solid rgba(255,115,0,.18); border-radius: calc(var(--radius) * 1.6); padding: 2rem 2.25rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.tracking-head { display: flex; align-items: center; gap: 1.1rem; }
.tracking-icon { width: 56px; height: 56px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,115,0,.14); color: var(--accent); }
.tracking-icon svg { width: 28px; height: 28px; }
.tracking-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.tracking-title { font-size: 1.4rem; margin: .25rem 0 0; }
.tracking-text { flex: 1 1 320px; margin: 0; line-height: 1.6; color: #c9c9c9; }
@media (max-width: 1200px) { .speed-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .speed-grid { grid-template-columns: repeat(2, 1fr); } .tracking { flex-direction: column; align-items: flex-start; } }
@media (max-width: 460px)  { .speed-grid { grid-template-columns: 1fr; } }

/* ---------- Отзывы клиентов: слайдер-карусель ---------- */
.reviews-carousel {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}
.reviews {
  display: grid;
  overflow: hidden;
  padding: 6px 0 18px;
  flex: 1 1 auto;
  min-width: 0;
}
.review-card {
  grid-area: 1 / 1;
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(30px);
  transition: opacity .45s ease, transform .45s ease, box-shadow .2s ease;
}
.review-card.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  z-index: 1;
}
.reviews-btn {
  flex: none;
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e6e6e6;
  background: var(--white);
  color: var(--dark);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .2s ease, transform .2s ease;
}
.reviews-btn:hover { background: var(--accent); transform: translateY(-2px); }

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}
.reviews-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #cccccc;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.reviews-dots button:hover { background: var(--accent-dark); }
.reviews-dots button.active { background: var(--accent); transform: scale(1.3); }
@media (max-width: 1100px) {
  .review-card { padding: 22px 20px; }
}
@media (max-width: 640px) {
  .review-card { padding: 20px 18px; }
  .reviews-btn { width: 38px; height: 38px; }
}
.review-card.is-active:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.16); }
.review-head { display: flex; align-items: center; gap: 14px; }
.review-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #f0f0f0;
}
.review-name { font-size: 16px; font-weight: 700; color: var(--dark); margin: 0; }
.review-car { font-size: 13px; color: var(--text-muted); margin: 2px 0 0; }
.review-text { font-size: 14px; line-height: 1.6; color: var(--dark-3); margin: 0; }
