/* ============================================================
   PROJECT X — дизайн-система
   Фирменная гамма из логотипа: чёрный, белый и алый «X».
   Светофор статусов (ok/warn/danger/amber) — ОТДЕЛЬНАЯ палитра,
   с брендовым красным пересекается только по смыслу «стоп».
   ============================================================ */

/* ---------- Шрифты (self-host, кириллица + латиница) ---------- */
@font-face {
  font-family: 'Oswald'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/oswald-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/oswald-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/oswald-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/oswald-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/manrope-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/manrope-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/manrope-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/manrope-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/assets/fonts/manrope-cyrillic-800-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/assets/fonts/manrope-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  --bg: #070707;
  --bg-2: #101010;
  --bg-3: #171717;
  --line: #262626;
  --line-soft: #1c1c1c;
  --text: #f5f3f2;
  --muted: #9a9494;
  --dim: #5f5a5a;

  --acid: #e51a20; /* алый X с логотипа PROJECT X */
  --acid-deep: #a50f14;
  --acid-glow: rgba(229, 26, 32, 0.22);
  --laser: #ffffff; /* белый: контур логотипа и вторые акценты */
  --laser-deep: #d8d3d3;
  --ink: #ffffff; /* текст на красных заливках */

  /* светофор статусов — отдельная палитра */
  --ok: #17d16d;
  --ok-bg: #052e1a;
  --warn: #ffd226;
  --warn-bg: #332802;
  --danger: #ff2e4d;
  --danger-bg: #33060e;
  --amber: #ff8a00;
  --amber-bg: #2e1902;

  --font-display: 'Oswald', 'Arial Black', system-ui, sans-serif;
  --font-text: 'Manrope', 'Segoe UI', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --radius: 16px;
  --radius-s: 10px;
  --container: 1080px;
  --header-h: 64px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  /* Не 16px: жёсткий кегль в body игнорирует размер текста, выставленный
     человеком в браузере. 1rem наследует его настройку — вёрстка в rem
     тянется следом. */
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-weight: 900; }
h2 { font-weight: 700; font-size: clamp(1.5rem, 4.5vw, 2.4rem); text-transform: uppercase; letter-spacing: 0.01em; }
h3 { font-weight: 700; font-size: 1.05rem; }
p { margin: 0 0 1em; }
::selection { background: var(--acid); color: var(--ink); }

/* зерно поверх всей страницы */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 90;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 64px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head .kicker { font-family: var(--font-display); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.18em; color: var(--acid); text-transform: uppercase; }
.muted { color: var(--muted); }
.acid { color: var(--acid); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.86rem;
  text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none;
  border-radius: var(--radius-s); border: 1px solid transparent;
  padding: 15px 26px; min-height: 50px;
  transition: transform 160ms var(--ease-out), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
/* Ответ на нажатие: заметный масштаб, сильная кривая — интерфейс слышит палец */
.btn:active { transform: scale(0.97); }
.btn-acid { background: var(--acid); color: var(--ink); box-shadow: 0 0 32px var(--acid-glow); }
.btn-acid:hover { box-shadow: 0 0 44px rgba(229, 26, 32, 0.3); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--acid); color: var(--acid); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ---------- Бейджи ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.66rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); white-space: nowrap;
}
.badge-age { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.badge-age.age-16 { background: transparent; color: var(--acid); border-color: var(--acid); }
.badge-soldout { background: var(--danger-bg); color: var(--danger); border-color: transparent; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(7, 7, 9, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo {
  font-family: var(--font-display); font-weight: 900; font-size: 1.02rem;
  letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
}
.logo .l2 { color: var(--acid); }
.top-nav { display: flex; gap: 24px; }
.top-nav a {
  font-weight: 600; font-size: 0.9rem; color: var(--muted); text-decoration: none;
}
.top-nav a:hover { color: var(--acid); }
.header-cta { display: inline-flex; }
@media (max-width: 760px) {
  .top-nav { display: none; }
  .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 40px;
  min-height: 92svh;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(52% 44% at 78% 12%, rgba(229, 26, 32, 0.13), transparent 70%),
    radial-gradient(40% 36% at 12% 82%, rgba(229, 26, 32, 0.07), transparent 70%),
    var(--bg);
}
.hero-bg::after {
  /* диагональная штрих-лента */
  content: '';
  position: absolute; inset: auto -10% 18% -10%; height: 52px;
  transform: rotate(-4deg);
  background: repeating-linear-gradient(45deg, rgba(229, 26, 32,0.08) 0 14px, transparent 14px 30px);
  border-block: 1px solid rgba(229, 26, 32, 0.12);
}

.next-event {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  background: rgba(13, 13, 17, 0.85); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; max-width: 640px;
  margin-bottom: 26px;
}
.next-event .ne-date {
  font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; color: var(--acid);
  line-height: 1; text-align: center; min-width: 64px;
}
.next-event .ne-date small { display: block; font-weight: 400; font-size: 0.62rem; letter-spacing: 0.2em; color: var(--muted); margin-top: 4px; }
.next-event .ne-info { flex: 1 1 200px; min-width: 0; }
.next-event .ne-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; text-transform: uppercase; }
.next-event .ne-meta { color: var(--muted); font-size: 0.86rem; }
.next-event .ne-cta { flex: 0 0 auto; }
@media (max-width: 560px) {
  .next-event .ne-cta { flex-basis: 100%; }
  .next-event .ne-cta .btn { width: 100%; }
}

.countdown { display: flex; gap: 14px; margin-bottom: 30px; }
.cd-num { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--text); font-variant-numeric: tabular-nums; }
.cd-label { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }

.hero-facts { display: flex; flex-wrap: wrap; gap: 28px 44px; }
.fact .f-num { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; color: var(--acid); line-height: 1.1; }
.fact .f-label { color: var(--muted); font-size: 0.84rem; max-width: 180px; }

/* появление hero */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(22px); animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  .rise-1 { animation-delay: 0.05s; } .rise-2 { animation-delay: 0.15s; }
  .rise-3 { animation-delay: 0.25s; } .rise-4 { animation-delay: 0.35s; }
  .rise-5 { animation-delay: 0.45s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
.marquee-track { display: inline-block; animation: marquee 28s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Волны цен (вау-блок) ---------- */
.waves-panel {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px;
}
.waves-panel .wp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-bottom: 20px; }
.waves-panel .wp-event { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.05rem; }
.waves-panel .wp-going { color: var(--muted); font-size: 0.9rem; }
.waves-panel .wp-going b { color: var(--acid); font-variant-numeric: tabular-nums; }
.wave-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 16px; padding-block: 13px; border-top: 1px solid var(--line-soft); }
.wave-row:first-of-type { border-top: 0; }
.wave-name { font-weight: 600; font-size: 0.92rem; }
.wave-name small { display: block; color: var(--dim); font-size: 0.76rem; }
.wave-price { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; white-space: nowrap; justify-self: end; }
.wave-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.wave-bar i { display: block; height: 100%; background: var(--acid); border-radius: 3px; transition: width 0.6s ease; }
.wave-row.is-past { opacity: 0.5; }
.wave-row.is-past .wave-price { text-decoration: line-through; color: var(--dim); }
.wave-row.is-past .wave-bar i { background: var(--dim); }
.wave-row.is-next { opacity: 0.65; }
.wave-row.is-active .wave-name::after {
  content: 'сейчас'; margin-left: 10px;
  font-family: var(--font-display); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--acid); color: var(--ink); border-radius: 999px; padding: 3px 8px;
  vertical-align: 2px;
}
.wave-left { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.wave-left b { color: var(--text); }
.waves-cta { margin-top: 22px; }

/* ---------- Афиша ---------- */
.afisha-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.ec-datebox {
  position: absolute; top: 14px; left: 14px;
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 8px 12px; text-align: center; line-height: 1.15;
}
.ec-datebox b { font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; color: var(--acid); display: block; }
.ec-datebox small { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.ec-badges { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; }
.ec-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ec-title { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; text-transform: uppercase; color: var(--text); }
.ec-meta { color: var(--muted); font-size: 0.86rem; }
.ec-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.ec-price { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--text); }
.ec-price small { color: var(--dim); font-family: var(--font-text); font-weight: 600; }
.ec-go {
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--acid);
}

