/* Biała baza, granat niesie tekst, pomarańcz i żółty to akcenty marki; pełnoszerokie pasy sekcji, treść w kontenerze 1200px */
:root {
  color-scheme: light;
  --white: #FFFFFF;
  --orange: #F59210;
  --yellow: #F7C20A;
  --navy: #1F3A65;
  --navy-deep: #172C4D;
  --navy-soft: #4A5F82;
  --mist: #FFF6EC;
  --line: #ECDFCC;
  --peach: #FDE6C8;

  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-vars: normal;

  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-md: 1.15rem;
  --fs-lg: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  --fs-xl: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --fs-2xl: clamp(2.8rem, 1.5rem + 5.6vw, 6rem);

  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 9vw, 120px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font: 400 1rem/1.65 var(--font-body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: var(--display-vars);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section:not(.band) + .section:not(.band) { padding-top: 0; }
.stack { display: grid; gap: 20px; align-content: start; }
.eyebrow {
  font: 800 var(--fs-xs)/1.3 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-soft);
}
.eyebrow b { color: var(--orange); font-weight: 800; }
.lede { font-size: var(--fs-md); max-width: 52ch; }
.muted { color: var(--navy-soft); }
.sr-only { position: absolute; 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; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
.example { font-size: var(--fs-xs); color: var(--navy-soft); font-weight: 600; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 2px solid var(--navy); background: transparent; color: var(--navy);
  font: 800 0.95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--orange); border-color: var(--orange); }
.btn--navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn--light { border-color: var(--white); color: var(--white); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.85rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* Ikony sociali */
.socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--yellow); color: var(--navy); transition: transform .2s var(--ease);
}
.socials a:hover { transform: translateY(-3px) rotate(-6deg); }
.socials svg { width: 20px; height: 20px; }
.socials--lg a { width: 60px; height: 60px; }
.socials--lg svg { width: 26px; height: 26px; }
.footer-grid .socials { display: flex; }

