/* ==========================================================================
   Uzdrowiska Pogranicza – style motywu
   Kolory wg Systemu Identyfikacji Wizualnej + warianty spełniające WCAG 2.2 AA.
   Tekst na turkusie/zieleni marki: granat (6,6:1 / 4,5:1). Biały tekst: tylko na
   ciemnym turkusie (#006E7A, 5,9:1), ciemnej zieleni (#2B7A48, 5,3:1) i granacie.
   ========================================================================== */

:root {
	--navy: #11284b;
	--turq: #2ebece;
	--turq-dark: #006e7a;
	--turq-light: #d5f2f5;
	--green: #3ea063;
	--green-dark: #2b7a48;
	--sand: #e1d9cc;
	--sand-light: #f3efe8;
	--gray: #7a7a7a;          /* tylko elementy dekoracyjne/graficzne */
	--gray-text: #595959;     /* tekst pomocniczy: 7:1 na białym */
	--gray-bg: #ebebeb;
	--line: #e3ddd2;
	--white: #fff;

	--font-display: "Wix Madefor Display", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-text: "Wix Madefor Text", system-ui, -apple-system, "Segoe UI", sans-serif;

	--container: 1180px;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--radius: 14px;
	--radius-lg: 28px;
	--shadow: 0 1px 0 rgba(17, 40, 75, .04), 0 12px 32px -20px rgba(17, 40, 75, .45);
	--focus: var(--navy);
	--header-h: 96px;
}

/* ---------- Podstawy ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 1rem;
}

body {
	margin: 0;
	background: var(--white);
	color: var(--navy);
	font-family: var(--font-text);
	font-size: 1.0625rem;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}

img,
svg,
video { max-width: 100%; height: auto; }

img { display: block; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.2;
	color: var(--navy);
	margin: 0 0 .5em;
	text-wrap: balance;
}

p { margin: 0 0 1em; }

a { color: var(--turq-dark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
	border-radius: 4px;
}

.site-main:focus { outline: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; }

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.narrow { max-width: calc(760px + 2 * var(--gutter)); }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 1000;
	background: var(--navy);
	color: var(--white);
	padding: .75rem 1.25rem;
	border-radius: 0 0 10px 10px;
	font-weight: 700;
	text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--white); outline-color: var(--turq); }

[role="list"] { list-style: none; margin: 0; padding: 0; }

/* ---------- Przyciski ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	min-height: 48px;
	padding: .7rem 1.5rem;
	border: 2px solid transparent;
	border-radius: 10px;
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--teal { background: var(--turq-dark); color: var(--white); }
.btn--green { background: var(--green-dark); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--teal:hover,
.btn--green:hover { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--turq-dark); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--pill { border-radius: 999px; }
.btn--sm { min-height: 44px; padding: .5rem 1.25rem; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn .file-meta { text-transform: none; font-weight: 500; }

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--turq-dark);
	cursor: pointer;
}
.icon-btn:hover { background: var(--turq-light); color: var(--navy); }
.icon-btn .icon { width: 24px; height: 24px; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-weight: 700;
	font-family: var(--font-display);
}
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Nagłówek ---------- */

.site-header { position: relative; z-index: 50; background: var(--white); }

.site-header__inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .5rem 1rem;
	min-height: var(--header-h);
	padding-block: .75rem;
}

.site-logo { display: block; margin-right: auto; border-radius: 6px; }
.site-logo__img { width: clamp(170px, 19vw, 230px); height: auto; }

.site-header__tools { display: flex; align-items: center; gap: .25rem; margin-left: auto; }

/* Przełącznik języka */
.lang-switcher ul { display: flex; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.lang-switcher a {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 .4rem;
	border-radius: 8px;
	color: var(--navy);
	font-family: var(--font-display);
	font-weight: 600;
	text-decoration: none;
}
.lang-switcher a:hover { background: var(--turq-light); }
.lang-switcher a[aria-current="true"] { font-weight: 800; text-decoration: underline; text-decoration-color: var(--turq-dark); text-decoration-thickness: 3px; text-underline-offset: .4em; }
.lang-switcher--gtranslate { font-size: .95rem; }

/* Menu */
.site-nav .menu { display: flex; align-items: center; gap: .25rem 2rem; margin: 0; padding: 0; list-style: none; }
.site-nav .menu > li { position: relative; display: flex; align-items: center; }
.site-nav a {
	display: inline-block;
	padding: .55rem 0;
	color: var(--navy);
	font-family: var(--font-display);
	font-size: 1.0625rem;
	font-weight: 500;
	text-decoration: none;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a,
.site-nav a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-color: var(--turq);
	text-decoration-thickness: 3px;
	text-underline-offset: .45em;
}

.submenu-toggle {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 44px;
	margin-left: .1rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--navy);
	cursor: pointer;
	border-radius: 6px;
}
.submenu-toggle .icon { width: 18px; height: 18px; transition: transform .2s; }
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: -1rem;
	z-index: 60;
	display: none;
	min-width: 250px;
	margin: 0;
	padding: .6rem;
	list-style: none;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.site-nav .sub-menu a { display: block; padding: .6rem .8rem; border-radius: 8px; }
.site-nav .sub-menu a:hover { background: var(--sand-light); text-decoration: none; }
.site-nav .submenu-toggle[aria-expanded="true"] + .sub-menu { display: block; }
/* Bez JS: podmenu otwiera się przy najechaniu i fokusie. */
html:not(.js) .site-nav li:hover > .sub-menu,
html:not(.js) .site-nav li:focus-within > .sub-menu { display: block; }