/* фильтр городов */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 0.84rem;
}
.chip.is-on { background: var(--acid); border-color: var(--acid); color: var(--ink); font-weight: 800; }

/* ---------- Как это работает ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; position: relative; overflow: hidden; }
.step .s-num {
  font-family: var(--font-display); font-weight: 900; font-size: 3.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--acid); opacity: 0.85;
  position: absolute; top: 10px; right: 14px;
}
.step h3 { margin: 0 0 8px; padding-right: 56px; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.steps-note { color: var(--dim); font-size: 0.84rem; margin-top: 14px; }
.steps-note b { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 2px; font-weight: 700; font-size: 1rem;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; color: var(--acid);
  transition: transform 0.2s ease; flex: 0 0 auto;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { color: var(--muted); padding: 0 2px 18px; max-width: 640px; }

/* ---------- Контакты ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact-card {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-card:hover { border-color: var(--acid); transform: translateY(-2px); }
.contact-card .cc-kind { font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acid); }
.contact-card .cc-val { font-weight: 800; font-size: 1.06rem; }
.contact-card .cc-note { color: var(--muted); font-size: 0.84rem; }

/* ---------- Футер ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 36px 0 110px; margin-top: 30px; background: var(--bg-2); }
.site-footer .f-grid { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: flex-start; }
.site-footer .f-note { color: var(--dim); font-size: 0.8rem; max-width: 460px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--acid); }
.dev-sign { font-size: 0.8rem; color: var(--dim); }
@media (min-width: 761px) { .site-footer { padding-bottom: 40px; } }

/* ---------- Липкий нижний CTA (мобайл) ---------- */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 70;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(7, 7, 9, 0.6) 26%, rgba(7, 7, 9, 0.94));
  display: none;
}
.sticky-cta .btn { width: 100%; box-shadow: 0 8px 34px rgba(229, 26, 32, 0.22); }
@media (max-width: 760px) { .sticky-cta { display: block; } }

/* ============================================================
   Страница ивента + чекаут-шторка
   ============================================================ */