/* Nagłówek */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgb(255 255 255 / .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  view-transition-name: site-header;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 22px; height: 36px; }
.brand .wordmark { width: 111px; height: 24px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 12px; text-decoration: none; font-weight: 700; font-size: 0.95rem;
  background: linear-gradient(var(--orange), var(--orange)) no-repeat 12px calc(100% - 4px) / 0 3px;
  transition: background-size .25s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { background-size: calc(100% - 24px) 3px; }
.header-cta { margin-left: 8px; }
.header-end { display: flex; align-items: center; gap: 8px; }
.nav { margin-left: auto; }
.nav-signup { display: none; }
.menu-toggle { display: none; }

@media (max-width: 63.99em) {
  .menu-toggle {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    border: 2px solid var(--navy); background: none; color: var(--navy); cursor: pointer;
  }
  .menu-toggle svg { width: 20px; height: 20px; }
  .menu-toggle .i-close { display: none; }
  .site-header[data-open] .menu-toggle .i-close { display: block; }
  .site-header[data-open] .menu-toggle .i-menu { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .site-header[data-open] .nav { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { font-size: 1.25rem; padding: 14px 0; background-position: 0 calc(100% - 8px); }
  .nav a:hover, .nav a[aria-current="page"] { background-size: 48px 3px; }
  .header-cta { display: none; }
  .nav-signup { display: block; }
}

/* Odręczny obrys słowa */
.scribble { position: relative; display: inline-block; white-space: nowrap; }
.scribble > svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.scribble.is-drawn path { animation: draw .9s .15s cubic-bezier(.6, .1, .3, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Fale w tle */

/* Hero strony głównej */
.hero { position: relative; overflow: hidden; display: grid; align-items: center; min-height: calc(100vh - 73px); min-height: calc(100svh - 73px); }
.hero { --voice: clamp(56px, 11vh, 150px); }
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; padding-block: clamp(24px, 4vh, 80px) calc(var(--voice) + 24px); }
.voice {
  position: absolute; left: 0; right: 0; bottom: 16px; height: var(--voice);
  display: flex; align-items: center; justify-content: space-between; gap: 3px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  pointer-events: none;
}
.voice span {
  flex: 0 1 5px; height: 100%; border-radius: 99px; background: var(--orange); opacity: .9;
  transform: scaleY(var(--h)); animation: talk var(--t) ease-in-out var(--d) infinite alternate;
}
.voice span:nth-child(3n + 2) { background: var(--yellow); }
.voice span:nth-child(3n) { background: var(--navy); }
.voice.is-paused span { animation-play-state: paused; }
@keyframes talk { from { transform: scaleY(calc(var(--h) * .2)); } }
@media (max-width: 47.99em) { .voice span:nth-child(even) { display: none; } }
.hero h1 { font-size: var(--fs-2xl); max-width: 11ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 8px; }
.hero-meta .label { font-size: var(--fs-sm); font-weight: 700; color: var(--navy-soft); }
@media (min-width: 64em) {
  .hero .wrap { grid-template-columns: 1.25fr .75fr; }
}
@media (max-width: 63.99em) {
  .hero { --voice: clamp(40px, 6svh, 64px); }
  .hero .wrap { gap: 24px; padding-block: 20px calc(var(--voice) + 20px); }
  .hero .emblem { width: min(240px, 20svh); }
}
@media (max-width: 63.99em) and (max-height: 760px) {
  .hero .emblem { display: none; }
  .hero .lede { font-size: 1rem; }
  .hero .stack { gap: 16px; }
}

.emblem { position: relative; width: min(clamp(240px, 32vw, 420px), 52svh); aspect-ratio: 1; justify-self: center; }
.emblem .ring { position: absolute; inset: 0; border: 10px solid var(--yellow); border-radius: 50%; }
.emblem .orbit { position: absolute; inset: 7%; width: 86%; height: 86%; }
.emblem .orbit text { font: 800 9px/1 var(--font-body); letter-spacing: .32em; fill: var(--navy); text-transform: uppercase; }
.emblem .mic { position: absolute; left: 50%; top: 50%; width: 30%; transform: translate(-50%, -52%); overflow: visible; }

/* Pas z odliczaniem */
.band { position: relative; overflow: hidden; }
.band--navy { background: var(--navy); color: var(--white); }
.band--navy .eyebrow { color: var(--yellow); }
.band--orange { background: var(--orange); color: var(--navy); }
.band--mist { background: var(--mist); }
.final .wrap { display: grid; gap: 40px; align-items: center; padding-block: clamp(56px, 7vw, 88px); }
.final h2 { font-size: var(--fs-xl); }
.final-info { display: grid; gap: 18px; }
.final-info dl { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.final-info dt { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.final-info dd { margin: 0; font-weight: 700; }
@media (min-width: 64em) { .final .wrap { grid-template-columns: 1fr 1fr; } }

.countdown { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.5vw, 14px); }
.countdown li { border: 2px solid var(--yellow); border-radius: 16px; padding: clamp(14px, 2vw, 22px) 4px 12px; text-align: center; }
.countdown strong {
  display: block; font: 400 clamp(1.9rem, 1.2rem + 3vw, 3.6rem)/1 var(--font-display);
  font-variation-settings: var(--display-vars); font-variant-numeric: tabular-nums lining-nums;
}
.countdown small { display: block; margin-top: 8px; font: 800 0.68rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.countdown--light li { border-color: var(--yellow); background: var(--white); }
.countdown--light small { color: var(--navy-soft); }

/* Nagłówki sekcji */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: var(--fs-xl); }

/* Najbliższe wydarzenie */
.next-event {
  display: grid; gap: 20px; align-items: center;
  border: 2px solid var(--navy); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px);
  text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s;
}
.next-event:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--yellow); }
.date-block { display: grid; justify-items: start; line-height: 1; }
.date-block strong { font: 400 clamp(3rem, 2rem + 4vw, 5rem)/0.9 var(--font-display); font-variation-settings: var(--display-vars); color: var(--navy); }
.date-block span { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: var(--fs-sm); }
.next-event h3 { font-size: var(--fs-lg); margin-top: 8px; }
.next-event .place { color: var(--navy-soft); font-weight: 600; margin-top: 6px; }
@media (min-width: 48em) { .next-event { grid-template-columns: auto 1fr auto; gap: 36px; } }

/* Znacznik typu wydarzenia */
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 12px; border-radius: 999px; font: 800 0.7rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.tag { background: var(--cat, var(--navy)); color: var(--cat-ink, var(--white)); }

/* Formaty projektu */
.split { display: grid; gap: 40px; }
@media (min-width: 64em) { .split { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.formats { display: grid; align-content: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.format { background: var(--mist); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; transition: transform .25s var(--ease), background-color .25s; }
.format:hover { transform: translateY(-4px); background: var(--peach); }
.format .icon { width: 48px; height: 48px; border-radius: 50%; background: var(--white); display: grid; place-items: center; color: var(--orange); }
.format .icon svg { width: 24px; height: 24px; }
.format h3 { font-size: 1.35rem; }
.format p { font-size: 0.95rem; }
.format--final { grid-column: 1 / -1; grid-template-columns: auto 1fr; gap: 20px; align-items: start; background: var(--navy); color: var(--white); }
.format--final:hover { background: var(--navy); }
.format--final .icon { background: var(--yellow); color: var(--navy); }
.format--final .eyebrow { color: var(--yellow); }
.format--final h3 { font-size: var(--fs-lg); }
.format--final .link-arrow { color: var(--white); }
@media (min-width: 64em) { .split--sticky > .stack:first-child { position: sticky; top: 112px; align-self: start; } }
.path { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.path li { position: relative; display: flex; align-items: center; gap: 14px; padding-block: 10px; font-weight: 800; }
.path li::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid var(--navy); background: var(--white); position: relative; z-index: 1; }
.path li + li::after { content: ""; position: absolute; left: 6px; bottom: calc(50% + 7px); height: calc(100% - 14px); width: 2px; background: var(--line); }
.path li:last-child::before { width: 18px; height: 18px; margin-left: -2px; background: var(--orange); border-color: var(--orange); }

/* Pasek zwycięzców */
.marquee { position: relative; overflow: hidden; padding-block: 8px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee[data-paused] .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc((-100% - 16px) / 3)); } }
.winner { display: grid; gap: 6px; align-content: start; width: 280px; padding: 22px 24px; border-radius: var(--radius); background: var(--white); border: 2px solid var(--line); }
.winner .year { font: 800 var(--fs-xs)/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--navy-soft); }
.winner .name { font: 400 1.4rem/1.2 var(--font-display); font-variation-settings: var(--display-vars); }
.winner .meta { font-size: var(--fs-sm); color: var(--navy-soft); }
.pause {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 2px solid var(--navy); background: none; color: var(--navy); font: 800 0.8rem/1 var(--font-body); cursor: pointer;
}
.pause svg { width: 14px; height: 14px; }
.pause .i-play { display: none; }
.pause[aria-pressed="true"] .i-play { display: block; }
.pause[aria-pressed="true"] .i-pause { display: none; }

/* Pas CTA */
.cta .wrap { display: grid; gap: 24px; align-items: center; padding-block: clamp(56px, 7vw, 88px); }
.cta h2 { font-size: var(--fs-xl); max-width: 16ch; }
@media (min-width: 64em) { .cta .wrap { grid-template-columns: 1fr auto; } }

/* Zastępcze zdjęcia */
.ph {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgb(255 255 255 / .35) 0 18%, transparent 19%),
    linear-gradient(135deg, var(--c1, var(--orange)), var(--c2, var(--yellow)));
  color: rgb(31 58 101 / .55);
}
.ph svg { width: 28%; max-width: 64px; height: auto; }
.ph--navy { --c1: var(--navy); --c2: #3B5A8C; color: rgb(255 255 255 / .55); }
.ph--warm { --c1: var(--orange); --c2: #F7B046; }
.ph--sun { --c1: var(--yellow); --c2: #FBE07A; }
.ph--mix { --c1: var(--navy); --c2: var(--orange); color: rgb(255 255 255 / .6); }
.ph--mist { --c1: var(--mist); --c2: var(--line); }

/* Stopka */
.site-footer { background: var(--navy-deep); color: var(--white); padding-block: clamp(56px, 7vw, 88px) 32px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer-grid h2 { font: 800 var(--fs-xs)/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand p { color: rgb(255 255 255 / .75); margin-top: 12px; max-width: 30ch; }
.site-footer address { font-style: normal; color: rgb(255 255 255 / .8); line-height: 1.7; }
.footer-bottom { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); color: rgb(255 255 255 / .65); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.credit { letter-spacing: .04em; }
.link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Baner zgody na cookies: oba przyciski tej samej wielkości i wagi */
.consent { position: fixed; z-index: 150; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 12px; max-width: 520px; padding: 22px 24px; border: 1px solid rgb(255 255 255 / .16); border-radius: var(--radius); background: var(--navy); color: var(--white); box-shadow: 0 20px 50px rgb(15 28 50 / .35); animation: rise .5s var(--ease) both; }
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.35rem; }
.consent p { font-size: var(--fs-sm); line-height: 1.55; color: rgb(255 255 255 / .88); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.consent a { justify-self: start; font-size: var(--fs-sm); font-weight: 700; color: var(--yellow); }
.btn--white { background: var(--white); border-color: var(--white); color: var(--navy); }
@media (min-width: 48em) { .consent { left: 24px; right: auto; bottom: 24px; } }
.form-gate { display: grid; gap: 16px; }

/* Nagłówek podstrony */
.page-head { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-deep); color: var(--white); }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(23 44 77 / .96), rgb(23 44 77 / .9) 45%, rgb(23 44 77 / .3));
}
.page-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 45% 55% at var(--glow-x, 75%) 120%, rgb(245 146 16 / var(--glow, .55)), transparent 70%),
    radial-gradient(circle at 85% 15%, #2E4F86, var(--navy-deep) 65%);
}
.page-bg::before {
  content: ""; position: absolute; inset: -30% -10%; transform-origin: var(--beam-x, 72%) 0;
  background: conic-gradient(from 0deg at var(--beam-x, 72%) 0,
    transparent 150deg, color-mix(in srgb, var(--beam, var(--yellow)) 32%, transparent) 162deg, transparent 172deg,
    transparent 186deg, rgb(255 255 255 / .14) 194deg, transparent 204deg);
  animation: sway 11s ease-in-out infinite alternate;
}
.page-bg::after {
  content: ""; position: absolute; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%;
  box-shadow:
    62vw 60px 8px 3px rgb(247 194 10 / .45), 70vw 150px 14px 6px rgb(245 146 16 / .35),
    82vw 90px 10px 4px rgb(255 255 255 / .25), 90vw 220px 16px 8px rgb(247 194 10 / .3),
    76vw 260px 6px 2px rgb(255 255 255 / .35), 95vw 40px 12px 5px rgb(245 146 16 / .4),
    58vw 210px 18px 6px rgb(247 194 10 / .2);
}
@keyframes sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@media (max-width: 47.99em) {
  .page-head::before { background: linear-gradient(rgb(23 44 77 / .9), rgb(23 44 77 / .82)); }
}
.page-head .eyebrow { color: var(--yellow); }
.page-head .lede, .page-head .muted { color: rgb(255 255 255 / .9); }
.page-head .crumbs a, .page-head .crumbs span { color: var(--white); }
.page-head .wrap { position: relative; display: grid; gap: 18px; padding-block: clamp(48px, 7vw, 96px); }
.page-head h1 { font-size: var(--fs-2xl); max-width: 14ch; }

/* Liczby */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.stats strong { display: block; font: 400 clamp(3rem, 2rem + 4vw, 5.5rem)/1 var(--font-display); font-variation-settings: var(--display-vars); color: var(--yellow); }
.stats span { font-weight: 700; }
.odo { --row: 1.2em; display: inline-flex; margin-block: -.1em; font-variant-numeric: tabular-nums lining-nums; }
.odo-col { display: block; height: var(--row); overflow: hidden; }
.odo-strip { display: flex; flex-direction: column; transition: transform 1.8s cubic-bezier(.2, .7, .2, 1) var(--delay); }
.odo-strip span { display: block; height: var(--row); line-height: var(--row); }
.is-counted .odo-strip { transform: translateY(calc(var(--n) * var(--row) * -1)); }

.section-head--center { justify-content: center; text-align: center; }
.guests { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; list-style: none; margin: 0; padding: 0; }
.guests li { flex: 0 1 380px; }
.guests li { display: flex; align-items: center; gap: 20px; padding: 20px; border-radius: var(--radius); background: var(--mist); font: 400 var(--fs-lg)/1.2 var(--font-display); font-variation-settings: var(--display-vars); }
.guests .avatar { width: 88px; height: 88px; border-radius: 50%; flex: none; object-fit: cover; object-position: center 20%; }
.guests small { display: block; margin-top: 6px; font: 600 var(--fs-sm)/1.4 var(--font-body); color: var(--navy-soft); }

.motto { font: 400 clamp(2.6rem, 1rem + 7vw, 7.5rem)/1 var(--font-display); font-variation-settings: var(--display-vars); letter-spacing: -0.03em; text-align: center; }

/* Kalendarz */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--navy);
  background: none; color: var(--navy); font: 800 0.85rem/1 var(--font-body); cursor: pointer;
}
.filters button { display: inline-flex; align-items: center; gap: 8px; }
.filters button[style]::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--cat); box-shadow: 0 0 0 1px rgb(31 58 101 / .25); }
.filters button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.filters button[aria-pressed="true"]::before { box-shadow: 0 0 0 2px var(--white); }
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.event { border: 2px solid var(--navy); border-radius: var(--radius); background: linear-gradient(var(--cat), var(--cat)) top / 100% 8px no-repeat, var(--white); overflow: hidden; transition: box-shadow .25s; }
.event:hover { box-shadow: 6px 6px 0 var(--cat); }
.event[data-open] { grid-column: 1 / -1; box-shadow: 6px 6px 0 var(--cat); }
.event[hidden] { display: none; }
.event-toggle {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 22px 22px 20px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.event-toggle .when { display: block; margin-top: 14px; font-weight: 800; font-size: var(--fs-sm); letter-spacing: .06em; }
.event-toggle .title { display: block; margin-top: 4px; font: 400 1.5rem/1.15 var(--font-display); font-variation-settings: var(--display-vars); }
.chev { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; transition: transform .3s var(--ease); }
.chev svg { width: 16px; height: 16px; }
.event[data-open] .chev { transform: rotate(180deg); background: var(--orange); }
.event-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.event[data-open] .event-panel { grid-template-rows: 1fr; }
.event-panel > div { overflow: hidden; visibility: hidden; transition: visibility .4s; }
.event[data-open] .event-panel > div { visibility: visible; }
.event-body { display: grid; gap: 24px; padding: 0 22px 24px; }
.event-body .ph { aspect-ratio: 16 / 10; border-radius: 12px; }
.event-body .place { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-weight: 600; }
.event-body .place svg { width: 20px; height: 20px; color: var(--orange); margin-top: 3px; }
@media (min-width: 48em) { .event-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; } }
.event--past { border-color: var(--line); }
.event--past .event-toggle { color: var(--navy-soft); }
.group-title { font-size: var(--fs-lg); margin: 56px 0 20px; }
.empty { padding: 24px; border-radius: var(--radius); background: var(--mist); font-weight: 600; }

