/* =============================================
   AI Agency — BMW M760Li Giveaway
   styles.css — повна версія v2
   ============================================= */

/* ===== ЗМІННІ ===== */
:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --bg-card: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.1);
  --text: #f4f4f4;
  --muted: #a0a0a0;
  --accent: #ff5b2e;
  --accent-2: #ffb067;
  --gold: #C9A84C;
  --shadow: 0 20px 60px rgba(0,0,0,0.4);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1200px;
  --header-h: 76px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  /* FIX: прибирає полосу між секціями */
  line-height: 1;
}

/* ===== HELPER ===== */
.hidden {
  display: none !important;
}



img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* ===== КОНТЕЙНЕР ===== */
.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

/* ===== ХЕДЕР ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand strong { display: block; font-size: 18px; font-weight: 800; line-height: 1.3; margin-bottom: 4px; }
.brand span { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}
.nav__links a:hover { color: var(--text); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lang-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-admin-link {
  color: var(--muted);
  font-size: 18px;
  transition: var(--transition);
  line-height: 1;
}
.btn-admin-link:hover { color: var(--gold); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.mobile-nav.open { display: flex; }
.mobile-link {
  padding: 14px 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition);
}
.mobile-link:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.mobile-nav .btn {
  margin: 12px 24px 4px;
  justify-content: center;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  padding: 13px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
}
.btn--lg { padding: 16px 28px; font-size: 15px; }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(255,91,46,0.3);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,91,46,0.4); }
.btn--ghost {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,0.04);
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* FIX: немає margin/padding знизу що давав полосу */
  margin: 0;
  padding: 0;
}
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* FIX: обрізаємо відео щоб не було виходу за межі */
  border-radius: 0;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* FIX: прибираємо scale який давав проміжок */
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(255,120,60,0.15) 0%, transparent 60%),
    linear-gradient(90deg,
      rgba(5,5,5,0.90) 0%,
      rgba(5,5,5,0.65) 40%,
      rgba(5,5,5,0.30) 100%
    ),
    /* FIX: перекриваємо нижній край відео */
    linear-gradient(to bottom, transparent 80%, var(--bg) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 60px) 0 80px;
  width: 100%;
}
.hero__left { max-width: 640px; }

.eyebrow, .section__eyebrow {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.hero h1 {
  /* Один великий рядок — максимальний impact */
  font-size: clamp(40px, 6.5vw, 96px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  /* Весь заголовок в один рядок без переносів */
  white-space: nowrap;
}
/* На малих екранах дозволяємо перенос */
@media (max-width: 900px) {
  .hero h1 { white-space: normal; font-size: clamp(32px, 8vw, 60px); }
}
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(28px, 9vw, 48px); }
}
.hero h1 .h1-word { display: inline; }
.hero h1 .h1-accent {
  /* BMW M760Li — золотий/помаранчевий градієнт */
  display: inline;
  background: linear-gradient(135deg, var(--accent-2) 0%, #fff 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 .h1-price {
  /* $2 — яскравий акцент */
  display: inline;
  background: linear-gradient(135deg, #ff5b2e 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__text {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.hero__stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__stats article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  min-width: 110px;
}
.hero__stats strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}
.hero__stats span { color: var(--muted); font-size: 13px; }

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}
.scroll-chevron {
  width: 22px; height: 22px;
  border-right: 2px solid rgba(255,255,255,0.3);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  transform: rotate(45deg);
}

/* ===== СЕКЦІЇ ===== */
/* FIX: секції без margin, тільки padding — усуває полосу */
.section {
  padding: 100px 0;
  margin: 0;
  background: var(--bg);
}
.section--dark {
  background: var(--bg-soft);
  margin: 0;
}
/* FIX: явно скасовуємо будь-які outline/border між секціями */
.section + .section,
.section + .section--dark,
.section--dark + .section {
  border-top: none;
  outline: none;
}

.section__title {
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}
.section__text {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 600px;
}
.section-head { margin-bottom: 48px; }
.center { text-align: center; }
.center .section__text { margin: 0 auto; }

/* ===== GRID LAYOUTS ===== */
.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  overflow: hidden;
}
.feature-card img { border-radius: 14px; width: 100%; height: 360px; object-fit: cover; }

