/* ================================================================
   AutoWin — Design System
   Палитра: чёрный + приглушённый красный + белый
   Шрифт: Inter (Google Fonts)
   ================================================================ */

/* ================= СЕКЦИЯ 1: CSS-переменные и Reset ================= */
:root {
  /* Цвета */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(20, 20, 20, 0.7);

  --red-primary: #c0392b;
  --red-light: #e74c3c;
  --red-dark: #8b1a1a;
  --red-glow: rgba(192, 57, 43, 0.4);
  --red-subtle: rgba(192, 57, 43, 0.15);

  --text-primary: #f0f0f0;
  --text-secondary: #888888;
  --text-muted: #555555;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-red: rgba(192, 57, 43, 0.3);

  /* Типографика */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.75rem;
  --font-size-4xl: 3.5rem;
  --font-size-hero: clamp(3rem, 7vw, 6rem);

  /* Пространство */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Скругления */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Тени */
  --shadow-glow: 0 0 40px var(--red-glow);
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.4);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #0a0a0a;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul,
ol {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* ================= СЕКЦИЯ 2: Утилиты ================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-3xl);
  max-width: 500px;
}

.text-red {
  color: var(--red-light);
}

.text-gradient {
  background: linear-gradient(135deg, var(--red-light), var(--red-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================= СЕКЦИЯ 3: Header ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-lg) 0;
  transition: background 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
  /* Pre-create compositing layer — предотвращает белый блик */
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  will-change: backdrop-filter;
  background: transparent;
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-size: var(--font-size-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__logo span {
  color: var(--red-light);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.header__nav a {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red-primary);
  transition: var(--transition-base);
}

.header__nav a:hover {
  color: var(--text-primary);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

.header__nav a.active {
  color: var(--text-primary);
}

/* ================= СЕКЦИЯ 4: Hero ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0a0a0a;
}

/* Hero-элементы не используют .reveal — GSAP управляет ими напрямую */
.hero .reveal {
  opacity: 1;
  transform: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center top;
  will-change: transform;
}

/* Тёмный overlay слева для текста */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(10, 10, 10, 0.97) 0%,
      rgba(10, 10, 10, 0.88) 30%,
      rgba(10, 10, 10, 0.5) 55%,
      rgba(10, 10, 10, 0.2) 80%,
      rgba(10, 10, 10, 0.1) 100%);
  z-index: 1;
}

/* Красное свечение внизу */
.hero__bg::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 30%;
  width: 60%;
  height: 200px;
  background: radial-gradient(ellipse, var(--red-glow) 0%, transparent 70%);
  z-index: 2;
  filter: blur(40px);
}

.hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-top: var(--space-4xl);
  text-align: left;
}

/* SVG-декорации в hero */
.hero__decorations {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.hero__decorations svg {
  position: absolute;
}

/* Курсорный glow */
.cursor-glow {
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
  mix-blend-mode: screen;
}

.cursor-glow.active {
  opacity: 1;
}

/* Мобильная пульсация при тапе — мягкое свечение */
.tap-ripple {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.25) 0%, rgba(192, 57, 43, 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(0.3);
  animation: tapGlow 1s ease-out forwards;
  mix-blend-mode: screen;
}

@keyframes tapGlow {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
  }

  20% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
  }
}

/* Плавающие частицы */
.particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--red-primary);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle linear infinite;
  box-shadow: 0 0 6px 2px rgba(192, 57, 43, 0.4);
}

@keyframes float-particle {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }

  10% {
    opacity: var(--max-opacity, 0.5);
    transform: scale(1);
  }

  90% {
    opacity: calc(var(--max-opacity, 0.5) * 0.4);
  }

  100% {
    opacity: 0;
    transform: translateY(-20vh) scale(0.5);
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-lg);
  background: var(--red-subtle);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  color: var(--red-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xl);
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red-light);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero__title {
  font-size: var(--font-size-hero);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-lg);
  max-width: 700px;
}

.hero__title .text-gradient {
  display: inline-block;
  position: relative;
}