.event-hero { padding-top: calc(var(--header-h) + 34px); }
.event-hero .eh-grid { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 34px; align-items: start; }
@media (max-width: 860px) { .event-hero .eh-grid { grid-template-columns: 1fr; } }
.eh-poster {
  aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(-45deg, rgba(229, 26, 32,0.05) 0 2px, transparent 2px 14px),
    radial-gradient(90% 70% at 50% 100%, rgba(229, 26, 32, 0.16), transparent 75%),
    var(--bg-3);
  display: flex; align-items: flex-end; padding: 22px;
}
.eh-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eh-poster .ec-word { font-size: 2.4rem; }
.eh-meta-list { display: grid; gap: 10px; margin: 18px 0 22px; }
.eh-meta-item { display: flex; gap: 12px; align-items: baseline; }
.eh-meta-item .k { flex: 0 0 92px; color: var(--dim); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.eh-meta-item .v { font-weight: 600; }
.eh-title { font-size: clamp(1.9rem, 7vw, 3.4rem); text-transform: uppercase; }
.lineup { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.lineup .badge { font-size: 0.7rem; }

/* шторка */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.66);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
body.sheet-dragging .sheet, body.sheet-dragging .sheet-backdrop { transition: none; }
/* Пока лист ведут пальцем, текст под пальцем выделяться не должен */
body.sheet-dragging, body.sheet-dragging .sheet { user-select: none; -webkit-user-select: none; }
body.scroll-locked { position: fixed; inset-inline: 0; width: 100%; overflow: hidden; }
.sheet {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 81;
  max-height: 88svh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-2); border-top: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(102%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Лист — материал, а не сплошная плашка: содержимое под ним просвечивает. */
  background: rgba(16, 16, 16, 0.92);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.6);
  touch-action: pan-y;
  will-change: transform;
}
/* Полоска-ручка: подсказывает, что лист можно тянуть */
.sheet::before { transition: background 0.15s ease, transform 150ms var(--ease-out); }
.sheet.is-dragging::before { background: var(--muted); transform: scaleX(1.27); }
.sheet::before { content: ''; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--line); margin: 6px auto 14px; }
.sheet-open .sheet { transform: none; }
/* Пока лист тянут, подложка светлеет вместе с ним: движение заранее
   показывает, чем всё кончится (--sheet-progress ставит sheet-drag.js). */
.sheet-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
@media (min-width: 761px) {
  .sheet { inset-inline: auto; right: 0; top: 0; bottom: 0; width: 440px; max-height: none; border-radius: 0; border-left: 1px solid var(--line); transform: translateX(102%); touch-action: auto; }
  .sheet::before { display: none; }
  .sheet-open .sheet { transform: none; }
}
/* Пока лист едет под пальцем, тяжёлое стекло пересчитывается каждый кадр — на
   среднем телефоне это стоит кадров ровно там, где важнее всего гладкость.
   На время движения материал становится плотным: за подложкой в 66% чёрного
   всё равно почти ничего не видно, а жест остаётся ровным. */
.sheet.is-dragging {
  background: rgba(14, 14, 14, 0.98);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* Модальная задача выходит вперёд, а страница уходит на второй план — вместе
   с листом, а не отдельно от него: масштаб привязан к тому же прогрессу, что
   и подложка, поэтому фон «дышит» ровно на столько, на сколько тянут лист. */
@media (max-width: 760px) {
  /* Покой задаёт CSS; во время жеста sheet-drag.js пишет transform/opacity
     прямо на эти узлы (никаких переменных на body — иначе каждый кадр жеста
     пересчитывает стили всего документа). */
  body.sheet-open main {
    transform: scale(0.976);
    transform-origin: 50% 0;
    transition: transform 300ms var(--ease-out);
    will-change: transform;
  }
  body.sheet-dragging main { transition: none; }
  body.sheet-open .site-header,
  body.sheet-open .sticky-cta { opacity: 0.45; transition: opacity 300ms var(--ease-out); }
  body.sheet-dragging .site-header, body.sheet-dragging .sticky-cta { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.sheet-open main { transform: none; }
}

.sheet h3 { font-size: 1.1rem; text-transform: uppercase; margin-bottom: 16px; }
.sheet .sh-close {
  position: absolute; top: 14px; right: 14px; background: none; border: 0; color: var(--muted);
  font-size: 1.5rem; line-height: 1; padding: 6px;
}

/* формы */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field input[type='text'], .field input[type='tel'] {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-s);
  color: var(--text); font-family: inherit; font-size: 1rem; padding: 13px 14px;
  outline: none; transition: border-color 0.15s ease;
}
.field input:focus { border-color: var(--acid); }
.field.is-error input { border-color: var(--danger); }
/* Ошибка скрыта по умолчанию САМА, а не через родителя: блоки согласия лежат
   вне .field, и старое правило их не гасило — претензия висела в форме
   до того, как человек успевал ошибиться. */
.err { display: none; color: var(--danger); font-size: 0.78rem; margin-top: 5px; }
.err.is-on, .field.is-error .err { display: block; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button {
  width: 46px; height: 46px; border-radius: var(--radius-s); border: 1px solid var(--line);
  background: var(--bg-3); color: var(--text); font-size: 1.3rem; font-weight: 700;
}
.stepper button:disabled { opacity: 0.35; }
.stepper .st-val { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; min-width: 40px; text-align: center; }
.check {
  display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: var(--muted);
  margin: 16px 0; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius-s); padding: 10px;
  margin-inline: -10px; transition: border-color 0.15s ease, background 0.15s ease;
}
.check.is-error { border-color: var(--danger); background: var(--danger-bg); }
.check.is-error span { color: var(--text); }

/* Поле телефона с фиксированным префиксом +7: единый контейнер, «+7» —
   часть поля, без собственных рамок и фонов у внутреннего инпута */
.phone-wrap {
  display: flex; align-items: center;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-s);
  transition: border-color 0.15s ease;
}
.phone-wrap:focus-within { border-color: var(--acid); }
.field.is-error .phone-wrap { border-color: var(--danger); }
.phone-prefix {
  font-weight: 600; font-size: 1rem; color: var(--muted);
  padding-left: 14px; user-select: none;
}
.field .phone-wrap input[type='tel'],
.field .phone-wrap input[type='text'],
.city-form .phone-wrap input[type='text'] {
  flex: 1; min-width: 0; width: auto;
  background: transparent; border: 0; border-radius: 0; box-shadow: none; outline: none;
  color: var(--text); font-family: inherit; font-size: 1rem;
  padding: 13px 14px 13px 6px;
}
.phone-wrap .phone-prefix.hidden + input { padding-left: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--acid); margin-top: 1px; flex: 0 0 auto; }
.check a { color: var(--acid); }
.minor-toggle { display: flex; gap: 10px; align-items: center; font-size: 0.84rem; color: var(--muted); cursor: pointer; margin-top: 6px; }
.minor-toggle input { width: 16px; height: 16px; accent-color: var(--acid); }
.order-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.order-total .ot-label { color: var(--muted); }
.order-total .ot-sum { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; }
.form-note { color: var(--dim); font-size: 0.78rem; }