.menu-toggle {
	display: none;
	align-items: center;
	gap: .4rem;
	min-height: 44px;
	padding: .4rem .9rem;
	border: 2px solid var(--navy);
	border-radius: 10px;
	background: var(--white);
	color: var(--navy);
	font-family: var(--font-display);
	font-weight: 700;
	cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle__icon { display: inline-flex; }
.menu-toggle__icon--close,
.menu-toggle[aria-expanded="true"] .menu-toggle__icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon--close { display: inline-flex; }

/* Wyszukiwarka */
.site-search { background: var(--sand-light); border-top: 1px solid var(--line); padding: 1.25rem 0 1.5rem; }
.js .site-search:not(.is-open) { display: none; }
.search-toggle[aria-expanded="true"] { background: var(--turq-light); color: var(--navy); }

.search-form { max-width: 640px; }
.search-form__label { display: block; margin-bottom: .4rem; font-weight: 700; font-family: var(--font-display); }
.search-form__row { display: flex; gap: .5rem; }
.search-form__input,
.event-filter__select {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	padding: .6rem 1rem;
	border: 2px solid var(--gray-text);
	border-radius: 10px;
	background: var(--white);
	color: var(--navy);
	font: inherit;
}
.search-form__input:focus-visible,
.event-filter__select:focus-visible { border-color: var(--navy); outline-offset: 2px; }
.search-form__submit .icon { width: 20px; height: 20px; }

/* Desktop – menu w nagłówku */
/* Progi w em – reagują na powiększenie domyślnej czcionki w przeglądarce. */
@media (min-width: 68.75em) {
	/* Jeden rząd: logo | wyszukiwarka + języki | menu. Menu nigdy nie spada pod logo –
	   przy dłuższych nazwach (np. po litewsku) zmniejszają się odstępy, a w ostateczności
	   pozycje zawijają się w drugą linię po prawej stronie. */
	.site-header__inner { flex-wrap: nowrap; }
	.site-logo { flex: none; }
	.site-header__tools { order: 2; flex: none; margin-left: 0; }
	.site-nav { order: 3; flex: 0 1 auto; min-width: 0; margin-left: clamp(.5rem, 1.2vw, 1.25rem); }
	.site-nav .menu { flex-wrap: wrap; justify-content: flex-end; column-gap: 2rem; }
	/* Tłumaczenia (LT, EN…) mają dłuższe nazwy – mniejszy odstęp, żeby menu zostało w jednej linii jak po polsku. */
	html:not([lang^="pl"]) .site-nav .menu { column-gap: 1.25rem; }
	.site-nav .menu > li > a { white-space: nowrap; }
}

/* Tablet / telefon – menu rozwijane */
@media (max-width: 68.7499em) {
	.menu-toggle { display: inline-flex; margin-left: .25rem; }
	html:not(.js) .menu-toggle { display: none; }
	.site-nav { flex-basis: 100%; }
	.js .site-nav:not(.is-open) { display: none; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0 1rem; border-top: 1px solid var(--line); }
	.site-nav .menu > li { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--line); }
	.site-nav .menu > li > a { padding: .85rem 0; font-size: 1.125rem; }
	.submenu-toggle { width: 48px; height: 48px; }
	.site-nav .sub-menu { position: static; flex-basis: 100%; min-width: 0; margin: 0 0 .75rem; box-shadow: none; border: 0; background: var(--sand-light); }
}

@media (max-width: 480px) {
	.site-logo__img { width: 140px; }
	.menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.menu-toggle { padding: .4rem .5rem; margin-left: .15rem; }
	.icon-btn { width: 40px; height: 40px; }
	.lang-switcher a { min-width: 33px; padding: 0 .15rem; font-size: .9375rem; }
}

/* Informacja o tłumaczeniu maszynowym */
.mt-notice { background: var(--turq-light); color: var(--navy); font-size: .9375rem; padding: .6rem 0; }
.mt-notice a { color: var(--navy); font-weight: 700; margin-left: .35rem; }
.mt-notice .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mt-notice__text { margin: 0; }
.mt-notice__close {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 50%;
	background: none;
	color: var(--navy);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}
.mt-notice__close[hidden] { display: none; }
.mt-notice__close:hover { border-color: var(--navy); }
.mt-notice__close:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

/* ---------- Styl tekstu z paska edytora (krój, rozmiar, kolor – tylko wartości marki) ---------- */
.up-font--display { font-family: var(--font-display); }
/* Względem akapitu (jak w Wordzie „większy / mniejszy”); „Mały” w zwykłym akapicie = 15 px – nie mniej. */
.up-size--s { font-size: max(.875em, .9375rem); }
.up-size--l { font-size: 1.3em; line-height: 1.35; }
.up-size--xl { font-size: 1.65em; line-height: 1.25; }
.up-color--turkus { color: var(--turq-dark); }
.up-color--zielen { color: var(--green-dark); }
.up-color--szary { color: var(--gray-text); }

/* ---------- Baner (hero) ---------- */

.hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
	min-height: clamp(460px, 52vw, 680px);
	background: var(--sand-light);
	isolation: isolate;
}

.hero__media { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: -1; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: 0; transition: opacity .6s ease; }
.hero__video.is-playing, .hero__video.is-paused { opacity: 1; }
/* Wstrzymanie filmu (WCAG 2.2.2) – w prawym dolnym rogu zdjęcia; .hero__media ma z-index -1, więc przycisk dostaje własną warstwę. */
.hero { isolation: isolate; }
/* Ikona w prawym dolnym rogu banera; nazwa przycisku dla czytników ekranu i dymek (title). */
.hero__toggle { position: absolute; right: clamp(.75rem, 1.5vw, 1.25rem); bottom: clamp(.75rem, 1.5vw, 1.25rem); z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 2px solid var(--white); border-radius: 50%; background: var(--navy); color: var(--white); cursor: pointer; }
.hero__toggle:hover { background: var(--white); color: var(--navy); border-color: var(--navy); }
.hero__toggle[data-paused="true"] .hero__toggle-icon--pause,
.hero__toggle[data-paused="false"] .hero__toggle-icon--play { display: none; }

.hero__panel {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	align-items: center;
	background: var(--turq);
	border-bottom-right-radius: clamp(90px, 18vw, 240px) clamp(110px, 20vw, 270px);
	padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(3.5rem, 7vw, 6rem) max(var(--gutter), calc((100vw - var(--container)) / 2));
}
.hero__content { max-width: 470px; }

.hero__title {
	margin: 0 0 1.25rem;
	padding-left: clamp(1rem, 2vw, 1.75rem);
	border-left: 4px solid currentColor;
	font-size: clamp(2.4rem, 4.6vw, 4.1rem);
	font-weight: 700;
	line-height: 1.05;
	text-transform: uppercase;
	letter-spacing: .005em;
}
.hero__text { font-size: clamp(1.0625rem, 1.5vw, 1.375rem); line-height: 1.45; margin-bottom: 2rem; }

/* Wariant „jasny” (domyślny): turkus marki + granat */
.hero--jasny .hero__panel { color: var(--navy); }
.hero--jasny .hero__title { color: var(--navy); }
.hero--jasny .btn--hero { background: var(--navy); color: var(--white); }
.hero--jasny .btn--hero:hover { background: var(--white); color: var(--navy); }

