/* ============================================
   WEST MOTOR — Navy + Gold
   #0A0C10, #0F1218, #161B24, #C9A227, #E8C547
   ============================================ */

:root {
  --bg-base: #0A0C10;
  --bg-secondary: #0F1218;
  --bg-card: #161B24;
  --text-primary: #F2F3F5;
  --text-secondary: #8E95A5;
  --accent: #C9A227;
  --highlight: #E8C547;
  --glow: rgba(232, 197, 71, 0.35);
  --glow-soft: rgba(232, 197, 71, 0.22);
  --glow-button: rgba(232, 197, 71, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

.page-wrap {
  position: relative;
  min-height: 100vh;
}

/* ---------- Background depth ---------- */
.bg-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.7;
  animation: glowShift 14s ease-in-out infinite alternate;
}

.bg-glow-1 {
  background: radial-gradient(
    circle at 20% 30%,
    rgba(201, 162, 39, 0.14),
    transparent 60%
  );
}

.bg-glow-2 {
  background: radial-gradient(
    circle at 80% 70%,
    rgba(232, 197, 71, 0.08),
    transparent 60%
  );
  animation-delay: -5s;
}

@keyframes glowShift {
  from { opacity: 0.5; }
  to { opacity: 0.9; }
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============================================
   HERO — two columns, video 55–60%
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-secondary) 40%, var(--bg-base) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 58% 1fr;
  gap: 56px;
  align-items: center;
}

.hero__video-col {
  order: 1;
  max-width: 720px;
}

.hero-video-wrap {
  position: relative;
}

.hero-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #0a0c10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 0 40px var(--glow-soft),
    0 20px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(232, 197, 71, 0.12);
}

.hero-video-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(145deg, rgba(232, 197, 71, 0.14), transparent 50%, transparent 70%, rgba(201, 162, 39, 0.06));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.hero-video-poster {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.hero-video-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  pointer-events: none;
}

.hero-video-poster:hover::after {
  background: rgba(0, 0, 0, 0.15);
}

.hero-video-poster--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-video-poster__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.hero-video-poster:hover .hero-video-poster__img {
  transform: scale(1.02);
}

.hero-video-poster__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.92);
  box-shadow: 0 0 28px var(--glow-button);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  pointer-events: none;
}

.hero-video-poster__play::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-width: 12px 0 12px 22px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

.hero-video-poster:hover .hero-video-poster__play {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 0 38px var(--glow-button);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.btn--under-video {
  display: block;
  width: 100%;
  margin-top: 24px;
  text-align: center;
}

.hero__text-col {
  order: 2;
}

.hero__headline {
  font-size: clamp(1.9rem, 3.5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #f2f3f5;
  background: linear-gradient(120deg, #f8f9fb 0%, #ffffff 22%, #f3d77a 52%, #c9a227 78%, #f8f9fb 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroGoldFlow 7s ease-in-out infinite alternate;
}

@keyframes heroGoldFlow {
  0% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
  }
  100% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 12px rgba(232, 197, 71, 0.28));
  }
}

.hero__telegram-line {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__tg-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--highlight);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s, transform 0.2s, filter 0.2s;
}

.hero__tg-link:hover {
  color: var(--accent);
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px var(--glow-soft));
}

.hero__tg-icon {
  flex-shrink: 0;
}

/* ---------- Buttons: emerald gradient + glow + shine ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 18px 36px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0A0C10;
  text-decoration: none;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--hero,
.btn--glow {
  background: linear-gradient(135deg, var(--accent), var(--highlight));
  box-shadow:
    0 0 20px var(--glow-button),
    0 10px 30px rgba(0, 0, 0, 0.5);
}

.btn--hero:hover,
.btn--glow:hover {
  box-shadow:
    0 0 30px var(--glow-button),
    0 0 50px var(--glow),
    0 15px 40px rgba(0, 0, 0, 0.5);
}

.btn__shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shine 3.5s ease-in-out infinite;
}

@keyframes shine {
  0% { left: -100%; }
  55%, 100% { left: 160%; }
}

.btn__text {
  position: relative;
  z-index: 1;
}

.hero__advantages {
  list-style: none;
  margin-top: 0;
}

.hero__advantages li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  font-size: 1.15rem;
  font-weight: 700;
}

.hero__advantages li::before {
  content: '*';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--highlight);
  font-weight: 700;
  font-size: 1.2rem;
}

.hero__bullet {
  color: var(--text-primary);
  font-weight: 700;
  transition: color 0.2s;
}

.hero__bullet--accent {
  color: var(--highlight);
  font-weight: 700;
  text-shadow: 0 0 20px var(--glow-soft);
}

.hero-reviews-btn {
  display: inline-block;
  margin-top: 28px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
  background: var(--bg-base);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text-primary);
}

/* Кликабельная мигающая кнопка «Видеоотзывы клиентов» */
.reviews-title-btn {
  display: inline-block;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--highlight);
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 14px;
  border: 2px solid rgba(232, 197, 71, 0.4);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(232, 197, 71, 0.08));
  box-shadow: 0 0 20px var(--glow-soft);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  animation: titleBtnBlink 2s ease-in-out infinite;
}