/* Galeria */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.album { display: grid; gap: 14px; text-decoration: none; }
.album .ph { aspect-ratio: 4 / 3; border-radius: var(--radius); transition: transform .4s var(--ease); }
.album:hover .ph { transform: scale(1.02) rotate(-.6deg); }
.album h3 { font-size: 1.5rem; }
.edition { scroll-margin-top: 112px; }
.edition + .edition { margin-top: clamp(56px, 8vw, 96px); }
.edition-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: clamp(20px, 3vw, 28px); padding-bottom: 14px; border-bottom: 2px solid var(--line); }
.edition-head h2 { font-size: var(--fs-xl); }
.edition-head p { color: var(--navy-soft); font-weight: 700; }
.experts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 24px 20px; list-style: none; margin: 0; padding: 0; }
.expert { display: grid; gap: 10px; align-content: start; }
.expert .ph { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.expert h2 { font-size: 1.35rem; margin-top: 6px; }
.expert p { font-size: 0.95rem; color: var(--navy-soft); }
.js .expert .bio:not(.is-open) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.expert .more { justify-self: start; padding: 0 0 2px; border: 0; border-bottom: 2px solid var(--orange); background: none; color: var(--navy); font: 800 var(--fs-sm)/1.4 var(--font-body); cursor: pointer; }
.expert .more:hover { border-bottom-color: var(--navy); }
.form-slot .socials { margin-top: -4px; }
.album .meta { font-size: var(--fs-sm); color: var(--navy-soft); font-weight: 600; }
.crumbs { display: flex; gap: 8px; font-size: var(--fs-sm); font-weight: 700; }
.crumbs a { color: var(--navy-soft); }
.photos { columns: 3 260px; column-gap: 14px; }
.photos button { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; break-inside: avoid; background: none; }
.photos .ph { width: 100%; transition: transform .4s var(--ease); }
.photos button:hover .ph { transform: scale(1.03); }
/* Pojedyncze zdjęcia na stronie O projekcie */
.about-photo { position: relative; margin: 0; isolation: isolate; }
.about-photo img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); }
.about-photo--side { margin: 20px 14px 14px 0; transform: rotate(-2deg); }
.about-photo--side::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1; border-radius: var(--radius); background: var(--yellow); }
.about-photo--side img { aspect-ratio: 4 / 3; }
.about-photo--wide img { aspect-ratio: 3 / 2; }
@media (min-width: 48em) { .about-photo--wide img { aspect-ratio: 21 / 9; } }
.about-photo--wide figcaption { position: absolute; left: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); padding: 8px 16px; border-radius: 999px; background: var(--white); color: var(--navy); font-weight: 800; font-size: var(--fs-sm); }
.motto-wrap:has(.about-photo) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "motto motto" "left right"; gap: 32px 16px; align-items: center; }
.motto-wrap .motto { grid-area: motto; }
.about-photo--polaroid { padding: 10px 10px 30px; border-radius: 6px; background: var(--white); box-shadow: 0 18px 40px rgb(23 44 77 / .18); }
.about-photo--polaroid img { aspect-ratio: 1; border-radius: 3px; }
.about-photo--left { grid-area: left; transform: rotate(-5deg); }
.about-photo--right { grid-area: right; transform: rotate(4deg); }
@media (min-width: 64em) {
  .motto-wrap:has(.about-photo) { grid-template-columns: 240px minmax(0, 1fr) 240px; grid-template-areas: "left motto right"; gap: 40px; }
  .motto-wrap:has(.about-photo) .motto { font-size: clamp(3rem, 1rem + 4.4vw, 5.5rem); }
  .about-photo--left { transform: rotate(-6deg) translateY(-12px); }
  .about-photo--right { transform: rotate(5deg) translateY(16px); }
}

