/*
 * Strony dla odwiedzających (29–33: Zaplanuj wizytę, Godziny otwarcia, Cennik, Dojazd, Dostępność) – archetyp „Rejestr”:
 * linie, liczebniki tabelaryczne, jedno czerwone zdanie, jedno zdjęcie z klinem (tylko Godziny).
 * Reguły .mppc-ledger*, .mppc-chapter*, .is-style-klin są w chapters.css, .mppc-facts i .mppc-local-nav w content.css –
 * tu wyłącznie nowe klasy .mppc-visit-*. Kolory wyłącznie z ról (--wp--custom--color--*). Punkty łamania: 600, 782, 960 px.
 */

/* --- Podział: nagłówek (5/12) + treść (7/12); .mppc-visit-lead odwraca proporcje (godziny + zdjęcie) --- */

.mppc-visit-split,
.mppc-visit-lead {
	display: grid;
	gap: var(--wp--preset--spacing--48) var(--wp--custom--grid--split-gap);
}

.mppc-visit-split > *,
.mppc-visit-lead > * {
	margin-block: 0;
}

.mppc-visit-split .mppc-visit-split__head > * {
	margin-block: 0;
}

.mppc-visit-split .mppc-visit-split__head > * + * {
	margin-block-start: var(--wp--preset--spacing--32);
}

@media (min-width: 960px) {
	.mppc-visit-split,
	.mppc-visit-lead {
		align-items: start;
	}

	.mppc-visit-split {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}

	.mppc-visit-lead {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}
}

/* Zamykający spis podstron jest cichszy niż nagłówek strony; nagłówek stoi na wysokości pierwszego wiersza, nie nad linią */
.mppc-visit-more h2 {
	font-size: var(--wp--preset--font-size--h-3);
	line-height: var(--wp--custom--line-height--h-3);
	letter-spacing: var(--wp--custom--letter-spacing--h-3);
}

@media (min-width: 960px) {
	.mppc-visit-more .mppc-visit-split__head {
		padding-block-start: var(--wp--preset--spacing--16);
	}
}

/* --- Godziny: sezony jako rejestr + zdjęcie z klinem --- */

/* Szerokość kolumny decyduje o liczbie sezonów w rzędzie (a nie okno przeglądarki), więc nic się nie łamie na 960–1100 px */
.mppc-visit-lead__main {
	container-type: inline-size;
}

.mppc-visit-lead__main > h2 {
	margin-block-end: var(--wp--preset--spacing--32);
}

.mppc-visit-lead__main .mppc-visit-seasons {
	grid-template-columns: minmax(0, 1fr);
	margin-block-start: var(--wp--preset--spacing--48);
}

