/* ============================================================
   Мюзикл «Остров Сокровищ» — ostrovsokrovih.ru
   Тема: ночное море + золото. Одна тема на всю страницу (dark).
   Радиусы (правило): интерактив = pill; карточки/медиа = 20px;
   вложенные медиа = 14px. Акцент один: золото.
   z-index шкала: nav 100 / sticky-bar 90 / modal 200.
   ============================================================ */

/* ---------- Шрифты (self-hosted, кириллица) ---------- */
@font-face {
  font-family: 'Unbounded';
  src: url('../assets/fonts/unbounded-v12-cyrillic_latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Unbounded';
  src: url('../assets/fonts/unbounded-v12-cyrillic_latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Unbounded';
  src: url('../assets/fonts/unbounded-v12-cyrillic_latin-900.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/manrope-v20-cyrillic_latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/manrope-v20-cyrillic_latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/manrope-v20-cyrillic_latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/manrope-v20-cyrillic_latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/manrope-v20-cyrillic_latin-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ---------- Токены ---------- */
:root {
  --bg0: #070f1d;
  --bg1: #0b1626;
  --bg2: #10203a;
  --cream: #f5eddb;
  --cream-72: rgba(245, 237, 219, .72);
  --cream-55: rgba(245, 237, 219, .55);
  --cream-40: rgba(245, 237, 219, .4);
  --gold: #e8b452;
  --gold-2: #f4cf7f;
  --gold-deep: #b8842c;
  --ink-on-gold: #1c1204;
  --line: rgba(232, 180, 82, .18);
  --line-soft: rgba(245, 237, 219, .1);
  --shadow-card: 0 24px 60px rgba(3, 8, 18, .55);
  --font-display: 'Unbounded', 'Arial Black', sans-serif;
  --font-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --r-card: 20px;
  --r-nested: 14px;
  --container: 1200px;
  --nav-h: 72px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  background: var(--bg1);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--gold); color: var(--ink-on-gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: clamp(84px, 11vw, 136px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(27px, 4.2vw, 46px);
  line-height: 1.12;
  letter-spacing: -.01em;
}
.section-sub {
  margin-top: 16px;
  color: var(--cream-72);
  font-size: clamp(16px, 1.6vw, 18px);
  max-width: 58ch;
}
.section-head.center .section-sub { margin-inline: auto; }

.icon { width: 1em; height: 1em; flex: none; fill: currentColor; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  padding: 17px 32px;
  white-space: nowrap;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s, border-color .25s, background-color .25s;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-gold {
  background: linear-gradient(160deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  color: var(--ink-on-gold);
  box-shadow: 0 12px 30px rgba(232, 180, 82, .22), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(232, 180, 82, .3), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-ghost {
  border: 1px solid rgba(245, 237, 219, .32);
  color: var(--cream);
  background: rgba(245, 237, 219, .04);
}
.btn-max {
  background: #7a5cfa;
  color: #fff;
}
.btn-max:hover { background: #6a48f0; }
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-2);
  transform: translateY(-2px);
}
.btn-sm { padding: 12px 22px; font-size: 14.5px; }

/* ---------- Навигация ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background-color .35s, backdrop-filter .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 15, 29, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .icon { width: 20px; height: 20px; color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--cream-72);
  transition: color .2s;
}
.nav-links a:hover { color: var(--cream); }
.nav-cta { margin-left: 4px; }
.nav-burger {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(7, 15, 29, .96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 32px 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu a .icon { color: var(--gold); width: 20px; height: 20px; }
.mobile-menu a.btn {
  margin-top: 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 17px 32px;
  border-bottom: none;
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 96px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 48% 48%;
  will-change: transform;
}
/* Фоновое видео поверх кадра-постера; включается из JS (не при reduced-motion / Save-Data) */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 48% 48%;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.hero-video.ready { opacity: 1; }
.hero-bg.has-video .hero-flash { display: none; }
/* Вспышки молний: оживляют фон как видео, но без веса видео */
.hero-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(58% 80% at 82% 26%,
    rgba(214, 232, 255, .92) 0%,
    rgba(210, 165, 130, .22) 34%,
    rgba(0, 0, 0, 0) 62%);
  mix-blend-mode: screen;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-flash { animation: hero-lightning 8.5s ease-out infinite; }
}
@keyframes hero-lightning {
  0%, 90%, 100% { opacity: 0; }
  91% { opacity: .75; }
  92.5% { opacity: .12; }
  94% { opacity: .9; }
  96% { opacity: 0; }
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 15, 29, .93) 0%, rgba(7, 15, 29, .72) 42%, rgba(7, 15, 29, .38) 100%),
    linear-gradient(0deg, var(--bg1) 0%, rgba(11, 22, 38, 0) 32%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: 100%;
}
.hero-presents {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.hero-presents-logo {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45));
}
.hero-presents span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-55);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  color: var(--gold-2);
  background: rgba(232, 180, 82, .08);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-badge .icon { width: 15px; height: 15px; }
/* Лёгкая пульсация бейджа-дефицита: мягкое «дыхание» + слабое золотое свечение */
@media (prefers-reduced-motion: no-preference) {
  .hero-badge {
    animation: badge-pulse 2.8s ease-in-out infinite;
    will-change: transform;
  }
}
@keyframes badge-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 180, 82, 0); }
  50% { transform: scale(1.035); box-shadow: 0 0 20px 2px rgba(232, 180, 82, .18); }
}
.hero h1 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: -.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
/* H1 = официальный логотип мюзикла (alt хранит текст для SEO и скринридеров) */
.hero-logo { margin-top: 26px; }
.hero-logo img {
  width: clamp(300px, 36vw, 470px);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .5));
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(16.5px, 1.8vw, 19px);
  color: var(--cream-72);
  max-width: 44ch;
}
.hero-ctas {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-ctas .icon { width: 17px; height: 17px; }

/* Билетная карточка ближайшего показа */
.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: rgba(9, 18, 33, .62);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(245, 237, 219, .07);
  padding: 26px 26px 24px;
  max-width: 420px;
  justify-self: end;
  width: 100%;
}
.hero-card-label {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-card-date {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.hero-card-day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  color: var(--cream);
}
.hero-card-when {
  font-size: 15px;
  color: var(--cream-72);
  line-height: 1.45;
}
.hero-card-when strong {
  display: block;
  color: var(--cream);
  font-weight: 700;
  font-size: 17px;
}
.hero-card-rows { margin-top: 16px; display: grid; gap: 9px; }
.hero-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--cream-72);
}
.hero-card-row .icon { width: 16px; height: 16px; color: var(--gold); }
.hero-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-2);
}
.hero-card .btn { width: 100%; margin-top: 20px; }
.hero-card-note {
  margin-top: 11px;
  text-align: center;
  font-size: 12.5px;
  color: var(--cream-55);
}

