/* ═══════════════════════════════════════
   SITE CHROME – nagłówek, menu mobilne (<dialog>), stopka.
   Ładowane globalnie (inc/enqueue.php). Tokeny z theme.json, BEM.
   Flat – bez cieni: sticky sygnalizuje border-bottom, nie box-shadow (DESIGN: no shadows).
   Breakpoint nawigacji = 1024px (desktop nav ↔ hamburger), jak w prototypie (lg).
   ═══════════════════════════════════════ */

/* Wysokość lepkiego nagłówka = bar 3px + inner min-height 84px (logo 80px). Stała (nie kurczy
   się na sticky). Eksponowana jako zmienna, bo lepki pasek edycji dokleja się DOKŁADNIE pod nim
   (top: var(--header-h)) – jedno źródło, brak magicznych liczb rozjeżdżających się przy zmianie. */
:root {
	--header-h: 87px;
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s ease;
}

/* Stan sticky (IntersectionObserver w nav.js) – delikatna kreska zamiast cienia. */
.site-header[data-state='sticky'] {
	border-bottom-color: var(--wp--preset--color--border);
}

/* Sygnaturowa złota kreska 3px na samej górze. */
.site-header__bar {
	height: 3px;
	background: var(--wp--preset--color--accent);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--sm);
	min-height: 84px;
}

/* ── Brand ──────────────────────────────────────────── */
.site-header__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	flex: none;
	text-decoration: none;
}

.site-header__logo {
	height: 80px;
	width: auto;
}

.site-header__title {
	display: none; /* ujawniany dopiero ≥1200px (z social) – niżej brand niesie samo logo */
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 0.875rem;
	line-height: 1.15;
	color: var(--wp--preset--color--primary);
	max-width: 220px;
}

/* ── Nawigacja desktop ──────────────────────────────── */
.site-header__nav { display: none; }

.site-header__menu {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 500;
	font-size: 0.875rem;
}

.site-header__menu a {
	text-decoration: none;
	color: var(--wp--preset--color--text);
	transition: color 0.2s ease;
}

.site-header__menu a:hover,
.site-header__menu a:focus-visible {
	color: var(--wp--preset--color--primary);
}

/* Złote podkreślenie – wjeżdża na hover/focus, trwałe na pozycji aktywnej.
   Scope `> li > a` (nie submenu – te mają własny pasek boczny). */
.site-header__menu > li > a {
	position: relative;
}
.site-header__menu > li > a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 2px;
	background: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}
.site-header__menu > li > a:hover::after,
.site-header__menu > li > a:focus-visible::after,
.site-header__menu > li.current-menu-item > a::after,
.site-header__menu > li.current-menu-ancestor > a::after {
	transform: scaleX(1);
}

/* Pozycja aktywna – navy + bold. */
.site-header__menu > li.current-menu-item > a,
.site-header__menu > li.current-menu-ancestor > a {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

/* ── Dropdowny desktop ──────────────────────────────────────────────────
   Markup: nav.js promuje podmenu <ul.sub-menu> do popover="auto" i wstrzykuje
   przycisk .dropdown-toggle (invoker). Pozycja = CSS Anchor Positioning
   (kotwica --ityij-submenu-* na <li>). Klik, nie hover → poza pułapką WCAG 1.4.13;
   popover daje Esc/klik-poza/jeden-otwarty, invoker sam eksponuje aria-expanded.   */

/* Pozycja z dzieckiem: link + strzałka w jednej linii. */
.site-header__menu .menu-item-has-children {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

/* Przycisk-strzałka (chevron). Min. 44×44 trudno tu utrzymać (pasek menu),
   ale cel kliknięcia powiększony paddingiem; focus-visible widoczny. */
.dropdown-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem;
	margin: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--text);
	cursor: pointer;
	border-radius: 0.25rem;
	transition: color 0.2s ease;
}
.dropdown-toggle:hover,
.dropdown-toggle:focus-visible {
	color: var(--wp--preset--color--primary);
}
.dropdown-toggle svg {
	transition: transform 0.25s ease;
}
/* Strzałka obraca się, gdy podmenu otwarte (klasa z nav.js na <li>). */
.menu-item-has-children.has-open-submenu > .dropdown-toggle {
	color: var(--wp--preset--color--primary);
}
.menu-item-has-children.has-open-submenu > .dropdown-toggle svg {
	transform: rotate(180deg);
}