/* успех покупки */
.success-tickets { display: grid; gap: 10px; margin: 18px 0; }
.success-tickets a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 14px 16px; text-decoration: none; font-weight: 700;
}
.success-tickets a:hover { border-color: var(--acid); }
.success-tickets .st-open { color: var(--acid); font-size: 0.78rem; text-transform: uppercase; font-family: var(--font-display); }
.success-note { background: var(--ok-bg); border: 1px solid rgba(23, 209, 109, 0.35); color: var(--text); border-radius: var(--radius-s); padding: 14px 16px; font-size: 0.9rem; }

/* фолбэк заказа */
.fallback-box { background: var(--amber-bg); border: 1px solid rgba(255, 138, 0, 0.4); border-radius: var(--radius-s); padding: 16px; font-size: 0.92rem; }
.fallback-box .btn { margin-top: 12px; }
/* Обратная связь бывает четырёх видов, и различать их надо с одного взгляда.
   Статус — спокойный серый: просто сообщаем. Предупреждение — янтарь: сделка
   изменилась, посмотри. Ошибка — красный: так не получится, вот другой путь. */
#wave-note.note-info { background: rgba(255, 255, 255, 0.05); border-color: var(--line); color: var(--text); }
#wave-note.note-warn { background: var(--amber-bg); border-color: rgba(255, 138, 0, 0.4); }
#wave-note.note-error { background: var(--danger-bg); border-color: rgba(255, 46, 77, 0.5); }

/* ============================================================
   Билет гостя (/t/)
   ============================================================ */
.ticket-wrap { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 26px 16px 40px; }
.ticket-card {
  width: 100%; max-width: 400px; border-radius: 22px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.tc-head { background: var(--acid); color: var(--ink); padding: 18px 22px; position: relative; overflow: hidden; }
.tc-head::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(10,10,12,0.06) 0 10px, transparent 10px 22px); }
.tc-head .tc-brand { font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; letter-spacing: 0.02em; position: relative; }
.tc-head .tc-event { font-weight: 800; font-size: 0.9rem; position: relative; }
.tc-body { padding: 22px; }
.tc-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; line-height: 1.2; }
.tc-meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 6px; }
.tc-badges { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.tc-qr-zone { background: #fff; border-radius: var(--radius); padding: 18px; margin: 16px 0 10px; }
.tc-qr-zone svg { display: block; width: 100%; height: auto; }
.tc-code { text-align: center; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; font-size: 0.95rem; color: var(--text); margin-bottom: 4px; }
.tc-warn { color: var(--dim); font-size: 0.76rem; text-align: center; }
.tc-cut { position: relative; height: 26px; }
.tc-cut::before {
  content: ''; position: absolute; inset-inline: 22px; top: 50%;
  border-top: 2px dashed var(--line);
}
.tc-cut::after, .tc-cut span {
  content: ''; position: absolute; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--bg);
}
.tc-cut::after { left: -13px; }
.tc-cut span { right: -13px; }
.tc-actions { padding: 0 22px 22px; display: grid; gap: 10px; }
.ticket-status-strip { padding: 12px 22px; font-weight: 800; font-size: 0.9rem; text-align: center; }
.ticket-status-strip.used { background: var(--danger-bg); color: var(--danger); }
.ticket-status-strip.revoked { background: var(--danger-bg); color: var(--danger); }

/* ============================================================
   Страница сканирования (/s/) — светофор для админа
   ============================================================ */
.scan-body { min-height: 100svh; display: flex; flex-direction: column; }
.scan-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px 20px; transition: background 0.25s ease; }
.scan-stage .sc-icon { font-family: var(--font-display); font-weight: 900; font-size: 3rem; line-height: 1; margin-bottom: 10px; }
.scan-verdict { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.9rem, 9vw, 3.2rem); text-transform: uppercase; line-height: 1.05; margin-bottom: 12px; }
.scan-sub { font-size: 1.05rem; opacity: 0.92; max-width: 420px; }
.scan-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 6vw, 2rem); text-transform: uppercase; margin: 14px 0 4px; }
.scan-detail { font-size: 0.95rem; opacity: 0.85; }
.stage-ok { background: radial-gradient(80% 60% at 50% 30%, rgba(23, 209, 109, 0.28), transparent), var(--ok-bg); }
.stage-ok .scan-verdict { color: var(--ok); }
.stage-warn { background: radial-gradient(80% 60% at 50% 30%, rgba(255, 210, 38, 0.22), transparent), var(--warn-bg); }
.stage-warn .scan-verdict { color: var(--warn); }
.stage-danger { background: radial-gradient(80% 60% at 50% 30%, rgba(255, 46, 77, 0.25), transparent), var(--danger-bg); }
.stage-danger .scan-verdict { color: var(--danger); }
.stage-amber { background: radial-gradient(80% 60% at 50% 30%, rgba(255, 138, 0, 0.22), transparent), var(--amber-bg); }
.stage-amber .scan-verdict { color: var(--amber); }
.stage-neutral { background: var(--bg); }
.scan-foot { padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.scan-foot .btn { min-height: 60px; font-size: 1rem; }
.btn-ok { background: var(--ok); color: var(--ink); }
.btn-danger-ghost { background: transparent; border-color: var(--danger); color: var(--danger); }
.scan-meta-pill {
  display: inline-flex; gap: 8px; align-items: center; margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 7px 14px;
  font-size: 0.8rem; opacity: 0.8;
}
.pin-panel { max-width: 380px; margin-inline: auto; width: 100%; }
.pin-panel input {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-s);
  color: var(--text); font-size: 1.05rem; padding: 14px; margin-bottom: 10px; text-align: center;
}
.pin-panel input:focus { border-color: var(--acid); outline: none; }
.guest-brand { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; }
.guest-brand .l2 { color: var(--acid); }

