/* =========================================================
   REHA FOR THE BLIND 2026 – arkusz stylów
   Paleta z motywu „Jesteśmy Razem” (podcast.fundacjaszansa.org).
   Kontrasty (WCAG 2.1 AA): navy/cream 8.6:1, blue/cream 4.96:1,
   white/red 4.65:1, white/navy 9.3:1, white/deep 13:1, yellow/black 19.6:1.
   ========================================================= */
:root {
	--bg: #f9f6f1;
	--surface: #ffffff;
	--ink: #004c6e;
	--body: #1f3a48;
	--navy: #004c6e;
	--deep: #00334a;
	--blue: #0b72a0;
	--blue-light: #bed5dd;
	--blue-pale: #e4eef2;
	--red: #e41f1c;
	--red-dark: #b81714;
	--white: #fff;
	--border: #bed5dd;
	--focus: #004c6e;
	--focus-ring: #fff;
	--dot: #004c6e;
	--dot-off: rgba(0, 76, 110, 0.18);
	--header-h: 88px;
	--radius: 10px;
	--shadow: 0 2px 14px rgba(0, 76, 110, 0.12);
	--display: "Montserrat", "Segoe UI", Arial, sans-serif;
	--text: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, Arial, sans-serif;
}

html { font-size: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.reha-font-1 { font-size: 112.5%; }
html.reha-font-2 { font-size: 125%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--body);
	font-family: var(--text);
	font-size: 1.125rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--navy); }
ul { padding-left: 1.2em; }
strong { font-weight: 700; }

.container { max-width: 76rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
	clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* Fokus – widoczny wszędzie, podwójny pierścień (także na ciemnych tłach) */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-ring); border-radius: 4px; }
.countdown :focus-visible, .stat :focus-visible, .cta-band :focus-visible, .site-footer__copy :focus-visible { outline-color: #fff; box-shadow: 0 0 0 3px var(--deep); }

/* ---------- Skip link ---------- */
.skip-link {
	position: absolute; left: 0.5rem; top: -100px; z-index: 500;
	padding: 0.75rem 1.25rem; background: var(--navy); color: var(--white);
	border-radius: 0 0 var(--radius) var(--radius); font-weight: 700;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ---------- Brajl (dekoracja) ---------- */
.braille { display: block; height: 0.95em; width: auto; max-width: 100%; margin-top: 0.35em; overflow: hidden; }
.braille .on { fill: var(--dot); }
.braille .off { fill: var(--dot-off); }
.heading { display: flex; flex-direction: column; align-items: flex-start; }
.heading__braille { height: 1rem; }
.heading__braille .off { fill: transparent; }

/* ---------- Przyciski ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	padding: 0.8rem 1.5rem; min-height: 48px; border-radius: var(--radius);
	font-family: var(--text); font-size: 1.0625rem; font-weight: 700; line-height: 1.2;
	text-decoration: none; text-align: center; cursor: pointer; border: 2px solid transparent;
}
.btn--primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--light { background: transparent; color: var(--white); border-color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--deep); }
.btn--lg { font-size: 1.125rem; padding: 0.95rem 1.8rem; }
.btn--small { min-height: 44px; padding: 0.55rem 1rem; font-size: 1rem; }
.btn--soon { background: var(--blue-pale); color: var(--navy); border-color: var(--blue-light); cursor: default; }

/* ---------- Nagłówek strony ---------- */
.site-header { position: sticky; top: 0; z-index: 200; background: var(--bg); border-bottom: 2px solid var(--blue-light); min-height: var(--header-h); }
.site-header__inner { display: flex; align-items: center; gap: 0.75rem 1.25rem; flex-wrap: wrap; padding-block: 0.7rem; position: relative; }
.site-header__brand { display: flex; align-items: center; gap: 1.25rem; }
.site-header__logo { display: inline-flex; }
.site-header__logo img { width: 150px; height: auto; }
.site-header__logo--org img { width: 200px; }
.site-nav { margin-left: auto; }
.site-nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0; padding: 0; }
.site-nav__list a {
	display: inline-block; padding: 0.65rem 0.6rem; color: var(--ink); font-size: 1rem; font-weight: 700;
	text-decoration: none; border-radius: var(--radius);
}
.site-nav__list a:hover { background: var(--blue-light); color: var(--navy); }
.site-nav__list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 3px; text-decoration-color: var(--red); }
.site-nav__toggle {
	display: none; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0.6rem 1rem;
	background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 1.0625rem; font-weight: 700;
	border: 2px solid var(--blue); border-radius: var(--radius); cursor: pointer;
}
.site-nav__toggle-icon, .site-nav__toggle-icon::before, .site-nav__toggle-icon::after {
	display: block; width: 20px; height: 3px; background: currentColor; border-radius: 2px; content: ""; position: relative;
}
.site-nav__toggle-icon::before { top: -6px; }
.site-nav__toggle-icon::after { top: 3px; }

