/* «Різдвяна ніч у Вифлеємі». Ідея: нічне місто і світло ліхтаря.
   Одна тема (ніч). Золото тільки там, де «світло»: дії, дати, вільні місця.
   Радіуси: кнопки і бейджі pill, картки 22px, поля 14px. */

@font-face { font-family: 'Geologica'; src: url('fonts/geologica-cyrillic-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Geologica'; src: url('fonts/geologica-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; 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'; src: url('fonts/manrope-cyrillic-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; 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 {
  --night: #0B1730;
  --night-2: #0F1F3D;
  --surface: #142849;
  --surface-2: #1A3159;
  --line: rgba(233, 220, 196, .14);
  --line-strong: rgba(233, 220, 196, .26);
  --gold: #E2B45C;
  --gold-hi: #F0C878;
  --gold-ink: #1C1406;
  --sand: #E9DCC4;
  --text: #EFEDE7;
  --muted: #A9B3C5;
  --danger: #FF8E7A;
  --ok: #8FD3A7;

  --font-display: 'Geologica', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --r-card: 22px;
  --r-field: 14px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 68px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:not(.btn):not(.brand) { text-decoration-color: rgba(226, 180, 92, .5); text-underline-offset: 3px; }
a:not(.btn):not(.brand):hover { color: var(--gold-hi); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 128px); }
.h2 { font: 600 clamp(30px, 4.4vw, 52px)/1.08 var(--font-display); letter-spacing: -.025em; margin: 0 0 24px; text-wrap: balance; }
.h3 { font: 600 clamp(20px, 2vw, 24px)/1.25 var(--font-display); letter-spacing: -.01em; margin: 0 0 8px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: clamp(19px, 1.6vw, 22px); color: var(--sand); margin: 0 0 16px; }
p { margin: 0 0 14px; }

/* ---------- Кнопки ---------- */
.btn {
  --bg: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 700 16px/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  background: var(--bg); transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-gold { --bg: var(--gold); color: var(--gold-ink); box-shadow: 0 10px 30px -12px rgba(226, 180, 92, .55); }
.btn-gold:hover { --bg: var(--gold-hi); box-shadow: 0 14px 36px -12px rgba(240, 200, 120, .7); }
.btn-gold .ph { transition: transform .25s var(--ease); }
.btn-gold:hover .ph-arrow-right { transform: translateX(3px); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-sm { min-height: 40px; padding: 10px 18px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 16px 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-btn { background: none; border: 0; padding: 8px 0; color: var(--gold); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Шапка ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; transition: background-color .35s var(--ease), border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.site-header.is-solid { background: rgba(11, 23, 48, .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { font: 600 14px/1.1 var(--font-display); letter-spacing: .01em; }
.brand-star {
  width: 26px; height: 26px; flex: none; background: var(--gold);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}
.nav { display: none; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--text); opacity: .85; }
.nav a:hover { opacity: 1; color: var(--gold-hi); }
.header-cta { margin-left: auto; }
.burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(11, 23, 48, .4); cursor: pointer; font-size: 22px; }
.mnav { display: grid; padding: 8px var(--gutter) 20px; background: rgba(11, 23, 48, .96); border-bottom: 1px solid var(--line); }
.mnav[hidden] { display: none; }
.mnav a { padding: 14px 0; font: 600 20px/1.2 var(--font-display); text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav a:last-child { border-bottom: 0; }
@media (max-width: 479px) { .header-cta { display: none; } .burger { margin-left: auto; } }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header-cta { margin-left: 8px; }
  .burger, .mnav { display: none !important; }
}

/* ---------- 1. Hero ---------- */
.hero { position: relative; min-height: 100dvh; display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 35% 50%; z-index: -2; transform: scale(1.06); animation: heroIn 2.4s var(--ease) both; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 23, 48, .55) 0%, rgba(11, 23, 48, 0) 22%, rgba(11, 23, 48, .2) 50%, rgba(11, 23, 48, .92) 82%, var(--night) 100%); }
.hero-light { position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(420px circle at var(--lx, 30%) var(--ly, 60%), rgba(255, 196, 110, .55), transparent 70%); }
.hero-grid { padding-top: calc(var(--header-h) + 24px); padding-bottom: clamp(36px, 7vh, 72px); }
.hero-copy { max-width: 560px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 600 13px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); }
.hero-kicker .sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }
.hero-title { margin: 0 0 20px; font-family: var(--font-display); font-weight: 600; letter-spacing: -.035em; line-height: .95; }
.t-line { display: block; font-size: clamp(46px, 7vw, 96px); white-space: nowrap; }
.t-small { font-size: clamp(30px, 4.8vw, 60px); font-weight: 300; letter-spacing: -.02em; color: var(--sand); margin-top: 6px; }
.hero-lead { font-size: clamp(17px, 1.5vw, 19px); color: #DCE0E8; max-width: 46ch; margin: 0 0 28px; }
.hero-lead strong { color: var(--text); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.free-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(226, 180, 92, .45); color: var(--gold-hi); font-weight: 700; font-size: 15px; background: rgba(11, 23, 48, .35); backdrop-filter: blur(6px); }
.hero-copy > * { animation: rise 1s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
@media (min-width: 768px) {
  .hero { align-items: center; }
  .hero::after { background:
    linear-gradient(90deg, rgba(11, 23, 48, 0) 30%, rgba(11, 23, 48, .55) 58%, rgba(11, 23, 48, .82) 100%),
    linear-gradient(180deg, rgba(11, 23, 48, .5) 0%, rgba(11, 23, 48, 0) 20%, rgba(11, 23, 48, 0) 75%, var(--night) 100%); }
  .hero-grid { display: grid; grid-template-columns: 1fr minmax(0, 620px); }
  .hero-copy { max-width: 620px; }
  .hero-copy { grid-column: 2; }
}
@keyframes heroIn { from { transform: scale(1.14); opacity: .4; } to { transform: scale(1.06); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Факти ---------- */
.facts { border-block: 1px solid var(--line); background: var(--night-2); }
.facts-row { list-style: none; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-block: 4px; }
.facts-row li { display: flex; gap: 12px; align-items: flex-start; padding: 18px 8px; }
.facts-row .ph { font-size: 26px; color: var(--gold); flex: none; margin-top: 2px; }
.facts-row span { display: grid; font-size: 14px; color: var(--muted); line-height: 1.35; }
.facts-row b { color: var(--text); font: 600 17px/1.3 var(--font-display); }
@media (min-width: 900px) { .facts-row { grid-template-columns: repeat(4, 1fr); } .facts-row li { padding: 26px 12px; } .facts-row li + li { border-left: 1px solid var(--line); padding-left: 28px; } }

/* ---------- 2. Про виставу ---------- */
.about-grid { display: grid; gap: 40px; align-items: center; }
.about-copy p:not(.lead):not(.about-accent) { color: #CDD3DE; max-width: 58ch; }
.about-accent { font: 600 clamp(20px, 2vw, 24px)/1.35 var(--font-display); color: var(--gold-hi); margin: 26px 0 30px; padding-left: 18px; border-left: 2px solid var(--gold); max-width: 30ch; }
.about-media { margin: 0; position: relative; }
.about-media img { border-radius: var(--r-card); width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.05fr .95fr; gap: 72px; }
  .about-media { margin-top: -40px; }
}

/* ---------- 3. Відео ---------- */
.video { padding-top: 0; }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--r-card); overflow: hidden; background: #050b17; border: 1px solid var(--line); }
.video-frame iframe, .video-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-poster { transition: transform 1.2s var(--ease), filter .6s; }
.video-play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; border: 0; cursor: pointer;
  background: radial-gradient(circle at 50% 50%, rgba(11, 23, 48, .1), rgba(11, 23, 48, .6)); }
.play-ring { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-size: 32px;
  box-shadow: 0 0 0 10px rgba(226, 180, 92, .18), 0 20px 50px -10px rgba(0, 0, 0, .6); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.video-label { font-weight: 700; letter-spacing: .02em; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.video-play:hover .play-ring { transform: scale(1.07); box-shadow: 0 0 0 16px rgba(226, 180, 92, .16), 0 20px 50px -10px rgba(0, 0, 0, .6); }
.video-play:hover ~ .video-poster, .video-frame:hover .video-poster { transform: scale(1.03); }
.video-frame.is-soon .video-play { cursor: default; }
.video-frame.is-soon .play-ring { background: rgba(11, 23, 48, .6); color: var(--gold); border: 1px solid rgba(226, 180, 92, .5); box-shadow: none; }
.video-frame.is-soon .video-play:hover .play-ring { transform: none; }

/* ---------- 4. Що чекає: маршрут ---------- */
.journey { background:
  radial-gradient(900px 500px at 85% 10%, rgba(226, 180, 92, .07), transparent 70%),
  linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.journey-track { position: relative; margin-top: 40px; }
.route-line { display: none; }
.stops { list-style: none; padding: 0; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.stops::-webkit-scrollbar { display: none; }
.stop { scroll-snap-align: start; position: relative; }
.stop figure { margin: 0; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4/5; }
.stop img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.stop:hover img { transform: scale(1.04); }
.stop-body { padding: 18px 4px 0; }
.stop-pin { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 12px;
  background: var(--night); border: 1px solid var(--gold); color: var(--gold); font: 600 15px/1 var(--font-display); }
.stop h3 { font: 600 22px/1.2 var(--font-display); margin: 0 0 8px; }
.stop p { color: var(--muted); font-size: 16px; margin: 0; max-width: 34ch; }
@media (min-width: 768px) { .stops { grid-auto-columns: 42%; } }
@media (min-width: 1024px) {
  .journey-track { padding-top: 10px; }
  .route-line { display: block; position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; }
  .route-line path { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 2 10; stroke-linecap: round; opacity: .6; vector-effect: non-scaling-stroke; }
  .stops { position: relative; z-index: 1; margin: 0; padding: 0; overflow: visible; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: start; }
  .stop:nth-child(2) { margin-top: 96px; }
  .stop:nth-child(3) { margin-top: 24px; }
  .stop:nth-child(4) { margin-top: 120px; }
  .stop-body { padding-top: 20px; }
}

/* ---------- 5. Розклад і реєстрація ---------- */
.schedule-head { max-width: 640px; margin-bottom: 40px; }
.schedule-grid { display: grid; gap: 28px; align-items: start; }
.days { display: grid; gap: 22px; }
.day { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; }
.day-date { display: grid; justify-items: start; padding-top: 6px; }
.day-num { font: 600 52px/0.9 var(--font-display); letter-spacing: -.04em; color: var(--sand); }
.day-meta { font-size: 13px; color: var(--muted); line-height: 1.3; margin-top: 6px; }
.slots { display: grid; gap: 10px; }
.slot {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 100%;
  min-height: 72px; padding: 14px 18px 14px 20px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .25s, background-color .25s, transform .25s var(--ease);
}
/* надріз квитка */
.slot::before, .slot::after { content: ''; position: absolute; left: 92px; width: 14px; height: 14px; border-radius: 50%; background: var(--night); border: 1px solid var(--line); }
.slot::before { top: -8px; clip-path: inset(50% 0 0 0); }
.slot::after { bottom: -8px; clip-path: inset(0 0 50% 0); }
.slot-time { font: 600 26px/1 var(--font-display); letter-spacing: -.02em; width: 72px; padding-right: 14px; border-right: 1px dashed var(--line-strong); }
.slot-seats { font-size: 14px; color: var(--muted); }
.slot-seats b { color: var(--ok); font-weight: 700; }
.slot-seats.low b { color: var(--gold-hi); }
.slot-go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--gold); transition: background-color .25s, color .25s, border-color .25s; }
.slot:hover:not([disabled]) { border-color: rgba(226, 180, 92, .55); transform: translateY(-1px); }
.slot[aria-pressed="true"] { border-color: var(--gold); background: var(--surface-2); box-shadow: 0 0 0 1px var(--gold) inset; }
.slot[aria-pressed="true"] .slot-go { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.slot[disabled] { cursor: not-allowed; opacity: .55; }
.slot[disabled] .slot-seats b { color: var(--muted); }
.slot.is-loading .slot-seats { color: transparent; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), #22406f, var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.reg-panel { background: linear-gradient(180deg, var(--surface) 0%, var(--night-2) 100%); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(20px, 3vw, 34px); scroll-margin-top: calc(var(--header-h) + 16px); }
.demo-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; padding: 10px 14px; border-radius: var(--r-field); font-size: 14px; color: var(--gold-hi); background: rgba(226, 180, 92, .1); border: 1px solid rgba(226, 180, 92, .35); }
.demo-note .ph { font-size: 18px; margin-top: 1px; }
.reg-session { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 22px; border-radius: var(--r-field); background: rgba(11, 23, 48, .55); border: 1px dashed var(--line-strong); color: var(--muted); font-weight: 600; }
.reg-session .ph { font-size: 24px; color: var(--gold); }
.reg-session.is-set { border-style: solid; border-color: rgba(226, 180, 92, .6); color: var(--text); }
.reg-session.is-missing { border-color: var(--danger); color: var(--danger); }

.field { display: grid; gap: 8px; margin-bottom: 18px; min-width: 0; align-content: start; }
.field label, .field .label { font-size: 14px; font-weight: 700; color: #D6DBE4; }
.field input {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r-field);
  background: #0A1630; border: 1px solid var(--line-strong); color: var(--text); font: 500 17px/1.3 var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #7F8AA0; }
.field input:hover { border-color: rgba(233, 220, 196, .4); }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226, 180, 92, .22); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-help { font-size: 13px; color: var(--muted); margin: 0; }
.field-err { font-size: 14px; color: var(--danger); margin: 0; min-height: 0; }
.field-err:empty { display: none; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-row.counters { grid-template-columns: 1fr 1fr; }
.counter { display: inline-grid; grid-template-columns: 48px 56px 48px; align-items: center; height: 52px; border-radius: 999px; border: 1px solid var(--line-strong); background: #0A1630; width: max-content; }
.counter button { height: 100%; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--gold); border-radius: 999px; }
.counter button:hover:not([disabled]) { background: rgba(226, 180, 92, .12); }
.counter button[disabled] { color: #4F5E7A; cursor: not-allowed; }
.counter output { text-align: center; font: 600 20px/1 var(--font-display); }

.kids { display: grid; gap: 12px; }
.kid { display: grid; grid-template-columns: 1fr 96px; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(11, 23, 48, .45); border: 1px solid var(--line); animation: rise .45s var(--ease) both; }
.kid .field { margin: 0; }
.kid-title { grid-column: 1 / -1; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--gold-hi); }
.kids:not(:empty) { margin-bottom: 18px; }

.form-note { font-size: 13px; color: var(--muted); margin: 6px 0 16px; }
.form-err { color: var(--danger); font-weight: 600; font-size: 15px; }
.form-err:empty { display: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(28, 20, 6, .3); border-top-color: var(--gold-ink); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.reg-done { text-align: center; padding: 18px 4px; animation: rise .6s var(--ease) both; }
.reg-done:focus { outline: none; }
.done-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-size: 34px; box-shadow: 0 0 0 12px rgba(226, 180, 92, .14); }
.reg-done [data-done-text] { font-size: 18px; color: var(--sand); }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 12px; }

@media (min-width: 1024px) {
  .schedule-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; }
  .reg-panel { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ---------- 6. FAQ ---------- */
.faq { background: var(--night-2); }
.faq-grid { display: grid; gap: 28px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 600 clamp(18px, 1.6vw, 21px)/1.35 var(--font-display); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: linear-gradient(var(--gold), var(--gold)) center / 12px 1.5px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 1.5px 12px no-repeat;
  transition: transform .35s var(--ease), background-size .35s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(180deg); background-size: 12px 1.5px, 1.5px 0; }
.faq-list summary:hover { color: var(--gold-hi); }
.faq-list details p { color: #CDD3DE; max-width: 62ch; padding-bottom: 22px; margin: 0; }
.faq-list details[open] p { animation: rise .4s var(--ease) both; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; } .faq-side { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }

/* ---------- 7. Як дістатися ---------- */
.route-grid { display: grid; gap: 28px; margin-top: 12px; }
.route-map, .shelter-map { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: var(--surface); min-height: 320px; }
.route-map iframe, .shelter-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.95); }
.addr-line { font: 600 clamp(24px, 2.6vw, 32px)/1.15 var(--font-display); margin: 0 0 6px; letter-spacing: -.02em; }
.addr .btn { margin-top: 10px; }
.ways { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 4px; }
.ways li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.ways .ph { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--gold); font-size: 22px; }
.ways b { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.ways p { color: var(--muted); font-size: 15px; margin: 2px 0 0; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--gold-hi); border: 1px solid rgba(226, 180, 92, .45); vertical-align: 1px; }
@media (min-width: 900px) { .route-grid { grid-template-columns: 1.2fr 1fr; gap: 48px; } .route-map { min-height: 520px; } }

.metro-video { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; margin-top: 32px; padding: 18px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--night-2); }
.metro-video p { margin: 0; }
.metro-thumb { aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; font-size: 38px; color: var(--gold); background: radial-gradient(circle at 30% 30%, rgba(226, 180, 92, .25), var(--surface)); }

.shelters { margin-top: clamp(56px, 7vw, 88px); padding: clamp(22px, 3.5vw, 40px); border-radius: calc(var(--r-card) + 6px); background: var(--surface); border: 1px solid var(--line); }
.shelters-head { max-width: 640px; margin-bottom: 24px; }
.shelters-head .h3 { display: flex; align-items: center; gap: 10px; font-size: clamp(22px, 2.4vw, 28px); }
.shelters-head .ph { color: var(--gold); }
.shelters-grid { display: grid; gap: 20px; }
.shelter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.shelter-list li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--night-2); border: 1px solid var(--line); }
.shelter-list b { font-family: var(--font-display); font-weight: 600; }
.shelter-list p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.dist { font-size: 14px; font-weight: 700; color: var(--gold-hi); white-space: nowrap; }
.alarm-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.alarm-steps li { display: flex; gap: 12px; align-items: flex-start; color: #D6DBE4; font-size: 15px; }
.alarm-steps .ph { color: var(--gold); font-size: 22px; flex: none; }
@media (min-width: 900px) { .shelters-grid { grid-template-columns: 1fr 1.1fr; } .alarm-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- 8. Минулі заходи ---------- */
.past-sub { margin-top: -10px; margin-bottom: 32px; }
.past-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.past-grid img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
@media (min-width: 900px) {
  .past-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 120px; gap: 14px; }
  .past-grid .p1 { grid-column: 1 / span 2; grid-row: 1 / span 4; }
  .past-grid .p2 { grid-column: 3 / span 2; grid-row: 1 / span 2; }
  .past-grid .p3 { grid-column: 5 / span 2; grid-row: 1 / span 2; }
  .past-grid .p4 { grid-column: 3 / span 1; grid-row: 3 / span 2; }
  .past-grid .p5 { grid-column: 4 / span 1; grid-row: 3 / span 2; }
  .past-grid .p6 { grid-column: 5 / span 2; grid-row: 3 / span 2; }
  .past-grid img { border-radius: 18px; aspect-ratio: auto; }
}

/* ---------- Фінал ---------- */
.final { text-align: center; padding-block: clamp(88px, 12vw, 150px); background:
  radial-gradient(520px 320px at 50% 100%, rgba(226, 180, 92, .18), transparent 70%), var(--night); }
.final-inner { display: grid; justify-items: center; }
.final-dates { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--gold-hi); margin-bottom: 16px; }
.final .h2 { max-width: 22ch; margin-bottom: 32px; }

/* ---------- Футер ---------- */
.site-footer { border-top: 1px solid var(--line); background: #08112A; padding-top: 56px; padding-bottom: 96px; }
.footer-grid { display: grid; gap: 36px; }
.footer-brand .brand { margin-bottom: 14px; }
.f-title { font: 700 13px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.f-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.f-list a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-weight: 600; }
.f-list .ph { color: var(--gold); }
.socials { display: flex; gap: 10px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; border: 1px solid var(--line-strong); text-decoration: none; transition: border-color .25s, color .25s, transform .25s var(--ease); }
.socials a:hover { border-color: var(--gold); color: var(--gold-hi); transform: translateY(-2px); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } .site-footer { padding-bottom: 40px; } }

/* ---------- Мобільна закріплена кнопка ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(11, 23, 48, 0), rgba(11, 23, 48, .92) 40%); transform: translateY(110%); transition: transform .4s var(--ease); }
.sticky-cta.is-on { transform: none; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* ---------- Зерно і поява ---------- */
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Маршрут малюється при скролі (де браузер уміє scroll-driven animations) */
@supports (animation-timeline: view()) {
  @media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    .route-line { -webkit-mask: linear-gradient(#000 0 0) left / var(--draw) 100% no-repeat; mask: linear-gradient(#000 0 0) left / var(--draw) 100% no-repeat;
      animation: draw linear both; animation-timeline: view(); animation-range: entry 10% cover 65%; }
  }
}
@property --draw { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes draw { to { --draw: 100%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-media img { transform: none; }
}

/* ---------- Режим перевірки заглушок: ?stubs=1 ---------- */
.show-stubs [data-stub] { outline: 2px dashed #FF5FA2 !important; outline-offset: 2px; position: relative; }
.show-stubs [data-stub]::after { content: 'ЗАГЛУШКА · ' attr(data-stub); position: absolute; left: 0; top: 0; z-index: 70; max-width: 280px; padding: 3px 8px; font: 700 11px/1.3 var(--font-body); color: #fff; background: #FF2E8A; border-radius: 0 0 6px 0; pointer-events: none; text-transform: none; letter-spacing: 0; }
.show-stubs img[data-stub] { outline-offset: -4px; }

/* ---------- Мобілка: доводка (телефони до 767px) ---------- */
@media (max-width: 767px) {
  /* текст hero на темній підкладці, а не на світлій стіні */
  .hero::after { background: linear-gradient(180deg, rgba(11, 23, 48, .55) 0%, rgba(11, 23, 48, 0) 18%, rgba(11, 23, 48, .35) 40%, rgba(11, 23, 48, .9) 62%, var(--night) 100%); }
  .hero-media img { object-position: 30% 30%; }
  .hero-lead { color: #E6E9EF; }
  /* одна широка кнопка, «Безкоштовно» підписом під нею */
  .hero-actions { display: grid; gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .free-badge { justify-self: center; border: 0; background: none; backdrop-filter: none; padding: 0; font-size: 14px; }
  /* рамка фото не вилазить за край екрана */

  /* квитки: місця в один рядок */
  .slot { grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px 14px 12px 16px; min-height: 64px; }
  .slot-time { font-size: 22px; width: 62px; padding-right: 10px; }
  .slot::before, .slot::after { left: 80px; }
  .slot-seats { font-size: 13px; line-height: 1.3; }
  .slot-seats b { display: block; white-space: nowrap; font-size: 15px; }
  .day { grid-template-columns: 64px 1fr; gap: 12px; }
  .day-num { font-size: 44px; }
  /* менше порожнечі між галереєю і фіналом */
  .past { padding-bottom: 24px; }
  .final { padding-block: 64px 80px; }
  .shelters { padding: 18px; }
  .shelter-list li { padding: 12px 14px; }
}

/* Маршрут на телефоні/планшеті: вертикальна стежка замість каруселі */
@media (max-width: 1023px) {
  .stops { margin: 0; padding: 0; overflow: visible; grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
  .stop { display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; padding-bottom: 36px; position: relative; }
  .stop::before { content: ''; position: absolute; left: 16px; top: 34px; bottom: 0; border-left: 1.5px dashed rgba(226, 180, 92, .55); }
  .stop:last-child { padding-bottom: 0; }
  .stop:last-child::before { display: none; }
  .stop figure { grid-column: 2; grid-row: 1; aspect-ratio: 4/3; }
  .stop-body { display: contents; }
  .stop-pin { grid-column: 1; grid-row: 1; position: relative; z-index: 1; margin: 0; }
  .stop h3 { grid-column: 2; margin-top: 16px; }
  .stop p { grid-column: 2; }
}
@media (min-width: 640px) and (max-width: 1023px) { .stop figure { aspect-ratio: 16/9; } }

/* Укриття: лише заголовок і адреси */
.shelters-title { display: flex; align-items: center; gap: 10px; font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 18px; }
.shelters-title .ph { color: var(--gold); }
.shelter-list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.shelter-list li { display: block; }
.t-line { letter-spacing: -.01em; }
.t-small { font-weight: 400; letter-spacing: .02em; }

/* Логотип */
.hero-logo { display: block; width: clamp(240px, 34vw, 440px); height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); }
.brand-logo { display: block; height: 46px; width: auto; }
.brand-logo-lg { height: 84px; }
@media (max-width: 767px) { .hero-logo { width: min(68vw, 280px); } .brand-logo { height: 40px; } }

/* Укриття: список + мапа від організаторів */
.shelters .shelter-list { grid-template-columns: 1fr; }
.shelter-list li { position: relative; padding-right: 110px; }
.shelter-list .walk { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--gold-hi); white-space: nowrap; }
.shelter-plan { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); transition: border-color .25s; }
.shelter-plan:hover { border-color: rgba(226, 180, 92, .55); }
.shelter-plan img { display: block; width: 100%; height: auto; }

/* Примітка до сеансу (переклад жестовою мовою) */
.slot-info { display: grid; gap: 4px; }
.slot-note { display: block; font-size: 13px; line-height: 1.3; font-weight: 600; color: var(--gold-hi); }
.slot-note .ph { margin-right: 5px; vertical-align: -2px; }

/* Hero: «Безкоштовно» як підпис, не кнопка */
.free-badge { border: 0; background: none; backdrop-filter: none; padding: 0; font-size: 15px; }
/* Hero на широких екранах: колонка по центру правої половини, лого більше */
@media (min-width: 1440px) {
  .hero .hero-grid { max-width: none; padding-inline: 0; grid-template-columns: 1fr 1fr; }
  .hero .hero-copy { grid-column: 2; justify-self: center; width: min(600px, 100% - 48px); max-width: none; }
  .hero-logo { width: clamp(440px, 27vw, 540px); }
}