/* Название тачки — блочный элемент с адаптивным размером */
.hero__car-name {
  display: block;
  white-space: nowrap;
  line-height: 1.1;
}

/* Строка при многострочном названии (через \n в config) */
.hero__car-line {
  display: block;
  position: relative;
  color: var(--red-primary);
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* Подчёркивание только у последней строки */
.hero__car-line.text-gradient::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--red-primary), var(--red-light), var(--red-primary));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  border-radius: 2px;
}

/* Мерцающая подчёркивание под BMW X7 */
.hero__title .text-gradient::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--red-primary), var(--red-light), var(--red-primary));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  border-radius: 2px;
}

@keyframes shimmer {

  0%,
  100% {
    background-position: -200% center;
  }

  50% {
    background-position: 200% center;
  }
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.5;
  max-width: 480px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  background: var(--red-primary);
  color: white;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.hero__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: var(--transition-base);
}

.hero__cta:hover {
  background: var(--red-light);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.hero__cta:hover::before {
  opacity: 1;
}

.hero__cta svg {
  width: 18px;
  height: 18px;
  transition: var(--transition-fast);
}

.hero__cta:hover svg {
  transform: translateX(3px);
}

/* Stat-карточки */
.hero__stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.stat-card {
  padding: var(--space-lg) var(--space-2xl);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  min-width: 150px;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Красная полоска сверху при ховере */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
  opacity: 0;
  transition: var(--transition-base);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-red);
  transform: translateY(-3px);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card__value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.stat-card__label {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ================= СЕКЦИЯ 5: How It Works ================= */
.how-it-works {
  padding: var(--space-4xl) 0;
  position: relative;
}

.how-it-works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.step-card {
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--red-primary), transparent);
  opacity: 0;
  transition: var(--transition-base);
}

.step-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-red);
  transform: translateY(-4px);
}

.step-card:hover::before {
  opacity: 1;
}

.step-card__number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-subtle);
  color: var(--red-light);
  font-weight: 700;
  font-size: var(--font-size-xl);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.step-card__title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.step-card__desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================= СЕКЦИЯ 6: Tickets ================= */
.tickets {
  padding: var(--space-4xl) 0;
  position: relative;
}

/* Вкладки секторов */
.tickets__tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.tickets__tab {
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: var(--transition-fast);
  cursor: pointer;
}

.tickets__tab:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.tickets__tab.active {
  background: var(--red-primary);
  color: white;
  border-color: var(--red-primary);
}

/* Сетка билетов */
.tickets__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 4px;
  margin-bottom: var(--space-2xl);
  max-height: 400px;
  overflow-y: auto;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

/* Кастомный скроллбар */
.tickets__grid::-webkit-scrollbar {
  width: 6px;
}

.tickets__grid::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.tickets__grid::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}