/* ---------- Бегущая строка ---------- */
.marquee {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg0);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 30s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream-55);
  white-space: nowrap;
}
.marquee-item .icon { width: 14px; height: 14px; color: var(--gold); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ---------- Расписание ---------- */
.schedule {
  background: var(--bg1);
  position: relative;
}
/* Текстура старой морской карты: расписание = карта плавания.
   Секция короткая (блок «как купить» вынесен отдельно), поэтому текстура
   не растягивается; снизу мягко затухает в однотонный фон. */
.schedule::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../assets/img/tex-map.jpg') center / cover no-repeat;
  opacity: .3;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
}
.schedule > .container { position: relative; }

/* Однотонная секция «как купить + группы» сразу под расписанием */
.buy-section {
  background: var(--bg1);
  padding-top: 0;
}
.buy-section .buy-how { margin-top: 0; }
.month-label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 34px 0 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.month-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}
.dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}
.date-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  background: var(--bg2);
  padding: 22px 20px 18px;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), border-color .3s, box-shadow .3s;
}
.date-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 180, 82, .45);
  box-shadow: var(--shadow-card);
}
.date-card.past {
  opacity: .4;
  filter: grayscale(0.6);
  pointer-events: none;
}
.date-card.past::after {
  content: "Показ прошёл";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--cream-55);
}
.date-card-day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 42px;
  line-height: 1;
}
.date-card-dow {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cream-55);
  margin-top: 6px;
}
.date-card-time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  border-radius: 999px;
  background: rgba(232, 180, 82, .13);
  color: var(--gold-2);
  font-weight: 800;
  font-size: 15px;
  padding: 6px 14px;
}
.date-card-time .icon { width: 14px; height: 14px; }
.date-card-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--gold);
  margin-top: auto;
}
.date-card-go .icon { width: 15px; height: 15px; transition: transform .25s; }
.date-card:hover .date-card-go .icon { transform: translateX(4px); }
.date-card.nearest { border-color: var(--gold); }
.date-card.nearest::before {
  content: "ближайший";
  position: absolute;
  top: -11px;
  right: 14px;
  background: linear-gradient(160deg, var(--gold-2), var(--gold));
  color: var(--ink-on-gold);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
}
.schedule-info {
  margin-top: 40px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  background: var(--bg0);
  padding: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
}
.schedule-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--cream-72);
}
.schedule-info-item .icon { width: 20px; height: 20px; color: var(--gold); }
.schedule-info-item strong { color: var(--cream); font-weight: 700; }
.schedule-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--cream-55);
}