/* ============================================================
   Админка
   ============================================================ */
.admin-wrap { padding: calc(var(--header-h) + 20px) 0 60px; }
.admin-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.admin-panel {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 18px;
}
.admin-panel h3 { margin: 2px 0 6px; text-transform: uppercase; font-size: 1rem; }
.ap-kicker {
  font-family: var(--font-display); font-weight: 400; font-size: 0.62rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--acid);
}
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.tile .t-num { font-family: var(--font-display); font-weight: 900; font-size: 1.65rem; color: var(--acid); font-variant-numeric: tabular-nums; line-height: 1.15; }
.tile .t-label { color: var(--muted); font-size: 0.8rem; }
.tile .t-sub { color: var(--dim); font-size: 0.72rem; margin-top: 4px; }
.walkin-form { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 520px; }
/* Длинная волна в <select> не должна распирать колонку шире экрана */
.walkin-form > * { min-width: 0; }
.admin-select { max-width: 100%; min-width: 0; }
.walkin-form input[type='text'] {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-s);
  color: var(--text); font-family: inherit; font-size: 1rem; padding: 12px 14px; outline: none;
}
.walkin-form input[type='text']:focus { border-color: var(--acid); }
.bar-cell { min-width: 120px; }
.bar-cell i { display: block; height: 9px; border-radius: 5px; background: var(--acid); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th { text-align: left; color: var(--dim); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.admin-table .num { font-variant-numeric: tabular-nums; text-align: right; }
.scan-feed { display: grid; gap: 8px; }
.scan-feed-item { display: flex; gap: 12px; align-items: center; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-s); padding: 10px 14px; font-size: 0.86rem; }
.scan-feed-item .dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.dot-ok { background: var(--ok); } .dot-repeat { background: var(--danger); }
.dot-bad { background: var(--danger); } .dot-degraded { background: var(--amber); }
.admin-select {
  background: var(--bg-3); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius-s); padding: 12px 14px; font-family: inherit; font-size: 0.95rem;
  max-width: 100%;
}
.admin-section { margin-bottom: 34px; }

/* печать офлайн-списка */
@media print {
  body { background: #fff; color: #000; }
  body::after { display: none; }
  .no-print { display: none !important; }
  .admin-table th, .admin-table td { border-color: #999; color: #000; }
}

/* ============================================================
   v2: секции реальной концепции (14+, без алкоголя, днём)
   ============================================================ */

/* hero: фото-фон с затемнением */
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.35;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  filter: saturate(0.9) contrast(1.05);
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(7,7,9,0.55), rgba(7,7,9,0.85) 60%, var(--bg));
}
.hero-bg > * { z-index: 0; }
.hero .container { position: relative; z-index: 2; }

/* 05 фотолента «тяни вбок» */
.strip {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 20px 18px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip-tag {
  background: var(--acid); color: var(--ink); font-family: var(--font-display);
  font-weight: 700; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 5px; transform: rotate(-1.5deg);
}
.strip-note { background: rgba(7, 7, 9, 0.75); color: var(--text); font-size: 0.72rem; padding: 3px 8px; border-radius: 4px; }
@media (min-width: 900px) { .strip { padding-inline: calc((100vw - var(--container)) / 2 + 20px); } }

/* 06 фейсконтроль */
.face-section {
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(124, 58, 237, 0.18), transparent 70%),
    radial-gradient(50% 40% at 15% 85%, rgba(124, 58, 237, 0.12), transparent 70%);
}
.face-panel { max-width: 460px; }
.face-input-row { display: flex; gap: 10px; }
.face-input-row input {
  flex: 1; min-width: 0; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius-s); color: var(--text);
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; text-align: center;
  padding: 10px 12px; outline: none; -moz-appearance: textfield;
}
.face-input-row input::-webkit-outer-spin-button, .face-input-row input::-webkit-inner-spin-button { -webkit-appearance: none; }
.face-input-row input:focus { border-color: var(--acid); }
.face-result { margin-top: 20px; }
.face-bubble {
  display: inline-flex; flex-direction: column; gap: 2px;
  border-radius: 24px; padding: 16px 24px; transform: rotate(-1.5deg);
}
.face-bubble .fb-brand { font-family: var(--font-display); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.16em; opacity: 0.75; }
.face-bubble .fb-title { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; text-transform: uppercase; line-height: 1.1; }
.fb-list, .fb-okay { background: var(--acid); color: var(--ink); box-shadow: 0 0 40px var(--acid-glow); }
.fb-early { background: #ff6a00; color: var(--ink); box-shadow: 0 0 40px rgba(255, 106, 0, 0.25); }
.face-sub { color: var(--muted); max-width: 420px; margin: 14px 0 16px; }
.face-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#face-age.is-invalid { border-color: var(--danger); }
#face-err { margin: 8px 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .shake { animation: shake 0.35s ease; }
  @keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
}