.ticket {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: 500;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.ticket:hover {
  border-color: var(--red-primary);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.ticket.selected {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: white;
  box-shadow: 0 0 12px var(--red-glow);
}

.ticket.taken {
  background: rgba(255, 255, 255, 0.02);
  border-color: transparent;
  color: var(--text-muted);
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 0.4;
}

/* Корзина */
.tickets__cart {
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.cart__info {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.cart__selected {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.cart__selected strong {
  color: var(--text-primary);
  font-size: var(--font-size-lg);
}

.cart__total {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.cart__total strong {
  color: var(--red-light);
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.cart__btn {
  padding: var(--space-md) var(--space-2xl);
  background: var(--red-primary);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  font-size: var(--font-size-base);
}

.cart__btn:hover {
  background: var(--red-light);
  box-shadow: var(--shadow-glow);
}

.cart__btn:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

/* Выбранные номера (чипсы) */
.cart__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.cart__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px var(--space-sm);
  background: var(--red-subtle);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  color: var(--red-light);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cart__chip:hover {
  background: var(--red-primary);
  color: white;
}

/* ================= СЕКЦИЯ 7: FAQ ================= */
.faq {
  padding: var(--space-4xl) 0;
}

.faq__heading {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--space-xl);
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.contacts-block {
  margin-top: var(--space-4xl);
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

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

.faq__list {
  max-width: 750px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) 0;
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  transition: var(--transition-fast);
}

.faq__question:hover {
  color: var(--red-light);
}

.faq__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq__item.open .faq__icon {
  transform: rotate(45deg);
  color: var(--red-light);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__item.open .faq__answer {
  max-height: 300px;
  padding-bottom: var(--space-xl);
}

.faq__answer p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ================= СЕКЦИЯ 8: Checkout Modal (\u0424\u043e\u0440\u043c\u0430 \u043e\u043f\u043b\u0430\u0442\u044b) ================= */

/* \u0417\u0430\u0442\u0435\u043c\u043d\u0451\u043d\u043d\u044b\u0439 \u0444\u043e\u043d \u043f\u043e\u0432\u0435\u0440\u0445 \u0432\u0441\u0435\u0433\u043e \u043b\u0435\u043d\u0434\u0438\u043d\u0433\u0430 */
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  /* \u0421\u043a\u0440\u044b\u0442\u043e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.checkout-overlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* \u0421\u0430\u043c\u0430 \u043c\u043e\u0434\u0430\u043b\u043a\u0430 */
.checkout-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 60px var(--red-glow);
}

/* \u041a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0439 \u0441\u043a\u0440\u043e\u043b\u043b\u0431\u0430\u0440 \u043c\u043e\u0434\u0430\u043b\u043a\u0438 */
.checkout-modal::-webkit-scrollbar {
  width: 4px;
}

.checkout-modal::-webkit-scrollbar-track {
  background: transparent;
}

.checkout-modal::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 2px;
}

/* \u041a\u043d\u043e\u043f\u043a\u0430 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u044f */
.checkout__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: var(--transition-fast);
  z-index: 10;
}

.checkout__close:hover {
  background: var(--red-subtle);
  border-color: var(--border-red);
  color: var(--red-light);
}

/* \u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a */
.checkout__header {
  margin-bottom: var(--space-xl);
  padding-right: 40px;
  /* \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u043d\u0430\u0435\u0437\u0436\u0430\u043b \u043d\u0430 \u043a\u0440\u0435\u0441\u0442\u0438\u043a */
}

.checkout__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.checkout__subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* \u0411\u043b\u043e\u043a \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0437\u0430\u043a\u0430\u0437\u0435 */
.checkout__order-info {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.checkout__order-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.checkout__order-row:last-child {
  margin-bottom: 0;
}

.checkout__order-value {
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-all;
  line-height: 1.4;
}

.checkout__order-summary {
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
}

.checkout__order-row--total {
  font-size: var(--font-size-lg);
}

.checkout__price {
  color: var(--red-light);
  font-size: var(--font-size-xl);
  font-weight: 700;
}

/* \u041f\u043e\u043b\u044f \u0444\u043e\u0440\u043c\u044b */
.checkout__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.checkout__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.checkout__field--full {
  margin-bottom: var(--space-lg);
}

.checkout__field label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.checkout__field input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--font-size-base);
  font-family: var(--font-main);
  transition: var(--transition-fast);
  outline: none;
}

.checkout__field input::placeholder {
  color: var(--text-muted);
}

.checkout__field input:focus {
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px var(--red-subtle);
}

/* \u041e\u0448\u0438\u0431\u043a\u0438 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438 */
.checkout__error {
  font-size: var(--font-size-xs);
  color: var(--red-light);
  min-height: 16px;
  opacity: 0;
  transition: var(--transition-fast);
}

.checkout__error.visible {
  opacity: 1;
}

/* \u0427\u0435\u043a\u0431\u043e\u043a\u0441 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u044f */
.checkout__agree {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  margin-bottom: var(--space-lg);
}

.checkout__agree input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkout__agree-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: var(--transition-fast);
  position: relative;
  margin-top: 2px;
}

/* \u0413\u0430\u043b\u043e\u0447\u043a\u0430 */
.checkout__agree-check::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: var(--transition-fast);
}

.checkout__agree input:checked+.checkout__agree-check {
  background: var(--red-primary);
  border-color: var(--red-primary);
}

.checkout__agree input:checked+.checkout__agree-check::after {
  opacity: 1;
}

.checkout__agree-text {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

.checkout__agree-text a {
  color: var(--red-light);
  text-decoration: underline;
  text-decoration-color: rgba(231, 76, 60, 0.3);
  transition: var(--transition-fast);
}

.checkout__agree-text a:hover {
  text-decoration-color: var(--red-light);
}

/* \u041a\u043d\u043e\u043f\u043a\u0430 \u043e\u043f\u043b\u0430\u0442\u044b */
.checkout__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-2xl);
  background: var(--red-primary);
  color: white;
  font-size: var(--font-size-lg);
  font-weight: 700;
  font-family: var(--font-main);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.checkout__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: var(--transition-base);
}

.checkout__btn:hover:not(:disabled) {
  background: var(--red-light);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.checkout__btn:hover:not(:disabled)::before {
  opacity: 1;
}

.checkout__btn:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.checkout__btn--close {
  margin-top: var(--space-lg);
}

/* \u041f\u043e\u0434\u043f\u0438\u0441\u044c \u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 */
.checkout__secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0443\u0441\u043f\u0435\u0445\u0430 */
.checkout__success {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.checkout__success-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xl);
  background: var(--red-subtle);
  border-radius: 50%;
  color: var(--red-light);
}

.checkout__success h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-md);
}