/* Mozaika na stronie O projekcie: co trzecie zdjęcie duże, bloki na przemian lewa/prawa, końcówka domyka rząd */
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px; }
.mosaic > * { position: relative; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--mist); }
.mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mosaic > :hover img { transform: scale(1.04); }
.mosaic > :nth-child(3n+1), .mosaic > :nth-child(3n+1):nth-last-child(2) + * { grid-column: span 2; aspect-ratio: 3 / 2; }
@media (min-width: 48em) {
  .mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mosaic > * { grid-column: span 2; aspect-ratio: 3 / 2; }
  .mosaic > :nth-child(3n+1) { grid-column: span 4; grid-row: span 2; aspect-ratio: auto; border-radius: var(--radius); }
  .mosaic > :nth-child(6n+4) { grid-column: 3 / span 4; }
  .mosaic > :nth-child(3n+1):nth-last-child(2), .mosaic > :nth-child(3n+1):nth-last-child(2) + * { grid-column: span 3; grid-row: auto; aspect-ratio: 3 / 2; }
  .mosaic > :nth-child(3n+1):last-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 21 / 9; }
}
.lightbox { width: min(1100px, 100vw - 32px); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--radius); background: var(--navy-deep); color: var(--white); }
.lightbox::backdrop { background: rgb(15 28 50 / .85); }
.lightbox .stage { aspect-ratio: 3 / 2; max-height: calc(100vh - 140px); width: 100%; }
.lightbox .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.lightbox .bar div { display: flex; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid currentColor; background: none; color: inherit; display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }

/* Kontakt */
.contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.card { container-type: inline-size; border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; align-content: start; }
.card--line { border: 2px solid var(--navy); }
.card--mist { background: var(--mist); }
.card--navy { background: var(--navy); color: var(--white); }
.card--navy .eyebrow { color: var(--yellow); }
.email { font: 400 min(2.2rem, calc(100cqi / (var(--chars, 22) * .6)))/1.15 var(--font-display); font-variation-settings: var(--display-vars); white-space: nowrap; }

/* Zapisy */
.status { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--peach); color: var(--navy); font-weight: 800; font-size: var(--fs-sm); justify-self: start; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgb(245 146 16 / .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgb(245 146 16 / 0); } }
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; }
.form-slot { border: 2px dashed var(--navy-soft); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); display: grid; gap: 18px; align-content: start; background: var(--mist); }
.form-skeleton { display: grid; gap: 14px; }
.form-skeleton span { display: block; height: 12px; width: 40%; border-radius: 6px; background: var(--line); }
.form-skeleton i { display: block; height: 44px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }

/* Wejście sekcji przy przewijaniu */
.js [data-reveal].is-in { animation: rise .7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* Ekran ładowania */
.loader { display: none; }
.is-loading .loader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--white);
  transition: opacity .4s ease, visibility .4s;
}
.is-loading.loaded .loader { opacity: 0; visibility: hidden; }
.loader > div { display: grid; justify-items: center; }
.loader svg { display: block; width: 72px; height: auto; overflow: visible; }
.loader .fill { transform-box: fill-box; animation: fill 1s cubic-bezier(.6, .1, .3, 1) forwards; transform-origin: 0 100%; transform: scaleY(0); }
.loader .word { display: block; width: 148px; height: 32px; margin-top: 18px; }
@keyframes fill { to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .scribble path { stroke-dashoffset: 0; }
  @view-transition { navigation: none; }
}