/* Check list */
.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.check-list li {
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.6;
  position: relative;
}
.check-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-2);
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.price-card:hover { transform: translateY(-4px); border-color: rgba(255,176,103,0.4); }
.price-card--featured {
  border-color: rgba(255,176,103,0.5);
  background: rgba(255,176,103,0.06);
  transform: translateY(-6px);
}
.price-card--featured:hover { transform: translateY(-10px); }
.price-card__tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,176,103,0.12);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.price-card h3 { font-size: 24px; margin-bottom: 8px; }
.price-card__price { font-size: 48px; font-weight: 800; margin-bottom: 20px; }
.price-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}
.price-card ul li::before { content: '✓  '; color: var(--accent-2); }

/* ===== STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: var(--transition);
}
.step-card:hover { border-color: rgba(255,91,46,0.4); transform: translateY(-3px); }
.step-card > span {
  display: inline-flex;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,91,46,0.2), rgba(255,176,103,0.2));
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 18px; margin-bottom: 10px; }
.step-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ===== TRUST ===== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: var(--transition);
  text-align: center;
}
.trust-card:hover { border-color: rgba(201,168,76,0.4); transform: translateY(-3px); }
.trust-icon { font-size: 2.2rem; margin-bottom: 16px; }
.trust-card h3 { font-size: 17px; margin-bottom: 10px; }
.trust-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { font-size: 2rem; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}
.lightbox__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.lightbox__close:hover { background: var(--accent); }

/* ===== ФОРМА — По центру ===== */
.order-center {
  display: flex;
  justify-content: center;
}
.order-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  width: 100%;
  max-width: 720px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