@container (min-width: 34rem) {
	.mppc-visit-lead__main .mppc-visit-seasons {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.mppc-visit-lead__main > p {
	margin-block: var(--wp--preset--spacing--32) 0;
}

/* Klin wystaje pod zdjęciem (12 % szerokości), więc zdjęcie dostaje zapas od dołu */
.mppc-visit-lead__media {
	width: min(100%, 30rem);
	margin-block-end: var(--wp--preset--spacing--64);
}

@media (min-width: 960px) {
	.mppc-visit-lead__media {
		width: 100%;
	}
}

/* --- Para kolumn „reguła + nagłówek + tekst” (wyjątki i grupy, karty i rezerwacja) --- */

.mppc-ledger.mppc-visit-pair {
	margin-block-start: 0;
}

@media (min-width: 1024px) {
	.mppc-ledger.mppc-visit-pair {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.mppc-ledger__col h2 {
	margin-block: 0 var(--wp--preset--spacing--16);
	font-size: var(--wp--preset--font-size--h-3);
	line-height: var(--wp--custom--line-height--h-3);
	letter-spacing: var(--wp--custom--letter-spacing--h-3);
}

.mppc-ledger__col .mppc-facts {
	margin-block-start: var(--wp--preset--spacing--16);
}

/* Numer telefonu w jednym wierszu */
.mppc-ledger__col a[href^="tel:"] {
	white-space: nowrap;
}

.mppc-ledger__col > p:first-child,
.mppc-ledger__col > h2 + p {
	max-width: 36rem;
}

/* --- Cennik: nazwa po lewej, cena dużą cyfrą tabelaryczną po prawej --- */

.mppc-visit-prices {
	margin: 0;
}

.mppc-visit-prices table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
}

.mppc-visit-prices thead {
	border: 0;
}

.mppc-visit-prices th,
.mppc-visit-prices td {
	padding: var(--wp--preset--spacing--24) 0;
	border: 0;
	border-bottom: var(--wp--custom--border-width--hairline) solid var(--wp--custom--color--border);
	text-align: left;
	vertical-align: baseline;
}

.mppc-visit-prices thead th {
	padding-block: var(--wp--preset--spacing--12);
	border-bottom: var(--wp--custom--border-width--accent) solid var(--wp--custom--color--text);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: var(--wp--custom--font-weight--semibold);
	line-height: var(--wp--custom--line-height--ui);
	letter-spacing: var(--wp--custom--letter-spacing--eyebrow);
	text-transform: uppercase;
}

/* Kolumny rozpoznajemy po pozycji, nie po typie komórki: wiersz dodany w edytorze ma w pierwszej kolumnie <td>, nie <th> */
.mppc-visit-prices tbody tr > :first-child {
	padding-inline-end: var(--wp--preset--spacing--24);
	font-size: var(--wp--preset--font-size--h-4);
	font-weight: var(--wp--custom--font-weight--semibold);
	line-height: var(--wp--custom--line-height--h-4);
	letter-spacing: normal;
	text-align: left;
	white-space: normal;
	font-variant-numeric: normal;
}

.mppc-visit-prices th:last-child,
.mppc-visit-prices tbody tr > :last-child {
	text-align: right;
}

.mppc-visit-prices tbody tr > :last-child {
	width: 1%;
	font-size: var(--wp--preset--font-size--h-3);
	font-weight: var(--wp--custom--font-weight--bold);
	line-height: var(--wp--custom--line-height--h-3);
	letter-spacing: var(--wp--custom--letter-spacing--h-3);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	word-break: keep-all; /* edytor dodaje break-word do komórek, cena łamałaby się przed „zł” */
	overflow-wrap: normal;
	hyphens: manual;
}

@media (max-width: 599px) {
	.mppc-visit-prices th,
	.mppc-visit-prices td {
		padding-block: var(--wp--preset--spacing--16);
	}

	.mppc-visit-prices thead th {
		padding-block: var(--wp--preset--spacing--8);
		letter-spacing: 0;
		text-transform: none;
	}
}

/* --- Dojazd: numerowane sekcje w skali „rejestru” (układ głowy i treści z .mppc-chapter*, liczebnik mniejszy niż w Schronie) --- */

.mppc-visit-section {
	--mppc-visit-num: clamp(3.5rem, 2rem + 4vw, 5.5rem);
	--mppc-chapter-num: calc(var(--mppc-visit-num) * 1.25);
}

.mppc-visit-section .mppc-chapter__num {
	font-size: var(--mppc-visit-num);
}

.mppc-visit-section .mppc-chapter__head h2 {
	max-width: 24ch;
	font-size: var(--wp--preset--font-size--h-3);
	line-height: var(--wp--custom--line-height--h-3);
	letter-spacing: var(--wp--custom--letter-spacing--h-3);
}

.mppc-visit-section .mppc-chapter__body h3 {
	margin-block-start: var(--wp--preset--spacing--32);
	font-size: var(--wp--preset--font-size--h-4);
	line-height: var(--wp--custom--line-height--h-4);
	letter-spacing: var(--wp--custom--letter-spacing--h-4);
}

.mppc-visit-section .mppc-ledger {
	margin-block-start: var(--wp--preset--spacing--64);
}

.mppc-visit-map {
	margin-block-start: var(--wp--preset--spacing--64);
}

.mppc-visit-map > * {
	margin-block: 0;
}

/* --- Dostępność: tematy jako wiersze rejestru (liczebnik | tytuł | treść), kolejne wiersze oddziela cienka linia --- */

.mppc-visit-topics {
	border-top: var(--wp--custom--border-width--indicator) solid var(--wp--custom--color--border-strong);
}

.mppc-visit-topics .mppc-visit-topic {
	--mppc-topic-num: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--8) var(--wp--preset--spacing--32);
	padding-block: var(--wp--preset--spacing--32) var(--wp--preset--spacing--48);
	border-bottom: var(--wp--custom--border-width--hairline) solid var(--wp--custom--color--border);
}

.mppc-visit-topics .mppc-visit-topic > * {
	margin-block: 0;
}

.mppc-visit-topics .mppc-visit-topic__num {
	font-size: var(--mppc-topic-num);
	font-weight: var(--wp--custom--font-weight--bold);
	line-height: var(--wp--custom--line-height--numeral);
	letter-spacing: var(--wp--custom--letter-spacing--numeral);
	color: var(--wp--custom--color--action);
	font-variant-numeric: tabular-nums;
}

.mppc-visit-topics .mppc-visit-topic h2 {
	font-size: var(--wp--preset--font-size--h-3);
	line-height: var(--wp--custom--line-height--h-3);
	letter-spacing: var(--wp--custom--letter-spacing--h-3);
}

.mppc-visit-topics .mppc-visit-topic__body {
	max-width: 46rem;
}

.mppc-visit-topics .mppc-visit-topic__body > * + * {
	margin-block-start: var(--wp--preset--spacing--16);
}

.mppc-visit-topic__list {
	padding-inline-start: var(--wp--preset--spacing--24);
}

.mppc-visit-topics .mppc-visit-topic__list li + li {
	margin-block-start: var(--wp--preset--spacing--8);
}

@media (min-width: 600px) {
	.mppc-visit-topics .mppc-visit-topic {
		grid-template-columns: calc(var(--mppc-topic-num) * 1.3) minmax(0, 1fr);
	}

	.mppc-visit-topics .mppc-visit-topic__num {
		grid-row: 1 / span 2;
	}

	.mppc-visit-topics .mppc-visit-topic h2,
	.mppc-visit-topics .mppc-visit-topic__body {
		grid-column: 2;
	}

	.mppc-visit-topics .mppc-visit-topic__body {
		margin-block-start: var(--wp--preset--spacing--16);
	}
}

@media (min-width: 960px) {
	.mppc-visit-topics .mppc-visit-topic {
		grid-template-columns: calc(var(--mppc-topic-num) * 1.3) minmax(0, 5fr) minmax(0, 7fr);
		align-items: baseline;
	}

	.mppc-visit-topics .mppc-visit-topic__num {
		grid-row: 1;
	}

	.mppc-visit-topics .mppc-visit-topic__body {
		grid-column: 3;
		grid-row: 1;
		margin-block-start: 0;
	}
}

/* --- Wiersze z odnośnikami do podstron: 01 Cennik ↗ (numer z licznika CSS, cały wiersz klikalny, czerwona linia rośnie od lewej) --- */

.mppc-visit-links {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: var(--wp--custom--border-width--indicator) solid var(--wp--custom--color--border-strong);
}

.mppc-visit-links li { /* bez numerów (prośba muzeum 6.11.2026) */
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	margin: 0;
	border-bottom: var(--wp--custom--border-width--hairline) solid var(--wp--custom--color--border);
}

/* Linia akcentu rysowana nakładką, więc obramowanie nie zmienia grubości i nic się nie przesuwa */
.mppc-visit-links li::after {
	content: "";
	position: absolute;
	inset: auto 0 -1px;
	height: var(--wp--custom--border-width--indicator);
	background: var(--wp--custom--color--accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform var(--wp--custom--motion--duration-slow) var(--wp--custom--motion--easing);
	pointer-events: none;
}

.mppc-visit-links li:has(a[href]:hover)::after,
.mppc-visit-links li:has(a[href]:focus-visible)::after {
	transform: scaleX(1);
}

.mppc-visit-links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--16);
	padding-block: var(--wp--preset--spacing--24);
	font-size: var(--wp--preset--font-size--h-3);
	font-weight: var(--wp--custom--font-weight--semibold);
	line-height: var(--wp--custom--line-height--h-3);
	letter-spacing: var(--wp--custom--letter-spacing--h-3);
	color: inherit;
	text-decoration: none;
	transition: color var(--wp--custom--motion--duration-fast) var(--wp--custom--motion--easing);
}

/* Rozciągnięty odnośnik: klika się cały wiersz; fokus rysuje obwódkę wokół wiersza */
.mppc-visit-links a::before {
	content: "";
	position: absolute;
	inset: 0;
}

.mppc-visit-links a:focus-visible {
	outline: 0;
}

.mppc-visit-links a:focus-visible::before {
	outline: var(--wp--custom--focus--width) solid var(--wp--custom--color--focus);
	outline-offset: calc(var(--wp--custom--focus--offset) * -1);
}

.mppc-visit-links a::after {
	content: "";
	flex: none;
	width: 24px;
	height: 24px;
	background-color: var(--wp--custom--color--accent);
	-webkit-mask: var(--mppc-icon-arrow-link) center / contain no-repeat;
	mask: var(--mppc-icon-arrow-link) center / contain no-repeat;
	transition: transform var(--wp--custom--motion--duration-fast) var(--wp--custom--motion--easing);
}

.mppc-visit-links a[href]:hover,
.mppc-visit-links a[href]:focus-visible {
	color: var(--wp--custom--color--link-hover);
}

.mppc-visit-links a[href]:hover::after,
.mppc-visit-links a[href]:focus-visible::after {
	transform: translate(3px, -3px);
}

/* Odnośnik bez celu (strona jeszcze nieopublikowana): wygląda jak tekst, bez ruchu i bez wskaźnika kliknięcia */
.mppc-visit-links a:not([href]) {
	cursor: default;
}

.mppc-visit-links a:not([href])::before {
	display: none;
}

/* --- Zaplanuj wizytę (strona 29): spis podstron od lewej, o 25% szerszy niż dawna kolumna (7/12 ≈ 736 px → 920 px); tytuł w jednym wierszu --- */

.mppc-visit-index .mppc-visit-split {
	grid-template-columns: minmax(0, 1fr);
}

/* --- Zaplanuj wizytę: hero (tytuł czarno-czerwony, lead, zdjęcie z klinem) i karty z ikonami --- */

.mppc-visit-hero {
	overflow-x: clip; /* pasy za zdjęciem nie rozszerzają strony na wąskich ekranach */
	padding-block: var(--wp--preset--spacing--32) var(--wp--preset--spacing--64); /* górny odstęp okruszków jak w .mppc-page-intro */
}

.mppc-visit-hero__grid {
	display: grid;
	gap: var(--wp--preset--spacing--48);
	margin-block-start: var(--wp--preset--spacing--32);
}

.mppc-visit-hero__text > * {
	margin-block: 0;
}

/* dwa słowa w dwóch wierszach (szerokość mieści tylko „Zaplanuj”); pierwszy wiersz czarny, drugi czerwony – bez dodatkowego znacznika w tytule */
.mppc-visit-hero__title {
	max-width: 5.6em;
	overflow-wrap: normal;
	font-size: clamp(2.75rem, 1.5rem + 8vw, 8rem);
	line-height: 0.98;
	letter-spacing: var(--wp--custom--letter-spacing--h-2);
	color: var(--wp--custom--color--accent);
}

.mppc-visit-hero__title::first-line {
	color: var(--wp--custom--color--text);
}

.mppc-visit-hero .mppc-page-lead {
	max-width: 32rem;
	margin-block-start: var(--wp--preset--spacing--48);
	color: var(--wp--custom--color--text);
}

.mppc-visit-hero .mppc-page-lead::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: var(--wp--custom--border-width--accent);
	margin-block-start: var(--wp--preset--spacing--48);
	background: var(--wp--custom--color--accent);
}