/* WordPress */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.marquee-track { list-style: none; margin: 0; padding: 0; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.nav .current-menu-ancestor > a, .nav .current_page_parent > a { background-size: calc(100% - 24px) 3px; }
.event-body img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.album img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); transition: transform .4s var(--ease); }
.album:hover img { transform: scale(1.02) rotate(-.6deg); }
.expert img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.photos img { display: block; width: 100%; height: auto; transition: transform .4s var(--ease); }
.photos button:hover img { transform: scale(1.03); }
.lightbox .stage { display: grid; place-items: center; background: var(--navy-deep); }
.lightbox .stage img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; }
.form-embed { width: 100%; min-height: 900px; border: 0; border-radius: 12px; background: var(--white); }
.partners { margin-top: 56px; padding-top: 32px; border-top: 1px solid rgb(255 255 255 / .15); }
.partners .eyebrow { color: var(--yellow); }
.partners ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.partners li { min-height: 72px; padding: 12px; border-radius: 12px; background: var(--white); display: grid; place-items: center; color: var(--navy); font-weight: 700; text-align: center; }
.partners img { max-height: 48px; width: auto; }
.page-head .crumbs { margin-bottom: -4px; }

.entry-content { max-width: 72ch; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-size: var(--fs-lg); margin-top: 1.6em; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.4em; }
.entry-content a { text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content li + li { margin-top: .4em; }
.entry-content img { height: auto; border-radius: 12px; }
.entry-content figure { margin-inline: 0; }
.entry-content blockquote { margin-inline: 0; padding-left: 20px; border-left: 4px solid var(--orange); font: 400 var(--fs-md)/1.5 var(--font-display); font-variation-settings: var(--display-vars); }
.event-body .entry-content > * + * { margin-top: .6em; }
