/* KAIF — kaifclub.com
   Стиль: чёрный фон, глубокий красный, жирный узкий капс (по афишам, KAIF MEMORY.md §17.1) */

:root {
  --black: #08070a;
  --black-soft: #101014;
  --red-deep: #7a0d18;
  --red: #c2132a;
  --red-bright: #ff2740;
  --sunset: #ff6a3d;
  --cream: #f3e7d8;
  --gold: #d9a441;
  --white: #ffffff;
  --grey: #8e8a92;
  --line: rgba(243, 231, 216, 0.14);

  --font-display: "Archivo Black", "Anton", Impact, "Haettenschweiler", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Типографика ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 0.92;
  margin: 0;
}

h2 {
  font-size: clamp(30px, 5vw, 54px);
  margin-bottom: 28px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red-bright);
  font-weight: 700;
  margin-bottom: 14px;
}

.lead { font-size: clamp(17px, 2vw, 20px); color: rgba(243,231,216,0.78); max-width: 62ch; }

.muted { color: var(--grey); }

/* ---------- Шапка ---------- */

header.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(8, 7, 10, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 42px; width: auto; }
.logo-lg img { height: 78px; }

.nav-links { display: flex; gap: 30px; align-items: center; }

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(243,231,216,0.72);
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

/* DJN — ссылка на DJ Navigator: DJ красным, N как остальные пункты меню */
.nav-links a.djn { letter-spacing: 0.12em; }
.nav-links a.djn span { color: var(--red-bright); transition: color .2s; }
.nav-links a.djn:hover span { color: var(--red-bright); }

.lang {
  display: flex;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
.lang b { color: var(--white); }
.lang span { color: var(--grey); }

.nav-toggle { display: none; background: none; border: 0; color: var(--cream); font-size: 24px; cursor: pointer; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.08em;
  padding: 17px 34px;
  border: 0;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 0 rgba(255, 39, 64, 0);
}
.btn-primary:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(255, 39, 64, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(243,231,216,0.35);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--cream); transform: translateY(-2px); }

.btn-sm { padding: 12px 22px; font-size: 13px; }

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 70px;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 75% 20%, rgba(194,19,42,0.5) 0%, transparent 55%),
    radial-gradient(90% 70% at 20% 90%, rgba(255,106,61,0.22) 0%, transparent 60%),
    linear-gradient(180deg, #14060a 0%, var(--black) 70%);
}

/* Афиша ближайшей вечеринки фоном первого экрана */
.hero-photo {
  position: absolute; inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center 22%;
  opacity: 0.5;
  filter: saturate(1.05);
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--black) 0%, rgba(8,7,10,0.86) 42%, rgba(8,7,10,0.25) 100%),
    linear-gradient(180deg, rgba(8,7,10,0.9) 0%, transparent 30%, var(--black) 96%);
}

/* Лазерная проекция города в облаках. Пока canvas не готов — виден .hero-photo,
   после старта эффекта афиша убирается, чтобы фоны не двоились. */
