/*
  West Car — премиум пригон. Чёрно-красная палитра.
*/

:root {
  --bg-base: #0d0d0d;
  --bg-secondary: #141414;
  --bg-card: rgba(22, 22, 22, 0.92);
  --text-primary: #f5f5f5;
  --text-secondary: #a3a3a3;
  --accent: #dc2626;
  --accent-2: #b91c1c;
  --accent-light: #ef4444;
  --champagne: #1f1f1f;
  --pearl: rgba(38, 38, 38, 0.95);
  --highlight: rgba(220, 38, 38, 0.25);
  --glow: rgba(220, 38, 38, 0.5);
  --border-subtle: rgba(220, 38, 38, 0.3);
  --shadow-warm: rgba(185, 28, 28, 0.2);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 10% 20%, rgba(220, 38, 38, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 90% 80%, rgba(185, 28, 28, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(220, 38, 38, 0.06) 0%, transparent 60%);
  animation: bgShift 14s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(220, 38, 38, 0.02) 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.02) 75%,
    transparent 100%
  );
  background-size: 200% 200%;
  animation: pearlShimmer 8s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes bgShift {
  0% { opacity: 0.95; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.03); }
}

@keyframes pearlShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  padding: 80px 0 100px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 58% 1fr;
  gap: 48px;
  align-items: center;
}

.hero__video-col {
  position: relative;
  width: 100%;
  justify-self: end;
}

.video-container {
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.video-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}

.video-wrapper video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.video-wrapper video::-webkit-media-controls-picture-in-picture-button,
.modal__video-wrap video::-webkit-media-controls-picture-in-picture-button {
  display: none !important;
}

.video-wrapper .play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-light), var(--accent-2));
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 30px var(--glow),
    0 4px 20px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
  z-index: 2;
}

.video-wrapper .play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 50px var(--glow), 0 0 80px var(--highlight), 0 6px 24px rgba(0, 0, 0, 0.4);
}

.video-wrapper.playing .play-btn {
  opacity: 0;
  pointer-events: none;
}

.play-btn__icon {
  width: 0;
  height: 0;
  border-left: 20px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 6px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.play-btn--small .play-btn__icon {
  border-left-width: 14px;
  border-top-width: 9px;
  border-bottom-width: 9px;
  margin-left: 4px;
}

.hero__video-col .cta {
  display: block;
  text-align: center;
  margin-top: 24px;
  text-decoration: none;
}

.cta {
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px var(--shadow-warm), 0 0 40px var(--highlight);
}

.cta--primary {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 35%, var(--accent-2) 100%);
  color: #fff;
  box-shadow:
    0 4px 20px var(--shadow-warm),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta--shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.cta--shine:hover::after {
  left: 100%;
}

.cta--secondary {
  background: var(--pearl);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 4px 24px rgba(0, 0, 0, 0.3);
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 4px 24px rgba(0, 0, 0, 0.3); }
  50% { box-shadow: 0 0 0 1px var(--border-subtle), 0 6px 32px var(--highlight); }
}

.cta--secondary:hover {
  background: var(--champagne);
  border-color: var(--border-subtle);
}

.hero__text-col {
  position: relative;
  max-width: 440px;
}

.hero__deco {
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--highlight) 0%, transparent 70%);
  filter: blur(60px);
  opacity: 0.7;
  animation: decoFloat 8s ease-in-out infinite;
  z-index: 0;
}

@keyframes decoFloat {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.5; }
  50% { transform: translateY(-50%) scale(1.15); opacity: 0.8; }
}

.hero__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero__title-gradient {
  display: block;
  background: linear-gradient(120deg, var(--accent-2), var(--accent-light), var(--accent), var(--accent-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 5s ease infinite;
}

@keyframes gradientText {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero__telegram {
  margin-bottom: 24px;
  font-size: 1.33rem;
}

.hero__telegram-link {
  display: block;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.hero__telegram-link:hover {
  color: var(--text-primary);
}

.hero__telegram-link .hero__telegram-accent {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-light), var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.hero__telegram-link:hover .hero__telegram-accent {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.45);
  filter: saturate(1.08);
}

.hero__link {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

.hero__link:hover {
  color: var(--accent-light);
}

.hero__benefits {
  list-style: none;
  margin-bottom: 28px;
}

.hero__benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.hero__benefit-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  box-shadow: 0 0 12px var(--highlight);
}

.hero__text-col .cta--secondary {
  display: inline-block;
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__video-col {
    max-width: 100%;
    order: 1;
    width: 100%;
  }

  .hero__video-col .video-container {
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
    padding: 0;
    box-sizing: border-box;
  }

  .hero__video-col .video-wrapper {
    width: 100%;
  }

  .hero__text-col {
    order: 2;
    max-width: 100%;
  }

  .hero__deco {
    right: -40px;
    width: 200px;
    height: 200px;
  }

  .hero {
    padding: 32px 0 48px;
  }
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.carousel-section {
  padding: 80px 0 100px;
}

.carousel {
  position: relative;
  padding: 0 56px;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5f5f5;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 4px 16px var(--shadow-warm);
}

.carousel__arrow:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 8px 28px var(--highlight);
  background: var(--champagne);
  border-color: var(--border-subtle);
  color: #f5f5f5;
}

.carousel__arrow:active,
.carousel__arrow:focus {
  color: #f5f5f5;
}

.carousel__arrow-icon {
  display: block;
  line-height: 0;
}

.carousel__arrow-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.carousel__arrow--prev {
  left: 0;
}

.carousel__arrow--next {
  right: 0;
}

.carousel__track-wrap {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 24px 0;
}

.carousel__track-wrap::-webkit-scrollbar {
  display: none;
}

.carousel__track {
  display: flex;
  gap: 24px;
  padding: 0;
}

.product-card {
  flex: 0 0 320px;
  scroll-snap-align: center;
  min-width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(12px);
  transition: transform var(--transition), box-shadow var(--transition);
  list-style: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 8px 32px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-light), var(--accent), var(--accent-light), transparent);
  background-size: 200% 100%;
  animation: cardLineShine 4s ease-in-out infinite;
  opacity: 0.95;
}

@keyframes cardLineShine {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 40px var(--highlight),
    0 0 0 1px var(--border-subtle);
}

.product-card.active,
.product-card--active {
  transform: scale(1.03) translateY(-4px);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.5),
    0 0 50px var(--highlight),
    0 0 0 1px var(--border-subtle);
}