.checkout__success p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-sm);
}

.checkout__success-note {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  font-style: italic;
}

/* ================= СЕКЦИЯ 9: Footer ================= */
.footer {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border-subtle);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.footer__logo span {
  color: var(--red-light);
}

.footer__links {
  display: flex;
  gap: var(--space-xl);
}

.footer__links a {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__copy {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.footer__legal {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.5;
  margin-top: var(--space-sm);
}

.footer__legal a {
  color: var(--text-muted);
  text-decoration: underline;
  transition: var(--transition-fast);
}

.footer__legal a:hover {
  color: var(--text-secondary);
}

/* ================= СЕКЦИЯ 9: Анимации появления ================= */
/* .reveal класс больше НЕ скрывает элементы через CSS.
   GSAP управляет анимациями программно через set() + to().
   Контент всегда виден, даже без JS. */

/* ================= СЕКЦИЯ 10: Адаптивность ================= */
@media (max-width: 1024px) {
  .hero__content {
    max-width: 480px;
  }

  .hero__stats {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-hero: 2.2rem;
    --font-size-3xl: 2rem;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .header__nav {
    gap: var(--space-lg);
  }

  .hero {
    min-height: auto;
    padding: 120px 0 var(--space-3xl);
  }

  .hero__bg::before {
    background: linear-gradient(180deg,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(10, 10, 10, 0.95) 50%,
        rgba(10, 10, 10, 1) 100%);
  }

  .hero__content {
    max-width: 100%;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__car-name {
    white-space: normal;
    text-align: center;
  }

  .hero__car-line {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__stats {
    justify-content: center;
  }

  .how-it-works__grid {
    grid-template-columns: 1fr;
  }

  .tickets__grid {
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  }

  .tickets__cart {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cart__info {
    flex-direction: column;
    gap: var(--space-md);
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  /* Модалка чекаута */
  .checkout-overlay {
    padding: var(--space-md);
    align-items: flex-end;
  }

  .checkout-modal {
    max-height: 95vh;
    padding: var(--space-xl);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

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

@media (max-width: 480px) {
  :root {
    --font-size-hero: 1.8rem;
  }

  .hero__stats {
    flex-direction: column;
  }

  .stat-card {
    min-width: auto;
  }

  .header__nav {
    gap: var(--space-md);
  }

  .header__nav a {
    font-size: var(--font-size-xs);
  }

  .tickets__tabs {
    justify-content: center;
  }
}

/* ================= КАТАЛОГ ПАРФЮМОВ ================= */
.catalog { padding: var(--space-4xl) 0 var(--space-2xl); }

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: var(--space-xl);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--red-primary), var(--red-light));
  opacity: 0;
  transition: var(--transition-base);
}
.product-card:hover { border-color: var(--border-red); transform: translateY(-6px); box-shadow: var(--shadow-card); }
.product-card:hover::before, .product-card--selected::before { opacity: 1; }
.product-card--selected {
  border-color: var(--red-primary);
  box-shadow: 0 0 0 1px var(--red-primary), 0 8px 30px rgba(192,57,43,0.25);
}

.product-card__img-wrap { aspect-ratio: 1/1; overflow: hidden; background: var(--bg-secondary); }
.product-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card__img-wrap img { transform: scale(1.06); }

.product-card__body { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); flex: 1; }
.product-card__name { font-size: var(--font-size-base); font-weight: 700; line-height: 1.3; }
.product-card__desc { font-size: var(--font-size-xs); color: var(--text-secondary); line-height: 1.55; flex: 1; }
.product-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-sm); margin-top: var(--space-md);
  padding-top: var(--space-md); border-top: 1px solid var(--border-subtle);
}
.product-card__price { font-size: var(--font-size-base); font-weight: 700; color: var(--red-light); white-space: nowrap; }

.product-card__counter {
  display: flex; align-items: center; gap: 2px;
  background: var(--bg-secondary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full); padding: 3px;
}
.counter__btn {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; line-height: 1;
  color: var(--text-secondary); transition: var(--transition-fast);
  background: transparent; border: none; cursor: pointer; font-family: inherit;
}
.counter__btn:hover:not(:disabled) { background: var(--red-subtle); color: var(--red-light); }
.counter__btn:disabled { opacity: 0.25; cursor: not-allowed; }
.counter__value { min-width: 26px; text-align: center; font-size: var(--font-size-sm); font-weight: 700; }

/* Сводка */
.parfum-summary {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-glass);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  animation: fadeInUp 0.35s ease;
}
.parfum-summary.visible { display: flex; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.parfum-summary__info { display: flex; align-items: center; gap: var(--space-xl); flex-wrap: wrap; }
.parfum-summary__info span { font-size: var(--font-size-sm); color: var(--text-secondary); }
.parfum-summary__info strong { color: var(--text-primary); font-weight: 700; }
.parfum-summary__hint { color: var(--red-light) !important; font-weight: 600 !important; }

/* Хинт */
.tickets__parfum-hint {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  padding: var(--space-xs) var(--space-lg);
  background: var(--red-subtle); border: 1px solid var(--border-red);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs); color: var(--red-light); font-weight: 600;
  margin-bottom: var(--space-lg); letter-spacing: 0.03em;
}

/* Lock overlay */
.tickets__wrapper { position: relative; min-height: 300px; }
.tickets__lock {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  z-index: 20; transition: opacity 0.4s ease;
}
.tickets__lock.hidden { opacity: 0; pointer-events: none; }
.tickets__lock-content { text-align: center; padding: var(--space-2xl); }
.tickets__lock-content svg { color: var(--red-primary); margin: 0 auto var(--space-lg); display: block; opacity: 0.7; }
.tickets__lock-content p { font-size: var(--font-size-lg); color: var(--text-secondary); margin-bottom: var(--space-xl); font-weight: 500; }
.tickets__lock-content a {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xl);
  background: var(--red-primary); color: white;
  border-radius: var(--radius-md); font-weight: 600;
  font-size: var(--font-size-sm); transition: var(--transition-base); text-decoration: none;
}
.tickets__lock-content a:hover { background: var(--red-light); transform: translateY(-2px); }

/* Мобильная адаптация */
@media (max-width: 768px) {
  .catalog__grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
}
@media (max-width: 480px) {
  .catalog__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-xs); }
  .parfum-summary { flex-direction: column; align-items: flex-start; }
  .parfum-summary__info { gap: var(--space-md); }
}