.hero-beam,
.hero-beam-fx {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-beam-fx { mix-blend-mode: screen; }
/* has-beam включает раскладку под проекцию, beam-on — саму картинку:
   раскладка должна встать раньше, иначе расчёт не видит свободного неба */
.hero.beam-on .hero-beam,
.hero.beam-on .hero-beam-fx { opacity: 1; }
.hero.beam-on .hero-photo { display: none; }

/* Та же затемняющая вуаль, что была у афиши: держит читаемость заголовка */
.hero-veil {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  background:
    linear-gradient(90deg, var(--black) 0%, rgba(8,7,10,0.78) 40%, rgba(8,7,10,0.12) 100%),
    linear-gradient(180deg, rgba(8,7,10,0.72) 0%, transparent 34%, var(--black) 97%);
}
.hero.beam-on .hero-veil { opacity: 1; }

/* На широком экране заголовок уходит влево в две строки, а правая часть неба
   освобождается под проекцию города. */
@media (min-aspect-ratio: 115 / 100) {
  .hero.has-beam h1 { max-width: 58%; }
}

/* На вертикальных экранах свободного неба нет: там роль заголовка берёт на себя
   сама проекция, а текстовый h1 остаётся в разметке для поиска и скринридеров.
   Убрать этот блок — и заголовок вернётся на экран как раньше. */
@media (max-aspect-ratio: 115 / 100) {
  .hero.has-beam h1 {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  /* Место под проекцию — своя полоса заданной высоты. Раньше небо забирало
     «весь остаток», а города прижимались к низу — из-за этого нажатие на город
     подтягивало список вверх, и слово ложилось поверх карточки. Теперь список
     стоит на месте, карточка растёт вниз. */
  .hero.has-beam .hero-inner { display: block; }
  /* Содержимое прижато к верху: при центровке появление карточки подтягивало
     весь первый экран вверх, и город в небе прыгал вместе с ним. */
  .hero.has-beam { align-items: flex-start; }
  .hero.has-beam .eyebrow { margin-bottom: 0; }
  .hero.has-beam .hero-beam-zone { display: block; height: clamp(190px, 34svh, 320px); }
}

/* Полоса нужна только там, где включена проекция */
.hero-beam-zone { display: none; }

.hero-inner { position: relative; z-index: 2; width: 100%; }

.hero h1 {
  font-size: clamp(56px, 13vw, 168px);
  letter-spacing: -0.01em;
  transform: skewX(-6deg);
  margin-bottom: 18px;
}

.hero h1 .slash { color: var(--red-bright); }

/* Японские иероглифы на кегле Archivo Black шире латиницы примерно вдвое:
   заголовок разъезжается на всю ширину и наезжает на проекцию в небе.
   Поэтому на японской версии кегль меньше, а строка не переносится. */
html[lang="ja"] .hero h1,
html[lang="ja"] .ab h1 {
  font-size: clamp(34px, 6.4vw, 86px);
  letter-spacing: 0;
  white-space: nowrap;
}
html[lang="ja"] .ev-title { font-size: clamp(38px, 7vw, 104px); }


.hero-tag {
  font-size: clamp(12px, 1.4vw, 16px);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--cream);
  margin-bottom: 44px;
  font-weight: 600;
  max-width: 62ch;
  line-height: 1.9;
}

/* Города первого экрана — переключают слово в небе */
.hero-tag button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 2px 0;
  margin-right: 18px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}
.hero-tag button::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--red-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
/* Только для мыши: на телефоне hover «залипает» после нажатия, и подчёркнутыми
   оказываются сразу два города — прежний и новый. */
@media (hover: hover) {
  .hero-tag button:hover { color: var(--white); }
  .hero-tag button:hover::after { transform: scaleX(1); }
}
.hero-tag button.is-on::after { transform: scaleX(1); }
.hero-tag button.is-on { color: var(--white); }
.hero-tag button:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }

/* Карточка ближайшей вечеринки */
.next-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  background: rgba(16,16,20,0.72);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red-bright);
  padding: 26px 30px;
  max-width: 860px;
  backdrop-filter: blur(8px);
}

.next-date { text-align: center; line-height: 1; }
.next-date .d { font-family: var(--font-display); font-size: 62px; color: var(--white); }
.next-date .m { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--red-bright); margin-top: 6px; }

.next-info .city { font-family: var(--font-display); font-size: 30px; text-transform: uppercase; }
.next-info .venue { font-size: 15px; color: var(--grey); letter-spacing: 0.06em; margin-top: 4px; }
.next-info .theme { font-size: 14px; color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 8px; }

/* ---------- Секции ---------- */

section { padding: 100px 0; position: relative; }
section.tight { padding: 70px 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0; }

/* Афиша-сетка событий */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }

.event-card {
  position: relative;
  background: var(--black-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease;
  display: flex;
  flex-direction: column;
}
.event-card:hover { transform: translateY(-5px); border-color: rgba(255,39,64,0.55); }

.event-poster {
  /* 3:4 — самый узкий из форматов, которые приходят. При нём афиша
     заполняет карточку целиком, а срезает максимум 3,6% и только по
     бокам, где поля. При 4:5 срезало сверху и снизу — там дата
     и название города. */
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(80% 60% at 50% 15%, rgba(194,19,42,0.55), transparent 65%),
    linear-gradient(160deg, #1b0a10, #0a0709);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  position: relative;
}

/* Афиша заполняет карточку целиком: никаких полей по краям. */
.event-poster.has-img {
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  padding: 0;
}

.poster-day {
  font-family: var(--font-display);
  font-size: 84px;
  line-height: 0.8;
  color: var(--white);
  transform: skewX(-6deg);
}
.poster-month { font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--red-bright); margin-top: 8px; }
.poster-city { font-family: var(--font-display); font-size: 30px; text-transform: uppercase; }
.poster-country { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey); margin-top: 4px; }