.reviews-title-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 35px var(--glow-button);
  border-color: var(--highlight);
  animation: none;
}

@keyframes titleBtnBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 20px var(--glow-soft); }
  50% { opacity: 0.85; box-shadow: 0 0 30px var(--glow-button); }
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================
   VEHICLE CAROUSEL
   ============================================ */
.vehicles-section {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-secondary) 25%, var(--bg-base) 100%);
}

.carousel-wrap {
  position: relative;
  padding: 0 56px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(22, 27, 36, 0.9);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.carousel-arrow:hover {
  background: var(--bg-card);
  border-color: var(--highlight);
  box-shadow: 0 0 20px var(--glow-soft);
}

.carousel-arrow--left {
  left: 0;
}

.carousel-arrow--right {
  right: 0;
}

.vehicles-carousel {
  overflow: hidden;
  margin: 0 -10px;
  touch-action: pan-y;
}

.vehicles-track {
  display: flex;
  gap: 22px;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* ---------- Vehicle cards: glass, gradient, specs, trust, button ---------- */
.vehicle-card {
  flex: 0 0 352px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #161B24, #1e2532);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  opacity: 0.85;
}

.vehicle-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 25px var(--glow);
  opacity: 1;
}

.vehicle-card.vehicle-card--active {
  transform: scale(1.04);
  opacity: 1;
  box-shadow:
    0 0 30px var(--glow),
    0 20px 50px rgba(0, 0, 0, 0.5);
}

.vehicle-card.vehicle-card--active:hover {
  transform: scale(1.04) translateY(-5px);
}

.vehicle-card__image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #1c2330, #252d3d);
  position: relative;
  overflow: hidden;
}

.vehicle-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

.vehicle-card__body {
  padding: 20px;
}

.vehicle-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.vehicle-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-bottom: 14px;
  font-size: 0.85rem;
}

.vehicle-card__specs dt {
  color: var(--text-secondary);
  font-weight: 400;
}

.vehicle-card__specs dd {
  color: var(--text-primary);
  font-weight: 500;
  margin: 0;
}

.vehicle-card__trust {
  list-style: none;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.vehicle-card__trust li {
  margin-bottom: 4px;
}

.vehicle-card__trust li:first-child {
  color: var(--highlight);
}

.vehicle-card__price {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.18), rgba(211, 84, 0, 0.12));
  border: 1px solid rgba(230, 126, 34, 0.35);
  position: relative;
  overflow: hidden;
}

.vehicle-card__price::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 200, 100, 0.25), transparent);
  animation: priceShine 4s ease-in-out infinite;
}

@keyframes priceShine {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

.vehicle-card__price-label {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-right: 4px;
}

.vehicle-card__price-inner {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e67e22;
  background: linear-gradient(135deg, #e67e22, #f5a623, #e67e22);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: priceGradient 3s ease-in-out infinite alternate;
}

@keyframes priceGradient {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.vehicle-card__btn {
  display: block;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bg-base);
  background: linear-gradient(135deg, var(--accent), var(--highlight));
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 0 15px var(--glow-soft);
  transition: box-shadow 0.2s, transform 0.2s;
}

.vehicle-card__btn:hover {
  box-shadow: 0 0 22px var(--glow-button);
  transform: translateY(-1px);
}

.cta-block {
  text-align: center;
  margin-top: 52px;
}

.cta-block--final {
  margin-top: 56px;
}

/* ============================================
   VIDEO REVIEWS
   ============================================ */
.reviews-section {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-secondary) 20%, var(--bg-base) 100%);
}