/* ---------- Полоса цифр ---------- */
.stats {
  background: var(--bg0);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(48px, 6vw, 72px) 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1;
  color: var(--gold);
}
.stat-label {
  margin-top: 10px;
  font-size: 15px;
  color: var(--cream-72);
}

/* ---------- Бенто «Что вас ждёт» ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "a a b b"
    "a a c f"
    "d e c f";
  gap: 14px;
  grid-auto-rows: 215px;
}
.bento-cell {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg2);
}
.bento-a { grid-area: a; }
.bento-b { grid-area: b; }
.bento-c { grid-area: c; }
.bento-d { grid-area: d; }
.bento-e { grid-area: e; }
.bento-f { grid-area: f; }
.bento-cell > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}
.bento-cell:hover > img { transform: scale(1.05); }
.bento-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 22px 20px;
  background: linear-gradient(0deg, rgba(5, 11, 22, .92) 0%, rgba(5, 11, 22, .55) 55%, rgba(5, 11, 22, 0) 100%);
}
.bento-caption h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17.5px;
  line-height: 1.25;
}
.bento-caption p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cream-72);
}
.bento-story {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(232, 180, 82, .14) 0%, rgba(232, 180, 82, 0) 55%),
    var(--bg2);
}
.bento-story h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
}
.bento-story p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream-72);
}
.bento-story .chips {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Трейлер ---------- */
.trailer { background: var(--bg0); }
.trailer-media {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  display: block;
  width: 100%;
}
.trailer-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}
.trailer-media:hover img { transform: scale(1.03); }
.trailer-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 22, .28);
  transition: background .3s;
}
.trailer-media:hover::after { background: rgba(5, 11, 22, .14); }
.trailer-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(160deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  color: var(--ink-on-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 44px rgba(232, 180, 82, .38);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
.trailer-media:hover .trailer-play { transform: translate(-50%, -50%) scale(1.08); }
.trailer-play .icon { width: 32px; height: 32px; margin-left: 4px; }
.trailer-play::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 999px;
  border: 1px solid rgba(232, 180, 82, .5);
  animation: play-pulse 2.6s cubic-bezier(.16, 1, .3, 1) infinite;
}
@keyframes play-pulse {
  0% { transform: scale(.85); opacity: 0; }
  35% { opacity: .9; }
  100% { transform: scale(1.25); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .trailer-play::before { animation: none; opacity: .6; }
}
.trailer-actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.trailer-actions .icon { width: 15px; height: 15px; }

/* ---------- Маршрут приключения ---------- */
.route { position: relative; }
.route-wrap {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}
.route-svg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 120px;
  pointer-events: none;
}
.route-svg path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.route-svg .route-base {
  stroke-dasharray: 7 9;
  opacity: .25;
}
.route-svg .route-progress { opacity: .9; }
.route-stop {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 72px;
  padding: 24px 0;
}
.route-stop-body { grid-column: 1; text-align: right; }
.route-stop:nth-child(even) .route-stop-body { grid-column: 2; text-align: left; }
.route-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--bg0);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: background-color .4s, box-shadow .4s, border-color .4s;
}
.route-marker .icon { width: 22px; height: 22px; }
.route-stop.active .route-marker {
  background: linear-gradient(160deg, var(--gold-2), var(--gold));
  border-color: var(--gold-2);
  color: var(--ink-on-gold);
  box-shadow: 0 10px 30px rgba(232, 180, 82, .35);
}
.route-stop h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.3;
}
.route-stop p {
  margin-top: 9px;
  font-size: 15.5px;
  color: var(--cream-72);
  line-height: 1.6;
}
.route-stop-img {
  margin-top: 14px;
  max-width: 82%;
  margin-left: auto;
  border-radius: var(--r-nested);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.route-stop:nth-child(even) .route-stop-img { margin-left: 0; margin-right: auto; }
.route-stop-img img { width: 100%; height: auto; }

/* ---------- Отзывы: скриншоты с билетных площадок ---------- */
.reviews { background: var(--bg0); }
.reviews-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
.review-shot { margin: 0; }
.review-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-nested);
  border: 1px solid var(--line-soft);
  box-shadow: 0 14px 34px rgba(3, 8, 18, .4);
}
.review-shot figcaption {
  margin-top: 9px;
  font-size: 13px;
  color: var(--cream-55);
}
.review-shot figcaption a {
  color: var(--gold);
  font-weight: 700;
}
.review-shot figcaption a:hover { color: var(--gold-2); }