.event-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.event-venue { font-size: 14px; color: var(--grey); }
.event-price { font-family: var(--font-display); font-size: 20px; }
.event-price small { font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--grey); letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 2px; }

.event-poster.has-img .badge { top: auto; bottom: 16px; right: 16px; }

.badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--red-bright); color: var(--white);
  padding: 6px 11px; font-weight: 700;
}
.badge.soldout { background: var(--grey); }
.badge.few { background: var(--gold); color: #201400; }

/* Про бренд */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.stat { border-top: 2px solid var(--red); padding-top: 14px; }
.stat .n { font-family: var(--font-display); font-size: clamp(32px, 4vw, 46px); color: var(--white); }
.stat .l { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); margin-top: 4px; }

.photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-ph {
  aspect-ratio: 3/4;
  background: linear-gradient(150deg, #1d0b11, #0b0809);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(142,138,146,0.6);
  text-align: center; padding: 12px;
}
.photo-ph:nth-child(2) { margin-top: 34px; }

/* Музыка — имена артистов */
.artists { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.artist {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(15px, 1.7vw, 21px);
  letter-spacing: 0.02em;
  padding: 9px 16px;
  border: 1px solid var(--line);
  color: rgba(243,231,216,0.9);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.artist:hover { background: var(--red); border-color: var(--red); color: var(--white); transform: translateY(-2px); }
.artist.more { border-style: dashed; color: var(--grey); }

/* Формат вечера */
.format-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; margin-top: 40px; }
.format-card { border: 1px solid var(--line); padding: 28px 26px; background: rgba(16,16,20,0.5); }
.format-card .ic { font-size: 28px; margin-bottom: 14px; }
.format-card h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 19px; margin-bottom: 10px; }
.format-card p { color: rgba(243,231,216,0.75); font-size: 15px; margin: 0; }

.pull {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(22px, 3.4vw, 40px);
  line-height: 1.08;
  color: var(--white);
  margin: 34px 0;
}
.pull span { color: var(--red-bright); }

/* Города */
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.city-tile {
  border: 1px solid var(--line);
  padding: 22px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .2s, border-color .2s;
}
.city-tile:hover { background: rgba(194,19,42,0.12); border-color: rgba(255,39,64,0.5); }
.city-tile .name { font-family: var(--font-display); font-size: 21px; text-transform: uppercase; }
.city-tile .flag { font-size: 22px; }

/* Подписка */
.subscribe { background: linear-gradient(140deg, #1a0710, #0b0709); border: 1px solid var(--line); padding: clamp(34px, 5vw, 64px); }
.sub-form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.sub-form input, .sub-form select {
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  min-width: 210px;
  flex: 1;
}
.sub-form input:focus, .sub-form select:focus { outline: none; border-color: var(--red-bright); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-q { font-family: var(--font-display); font-size: 19px; text-transform: uppercase; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; }
.faq-a { color: rgba(243,231,216,0.72); margin-top: 12px; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { color: var(--red-bright); }

/* Футер */
footer { border-top: 1px solid var(--line); padding: 60px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.foot-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--grey); }
.foot-links a:hover { color: var(--cream); }
.foot-title { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; font-weight: 700; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--grey); border-top: 1px solid var(--line); padding-top: 24px; flex-wrap: wrap; }

/* ---------- Страница события ---------- */

.ev-hero { padding: 130px 0 60px; position: relative; overflow: hidden; }
.ev-hero-bg { position: absolute; inset: 0; background: radial-gradient(90% 70% at 70% 10%, rgba(194,19,42,0.45), transparent 60%), linear-gradient(180deg, #15060b, var(--black)); }
.ev-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: start; }

.ev-poster {
  aspect-ratio: 4/5;
  background: radial-gradient(70% 55% at 50% 20%, rgba(194,19,42,0.6), transparent 65%), linear-gradient(160deg, #1e0a11, #090708);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(142,138,146,0.7); text-align: center; padding: 20px;
}

.ev-title { font-size: clamp(40px, 7vw, 88px); transform: skewX(-5deg); margin-bottom: 10px; }
.ev-sub { font-size: clamp(16px, 2vw, 20px); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 30px; }

.ev-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin: 34px 0; }
.ev-meta div { border-left: 2px solid var(--red); padding-left: 14px; }
.ev-meta .k { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); margin-bottom: 5px; }
.ev-meta .v { font-family: var(--font-display); font-size: 17px; text-transform: uppercase; }

/* Тарифы */
.tiers { display: flex; flex-direction: column; gap: 12px; }
.tier {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px;
  border: 1px solid var(--line); padding: 18px 20px;
  transition: border-color .2s, background .2s;
}
.tier.active { border-color: var(--red-bright); background: rgba(194,19,42,0.13); }
.tier.done { opacity: 0.42; }
.tier .t-name { font-family: var(--font-display); font-size: 17px; text-transform: uppercase; }
.tier .t-left { font-size: 12px; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }
.tier .t-left.out { color: var(--grey); }
.tier .t-price { font-family: var(--font-display); font-size: 26px; }
.tier .t-price small { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 400; color: var(--grey); letter-spacing: 0.1em; text-align: right; }

.buy-box { background: var(--black-soft); border: 1px solid var(--line); padding: 26px; position: sticky; top: 90px; }
.buy-total { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.buy-total .lbl { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }
.buy-total .val { font-family: var(--font-display); font-size: 30px; }
.qty { display: flex; align-items: center; gap: 14px; }
.qty button { width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; color: var(--cream); font-size: 20px; cursor: pointer; }
.qty button:hover { border-color: var(--red-bright); color: var(--white); }
.qty .num { font-family: var(--font-display); font-size: 22px; min-width: 28px; text-align: center; }

.pay-note { font-size: 12px; color: var(--grey); margin-top: 14px; line-height: 1.5; }

.info-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 34px; }
.info-cols h3 { font-size: 18px; margin-bottom: 12px; color: var(--white); }
.info-cols p { color: rgba(243,231,216,0.72); font-size: 15px; }

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .ev-grid { grid-template-columns: 1fr; gap: 36px; }
  .buy-box { position: static; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .next-card { grid-template-columns: auto 1fr; }
  .next-card .btn { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  /* Раскрытое меню: панель под шапкой на всю ширину */
  header.nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    padding: 8px 24px 18px;
    background: rgba(8, 7, 10, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  header.nav.is-open .nav-links a {
    padding: 15px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }
  header.nav.is-open .nav-links a:last-child { border-bottom: 0; }
  .nav-toggle { font-size: 22px; line-height: 1; width: 32px; }
}

@media (max-width: 640px) {
  section { padding: 68px 0; }
  .hero { padding-top: 100px; }
  .next-card { padding: 20px; gap: 20px; }
  .next-date .d { font-size: 46px; }
  .stats { grid-template-columns: 1fr; }
  .photo-ph:nth-child(2) { margin-top: 0; }
}

/* ---------- Небо с проекцией на странице события ---------- */
/* Живёт только в первом экране и растворяется в чёрном, чтобы дальше
   читались билеты и текст. Проекция приглушена — это фон, не заголовок. */

.ev-sky {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100svh;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  /* растворение к низу: резкой границы фотографии не видно */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 92%);
          mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 92%);
}

.ev-sky .hero-beam,
.ev-sky .hero-beam-fx,
.ev-sky .hero-veil { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.ev-sky .hero-beam    { opacity: 0; transition: opacity 0.6s ease; }
.ev-sky .hero-beam-fx { opacity: 0; transition: opacity 0.6s ease; mix-blend-mode: screen; }
.ev-sky .hero-veil    { opacity: 0; transition: opacity 0.6s ease;
  background:
    linear-gradient(180deg, rgba(8,7,10,0.55) 0%, rgba(8,7,10,0.35) 40%, var(--black) 100%),
    linear-gradient(90deg, rgba(8,7,10,0.5) 0%, rgba(8,7,10,0.15) 60%, transparent 100%); }

/* фото приглушено, надпись — тем более: «еле-еле видно» */
.ev-sky.has-beam .hero-beam    { opacity: 0.5; }
.ev-sky.has-beam .hero-veil    { opacity: 1; }
.ev-sky.has-beam .hero-beam-fx { opacity: 0.34; }

/* ---------- Страница события: одна колонка ---------- */
/* Порядок чтения: афиша → цена и покупка → как добраться → описание */

.ev-col { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; }
.ev-col .buy-box { position: static; max-width: 440px; margin: 0 0 34px; }
.ev-col .format-grid { grid-template-columns: 1fr; }

/* ---------- Страница события: блоки текста ---------- */

.ev-h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 22px; margin: 40px 0 6px; }
.ev-note { font-size: 15px; max-width: 60ch; }
.ev-poster-img { max-width: 440px; width: 100%; margin: 34px 0; border: 1px solid var(--line); }
.ev-pull { margin: 24px 0; }
.ev-pull-end { font-size: clamp(20px, 2.6vw, 30px); margin-top: 44px; }
.ev-col .format-grid { margin-top: 22px; }
.ev-col .artists { margin-top: 18px; }

/* прошедшая вечеринка: блок гасим, чтобы не путать гостей */
.buy-box.past { border-left: 3px solid var(--grey); opacity: 0.72; }
.buy-box.past .out-price { color: var(--grey); }
.buy-box.past .preorder-flag { color: var(--grey); border-color: var(--line); background: rgba(142,138,146,0.12); }

/* рассказ о вечеринке */
.ev-story { max-width: 440px; margin: 0 0 26px; }
.ev-story .ev-h3 { margin-top: 0; }
.ev-story .ev-note { margin: 10px 0 0; }

/* ---------- Телефон: расписание вплотную к городам ---------- */
/* Небо занимает не весь экран, а столько, сколько нужно проекции. Под городами
   сразу начинается «Ближайшие вечеринки», без пустого провала. */

@media (max-width: 640px) {
  .hero { min-height: 74svh; padding-bottom: 8px; }
  .hero.has-beam .hero-tag { margin-bottom: 22px; }
  section#events { padding-top: 24px; }
  #events .section-head { margin-bottom: 18px; }
  #events h2 { margin-bottom: 0; }
}

/* ---------- Карточка города под списком: появляется по нажатию ---------- */

.next-slot:empty { display: none; }
.next-slot .next-card { animation: slot-in 0.32s ease both; text-decoration: none; }
@keyframes slot-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* афиша вместо цифры даты */
.next-poster {
  width: 92px; height: 115px;
  background-size: cover; background-position: center;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

/* дата строкой: видна и там, где вместо цифры стоит афиша */
.next-when {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.next-card.is-past { opacity: 0.6; }
.next-card.is-past .next-when { color: var(--grey); }
.next-card.soon-card { grid-template-columns: 1fr; }

@media (max-width: 640px) {
  .next-poster { width: 74px; height: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  .next-slot .next-card { animation: none; }
}

/* ---------- Швеция: билеты продаются на Tickivo ---------- */

.buy-box.outside { border-left: 3px solid var(--red-bright); }
.out-price {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1;
  color: var(--white);
}
.out-note { font-size: 14px; margin-top: 10px; }
.buy-box.outside .buy-cta { width: 100%; margin-top: 22px; text-decoration: none; }

/* ---------- Вход только на месте: тарифы списком ----------
   Онлайн-продажи нет, поэтому вместо кнопки гость должен сразу видеть, что
   репост и раннее время реально дешевле. */

.buy-box.door { border-left: 3px solid var(--gold); }
.door-tiers { list-style: none; margin: 0; padding: 0; }
.door-tiers li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.door-tiers li:last-child { border-bottom: 0; }
.door-tiers span { color: var(--cream); font-size: 15px; }
.door-tiers b {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.4vw, 26px);
  line-height: 1;
  color: var(--white);
  white-space: nowrap;
}
.door-tiers li:first-child b { color: var(--gold); }
.buy-box.door .pay-note { margin-top: 18px; }

/* Город без даты в расписании: та же карточка, но не ссылка */
.event-card.is-soon { cursor: default; opacity: 0.72; }

/* ---------- Город в предпродаже: макет билетов и карточка клуба ---------- */

.buy-box.preorder { position: relative; border-left: 3px solid var(--gold); }
.preorder-flag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  background: rgba(217, 164, 65, 0.14);
  border: 1px solid rgba(217, 164, 65, 0.45);
  color: var(--gold);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.buy-box.preorder .buy-cta { margin-top: 20px; }

.club-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--red-bright);
  background: rgba(16, 16, 20, 0.5);
  padding: 22px 24px;
  margin: 0 0 26px;
  max-width: 440px;
}
.club-k { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }
.club-name {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 22px; margin: 6px 0 12px;
}
.club-text { font-size: 15px; line-height: 1.65; color: rgba(243, 231, 216, 0.82); margin: 0; }
.club-text b { color: var(--white); }
.club-past {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 13px; letter-spacing: 0.06em; color: var(--gold);
}

/* ---------- Город без открытой продажи ---------- */

.buy-box.soon { border-left: 3px solid var(--gold); }
.soon-price {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 34px);
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}
.soon-note { font-size: 14px; margin: 12px 0 0; max-width: 40ch; }

/* ---------- Свёрнутые блоки: будущие фазы и хвост списка артистов ---------- */

.tiers-more, .more-artists { display: block; }
.tiers-more > summary, .more-artists > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; border: 1px dashed var(--line);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey);
  transition: border-color 0.2s, color 0.2s;
}
.tiers-more > summary::-webkit-details-marker,
.more-artists > summary::-webkit-details-marker { display: none; }
.tiers-more > summary::marker, .more-artists > summary::marker { content: ""; }
.tiers-more > summary:hover, .more-artists > summary:hover { border-color: var(--red-bright); color: var(--cream); }
.tiers-more > summary:focus-visible, .more-artists > summary:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }
.tiers-more > summary b { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.06em; color: var(--cream); }
.tiers-more[open] > summary { border-color: transparent; padding-bottom: 4px; }
.tiers-more .tier { margin-top: 12px; }
.more-artists { margin-top: 12px; }
.more-artists[open] > summary { border-color: transparent; }

