/* =====================================================================
   Halloween 2026 · Legacy Events — wspólny system (mobile first)
   Strony nadpisują zmienne i style w swoim page.css.
   Kroje: assets/fonts/fonts.css (link w <head>, przed base.css).
   ===================================================================== */

/* ---------- 1. Zmienne ---------- */
:root {
  /* paleta bazowa */
  --c-night: #0b090c;      /* tło nocy */
  --c-night-2: #151116;    /* karty na ciemnym */
  --c-night-3: #221a22;
  --c-bone: #f3ead9;       /* jasny tekst / papier */
  --c-bone-dim: #c9bda8;
  --c-pumpkin: #ff7a1a;    /* Family akcent */
  --c-pumpkin-2: #ffb347;
  --c-gold: #e9b65a;
  --c-blood: #d0141f;      /* Extreme akcent */
  --c-blood-2: #8c0a12;
  --c-ice: #b9c7d6;        /* zimne światło */
  --c-violet: #6b3fa0;
  /* role (strony podmieniają) */
  --bg: var(--c-night);
  --bg-2: var(--c-night-2);
  --ink: var(--c-bone);
  --ink-dim: var(--c-bone-dim);
  --accent: var(--c-pumpkin);
  --accent-2: var(--c-gold);
  --accent-ink: #1a0d03;   /* tekst na przycisku w kolorze akcentu */
  --line: rgba(243, 234, 217, .14);
  /* kroje */
  --f-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;  /* Family: ciepły, okrągły */
  --f-serif: 'Cormorant Garamond', Georgia, serif;                 /* elegancja, cytaty */
  --f-goth: 'Grenze Gotisch', 'Cormorant Garamond', serif;          /* gotyk, akcenty */
  --f-cond: 'Oswald', 'Archivo', sans-serif;                        /* Extreme: wąski, napięty */
  --f-hand: 'Caveat Brush', 'Caveat', cursive;                      /* odręczne dopiski */
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;               /* etykiety, „dokumenty” */
  /* skala (mobile first, płynnie do desktopu) */
  --fs-0: 1rem;                                   /* 16 px — minimum tekstu */
  --fs-1: 1.125rem;                               /* 18 px lead */
  --fs-2: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem);
  --fs-3: clamp(1.75rem, 1.3rem + 2.4vw, 2.75rem);
  --fs-4: clamp(2.3rem, 1.5rem + 4.2vw, 4.5rem);
  --fs-5: clamp(3rem, 1.6rem + 7.5vw, 7.5rem);
  /* odstępy */
  --gutter: 20px;
  --wrap: 1180px;
  --sec: clamp(72px, 10vw, 140px);
  --r: 18px;
  --r-sm: 10px;
  --shadow: 0 18px 50px -12px rgba(0, 0, 0, .65);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --sticky-h: 0px;  /* ustawiane przez app.js, gdy sticky CTA widoczne */
  color-scheme: dark;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg); color: var(--ink);
  font: 500 var(--fs-0)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, video, svg, canvas { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
:where(ul[role="list"], ol[role="list"]), .list-clean { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- 3. Układ ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section { position: relative; padding-block: var(--sec); }
.section--tight { padding-block: calc(var(--sec) * .6); }
.stack > * + * { margin-top: var(--stack, 1rem); }
.grid { display: grid; gap: var(--grid-gap, 16px); }
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  :root { --gutter: 48px; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 4. Typografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 .8125rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.h-display { font: 900 var(--fs-5)/.92 var(--f-display); letter-spacing: -.02em; text-wrap: balance; }
.h1 { font: 900 var(--fs-4)/.98 var(--f-display); letter-spacing: -.015em; text-wrap: balance; }
.h2 { font: 700 var(--fs-3)/1.05 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.h3 { font: 700 var(--fs-2)/1.15 var(--f-display); text-wrap: balance; }
.lead { font-size: var(--fs-1); line-height: 1.55; color: var(--ink); max-width: 38em; text-wrap: pretty; }
.muted { color: var(--ink-dim); }
.small { font-size: .875rem; line-height: 1.5; }  /* tylko drobne podpisy */
.hand { font-family: var(--f-hand); font-weight: 400; }
.mono { font-family: var(--f-mono); }
.accent { color: var(--accent); }
p { text-wrap: pretty; }
.prose p + p { margin-top: .9em; }
.prose strong { color: var(--ink); font-weight: 700; }

/* ---------- 5. Przyciski ---------- */
.btn {
  --btn-bg: var(--accent); --btn-ink: var(--accent-ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 56px; padding: 14px 26px; border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink);
  font: 700 1.0625rem/1.1 var(--f-body); letter-spacing: .01em; text-decoration: none; text-align: center;
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--btn-bg) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
  -webkit-tap-highlight-color: transparent; overflow: hidden; isolation: isolate;
}
.btn::after { /* połysk przy najechaniu */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--ghost { --btn-bg: transparent; --btn-ink: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), 0 0 0 0 transparent; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--light { --btn-bg: var(--c-bone); --btn-ink: #140f0b; }
.btn--lg { min-height: 64px; padding-inline: 32px; font-size: 1.125rem; }
.btn--block { display: flex; width: 100%; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--accent-2); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- 6. Elementy ---------- */
.chip { display: inline-flex; align-items: center; gap: .45em; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font: 600 .875rem/1.2 var(--f-body); background: rgba(255,255,255,.04); }
.chip--accent { border-color: transparent; background: var(--accent); color: var(--accent-ink); }
.card { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.divider { display: block; width: min(420px, 80%); margin: 0 auto; opacity: .9; }
.photo { position: relative; overflow: hidden; border-radius: var(--r); background: var(--bg-2); }
.photo picture { display: block; height: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.credit { font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .04em; color: var(--ink-dim); opacity: .8; }
.photo .credit { position: absolute; right: 10px; bottom: 8px; color: rgba(255,255,255,.75); text-shadow: 0 1px 3px #000; }
.fine { font-size: .875rem; color: var(--ink-dim); }

/* lista faktów z ikoną/znacznikiem */
.facts { list-style: none; padding: 0; display: grid; gap: 12px; }
.facts li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.facts li::before { content: ""; width: 10px; height: 10px; margin: .55em 0 0 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

/* ---------- 7. Bilety: ceny + miejsce na widget ---------- */
.prices { display: grid; gap: 10px; }
.price { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.price__name { flex: 1; font-weight: 600; }
.price__name small { display: block; font-weight: 500; color: var(--ink-dim); font-size: .875rem; }
.price__val { font: 700 1.375rem/1 var(--f-display); white-space: nowrap; color: var(--accent-2); }
.price__next { font-size: .8125rem; color: var(--ink-dim); white-space: nowrap; }
.ticket-widget {
  position: relative; min-height: 260px; border-radius: var(--r);
  border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--bg-2);
  display: grid; place-items: center; padding: 28px 20px; text-align: center;
}
.ticket-widget__placeholder { display: grid; gap: 10px; justify-items: center; max-width: 30ch; }
.ticket-widget__placeholder strong { font: 700 var(--fs-2)/1.15 var(--f-display); }
.ticket-widget__placeholder .spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 1.1s linear infinite; }
/* gdy widget się wczyta (dowolne dziecko poza placeholderem) — znika ramka */
.ticket-widget:has(> :not(.ticket-widget__placeholder)) { border: 0; background: none; padding: 0; display: block; min-height: 0; }
.ticket-widget:has(> :not(.ticket-widget__placeholder)) .ticket-widget__placeholder { display: none; }

/* ---------- 8. Sticky CTA (telefon) ---------- */
.sticky-cta {
  position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; gap: 8px; padding: 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 78%, transparent); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 16px 40px -10px rgba(0,0,0,.8);
  transition: transform .45s var(--ease-out), opacity .3s;
}
.sticky-cta .btn { flex: 1; min-height: 52px; padding-inline: 16px; }
.sticky-cta__info { display: grid; align-content: center; padding-left: 14px; line-height: 1.15; font-size: .8125rem; color: var(--ink-dim); white-space: nowrap; }
.sticky-cta__info b { color: var(--ink); font-size: 1rem; }
.js .sticky-cta { transform: translateY(calc(100% + 30px)); opacity: 0; pointer-events: none; }
.js .sticky-cta.is-shown { transform: none; opacity: 1; pointer-events: auto; }
@media (min-width: 900px) {
  .sticky-cta { left: auto; right: 24px; bottom: 24px; width: auto; }
  .sticky-cta .btn { flex: 0 0 auto; }
}

/* ---------- 9. Nagłówek / stopka ---------- */
.topbar {
  position: absolute; z-index: 20; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 14px;
}
.topbar__logo img { width: 112px; height: auto; }
.topbar__nav { display: flex; gap: 6px; }
.topbar__nav a { padding: 8px 12px; border-radius: 999px; font: 700 .875rem/1 var(--f-body); text-decoration: none; background: rgba(0,0,0,.35); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.topbar__nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.footer { padding: 56px 0 calc(110px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #070607; color: var(--ink-dim); font-size: .9375rem; }
.footer a { color: var(--ink); }
.footer__orgs { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 12px; color: var(--ink); font-weight: 600; }
.footer__logo { width: 140px; }
@media (min-width: 900px) { .footer { padding-bottom: 56px; } }

/* ---------- 10. Galeria (przewijana na telefonie) ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 18px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none;
  scroll-padding-inline: var(--gutter);
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 720px) { .rail { grid-auto-columns: 40%; } }
@media (min-width: 1100px) { .rail { grid-auto-columns: 28%; } }

/* ---------- 11. Ozdobniki i efekty ---------- */
.orn { position: absolute; pointer-events: none; user-select: none; z-index: 1; }
.grain::after { /* ziarno filmowe na sekcji */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(120% 90% at 50% 40%, transparent 45%, rgba(0,0,0,.75)); }

/* mgła: <div class="fx-fog"><i></i><i></i></div> (tło z ornaments/mgla-*.webp) */
.fx-fog { position: absolute; inset: auto 0 0 0; height: 60%; pointer-events: none; z-index: 3; overflow: hidden; }
.fx-fog i { position: absolute; top: 0; bottom: 0; left: 0; width: 200%; background: url(ornaments/mgla-1.webp) repeat-x 0 100% / 50% 100%; opacity: .55; }
.fx-fog i:nth-child(2) { background-image: url(ornaments/mgla-2.webp); opacity: .4; animation-duration: 70s !important; animation-direction: reverse !important; }
.js .fx-fog i { animation: fog-drift 50s linear infinite; }

/* migotanie (świeca / świetlówka) */
.fx-flicker { animation: flicker 6s infinite steps(1); }
.fx-candle { animation: candle 3.2s infinite ease-in-out; }
/* poświata tekstu */
.fx-glow { text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 42px color-mix(in srgb, var(--accent) 35%, transparent); }
/* unoszenie (dynie, duszki) */
.fx-float { animation: float 6s ease-in-out infinite; }
.fx-sway { transform-origin: 50% 0; animation: sway 5s ease-in-out infinite; }
/* nietoperze przelatujące: <img class="fx-bats" src=…> */
.fx-bats { position: absolute; width: 180px; opacity: .85; pointer-events: none; z-index: 4; animation: bats 18s linear infinite; }
/* stado nietoperzy: <div class="fx-flock" data-count="7" aria-hidden="true"></div> — nietoperze (SVG) generuje app.js.
   Każdy ma własny lot (--t, --d, --y, --s), falowanie (--bob, --amp) i trzepot skrzydeł (--f). */
.fx-flock { position: absolute; inset: 0 0 auto 0; height: 60%; pointer-events: none; z-index: 4; overflow: hidden; container-type: inline-size; }
.fx-flock .bat { position: absolute; left: 0; top: var(--y, 20%); width: calc(96px * var(--s, 1)); animation: bat-fly var(--t, 16s) linear var(--d, 0s) infinite; will-change: transform; }
.fx-flock .bat.rev { animation-name: bat-fly-rev; }
.fx-flock .bat > i { display: block; animation: bat-bob var(--bob, 2.4s) ease-in-out var(--d, 0s) infinite alternate; }
.fx-flock .bat.rev > i { transform: scaleX(-1); }
.fx-flock svg { display: block; width: 100%; height: auto; overflow: visible; fill: var(--bat, #0c090e); opacity: var(--o, .9); filter: drop-shadow(0 0 1.5px var(--bat-rim, rgba(255, 214, 190, .45))) drop-shadow(0 0 10px rgba(0, 0, 0, .35)); }
.fx-flock .w { transform-box: view-box; transform-origin: 50px 21px; animation: bat-flap var(--f, .28s) ease-in-out infinite alternate; }
@keyframes bat-fly { from { transform: translate3d(-12cqw, 0, 0); } to { transform: translate3d(112cqw, 0, 0); } }
@keyframes bat-fly-rev { from { transform: translate3d(112cqw, 0, 0); } to { transform: translate3d(-12cqw, 0, 0); } }
@keyframes bat-bob { from { translate: 0 calc(var(--amp, 30px) * -1); rotate: -6deg; } to { translate: 0 var(--amp, 30px); rotate: 5deg; } }
@keyframes bat-flap { from { transform: scaleY(1); } to { transform: scaleY(-.45); } }
/* zepsuty neon: data-neon (napisy) i przyciski Extreme — co parę sekund flicker + iskry (app.js) */
/* przygaśnięcia robi app.js (Web Animations: krótkie, losowe serie), tu tylko iskry */
.neon-spark { position: fixed; left: 0; top: 0; width: var(--sz, 3px); height: var(--sz, 3px); border-radius: 50%; background: #fff3d9; box-shadow: 0 0 6px 2px rgba(255, 110, 60, .85), 0 0 2px 1px #fff; pointer-events: none; z-index: 80; animation: neon-spark var(--st, .9s) cubic-bezier(.35, 0, .75, .4) forwards; }
@keyframes neon-spark { 0% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; } 22% { transform: translate3d(calc(var(--sx) * .45), -7px, 0) scale(1); opacity: 1; } 100% { transform: translate3d(var(--sx), var(--sy), 0) scale(.4); opacity: 0; } }
/* iskry/żar: <div class="fx-embers"></div> — kropki generuje app.js */
.fx-embers { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.fx-embers span { position: absolute; bottom: -10px; width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%; background: var(--ember, #ffb347); box-shadow: 0 0 8px 2px var(--ember, #ff7a1a); opacity: 0; animation: ember var(--t, 9s) linear var(--d, 0s) infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fog-drift { to { transform: translate3d(-50%, 0, 0); } }
@keyframes flicker { 0%,19%,22%,62%,64%,100% { opacity: 1; } 20%,21%,63% { opacity: .35; } }
@keyframes candle { 0%,100% { opacity: 1; filter: brightness(1); } 40% { opacity: .9; filter: brightness(1.15); } 70% { opacity: .95; filter: brightness(.92); } }
@keyframes float { 0%,100% { transform: translate3d(0,0,0) rotate(-2deg); } 50% { transform: translate3d(0,-12px,0) rotate(2deg); } }
@keyframes sway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes bats { 0% { transform: translate3d(-30vw, 10vh, 0) scale(.6); opacity: 0; } 10% { opacity: .85; } 60% { opacity: .85; } 70%,100% { transform: translate3d(120vw, -20vh, 0) scale(1); opacity: 0; } }
@keyframes ember { 0% { transform: translate3d(0,0,0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate3d(var(--x, 20px), -900px, 0); opacity: 0; } }

/* ---------- 12. Animacje przy przewijaniu (tylko z JS) ----------
   data-reveal="up|fade|left|right|zoom|blur|clip"; opóźnienie: style="--d:.2s"
   data-stagger na rodzicu: dzieci z [data-reveal] dostają kolejne opóźnienia */
.js [data-reveal] { opacity: 0; transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out), clip-path 1.2s var(--ease-out); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.js [data-reveal="up"], .js [data-reveal=""] { transform: translate3d(0, 36px, 0); }
.js [data-reveal="left"] { transform: translate3d(-40px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(40px, 0, 0); }
.js [data-reveal="zoom"] { transform: scale(.92); }
.js [data-reveal="blur"] { filter: blur(12px); transform: scale(1.04); }
.js [data-reveal="clip"] { opacity: 1; clip-path: inset(0 0 99% 0); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; clip-path: none; }
.js [data-reveal="clip"].is-in { clip-path: none; }
/* rozbicie tekstu na litery: data-split (app.js) */
.js [data-split] .ch { display: inline-block; opacity: 0; transform: translate3d(0, .4em, 0) rotate(6deg); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i) * 35ms + var(--d, 0s)); }
.js [data-split].is-in .ch { opacity: 1; transform: none; }
[data-parallax] { will-change: transform; }

/* ---------- 13. Mniej ruchu ---------- */
@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 [data-reveal], .js [data-split] .ch { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .fx-bats, .fx-embers, .fx-flock, .neon-spark { display: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- 14. Lightbox (app.js) i pauza animacji ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--c-bone); }
.lightbox::backdrop { background: rgba(5, 4, 6, .92); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .35s var(--ease-out); }
.lightbox img { max-width: 94vw; max-height: 84vh; width: auto; border-radius: 8px; box-shadow: var(--shadow); }
.lightbox .credit { margin-top: 10px; }
.lightbox__x { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0,0,0,.5); color: #fff; font-size: 28px; line-height: 1; }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } }
.is-paused, .is-paused * { animation-play-state: paused !important; }

/* ---------- 15. Motywy (domyślne zestawy; strony mogą dalej nadpisywać) ---------- */
.theme-family {
  --bg: #140a06; --bg-2: #22120a; --ink: #fbefdc; --ink-dim: #d8c2a4;
  --accent: #ff7a1a; --accent-2: #ffc15e; --accent-ink: #1d0b02;
  --line: rgba(255, 210, 160, .18);
}
.theme-extreme {
  --bg: #070506; --bg-2: #120d0e; --ink: #ece6e1; --ink-dim: #a9a09b;
  --accent: #d0141f; --accent-2: #e8e2dc; --accent-ink: #fff;
  --line: rgba(236, 230, 225, .13);
  --f-display: 'Oswald', 'Archivo', sans-serif;
}
.theme-extreme .h-display, .theme-extreme .h1 { font-weight: 600; text-transform: uppercase; letter-spacing: -.005em; }
.theme-extreme .h2, .theme-extreme .h3 { font-weight: 600; }

/* ---------- 16. FAQ: akordeon (details/summary) ----------
   <div class="faq">
     <details class="faq__item" id="faq-parking"><summary class="faq__q">Pytanie?</summary>
       <div class="faq__a"><p>Odpowiedź…</p></div></details>
   </div>
   .faq__more: link pod listą (np. do wspólnego FAQ /#faq); .faq--cols: dwie kolumny od 1024 px */
.faq { display: grid; gap: 10px; counter-reset: faq; }
.faq__item {
  position: relative; border-radius: 16px; background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  border: 1px solid var(--line); transition: border-color .3s, background-color .3s, box-shadow .3s;
  interpolate-size: allow-keywords;
}
.faq__item:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.faq__item[open] { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: var(--bg-2); box-shadow: 0 14px 36px -18px color-mix(in srgb, var(--accent) 55%, transparent); }
.faq__q {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 36px; gap: 14px; align-items: center;
  min-height: 60px; padding: 14px 14px 14px 18px; border-radius: 16px;
  font: 700 1.0625rem/1.3 var(--f-body); color: var(--ink); text-wrap: pretty;
  -webkit-tap-highlight-color: transparent;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q::after { /* plus → minus */
  content: ""; width: 36px; height: 36px; border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat,
    color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-2); transition: transform .35s var(--ease), background-color .3s;
}
.faq__item[open] > .faq__q::after {
  transform: rotate(180deg);
  background: linear-gradient(var(--accent-ink), var(--accent-ink)) center / 14px 2px no-repeat, var(--accent);
}
.faq__q:focus-visible { outline-offset: -3px; }
.faq__a { padding: 0 18px 18px; color: var(--ink-dim); font-size: var(--fs-0); line-height: 1.6; }
.faq__a > * + * { margin-top: .7em; }
.faq__a strong, .faq__a b { color: var(--ink); }
.faq__a a { color: var(--accent-2); font-weight: 600; }
.faq__a ul { padding-left: 1.2em; }
.faq__a li + li { margin-top: .3em; }
.js .faq__item[open] .faq__a { animation: faq-in .45s var(--ease-out); }
/* płynne rozwijanie tam, gdzie przeglądarka to umie (::details-content) */
.faq__item::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }
.faq__more { margin-top: 18px; }
@media (min-width: 1024px) {
  .faq--cols { grid-template-columns: 1fr 1fr; align-items: start; gap: 12px 18px; }
}
@keyframes faq-in { from { opacity: 0; transform: translate3d(0, -6px, 0); } }

/* ---------- 17. Karty atrakcji (grafiki: assets/atrakcje/*.webp, 4:3, 400 i 800 px) ----------
   <ul class="attrs" role="list">
     <li class="attr"><figure class="attr__img"><img src="../assets/atrakcje/balony-oczy-400.webp"
         srcset="../assets/atrakcje/balony-oczy-400.webp 400w, ../assets/atrakcje/balony-oczy-800.webp 800w"
         sizes="(min-width:1024px) 30vw, (min-width:560px) 46vw, 92vw" width="800" height="600" alt="…" loading="lazy" decoding="async"></figure>
       <div class="attr__body"><span class="attr__tag">Family</span><h3 class="attr__t">Tona balonów-oczu</h3><p class="attr__d">…</p></div></li>
   </ul>
   Warianty: .attrs--compact (telefon: miniatura po lewej, tekst po prawej), .attrs--rail (telefon: przewijanie palcem),
   .attr--wide (2 kolumny od 560 px), .attr__tag--x (tag w kolorze Extreme), .attr__img--tall (4:5). */
.attrs { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.attr {
  position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: 0 16px 40px -22px rgba(0,0,0,.9);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.attr__img { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #0d0a0c; }
.attr__img--tall { aspect-ratio: 4 / 5; }
.attr__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.attr__img::after { /* przejście zdjęcia w kartę */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--bg-2) 85%, transparent) 100%);
}
.attr__body { position: relative; display: grid; gap: 6px; padding: 14px 18px 20px; align-content: start; }
.attr__tag {
  justify-self: start; display: inline-flex; align-items: center; gap: .4em; padding: 4px 10px; border-radius: 999px;
  font: 600 .75rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-2);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.attr__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.attr__tag--f { background: rgba(255,122,26,.16); color: #ffc15e; border-color: rgba(255,122,26,.45); }
.attr__tag--x { background: rgba(208,20,31,.18); color: #f1ebe6; border-color: rgba(208,20,31,.6); }
.attr__img .attr__tag { position: absolute; z-index: 2; left: 12px; top: 12px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(0,0,0,.5); }
.attr__t { font: 700 var(--fs-2)/1.12 var(--f-display); color: var(--ink); text-wrap: balance; }
.attr__d { color: var(--ink-dim); font-size: var(--fs-0); line-height: 1.5; }
.attr__credit { position: absolute; right: 10px; bottom: 8px; z-index: 2; font: 500 .6875rem/1.2 var(--f-mono); color: rgba(255,255,255,.7); text-shadow: 0 1px 3px #000; }
@media (hover: hover) {
  .attr:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 24px 50px -22px color-mix(in srgb, var(--accent) 45%, #000); }
  .attr:hover .attr__img img { transform: scale(1.06); }
}
@media (min-width: 560px) {
  .attrs { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .attr--wide { grid-column: span 2; }
  .attr--wide .attr__img { aspect-ratio: 16 / 9; }
}
@media (min-width: 1024px) { .attrs { grid-template-columns: repeat(3, 1fr); gap: 22px; } .attrs--4 { grid-template-columns: repeat(4, 1fr); } }

/* telefon: zwarta lista (miniatura + tekst) */
@media (max-width: 559px) {
  .attrs--compact .attr { display: grid; grid-template-columns: 112px 1fr; align-items: stretch; }
  .attrs--compact .attr__img { aspect-ratio: auto; min-height: 112px; height: 100%; }
  .attrs--compact .attr__img::after { background: linear-gradient(90deg, transparent 60%, color-mix(in srgb, var(--bg-2) 70%, transparent)); }
  .attrs--compact .attr__body { padding: 12px 14px 14px; gap: 4px; align-content: center; }
  .attrs--compact .attr__t { font-size: 1.1875rem; }
  .attrs--compact .attr__d { font-size: 1rem; line-height: 1.45; }
  .attrs--compact .attr__img .attr__tag { display: none; }
  /* przewijanie palcem */
  .attrs--rail {
    grid-auto-flow: column; grid-auto-columns: 80%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain; padding: 4px var(--gutter) 18px; margin-inline: calc(-1 * var(--gutter));
    scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .attrs--rail::-webkit-scrollbar { display: none; }
  .attrs--rail > * { scroll-snap-align: start; }
}
.theme-extreme .attr { border-radius: 6px; }
.theme-extreme .attr__t { text-transform: uppercase; font-weight: 600; letter-spacing: .005em; }
.theme-extreme .attr__img img { filter: saturate(.9) contrast(1.05); }