/* Panel podmenu (popover w top-layer). FLAT: tło + border, ZERO cienia. */
.site-header__nav .sub-menu {
	min-width: 13rem;
	margin: 0;
	padding: 0.4rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 14%, transparent);
	border-radius: 0.5rem;
	background: var(--wp--preset--color--base);
	list-style: none;
	/* Animacja wejścia/wyjścia – display+overlay w transition (allow-discrete). */
	opacity: 0;
	transform: translateY(-0.4rem);
	transition: opacity 0.18s ease, transform 0.18s ease, overlay 0.18s allow-discrete, display 0.18s allow-discrete;
}
.site-header__nav .sub-menu:popover-open {
	opacity: 1;
	transform: translateY(0);
}
@starting-style {
	.site-header__nav .sub-menu:popover-open {
		opacity: 0;
		transform: translateY(-0.4rem);
	}
}

/* Pozycjonowanie pod kotwicą (lewe krawędzie wyrównane). Wydzielone do @supports –
   gdy brak anchor positioning, popover zostaje czytelnym, wystylowanym panelem
   (domyślnie wyśrodkowany przez UA) zamiast się psuć. */
@supports (position-area: bottom) {
	.site-header__nav .sub-menu {
		position-area: bottom span-right;
		margin: 0;
		margin-block-start: 0.6rem;
		inset: auto;
	}
	/* Niewidzialny mostek nad luką 0.6rem – pointer w drodze z pozycji do panelu
	   wciąż jest „nad podmenu", więc hover nie pęka (uzupełnia bufor 150 ms w nav.js). */
	.site-header__nav .sub-menu::before {
		content: '';
		position: absolute;
		left: 0;
		right: 0;
		top: -0.6rem;
		height: 0.6rem;
	}
}

.site-header__nav .sub-menu li {
	margin: 0;
}
.site-header__nav .sub-menu a {
	position: relative;
	display: block;
	padding: 0.55rem 0.85rem 0.55rem 1rem;
	border-radius: 0.3rem;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--wp--preset--color--text);
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}
/* Złoty pasek-akcent po lewej – „wjeżdża" na hover/focus (scaleY z 0). */
.site-header__nav .sub-menu a::before {
	content: '';
	position: absolute;
	left: 0.45rem;
	top: 50%;
	width: 3px;
	height: 1.1em;
	border-radius: 2px;
	background: var(--wp--preset--color--accent);
	transform: translateY(-50%) scaleY(0);
	transition: transform 0.18s ease;
}
.site-header__nav .sub-menu a:hover,
.site-header__nav .sub-menu a:focus-visible {
	background: var(--wp--preset--color--sky);
	color: var(--wp--preset--color--primary);
	padding-left: 1.15rem;
}
.site-header__nav .sub-menu a:hover::before,
.site-header__nav .sub-menu a:focus-visible::before,
.site-header__nav .sub-menu .current-menu-item > a::before {
	transform: translateY(-50%) scaleY(1);
}
.site-header__nav .sub-menu .current-menu-item > a {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
	.site-header__nav .sub-menu,
	.site-header__nav .sub-menu a,
	.site-header__nav .sub-menu a::before,
	.site-header__menu > li > a::after,
	.site-footer__links a::after,
	.dropdown-toggle svg {
		transition: none;
	}
}