/* Zdjęcie jak podgląd w „Projektach” (259 × 642,6 px, skos kąta marki) + dwa czerwone klinie z tyłu: z lewej i nad zdjęciem */
.mppc-visit-hero__photo {
	position: relative;
	isolation: isolate;
	container-type: inline-size;
	width: min(259px, 100%);
	aspect-ratio: 259 / 642.6;
	margin: 0 auto;
}

.mppc-visit-hero__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	clip-path: polygon(0 0, 100% calc(var(--wp--custom--slant) * 100cqw), 100% 100%, 0 calc(100% - var(--wp--custom--slant) * 100cqw));
}

/* Tramwaj (zdjęcie 89): kadr wyśrodkowany na wagonie (numer 164, okno, lampa), a nie na słupie z fotografiami obok */
.mppc-visit-hero__photo:has(.wp-image-89) img {
	object-position: 63% 50%;
}

@media (max-width: 781px) {
	/* mobile: niższy, szerszy kadr (259 × 480 zamiast 259 × 643), więc cały wagon mieści się w pasku zdjęcia */
	.mppc-visit-hero__photo:has(.wp-image-89) {
		aspect-ratio: 259 / 480;
	}
}

.mppc-visit-hero__photo::before,
.mppc-visit-hero__photo::after {
	content: "";
	position: absolute;
	z-index: -1;
	background: var(--wp--custom--color--accent);
}

.mppc-visit-hero__photo::before {
	top: 12%;
	left: -64px;
	width: 120px;
	height: 64%;
	clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%);
}

.mppc-visit-hero__photo::after {
	top: -4%;
	right: -56px;
	width: 160px;
	height: 112%;
	clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
}

@media (min-width: 782px) {
	.mppc-visit-hero__grid {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		align-items: center;
	}

	.mppc-visit-hero__photo {
		/* szersze o 80 px niż podgląd w „Projektach” (259 → 339), tej samej wysokości; 56 px od prawej krawędzi = tyle, ile wystaje prawa szarfa,
		   więc jej brzeg leży równo z prawą krawędzią treści (kart poniżej) */
		--mppc-photo-end: 3.5rem;
		justify-self: end;
		width: min(339px, calc(100% - var(--mppc-photo-end)));
		height: 642.6px;
		aspect-ratio: auto;
		margin-inline: 0 var(--mppc-photo-end);
	}

	@media (min-width: 1200px) {
		.mppc-visit-hero__photo {
			width: 339px; /* może lekko wejść w lukę między kolumnami – środek zdjęcia zostaje w miejscu */
		}
	}
}