/* FAQ: кнопка «Отправить в МАХ» под вопросами */
.faq-cta {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  text-align: center;
}
.faq-cta > span { color: var(--cream-72); font-size: 15.5px; }

/* Слайдер отзывов на мобильном (свайп) */
.reviews-slider-hint { display: none; }
.reviews-links {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.reviews-links > span {
  font-size: 15px;
  color: var(--cream-72);
  margin-right: 4px;
}
/* Кликабельные цифры статистики, ведущие к отзывам */
.stat-link { display: inline-block; }
.stat-link:hover .stat-num { color: var(--gold-2); }
.stat-link:hover .stat-label { color: var(--cream); }
.stat-link .stat-num { transition: color .25s; }
.stat-link .stat-label { transition: color .25s; }

/* ---------- Создатели ---------- */
.creators {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(48px, 6vw, 72px) 0;
  background: var(--bg1);
}
.creators-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.creator-role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream-55);
}
.creator-name {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 2vw, 21px);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line-soft);
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-2); }
.faq-item summary .icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
  transition: transform .3s;
}
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item[open] summary { color: var(--gold-2); }
.faq-answer {
  padding: 0 4px 24px;
  color: var(--cream-72);
  font-size: 15.5px;
  max-width: 62ch;
}

/* ---------- Как добраться ---------- */
.venue { background: var(--bg0); }
.venue-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.venue-rows { margin-top: 28px; display: grid; gap: 16px; }
.venue-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  color: var(--cream-72);
}
.venue-row .icon { width: 21px; height: 21px; color: var(--gold); margin-top: 2px; }
.venue-row strong { color: var(--cream); font-weight: 700; display: block; }
.venue .btn { margin-top: 30px; }
.venue-map {
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}
.venue-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(.85) contrast(1.02);
}

/* ---------- Финальный CTA ---------- */
.final {
  position: relative;
  padding: clamp(110px, 15vw, 190px) 0;
  overflow: hidden;
  text-align: center;
}
.final-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.final-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}
.final-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--bg0) 2%, rgba(7, 15, 29, .68) 40%, rgba(7, 15, 29, .82) 100%);
}
.final .h2 { font-size: clamp(30px, 5vw, 58px); }
.final-sub {
  margin: 18px auto 0;
  max-width: 52ch;
  color: var(--cream-72);
  font-size: clamp(16px, 1.8vw, 18.5px);
}
.final .btn { margin-top: 36px; padding: 20px 44px; font-size: 17px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg0);
  border-top: 1px solid var(--line-soft);
  padding: 52px 0 36px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand { max-width: 320px; }