/* Wariant „ciemny”: ciemny turkus + biel */
.hero--ciemny .hero__panel { background: var(--turq-dark); color: var(--white); --focus: var(--white); }
.hero--ciemny .hero__title { color: var(--white); }
.hero--ciemny .btn--hero { background: var(--white); color: var(--navy); }
.hero--ciemny .btn--hero:hover { background: var(--navy); color: var(--white); }

.btn--hero { min-height: 56px; padding: .85rem 1.75rem; font-size: clamp(1rem, 1.4vw, 1.25rem); }

@media (max-width: 800px) {
	.hero { grid-template-columns: 1fr; min-height: 0; }
	.hero__panel { grid-column: 1; grid-row: 1; border-bottom-right-radius: 90px 70px; padding: 2.5rem var(--gutter) 3.5rem; }
	.hero__media { grid-row: 2; position: relative; z-index: -1; margin-top: -70px; aspect-ratio: 4 / 3; }
}

/* ---------- Strona główna z bloków ---------- */

/* Zwykłe bloki (akapit, nagłówek, obraz…) wstawione między sekcjami – w szerokości treści. */
.home-blocks > :not([class*="wp-block-uzdrowiska-"], .alignfull, .screen-reader-text) {
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin: 1.25rem auto;
	padding-inline: var(--gutter);
}
.home-blocks > :empty { display: none; }
.home-blocks > [class*="wp-block-uzdrowiska-"] + :not([class*="wp-block-uzdrowiska-"]) { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.home-blocks > :not([class*="wp-block-uzdrowiska-"]):has(+ [class*="wp-block-uzdrowiska-"]) { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.home-blocks > .alignwide { max-width: calc(1180px + 2 * var(--gutter)); }

/* ---------- Sekcje ---------- */

.section { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.25rem); }
.section--calendar { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section--tiles { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.section--related { background: var(--sand-light); }
.section__more { text-align: center; margin: 2.5rem 0 0; }

.section-title {
	display: table;
	margin: 0 auto 2.25rem;
	padding: 0 clamp(1rem, 4vw, 3.5rem) .7rem;
	border-bottom: 3px solid var(--turq);
	font-size: clamp(1.6rem, 2.6vw, 2.125rem);
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: .01em;
}

.empty-state { padding: 2rem; text-align: center; background: var(--sand-light); border-radius: var(--radius); }

/* ---------- Kalendarz – pasek ---------- */

.cal-wrap { max-width: 1100px; margin-inline: auto; }
.cal-wrap[aria-busy="true"] { opacity: .55; }

.cal-strip__head { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: .9rem; }
.cal-strip__month { margin: 0; min-width: 12ch; text-align: center; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.cal-strip__nav {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 2px solid var(--navy);
	border-radius: 50%;
	color: var(--navy);
	text-decoration: none;
}
.cal-strip__nav:hover { background: var(--navy); color: var(--white); }
/* Pierwszy miesiąc kalendarza – brak poprzedniego (element nieaktywny, WCAG 1.4.3 go nie obejmuje). */
.cal-strip__nav.is-disabled { opacity: .3; cursor: default; }
.cal-strip__nav.is-disabled:hover { background: none; color: var(--navy); }
.cal-strip__nav .icon { width: 20px; height: 20px; }

.cal-strip__scroller { overflow-x: auto; padding: 4px 4px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; border-radius: 12px; }
.cal-strip__days { display: flex; gap: 3px; min-width: 100%; margin: 0; padding: 0; list-style: none; }
.cal-day { flex: 1 0 2rem; scroll-snap-align: start; }
.cal-day > a,
.cal-day__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .05rem;
	padding: .45rem 0 .7rem;
	border-radius: 12px;
	background: var(--gray-bg);
	color: var(--gray-text);
	line-height: 1.2;
	text-decoration: none;
}
.cal-day__wd { font-size: .8125rem; }
.cal-day__n { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; color: var(--navy); }
.cal-day.is-weekend .cal-day__wd { color: var(--navy); font-weight: 700; }
.cal-day.has-events > a { background: var(--turq-light); color: var(--navy); box-shadow: inset 0 0 0 2px var(--turq); }
.cal-day.has-events .cal-day__n { font-weight: 800; }
.cal-day.has-events > a:hover { background: var(--navy); color: var(--white); box-shadow: none; }
.cal-day.has-events > a:hover .cal-day__n { color: var(--white); }
.cal-day.is-today > a,
.cal-day.is-today .cal-day__inner { box-shadow: inset 0 0 0 3px var(--navy); }
.cal-day__dot { position: absolute; bottom: .3rem; width: 7px; height: 7px; border-radius: 50%; background: var(--green-dark); }

.cal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; max-width: 1100px; margin: 1.5rem auto 0; }
.cal-footer__next { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: baseline; }
.cal-footer__label { font-weight: 700; font-family: var(--font-display); }
.cal-footer__next a { font-weight: 700; color: var(--navy); }
.cal-footer__date { color: var(--gray-text); }

/* ---------- Kafelki uzdrowisk ---------- */

.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem clamp(1.25rem, 3vw, 2.5rem); max-width: 1000px; margin-inline: auto; }
.tiles > li { flex: 0 1 290px; display: flex; }

.u-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: var(--sand-light);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	overflow: hidden;
	text-align: center;
}
.u-card__media { aspect-ratio: 29 / 15; background: var(--sand); border-top: 5px solid var(--turq); }
.u-card--lt .u-card__media { border-top-color: var(--green); }
.u-card__media img { width: 100%; height: 100%; object-fit: cover; }
.u-card__body { display: flex; flex: 1; flex-direction: column; align-items: center; padding: 1rem 1.25rem 1.6rem; }
.u-card__country { margin: 0; font-size: .9375rem; color: var(--gray-text); }
.u-card__title { margin: .1rem 0 .55rem; font-size: 1.375rem; text-transform: uppercase; letter-spacing: .01em; }
.u-card__text { flex: 1; margin: 0 0 1.1rem; font-size: .9375rem; line-height: 1.5; }

/* ---------- Aktualności ---------- */