/* Karty: numer, ikona, nazwa i strzałka (5 w rzędzie od 1100 px; „Zobacz także” ma 4 karty – 4 w rzędzie); ikona wg adresu podstrony */
.mppc-visit-index .mppc-visit-split, .mppc-visit-more .mppc-visit-split {
	grid-template-columns: minmax(0, 1fr);
}

:is(.mppc-visit-index, .mppc-visit-more) .mppc-visit-links {
	display: grid;
	gap: var(--wp--preset--spacing--16);
	border-top: 0;
}

:is(.mppc-visit-index, .mppc-visit-more) .mppc-visit-links li {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	aspect-ratio: 4 / 5;
	padding: var(--wp--preset--spacing--24);
	border: var(--wp--custom--border-width--hairline) solid var(--wp--custom--color--border);
	background: var(--wp--preset--color--white) var(--mppc-card-icon) no-repeat center 38% / 6rem;
	color: var(--wp--preset--color--neutral-900);
}

:is(.mppc-visit-index, .mppc-visit-more) .mppc-visit-links li::after {
	inset: auto -1px -1px;
}

/* podpis zawsze w dwuwierszowym polu przy dolnej krawędzi: pierwsza linia tekstu na tej samej wysokości we wszystkich kartach */
:is(.mppc-visit-index, .mppc-visit-more) .mppc-visit-links a {
	flex: none;
	align-items: flex-start;
	min-height: 2lh;
	margin-block-start: auto;
	padding-block: 0;
	font-size: var(--wp--preset--font-size--h-4);
	line-height: var(--wp--custom--line-height--h-4);
	letter-spacing: normal;
}