/* ---------- Panel dostępności ---------- */
.a11y { position: relative; }
.a11y__toggle {
	display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0.6rem 1rem;
	background: var(--navy); color: var(--white); font-family: var(--text); font-size: 1rem; font-weight: 700;
	border: 2px solid var(--navy); border-radius: var(--radius); cursor: pointer;
}
.a11y__toggle:hover { background: var(--blue); border-color: var(--blue); }
.a11y__panel {
	position: absolute; right: 0; top: calc(100% + 8px); z-index: 250; width: min(320px, calc(100vw - 2rem));
	padding: 1rem; background: var(--surface); border: 2px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow);
}
.a11y__heading { font-size: 1.125rem; margin: 0 0 0.75rem; font-family: var(--text); }
.a11y__btn {
	display: block; width: 100%; min-height: 44px; margin-bottom: 0.5rem; padding: 0.6rem 1rem;
	background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 1rem; font-weight: 700;
	border: 2px solid var(--blue); border-radius: var(--radius); cursor: pointer; text-align: left;
}
.a11y__btn:hover { background: var(--blue-light); }
.a11y__btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.a11y__fonts { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.a11y__btn--font { width: auto; flex: 1; text-align: center; margin: 0; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hero__eyebrow { font-family: var(--display); font-weight: 700; font-size: clamp(0.95rem, 1.6vw, 1.125rem); letter-spacing: 0.12em; color: var(--blue); margin: 0 0 1rem; }
.hero__title { font-size: clamp(2.6rem, 6.5vw, 4.75rem); line-height: 1; margin: 0 0 1rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; letter-spacing: -0.02em; }
.hero__braille { height: clamp(1.4rem, 3vw, 2.1rem); width: auto; margin: 0; }
.hero__subtitle { font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.4; color: var(--ink); max-width: 30ch; margin: 0 0 1.25rem; font-weight: 400; }
.hero__when { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--ink); margin: 0 0 1.75rem; }
.hero__place::before { content: "·"; margin-right: 1.25rem; color: var(--red); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__media { margin: 0; justify-self: end; width: 100%; max-width: 600px; }
.hero__video-wrap { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 40px rgba(0, 51, 74, 0.25); background: var(--deep); aspect-ratio: 16 / 9; }
.hero__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__video-btn {
	position: absolute; left: 0.75rem; bottom: 0.75rem; display: inline-flex; align-items: center; gap: 0.5rem;
	min-height: 44px; padding: 0.5rem 0.9rem; background: var(--white); color: var(--navy);
	border: 2px solid var(--white); border-radius: 999px; font-family: var(--text); font-weight: 700; font-size: 0.95rem; cursor: pointer;
}
.hero__video-btn:hover { background: var(--blue-light); }
.hero__video-btn .icon--play, .hero__video-btn[aria-pressed="true"] .icon--pause { display: none; }
.hero__video-btn[aria-pressed="true"] .icon--play { display: inline; }
.hero__caption { margin-top: 0.6rem; text-align: center; font-family: var(--display); font-weight: 700; letter-spacing: 0.2em; color: var(--blue); font-size: 0.95rem; }

/* ---------- Odliczanie ---------- */
.countdown { background: var(--deep); color: var(--white); padding-block: clamp(2rem, 5vw, 3.5rem); }
.countdown__inner { text-align: center; }
.countdown__label { color: var(--white); font-family: var(--text); font-weight: 400; font-size: clamp(1.1rem, 2vw, 1.35rem); margin: 0 0 1.25rem; letter-spacing: 0.02em; }
.countdown__sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
.countdown__units { display: flex; justify-content: center; gap: clamp(0.75rem, 3vw, 2.5rem); flex-wrap: wrap; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; min-width: 4.5ch; }
.countdown__num { font-family: var(--display); font-weight: 800; font-size: clamp(2.75rem, 8vw, 5.5rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.countdown__unit-label { font-size: clamp(0.9rem, 1.6vw, 1.1rem); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.4rem; color: var(--blue-light); }
.countdown__state { font-family: var(--display); font-weight: 800; font-size: clamp(1.75rem, 4.5vw, 3rem); margin: 0; }
.countdown__date { margin: 1.5rem 0 0; font-weight: 700; color: var(--blue-light); }
.countdown.is-live .countdown__units { display: none; }

/* ---------- O wydarzeniu ---------- */
.about { padding-block: clamp(3rem, 7vw, 5.5rem); }
.about__inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.about__heading { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.about__text { font-size: 1.2rem; }
.about__text p:first-child::first-letter { font-family: var(--display); font-weight: 800; color: var(--red); font-size: 1.6em; line-height: 1; }

/* ---------- Liczby ---------- */
.stats { padding-block: 0 clamp(3rem, 7vw, 5.5rem); }
.stats .heading { margin-bottom: 1.25rem; }
.stats__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 1.5rem 1.4rem 1.4rem; border-top: 6px solid var(--red); }
.stat__value { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; margin: 0 0 0.6rem; display: flex; flex-direction: column; gap: 0.3rem; }
.stat__label { font-size: 1rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-light); font-family: var(--text); }
.stat__desc { margin: 0; font-size: 1rem; line-height: 1.45; }

/* ---------- Puzzle ---------- */
.puzzle { padding-block: clamp(3rem, 7vw, 5.5rem); background: var(--blue-pale); }
.puzzle__intro { max-width: 60ch; margin-bottom: 2rem; font-size: 1.2rem; }
.puzzle__board { list-style: none; margin: 0 auto; padding: 0; position: relative; max-width: 900px; aspect-ratio: 4 / 3; }
.puzzle__piece { position: absolute; width: 33.3333%; height: 33.3333%; }
.puzzle__piece:nth-child(3n+1) { left: 0; } .puzzle__piece:nth-child(3n+2) { left: 33.3333%; } .puzzle__piece:nth-child(3n) { left: 66.6667%; }
.puzzle__piece:nth-child(-n+3) { top: 0; } .puzzle__piece:nth-child(n+4):nth-child(-n+6) { top: 33.3333%; } .puzzle__piece:nth-child(n+7) { top: 66.6667%; }
.puzzle__btn {
	display: block; width: 100%; height: 100%; position: relative; padding: 0; margin: 0; background: none; border: 0; cursor: pointer;
	transition: transform 0.25s ease; overflow: visible;
}
.puzzle__btn img { position: absolute; width: 300%; height: 300%; max-width: none; pointer-events: none; }
.puzzle__piece:nth-child(3n+1) img { left: 0; } .puzzle__piece:nth-child(3n+2) img { left: -100%; } .puzzle__piece:nth-child(3n) img { left: -200%; }
.puzzle__piece:nth-child(-n+3) img { top: 0; } .puzzle__piece:nth-child(n+4):nth-child(-n+6) img { top: -100%; } .puzzle__piece:nth-child(n+7) img { top: -200%; }
.puzzle__piece:hover, .puzzle__piece:focus-within { z-index: 5; }
.puzzle__btn:hover, .puzzle__btn:focus-visible, .puzzle__btn[aria-expanded="true"] { transform: scale(1.06); }
.puzzle__btn:focus-visible { outline-offset: -4px; }
.puzzle__btn[aria-expanded="true"]::after { content: ""; position: absolute; inset: 8%; border: 3px solid var(--red); border-radius: 8px; pointer-events: none; }
.puzzle__panel { margin-top: 2rem; }
.event { background: var(--bg); border: 2px solid var(--blue-light); border-left: 8px solid var(--red); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.event__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.event__title { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin-bottom: 0.75rem; }
.event__close { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--white); color: var(--navy); border: 2px solid var(--blue); border-radius: 50%; cursor: pointer; }
.event__close:hover { background: var(--blue); color: var(--white); }
.event__meta { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin: 0 0 1rem; }
.event__meta div { display: flex; flex-direction: column; }
.event__meta dt { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--blue); }
.event__meta dd { margin: 0; font-weight: 700; color: var(--ink); }
.event__body h4 { margin-top: 1rem; }
.event__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 0.5rem; }
.event__open { margin: 0; font-weight: 700; color: var(--ink); }

/* ---------- Logotypy – belka z boxami (przewijana w pętli przez JS, pauza przyciskiem / najechaniem / fokusem) ---------- */
.logos { padding-block: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--blue-light); }
.logos__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.75rem 1.5rem; margin-bottom: 1.25rem; }
.logos__heading { margin-bottom: 0; }
.logos__heading .heading__braille { height: 0.9rem; }
.logos__pause {
	display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0.5rem 1rem;
	background: var(--surface); color: var(--navy); border: 2px solid var(--blue); border-radius: 999px;
	font-family: var(--text); font-size: 0.95rem; font-weight: 700; cursor: pointer;
}
.logos__pause:hover { background: var(--blue); color: var(--white); }
.logos__pause .icon--play, .logos__pause[aria-pressed="true"] .icon--pause { display: none; }
.logos__pause[aria-pressed="true"] .icon--play { display: inline; }
.logos__belt { overflow: hidden; padding-block: 6px; }
.logos__track { position: relative; display: flex; gap: 1.25rem; }
.logos__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.logos__belt.is-animated .logos__track { width: max-content; will-change: transform; }
.logos__belt.is-animated .logos__list { flex-wrap: nowrap; flex: none; }
.logos__belt.is-animated { -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }
.logos__item {
	flex: none; width: 232px; height: 132px; padding: 16px;
	background: var(--surface); border: 2px solid var(--blue-light); border-radius: var(--radius);
	display: flex; align-items: center; justify-content: center;
}
.logos__item img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.logos__item a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.logos__text { font-weight: 700; color: var(--ink); text-align: center; font-size: 1rem; line-height: 1.3; }
.logos__empty { color: var(--body); margin: 0; }