.footer-brand .nav-logo { font-size: 14px; }
.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--cream-55);
}
.footer-ivengo {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-ivengo img {
  height: 58px;
  width: auto;
  flex: none;
}
.footer-ivengo span {
  font-size: 13px;
  line-height: 1.4;
  color: var(--cream-55);
  max-width: 22ch;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream-55);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a, .footer-col li {
  font-size: 14.5px;
  color: var(--cream-72);
}
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--cream-40);
}

/* ---------- Sticky-бар (мобильный) ---------- */
.sticky-bar {
  position: fixed;
  z-index: 90;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(7, 15, 29, .92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar-price {
  line-height: 1.25;
  font-size: 12.5px;
  color: var(--cream-55);
}
.sticky-bar-price strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--gold-2);
}
.sticky-bar .btn { padding: 13px 26px; font-size: 15px; }

/* ---------- Модалка видео ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 9, 18, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.video-modal.open { opacity: 1; visibility: visible; }
.video-modal-box {
  position: relative;
  width: min(960px, 100%);
}
.video-modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg0);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
}
.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal-close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(9, 18, 33, .7);
  color: var(--gold-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal-close .icon { width: 20px; height: 20px; }
.video-modal-close:hover { border-color: var(--gold); }

/* ---------- Появление при скролле ---------- */
.js-anim [data-reveal] { opacity: 0; }

/* ---------- Доработки под ЦА: теги дат, шаги покупки, группы ---------- */
.date-card-tag {
  position: absolute;
  top: -11px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #15233d; /* сплошной, чтобы рамка карточки не просвечивала */
  border: 1px solid var(--gold);
  color: var(--gold-2);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
}
.date-card-tag .icon { width: 12px; height: 12px; }
.date-card.ny { border-color: rgba(232, 180, 82, .4); }

.buy-how { margin-top: 44px; }
.buy-how-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(19px, 2.4vw, 24px);
  margin-bottom: 22px;
}
.buy-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.buy-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  background: var(--bg2);
  padding: 22px;
}
.buy-step-num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(160deg, var(--gold-2), var(--gold));
  color: var(--ink-on-gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.buy-step strong {
  display: block;
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 5px;
}
.buy-step p {
  font-size: 14.5px;
  color: var(--cream-72);
  line-height: 1.5;
}

.group-cta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(232, 180, 82, .12) 0%, rgba(232, 180, 82, 0) 55%),
    var(--bg0);
  padding: 26px 28px;
}
.group-cta-text { max-width: 62ch; }
.group-cta-text h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 22px);
}
.group-cta-text p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--cream-72);
  line-height: 1.55;
}
.group-cta .btn { flex: none; }
.group-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: none;
}
.group-cta-actions .icon { width: 17px; height: 17px; }

@media (max-width: 768px) {
  .buy-steps { grid-template-columns: 1fr; }
  .group-cta { flex-direction: column; align-items: flex-start; }
  .group-cta-actions { width: 100%; flex-direction: column; }
  .group-cta .btn { width: 100%; }
}

/* ---------- Пиратские детали ---------- */

/* Волны-разделители: цвет предыдущей секции «затекает» волной в следующую */
.trailer, .reviews, .venue { position: relative; }
.reviews::before, .venue::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 28' preserveAspectRatio='none'%3E%3Cpath d='M0,14 C240,30 480,-2 720,14 C960,30 1200,-2 1440,14 L1440,0 L0,0 Z' fill='%230b1626'/%3E%3C/svg%3E") center / 100% 28px no-repeat;
  pointer-events: none;
}