.filter { margin: -.75rem 0 2rem; }
/* Strona Aktualności: przyciski od lewej krawędzi treści (jak tytuł i karty), odstęp od nagłówka jak w innych podstronach, do kart – jak między kartami */
.section--tight > .filter { margin: 0 0 2rem; }
.section--tight > .filter .filter__list { justify-content: flex-start; }
/* Strona Aktualności i wpis: przyciski rozciągnięte na całą szerokość treści (każdy rząd od lewej do prawej). */
.section--tight > .filter .filter__list > li { flex: 1 1 auto; }
.section--tight > .filter .filter__btn { width: 100%; justify-content: center; }
.filter__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.filter__btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: .45rem 1.1rem;
	border: 2px solid var(--sand);
	border-radius: 999px;
	background: var(--white);
	color: var(--navy);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: .9375rem;
	text-decoration: none;
}
.filter__btn:hover { border-color: var(--navy); color: var(--navy); }
.filter__btn[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

.news-results[aria-busy="true"] { opacity: .5; transition: opacity .2s; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.news-grid > li { display: flex; }

.news-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-3px); }
.news-card:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.news-card__title a:focus-visible { outline: none; }
.news-card__media { aspect-ratio: 16 / 10; background: var(--sand-light); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--turq); }
.news-card__placeholder .icon { width: 56px; height: 56px; }
.news-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.2rem 1.4rem 1.4rem; }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin: 0 0 .5rem; font-size: .875rem; color: var(--gray-text); }
.news-card__cat { padding: .1rem .6rem; border-radius: 999px; background: var(--turq-light); color: var(--navy); font-weight: 600; }
.news-card__title { margin: 0 0 .5rem; font-size: 1.25rem; line-height: 1.3; }
.news-card__title a { color: var(--navy); text-decoration: none; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.news-card:hover .news-card__title a { text-decoration: underline; text-decoration-color: var(--turq); text-decoration-thickness: 2px; }
.news-card__excerpt { margin: 0 0 .75rem; font-size: .9375rem; line-height: 1.55; flex: 1; }
.news-card__source { display: flex; align-items: center; gap: .35rem; margin: 0; font-size: .875rem; font-weight: 600; color: var(--green-dark); }
.news-card__source .icon { width: 1em; height: 1em; --icon-cut: var(--white); }

/* ---------- Slider „Poczuj naturę” ---------- */

.nature { position: relative; background: var(--gray-bg); overflow: hidden; }
.nature__slide { display: grid; grid-template-columns: minmax(0, 54%) minmax(0, 1fr); }
.js .nature__slides { display: grid; }
/* Przesuwanie w poziomie: następny slajd wjeżdża z prawej, poprzedni wyjeżdża w lewo (przy cofaniu odwrotnie). */
.js .nature__slide {
	grid-area: 1 / 1;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform .75s cubic-bezier(.65, 0, .35, 1), visibility 0s linear .75s;
}
.js .nature__slide.is-active { transform: none; visibility: visible; transition: transform .75s cubic-bezier(.65, 0, .35, 1), visibility 0s; }
.js .nature__slide.is-left { transform: translateX(-100%); }
.js .nature__slide.is-instant { transition: none; }
html:not(.js) .nature__slide + .nature__slide { border-top: 1px solid var(--line); }
html:not(.js) .nature__controls { display: none; }

.nature__text {
	align-self: center;
	padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem) clamp(5.5rem, 7vw, 6.5rem) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.nature__title { margin: 0 0 1.25rem; padding-left: .9rem; border-left: 5px solid var(--turq-dark); font-size: clamp(1.75rem, 3vw, 2.375rem); }
.nature__content { max-width: 34rem; }
.nature__lead { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.45; }
.nature__small { font-size: .9375rem; color: var(--gray-text); }
.nature__slide--noimg { grid-template-columns: minmax(0, 1fr); }
.nature__slide--noimg .nature__text { padding-right: var(--gutter); }
/* Stała wysokość niezależna od proporcji zdjęcia: zdjęcie wypełnia kolumnę i jest przycinane (object-fit), a nie rozciąga slidera. */
.nature__media { position: relative; min-height: clamp(340px, 32vw, 500px); }
.nature__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-bottom-left-radius: 46% 100%;
}

.nature__controls {
	position: absolute;
	bottom: 1.5rem;
	left: 0;
	width: 54%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
}
.nature__dots { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.nature__dot,
.nature__pause {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--gray);
	cursor: pointer;
}
.nature__dot .icon { width: 22px; height: 22px; transition: transform .2s, color .2s; }
.nature__dot:hover { color: var(--navy); }
.nature__dot[aria-current="true"] { color: var(--turq-dark); }
.nature__dot[aria-current="true"] .icon { transform: scale(1.25); }
.nature__pause { color: var(--navy); }
.nature__pause .icon { width: 20px; height: 20px; }
.nature__play-icon,
.nature__pause[data-paused="true"] .nature__pause-icon { display: none; }
.nature__pause[data-paused="true"] .nature__play-icon { display: inline-flex; }

@media (max-width: 800px) {
	.nature__slide { grid-template-columns: 1fr; }
	.nature__media { order: -1; }
	.nature__media { min-height: 0; }
	.nature__media img { position: static; height: auto; min-height: 0; aspect-ratio: 4 / 3; border-bottom-left-radius: 0; border-bottom-right-radius: 40% 22%; }
	.nature__text { padding: 2rem var(--gutter) 1rem; }
	.nature__controls { position: static; width: auto; padding: 0 var(--gutter) 1.75rem; justify-content: flex-start; }
}

/* ---------- Nagłówek podstrony ---------- */

.page-header {
	position: relative;
	padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(2rem, 4vw, 3rem);
	background: var(--sand-light) url("../img/contours-light.svg") no-repeat right -60px top -80px / min(560px, 70vw);
	overflow: hidden;
}
.page-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--turq); }
.page-header--lt::after { background: var(--green); }
.page-header__kicker { margin: 0 0 .4rem; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .9375rem; color: var(--turq-dark); }
.page-header--lt .page-header__kicker { color: var(--green-dark); }
.page-header__kicker a { color: inherit; }
.page-header__title { margin: 0; font-size: clamp(2rem, 4.2vw, 3.125rem); max-width: 22ch; }
.page-header__lead { max-width: 46rem; margin: 1rem 0 0; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; }

