/* KLYX — «Красная орбита». Белый, красный, чёрный из логотипа.
   Огни кружат по орбите вокруг знака; важные блоки обведены бегущим огоньком (.runline).
   Гоночный шрифт Tektur — не больше одного-двух акцентов на блок, остальное Onest.
   Скругления: элементы управления 12px, панели 20px.
   iOS: анимируем только transform и opacity (filter, box-shadow и drop-shadow не анимировать). */
:root {
  --bg: #000000;
  --panel: #101011;
  --panel-2: #1b1b1d;
  --text: #f5f3ef;
  --muted: #aba8a3;
  --soft: #dad7d2;
  --line: rgba(245, 243, 239, 0.14);
  --red: #e8182f;
  --glow: #ff2a3d;
  --display: "Tektur", "Arial Black", "Helvetica Neue", sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-ctl: 12px;
  --r-panel: 20px;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* clip не ломает position: sticky, в отличие от hidden */
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.center { display: flex; justify-content: center; }
.muted { color: var(--muted); }
.disp { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.02; }
.h2 { margin: 0 0 28px; padding-bottom: 0.06em; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(40px, 7vw, 92px); line-height: 1.02; letter-spacing: 0.01em; }
.section { padding: 88px 0 0; }

/* ---------- Бегущая обводка: огонёк едет по краю блока ---------- */
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.runline { isolation: isolate; }
.runline::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: var(--rl-w, 1.5px); pointer-events: none;
  background: conic-gradient(from var(--a), var(--rl-base, rgba(245, 243, 239, 0.16)) 0deg 290deg, rgba(255, 42, 61, 0.95) 335deg, #fff 352deg, var(--rl-base, rgba(245, 243, 239, 0.16)) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: run var(--rl-dur, 5s) linear infinite;
}
@keyframes run { to { --a: 360deg; } }

/* ---------- Кнопки ---------- */
/* transform не трогаем переходами: его анимирует GSAP. Нажатие — через scale, сдвиг — через translate */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: var(--r-ctl); border: 2px solid var(--text); background: transparent;
  font-family: var(--display); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: 0.02em; text-align: center; line-height: 1.15;
  cursor: pointer; transition: color 0.3s, background-color 0.3s, border-color 0.3s, scale 0.2s;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,0.5), rgba(255,255,255,0)); transform: skewX(-20deg) translateX(0); transition: transform 0.7s var(--ease); pointer-events: none; }