/* FAQ: «чёрная метка» вместо стрелки. Закрыт = тёмная метка, открыт = золотая */
.faq-item summary .icon { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #080d16;
  border: 1.5px solid var(--gold);
  transition: background-color .3s, box-shadow .3s, transform .3s;
}
.faq-item[open] summary::after {
  background: var(--gold);
  box-shadow: 0 0 12px rgba(232, 180, 82, .45);
  transform: rotate(180deg);
}

/* Карточки дат как билеты: настоящие вырезы по бокам (маска) + линия отрыва.
   Поверхность карточки рисует ::after с дырками, сквозь которые видна текстура. */
.date-card {
  background: none;
  border: none;
  z-index: 0; /* свой stacking context, чтобы ::after (z:-1) не ушёл под текстуру */
}
.date-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  transition: border-color .3s;
  --notch-y: calc(100% - 57px); /* центр выреза точно на линии отрыва */
  -webkit-mask-image:
    radial-gradient(circle at 0 var(--notch-y), transparent 8px, #000 9px),
    radial-gradient(circle at 100% var(--notch-y), transparent 8px, #000 9px);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(circle at 0 var(--notch-y), transparent 8px, #000 9px),
    radial-gradient(circle at 100% var(--notch-y), transparent 8px, #000 9px);
  mask-composite: intersect;
}
.date-card:hover::after { border-color: rgba(232, 180, 82, .45); }
.date-card.nearest::after { border-color: var(--gold); }
.date-card-go {
  position: relative;
  border-top: 1.5px dashed rgba(245, 237, 219, .25);
  padding-top: 14px;
  margin-inline: -12px;
  padding-inline: 12px;
  white-space: nowrap;
}

/* Сургучная печать 6+ на билетной карточке */
.hero-seal {
  position: absolute;
  top: -26px;
  right: -14px;
  width: 76px;
  height: 79px;
  transform: rotate(12deg);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5));
  z-index: 2;
}
.hero-seal img { width: 100%; height: 100%; }
.hero-seal span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: #f7ded6;
  text-shadow: 0 1px 2px rgba(90, 8, 8, .8);
  padding-bottom: 4px;
}
.hero-card { position: relative; }

/* Золотые дублоны у цены */
.coins-img {
  width: 46px;
  height: auto;
  flex: none;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .4));
}