/* ── Akcje (social + hamburger) ─────────────────────── */
.site-header__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.site-header__social {
	display: none;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-header__social a {
	display: inline-flex;
	color: var(--wp--preset--color--muted);
	transition: color 0.2s ease;
}

.site-header__social a:hover,
.site-header__social a:focus-visible {
	color: var(--wp--preset--color--primary);
}

.site-header__social svg {
	width: 1.25rem;
	height: 1.25rem;
}

/* ≥1200px – pełny brand (logo + tytuł) i ikony social. Niżej niż nav (1024px): w paśmie
   1024–1199px brand niesie samo logo, a pasek to logo + menu (bez tłoku tytułu i social).
   Social w paśmie hamburgera i tak dubluje .mobile-menu__social. Świadomie szerszy niż nav. */
@media (min-width: 1200px) {
	.site-header__title { display: block; }
	.site-header__social { display: flex; }
}

/* ── Przełącznik języka (segmentowana pigułka PL · EN) ─ */
.site-header__lang {
	display: inline-flex;
	align-items: center;
	gap: 0.125rem;
	padding: 0.1875rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
}

.site-header__lang__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.125rem;
	padding: 0.25rem 0.5rem;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	border-radius: 999px;
	transition: color 0.2s ease, background-color 0.2s ease;
}

/* Aktualny język = wypełniony segment (granat). */
.site-header__lang__item.is-active {
	color: var(--wp--preset--color--base);
	background: var(--wp--preset--color--primary);
}

.site-header__lang a.site-header__lang__item:hover,
.site-header__lang a.site-header__lang__item:focus-visible {
	color: var(--wp--preset--color--primary);
	background: color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent);
}

/* Strona bez tłumaczenia w danym języku – link przygaszony (ciepły fallback w treści). */
.site-header__lang__item.is-untranslated { opacity: 0.5; }

/* ── Hamburger (3 kreski → X przez aria-expanded) ───── */
.site-header__burger {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.site-header__burger span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--wp--preset--color--primary);
	border-radius: 2px;
	transform-origin: center;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-header__burger[aria-expanded='true'] span:first-child { transform: translateY(7px) rotate(45deg); }
.site-header__burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.site-header__burger[aria-expanded='true'] span:last-child  { transform: translateY(-7px) rotate(-45deg); }

/* Przełącznik desktop ↔ mobile na 1024px (lg). Social osobno (≥1200px, wyżej). */
@media (min-width: 1024px) {
	.site-header__nav { display: block; }
	.site-header__burger { display: none; }
}

/* ── Menu mobilne – natywny <dialog> ────────────────── */
.mobile-menu {
	margin: 0;
	padding: 0;
	border: 0;
	max-width: 100%;
	width: 100%;
	height: 100dvh;
	max-height: 100dvh;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	overflow-y: auto;
	overscroll-behavior: contain;

	/* Wjazd/wyjazd w top-layer – overlay+display w transition (allow-discrete). */
	opacity: 0;
	transform: translateX(100%);
	transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), display 0.35s, overlay 0.35s;
	transition-behavior: allow-discrete;
}

.mobile-menu[open] {
	opacity: 1;
	transform: translateX(0);

	@starting-style {
		opacity: 0;
		transform: translateX(100%);
	}
}

.mobile-menu::backdrop {
	background: rgb(0 0 0 / 0.5);
	opacity: 0;
	transition: opacity 0.35s ease, display 0.35s, overlay 0.35s;
	transition-behavior: allow-discrete;
}

.mobile-menu[open]::backdrop {
	opacity: 1;

	@starting-style { opacity: 0; }
}

.mobile-menu__inner {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: var(--wp--preset--spacing--sm);
}

.mobile-menu__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 72px;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.mobile-menu__title {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 0.875rem;
}

.mobile-menu__logo {
	height: 32px;
	width: auto;
	filter: brightness(0) invert(1); /* logo na biało, na granatowym tle menu */
}

.mobile-menu__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 48px;
	height: 48px;
	margin-right: -0.25rem;
	background: rgb(255 255 255 / 0.08);
	border: 1px solid rgb(255 255 255 / 0.25);
	border-radius: 999px;
	color: var(--wp--preset--color--base);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mobile-menu__close:hover,
.mobile-menu__close:focus-visible {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--primary);
}

.mobile-menu__close svg { width: 1.6rem; height: 1.6rem; }

.mobile-menu__list {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: clamp(1.25rem, 6vw, 1.5rem);
}