/* ---------- Organizator ---------- */
.organizer { padding-block: clamp(3rem, 7vw, 5rem); }
.organizer__inner { display: grid; grid-template-columns: minmax(200px, 0.6fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.organizer__logo { background: var(--surface); border: 2px solid var(--blue-light); border-radius: var(--radius); padding: 2rem; display: flex; justify-content: center; }
.organizer__logo img { width: 100%; max-width: 320px; }
.organizer__body .btn { margin-top: 0.5rem; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--surface); border-top: 2px solid var(--blue-light); }
.site-footer__inner { padding-block: 3rem; }
.site-footer__about { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.site-footer__logo { margin: 0; width: 220px; }
.site-footer__a11y { margin: 0; font-weight: 700; }
.site-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-top: 2rem; max-width: 60rem; }
.site-footer__col h2 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; font-family: var(--text); }
.site-footer__col h2:first-child { margin-top: 0; }
.site-footer address { font-style: normal; }
.site-footer__social, .site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__social li, .site-footer__links li { margin-bottom: 0.5rem; }
.site-footer__social a, .site-footer__links a { font-weight: 700; }
.site-footer__funding { background: var(--bg); border-top: 1px solid var(--blue-light); }
.site-footer__funding p { margin: 0; padding-block: 1.25rem; font-weight: 700; }
.site-footer__copy { background: var(--navy); color: var(--white); }
.site-footer__copy p { margin: 0; padding-block: 1rem; }