.breadcrumbs { margin-bottom: 1rem; font-size: .9375rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/" / ""; margin-right: .3rem; color: var(--gray-text); }
.breadcrumbs a { color: var(--navy); }
.breadcrumbs [aria-current] { color: var(--gray-text); }

/* ---------- Treść wpisów ---------- */

.entry { min-width: 0; }
.entry__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; color: var(--gray-text); }
.entry__meta li { display: inline-flex; align-items: center; gap: .4rem; }
.entry__meta .icon { color: var(--turq-dark); --icon-cut: var(--white); }
.entry__figure { margin: 0 0 2rem; max-width: 960px; }
.layout-sidebar .entry__figure { max-width: none; }
.entry__figure img { width: 100%; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0; }

.entry-content { max-width: 760px; }
.layout-sidebar .entry-content { max-width: none; }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin-top: 2em; }
.entry-content h3 { font-size: 1.375rem; margin-top: 1.75em; }
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .35em; }
.entry-content ul li::marker { color: var(--turq-dark); }
.entry-content a { text-decoration-thickness: 1px; }
.entry-content blockquote { margin-inline: 0; padding: .5rem 0 .5rem 1.25rem; border-left: 5px solid var(--turq); font-size: 1.1875rem; }
.entry-content figcaption,
.entry-content .wp-element-caption { margin-top: .5rem; font-size: .9375rem; color: var(--gray-text); }
.entry-content img { border-radius: 10px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th,
.entry-content td { padding: .6rem .75rem; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--sand-light); }
.is-style-lead,
.entry-content .is-style-lead { font-size: clamp(1.1875rem, 1.8vw, 1.375rem); line-height: 1.5; }
.entry-content .wp-block-button__link { border-radius: 10px; font-family: var(--font-display); font-weight: 700; }
.entry-content .wp-block-button__link:hover { background: var(--navy); color: var(--white); }

/* Galeria (dodawana w treści artykułu; podgląd pełnoekranowy z rdzenia WordPress) */
.entry-content .wp-block-gallery { gap: .75rem; }
.entry-content .wp-block-gallery img { border-radius: 10px; }

/* Załączniki */
.wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1.5rem;
	padding: 1rem 1.25rem;
	background: var(--sand-light);
	border: 1px solid var(--line);
	border-left: 5px solid var(--turq-dark);
	border-radius: 12px;
}
.wp-block-file > a:first-child { font-weight: 700; color: var(--navy); }
.wp-block-file .file-meta { font-weight: 500; color: var(--gray-text); }
.wp-block-file .wp-block-file__button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: .5rem 1.1rem;
	border-radius: 999px;
	background: var(--turq-dark);
	color: var(--white);
	font-family: var(--font-display);
	font-weight: 700;
	text-decoration: none;
}
.wp-block-file .wp-block-file__button:hover { background: var(--navy); color: var(--white); }

/* ---------- Układy podstron ---------- */

.layout-sidebar { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
	.layout-sidebar { grid-template-columns: minmax(0, 1fr) 340px; gap: 3.5rem; align-items: start; }
	.sidebar { position: sticky; top: 1.5rem; }
}
.sidebar { display: grid; gap: 1.5rem; }

.box {
	padding: 1.5rem;
	background: var(--sand-light);
	border-top: 5px solid var(--turq);
	border-radius: 0 0 20px 20px;
}
.box--lt { border-top-color: var(--green); }
.box--office { background: var(--navy); color: var(--white); border-top-color: var(--turq); --focus: var(--white); }
.box--office .box__title,
.box--office a { color: var(--white); }
.box--office .contact-list .icon { color: var(--turq); --icon-cut: var(--navy); }
.box__title { font-size: 1.375rem; margin-bottom: .75rem; }
.box__kicker { margin: 0; font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--turq-dark); }
.box--lt .box__kicker { color: var(--green-dark); }
.box__name { font-weight: 600; margin-bottom: .75rem; }
.box > :last-child { margin-bottom: 0; }

.contact-list { display: grid; gap: .6rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: .65rem; overflow-wrap: anywhere; }
.contact-list .icon { width: 20px; height: 20px; margin-top: .2em; color: var(--turq-dark); --icon-cut: var(--sand-light); }

.details { display: grid; gap: .9rem; margin: 0 0 1.25rem; }
.details dt { display: flex; align-items: center; gap: .45rem; font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-text); }
.details dt .icon { width: 18px; height: 18px; color: var(--turq-dark); --icon-cut: var(--sand-light); }
.details dd { margin: .15rem 0 0; font-weight: 600; }

.notice { padding: .9rem 1.2rem; border-left: 5px solid var(--navy); background: var(--sand-light); font-weight: 600; }

.contact-intro { display: grid; gap: 2rem; margin-bottom: 3.5rem; }
@media (min-width: 900px) { .contact-intro { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; } }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
.contact-grid > li { display: flex; }
.contact-grid .box { width: 100%; }

/* Wydarzenia */
.layout-events { display: grid; gap: 2.5rem; }
.layout-events > *,
.layout-sidebar > * { min-width: 0; }
@media (min-width: 960px) { .layout-events { grid-template-columns: 380px minmax(0, 1fr); gap: 3.5rem; align-items: start; } }
.list-title { font-size: 1.625rem; margin-bottom: 1.25rem; }

.event-list { display: grid; gap: 1rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.event-item {
	display: flex;
	gap: 1.1rem;
	padding: 1.1rem 1.25rem;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--shadow);
}
.event-item.is-past { opacity: .85; box-shadow: none; }
.event-item__date {
	flex: none;
	display: grid;
	place-content: center;
	width: 4.25rem;
	height: 4.25rem;
	margin: 0;
	border-radius: 14px;
	background: var(--turq);
	color: var(--navy);
	text-align: center;
	line-height: 1;
}
.event-item__day { font-family: var(--font-display); font-size: 1.625rem; font-weight: 800; }
.event-item__month { font-size: .8125rem; font-weight: 700; text-transform: uppercase; }
.event-item__body { min-width: 0; }
.event-item__title { margin: 0 0 .35rem; font-size: 1.1875rem; }
.event-item__title a { color: var(--navy); }
.event-item__meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: 0; list-style: none; font-size: .9375rem; color: var(--gray-text); }
.event-item__meta li { display: inline-flex; align-items: center; gap: .35rem; }
.event-item__meta .icon { width: 1em; height: 1em; color: var(--turq-dark); --icon-cut: var(--white); }
.event-list--compact .event-item { padding: .8rem; box-shadow: none; }
.event-list--compact .event-item__date { width: 3.5rem; height: 3.5rem; }
.event-list--compact .event-item__day { font-size: 1.3rem; }
.event-list--compact .event-item__title { font-size: 1.0625rem; }