/* Пасхалка: сундук с сокровищами в футере */
.chest-wrap {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.chest-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cream-55);
  white-space: nowrap;
}
.chest-hint .icon {
  width: 20px;
  height: 20px;
  color: var(--gold);
}
.treasure-chest {
  display: block;
  padding: 0;
  width: 64px;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
.treasure-chest img { width: 100%; height: auto; }
.treasure-chest:hover { transform: rotate(-6deg) scale(1.08); }
.treasure-chest:active { transform: scale(.95); }
.coin-particle {
  position: fixed;
  z-index: 300;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f8dc9a, var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 0 6px rgba(232, 180, 82, .55);
  pointer-events: none;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "a a"
      "a a"
      "b c"
      "f c"
      "d e";
    grid-auto-rows: 210px;
  }
  .reviews-shots { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { justify-self: stretch; max-width: 520px; }
  .hero { padding-bottom: 72px; }
  .hero-bg img,
  .hero-video { object-position: 76% 58%; }
  .venue-grid { grid-template-columns: 1fr; }
  .venue-map { aspect-ratio: 16 / 10; }
  .route-svg { left: 27px; transform: none; }
  .route-stop { grid-template-columns: 1fr; padding: 20px 0 20px 76px; }
  .route-stop-img,
  .route-stop:nth-child(even) .route-stop-img { max-width: 100%; margin-left: 0; margin-right: 0; }
  .route-stop-body,
  .route-stop:nth-child(even) .route-stop-body { grid-column: 1; text-align: left; }
  .route-marker { left: 27px; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-inner { gap: 14px; }
  .nav-cta { margin-left: auto; }
  .nav-burger { margin-left: 0; }
  .sticky-bar { display: flex; }
  .stats-row { gap: 18px; }
}

@media (max-width: 520px) {
  .nav-cta { display: none; }
  .nav-burger { margin-left: auto; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .container { padding: 0 18px; }
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "a" "b" "c" "d" "e" "f";
    grid-auto-rows: minmax(210px, auto);
  }
  .bento-a { min-height: 300px; }
  .stats-row { grid-template-columns: 1fr; gap: 28px; }
  .creators-row { grid-template-columns: 1fr; gap: 22px; }
  .dates-grid { grid-template-columns: repeat(2, 1fr); }
  /* Отзывы: горизонтальный свайп-слайдер вместо длинной ленты */
  .reviews-shots {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -18px;
    padding: 0 18px 6px;
  }
  .reviews-shots::-webkit-scrollbar { display: none; }
  .review-shot {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }
  .reviews-slider-hint {
    display: block;
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: var(--cream-55);
  }
  .hero-ctas .btn { flex: 1 1 100%; }
  .schedule-info { flex-direction: column; gap: 14px; }
  .footer-grid { flex-direction: column; }
  .video-modal { padding: 14px; }
  .video-modal-close { top: -54px; }
}

/* ---------- Доверие в hero (отзывы + рейтинг) ---------- */
.hero-trust {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--cream-72);
  text-decoration: none;
  transition: color .25s;
}
.hero-trust:hover { color: var(--cream); }
.hero-trust > span:last-child { max-width: 34ch; }
.hero-trust strong { color: var(--gold); font-weight: 700; }
.ya-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border-radius: 12px;
  padding: 8px 13px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .38);
}
.ya-badge-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #fc3f1d;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ya-badge-col { display: flex; flex-direction: column; gap: 1px; }
.ya-badge-score {
  color: #1c1c1c;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}
.ya-badge-star { color: #ffb800; margin-right: 4px; }
.ya-badge-label {
  color: #7d7d85;
  font-size: 10.5px;
  line-height: 1.2;
  white-space: nowrap;
}

/* ---------- Дефицит билетов в расписании ---------- */
.schedule-urgency {
  margin-top: 16px;
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid rgba(232, 180, 82, .38);
  border-radius: 999px;
  background: rgba(232, 180, 82, .08);
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 700;
}

/* ---------- Подарок ребёнку ---------- */
.gift-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(232, 180, 82, .13) 0%, rgba(232, 180, 82, 0) 55%),
    var(--bg0);
  padding: clamp(28px, 4vw, 48px);
}
.gift-chest {
  position: absolute;
  right: -14px;
  bottom: -24px;
  width: clamp(120px, 15vw, 190px);
  height: auto;
  transform: rotate(-8deg);
  opacity: .9;
  pointer-events: none;
}
.gift-text { max-width: 56ch; }
.gift-text p { margin-top: 12px; color: var(--cream-72); line-height: 1.6; }
.gift-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gift-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-nested);
  background: rgba(9, 18, 33, .5);
  padding: 18px;
}
.gift-item strong { display: block; color: var(--gold); font-weight: 700; }
.gift-item p { margin-top: 8px; font-size: 14.5px; color: var(--cream-72); line-height: 1.55; }
.gift-card > .btn { margin-top: 26px; }

/* ---------- О компании ---------- */
.company-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.company-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.company-label + .h2 { margin-top: 10px; }
.company-text { margin-top: 16px; color: var(--cream-72); line-height: 1.65; }
.company .btn { margin-top: 26px; }
.company-photo { margin: 0; }
.company-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.company-photo figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--cream-55);
}

@media (max-width: 900px) {
  .company-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .gift-grid { grid-template-columns: 1fr; }
  .gift-chest { display: none; }
}