label > span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
input, select {
  display: block;
  width: 100%;
  min-height: 50px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 0 16px;
  transition: var(--transition);
  outline: none;
}
input:focus, select:focus { border-color: var(--accent); background: rgba(255,91,46,0.04); }
input::placeholder { color: rgba(255,255,255,0.25); }
input.error { border-color: #ef4444; }
.field-error { display: block; color: #ef4444; font-size: 12px; margin-top: 4px; min-height: 16px; }

.summary-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.summary-box span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.summary-box strong { font-size: 18px; }

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
  cursor: pointer;
}
.checkbox input[type="checkbox"] {
  width: 18px; min-height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent);
}
.order-form__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.form-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* ===== УЧАСНИКИ ===== */
.stats-row {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  flex: 1;
  min-width: 140px;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-2);
  margin-bottom: 6px;
}
.stat-lbl { color: var(--muted); font-size: 13px; }
.table-search {
  margin-bottom: 16px;
}
.table-search input {
  max-width: 400px;
  border-radius: 999px;
  padding: 0 20px;
}
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
}
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th {
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
td {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
td:first-child { color: var(--accent-2); font-weight: 700; }

/* ===== FAQ ===== */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: rgba(255,91,46,0.4); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  gap: 12px;
  transition: var(--transition);
}
.faq-question:hover { color: var(--accent-2); }
.faq-chevron {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: var(--transition);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); background: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== FINAL CTA ===== */
.final-cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  margin: 0;
}
.final-cta__bg {
  position: absolute;
  inset: 0;
}
.final-cta__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.3); }
.final-cta__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.8) 0%, rgba(10,10,10,0.5) 100%);
}
.final-cta__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.final-cta__content h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.final-cta__content p { color: var(--muted); font-size: 1.1rem; margin-bottom: 36px; line-height: 1.6; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin: 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}
.footer__brand strong { font-size: 20px; font-weight: 800; }
.footer__brand p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer__links a { color: var(--muted); font-size: 14px; transition: var(--transition); }
.footer__links a:hover { color: var(--text); }
.footer__copy { color: rgba(255,255,255,0.25); font-size: 12px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #141414;
  border: 1px solid rgba(255,176,103,0.3);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 60px rgba(255,176,103,0.1);
  transform: translateY(20px);
  transition: var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal__close:hover { background: var(--accent); }
.modal__body { padding: 40px 32px; text-align: center; }
.modal__icon { font-size: 3.5rem; margin-bottom: 16px; }
.modal__body h2 { font-size: 1.8rem; margin-bottom: 8px; }
.modal__body > p { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

.ticket-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
  border: 1px solid rgba(201,168,76,0.5);
  border-radius: 16px;
  padding: 24px;
  margin: 0 auto 20px;
  box-shadow: 0 0 40px rgba(201,168,76,0.15);
}
.ticket-top { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 12px; }
.ticket-number { font-size: 3rem; font-weight: 800; color: var(--accent-2); line-height: 1; margin-bottom: 8px; }
.ticket-name { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.ticket-brand { font-size: 11px; color: rgba(255,255,255,0.3); }
.modal__hint { color: var(--muted); font-size: 13px; margin-bottom: 16px; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  right: 20px; bottom: 20px;
  background: #1a1a1a;
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 600;
  max-width: 320px;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== ANIMATIONS ===== */
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* =============================================
   RESPONSIVE — повна мобільна адаптація
   ============================================= */

/* ── Планшет широкий (≤1024px) ── */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .burger { display: flex; }
  .nav-cta { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Планшет (≤768px) ── */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  /* Контейнер */
  .container { width: calc(100% - 24px); }

  /* Секції — менші відступи */
  .section { padding: 72px 0; }
  .section--dark { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }

  /* Hero */
  .hero { min-height: 100svh; align-items: flex-end; }
  .hero__content { padding: calc(var(--header-h) + 24px) 0 60px; }
  .hero__left { max-width: 100%; }
  .hero__overlay {
    /* На мобільному — більше затемнення знизу для читабельності */
    background:
      linear-gradient(180deg,
        rgba(5,5,5,0.4) 0%,
        rgba(5,5,5,0.7) 50%,
        rgba(5,5,5,0.92) 100%
      );
  }
  .hero h1 {
    font-size: clamp(30px, 9vw, 52px);
    white-space: normal;
    letter-spacing: -0.01em;
  }
  .hero__text { font-size: 14px; margin-bottom: 24px; }
  .hero__actions {
    flex-direction: column;
    gap: 10px;
  }
  .hero__actions .btn { width: 100%; justify-content: center; text-align: center; }
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .hero__stats article { padding: 12px 10px; min-width: unset; text-align: center; }
  .hero__stats strong { font-size: 18px; }
  .hero__stats span { font-size: 11px; }

  /* Eyebrow */
  .eyebrow, .section__eyebrow { font-size: 10px; padding: 6px 12px; }

  /* Грід 2 колонки → 1 */
  .grid-two { grid-template-columns: 1fr; gap: 28px; }
  .feature-card img { height: 260px; }

  /* Пакети → 1 колонка */
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  .price-card--featured { transform: translateY(0); }
  .price-card { padding: 24px 20px; }
  .price-card h3 { font-size: 20px; }
  .price-card__price { font-size: 36px; margin-bottom: 14px; }

  /* Кроки → 1 колонка */
  .steps-grid { grid-template-columns: 1fr; gap: 12px; }
  .step-card { padding: 20px 18px; display: flex; gap: 16px; align-items: flex-start; }
  .step-card > span {
    width: 40px; height: 40px;
    min-width: 40px;
    font-size: 13px;
    margin-bottom: 0;
  }
  .step-card h3 { font-size: 16px; margin-bottom: 6px; }

  /* Trust → 1 колонка */
  .trust-grid { grid-template-columns: 1fr; gap: 12px; }
  .trust-card { padding: 20px; display: flex; align-items: flex-start; gap: 16px; text-align: left; }
  .trust-icon { font-size: 1.8rem; margin-bottom: 0; flex-shrink: 0; }

  /* Галерея → 2 колонки */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item { aspect-ratio: 4/3; }

  /* Форма */
  .order-form { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .summary-box { grid-template-columns: 1fr; gap: 12px; }
  .order-form__actions { flex-direction: column; gap: 10px; }
  .order-form__actions .btn { width: 100%; justify-content: center; }

  /* Учасники */
  .stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-card { padding: 16px 12px; }
  .stat-num { font-size: 1.6rem; }
  .stat-lbl { font-size: 11px; }
  .table-search input { max-width: 100%; }

  /* FAQ */
  .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
  .faq-question { font-size: 14px; padding: 16px 16px; }

  /* Final CTA */
  .final-cta { padding: 80px 0; }
  .final-cta__content h2 { font-size: 1.8rem; }
  .final-cta__content p { font-size: 1rem; margin-bottom: 28px; }
  .final-cta__content .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer__links { gap: 16px; }

  /* Modal */
  .modal { max-width: 100%; margin: 0 12px; border-radius: 20px; }
  .modal__body { padding: 32px 20px; }
  .ticket-number { font-size: 2.5rem; }
}

/* ── Мобільний (≤480px) ── */
@media (max-width: 480px) {
  :root { --header-h: 56px; }

  /* Header */
  .header__inner { padding: 0 16px; }
  .brand strong { font-size: 16px; }
  .brand span { font-size: 11px; }
  .lang-btn { padding: 5px 10px; font-size: 11px; }

  /* Hero */
  .hero__content { padding: calc(var(--header-h) + 16px) 0 48px; }
  .hero h1 { font-size: clamp(26px, 8.5vw, 40px); }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero__stats article { padding: 10px 8px; }
  .hero__stats strong { font-size: 16px; }
  .hero__stats span { font-size: 10px; }
  .hero__scroll-hint { display: none; }

  /* Кнопки */
  .btn { padding: 13px 18px; font-size: 14px; }
  .btn--lg { padding: 15px 20px; font-size: 14px; }

  /* Секції */
  .section { padding: 56px 0; }
  .section__title { font-size: clamp(22px, 6vw, 34px); }

  /* Галерея → 1 колонка */
  .gallery-grid { grid-template-columns: 1fr; gap: 10px; }
  .gallery-item { aspect-ratio: 16/10; }

  /* Пакети */
  .pricing-grid { gap: 12px; }

  /* Кроки */
  .step-card { padding: 16px 14px; }
  .step-card > span { width: 36px; height: 36px; min-width: 36px; font-size: 12px; }
  .step-card h3 { font-size: 15px; }
  .step-card p { font-size: 13px; }

  /* Trust */
  .trust-card { padding: 16px 14px; }
  .trust-icon { font-size: 1.5rem; }
  .trust-card h3 { font-size: 15px; }
  .trust-card p { font-size: 13px; }

  /* Учасники */
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-card { padding: 12px 8px; }
  .stat-num { font-size: 1.4rem; }

  /* Форма */
  .order-form { padding: 20px 16px; border-radius: 16px; }
  .form-grid label span { font-size: 11px; }
  input, select { min-height: 46px; font-size: 15px; }

  /* FAQ */
  .faq-question { font-size: 13px; padding: 14px; }
  .faq-answer p { font-size: 13px; }

  /* Toast */
  .toast { left: 12px; right: 12px; max-width: unset; bottom: 16px; }

  /* Таблиця учасників — горизонтальний скрол */
  .table-wrap { border-radius: 12px; }
  table { min-width: 520px; }
  th, td { padding: 12px 12px; font-size: 12px; }

  /* Feature card */
  .feature-card img { height: 220px; }

  /* Modal */
  .modal__body { padding: 28px 16px; }
  .modal__body h2 { font-size: 1.5rem; }
  .ticket-card { padding: 20px 16px; }
  .ticket-number { font-size: 2.2rem; }
}

/* ── Дуже малий (≤360px) ── */
@media (max-width: 360px) {
  .hero h1 { font-size: 24px; }
  .hero__stats { gap: 6px; }
  .hero__stats article { padding: 8px 6px; }
  .hero__stats strong { font-size: 14px; }
  .hero__stats span { font-size: 9px; }
  .stats-row { grid-template-columns: 1fr; gap: 8px; }
  .stat-card { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
  .stat-num { font-size: 1.6rem; margin-bottom: 0; }
}

/* ── Touch-specific покращення ── */
@media (hover: none) and (pointer: coarse) {
  /* Більші зони кліку для touch */
  .btn { min-height: 48px; }
  .faq-question { min-height: 52px; }
  .gallery-item .gallery-overlay { opacity: 1; background: rgba(0,0,0,0.2); }
  .thumb { opacity: 0.8; }
  .thumb.active { opacity: 1; }
  /* Прибираємо hover ефекти що не працюють на touch */
  .price-card:hover,
  .step-card:hover,
  .trust-card:hover,
  .g-card:hover { transform: none; }
}

/* ── Landscape мобільний ── */
@media (max-width: 768px) and (orientation: landscape) {
  .hero { min-height: 100vw; }
  .hero__content { padding-top: calc(var(--header-h) + 16px); padding-bottom: 32px; }
  .hero h1 { font-size: clamp(22px, 5vw, 38px); }
  .hero__text { display: none; }
}