.product-card.active .product-card__img-wrap img,
.product-card--active .product-card__img-wrap img {
  filter: brightness(1.05);
}

.product-card__img-wrap {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter var(--transition);
}

.product-card__name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.product-card__specs {
  list-style: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 14px;
}

.product-card__specs li {
  margin-bottom: 4px;
}

.product-card__price {
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent-light);
  letter-spacing: 0.02em;
  text-shadow: 0 0 24px rgba(251, 191, 36, 0.25);
}

.product-card__spec-label {
  color: var(--text-primary);
  font-weight: 500;
}

.product-card__trust {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.product-card__btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, var(--accent-light), var(--accent), var(--accent-2));
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px var(--shadow-warm), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.product-card__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
}

.carousel-section__cta {
  text-align: center;
  margin-top: 48px;
}

.carousel-section__cta .cta {
  display: inline-block;
  text-decoration: none;
}

@media (max-width: 768px) {
  .carousel {
    padding: 0 24px;
  }

  .carousel__arrow {
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
  }

  .carousel__arrow:active {
    opacity: 1;
  }

  .lots__carousel-wrap .carousel__arrow {
    position: absolute;
    z-index: 10;
  }

  .carousel__track-wrap {
    padding: 16px 0;
  }

  .product-card {
    flex: 0 0 280px;
    min-width: 280px;
  }

  .video-reviews__carousel-wrap {
    padding-left: 48px;
    padding-right: 48px;
  }

  .video-reviews__carousel {
    padding: 16px 0;
    justify-content: flex-start;
  }

  .video-card,
  .video-card--center {
    flex: 0 0 280px;
    min-width: 280px;
    aspect-ratio: 8 / 9;
    transform: none;
  }

  .video-card:hover,
  .video-card--center:hover {
    transform: none;
  }
}

/* ——— Видеоотзывы (как в Novus-Car2: размеры, расположение, механика) ——— */
.video-reviews {
  padding: 80px 0 100px;
}

.video-reviews__carousel-wrap {
  position: relative;
  padding: 0 64px;
  margin-bottom: 40px;
}

.video-reviews__carousel-wrap .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 4px 16px var(--shadow-warm);
}

.video-reviews__carousel-wrap .carousel-arrow:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 8px 28px var(--highlight);
  background: var(--champagne);
  border-color: var(--border-subtle);
}

.video-reviews__carousel-wrap .carousel-arrow--next {
  left: auto;
  right: 0;
}

.video-reviews__carousel {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 24px 0;
  width: 100%;
  max-width: 888px;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.video-reviews__carousel::-webkit-scrollbar {
  display: none;
}

.video-card {
  flex: 0 0 280px;
  scroll-snap-align: center;
  aspect-ratio: 16 / 15.1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s, box-shadow 0.4s;
}

.video-card:not(.video-card--center) {
  transform: scale(0.9);
  opacity: 0.9;
}

.video-card--center {
  transform: scale(1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);
}

.video-card:hover {
  transform: scale(0.95);
}

.video-card--center:hover {
  transform: scale(1.02);
}

.video-card__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-secondary);
  display: block;
}

.video-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.video-card:hover .video-card__overlay {
  background: rgba(0, 0, 0, 0.3);
}

.video-card__play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-card__play svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
  fill: currentColor;
}

.video-card:hover .video-card__play {
  transform: scale(1.1);
  box-shadow: 0 0 24px var(--glow);
}

.video-reviews__cta {
  text-align: center;
}

.video-reviews__cta .cta {
  display: inline-block;
  text-decoration: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 20, 0.75);
  cursor: pointer;
}

.modal__box {
  position: relative;
  width: max-content;
  max-width: calc(100vw - 48px);
  overflow: visible;
}

.modal__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(26, 24, 20, 0.8);
  cursor: pointer;
  z-index: 2;
  transition: background var(--transition);
}

.modal__close:hover {
  background: rgba(26, 24, 20, 0.95);
}

.modal__close::before,
.modal__close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal__video-wrap {
  line-height: 0;
  width: max-content;
  max-width: calc(100vw - 48px);
}

.modal__video-wrap--portrait {
  max-width: min(340px, calc(100vw - 48px));
}

.modal__video-wrap video {
  display: block;
  max-width: calc(100vw - 48px);
  max-height: 85vh;
  width: auto;
  height: auto;
  vertical-align: top;
}

.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 28px 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer__name {
  font-weight: 600;
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__name:hover {
  color: var(--accent-2);
}

.footer__telegram {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

.footer__telegram:hover {
  color: var(--accent-light);
}