/* описательный блок целиком под раскрывашкой */
.ev-more { margin-top: 26px; }
.ev-more > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border: 1px solid var(--line); background: rgba(16, 16, 20, 0.5);
  font-family: var(--font-display); text-transform: uppercase; font-size: 14px;
  letter-spacing: 0.06em; transition: border-color 0.2s, transform 0.2s;
}
.ev-more > summary::-webkit-details-marker { display: none; }
.ev-more > summary::marker { content: ""; }
.ev-more > summary::after { content: "↓"; color: var(--gold); font-size: 16px; }
.ev-more[open] > summary::after { content: "↑"; }
.ev-more > summary:hover { border-color: var(--red-bright); transform: translateY(-2px); }
.ev-more > summary:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }

/* на большом экране раскрывашка не нужна — блок просто часть страницы */
@media (min-width: 641px) {
  .ev-more { margin-top: 0; }
  .ev-more > summary { display: none; }
}

/* ---------- Телефон: собираем страницу события компактнее ---------- */

@media (max-width: 640px) {
  .ev-hero { padding: 96px 0 40px; }
  .ev-poster-img { margin: 20px 0; }
  .ev-h3 { margin: 28px 0 6px; font-size: 20px; }
  .ev-pull { margin: 18px 0; }
  .ev-pull-end { margin-top: 26px; }
  .ev-col .buy-box { padding: 20px 18px; margin-bottom: 22px; }
  .stat-band { margin: 22px 0; padding: 20px 22px; }
  .route { margin: -6px 0 22px; }

  /* карточки формата — компактной строкой: значок слева, текст справа */
  .ev-col .format-grid { gap: 12px; }
  .ev-col .format-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "ic title" "ic text";
    column-gap: 14px;
    padding: 15px 18px;
    align-items: start;
  }
  .ev-col .format-card .ic { grid-area: ic; font-size: 22px; margin: 0; line-height: 1.2; }
  .ev-col .format-card h3 { grid-area: title; font-size: 16px; margin-bottom: 3px; }
  .ev-col .format-card p { grid-area: text; font-size: 14px; }
}