.mobile-menu__list a {
	display: flex;
	align-items: center;
	min-height: 56px; /* dostępny tap-target */
	padding: 0.5rem 0;
	border-bottom: 1px solid rgb(255 255 255 / 0.1);
	color: var(--wp--preset--color--base);
	text-decoration: none;
	transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu__list a:hover,
.mobile-menu__list a:focus-visible,
.mobile-menu__list .current-menu-item > a {
	color: var(--wp--preset--color--accent);
}

/* Lekkie przesunięcie na hover/focus – wyraźna informacja zwrotna dotyku. */
.mobile-menu__list a:hover,
.mobile-menu__list a:focus-visible {
	padding-left: 0.5rem;
}

/* Aktywna pozycja – złoty znacznik z lewej. */
.mobile-menu__list .current-menu-item > a {
	padding-left: 0.85rem;
	border-left: 3px solid var(--wp--preset--color--accent);
}

/* Przełącznik języka w menu mobilnym – na ciemnym tle (odwrócona pigułka).
   align-self: rodzic (.mobile-menu__inner) to flex-column z align-items: stretch – bez tego
   pigułka rozciągałaby się na całą szerokość; flex-start = zawija własną treść przy lewej. */
.mobile-menu__lang {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 0.25rem;
	margin-top: 1.5rem;
	padding: 0.25rem;
	border: 1px solid rgb(255 255 255 / 0.25);
	border-radius: 999px;
}

.mobile-menu__lang__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3rem;
	padding: 0.5rem 0.875rem;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: rgb(255 255 255 / 0.7);
	text-decoration: none;
	border-radius: 999px;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.mobile-menu__lang__item.is-active {
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--base);
}

.mobile-menu__lang a.mobile-menu__lang__item:hover,
.mobile-menu__lang a.mobile-menu__lang__item:focus-visible {
	color: #fff;
	background: rgb(255 255 255 / 0.12);
}

.mobile-menu__lang__item.is-untranslated { opacity: 0.5; }

.mobile-menu__social {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: auto 0 1.5rem;
	padding-top: 1.5rem;
	list-style: none;
	color: rgb(255 255 255 / 0.7);
}

.mobile-menu__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: inherit;
	transition: color 0.2s ease;
}
.mobile-menu__social a:hover,
.mobile-menu__social a:focus-visible { color: var(--wp--preset--color--accent); }
.mobile-menu__social svg { width: 1.6rem; height: 1.6rem; }

@media (prefers-reduced-motion: reduce) {
	.mobile-menu,
	.mobile-menu::backdrop,
	.site-header__burger span { transition: none; }
}

/* ── Footer ─────────────────────────────────────────── */
/* Bez margin-block-start: strony kończą się full-bleed sekcją .section z własnym
   dolnym paddingiem – górny margines przeświecałby białym tłem body nad granatem. */
.site-footer {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

.site-footer__bar {
	height: 3px;
	background: var(--wp--preset--color--accent);
}

.site-footer__inner {
	padding-block: var(--wp--preset--spacing--lg);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: var(--wp--preset--spacing--md);
	margin-bottom: var(--wp--preset--spacing--md);
}

/* Brand */
.site-footer__lockup {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.site-footer__logo {
	height: 40px;
	width: auto;
	filter: brightness(0) invert(1); /* logo na biało, na granatowym tle */
}

.site-footer__name {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 0.875rem;
	line-height: 1.15;
}

.site-footer__tagline {
	font-style: italic;
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.6;
	color: rgb(255 255 255 / 0.6);
}

/* Kolumny */
.site-footer__heading {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 0.875rem;
	color: var(--wp--preset--color--accent);
	margin-bottom: 1rem;
}

.site-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: var(--wp--preset--font-size--sm);
}

.site-footer__links a,
.site-footer__contact a {
	color: rgb(255 255 255 / 0.7);
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible,
.site-footer__contact a:hover,
.site-footer__contact a:focus-visible { color: var(--wp--preset--color--base); }

/* Złote podkreślenie wjeżdżające – spójne z headerem (linki menu w stopce). */
.site-footer__links a {
	position: relative;
}
.site-footer__links a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 100%;
	height: 1px;
	background: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}
.site-footer__links a:hover::after,
.site-footer__links a:focus-visible::after {
	transform: scaleX(1);
}

/* Kontakt */
.site-footer__contact {
	font-style: normal;
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.6;
	color: rgb(255 255 255 / 0.7);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.site-footer__org { color: rgb(255 255 255 / 0.9); font-weight: 500; }

.site-footer__contact a { display: inline-flex; align-items: center; gap: 0.4rem; }
.site-footer__contact svg { width: 0.9rem; height: 0.9rem; flex: none; }

/* Social – okrągłe przyciski */
.site-footer__social {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	background: rgb(255 255 255 / 0.1);
	color: var(--wp--preset--color--base);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--primary);
}

.site-footer__social svg { width: 1.25rem; height: 1.25rem; }

/* Dolny pasek: copyright + nieusuwalny kredyt realizacji */
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--sm);
	border-top: 1px solid rgb(255 255 255 / 0.1);
	padding-top: var(--wp--preset--spacing--sm);
}