.video-reviews-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 60px;
  min-height: 320px;
}

.carousel-arrow--reviews {
  flex-shrink: 0;
  position: static;
  transform: none;
}

.video-reviews-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

.video-review {
  transition: none;
  flex-shrink: 0;
}

.video-review--left {
  order: 1;
}

.video-review--center {
  order: 2;
  opacity: 1;
  transform: scale(1);
}

.video-review--right {
  order: 3;
}

.video-review--side {
  opacity: 1;
  transform: scale(0.88);
}

.video-review--hidden {
  order: 0;
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

.video-review__preview {
  position: relative;
  display: block;
  width: 280px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  transition: none;
  cursor: pointer;
}

.video-review--center .video-review__preview {
  width: 360px;
  box-shadow:
    0 0 28px var(--glow-soft),
    0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-review__preview:hover {
  box-shadow:
    0 0 30px var(--glow-soft),
    0 22px 55px rgba(0, 0, 0, 0.5);
}

.video-review__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-review__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.75) 100%);
  z-index: 1;
}

.video-review__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.9);
  box-shadow: 0 0 28px var(--glow-button);
  z-index: 2;
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-review__play::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-38%, -50%);
  border-width: 12px 0 12px 22px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

.video-review__preview:hover .video-review__play {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 38px var(--glow-button);
}

/* ---------- Окно видеоотзыва поверх страницы ---------- */
.video-review-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-review-modal--open {
  opacity: 1;
  visibility: visible;
}

.video-review-modal__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  cursor: pointer;
}

.video-review-modal__window {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.video-review-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.video-review-modal__close:hover {
  background: rgba(201, 162, 39, 0.9);
  transform: scale(1.08);
}

.video-review-modal__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 600px) {
  .video-review-modal {
    padding: 16px;
  }
  .video-review-modal__window {
    max-width: min(360px, 92vw);
    max-height: 55vh;
  }
  .video-review-modal__close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
  }
}

/* ---------- Подвал сайта ---------- */
.site-footer {
  padding: 32px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-base);
  position: relative;
  z-index: 1;
}

.site-footer .container {
  text-align: center;
}

.site-footer__name,
.site-footer__inn {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.site-footer__name {
  margin-bottom: 4px;
}

.site-footer__inn {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero__video-col {
    order: 0;
    text-align: center;
    max-width: none;
  }

  .hero__text-col {
    order: 1;
  }

  .hero__telegram-line {
    justify-content: center;
  }

  .hero__advantages {
    text-align: left;
    display: inline-block;
  }

  .btn--under-video {
    max-width: 100%;
  }

  .hero-video-frame {
    box-shadow:
      0 0 35px var(--glow-soft),
      0 18px 50px rgba(0, 0, 0, 0.6);
  }
}

@media (max-width: 900px) {
  .carousel-wrap {
    padding: 0 44px;
  }

  .carousel-arrow {
    width: 44px;
    height: 44px;
  }

  .vehicle-card {
    flex: 0 0 300px;
  }

  .video-reviews-wrap {
    flex-wrap: nowrap;
    padding: 0 8px;
    gap: 8px;
  }

  .video-reviews-carousel {
    flex: 1;
    min-width: 0;
    justify-content: center;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    gap: 16px;
  }

  .video-review {
    scroll-snap-align: center;
  }

  .video-review__preview {
    width: 280px;
  }

  .video-review--center .video-review__preview {
    width: 280px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 40px 0 48px;
    min-height: auto;
  }

  .hero-video-frame {
    border-radius: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .cta-block {
    margin-top: 40px;
  }

  .cta-block--final {
    margin-top: 48px;
  }

  .btn {
    padding: 16px 28px;
    font-size: 1rem;
    min-height: 52px;
    width: 100%;
    max-width: 340px;
  }

  .carousel-wrap {
    padding: 0 36px;
  }

  .vehicle-card {
    flex: 0 0 280px;
  }

  .vehicle-card__body {
    padding: 16px;
  }

  .vehicle-card__specs {
    font-size: 0.8rem;
  }
}