/* ---------- Контакты и форма обратной связи ---------- */
.contacts { background: var(--bg0); }
.contacts-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(20px, 3.5vw, 40px);
  align-items: start;
}
.contact-cards { display: grid; gap: 12px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-nested);
  background: rgba(9, 18, 33, .5);
  text-decoration: none;
  transition: border-color .25s, transform .25s;
}
.contact-card:hover { border-color: var(--gold); transform: translateX(4px); }
.contact-ico {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.ico-wa { background: #25d366; }
.ico-tg { background: #2aabee; }
.ico-max { background: #7a5cfa; }
.ico-mail { background: linear-gradient(160deg, var(--gold-2), var(--gold)); color: var(--ink-on-gold); }
.ico-faq { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.contact-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-card-text strong { color: var(--cream); font-weight: 700; }
.contact-card-text span { font-size: 13.5px; color: var(--cream-55); overflow-wrap: anywhere; }

.fb-form {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: rgba(9, 18, 33, .5);
  padding: clamp(20px, 3vw, 30px);
}
.fb-label {
  display: block;
  margin: 16px 0 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cream-72);
}
.fb-form > .fb-label:first-child { margin-top: 0; }
.fb-input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 15, 29, .75);
  color: var(--cream);
  font: inherit;
  font-size: 15px;
  transition: border-color .25s;
}
.fb-input::placeholder { color: var(--cream-55); }
.fb-input:focus { outline: none; border-color: var(--gold); }
.fb-input.invalid { border-color: #e05252; }
select.fb-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23e8b452'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
}
select.fb-input option { background: #0b1626; color: #f5eddb; }
textarea.fb-input { resize: vertical; min-height: 96px; }
.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.fb-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.fb-note { margin-top: 14px; font-size: 12.5px; color: var(--cream-55); line-height: 1.5; }

@media (max-width: 900px) {
  .contacts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fb-row { grid-template-columns: 1fr; }
  .fb-actions .btn { width: 100%; }
}

/* ---------- Дефицит мест ---------- */
.hero-card-urgency {
  width: fit-content;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid rgba(232, 180, 82, .38);
  border-radius: 999px;
  background: rgba(232, 180, 82, .08);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-2);
  white-space: nowrap;
}
.hero-card-urgency .icon { width: 14px; height: 14px; flex: none; }
.hero-card-urgency + .btn { margin-top: 12px; }
.buy-urgency {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-2);
}

/* ---------- Пасхалка: пират за 100 кликов по сундуку ---------- */
.pirate-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 9, 18, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pirate-modal.open { display: flex; }
.pirate-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.rain-coin {
  position: absolute;
  top: -20px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f8dc9a, var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 0 6px rgba(232, 180, 82, .55);
}
.pirate-modal-box {
  position: relative;
  z-index: 2;
  max-width: 430px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(232, 180, 82, .14) 0%, rgba(232, 180, 82, 0) 60%),
    var(--bg0);
  box-shadow: var(--shadow-card);
  padding: 0 28px 30px;
  margin-top: 90px;
}
.pirate-modal-img {
  width: 220px;
  height: auto;
  margin-top: -100px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .55));
}
.pirate-modal.open .pirate-modal-img { animation: pirate-pop .75s cubic-bezier(.34, 1.56, .64, 1) both; }
.pirate-modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--gold);
  margin-top: 14px;
}
.pirate-modal-text {
  margin-top: 10px;
  font-size: 15px;
  color: var(--cream-72);
  line-height: 1.6;
}
.pirate-modal .btn { margin-top: 22px; }
.pirate-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 237, 219, .08);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
  cursor: pointer;
  transition: background-color .25s;
}
.pirate-modal-close .icon { width: 16px; height: 16px; }
.pirate-modal-close:hover { background: rgba(245, 237, 219, .16); }
@keyframes pirate-pop {
  0% { transform: translateY(110px) scale(.3) rotate(-10deg); opacity: 0; }
  60% { transform: translateY(-12px) scale(1.05) rotate(2deg); opacity: 1; }
  100% { transform: translateY(0) scale(1) rotate(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .pirate-modal.open .pirate-modal-img { animation: none; }
}
.pirate-modal.stage-1 .pirate-modal-img { width: 185px; margin-top: -72px; }
@media (max-width: 480px) {
  .pirate-modal-img { width: 175px; margin-top: -80px; }
  .pirate-modal-box { margin-top: 70px; padding: 0 20px 24px; }
  .pirate-modal.stage-1 .pirate-modal-img { width: 150px; margin-top: -58px; }
}