/* ---------- Количество билетов ---------- */

.qty-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 24px;
}
.qty-lbl {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey);
}
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty-btn {
  width: 42px; height: 42px; border: 0; background: none; color: var(--cream);
  font-size: 20px; line-height: 1; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.qty-btn:hover { background: var(--red); color: var(--white); }
.qty-btn:focus-visible { outline: 2px solid var(--red-bright); outline-offset: -2px; }
.qty-val {
  width: 52px; height: 42px; border: 0; border-left: 1px solid var(--line);
  border-right: 1px solid var(--line); background: none; color: var(--white);
  font-family: var(--font-display); font-size: 19px; text-align: center;
  -moz-appearance: textfield; appearance: textfield;
}
.qty-val::-webkit-outer-spin-button,
.qty-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-val:focus-visible { outline: 2px solid var(--red-bright); outline-offset: -2px; }
.qty-note { font-size: 13px; margin-top: 10px; }

.buy-cta { width: 100%; border: 0; cursor: pointer; font: inherit; }
.buy-cta:disabled { opacity: 0.6; cursor: default; transform: none; }

.buy-err {
  margin-top: 14px; padding: 12px 14px;
  border: 1px solid var(--red-bright); background: rgba(194, 19, 42, 0.14);
  color: var(--cream); font-size: 14px;
}

/* ---------- Как добраться: свёрнутая карта ---------- */

.route { max-width: 440px; margin: -14px 0 34px; }
.route summary::-webkit-details-marker { display: none; }
.route summary::marker { content: ""; }

.route-btn {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border: 1px solid var(--line);
  background: rgba(16, 16, 20, 0.5);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.04em;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.route-btn:hover {
  border-color: var(--red-bright);
  background: rgba(194, 19, 42, 0.13);
  transform: translateY(-2px);
}
.route-btn:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }

.route-ic { font-size: 17px; }
.route-txt { flex: 1; }
.route-chev { display: flex; color: var(--gold); transition: transform 0.3s ease; }
.route[open] .route-chev { transform: rotate(180deg); }
.route[open] .route-btn { border-color: var(--red-bright); border-bottom-color: transparent; }

.route-body {
  border: 1px solid var(--line);
  border-top: 0;
  padding: 22px 20px;
  background: rgba(16, 16, 20, 0.5);
  animation: route-in 0.35s ease both;
}
@keyframes route-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.route-venue { font-family: var(--font-display); text-transform: uppercase; font-size: 19px; }
.route-street { color: var(--cream); font-size: 15px; margin-top: 5px; }
.route-city { color: var(--grey); font-size: 14px; margin-top: 3px; }

.route-map {
  margin: 18px 0;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 11;
  background: var(--black-soft);
}
.route-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.35) contrast(1.05); }