.cal-grid { padding: 1.25rem; background: var(--sand-light); border-radius: 20px; }
.cal-grid__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.cal-grid__title { margin: 0; font-size: 1.25rem; }
.cal-grid__table { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.cal-grid__table th { padding: .25rem 0; font-size: .8125rem; color: var(--gray-text); }
.cal-grid__table abbr { text-decoration: none; }
.cal-grid__table td { padding: 0; text-align: center; }
.cal-grid__table td > a,
.cal-grid__table td > span {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	min-height: 0;
	border-radius: 10px;
	color: var(--navy);
	font-weight: 600;
	text-decoration: none;
}
.cal-grid__table td.has-events > a { background: var(--turq-light); box-shadow: inset 0 0 0 2px var(--turq); font-weight: 800; }
.cal-grid__table td.has-events > a:hover { background: var(--navy); color: var(--white); }
.cal-grid__table td.is-today > * { box-shadow: inset 0 0 0 3px var(--navy); }
.cal-grid__table td.is-selected > a { background: var(--navy); color: var(--white); }
.cal-grid__table .cal-day__dot { bottom: 4px; }
@media (max-width: 400px) {
	.cal-grid { padding: .75rem .5rem; }
	.cal-grid__table { border-spacing: 2px; }
	.cal-grid__table td > a,
	.cal-grid__table td > span { border-radius: 8px; font-size: .9375rem; }
}

.event-filter { margin: 1.5rem 0 1rem; }
.event-filter__label { display: block; margin-bottom: .35rem; font-weight: 700; font-family: var(--font-display); }
.event-filter__row { display: flex; gap: .5rem; }
.event-views { display: flex; gap: .5rem; }
.event-views a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border: 2px solid var(--sand); border-radius: 999px; color: var(--navy); font-weight: 600; text-decoration: none; }
.event-views a[aria-current] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Przełącznik uzdrowisk na podstronie */
.uzd-switch { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.uzd-switch__title { font-size: 1.125rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.uzd-switch__list { display: flex; flex-wrap: wrap; gap: .6rem; }
.uzd-pill { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: .45rem 1.1rem; border-radius: 999px; border: 2px solid var(--turq); color: var(--navy); font-weight: 700; text-decoration: none; }
.uzd-pill--lt { border-color: var(--green); }
.uzd-pill:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.uzd-pill__country { font-weight: 500; }
/* Filtr aktualności według uzdrowisk – te same przyciski co „Pozostałe uzdrowiska” */
.filter__btn.uzd-pill { min-height: 44px; padding: .45rem 1.1rem; border: 2px solid var(--turq); border-radius: 999px; background: transparent; color: var(--navy); font-family: var(--font-text); font-size: 1rem; font-weight: 700; text-transform: none; letter-spacing: 0; }
.filter__btn.uzd-pill--lt { border-color: var(--green); }
.filter__btn.uzd-pill--all { border-color: var(--navy); }
.filter__btn.uzd-pill:hover,
.filter__btn.uzd-pill[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Wyszukiwanie, paginacja */
.search-summary { font-size: 1.125rem; }
.search-again { margin: 1rem 0 2rem; }
.search-list { display: grid; gap: 1.25rem; }
.search-result { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.search-result__type { margin: 0 0 .2rem; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--turq-dark); }
.search-result__title { font-size: 1.375rem; margin-bottom: .35rem; }
.link-list { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; padding: 0; list-style: none; margin-top: 2rem; }

.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 .6rem;
	border-radius: 10px;
	border: 2px solid var(--sand);
	color: var(--navy);
	font-weight: 700;
	text-decoration: none;
}
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pagination a.page-numbers:hover { border-color: var(--navy); }
.pagination .icon { width: 18px; height: 18px; }

/* ---------- Stopka ---------- */

.site-footer {
	position: relative;
	background: var(--navy);
	color: var(--white);
	isolation: isolate;
	--focus: var(--white);
}
/* Motyw poziomic – tylko w narożniku, przygaszony, żeby nie obniżał czytelności tekstu. */
.site-footer::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	z-index: -1;
	width: min(520px, 60vw);
	height: 100%;
	background: url("../img/contours-dark.svg") no-repeat right -120px top -140px / 560px;
	opacity: .45;
	pointer-events: none;
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--turq); }

.site-footer__grid { display: grid; gap: 2.5rem; padding-block: clamp(2.75rem, 5vw, 4rem) 2.5rem; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.1fr .9fr 1.3fr; gap: 3rem; } }

.site-footer__logo { display: inline-block; border-radius: 6px; }
.site-footer__logo img { width: 210px; }
.site-footer__tagline { margin: 1rem 0 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--turq); }