/* 07 города */
.city-form { max-width: 460px; position: relative; }
.city-form .field { margin-bottom: 12px; }
.city-form input[type='text'] {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-s);
  color: var(--text); font-family: inherit; font-size: 1rem; padding: 13px 14px; outline: none;
}
.city-form input[type='text']:focus { border-color: var(--acid); }
.chip-ghost { opacity: 0.55; border-style: dashed; }

/* бейдж «0% алк» */
.badge-dry { background: rgba(7, 7, 9, 0.8); color: var(--text); border-color: transparent; }

/* ---------- Утилиты ---------- */
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* SECRET PLACE на проходке: привилегия купившего — адрес раньше города */
.tc-place {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-s);
  background: rgba(229, 26, 32, 0.1); border: 1px solid rgba(229, 26, 32, 0.35);
}
.tc-place[hidden] { display: none; }
.tc-place .tp-kicker {
  font-family: var(--font-display); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--acid);
}
.tc-place .tp-addr { font-weight: 700; font-size: 1.05rem; margin-top: 6px; line-height: 1.3; }
.tc-place .tp-note { color: var(--muted); font-size: 0.84rem; margin-top: 6px; line-height: 1.45; }
.tc-place .tp-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.tc-place .tp-links a {
  color: var(--text); font-weight: 600; font-size: 0.84rem; text-decoration: none;
  padding: 8px 12px; min-height: 44px; display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-s);
}
.tc-place .tp-links a:active { transform: scale(0.97); }

/* Карточка ночи: строка про секретный адрес */
.nc-secret { color: var(--acid); font-size: 0.84rem; }

/* ============================================================
   PROJECT X THEME — оверрайды поверх базовой системы.
   Держим одним блоком в конце файла: базовые правила не трогаем,
   бренд меняется здесь (так же устроены соседние форки).
   ============================================================ */

/* У Oswald самый жирный начертание — 700. База просит 800/900 у дисплейного
   шрифта: без этого правила браузер синтезирует жир или уходит в фолбэк,
   и заголовки выпадают из фирменного шрифта. */
h1, h2, h3,
.logo, .kicker, .hero-title, .ec-word, .eh-title, .ec-datebox b, .eh-datebox b,
.fact .f-num, .cd-num, .chip.is-on, .contact-card .cc-val, .order-total .ot-sum,
.tc-head .tc-brand, .tc-head .tc-event, .ticket-status-strip, .scan-stage .sc-icon,
.scan-verdict, .guest-brand, .tile .t-num, .m-acid, .marquee-track span,
.wave-price, .ap-kicker, .admin-table th, .btn {
  font-weight: 700;
}

/* Ночной воздух: UV-свечение по краям + лазерный отсвет снизу */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 65% at 50% -8%, rgba(229, 26, 32, 0.16), transparent 62%),
    radial-gradient(80% 55% at 100% 105%, rgba(229, 26, 32, 0.10), transparent 68%);
}

/* Лого и дисплейные заголовки — UV-градиент с неоновым ореолом */
/* Знак бренда: белое PROJECT со свечением и алый X поверх середины —
   ровно как на аватаре и афишах. .lx — сам крест, .l2 оставлен для
   страниц, где разметка проще. */
.logo {
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
  position: relative;
  display: inline-flex;
  align-items: center;
}
.logo .lx {
  color: var(--acid);
  font-weight: 700;
  margin-inline: -0.06em;
  text-shadow: 0 0 18px rgba(229, 26, 32, 0.6);
  transform: scale(1.35);
  display: inline-block;
}
.logo .l2 { color: var(--acid); }
/* контент героя — поверх X-мотива */
.hero > .container { position: relative; z-index: 1; }

/* Кнопки-акценты: UV-заливка со стробом по краю */
.btn-acid {
  background: var(--acid);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 30px rgba(229, 26, 32, 0.3);
  text-shadow: none;
}
.btn-acid:hover { filter: brightness(1.08); }

/* Дата события — лазерно-розовая: главный контрастный акцент афиши */
.ec-datebox, .eh-datebox {
  background: #fff;
  color: #0a0a0a;
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.ec-datebox b, .eh-datebox b { color: var(--acid); }
.ec-datebox small, .eh-datebox small { color: #4a4a4a; }
.strip-tag { background: var(--acid); color: #fff; }

/* На странице события слово-постер лежит в .eh-poster: базовое правило
   написано под .ec-poster, поэтому шрифт задаём здесь явно. */
.eh-poster .ec-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(229, 26, 32, 0.8);
  word-break: break-word;
}

/* Плейсхолдеры фото (материалы приедут из Instagram): «X» в дымке */
.ec-poster, .eh-poster, .strip-item.no-img {
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(229, 26, 32, 0.20), transparent 60%),
    linear-gradient(160deg, #171717 0%, #070707 100%);
  position: relative;
}
.strip-item.no-img::after,
.eh-poster:not(.has-img)::after,
.ec-poster:not(.has-img)::after {
  content: 'X';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 5rem;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(229, 26, 32, 0.5);
  pointer-events: none;
}

/* Обратный отсчёт в hero */
.countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: rgba(18, 13, 28, 0.7);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}
.countdown b { color: var(--acid); font-size: 1.15rem; }
.countdown small { color: var(--muted); font-family: var(--font-text); letter-spacing: 0; }

/* Фейсконтроль: UV-градиент вместо лаймового */
.face-section { background: radial-gradient(90% 80% at 50% 0%, rgba(229, 26, 32, 0.20), transparent 70%); }
.fb-early { background: rgba(229, 26, 32, 0.14); border-color: rgba(229, 26, 32, 0.45); }

/* Шапка билета */
.tc-head { background: linear-gradient(135deg, var(--acid) 0%, var(--acid-deep) 100%); }

/* ---------- Админка: форма событий ---------- */
.event-form .ef-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.event-form .field { margin: 0; }
.event-form label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.event-form textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
  resize: vertical;
}
.ef-waves-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--muted);
}
.ef-wave {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.ef-wave input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--text);
  font: inherit;
  padding: 9px 11px;
}
.ef-wave .ef-sold { font-size: 0.76rem; color: var(--muted); white-space: nowrap; }
.ef-wave button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--muted);
  cursor: pointer;
  padding: 8px 10px;
  line-height: 1;
}
.ef-wave button:hover:not(:disabled) { color: var(--danger); border-color: var(--danger); }
.ef-wave button:disabled { opacity: 0.35; cursor: not-allowed; }
.ef-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.btn.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.ee-bad { border-color: var(--danger) !important; }
@media (max-width: 560px) {
  .ef-wave { grid-template-columns: 1fr 1fr; }
  .ef-wave .ef-sold { grid-column: 1 / -1; }
}