:is(.mppc-visit-index, .mppc-visit-more) .mppc-visit-links li:has(a[href*="godziny"]) { --mppc-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"); }
:is(.mppc-visit-index, .mppc-visit-more) .mppc-visit-links li:has(a[href*="cennik"]) { --mppc-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z'/%3E%3Cpath d='M13 5v2'/%3E%3Cpath d='M13 17v2'/%3E%3Cpath d='M13 11v2'/%3E%3C/svg%3E"); }
:is(.mppc-visit-index, .mppc-visit-more) .mppc-visit-links li:has(a[href*="dojazd"]) { --mppc-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6v6'/%3E%3Cpath d='M15 6v6'/%3E%3Cpath d='M2 12h19.6'/%3E%3Cpath d='M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Cpath d='M9 18h5'/%3E%3Ccircle cx='16' cy='18' r='2'/%3E%3C/svg%3E"); }
:is(.mppc-visit-index, .mppc-visit-more) .mppc-visit-links li:has(a[href*="dostepnosc"]) { --mppc-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='16' cy='4' r='1'/%3E%3Cpath d='m18 19 1-7-6 1'/%3E%3Cpath d='m5 8 3-3 5.5 3-2.36 3.5'/%3E%3Cpath d='M4.24 14.5a5 5 0 0 0 6.88 6'/%3E%3Cpath d='M13.76 17.5a5 5 0 0 0-6.88-6'/%3E%3C/svg%3E"); }
:is(.mppc-visit-index, .mppc-visit-more) .mppc-visit-links li:has(a[href*="regulamin"]) { --mppc-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M10 9H8'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3C/svg%3E"); }

@media (min-width: 480px) {
	:is(.mppc-visit-index, .mppc-visit-more) .mppc-visit-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* mobile: niskie wiersze jeden pod drugim (mała ikona po lewej | podpis ↗) zamiast dużych kwadratów z ikoną pośrodku */
@media (max-width: 781px) {
	:is(.mppc-visit-index, .mppc-visit-more) .mppc-visit-links {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--wp--preset--spacing--8);
	}

	:is(.mppc-visit-index, .mppc-visit-more) .mppc-visit-links li {
		flex-direction: row;
		align-items: center;
		aspect-ratio: auto;
		min-height: 4rem;
		padding: var(--wp--preset--spacing--12, 12px) var(--wp--preset--spacing--16);
		background-size: 1.75rem;
		background-position: var(--wp--preset--spacing--16) center;
	}

	:is(.mppc-visit-index, .mppc-visit-more) .mppc-visit-links li::before {
		flex: none;
		width: 2.5rem;
	}

	:is(.mppc-visit-index, .mppc-visit-more) .mppc-visit-links a {
		flex: 1;
		align-items: center;
		min-height: 0;
		margin-block-start: 0;
		padding-inline-start: 2.75rem;
		font-size: var(--wp--preset--font-size--body);
		line-height: var(--wp--custom--line-height--ui);
	}
}

@media (min-width: 782px) {
	:is(.mppc-visit-index, .mppc-visit-more) .mppc-visit-links {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	:is(.mppc-visit-index, .mppc-visit-more) .mppc-visit-links {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.mppc-visit-more .mppc-visit-links {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.mppc-visit-more .mppc-visit-split {
	gap: var(--wp--preset--spacing--48);
}

/* Dojazd: zdjęcie wejścia nad mapą, w tym samym rytmie odstępów co mapa */
.mppc-visit-entrance {
	margin-block: var(--wp--preset--spacing--64) 0;
}

.mppc-visit-entrance img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* --- Podstrony „Zaplanuj wizytę”: bez zajawki po prawej od tytułu i bez linii nad rozdziałami (zajawka zostaje w meta/SEO) --- */

.parent-pageid-29 .mppc-page-intro .mppc-page-lead {
	display: none;
}

.mppc-visit-section .mppc-chapter__head {
	padding-block-start: 0;
	border-top: 0;
}

/* --- Dojazd: sposoby dojazdu jako równe karty z ikoną (komunikacja, samochód, rower) --- */

.mppc-ledger:has(#komunikacja) {
	--mppc-ico-bus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6v6'/%3E%3Cpath d='M15 6v6'/%3E%3Cpath d='M2 12h19.6'/%3E%3Cpath d='M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Cpath d='M9 18h5'/%3E%3Ccircle cx='16' cy='18' r='2'/%3E%3C/svg%3E");
	--mppc-ico-car: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Cpath d='M9 17h6'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E");
	--mppc-ico-bike: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18.5' cy='17.5' r='3.5'/%3E%3Ccircle cx='5.5' cy='17.5' r='3.5'/%3E%3Ccircle cx='15' cy='5' r='1'/%3E%3Cpath d='M12 17.5V14l-3-3 4-3 2 3h2'/%3E%3C/svg%3E");
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
	gap: var(--wp--preset--spacing--24);
}

@media (min-width: 900px) {
	.mppc-ledger:has(#komunikacja) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.mppc-ledger:has(#komunikacja) .mppc-ledger__col {
	grid-column: auto;
	padding: var(--wp--preset--spacing--32);
	border-top: var(--wp--custom--border-width--accent) solid var(--wp--custom--color--action);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--neutral-900);
}

.mppc-ledger:has(#komunikacja) .mppc-ledger__col h3 {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--16);
	margin-block-end: var(--wp--preset--spacing--24);
}

.mppc-ledger:has(#komunikacja) .mppc-ledger__col h3::before {
	content: "";
	flex: none;
	width: 44px;
	height: 44px;
	background: var(--wp--custom--color--action) center / 24px 24px no-repeat;
}

.mppc-ledger:has(#komunikacja) #komunikacja h3::before {
	background-image: var(--mppc-ico-bus);
}

.mppc-ledger:has(#komunikacja) #samochod h3::before {
	background-image: var(--mppc-ico-car);
}

.mppc-ledger:has(#komunikacja) #rower h3::before {
	background-image: var(--mppc-ico-bike);
}

.mppc-ledger:has(#komunikacja) .mppc-ledger__col > p {
	text-align: start; /* wąskie karty: wyjustowanie robiło dziury między wyrazami */
	hyphens: auto;
	text-wrap: pretty;
}

.mppc-ledger:has(#komunikacja) .mppc-ledger__col > p + .mppc-facts {
	margin-block-start: var(--wp--preset--spacing--16);
}

/* Rozdziały podstron „Zaplanuj wizytę”: mały numer, większy tytuł (numer nie przytłacza treści) */
.mppc-visit-section {
	--mppc-chapter-num: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.mppc-visit-section .mppc-chapter__num {
	font-size: clamp(2.5rem, 1.75rem + 2.5vw, 3.75rem);
}

.mppc-visit-section .mppc-chapter__head h2 {
	max-width: none;
	font-size: clamp(2rem, 1.25rem + 2.4vw, 3.5rem);
	line-height: var(--wp--custom--line-height--h-2);
	letter-spacing: var(--wp--custom--letter-spacing--h-2);
}

/* Dojazd, rozdział 01: nagłówek i tekst w jednej lewej kolumnie, zdjęcie wejścia po prawej – od góry nagłówka do dołu ramki „Ważne” */
.mppc-visit-where {
	display: grid;
	gap: var(--wp--preset--spacing--48) var(--wp--custom--grid--split-gap);
}

.mppc-visit-where__text > * {
	margin-block: 0;
}

.mppc-visit-where .mppc-chapter__head {
	grid-template-columns: var(--mppc-chapter-num) minmax(0, 1fr);
	align-items: center;
	gap: 0 var(--wp--preset--spacing--24);
	padding-block-start: 0;
}

.mppc-visit-where .mppc-chapter__head h2 {
	font-size: clamp(2rem, 1.2rem + 1.8vw, 2.75rem); /* „Gdzie jesteśmy” mieści się w jednym wierszu wąskiej kolumny */
}

.mppc-visit-where .mppc-chapter__body {
	grid-template-columns: minmax(0, 1fr);
	margin-block-start: var(--wp--preset--spacing--48);
}

.mppc-visit-where .mppc-chapter__body > * {
	grid-column: 1;
	max-width: none;
}

.mppc-visit-where .mppc-chapter__body .is-style-statement {
	font-size: var(--wp--preset--font-size--h-3);
	line-height: var(--wp--custom--line-height--h-3);
}

.mppc-visit-where > .wp-block-image {
	margin: 0;
}

.mppc-visit-where > .wp-block-image img {
	aspect-ratio: 4 / 3;
	object-position: 55% 50%;
}

@media (min-width: 960px) {
	.mppc-visit-where {
		grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
		align-items: stretch;
	}

	.mppc-visit-where > .wp-block-image {
		display: flex;
	}

	.mppc-visit-where > .wp-block-image img {
		flex: 1;
		min-height: 0;
		height: 100%;
		aspect-ratio: auto;
	}
}

/* ===== Podstrony „Zaplanuj wizytę” – cennik, godziny, dostępność: karty z ikonami zamiast surowego tekstu ===== */

/* Wspólny wygląd karty: biała, górna linia akcentu, nagłówek z ikoną w czerwonym kwadracie */
.mppc-visit-pair .mppc-ledger__col,
.mppc-visit-seasons .mppc-ledger__col,
.mppc-visit-topics .mppc-visit-topic {
	padding: var(--wp--preset--spacing--32);
	border: 0;
	border-top: var(--wp--custom--border-width--accent) solid var(--wp--custom--color--action);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--neutral-900);
}

.mppc-visit-pair .mppc-ledger__col h2,
.mppc-visit-seasons .mppc-ledger__col h3,
.mppc-visit-topics .mppc-visit-topic h2 {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--16);
	margin-block: 0 var(--wp--preset--spacing--24);
	font-size: var(--wp--preset--font-size--h-4);
	line-height: var(--wp--custom--line-height--h-4);
	letter-spacing: normal;
}

.mppc-visit-pair .mppc-ledger__col h2::before,
.mppc-visit-seasons .mppc-ledger__col h3::before,
.mppc-visit-topics .mppc-visit-topic h2::before {
	content: "";
	flex: none;
	width: 44px;
	height: 44px;
	background: var(--wp--custom--color--action) center / 24px 24px no-repeat;
}

#karty h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
#rezerwacja h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='m9 16 2 2 4-4'/%3E%3C/svg%3E"); }
#wyjatki h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E"); }
#grupy h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.mppc-visit-seasons .mppc-ledger__col:first-child h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='m4.93 4.93 1.41 1.41'/%3E%3Cpath d='m17.66 17.66 1.41 1.41'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m6.34 17.66-1.41 1.41'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3C/svg%3E"); }
.mppc-visit-seasons .mppc-ledger__col:last-child h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m10 20-1.25-2.5L6 18'/%3E%3Cpath d='M10 4 8.75 6.5 6 6'/%3E%3Cpath d='m14 20 1.25-2.5L18 18'/%3E%3Cpath d='m14 4 1.25 2.5L18 6'/%3E%3Cpath d='m17 21-3-6h-4'/%3E%3Cpath d='m17 3-3 6 1.5 3'/%3E%3Cpath d='M2 12h6.5L10 9'/%3E%3Cpath d='m20 10-1.5 2 1.5 2'/%3E%3Cpath d='M22 12h-6.5L14 15'/%3E%3Cpath d='m4 10 1.5 2L4 14'/%3E%3Cpath d='m7 21 3-6-1.5-3'/%3E%3Cpath d='m7 3 3 6h4'/%3E%3C/svg%3E"); }
#budynek h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 4h3a2 2 0 0 1 2 2v14'/%3E%3Cpath d='M2 20h3'/%3E%3Cpath d='M13 20h9'/%3E%3Cpath d='M10 12v.01'/%3E%3Cpath d='M13 4.562v16.157a1 1 0 0 1-1.242.97L5 20V5.562a2 2 0 0 1 1.515-1.94l4-1A2 2 0 0 1 13 4.561Z'/%3E%3C/svg%3E"); }
#toalety h2::before {
	content: "WC";
	display: grid;
	place-items: center;
	color: var(--wp--preset--color--white);
	font-size: 1rem;
	font-weight: var(--wp--custom--font-weight--bold);
	letter-spacing: 0.04em;
	text-transform: none;
}
#sluch-wzrok h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0'/%3E%3Cpath d='M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4'/%3E%3C/svg%3E"); }
#seniorzy h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3'/%3E%3Cpath d='M3 16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z'/%3E%3Cpath d='M5 18v2'/%3E%3Cpath d='M19 18v2'/%3E%3C/svg%3E"); }
#rodziny h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 12h.01'/%3E%3Cpath d='M15 12h.01'/%3E%3Cpath d='M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5'/%3E%3Cpath d='M19 6.3a9 9 0 0 1 1.8 3.9 2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1'/%3E%3C/svg%3E"); }

/* Cennik: nagłówek (tytuł + informacja o niedzieli) w jednym rzędzie, tabela i ulgi na całą szerokość.
   Rozpoznanie po zawartości (:has), bo identyfikator sekcji #bilety jest tylko na froncie – w edytorze go nie ma */
.mppc-visit-split:has(> .mppc-visit-prices) {
	grid-template-columns: minmax(0, 1fr);
}

.mppc-visit-split:has(> .mppc-visit-prices) > .mppc-visit-split__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--24) var(--wp--preset--spacing--48);
}

.mppc-visit-split:has(> .mppc-visit-prices) > .mppc-visit-split__head > * {
	margin: 0;
}

/* Ulgi pod tabelą: nagłówek, krótki wstęp, lista z ptaszkami (.mppc-checks), przypis */
.mppc-visit-discounts {
	margin-block-start: var(--wp--preset--spacing--32);
}

.mppc-visit-discounts > * {
	margin-block: 0;
}

.mppc-visit-discounts > * + * {
	margin-block-start: var(--wp--preset--spacing--16);
}

.mppc-visit-discounts h3 {
	font-size: var(--wp--preset--font-size--h-3);
	line-height: var(--wp--custom--line-height--h-3);
	letter-spacing: var(--wp--custom--letter-spacing--h-3);
}

/* Pozycja listy to ciągły tekst (z pogrubieniem w środku), więc ptaszek jest pozycjonowany, a nie elementem flex */
.mppc-visit-discounts .mppc-checks li {
	display: block;
	position: relative;
	padding-inline-start: calc(24px + var(--wp--preset--spacing--12));
}

.mppc-visit-discounts .mppc-checks li::before {
	position: absolute;
	inset-block-start: 0.15em;
	inset-inline-start: 0;
}

.mppc-visit-discounts__note {
	color: var(--wp--custom--color--text-muted);
	font-size: var(--wp--preset--font-size--caption);
}

/* Para kart (Honorujemy | Rezerwacja, Dni wolne | Grupy): równe, rozciągnięte do tej samej wysokości */
.mppc-ledger.mppc-visit-pair {
	align-items: stretch;
	gap: var(--wp--preset--spacing--24);
}

.mppc-visit-pair .mppc-ledger__col > p {
	max-width: none;
	font-size: var(--wp--preset--font-size--lead);
	line-height: var(--wp--custom--line-height--lead);
}

.mppc-checks {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mppc-checks li {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--12);
	font-size: var(--wp--preset--font-size--lead);
	font-weight: var(--wp--custom--font-weight--semibold);
}

.mppc-checks li + li {
	margin-block-start: var(--wp--preset--spacing--12);
}

.mppc-checks li::before {
	content: "";
	flex: none;
	width: 24px;
	height: 24px;
	background-color: var(--wp--custom--color--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mppc-honor-cards {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--24);
	margin-block-start: var(--wp--preset--spacing--32);
}

.mppc-honor-cards .wp-block-image {
	flex: 1 1 11rem;
	margin: 0;
	max-width: 16rem;
}

.mppc-honor-cards img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 6px 10px var(--wp--custom--elevation--shadow));
}

/* Godziny: zdjęcie jak na „Zaplanuj wizytę” (skos + czerwone pasy), lewa strona w jednym rytmie odstępów */
.mppc-visit-lead__media.mppc-visit-hero__photo {
	margin-block-end: 0;
}

.mppc-visit-lead__main {
	display: grid;
	gap: var(--wp--preset--spacing--32);
	align-content: start;
}

.mppc-visit-lead__main > * {
	margin: 0;
}

.mppc-visit-lead__main .mppc-visit-seasons {
	margin: 0;
	gap: var(--wp--preset--spacing--24);
	align-items: stretch;
}

.mppc-visit-seasons .mppc-ledger__col .mppc-facts {
	margin: 0;
}

.mppc-visit-seasons .mppc-facts li {
	padding-block: var(--wp--preset--spacing--12);
}

/* Dostępność: tematy jako karty (po 3 + 2 w rzędzie) z ikoną zamiast numeru */
.mppc-visit-topics {
	display: grid;
	gap: var(--wp--preset--spacing--24);
	border-top: 0;
}

.mppc-visit-topics .mppc-visit-topic {
	display: block;
}

.mppc-visit-topics .mppc-visit-topic__num {
	display: none;
}

.mppc-visit-topics .mppc-visit-topic h2,
.mppc-visit-topics .mppc-visit-topic__body {
	grid-column: auto;
}

.mppc-visit-topics .mppc-visit-topic__body {
	max-width: none;
	margin-block-start: 0;
}

.mppc-visit-topics .mppc-visit-topic__body p,
.mppc-visit-topics .mppc-visit-topic__list li {
	text-align: start;
	hyphens: auto;
	text-wrap: pretty;
}

@media (min-width: 782px) {
	.mppc-visit-topics {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.mppc-visit-topics .mppc-visit-topic {
		grid-column: span 3;
	}
}

@media (min-width: 1100px) {
	.mppc-visit-topics .mppc-visit-topic {
		grid-column: span 2;
	}

	.mppc-visit-topics .mppc-visit-topic:nth-child(n+4) {
		grid-column: span 3;
	}
}

/* Edukacja (strona 35): sekcje na całą szerokość – bez pustej lewej kolumny z etykietą */
.page-id-35 .mppc-section__grid > .wp-block-column:first-child {
	display: none;
}

.page-id-35 .mppc-section__grid > .wp-block-column.mppc-section__body {
	flex-basis: 100%;
}

/* Godziny: sezony jeden pod drugim – pełna szerokość kolumny, godziny nie łamią się w wąskich kartach */
.mppc-visit-lead__main .mppc-visit-seasons {
	grid-template-columns: minmax(0, 1fr);
}

.mppc-visit-seasons .mppc-facts li {
	flex-wrap: nowrap;
}

/* Akcja Światełko: te same układy co „Dojazd” (nagłówek i tekst po lewej, grafika po prawej), logo na wysokości nagłówka rozdziału */
.mppc-akcja-where {
	align-items: start;
}

@media (min-width: 960px) {
	.mppc-akcja-where {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}
}

.mppc-akcja-where > .mppc-akcja-logo {
	justify-self: center;
	display: block;
	width: min(100%, 22rem);
}

.mppc-akcja-where > .mppc-akcja-logo img {
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: 50% 30%;
}

/* szeroki układ: zdjęcie wypełnia całą kolumnę – od nagłówka rozdziału do końca ostatniego akapitu (nie podnosi wysokości sekcji) */
@media (min-width: 960px) {
	.mppc-akcja-where:not(.mppc-akcja-where--plates) > .mppc-akcja-logo {
		position: relative;
		align-self: stretch;
		justify-self: stretch;
		width: 100%;
		min-height: 24rem;
	}

	.mppc-akcja-where:not(.mppc-akcja-where--plates) > .mppc-akcja-logo img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
	}
}

.mppc-akcja-where > .mppc-akcja-plates img {
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.mppc-akcja-where.mppc-akcja-where--plates {
	align-items: center;
}

/* Projekty: karty projektów (zdjęcie, tytuł, opis; cała karta jest linkiem) */
.mppc-pcards {
	display: grid;
	gap: var(--wp--preset--spacing--24);
}

@media (min-width: 640px) {
	.mppc-pcards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.mppc-pcards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.mppc-pcard {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--neutral-900);
}

.mppc-pcard > * {
	margin: 0;
}

.mppc-pcard .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	border-bottom: var(--wp--custom--border-width--accent) solid var(--wp--custom--color--action); /* czerwona kreska pod zdjęciem, nad tytułem */
}

.mppc-pcard h2 {
	padding: var(--wp--preset--spacing--24) var(--wp--preset--spacing--24) 0;
	font-size: var(--wp--preset--font-size--h-3);
	line-height: var(--wp--custom--line-height--h-3);
	letter-spacing: var(--wp--custom--letter-spacing--h-3);
}

.mppc-pcard h2 a {
	color: inherit;
	text-decoration: none;
}

.mppc-pcard h2 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.mppc-pcard > p {
	flex: 1;
	padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--24) var(--wp--preset--spacing--24);
	text-align: start;
	hyphens: auto;
	text-wrap: pretty;
}

.mppc-pcard:has(a:hover) {
	box-shadow: 0 8px 24px -12px var(--wp--custom--elevation--shadow);
}

.mppc-pcard:has(a:focus-visible) {
	outline: var(--wp--custom--focus--width) solid var(--wp--custom--color--focus);
	outline-offset: var(--wp--custom--focus--offset);
}

.mppc-pcard h2 a:focus-visible {
	outline: none;
}

/* Akcja Światełko: wszystkie rozdziały w jednym układzie – tekst od lewej krawędzi (pod numerem), tytuły tej samej wielkości */
.mppc-justify.mppc-visit-section .mppc-chapter__head h2 {
	font-size: clamp(2rem, 1.2rem + 1.8vw, 2.75rem);
}

.mppc-justify.mppc-visit-section .mppc-chapter__body {
	grid-template-columns: minmax(0, 1fr);
	margin-block-start: var(--wp--preset--spacing--48);
}

.mppc-justify.mppc-visit-section .mppc-chapter__body > * {
	grid-column: 1;
}

/* Dostępność: tematy jako szerokie, poziome karty (tytuł z ikoną po lewej, treść po prawej) – krótkie tematy nie zostawiają pustych pól */
.mppc-visit-topics {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 782px) {
	.mppc-visit-topics .mppc-visit-topic,
	.mppc-visit-topics .mppc-visit-topic:nth-child(n+4) {
		grid-column: auto;
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: var(--wp--preset--spacing--48);
		align-items: start;
	}

	.mppc-visit-topics .mppc-visit-topic h2 {
		grid-column: 1;
		grid-row: 1;
		margin-block-end: 0;
	}

	.mppc-visit-topics .mppc-visit-topic__body {
		grid-column: 2;
		grid-row: 1;
	}
}

/* Rezerwacja: mail i telefon z czerwonymi ikonami (jak ptaszki w „Honorujemy”) */
.mppc-contact {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mppc-contact li {
	position: relative;
	padding-inline-start: calc(32px + var(--wp--preset--spacing--16));
	font-size: var(--wp--preset--font-size--lead);
	line-height: var(--wp--custom--line-height--lead);
}

.mppc-contact li + li {
	margin-block-start: var(--wp--preset--spacing--24);
}

.mppc-contact li::before {
	content: "";
	position: absolute;
	inset: 0 auto auto 0;
	width: 32px;
	height: 32px;
	background-color: var(--wp--custom--color--accent);
	-webkit-mask: var(--mppc-contact-icon) center / contain no-repeat;
	mask: var(--mppc-contact-icon) center / contain no-repeat;
}

.mppc-contact li:first-child {
	--mppc-contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

.mppc-contact li:last-child {
	--mppc-contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

/* Godziny: jedna skala typografii (nagłówki kart, wiersze, akapit, uwaga) i wyraźna uwaga „Ważne” */
.mppc-visit-lead__main > p:not(.mppc-ledger__note) {
	font-size: var(--wp--preset--font-size--lead);
	line-height: var(--wp--custom--line-height--lead);
}

.mppc-visit-seasons .mppc-facts li {
	font-size: var(--wp--preset--font-size--lead);
	line-height: var(--wp--custom--line-height--lead);
}

.mppc-visit-seasons .mppc-ledger__col h3 {
	font-size: var(--wp--preset--font-size--h-4);
}

.mppc-visit-lead__main .mppc-ledger__note {
	padding: var(--wp--preset--spacing--24) var(--wp--preset--spacing--32);
	border-inline-start-width: 8px;
	background: var(--wp--custom--color--accent);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--h-4);
	line-height: var(--wp--custom--line-height--h-4);
}

.mppc-visit-lead__main .mppc-ledger__note::before {
	color: var(--wp--preset--color--white);
	opacity: 0.85;
}

/* Odstępy w ofercie i wydarzeniach: zawsze oddech między tekstem a linią listy faktów oraz między listą a akapitem */
.mppc-offer > :is(p, ol, ul) {
	margin-block: 0 var(--wp--preset--spacing--16);
}

.mppc-offer > .mppc-facts {
	margin-block-start: var(--wp--preset--spacing--24);
}

.mppc-offer > :is(ol, ul):not(.mppc-facts) {
	padding-inline-start: var(--wp--preset--spacing--24);
}

.page-id-40 .mppc-page-intro {
	padding-block-end: 0;
}

/* Stukot ’56: trzy kategorie nagrody jako równe karty z ikonami */
.mppc-ledger.mppc-stukot-cats {
	--mppc-ico-church: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 9h4'/%3E%3Cpath d='M12 7v5'/%3E%3Cpath d='M14 22v-4a2 2 0 0 0-4 0v4'/%3E%3Cpath d='M18 22V5.618a1 1 0 0 0-.553-.894l-4.553-2.277a2 2 0 0 0-1.788 0L6.553 4.724A1 1 0 0 0 6 5.618V22'/%3E%3Cpath d='m18 7 3.447 1.724a1 1 0 0 1 .553.894V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9.618a1 1 0 0 1 .553-.894L6 7'/%3E%3C/svg%3E");
	--mppc-ico-bird: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 7h.01'/%3E%3Cpath d='M3.4 18H12a8 8 0 0 0 8-8V7a4 4 0 0 0-7.28-2.3L2 20'/%3E%3Cpath d='m20 7 2 .5-2 .5'/%3E%3Cpath d='M10 18v3'/%3E%3Cpath d='M14 17.75V21'/%3E%3Cpath d='M7 18a6 6 0 0 0 3.84-10.61'/%3E%3C/svg%3E");
	--mppc-ico-wheat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 22 16 8'/%3E%3Cpath d='M3.47 12.53 5 11l1.53 1.53a3.5 3.5 0 0 1 0 4.94L5 19l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z'/%3E%3Cpath d='M7.47 8.53 9 7l1.53 1.53a3.5 3.5 0 0 1 0 4.94L9 15l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z'/%3E%3Cpath d='M11.47 4.53 13 3l1.53 1.53a3.5 3.5 0 0 1 0 4.94L13 11l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z'/%3E%3Cpath d='M20 2h2v2a4 4 0 0 1-4 4h-2V6a4 4 0 0 1 4-4Z'/%3E%3Cpath d='M11.47 17.47 13 19l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L5 19l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z'/%3E%3Cpath d='M15.47 13.47 17 15l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L9 15l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z'/%3E%3Cpath d='M19.47 9.47 21 11l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L13 11l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z'/%3E%3C/svg%3E");
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
	gap: var(--wp--preset--spacing--24);
	margin-block-start: var(--wp--preset--spacing--48);
}

@media (min-width: 900px) {
	.mppc-ledger.mppc-stukot-cats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.mppc-stukot-cats .mppc-ledger__col {
	grid-column: auto;
	padding: var(--wp--preset--spacing--32);
	border-top: var(--wp--custom--border-width--accent) solid var(--wp--custom--color--action);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--neutral-900);
}

.mppc-stukot-cats .mppc-ledger__col h3 {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--16);
	margin-block: 0 var(--wp--preset--spacing--16);
	font-size: var(--wp--preset--font-size--h-4);
	line-height: var(--wp--custom--line-height--h-4);
}

.mppc-stukot-cats .mppc-ledger__col h3::before {
	content: "";
	flex: none;
	width: 44px;
	height: 44px;
	background: var(--wp--custom--color--action) center / 24px 24px no-repeat;
}

#o-boga h3::before { background-image: var(--mppc-ico-church); }
#za-wolnosc h3::before { background-image: var(--mppc-ico-bird); }
#za-prawo-i-chleb h3::before { background-image: var(--mppc-ico-wheat); }

/* pasy za zdjęciem (Godziny) nie rozszerzają strony na wąskich ekranach */
#godziny {
	overflow-x: clip;
}