.footer-title { margin: 0 0 1rem; font-size: .9375rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--turq); text-wrap: balance; }
.footer-menu { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.footer-menu a { display: inline-block; padding: .2rem 0; text-decoration: none; }
.footer-menu a:hover { text-decoration: underline; }

.site-footer .contact-list .icon { color: var(--turq); --icon-cut: var(--navy); }
.site-footer__more a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.site-footer__more .icon { width: 1.1em; height: 1.1em; }

.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .18); padding-block: 1.5rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.funding { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.funding__logos { padding: .6rem 1rem; background: var(--white); border-radius: 8px; }
.funding__img { max-height: 64px; width: auto; }
.funding__logos--placeholder { padding: .75rem 1rem; background: transparent; border: 2px dashed rgba(255, 255, 255, .55); color: var(--white); font-size: .875rem; line-height: 1.35; }
.funding__text { max-width: 30rem; margin: 0; font-size: .875rem; line-height: 1.5; }
.site-footer__copy { margin: 0; font-size: .875rem; }

/* ---------- Ruch, tryb wysokiego kontrastu, druk ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
	.news-card:hover { transform: none; }
}

@media (forced-colors: active) {
	.btn,
	.filter__btn,
	.cal-day > a,
	.cal-day__inner,
	.lang-switcher a[aria-current="true"],
	.nature__dot[aria-current="true"] { border: 2px solid ButtonText; }
	.cal-day__dot { background: CanvasText; forced-color-adjust: none; }
	.hero__panel,
	.page-header::after { border: 1px solid CanvasText; }
}

@media print {
	.site-header__tools,
	.site-nav,
	.site-search,
	.nature__controls,
	.filter,
	.site-footer::before { display: none !important; }
	.site-footer { background: none; color: #000; }
	a { color: #000; }
}

/* ---------- Logowanie dla uzdrowisk (WCAG 2.2: 3.3.8, 2.5.8) ---------- */

.login-box { max-width: 30rem; margin-top: 1.5rem; }
.login-box__lead { font-size: 1.125rem; }
.login-box__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.login-errors {
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	border: 2px solid #b32d2e;
	border-left-width: 6px;
	border-radius: 10px;
	background: #fcf0f1;
	color: var(--navy);
}
.login-errors:focus { outline: 3px solid var(--navy); outline-offset: 3px; }
.login-errors__title { margin: 0 0 .4rem; font-size: 1.125rem; }
.login-errors ul { margin: 0; padding-left: 1.2em; }
.login-errors a { color: #8a1f1f; font-weight: 600; }
.login-form { display: grid; gap: 1.25rem; padding: 1.75rem; background: var(--sand-light); border-top: 5px solid var(--turq); border-radius: 0 0 20px 20px; }
.login-form__field { display: grid; gap: .4rem; }
.login-form label { font-family: var(--font-display); font-weight: 700; }
.login-form input[type="text"],
.login-form input[type="password"] {
	width: 100%;
	min-height: 48px;
	padding: .6rem 1rem;
	border: 2px solid var(--gray-text);
	border-radius: 10px;
	background: var(--white);
	color: var(--navy);
	font: inherit;
}
.login-form input:focus-visible { border-color: var(--navy); }
.login-form input[aria-invalid="true"] { border-color: #b32d2e; }
.login-form__error { margin: 0; color: #8a1f1f; font-weight: 600; }
.login-form__password { display: flex; gap: .5rem; }
.login-form__password input { flex: 1; min-width: 0; }
.login-form__toggle {
	flex: none;
	min-height: 48px;
	padding: 0 1rem;
	border: 2px solid var(--navy);
	border-radius: 10px;
	background: var(--white);
	color: var(--navy);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.login-form__toggle[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.login-form__check { display: flex; align-items: center; gap: .6rem; }
.login-form__check input { width: 24px; height: 24px; margin: 0; accent-color: var(--turq-dark); }
.login-form__check label { font-family: inherit; font-weight: 400; }
.login-form__submit { justify-self: start; }
.login-links { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.entry-content .login-errors__title { margin-top: 0; font-size: 1.125rem; }
.entry-content .login-links { padding-left: 0; }
.entry-content .login-links li + li { margin-top: 0; }

/* ---------- WCAG 2.2 – 2.5.8 Rozmiar celu (min. 24 × 24 px) ---------- */

.breadcrumbs a,
.page-header__kicker a,
.details dd a,
.login-links a,
.wp-block-file > a:first-child,
.link-arrow {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding-block: 2px;
}
.login-form__check input { flex: none; }
/* Przycisk powiększenia zdjęcia (lightbox WordPressa) – domyślnie 20 × 20 px. */
.wp-lightbox-container button.lightbox-trigger { width: 32px; height: 32px; padding: 6px; }

/* ---------- WCAG 2.2 – 2.4.11 Fokus niezasłonięty ---------- */

/* Element z fokusem przewijany jest z zapasem – nie chowa się pod paskiem administratora ani przyklejonym panelem. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { scroll-margin-block: 96px; }

/* ---------- Ciemny motyw ----------
 * Włączany przyciskiem w pasku ułatwień albo wg ustawienia systemu (atrybut data-theme na <html>).
 * Zmienne kolorów zamieniają się rolami: --navy to kolor tekstu, --white to tło strony.
 * Elementy na turkusie marki i stopka zachowują swoje kolory (lokalnie przywrócone zmienne).
 * Kontrast (WCAG AA): tekst 14,8:1, tekst pomocniczy 9,2:1, linki 9,4:1.
 */
html[data-theme="dark"] {
	color-scheme: dark;
	--navy: #e6edf7;
	--white: #0f1a2c;
	--turq-dark: #57cfdc;
	--turq-light: #12404a;
	--green-dark: #6fcf8f;
	--sand: #2c3a52;
	--sand-light: #16233a;
	--gray: #8a95a8;
	--gray-text: #b3bdcc;
	--gray-bg: #142036;
	--line: #2a3a55;
	--shadow: 0 1px 0 rgba(0, 0, 0, .35), 0 14px 34px -20px rgba(0, 0, 0, .9);
}
html[data-theme="dark"] body { background: var(--white); }
/* Logo: wersja jasna na ciemnym tle */
.site-logo__img--dark { display: none; }
html[data-theme="dark"] .site-header .site-logo__img:not(.site-logo__img--dark) { display: none; }
html[data-theme="dark"] .site-header .site-logo__img--dark { display: block; }
/* „Wyspy” w kolorach marki – bez zmian względem jasnego motywu */
html[data-theme="dark"] :is(.hero--jasny .hero__panel, .up-cta, .event-item__date) {
	--navy: #11284b;
	--white: #fff;
	--turq-dark: #006e7a;
	--focus: #11284b;
	color: #11284b;
}
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .box--office {
	--navy: #0a1322;
	--white: #e6edf7;
	--focus: #e6edf7;
}
html[data-theme="dark"] .site-footer { border-top: 1px solid var(--line); }
/* Zdjęcia i grafiki: lekko przygaszone, żeby nie raziły na ciemnym tle */
html[data-theme="dark"] :is(.entry-content, .news-card, .tile, .hero__media, .nature__media) img,
html[data-theme="dark"] .hero__video { filter: brightness(.92); }
/* Logotypy UE / Interreg na białym polu (wymogi oznakowania); miejsce zastępcze zostaje przezroczyste */
html[data-theme="dark"] .funding__logos:not(.funding__logos--placeholder) { background: #fff; border-radius: 8px; padding: .5rem; }
/* Kontrast ma pierwszeństwo przed ciemnym motywem */
html.a11y-contrast[data-theme="dark"] { --navy: #fff; --white: #000; }

/* ---------- Pasek ułatwień dostępu ---------- */

.a11y-bar { background: var(--sand-light); border-bottom: 1px solid var(--line); }
.a11y-bar__inner { display: flex; justify-content: flex-end; }
.a11y-bar__list { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0; padding: 4px 0; }
.a11y-bar__list > li { display: flex; align-items: center; }
.a11y-bar__sep { margin-left: .5rem; padding-left: .5rem; border-left: 1px solid var(--line); }
.a11y-bar__btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 .4rem;
	border: 2px solid transparent;
	border-radius: 8px;
	background: transparent;
	color: var(--navy);
	font: 800 17px/1 var(--font-display);
	text-decoration: none;
	cursor: pointer;
}
.a11y-bar__btn:hover { background: var(--white); border-color: var(--line); }
.a11y-bar__btn[aria-pressed="true"],
.a11y-bar__btn[aria-current="page"] { background: var(--navy); color: var(--white); }
.a11y-bar__icon { width: 22px; height: 22px; }
.a11y-bar__txt { white-space: nowrap; }
.a11y-bar__level { position: absolute; top: 1px; right: 3px; font-size: 10px; }

/* Powiększenie tekstu – cały serwis skaluje się względem rozmiaru bazowego (rem). */
html.a11y-size-1 { font-size: 115%; }
html.a11y-size-2 { font-size: 130%; }
html.a11y-size-3 { font-size: 150%; }

/* Odstępy – wartości z WCAG 1.4.12 (lub większe). */
html.a11y-ls body :not(svg, svg *, .a11y-bar *) { letter-spacing: .12em !important; }
html.a11y-ws body :not(svg, svg *, .a11y-bar *) { word-spacing: .16em !important; }
html.a11y-lh body :not(svg, svg *, .a11y-bar *) { line-height: 1.9 !important; }
html.a11y-ps body :is(p, li, dd, blockquote, figcaption):not(.a11y-bar *) { margin-bottom: 2em !important; }

/* Wysoki kontrast: żółto-biały tekst na czarnym tle (min. 15:1). */
html.a11y-contrast,
html.a11y-contrast body,
html.a11y-contrast body *:not(img, svg, svg *, video, iframe) {
	background-color: #000 !important;
	background-image: none !important;
	color: #fff !important;
	border-color: #fff !important;
	box-shadow: none !important;
	text-shadow: none !important;
}
html.a11y-contrast body a,
html.a11y-contrast body a *:not(svg, svg *),
html.a11y-contrast body button,
html.a11y-contrast body button *:not(svg, svg *),
html.a11y-contrast body .btn { color: #ff0 !important; }
html.a11y-contrast body a { text-decoration: underline !important; }
html.a11y-contrast .btn,
html.a11y-contrast button,
html.a11y-contrast input,
html.a11y-contrast select,
html.a11y-contrast .cal-day > a,
html.a11y-contrast .cal-day__inner,
html.a11y-contrast .filter__btn { border: 2px solid #ff0 !important; }
html.a11y-contrast body .a11y-bar__btn[aria-pressed="true"],
html.a11y-contrast body .filter__btn[aria-current="true"],
html.a11y-contrast body .cal-day.has-events > a { background-color: #ff0 !important; color: #000 !important; }
html.a11y-contrast body .a11y-bar__btn[aria-pressed="true"] *,
html.a11y-contrast body .filter__btn[aria-current="true"] *,
html.a11y-contrast body .cal-day.has-events > a * { color: #000 !important; background-color: transparent !important; }
html.a11y-contrast :focus-visible { outline: 3px solid #ff0 !important; outline-offset: 3px; }
html.a11y-contrast .site-logo__img { filter: grayscale(1) brightness(10); }
html.a11y-contrast .hero__media { display: none; }
html.a11y-contrast .hero { min-height: 0; }

@media print { .a11y-bar { display: none !important; } }

/* Przy powiększonym tekście i odstępach długie słowa łamią się zamiast wychodzić poza ekran (WCAG 1.4.10 / 1.4.12). */
html:is(.a11y-size-1, .a11y-size-2, .a11y-size-3, .a11y-ls, .a11y-ws) body { overflow-wrap: anywhere; }
html:is(.a11y-size-2, .a11y-size-3, .a11y-ls) :is(h1, h2, h3, .btn) { hyphens: auto; }
.event-list > li,
.event-item,
.layout-sidebar .sidebar,
.box { min-width: 0; }
@media (max-width: 800px) {
	.hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
	.a11y-bar__inner { justify-content: center; }
	.a11y-bar__btn { min-width: 34px; height: 36px; padding: 0 2px; font-size: 15px; }
	.a11y-bar__sep { margin-left: .2rem; padding-left: .2rem; }
}
.login-notice { margin: 0 0 1.25rem; padding: .9rem 1.2rem; border-left: 5px solid var(--turq-dark); background: var(--turq-light); color: var(--navy); font-weight: 600; }

/* ---------- Wzorce sekcji (patterns/) ---------- */

.up-media-text { gap: 0; background: var(--sand-light); border-radius: var(--radius-lg); overflow: hidden; }
.up-media-text .wp-block-media-text__content { padding: clamp(1.25rem, 4vw, 2.5rem); }
.up-media-text .wp-block-media-text__media img { border-radius: 0; }
.up-hint { font-size: .9375rem; color: var(--gray-text); }
.up-contact-list { list-style: none; padding-left: 0 !important; }
.up-contact-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.up-table table { min-width: 100%; }
.up-table thead th { background: var(--navy); color: var(--white); }
.up-numbers { padding: clamp(1.5rem, 4vw, 2.5rem) !important; background: var(--sand-light); border-top: 5px solid var(--turq); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.up-numbers .up-number { margin: 0; font-family: var(--font-display); font-size: clamp(2.75rem, 6vw, 4rem); font-weight: 800; line-height: 1; color: var(--turq-dark); text-align: center; }
.up-numbers .up-number-label { margin: .4rem 0 0; text-align: center; font-weight: 600; }
.up-cta { padding: clamp(1.5rem, 4vw, 2.75rem) !important; background: var(--turq); color: var(--navy); border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0; }
.up-cta .wp-block-heading { margin-top: 0; color: var(--navy); }
.up-cta .wp-block-button__link { background: var(--navy); color: var(--white); }
.up-cta .wp-block-button__link:hover { background: var(--white); color: var(--navy); }