/* Знак бренда на билете, сканере и в гостевых заставках */
.guest-brand .lx, .tc-head .tc-brand .lx {
  color: var(--acid);
  transform: scale(1.3);
  display: inline-block;
  margin-inline: -0.05em;
}
.tc-head .tc-brand .lx { color: #fff; text-shadow: 0 0 12px rgba(255, 255, 255, 0.6); }
.hero-logo-sub {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 3.6vw, 1.3rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: -6px 0 18px;
}

/* ============================================================
   Доводка по apple-design: доступность, материалы, типографика.
   ============================================================ */

/* --- §14: три независимых сигнала, а не один --- */
@media (prefers-reduced-motion: reduce) {
  /* Не «выключить движение», а заменить его на спокойный эквивалент:
     оставляем прозрачность и цвет, убираем перемещения и перелёты. */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .rise { opacity: 1; transform: none; animation: none; }
  /* Шторка: вместо слайда — кроссфейд. Перемещение убираем, понятность оставляем */
  .sheet {
    transform: none !important; opacity: 0; visibility: hidden;
    transition: opacity 200ms ease, visibility 0s linear 200ms;
  }
  .sheet-open .sheet { opacity: 1; visibility: visible; transition-delay: 0s; }
  .event-card:hover, .strip-item:hover img, .program-item:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  /* Прозрачность — украшение; читаемость важнее. Гасим стекло. */
  .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .sheet { background: var(--bg-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .sticky-cta { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  body::before { display: none; }
  body::after { display: none; }
}
@media (prefers-contrast: more) {
  :root {
    --muted: #cfc9c9;   /* серый текст подтягиваем к белому */
    --dim: #a49e9e;
    --line: #4a4a4a;    /* границы должны быть видны, а не угадываться */
    --line-soft: #3a3a3a;
  }
  .btn-ghost { border-color: var(--text); }
  .badge { border-color: var(--muted); color: var(--text); }
  body::after { display: none; } /* зерно поверх текста снижает контраст */
}

/* --- §16 Craft: клавиатура должна быть видна --- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn:focus-visible { outline-offset: 3px; }

/* --- §1 Response: убираем 300-мс задержку тапа на всём интерактивном --- */
a, button, summary, .chip, .stepper button, label.check { touch-action: manipulation; }

/* --- §10: зона нажатия не меньше 44px там, где палец --- */
.top-nav a, .faq summary, .ec-go, .dev-sign a { min-height: 44px; display: inline-flex; align-items: center; }
.sh-close { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* --- §12: край прокрутки вместо жёсткой линейки под шапкой --- */
.site-header { border-bottom: 0; }
.site-header::after {
  content: '';
  position: absolute; inset-inline: 0; top: 100%; height: 20px;
  background: linear-gradient(to bottom, rgba(7, 7, 7, 0.55), transparent);
  pointer-events: none;
}

/* --- §15: трекинг зависит от размера, а не один на всё --- */
/* Крупный дисплейный текст: буквы «расходятся» с ростом кегля — стягиваем. */
.hero-title, .eh-title, .scan-verdict, .ec-word { letter-spacing: -0.01em; }
/* Мелкие подписи капсом: наоборот, разрежаем — иначе слипаются. */
.kicker, .badge, .btn, .ap-kicker, .cc-kind { letter-spacing: 0.08em; }
/* Тело текста живёт на нуле. */
p, .muted, .faq-a, .ec-meta, .eh-descr { letter-spacing: 0; }
/* Интерлиньяж обратен кеглю: у заголовков плотнее, у текста свободнее. */
h1, .hero-title { line-height: 1.02; }
h2 { line-height: 1.1; }
.faq-a, .manifesto p, .parents-box p { line-height: 1.6; }


/* --- §1/§10: палец должен получать ответ мгновенно, а не после отпускания --- */
.chip, .stepper button, .event-card, .contact-card, .sh-close,
.success-tickets a, .saved-tickets a, .faq summary, .strip-item {
  transition: transform 90ms ease-out, opacity 90ms ease-out, border-color 0.2s ease;
}
.chip:active, .stepper button:active:not([disabled]) { transform: scale(0.94); }
.event-card:active, .contact-card:active,
.success-tickets a:active, .saved-tickets a:active { transform: scale(0.985); }
.sh-close:active { transform: scale(0.9); }
.faq summary:active { opacity: 0.55; }

/* Наведение — язык мыши. На тач-экране :hover залипает после тапа. */
@media (hover: none) {
  .event-card:hover, .g-item:hover, .program-item:hover,
  .strip-item:hover img, .contact-card:hover { transform: none; box-shadow: none; }
  .top-nav a:hover, .btn-ghost:hover { color: inherit; border-color: var(--line); }
}

/* Блок «твои проходки» — тот же язык, что у списка в шторке */
.saved-tickets { display: grid; gap: 8px; margin-top: 18px; }
.saved-tickets .st-head {
  font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.saved-tickets a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; min-height: 44px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-s);
  text-decoration: none; color: var(--text); font-weight: 600;
}
.saved-tickets .st-open { color: var(--acid); font-size: 0.82rem; }

/* --- §10: чипы и тумблер «нет 18» были ниже 44px — палец мимо, а цена ошибки
   на чекауте высокая. Растим зону нажатия, не трогая рисунок. --- */
.chip { min-height: 44px; display: inline-flex; align-items: center; }
.minor-toggle { min-height: 44px; padding-block: 6px; }
.minor-toggle input { width: 20px; height: 20px; }

/* --- §14/§20: кольцо фокуса должно доставать и до полей ввода --- */
.field input:focus-visible, .field textarea:focus-visible,
.admin-select:focus-visible, .face-input-row input:focus-visible {
  outline: 2px solid var(--acid); outline-offset: 2px;
}

/* --- §11: полоса волны двигала layout-свойство width --- */
.wave-bar i { width: 100%; transform-origin: left center; transition: transform 300ms var(--ease-out); }

/* --- §14: контраст мелкого текста и белого на зелёном --- */
:root { --dim: #827f7f; } /* AA и на карточках: 4.79 на --bg-2, 4.52 на --bg-3 */
.scan-stage .btn-ok, .btn-pass { color: #04240f; }

/* --- §1/§3: занятая кнопка отвечает движением и не запирает ввод --- */
.btn.is-busy { opacity: 0.72; position: relative; overflow: hidden; }
.btn.is-busy::after {
  content: '';
  position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: rgba(255, 255, 255, 0.85);
  animation: btn-busy 1.1s linear infinite;
}
@keyframes btn-busy { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .btn.is-busy::after { animation: none; opacity: 0.5; } }


/* ---------- v6: бронь с оплатой переводом ---------- */
.pay-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 14px 0; display: grid; gap: 10px; }
.pay-box .pay-kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--acid); }
.pay-box.is-claimed .pay-kicker { color: var(--amber); }
.pay-box .pay-sum { font-family: var(--font-display); font-weight: 900; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.pay-rows { display: grid; gap: 6px; margin-top: 4px; }
.pay-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-bottom: 1px dashed var(--line); padding: 8px 0; font-size: 0.92rem; }
.pay-row span { color: var(--muted); }
.pay-row b { text-align: right; font-variant-numeric: tabular-nums; }
.pay-code { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.08em; color: var(--acid); }
.pay-note { color: var(--muted); font-size: 0.84rem; line-height: 1.45; margin: 0; }
.pay-note b { color: var(--text); }
.pay-status { background: var(--amber-bg); border: 1px solid rgba(255, 138, 0, 0.4); border-radius: var(--radius-s); padding: 12px 14px; font-size: 0.9rem; }
.pay-box .btn { margin: 0; }
.ticket-status-strip.reserved { background: var(--amber-bg); color: var(--amber); }
.ticket-status-strip.expired { background: var(--danger-bg); color: var(--danger); }
.ticket-card.is-reserved .tc-qr-zone { opacity: 0.35; filter: grayscale(1); }
.ticket-card.is-dead .tc-qr-zone { opacity: 0.15; filter: grayscale(1); }
.ticket-card .tc-pay { padding: 0 22px 8px; }
.ticket-card .tc-pay .pay-box { margin: 0 0 12px; }
.buy-perks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.buy-perks li { position: relative; padding-left: 18px; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.buy-perks li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; background: var(--acid); transform: rotate(45deg); }
.buy-left { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }
.buy-left b { color: var(--acid); font-variant-numeric: tabular-nums; }

/* админка: ожидающие оплаты и действия по гостям */
.pending-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px 14px; align-items: center; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-s); padding: 12px 14px; }
.pending-row.is-claimed { border-color: rgba(255, 138, 0, 0.55); }
.pending-row .pr-code { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.06em; color: var(--acid); }
.pending-row .pr-main { font-size: 0.9rem; line-height: 1.4; min-width: 0; }
.pending-row .pr-main small { color: var(--muted); display: block; }
.pending-row .pr-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pending-row .pr-claimed { display: inline-block; background: var(--amber-bg); color: var(--amber); border-radius: 999px; padding: 2px 8px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.pending-list { display: grid; gap: 10px; }
.pending-confirm { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.pending-confirm input { flex: 1 1 160px; min-width: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; font: inherit; text-transform: uppercase; letter-spacing: 0.08em; }
.pending-confirm input:focus { outline: none; border-color: var(--acid); }
.act-link { background: none; border: 0; color: var(--acid); cursor: pointer; font: inherit; font-size: 0.82rem; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.act-link.danger { color: var(--danger); }
.act-link + .act-link { margin-left: 10px; }
.sources-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.sources-tools input { flex: 1 1 200px; min-width: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; font: inherit; }
.sources-tools input:focus { outline: none; border-color: var(--acid); }
.ef-wave label.check { grid-column: 1 / -1; margin: 0; font-size: 0.82rem; }
@media (max-width: 560px) {
  .pending-row { grid-template-columns: 1fr; }
  .pending-row .pr-acts { justify-content: flex-start; }
}