.btn:hover::after { transform: skewX(-20deg) translateX(420%); }
.btn:hover { background: var(--text); color: var(--bg); }
.btn:active { scale: 0.97; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 10px 40px rgba(232, 24, 47, 0.35); }
.btn-primary:hover { background: var(--glow); border-color: var(--glow); color: #fff; }
@media (hover: none) { .btn:hover { background: transparent; color: inherit; } .btn-primary:hover { background: var(--red); color: #fff; } .btn:hover::after { transform: skewX(-20deg); } }
.btn.disabled, .btn-primary.disabled { pointer-events: none; box-shadow: none; background: rgba(232, 24, 47, 0.16); border-color: rgba(232, 24, 47, 0.45); color: var(--soft); }
.icon-btn { width: 48px; height: 48px; border-radius: 999px; border: 2px solid var(--text); background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.3s, color 0.3s, scale 0.2s; }
.icon-btn:hover { background: var(--text); color: var(--bg); }
.icon-btn:active { scale: 0.93; }
.icon-btn:disabled { opacity: 0.3; pointer-events: none; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-link { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: color 0.3s; }
.icon-link:hover { color: var(--text); }
.icon-link svg { width: 21px; height: 21px; }

/* ---------- Шапка ---------- */
.header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; padding-top: env(safe-area-inset-top, 0px); transition: background-color 0.4s, translate 0.45s var(--ease); }
.header.solid { background: rgba(0, 0, 0, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.header.hide { translate: 0 -100%; }
.header .wrap { height: 70px; display: flex; align-items: center; gap: 32px; }
.hlogo { display: block; flex-shrink: 0; width: 100px; aspect-ratio: 1080 / 480; background: url(/assets/img/logo.jpg) center / 100% 100% no-repeat; mix-blend-mode: screen; transition: opacity 0.45s, translate 0.45s var(--ease); }
/* На главной маленький знак появляется, когда большой уехал под шапку */
.js .home-hero-on .hlogo { opacity: 0; translate: -16px 0; pointer-events: none; }
.nav { display: none; gap: 28px; margin-right: auto; }
.nav a { font-weight: 500; font-size: 15px; color: var(--muted); transition: color 0.25s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header .btn-primary { display: none; min-height: 44px; padding: 0 18px; font-size: 14px; }
.header .icon-link { display: none; }

/* ---------- Меню ---------- */
.menu {
  position: fixed; inset: 0; z-index: 60; overflow-x: hidden; overflow-y: auto; background: #000;
  display: flex; flex-direction: column; gap: 26px;
  padding: calc(11px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0s 0.35s;
}
.menu.open { opacity: 1; visibility: visible; transition: opacity 0.35s, visibility 0s; }
.menu-glow { position: absolute; right: -35vw; top: 8%; width: 100vw; height: 100vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(closest-side, rgba(232, 24, 47, 0.28), rgba(232, 24, 47, 0)); pointer-events: none; }
.menu-orbit { position: absolute; right: -28%; top: 12%; width: 120%; max-width: 900px; height: auto; pointer-events: none; }
.menu-top, .menu-links, .menu-event, .menu-social { position: relative; z-index: 1; }
.menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.menu .hlogo { width: 110px; opacity: 1; translate: none; pointer-events: auto; }
.menu-links { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.menu a.big { display: block; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(34px, 9vw, 56px); line-height: 1.05; padding: 6px 0; transition: color 0.25s, translate 0.35s var(--ease), text-shadow 0.35s; }
.menu a.big:hover, .menu a.big:focus-visible { color: var(--glow); translate: 10px 0; text-shadow: -10px 0 0 rgba(255, 42, 61, 0.28), -20px 0 0 rgba(255, 42, 61, 0.12); }
.menu-event { border-radius: var(--r-panel); background: rgba(16, 16, 17, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 18px 18px 18px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.menu-event p { margin: 0; font-size: 26px; }
.menu-event span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }
.menu-social { display: flex; gap: 24px; }
.menu-social a { min-height: 44px; display: flex; align-items: center; font-weight: 500; color: var(--muted); transition: color 0.25s; }
.menu-social a:hover { color: var(--text); }
/* Мини-орбита из SVG: огни бегут по эллипсам. Каждый огонёк — ореол, хвост, тело и белая головка */
.o-track { fill: none; stroke: rgba(245, 243, 239, 0.1); stroke-width: 1.5; }
.o-run { fill: none; stroke-linecap: round; animation: orb var(--d, 3.4s) linear infinite; }
@keyframes orb { to { stroke-dashoffset: -1000; } }

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow-x: clip; padding: calc(96px + env(safe-area-inset-top, 0px)) 0 56px; min-height: min(860px, 100svh); }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#orbit-back { z-index: 0; }
#orbit-front { z-index: 3; }
.hero-glow { position: absolute; right: -18vw; top: -10%; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04) 55%, rgba(0, 0, 0, 0)); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.mark { position: relative; display: flex; flex-direction: column; }
.logo { position: relative; width: 100%; max-width: 820px; aspect-ratio: 1080 / 480; background: url(/assets/img/logo.jpg) center / 100% 100% no-repeat; mix-blend-mode: screen; }
.logo .star { position: absolute; left: 87.8%; top: 15%; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0, rgba(255, 42, 61, 0.45) 16%, rgba(255, 42, 61, 0) 62%); mix-blend-mode: screen; pointer-events: none; }

/* Табло ближайшей ночи */
.board { position: relative; z-index: 4; border-radius: var(--r-panel); background: rgba(16, 16, 17, 0.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.board-tag { margin: 0; font-size: 16px; color: var(--muted); }
.board-when { margin: 0; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; padding-bottom: 0.04em; }
.board-where { margin: -4px 0 0; font-weight: 600; font-size: 17px; }
.cd { display: flex; flex-wrap: nowrap; gap: clamp(24px, 3.4vw, 44px); padding-block: 14px 4px; border-top: 1px solid var(--line); }
.cd div { display: flex; flex-direction: column; align-items: flex-start; font-size: clamp(40px, 3.8vw, 52px); }
.cd b { font-family: var(--display); font-weight: 700; font-style: italic; font-size: 1em; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 18px rgba(255, 42, 61, 0.7), 0 0 4px rgba(255, 255, 255, 0.4); }
.cd small { margin-top: 0.12em; font-size: 0.3em; letter-spacing: 0.02em; color: var(--muted); }
.board .btn-primary { width: 100%; min-height: 56px; font-size: 17px; }
.board-note { margin: 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
/* Заставка прячет знак и табло до старта klyx.js. Если скрипт не загрузится, через 3 с они проявятся сами */
.intro [data-intro] { opacity: 0; animation: introSafe 0.4s 3s forwards; }
@keyframes introSafe { to { opacity: 1; } }

/* ---------- Слова под первым экраном ---------- */
.kin { padding-block: 24px 8px; overflow: hidden; }
.kin p { margin: 0; white-space: nowrap; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(64px, 12vw, 170px); line-height: 1.02; will-change: transform; }
.kin .o { color: transparent; -webkit-text-stroke: 1.5px rgba(245, 243, 239, 0.38); }
.kin .f { margin-left: -20vw; }
.kin .f span { color: var(--glow); }

/* ---------- Город-фильтр ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 26px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: transparent; font-weight: 600; font-size: 14px; cursor: pointer; transition: border-color 0.3s, background-color 0.3s, scale 0.15s; }
.chip:hover { border-color: var(--text); }
.chip:active { scale: 0.95; }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Слайдеры (тусовки, альбомы) ---------- */
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 380px); gap: 18px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.slider::-webkit-scrollbar { display: none; }
.slider > * { scroll-snap-align: center; }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.dots { display: flex; gap: 8px; }
.dots span { width: 6px; height: 6px; border-radius: 6px; background: rgba(245, 243, 239, 0.35); transition: width 0.3s, background-color 0.3s; }
.dots span.on { width: 26px; background: var(--glow); }

/* ---------- Карточка тусовки ---------- */
.ev-card { display: flex; flex-direction: column; border-radius: var(--r-panel); overflow: hidden; background: var(--panel); transition: translate 0.45s var(--ease); }
.ev-card:hover { translate: 6px 0; }
.ev-poster { position: relative; padding: 14px; overflow: hidden; background: #0a0a0b; }
.ev-poster.skeleton { aspect-ratio: 4 / 5; }
.ev-poster::before { content: ""; position: absolute; inset: -20px; background: var(--poster, none) center / cover no-repeat; filter: blur(22px) brightness(0.45); transform: scale(1.1); }
.ev-poster img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; }
.corner { position: absolute; z-index: 2; width: 11px; height: 11px; border: 0 solid var(--text); }
.corner.tl { left: 3px; top: 3px; border-left-width: 2px; border-top-width: 2px; }
.corner.tr { right: 3px; top: 3px; border-right-width: 2px; border-top-width: 2px; }
.corner.bl { left: 3px; bottom: 3px; border-left-width: 2px; border-bottom-width: 2px; }
.corner.br { right: 3px; bottom: 3px; border-right-width: 2px; border-bottom-width: 2px; }
.ev-meta { flex: 1; display: flex; align-items: stretch; border-top: 2px solid var(--red); }
.datebox { width: 96px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 0; border-right: 1px solid var(--line); }
.datebox .dow { font-weight: 600; font-size: 13px; color: var(--muted); }
.datebox .day { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 42px; line-height: 1.02; }
.datebox .mon { font-weight: 600; font-size: 14px; }
.ev-info { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.ev-title { font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 19px; line-height: 1.15; overflow-wrap: anywhere; }
.ev-sub { font-size: 14px; color: var(--muted); }
.ev-links { font-weight: 600; font-size: 15px; }
.ev-links span { border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* ---------- Альбомы ---------- */
.al-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-panel); overflow: hidden; background: var(--panel); transform: skewX(var(--sk, 0deg)); transform-origin: center bottom; transition: translate 0.45s var(--ease); }
.al-card:hover { translate: 0 -6px; }
.al-cover { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.al-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.al-card:hover .al-cover img { transform: scale(1.04); }
.al-count { position: absolute; z-index: 1; right: 12px; top: 12px; min-height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.65); font-weight: 600; font-size: 13px; }
.al-count svg { width: 14px; height: 14px; }
.al-meta { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.al-date { font-size: 15px; color: var(--muted); }
.al-title { font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 20px; line-height: 1.12; }
.grid-3 { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.past-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.past-head .h2 { margin: 0; }

/* ---------- Пусто / загрузка ---------- */
.empty { max-width: 520px; padding: 32px 24px; border-radius: var(--r-panel); background: var(--panel); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.empty h3 { margin: 0; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 26px; line-height: 1.05; }
.empty p { margin: 0 0 6px; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, #101011 0%, #1b1b1d 50%, #101011 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Заказ трека ---------- */
.req { padding: 96px 0 0; }
.req-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.req-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.req-copy .h2 { margin: 0; }
.track-lead { margin: 0; max-width: 40ch; color: var(--soft); }
.track-card { position: relative; border-radius: var(--r-panel); background: var(--panel); padding: clamp(20px, 3vw, 32px); --rl-dur: 7s; --rl-base: rgba(245, 243, 239, 0.1); }
.track-live { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; padding: 10px 16px 10px 14px; border-radius: 999px; background: var(--panel); }
.track-live-dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: var(--glow); box-shadow: 0 0 12px var(--glow); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.track-live-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.25; }
.track-live-text small { font-size: 13px; color: var(--muted); }
.track-live-text b { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field-label { font-weight: 600; font-size: 16px; }
.field input, .field textarea {
  width: 100%; min-height: 56px; padding: 14px 16px; border-radius: var(--r-ctl); border: 2px solid rgba(245, 243, 239, 0.18);
  background: #000; color: var(--text); font: 500 17px/1.4 var(--body); outline: none; transition: border-color 0.25s, box-shadow 0.25s; -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #86827c; }
.field input:focus { border-color: var(--glow); box-shadow: 0 0 0 4px rgba(232, 24, 47, 0.16); }
.field input[aria-invalid="true"] { border-color: #ff8a7a; }
.field .err { margin: 0; font-size: 15px; font-weight: 600; color: #ffb0a4; }
.field .err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.track-form .btn-primary { width: 100%; min-height: 58px; }
.track-form .btn-primary[disabled] { opacity: 0.6; pointer-events: none; }
.pick { position: relative; }
.pick-btn { width: 100%; min-height: 56px; padding: 14px 16px; border-radius: var(--r-ctl); border: 2px solid rgba(245, 243, 239, 0.18); background: #000; color: var(--text); font: 600 17px/1.4 var(--body); display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer; transition: border-color 0.25s, box-shadow 0.25s; }
.pick-btn:hover { border-color: rgba(245, 243, 239, 0.45); }
.pick-btn[aria-expanded="true"] { border-color: var(--glow); box-shadow: 0 0 0 4px rgba(232, 24, 47, 0.16); }
.pick-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-chev { width: 20px; height: 20px; flex-shrink: 0; color: var(--glow); transition: rotate 0.3s var(--ease); }
.pick-btn[aria-expanded="true"] .pick-chev { rotate: 180deg; }
.pick-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; max-height: 260px; overflow-y: auto; border-radius: 16px; border: 1px solid var(--line); background: #121213; box-shadow: 0 22px 50px rgba(0, 0, 0, 0.7); }
.pick-list li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 16px; transition: background-color 0.2s; }
.pick-list li small { font-weight: 500; font-size: 14px; color: var(--muted); }
.pick-list li:hover, .pick-list li.on { background: rgba(232, 24, 47, 0.18); }
.pick-list li[aria-selected="true"] { background: var(--red); color: #fff; }
.pick-list li[aria-selected="true"] small { color: rgba(255, 255, 255, 0.8); }
.track-state { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.track-state h3 { margin: 0; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 30px; line-height: 1.05; }
.track-state p { margin: 0 0 8px; color: var(--soft); }
.disc { width: 64px; height: 64px; border-radius: 999px; background: radial-gradient(circle, #000 0 12%, var(--red) 13% 30%, #1b1b1d 31% 100%); animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.track-page { min-height: 100svh; padding: calc(110px + env(safe-area-inset-top, 0px)) 0 64px; }
.track-page .req-grid { align-items: start; }

/* ---------- Telegram ---------- */
.tg { padding: 96px 0 24px; }
.tg-card { position: relative; overflow: hidden; border-radius: var(--r-panel); background: radial-gradient(70% 95% at 80% 50%, rgba(232, 24, 47, 0.3), rgba(232, 24, 47, 0) 70%), #0c0c0d; display: grid; grid-template-columns: 1fr; align-items: center; gap: 24px; padding: clamp(28px, 5vw, 64px); --rl-dur: 6s; }
.tg-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.tg-copy .h2 { margin: 0; }
.tg-copy p { margin: 0; max-width: 36ch; font-size: 19px; color: var(--soft); }
.tg-copy .btn { min-height: 60px; font-size: 17px; max-width: 100%; padding-block: 10px; }
.tg-art { order: -1; }
.tg-art svg { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; }

/* ---------- Подвал ---------- */
.footer { padding: 64px 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 32px; }
.footer-logo { display: block; width: 240px; max-width: 100%; aspect-ratio: 1080 / 480; background: url(/assets/img/logo.jpg) center / 100% 100% no-repeat; mix-blend-mode: screen; transition: translate 0.3s var(--ease); }
.footer-logo:hover { translate: 0 -3px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer nav a { min-height: 44px; display: flex; align-items: center; font-weight: 500; color: var(--muted); transition: color 0.25s; }
.footer nav a:hover { color: var(--text); }
.footer .copy { margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.footer .copy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ticket-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Нижняя панель на телефоне ---------- */
.quickbar {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 18px;
  background: rgba(16, 16, 17, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line);
  translate: 0 140%; transition: translate 0.45s var(--ease);
}
.quickbar.show { translate: 0 0; }
.quickbar .qb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.quickbar .qb-text b { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quickbar .qb-text span { font-size: 13px; color: var(--muted); }
.quickbar .btn { min-height: 46px; padding: 0 18px; font-size: 14px; }
.has-quickbar .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Всплывающее уведомление ---------- */
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 14px; background: #f5f3ef; color: #000; font-weight: 600; font-size: 15px; text-align: center; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.has-buybar .toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Страница тусовки ---------- */
.ev-layout { padding-top: calc(86px + env(safe-area-inset-top, 0px)); }
.ev-hero { position: relative; padding: 0 var(--gutter) 28px; display: flex; justify-content: center; overflow: hidden; }
.ev-hero-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) saturate(1.2); opacity: 0.4; transform: scale(1.1); }
.ev-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: linear-gradient(180deg, transparent, #000); }
.ev-hero .frame { position: relative; z-index: 1; width: min(100%, 400px); padding: 14px; }
.ev-hero .frame img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.ev-hero .corner { width: 20px; height: 20px; }
.ev-hero .corner.tl { left: 0; top: 0; } .ev-hero .corner.tr { right: 0; top: 0; } .ev-hero .corner.bl { left: 0; bottom: 0; } .ev-hero .corner.br { right: 0; bottom: 0; }
.ev-body { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 22px; }
.ev-body .ev-meta { border-top: 0; align-items: center; gap: 18px; }
.ev-body .datebox { width: auto; flex-direction: row; align-items: baseline; gap: 10px; padding: 0; border: 0; }
.ev-body .datebox .day { font-size: 64px; }
.ev-body .datebox .dow, .ev-body .datebox .mon { font-size: 16px; }
.ev-body .ev-info { padding: 0; }
.ev-body h1 { margin: 0; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(32px, 5vw, 52px); line-height: 1.02; padding-bottom: 0.05em; overflow-wrap: anywhere; }
.ev-body h1.long { font-size: clamp(26px, 3.6vw, 38px); }
.ev-body > .ev-meta { flex-direction: column; align-items: flex-start; }
.ev-body .ev-sub { font-size: 17px; }
.countdown { position: relative; display: flex; flex-wrap: nowrap; gap: clamp(22px, 4vw, 44px); padding: 20px 22px; border-radius: var(--r-panel); background: var(--panel); }
.countdown div { display: flex; flex-direction: column; font-size: clamp(38px, 6vw, 52px); }
.countdown b { font-family: var(--display); font-weight: 700; font-style: italic; font-size: 1em; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 18px rgba(255, 42, 61, 0.7), 0 0 4px rgba(255, 255, 255, 0.4); }
.countdown span { margin-top: 0.12em; font-size: 0.3em; color: var(--muted); }
.countdown.live { justify-content: flex-start; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 24px; color: var(--glow); }
.desc { margin: 0; color: var(--soft); white-space: pre-line; overflow-wrap: anywhere; }
.desc a { color: var(--glow); border-bottom: 1px solid rgba(255, 42, 61, 0.4); }
.desc a:hover { color: var(--text); border-color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fact { padding: 16px 16px 18px; border-radius: var(--r-ctl); background: var(--panel); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fact::before { content: ""; width: 22px; height: 3px; margin-bottom: 4px; background: var(--glow); transform: skewX(-30deg); box-shadow: 0 0 10px rgba(255, 42, 61, 0.7); }
.fact.wide { grid-column: span 2; }
.fact.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
.fact.row::before { grid-column: 1 / -1; }
.fact small { font-size: 14px; color: var(--muted); }
.fact strong { font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.15; overflow-wrap: anywhere; }
.ev-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
.ev-actions .btn { width: 100%; }
.tiers { display: flex; flex-direction: column; gap: 10px; }
.tier { position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: var(--r-ctl); border: 2px solid var(--line); background: var(--panel); text-align: left; }
.tier b { font-weight: 600; font-size: 18px; }
.tier .price { font-family: var(--display); font-weight: 700; font-size: 22px; white-space: nowrap; }
.tier.pick { cursor: pointer; transition: border-color 0.25s; }
.tier.pick:hover { border-color: rgba(245, 243, 239, 0.4); }
.tier.pick:disabled { cursor: default; }
.tier.best:not(.pick) { border-color: var(--red); }
.tier.sold { opacity: 0.5; }
.tier.sold .price { text-decoration: line-through; }
.tier-sub { margin-top: 2px; font-size: 14px; color: var(--muted); }
.tier-sub.hot { color: var(--glow); font-weight: 600; }
/* Тариф: слева название и остаток, справа цена и выгода против входа */
.tier.pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.tier-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tier-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.save { font-size: 13px; font-weight: 700; line-height: 1; color: #fff; background: var(--red); padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.left { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.left-bar { display: block; width: min(100%, 220px); height: 6px; border-radius: 999px; background: rgba(245, 243, 239, 0.12); overflow: hidden; }
.left-bar i { display: block; height: 100%; border-radius: inherit; background: var(--glow); box-shadow: 0 0 10px rgba(255, 42, 61, 0.7); }
.left-txt { font-size: 13px; font-weight: 600; color: var(--glow); }
.door { margin: 0; padding: 14px 20px; border-radius: var(--r-ctl); border: 2px dashed rgba(245, 243, 239, 0.2); color: var(--muted); font-size: 16px; }
.door b { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 19px; }
.deal-hint { margin: 0; padding: 12px 16px; border-radius: var(--r-ctl); background: rgba(232, 24, 47, 0.12); border: 1px solid rgba(255, 42, 61, 0.35); font-weight: 600; font-size: 15px; color: var(--text); }
/* Рамка выбранного тарифа с бегущим огоньком; переезжает к выбранному (GSAP Flip) */
.tier-mark { position: absolute; inset: -2px; border-radius: var(--r-ctl); box-shadow: 0 0 30px rgba(232, 24, 47, 0.22); pointer-events: none; --rl-w: 2px; --rl-base: rgba(255, 42, 61, 0.5); --rl-dur: 3.2s; }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: var(--r-ctl); background: var(--panel); }
.stepper { display: flex; align-items: center; gap: 6px; }
/* Почта или Telegram: подложка с бегущим огоньком переезжает к выбранному (translate, без GSAP) */
.deliv { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-ctl); background: var(--panel); }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg-thumb { position: absolute; top: 0; bottom: 0; left: 0; z-index: 1; width: calc(50% - 3px); border-radius: 10px; background: var(--panel-2); box-shadow: 0 0 26px rgba(232, 24, 47, 0.18); pointer-events: none;
  --rl-w: 2px; --rl-base: rgba(255, 42, 61, 0.45); --rl-dur: 3.2s; transition: translate 0.45s var(--ease); }
.seg[data-pick="telegram"] .seg-thumb { translate: calc(100% + 6px) 0; }
.seg button { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 62px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px;
  background: none; color: var(--muted); text-align: left; font: inherit; cursor: pointer; transition: color 0.25s, border-color 0.25s, scale 0.2s; }
.seg button:active { scale: 0.97; }
.seg button[aria-checked="true"] { color: var(--text); border-color: transparent; }
.seg button span { min-width: 0; }
.seg button b { display: block; font-weight: 600; font-size: 16px; line-height: 1.2; }
.seg button small { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg svg { width: 24px; height: 24px; flex-shrink: 0; transition: color 0.25s; }
.seg button[aria-checked="true"] svg { color: var(--glow); }
.seg button.pop[data-d="email"] svg { animation: mailPop 0.5s var(--ease); }
.seg button.pop[data-d="telegram"] svg { animation: planeFly 0.6s var(--ease); }
@keyframes mailPop { 35% { scale: 1.22; rotate: -8deg; } }
@keyframes planeFly { 45% { translate: 12px -12px; opacity: 0; } 46% { translate: -10px 10px; opacity: 0; } }
.deliv-hint { margin: 0; font-size: 14px; line-height: 1.45; color: var(--soft); }
.deliv-hint.swap { animation: hintIn 0.35s var(--ease); }
@keyframes hintIn { from { opacity: 0; translate: 10px 0; } }
.stepper .icon-btn { width: 44px; height: 44px; border-color: transparent; }
.stepper output { min-width: 36px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 24px; font-variant-numeric: tabular-nums; }
.stepper output.bump { animation: bump 0.25s var(--ease); }
@keyframes bump { from { transform: translateY(-8px); opacity: 0; } }
#tickets-cta { width: 100%; min-height: 58px; }
.ticket-note { margin: 0; font-size: 15px; }
.buybar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 16px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); background: linear-gradient(180deg, transparent, #000 35%); display: flex; justify-content: center; transition: translate 0.4s var(--ease); }
.buybar .btn { width: 100%; max-width: 520px; min-height: 58px; }
.buybar.hide { translate: 0 120%; }
.has-buybar .footer { padding-bottom: 120px; }

/* ---------- Страница заказа ---------- */
.order { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.order .h2 { margin: 0; }
.order .track-lead { margin: -4px 0 0; }
.or-event { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-panel); background: var(--panel); }
.or-event img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.or-event-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; color: var(--muted); }
.or-event-info b { font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 18px; line-height: 1.15; color: var(--text); }
.or-pending { align-items: center; text-align: center; }
.or-pending h3 { margin: 0; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 24px; }
.or-pending p { margin: 0; color: var(--soft); }
.or-tickets { display: flex; flex-direction: column; gap: 16px; }
.ticket { position: relative; padding: 18px 18px 20px; border-radius: var(--r-panel); background: var(--panel); --rl-dur: 6s; }
.ticket header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ticket header span { font-size: 14px; color: var(--muted); }
.ticket header b { font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; text-align: right; }
.ticket .qr { position: relative; width: min(100%, 300px); margin: 0 auto; border-radius: 14px; overflow: hidden; background: #fff; }
.ticket .qr svg, .ticket .qr img { display: block; width: 100%; height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.ticket .stamp { position: absolute; left: 50%; top: 50%; translate: -50% -50%; rotate: -12deg; padding: 6px 16px; border: 3px solid var(--red); border-radius: 10px; background: rgba(255, 255, 255, 0.92); color: var(--red); font-family: var(--display); font-weight: 900; font-size: 22px; text-transform: uppercase; white-space: nowrap; }
.ticket.off .qr img, .ticket.off .qr svg { opacity: 0.25; }
.ticket footer { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 14px; }
.ticket footer small { font-size: 13px; color: var(--muted); }
.ticket footer code { font: 700 28px/1.1 var(--display); letter-spacing: 0.14em; }
.ticket footer span { margin-top: 4px; font-size: 15px; color: var(--soft); }
.or-actions { display: grid; gap: 10px; }
.or-actions .btn, .order > .btn { width: 100%; }
.or-note { margin: 0; text-align: center; font-size: 15px; }
/* Блок «Билеты придут в Telegram»: самолётик подрагивает, кольцо зовёт нажать; после бота — галочка */
.or-tgbox { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 18px; border-radius: var(--r-panel); background: var(--panel); --rl-dur: 4s; animation: stateIn 0.45s var(--ease) both; }
.or-tgbox-head { display: flex; align-items: center; gap: 14px; }
.or-tgbox-head b { display: block; font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 20px; line-height: 1.1; }
.or-tgbox-head span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.or-tgbox-ic { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; background: rgba(232, 24, 47, 0.14); color: var(--glow); transition: background-color 0.3s, color 0.3s; }
.or-tgbox-ic svg { grid-area: 1 / 1; width: 26px; height: 26px; }
.or-tgbox-ic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--glow); opacity: 0; pointer-events: none; }
.or-tgbox.waiting .or-tgbox-ic::after { animation: ring 2.4s ease-out infinite; }
.or-tgbox.waiting .ic-plane { animation: planeIdle 3.2s var(--ease) infinite; }
.or-tgbox .ic-check, .or-tgbox.done .ic-plane { display: none; }
.or-tgbox.done .ic-check { display: block; }
.or-tgbox.done .or-tgbox-ic { background: rgba(245, 243, 239, 0.1); color: var(--text); }
.or-tgbox.just-done .ic-check { animation: checkPop 0.55s var(--ease); }
.or-tgbox.just-done .or-tgbox-head > div { animation: hintIn 0.4s var(--ease); }
@keyframes ring { from { scale: 0.92; opacity: 0.7; } to { scale: 1.55; opacity: 0; } }
@keyframes planeIdle { 0%, 72%, 100% { translate: 0 0; } 82% { translate: 3px -3px; } 91% { translate: -1px 1px; } }
@keyframes checkPop { from { scale: 0.3; opacity: 0; } 60% { scale: 1.18; } }
.or-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.or-steps li { counter-increment: step; display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.4; color: var(--soft); animation: stateIn 0.45s var(--ease) both; }
.or-steps li:nth-child(2) { animation-delay: 0.08s; }
.or-steps li:nth-child(3) { animation-delay: 0.16s; }
.or-steps li::before { content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--line); font: 700 13px/1 var(--display); color: var(--text); }
.or-tgbox .btn { width: 100%; }
.or-tgbox small { text-align: center; font-size: 13px; color: var(--muted); }
.order .or-pending, .order .or-tickets, .order .or-actions { opacity: 1; }
.track-state, .ticket, .or-pending { animation: stateIn 0.45s var(--ease) both; }
@keyframes stateIn { from { opacity: 0; transform: translateX(-24px); } }

/* ---------- Фото ---------- */
.album-head { padding: calc(110px + env(safe-area-inset-top, 0px)) 0 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.album-head h1 { margin: 0; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(40px, 7vw, 88px); line-height: 1.02; padding-bottom: 0.05em; }
.album-head .tag { font-weight: 600; color: var(--muted); }
.album-head .row { display: flex; gap: 10px; margin-top: 8px; }
.masonry { column-count: 2; column-gap: 8px; padding: 0 8px; }
.masonry button { display: block; width: 100%; margin: 0 0 8px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--panel); cursor: zoom-in; break-inside: avoid; }
.masonry img { width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.masonry button:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.96); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.25s; touch-action: pinch-zoom; }
.lightbox.open { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.25s var(--ease), opacity 0.25s; }
.lightbox img.loading { filter: blur(6px); }
.lightbox .icon-btn { position: absolute; background: rgba(0, 0, 0, 0.5); }
.lb-close { top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; }
.lb-save { top: calc(14px + env(safe-area-inset-top, 0px)); right: 74px; }
.lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lb-next { right: 14px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; font-weight: 600; font-size: 14px; color: var(--muted); }

/* ---------- 404 ---------- */
/* ---------- Правовая страница ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: calc(120px + env(safe-area-inset-top, 0px)) var(--gutter) 72px; }
.legal section { padding-top: 40px; scroll-margin-top: 72px; }
.legal h2 { margin: 0 0 12px; font-size: 28px; line-height: 1.2; }
.legal h3 { margin: 24px 0 6px; font-size: 18px; }
.legal p, .legal li, .legal dd { color: var(--soft); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; }
.legal li b { color: var(--text); }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.legal-sub { color: var(--muted); font-size: 15px; }
.legal dl { margin: 0; display: grid; gap: 12px; }
.legal dt { font-size: 14px; color: var(--muted); }
.legal dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.nf { min-height: 80svh; padding: calc(120px + env(safe-area-inset-top, 0px)) var(--gutter) 60px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; max-width: 1240px; margin: 0 auto; }
.nf b { font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(110px, 24vw, 240px); line-height: 0.9; color: transparent; -webkit-text-stroke: 2px var(--glow); }
.nf p { margin: 0; color: var(--soft); max-width: 40ch; }

/* ---------- Появление при прокрутке (site.js добавляет .in один раз) ---------- */
/* Анимация, а не transition: не перебивает собственные переходы блока (наведение, нажатие кнопки)
   и не трогает transform (на нём наклон альбомов). Если скрипт не дошёл, блоки проявятся сами через 6 с */
.js .rv:not(.in) { opacity: 0; animation: introSafe 0.4s 6s forwards; }
.js .rv.in { animation: rvIn 0.8s var(--ease) backwards; }
@keyframes rvIn { from { opacity: 0; translate: 0 28px; } }

/* ---------- Широкие экраны ---------- */
@media (min-width: 700px) {
  :root { --gutter: 32px; }
  .masonry { column-count: 3; }
  .ev-actions { grid-template-columns: 1fr 1fr; }
  .ev-actions #ev-ig { grid-column: 1 / -1; }
  .quickbar { display: none; }
}
@media (min-width: 1000px) {
  :root { --gutter: 40px; }
  .nav { display: flex; }
  .header .btn-primary { display: inline-flex; }
  .header .menu-btn { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(400px, 0.8fr); gap: clamp(24px, 4vw, 56px); min-height: calc(min(860px, 100svh) - 152px); }
  .req-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
  .tg-card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .tg-art { order: 0; }
  .tg-art svg { max-width: 470px; margin: 0 0 0 auto; }
  .slider { grid-auto-columns: minmax(300px, 380px); padding: 0 max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); scroll-padding: 0 max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); }
  .slider > * { scroll-snap-align: start; }
  /* Одна тусовка на широком экране — крупно: афиша слева, дата и название справа */
  #events.single { grid-template-columns: minmax(0, 960px); grid-auto-flow: row; justify-content: start; overflow: visible; }
  #events.single .ev-card { flex-direction: row; }
  #events.single .ev-poster { width: 420px; flex-shrink: 0; }
  #events.single .ev-meta { flex-direction: column; border-top: 0; border-left: 2px solid var(--red); }
  #events.single .datebox { width: auto; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 14px; padding: 40px 40px 0; border-right: 0; }
  #events.single .datebox .day { font-size: 76px; line-height: 1; }
  #events.single .datebox .dow, #events.single .datebox .mon { font-size: 18px; }
  #events.single .ev-info { justify-content: flex-start; gap: 16px; padding: 24px 40px 40px; }
  #events.single .ev-title { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.04; }
  #events.single .ev-sub { font-size: 17px; }
  #events.single .ev-links { margin-top: auto; font-size: 18px; }
  #events-nav { display: none; }
  .masonry { column-count: 4; }
  /* Страница тусовки: афиша слева прилипает, информация справа */
  .ev-layout { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 640px); justify-content: center; align-items: start; gap: 64px; padding: calc(120px + env(safe-area-inset-top, 0px)) var(--gutter) 0; }
  .ev-layout .ev-hero { position: sticky; top: 100px; padding: 0; overflow: visible; }
  .ev-layout .ev-hero::after, .ev-layout .ev-hero-bg { display: none; }
  .ev-layout .ev-hero .frame { width: 100%; }
  .ev-layout .ev-body { max-width: none; padding: 0; }
  .ev-layout #tickets-section { padding-top: 48px; }
}
@media (max-width: 999px) {
  .header .menu-btn { display: inline-flex; }
}
@media (max-width: 599px) {
  .facts { grid-template-columns: 1fr; }
  .fact.wide { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .runline::before { animation: none; }
  .o-run { animation: none; }
  .js .rv:not(.in) { opacity: 1; animation: none; }
  .intro [data-intro] { opacity: 1; }
  html { scroll-behavior: auto; }
}