.site-footer__copy {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	color: rgb(255 255 255 / 0.6);
}

.site-footer__credit {
	display: inline-flex;
	opacity: 0.55;
	transition: opacity 0.2s ease;
}

.site-footer__credit:hover,
.site-footer__credit:focus-visible {
	opacity: 1;
}

.site-footer__credit img {
	display: block;
	height: 1.5rem;
	width: auto;
}

@media (max-width: 32rem) {
	.site-footer__bottom {
		justify-content: center;
		text-align: center;
	}
}

/* ── Pas dofinansowania (biała wstęga nad stopką; każda strona = „stale widoczne") ─────
   Compliance: logo prominentnie, w RÓWNYM rzędzie (nie „naklejki"), na białym tle +
   clearspace, ze zdaniem o finansowaniu. Dane = jedno źródło
   (template-parts/funding-band.php → integracjatyija_wspolfinansowanie()). Flat. */
.funding-band {
	background: #fff;
	border-top: 1px solid var(--wp--preset--color--border);
}

/* Jeden wiersz: zdanie po lewej, logotypy obok. Zawija na wąskich ekranach. */
.funding-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem 2.25rem;
	padding-block: var(--wp--preset--spacing--sm);
}

.funding-band__statement {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--muted);
}

/* Desktop: całe zdanie w jednej linii (na telefonie zawija, by nie wychodziło poza ekran). */
@media (min-width: 48rem) {
	.funding-band__statement {
		white-space: nowrap;
	}
}

.funding-band__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(1.25rem, 4vw, 2.75rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.funding-band__item {
	margin: 0;
	display: inline-flex;
}

/* Normalizacja po POLU (area-based sizing), NIE po jednym wymiarze — inaczej logo
   o różnych proporcjach (kwadrat vs prostokąt) nigdy nie wyglądają na równe.
   height = baza / √(proporcja) → każde logo zajmuje ~tyle samo px², więc „waży"
   optycznie tyle samo. --ar (szer/wys pliku) liczone w PHP (funding-band.php).
   Debiloodporne: cokolwiek klient wgra, samo się optycznie wyrówna.
   Zastrzeżenie: nie wyrówna wewnętrznego marginesu wbudowanego w plik logo. */
.funding-band__img {
	display: block;
	width: auto;
	height: 104px; /* fallback dla przeglądarek bez sqrt() (starsze niż 2023) */
	height: calc(var(--fb-base, 140px) / sqrt(var(--ar, 1)));
	max-height: 130px; /* bezpiecznik: kwadraty nie rosną bez końca */
	object-fit: contain;
}

@media (max-width: 47.99rem) {
	.funding-band__img {
		--fb-base: 104px; /* na telefonie proporcjonalnie mniejsze */
	}
}

.funding-band__link {
	display: inline-flex;
	transition: opacity 0.2s ease;
}

.funding-band__link:hover,
.funding-band__link:focus-visible {
	opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
	.funding-band__link {
		transition: none;
	}
}