/* ---------- Podstrony ---------- */
.subhero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem); }
.subhero__title { display: flex; flex-direction: column; align-items: flex-start; }
.subhero__inner--split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr); grid-template-rows: auto 1fr; gap: 0 clamp(1.5rem, 5vw, 4rem); align-items: start; }
.subhero__main { grid-column: 1; grid-row: 1; }
.subhero__inner--split .subhero__content { grid-column: 1; grid-row: 2; }
.subhero__aside { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; }
.subhero__lead { font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--ink); font-weight: 700; font-family: var(--display); max-width: 34ch; }
.subhero__content { max-width: 68ch; font-size: 1.15rem; }
.subhero__content h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin-top: 1.5em; }
.subhero__content li { margin-bottom: 0.6em; }
.subhero__aside { min-width: 0; }
.subhero__banner, .deck { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.subhero__banner { margin: 0; }
.subhero__actions { margin-bottom: 2rem; }
.subhero__content > :last-child { margin-bottom: 0; }

/* Termin i miejsce pod tytułem (Expo) – ten sam język co karta wydarzenia pod puzzlami */
.when { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin: 0 0 1.5rem; padding: 1rem 1.25rem; background: var(--surface); border: 2px solid var(--blue-light); border-left: 8px solid var(--red); border-radius: var(--radius); }
.when__text { margin: 0; font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.1rem; line-height: 1.5; }
.when__free { margin: 0; display: inline-block; padding: 0.3rem 0.85rem; background: var(--navy); color: var(--white); border-radius: 999px; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Talia zdjęć: karty w niebieskich ramkach, jedna na drugiej; bez JS – zwykła lista */
.deck__list { list-style: none; margin: 0; padding: 0; }
.deck__card { background: var(--surface); border: 2px solid var(--blue-light); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); margin-bottom: 1rem; }
.deck__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.deck.is-ready .deck__list { position: relative; aspect-ratio: 3 / 2; margin: 1.5rem 1.5rem 0 0.5rem; }
.deck.is-ready .deck__card {
	position: absolute; inset: 0; margin: 0; height: 100%;
	transform: translate(calc(var(--k) * 7px), calc(var(--k) * -9px)) rotate(calc(var(--k) * 1.8deg));
	opacity: clamp(0, 1 - (var(--k) - 1) * 0.3, 1);
	z-index: calc(30 - var(--k));
	transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.35s ease;
}
.deck.is-ready .deck__card:not(.is-current) { pointer-events: none; }
.deck.is-ready .deck__img { height: 100%; }
.deck__bar { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 1rem; }
.deck:not(.is-ready) .deck__num { display: none; }
.deck__btn { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--navy); border: 2px solid var(--blue); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.deck__btn:hover { background: var(--blue); color: var(--white); }
.deck__count { margin: 0; display: flex; align-items: center; gap: 0.75rem; font-family: var(--display); font-weight: 700; letter-spacing: 0.2em; color: var(--blue); font-size: 0.95rem; min-width: 7ch; justify-content: center; }
.deck__num { font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.subhero__banner img { width: 100%; border-radius: var(--radius); border: 2px solid var(--blue-light); }
.subhero__banner figcaption { margin-top: 0.6rem; text-align: center; font-family: var(--display); font-weight: 700; letter-spacing: 0.2em; color: var(--blue); font-size: 0.95rem; }
.content { padding-block: 1rem clamp(3rem, 7vw, 5rem); }
.content__inner { max-width: 68ch; }

/* Prelegenci */
.speakers { padding-block: clamp(2.5rem, 6vw, 4.5rem); background: var(--surface); border-block: 2px solid var(--blue-light); }
.speakers__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
.speaker { display: flex; flex-direction: column; align-items: center; text-align: center; }
.speaker__photo { width: 100%; max-width: 180px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--blue-pale); border: 3px solid var(--blue-light); margin-bottom: 0.9rem; display: flex; align-items: center; justify-content: center; }
.speaker__photo img { width: 100%; height: 100%; object-fit: cover; }
.speaker__placeholder { font-family: var(--display); font-weight: 800; font-size: 3rem; color: var(--blue); }
.speaker__name { font-size: 1.125rem; margin: 0 0 0.25rem; font-family: var(--text); }
.speaker__toggle { background: none; border: 0; padding: 0.25rem 0; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 0.25rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--blue); min-height: 44px; }
.speaker__toggle:hover { color: var(--blue); }
.speaker__toggle .chev { transition: transform 0.2s; }
.speaker__toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.speaker__role { margin: 0; font-size: 0.95rem; color: var(--body); }
.speaker__bio { margin-top: 0.75rem; text-align: left; font-size: 1rem; background: var(--bg); border: 1px solid var(--blue-light); border-radius: var(--radius); padding: 0.9rem 1rem; }
.speaker__bio p:last-child { margin-bottom: 0; }