.route-links { display: flex; gap: 10px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .route-body { animation: none; }
  .route-btn, .route-chev { transition: none; }
}

/* ---------- Счётчик посещаемости ---------- */

.stat-band {
  margin: 34px 0;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red-bright);
  background: linear-gradient(90deg, rgba(194, 19, 42, 0.16), rgba(16, 16, 20, 0.3) 70%, transparent);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 68px);
  line-height: 1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.stat-lbl {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 10px;
}

/* ---------- Instagram города ----------
   Ссылка стоит сразу под билетами: гость решил идти — и тут же подписался. */

.ig-card {
  display: flex;
  align-items: center;
  gap: 14px;
  /* Нижний отступ обязателен: у блока «Как добраться» верхний отступ
     отрицательный (он поджимается к билетам), и без запаса он наезжал
     на эту карточку. */
  margin: 18px 0 32px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red-bright);
  background: rgba(16, 16, 20, 0.5);
  text-decoration: none;
  color: var(--cream);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ig-card:hover { background: rgba(224, 24, 54, 0.08); }
.ig-ic { color: var(--red-bright); flex: none; display: flex }
.ig-txt { flex: 1; min-width: 0 }
.ig-txt b {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--white);
}
.ig-txt small { display: block; font-size: 12.5px; color: var(--grey); margin-top: 3px }
.ig-go { color: var(--grey); font-size: 22px; line-height: 1; flex: none }

/* ---------- Галерея ---------- */

.shot { margin: 0; position: relative; overflow: hidden; }
.shot img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(8, 7, 10, 0.85));
}

/* Фото города на его странице: лента с прокруткой, чтобы не растягивать экран */
.ev-shots {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 18px 0 0;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.ev-shots img {
  width: 62%;
  max-width: 300px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  flex: none;
  scroll-snap-align: start;
}
@media (min-width: 700px) { .ev-shots img { width: 32%; } }

/* Ответ формы подписки */
.sub-msg { margin-top: 12px; font-size: 14px; min-height: 20px; }
.sub-msg.ok { color: #4ade80; }
.sub-msg.err { color: var(--red-bright); }

/* Instagram стоит прямо перед «Как добраться» — гасим его отрицательный отступ,
   иначе блоки наезжают друг на друга. */
.ig-card + .route { margin-top: 0; }

/* Город, где вечеринки ещё не было: плитка есть, но никуда не ведёт */
.city-tile.is-soon { opacity: 0.55; cursor: default; }