/* Program */
.program { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.program__day { font-family: var(--display); color: var(--red); font-size: 1.25rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 2rem 0 1rem; }
.program__day:first-of-type { margin-top: 0; }
.program__list { list-style: none; margin: 0; padding: 0; counter-reset: blok; }
.program__list:empty { display: none; }
.block { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem 2rem; padding: 1.25rem 0; border-top: 2px solid var(--blue-light); }
.block__when { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 700; color: var(--ink); }
.block__time { font-family: var(--display); font-size: 1.25rem; }
.block__place { font-size: 0.95rem; color: var(--blue); font-weight: 400; }
.block__title { font-size: 1.2rem; margin-bottom: 0.4rem; }
.block__body p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { background: var(--deep); color: var(--white); padding-block: clamp(2.5rem, 6vw, 4rem); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 60ch; margin-inline: auto; font-size: 1.2rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }

/* Dla mediów */
.press, .presskit { padding-block: clamp(2rem, 5vw, 3.5rem); }
.subhero--media { padding-bottom: clamp(0.75rem, 2vw, 1.5rem); }
.subhero--media + .press { padding-top: clamp(1rem, 2.5vw, 1.75rem); }
.press__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.tile { background: var(--surface); border: 2px solid var(--blue-light); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.tile__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.tile__body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.tile__date { margin: 0; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.tile__title { margin: 0; font-size: 1.2rem; }
.tile__text { margin: 0; font-size: 1rem; }
.tile__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 0.5rem; }
.tile__full, .tile__files { border-top: 1px solid var(--blue-light); padding-top: 0.75rem; font-size: 1rem; }

/* Materiały do pobrania */
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.files__item { display: flex; align-items: center; gap: 0.75rem; }
.files__thumb { flex: none; width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--blue-light); }
.files__ext { flex: none; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: var(--blue-pale); color: var(--navy); font-family: var(--display); font-weight: 700; font-size: 0.75rem; border-radius: 6px; }
.files__link { font-weight: 700; overflow-wrap: anywhere; }
.files__meta { font-weight: 400; color: var(--body); white-space: nowrap; }
.files--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.files--grid .files__item { display: block; }
.files__fig { margin: 0; height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--blue-light); border-radius: var(--radius); overflow: hidden; }
.files__fig img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.files__cap { padding: 0.75rem 0.9rem; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.95rem; flex: 1; }
.files__name { font-weight: 700; color: var(--ink); }
.files__dl { font-weight: 700; margin-top: auto; }
.files__all { margin: 1rem 0 0; }
.presskit { background: var(--surface); border-block: 2px solid var(--blue-light); }
.presskit__intro { max-width: 60ch; }
.presskit__list { display: flex; flex-direction: column; gap: 1.5rem; }
.kit { background: var(--bg); border: 2px solid var(--blue-light); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.75rem); }
.kit__head { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1rem; }
.kit__img { flex: none; width: 120px; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; }
.kit__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kit__title { font-size: 1.35rem; margin-bottom: 0.3rem; }
.kit__text { font-size: 1rem; max-width: 70ch; }
.kit__text p:last-child { margin-bottom: 0; }
.kit__soon { margin: 0; font-weight: 700; color: var(--blue); }
.kit .files:not(.files--grid) { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0.75rem 1.5rem; }
.newsletter { padding-block: clamp(2.5rem, 6vw, 4rem); }
.newsletter__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.newsletter__form { background: var(--surface); border: 2px solid var(--blue-light); border-radius: var(--radius); padding: 1.5rem; }
.newsletter__row { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.field__label { font-weight: 700; color: var(--ink); }
.field__hint { font-size: 0.95rem; color: var(--body); }
.req { color: var(--red); }
.newsletter__form input[type="email"] { font: inherit; padding: 0.7rem 0.9rem; min-height: 48px; border: 2px solid var(--navy); border-radius: 8px; background: var(--white); color: var(--body); }
.newsletter__form input[aria-invalid="true"] { border-color: var(--red); border-width: 3px; }
.newsletter__consent { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; margin-bottom: 1.25rem; font-size: 1rem; }
.newsletter__consent input { width: 24px; height: 24px; margin: 0.15rem 0 0; accent-color: var(--navy); }
.form-msg { padding: 0.9rem 1rem; border-radius: 8px; font-weight: 700; border: 2px solid; margin-bottom: 1rem; }
.form-msg--ok { background: #e7f3ec; border-color: #1f6b3a; color: #14492a; }
.form-msg--error { background: #fdecec; border-color: var(--red-dark); color: #7a0f0d; }
.press-contact { padding-block: 0 clamp(2.5rem, 6vw, 4rem); }

/* ---------- Tryb kontrastowy (czarne tło, żółty tekst) ---------- */
html.reha-contrast {
	--bg: #000; --surface: #000; --ink: #ff0; --body: #ff0; --navy: #000; --deep: #000; --blue: #ff0; --blue-light: #ff0; --blue-pale: #000;
	--red: #000; --red-dark: #000; --white: #000; --border: #ff0; --focus: #ff0; --focus-ring: #000; --dot: #ff0; --dot-off: rgba(255,255,0,0.3); --shadow: none;
}
html.reha-contrast body { background: #000; color: #ff0; }
html.reha-contrast a, html.reha-contrast h1, html.reha-contrast h2, html.reha-contrast h3, html.reha-contrast h4 { color: #ff0; }
html.reha-contrast .btn, html.reha-contrast .a11y__toggle, html.reha-contrast .skip-link, html.reha-contrast .site-nav__toggle, html.reha-contrast .event__close, html.reha-contrast .hero__video-btn, html.reha-contrast .deck__btn, html.reha-contrast .logos__pause {
	background: #000; color: #ff0; border-color: #ff0;
}
html.reha-contrast .btn:hover, html.reha-contrast .deck__btn:hover, html.reha-contrast .logos__pause:hover, html.reha-contrast .a11y__btn:hover, html.reha-contrast .site-nav__list a:hover, html.reha-contrast .a11y__toggle:hover, html.reha-contrast .event__close:hover, html.reha-contrast .hero__video-btn:hover, html.reha-contrast .a11y__btn[aria-pressed="true"] { background: #ff0; color: #000; }
html.reha-contrast .countdown, html.reha-contrast .stat, html.reha-contrast .cta-band, html.reha-contrast .site-footer__copy, html.reha-contrast .puzzle, html.reha-contrast .speakers, html.reha-contrast .presskit, html.reha-contrast .event, html.reha-contrast .logos__item, html.reha-contrast .tile, html.reha-contrast .kit, html.reha-contrast .newsletter__form, html.reha-contrast .organizer__logo, html.reha-contrast .speaker__bio, html.reha-contrast .a11y__panel, html.reha-contrast .when, html.reha-contrast .deck__card, html.reha-contrast .files__fig, html.reha-contrast .files__ext, html.reha-contrast .when__free {
	background: #000; color: #ff0; border-color: #ff0;
}
html.reha-contrast .stat { border: 2px solid #ff0; border-top-width: 6px; }
html.reha-contrast .countdown__label, html.reha-contrast .countdown__unit-label, html.reha-contrast .countdown__date, html.reha-contrast .stat__label, html.reha-contrast .cta-band h2, html.reha-contrast .hero__caption, html.reha-contrast .program__day, html.reha-contrast .speaker__role, html.reha-contrast .tile__date, html.reha-contrast .deck__count, html.reha-contrast .files__meta, html.reha-contrast .subhero__banner figcaption { color: #ff0; }
html.reha-contrast .deck__card { box-shadow: none; }
html.reha-contrast .when { border-left-width: 8px; }
html.reha-contrast .hero__video-wrap { box-shadow: none; border: 2px solid #ff0; }
html.reha-contrast .form-msg { background: #000; color: #ff0; border-color: #ff0; }
html.reha-contrast .newsletter__form input[type="email"] { background: #000; color: #ff0; border-color: #ff0; }
html.reha-contrast img:not(.puzzle__btn img) { background: #fff; }
html.reha-contrast .about__text p:first-child::first-letter { color: #ff0; }
html.reha-contrast .hero__place::before { color: #ff0; }
html.reha-contrast .puzzle__btn[aria-expanded="true"]::after { border-color: #ff0; }

/* ---------- Ruch: szanujemy preferencje ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.puzzle__btn:hover, .puzzle__btn:focus-visible, .puzzle__btn[aria-expanded="true"] { transform: none; outline: 3px solid var(--red); outline-offset: -6px; }
}

/* ---------- Responsywność ---------- */
@media (max-width: 1199px) {
	.a11y__toggle-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
	.a11y__toggle { padding-inline: 0.7rem; }
}
@media (max-width: 1100px) {
	.speakers__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Średnie ekrany: logotypy w pierwszym wierszu, menu pod nimi (wyrównane do prawej) */
@media (max-width: 1079px) and (min-width: 768px) {
	:root { --header-h: 160px; }
	.a11y { order: 2; margin-left: auto; }
	.site-nav { order: 3; flex-basis: 100%; margin-left: 0; }
	.site-nav__list { justify-content: flex-end; }
}
@media (max-width: 920px) {
	.stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.speakers__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.press__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.about__inner, .organizer__inner, .newsletter__inner, .subhero__inner--split { grid-template-columns: 1fr; }
	.subhero__inner--split { grid-template-rows: auto; }
	.subhero__main, .subhero__inner--split .subhero__content, .subhero__aside { grid-column: 1; grid-row: auto; }
	.subhero__aside { order: 2; margin-bottom: 2.5rem; }
	.subhero__inner--split .subhero__content { order: 3; }
	.about__heading, .subhero__banner, .deck { position: static; }
	.subhero__banner, .deck { max-width: 520px; }
	.hero__inner { grid-template-columns: 1fr; }
	.hero__media { max-width: 600px; justify-self: start; }
}
@media (max-width: 767px) {
	:root { --header-h: 72px; }
	.site-header__logo img { width: 120px; }
	.site-header__logo--org img { width: 150px; }
	.a11y__toggle svg { margin: 0; }
	.site-header__inner { gap: 0.75rem; }
	.site-nav { margin-left: auto; position: static; }
	.site-nav__toggle { display: inline-flex; }
	.site-nav__list {
		display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg);
		border-bottom: 2px solid var(--blue-light); padding: 0.75rem 1rem 1rem; flex-direction: column; gap: 0.25rem; box-shadow: var(--shadow);
	}
	.site-nav__list.is-open { display: flex; }
	.site-nav__list a { display: block; padding: 0.8rem 0.75rem; }
	.site-header__inner { flex-wrap: nowrap; }
	.site-header__brand { gap: 0.6rem; }
	.a11y__toggle { padding-inline: 0.7rem; }
	.a11y__toggle svg { margin: 0; }
	.speakers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.press__grid { grid-template-columns: 1fr; }
	.block { grid-template-columns: 1fr; gap: 0.25rem; }
	.block__when { flex-direction: row; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; }
	.site-footer__cols { grid-template-columns: 1fr; }
	.hero__title { font-size: clamp(2.4rem, 12vw, 3.5rem); }
	.kit__head { flex-direction: column; }
}
@media (max-width: 560px) {
	:root { --header-h: 90px; }
	.site-header__logo img { width: 100px; }
	.site-header__logo--org img { width: 128px; }
	.site-header__brand { gap: 0.5rem; }
	.site-nav__toggle-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
	.site-nav__toggle { padding-inline: 0.75rem; }
	.stats__grid { grid-template-columns: 1fr; }
	.logos__item { width: 190px; height: 110px; padding: 12px; }
	.deck.is-ready .deck__list { margin: 1.25rem 1rem 0 0.25rem; }
	/* Puzzle jeden pod drugim – tekst na grafikach pozostaje czytelny */
	.puzzle__board { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
	.puzzle__piece { position: static; width: auto; height: auto; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; }
	.puzzle__btn:hover, .puzzle__btn:focus-visible, .puzzle__btn[aria-expanded="true"] { transform: none; }
	.puzzle__btn:focus-visible { outline-offset: -3px; }
	.hero__actions .btn { width: 100%; }
	.puzzle__btn[aria-expanded="true"]::after { inset: 10%; border-width: 2px; }
}

