/*
 * Motyw firma-motyw: style, których nie da się wyrazić w theme.json.
 * Wszystkie kolory, kroje, rozmiary pisma i odstępy pochodzą z tokenów theme.json
 * (zmienne --wp--preset--… i --wp--custom--…). Nie wpisuj tu wartości kolorów ani pisma na sztywno:
 * zmieniaj je w Wygląd → Edytor → Style albo w theme.json.
 * Plik ładuje się na stronie i w edytorze (add_editor_style), więc wygląd jest ten sam.
 */

/* ---------- 0. Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
body .wp-site-blocks > * { margin-block: 0; }
.wp-site-blocks > main { display: block; }

.sr-only {
	position: absolute !important;
	width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Fokus */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
	outline: var(--wp--custom--obrys-fokusu) solid var(--wp--preset--color--tlo-ciemne);
	outline-offset: 3px;
}
.is-style-ciemny :where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
	outline-color: var(--wp--custom--kolor-fokusu-na-ciemnym);
}
.wp-block-navigation__responsive-container.is-menu-open :focus-visible { outline-color: var(--wp--preset--color--tlo-ciemne); }

/* Link „Przejdź do treści” (dodaje go WordPress) */
.skip-link.screen-reader-text:focus {
	top: 0.75rem; left: 1rem;
	padding: 0.75rem 1.125rem;
	background: var(--wp--preset--color--akcent); color: var(--wp--preset--color--tekst-na-akcencie);
	font: 600 var(--wp--preset--font-size--medium)/1.2 var(--wp--preset--font-family--tekst);
	text-decoration: none;
	border-radius: var(--wp--custom--promien);
	outline: var(--wp--custom--obrys-fokusu) solid var(--wp--preset--color--tekst-na-akcencie);
	outline-offset: 2px;
	box-shadow: none;
}

/* ---------- 1. Pasy, kontener, odstępy ---------- */
.is-style-ciemny { background: var(--wp--preset--color--tlo-ciemne); color: var(--wp--preset--color--tekst-na-ciemnym); }
.is-style-jasny { background: var(--wp--preset--color--tlo-jasne); color: var(--wp--preset--color--tekst); }
.is-style-jasny-2 { background: var(--wp--preset--color--tlo-jasne-2); color: var(--wp--preset--color--tekst); }
.pas { padding-block: var(--wp--preset--spacing--80); }
.wrap {
	width: 100%;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto !important;
	padding-inline: var(--wp--preset--spacing--boczny);
}
.wrap p { max-width: 66ch; }
.wrap > * { min-width: 0; }

/* Zwykła treść stron i wpisów: kolumna czytania z marginesem bocznym; pasy (alignfull) idą na całą szerokość */
.tresc > :where(:not(.alignfull)) { padding-inline: var(--wp--preset--spacing--boczny); }
.tresc > :where(:not(.alignfull):first-child) { margin-top: var(--wp--preset--spacing--70); }
.tresc > :where(:not(.alignfull):last-child) { margin-bottom: var(--wp--preset--spacing--80); }
.tresc > .alignfull + :where(:not(.alignfull)) { margin-top: var(--wp--preset--spacing--70); }
.tresc > :where(:not(.alignfull)) + .alignfull { margin-top: var(--wp--preset--spacing--70); }
.tresc > .alignfull:last-child { margin-bottom: 0; }

/* Znaczniki otwartych decyzji i braków */
.znacznik {
	display: inline;
	background: var(--wp--preset--color--akcent); color: var(--wp--preset--color--tekst-na-akcencie);
	border: 1px solid var(--wp--preset--color--tekst-na-akcencie);
	padding: 0 0.35em;
	font-size: var(--wp--preset--font-size--small); font-weight: 600; line-height: 1.7;
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- 2. Przyciski ---------- */
.wp-block-button__link, .przycisk {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 3rem;
	text-align: center;
}
.przycisk {
	padding: 0.625rem 1.5rem;
	background: var(--wp--preset--color--akcent); color: var(--wp--preset--color--tekst-na-akcencie);
	border: var(--wp--custom--linia-schematu) solid var(--wp--preset--color--akcent); border-radius: var(--wp--custom--promien);
	font: 600 var(--wp--preset--font-size--medium)/1.2 var(--wp--preset--font-family--tekst);
	text-decoration: none; cursor: pointer;
}
.przycisk:hover { background: var(--wp--preset--color--akcent-hover); border-color: var(--wp--preset--color--akcent-hover); }
.is-style-jasny .wp-block-button__link, .is-style-jasny-2 .wp-block-button__link,
.is-style-jasny .przycisk, .is-style-jasny-2 .przycisk { border-color: var(--wp--preset--color--tlo-ciemne); }
.is-style-ciemny .wp-block-button__link:not(:hover), .is-style-ciemny .przycisk:not(:hover) { border-color: var(--wp--custom--obrys-przycisku-na-ciemnym); }
.wp-block-buttons { margin: 0; }

/* ---------- 3. Nagłówek i nawigacja ---------- */
.naglowek { padding-block: 1.125rem; }
.naglowek-wnetrze { position: relative; gap: 1rem; }
.naglowek .wp-block-site-title { margin: 0; }
.naglowek .wp-block-site-title a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.naglowek .wp-block-navigation { gap: 0; }
.wp-block-navigation .wp-block-navigation-item__content {
	display: inline-flex; align-items: center;
	min-height: 2.75rem; padding: 0 0.75rem;
	text-decoration: none;
}
.wp-block-navigation .wp-block-navigation-item__content:hover { text-decoration: underline; text-decoration-thickness: var(--wp--custom--linia-schematu); }
.wp-block-navigation .menu-przycisk > .wp-block-navigation-item__content {
	margin-left: 0.625rem; padding: 0.5rem 1.5rem; min-height: 2.75rem;
	background: var(--wp--preset--color--akcent); color: var(--wp--preset--color--tekst-na-akcencie);
	border: var(--wp--custom--linia-schematu) solid var(--wp--preset--color--akcent); border-radius: var(--wp--custom--promien);
	font-weight: 600;
}
.is-style-ciemny .wp-block-navigation .menu-przycisk > .wp-block-navigation-item__content { border-color: var(--wp--custom--obrys-przycisku-na-ciemnym); }
.wp-block-navigation .menu-przycisk > .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--akcent-hover); text-decoration: none;
}
.wp-block-navigation__responsive-container-open {
	min-height: 2.75rem; min-width: 2.75rem; padding: 0 0.5rem;
	border: var(--wp--custom--linia-schematu) solid var(--wp--preset--color--tekst-drugorzedny-na-ciemnym); border-radius: var(--wp--custom--promien);
}
.wp-block-navigation__responsive-container.is-menu-open { padding: var(--wp--preset--spacing--boczny); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	min-height: 3rem; width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open .menu-przycisk > .wp-block-navigation-item__content {
	justify-content: center; margin: 0.625rem 0 0;
}
.wp-block-navigation__responsive-container-close { min-height: 2.75rem; min-width: 2.75rem; }
/* Menu zwija się poniżej 960 px (rdzeń domyślnie poniżej 600 px) */
@media (min-width: 600px) and (max-width: 959.98px) {
	.naglowek .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open):not(.hidden-by-default) { display: none; }
	.naglowek .wp-block-navigation .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
}

/* ---------- 4. S1 hero i schemat przepływu ---------- */
.sekcja-hero { padding-block: 0 clamp(2.5rem, 6vw, 5rem); }
.sekcja-hero .wrap { padding-top: clamp(0.75rem, 2.5vw, 2rem); }
.sekcja-hero h1 { max-width: 19em; }
.lead { font-size: var(--wp--preset--font-size--lead); }
.sekcja-hero .lead { max-width: 60ch; margin-top: 1.125rem; }
.dzialania { gap: 0.75rem 1.5rem !important; margin-top: 1.125rem; }
.dzialania p { margin: 0; }
.hero-podpis {
	margin: clamp(1.5rem, 3.5vw, 2.25rem) 0 0.75rem;
	font-family: var(--wp--preset--font-family--naglowki); font-size: var(--wp--preset--font-size--large); font-weight: 600; line-height: 1.2;
}
.hero-foto { margin-top: clamp(2rem, 4vw, 3.5rem); max-width: 900px; }
.hero-foto .podpis { margin: 0.625rem 0 0; }
.podpis { font-size: var(--wp--preset--font-size--small); }
.is-style-ciemny .podpis { color: var(--wp--preset--color--tekst-drugorzedny-na-ciemnym); }
.is-style-jasny .podpis, .is-style-jasny-2 .podpis { color: var(--wp--preset--color--tekst-drugorzedny); }

/* Miejsce na zdjęcie: do podmiany blokiem Obraz */
.miejsce-zdjecia {
	display: flex; align-items: center; justify-content: center;
	padding: 1rem; text-align: center;
	font-size: var(--wp--preset--font-size--small); line-height: 1.35;
}
.miejsce-zdjecia p { margin: 0; max-width: none; }
.miejsce-zdjecia.proporcje-1-1 { aspect-ratio: 1 / 1; }
.miejsce-zdjecia.proporcje-4-3 { aspect-ratio: 4 / 3; }
.is-style-ciemny .miejsce-zdjecia {
	border: var(--wp--custom--linia-schematu) solid var(--wp--preset--color--linia-na-ciemnym); background: var(--wp--preset--color--tlo-wezla); color: var(--wp--preset--color--tekst-drugorzedny-na-ciemnym);
}
.is-style-jasny .miejsce-zdjecia, .is-style-jasny-2 .miejsce-zdjecia {
	border: var(--wp--custom--linia-schematu) dashed var(--wp--preset--color--tekst-drugorzedny); background: var(--wp--preset--color--tlo-jasne-2); color: var(--wp--preset--color--tekst-drugorzedny);
}
.is-style-jasny-2 .miejsce-zdjecia { background: var(--wp--preset--color--tlo-jasne); }
.hero-foto .miejsce-zdjecia.proporcje-4-3 { aspect-ratio: 4 / 3; }
@media (min-width: 760px) { .hero-foto .miejsce-zdjecia.proporcje-4-3 { aspect-ratio: 21 / 9; } }

/* Schemat: węzły i połączenia z tokenów */
.schemat { --linia: var(--wp--preset--color--tekst-drugorzedny-na-ciemnym); --przerwa: 3rem; --grub: var(--wp--custom--linia-schematu); }
.schemat > * { margin-block: 0; }
.przeplyw, .odgalezienie { display: flex !important; flex-direction: column; gap: var(--przerwa); margin: 0; padding: 0; }
.wezel {
	position: relative;
	display: flex; flex-direction: column;
	height: 100%; margin: 0;
	padding: 0.875rem 1rem 1rem;
	border: var(--grub) solid var(--wp--preset--color--tekst-drugorzedny-na-ciemnym);
	background: var(--wp--preset--color--tlo-wezla); color: var(--wp--preset--color--tekst-na-ciemnym);
	border-radius: 0;
}
.wezel > * { margin: 0; max-width: none; }
.wezel-tytul {
	font-family: var(--wp--preset--font-family--naglowki); font-size: var(--wp--preset--font-size--large); font-weight: 600; line-height: 1.1;
	margin-bottom: 0.375rem !important;
}
.wezel-opis { font-size: var(--wp--preset--font-size--small); line-height: 1.4; }
.wezel.czlowiek { background: var(--wp--preset--color--akcent); border-color: var(--wp--preset--color--akcent); color: var(--wp--preset--color--tekst-na-akcencie); }
.wezel.cichy { border-style: dashed; }
/* łączniki: pionowo (telefon) */
.przeplyw > .wezel:not(:last-child)::before, .odgalezienie > .wezel:first-child::before {
	content: ""; position: absolute; left: 1.75rem; top: 100%;
	width: var(--grub); height: var(--przerwa);
	background: var(--linia); transform-origin: top;
}
.przeplyw > .wezel:not(:last-child)::after, .odgalezienie > .wezel:first-child::after {
	content: ""; position: absolute; left: 1.3125rem; top: calc(100% + var(--przerwa) - 0.6875rem);
	border: 0.5rem solid transparent; border-top: 0.6875rem solid var(--linia); border-bottom: 0;
}
.odgalezienie { margin: 0.875rem 0 0 1.5rem; }
.odg-et {
	display: block; margin: calc(var(--przerwa) + 0.5rem) 0 0 1.5rem !important;
	padding-top: 0.875rem;
	border-top: var(--grub) dashed var(--wp--preset--color--linia-na-ciemnym);
	font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--tekst-drugorzedny-na-ciemnym);
}
@media (min-width: 1000px) {
	.schemat { --przerwa: 3.5rem; }
	.przeplyw, .odgalezienie {
		display: grid !important;
		grid-template-columns: 1fr var(--przerwa) 1.55fr var(--przerwa) 1.55fr var(--przerwa) 1fr;
		gap: 0; align-items: stretch;
	}
	.przeplyw > .wezel:nth-child(1) { grid-column: 1; }
	.przeplyw > .wezel:nth-child(2) { grid-column: 3; }
	.przeplyw > .wezel:nth-child(3) { grid-column: 5; }
	.przeplyw > .wezel:nth-child(4) { grid-column: 7; }
	.przeplyw > .wezel:not(:last-child)::before {
		left: 100%; top: 50%; width: var(--przerwa); height: var(--grub);
		margin-top: calc(var(--grub) / -2); transform-origin: left;
	}
	.przeplyw > .wezel:not(:last-child)::after {
		left: calc(100% + var(--przerwa) - 0.6875rem); top: 50%; margin-top: -0.5rem;
		border: 0.5rem solid transparent; border-left: 0.6875rem solid var(--linia); border-right: 0;
	}
	.odg-et { display: none; }
	.odgalezienie { position: relative; margin: var(--przerwa) 0 0; }
	.odgalezienie > .wezel:nth-child(1) { grid-column: 3; }
	.odgalezienie > .wezel:nth-child(2) { grid-column: 5; }
	.odgalezienie > .wezel:first-child::before {
		left: 100%; top: 50%; width: var(--przerwa); height: var(--grub);
		margin-top: calc(var(--grub) / -2); transform-origin: left;
	}
	.odgalezienie > .wezel:first-child::after {
		left: calc(100% + var(--przerwa) - 0.6875rem); top: 50%; margin-top: -0.5rem;
		border: 0.5rem solid transparent; border-left: 0.6875rem solid var(--linia); border-right: 0;
	}
	/* pionowe odgałęzienie od węzła „Automat” (3. kolumna siatki) */
	.odgalezienie::before {
		content: ""; position: absolute; bottom: 100%; height: var(--przerwa); width: var(--grub);
		left: calc((100% - 3 * var(--przerwa)) / 5.1 + var(--przerwa) + 1.75rem);
		background: var(--linia); transform-origin: top;
	}
	.odgalezienie::after {
		content: ""; position: absolute; bottom: 100%; margin-bottom: -1px;
		left: calc((100% - 3 * var(--przerwa)) / 5.1 + var(--przerwa) + 1.3125rem);
		border: 0.5rem solid transparent; border-top: 0.6875rem solid var(--linia); border-bottom: 0;
	}
}
/* jednorazowe „narysowanie” połączeń, wyłączone przy prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
	@keyframes rysuj-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
	@keyframes rysuj-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
	@keyframes pokaz { from { opacity: 0; } to { opacity: 1; } }
	.przeplyw > .wezel:not(:last-child)::before, .odgalezienie > .wezel:first-child::before { animation: rysuj-y var(--wp--custom--czas-rysowania) ease-out both; }
	.przeplyw > .wezel:not(:last-child)::after, .odgalezienie > .wezel:first-child::after { animation: pokaz 0.15s linear both; }
	.przeplyw > .wezel:nth-child(1)::before { animation-delay: 0.3s; }
	.przeplyw > .wezel:nth-child(1)::after { animation-delay: 0.75s; }
	.przeplyw > .wezel:nth-child(2)::before { animation-delay: 0.9s; }
	.przeplyw > .wezel:nth-child(2)::after { animation-delay: 1.35s; }
	.przeplyw > .wezel:nth-child(3)::before { animation-delay: 1.5s; }
	.przeplyw > .wezel:nth-child(3)::after { animation-delay: 1.95s; }
	.odgalezienie > .wezel:first-child::before { animation-delay: 2.2s; }
	.odgalezienie > .wezel:first-child::after { animation-delay: 2.65s; }
	@media (min-width: 1000px) {
		.przeplyw > .wezel:not(:last-child)::before, .odgalezienie > .wezel:first-child::before { animation-name: rysuj-x; }
		.odgalezienie::before { animation: rysuj-y 0.4s ease-out 1.2s both; }
		.odgalezienie::after { animation: pokaz 0.15s linear 1.6s both; }
		.odgalezienie > .wezel:first-child::before { animation-delay: 1.9s; }
		.odgalezienie > .wezel:first-child::after { animation-delay: 2.35s; }
	}
}

/* ---------- 5. S2 problem ---------- */
.problemy { margin-top: 2rem; max-width: 1000px; }
.problem {
	display: grid; grid-template-columns: 1fr; gap: 0.25rem;
	padding: 1.125rem 0;
	border-top: var(--wp--custom--linia-schematu) solid var(--wp--preset--color--tlo-ciemne);
}
.problem:last-child { border-bottom: var(--wp--custom--linia-schematu) solid var(--wp--preset--color--tlo-ciemne); }
.problem > * { margin: 0; }
.problem h3 { font-size: var(--wp--preset--font-size--large); }
@media (min-width: 760px) { .problem { grid-template-columns: minmax(12.5rem, 1fr) 2.4fr; gap: 2rem; } }
.po-liscie { margin-top: 1.75rem; }

/* ---------- 6. S3 automat i pracownik ---------- */
.sekcja-automat { padding-block: clamp(3.5rem, 8vw, 7rem); }
.sekcja-automat h2 { font-size: var(--wp--preset--font-size--naglowek-sekcji); }
.przyklady { display: grid; grid-template-columns: 1fr; gap: clamp(3rem, 6vw, 4.5rem); margin-top: 2.25rem; }
.przyklad > * { margin-block: 0; }
.przyklad h3 { margin-bottom: 1.25rem; max-width: 20em; }
.wp-block-table.tory { margin: 0; overflow: visible; }
.wp-block-table.tory table {
	display: grid; grid-template-columns: 1fr; column-gap: 1.75rem; row-gap: 1rem;
	width: 100%; border: 0; border-collapse: separate;
}
.wp-block-table.tory thead, .wp-block-table.tory tbody, .wp-block-table.tory tr { display: contents; }
.wp-block-table.tory th {
	order: 0; text-align: left; margin-bottom: 0;
	padding: 0 0 0.625rem; border: 0;
	border-bottom: var(--wp--custom--linia-schematu) solid var(--wp--preset--color--tekst-drugorzedny-na-ciemnym);
	background: transparent; color: inherit;
	font-family: var(--wp--preset--font-family--naglowki); font-size: var(--wp--preset--font-size--large); font-weight: 700; line-height: 1.1;
}
.wp-block-table.tory th:nth-child(2) { order: 2; margin-top: 1.5rem; border-bottom: var(--wp--custom--linia-gruba) solid var(--wp--preset--color--akcent); }
.wp-block-table.tory td {
	position: relative; order: 1;
	padding: 0.875rem 1rem;
	font-size: var(--wp--preset--font-size--small); line-height: 1.45;
	border: var(--wp--custom--linia-schematu) solid var(--wp--preset--color--tekst-drugorzedny-na-ciemnym); background: var(--wp--preset--color--tlo-wezla); color: var(--wp--preset--color--tekst-na-ciemnym);
}
.wp-block-table.tory td:nth-child(2) {
	order: 3; background: var(--wp--preset--color--tlo-jasne); color: var(--wp--preset--color--tekst);
	border-color: var(--wp--preset--color--tlo-jasne); border-left: 0.5rem solid var(--wp--preset--color--akcent);
}
.wp-block-table.tory tbody tr:not(:last-child) td::after {
	content: ""; position: absolute; left: 1.375rem; top: 100%;
	width: var(--wp--custom--linia-schematu); height: 1rem; background: var(--wp--preset--color--tekst-drugorzedny-na-ciemnym);
}
.przypis { margin-top: 2.5rem; font-size: var(--wp--preset--font-size--medium); max-width: 62ch; }
@media (min-width: 560px) {
	.wp-block-table.tory table { grid-template-columns: 1fr 1fr; }
	.wp-block-table.tory th, .wp-block-table.tory td { order: 0 !important; margin-top: 0 !important; }
}
@media (min-width: 1100px) { .przyklady { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

/* ---------- 7. S4 filary ---------- */
.filary { margin-top: 2rem; gap: 2rem !important; }
.filary > .wp-block-column { border-top: var(--wp--custom--linia-gruba) solid var(--wp--preset--color--tlo-ciemne); padding-top: 1rem; }
.filary h3 { margin-bottom: 0.5rem; }
@media (min-width: 900px) { .filary { gap: 2.5rem !important; } }

/* ---------- 8. S5 proces: tor z czterema stacjami ---------- */
.tor { display: flex !important; flex-direction: column; gap: 2.5rem; margin: 2.5rem 0 0; --g: 3rem; }
.tor > .krok { position: relative; padding-left: 3.75rem; margin: 0; }
.tor > .krok::before {
	content: ""; position: absolute; left: 1.3125rem; top: 0; bottom: -2.5rem;
	width: var(--wp--custom--linia-schematu); background: var(--wp--preset--color--tlo-ciemne);
}
.tor > .krok:last-child::before { bottom: 1.375rem; }
.stacja {
	position: relative; margin: 0;
	border: var(--wp--custom--linia-schematu) solid var(--wp--preset--color--tlo-ciemne); background: var(--wp--preset--color--tlo-jasne);
	padding: 1rem 1.125rem 1.125rem;
}
.stacja > * { margin: 0; }
.stacja .nr {
	position: absolute; left: -3.75rem; top: calc(-1 * var(--wp--custom--linia-schematu));
	width: 2.75rem; height: 2.75rem; max-width: none;
	display: flex; align-items: center; justify-content: center;
	background: var(--wp--preset--color--tlo-ciemne); color: var(--wp--preset--color--tekst-na-ciemnym);
	font-family: var(--wp--preset--font-family--naglowki); font-weight: 700; font-size: var(--wp--preset--font-size--x-large); line-height: 1;
}
.stacja h3 { margin: 0 0 0.375rem; }
.stacja .liczby {
	margin: 0 0 0.625rem; max-width: none;
	font-family: var(--wp--preset--font-family--naglowki); font-weight: 600; font-size: var(--wp--preset--font-size--large); line-height: 1.25;
}
.stacja p:not(.nr):not(.liczby) { font-size: var(--wp--preset--font-size--small); line-height: 1.5; }
.wyjscie {
	position: relative; display: flex; align-items: center; width: fit-content;
	min-height: 2.25rem; margin: 0.625rem 0 0 -0.4375rem; padding: 0 0.75rem;
	border: var(--wp--custom--linia-schematu) dashed var(--wp--preset--color--tlo-ciemne); background: var(--wp--preset--color--tlo-jasne-2);
	font-size: var(--wp--preset--font-size--small); line-height: 1.3;
}
.wyjscie::before {
	content: ""; position: absolute; right: 100%; top: 50%; width: 2rem; height: var(--wp--custom--linia-schematu);
	margin-top: calc(var(--wp--custom--linia-schematu) / -2); background: var(--wp--preset--color--tlo-ciemne);
}
.po-torze { margin-top: 2.25rem; max-width: 70ch; }
@media (min-width: 1100px) {
	.tor { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 0 var(--g); align-items: stretch; }
	.tor > .krok { padding-left: 0; display: flex; flex-direction: column; }
	.tor > .krok::before { left: 100%; top: 2.6875rem; bottom: auto; width: var(--g); height: var(--wp--custom--linia-schematu); }
	.tor > .krok::after {
		content: ""; position: absolute; left: calc(100% + var(--g) - 0.6875rem); top: 2.25rem;
		border: 0.5rem solid transparent; border-left: 0.6875rem solid var(--wp--preset--color--tlo-ciemne); border-right: 0;
	}
	.tor > .krok:last-child::before, .tor > .krok:last-child::after { display: none; }
	.stacja { flex: 1; }
	.stacja .nr { position: static; margin-bottom: 0.75rem; }
	.wyjscie { margin: 1.75rem 0 0 1.375rem; }
	.wyjscie::before { right: auto; left: -2px; top: auto; bottom: 100%; width: var(--wp--custom--linia-schematu); height: 1.75rem; margin-top: 0; }
}

/* ---------- 9. S6 przypadek ---------- */
.sekcja-przypadek { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.sekcja-przypadek h2 { max-width: 22em; font-size: var(--wp--preset--font-size--naglowek-sekcji-maly); }
.uklad-liczba { display: grid !important; grid-template-columns: 1fr; gap: 1.25rem 3.5rem; align-items: center; margin-top: 1.5rem; }
.liczba-blok { margin: 0; }
.liczba-blok > * { margin: 0; }
.liczba-przed { font-family: var(--wp--preset--font-family--naglowki); font-size: var(--wp--preset--font-size--x-large); font-weight: 600; line-height: 1.2; }
.liczba { font-family: var(--wp--preset--font-family--naglowki); font-weight: 700; font-size: var(--wp--preset--font-size--liczba); line-height: 0.85; white-space: nowrap; }
.opis-przypadku p { font-size: var(--wp--preset--font-size--medium); }
@media (min-width: 900px) { .uklad-liczba { grid-template-columns: auto 1fr; } }

/* ---------- 10. S7 zespół ---------- */
.osoby { margin-top: 2rem; gap: 3rem !important; }
.osoba { display: grid !important; grid-template-columns: 1fr; gap: 1.25rem; align-content: start; margin: 0; }
.osoba > * { margin: 0; }
.osoba .miejsce-zdjecia { width: min(100%, 10.625rem); }
.osoba h3 { margin-bottom: 0.125rem; }
.osoba .rola { font-weight: 600; margin-bottom: 0.625rem; }
@media (min-width: 560px) { .osoba { grid-template-columns: 12.5rem 1fr; gap: 1.75rem; } .osoba .miejsce-zdjecia { width: 12.5rem; } }
@media (min-width: 1000px) { .osoba { grid-template-columns: 1fr; } }
.po-osobach { margin-top: 2.5rem; max-width: 70ch; }

/* ---------- 11. S8 dla kogo to nie jest ---------- */
.nie-dla-lista { list-style: none; max-width: 860px; margin: 1.5rem 0 0; padding: 0; }
.nie-dla-lista li { padding: 1rem 0 1rem 1.5rem; border-left: var(--wp--custom--linia-gruba) solid var(--wp--preset--color--tlo-ciemne); margin-bottom: 0.875rem; }

/* ---------- 12. S9 FAQ ---------- */
.faq-uklad { display: grid !important; grid-template-columns: 1fr; gap: 1.5rem 3.5rem; }
@media (min-width: 960px) { .faq-uklad { grid-template-columns: 1fr 2fr; } }
.wp-block-details { margin: 0; border-top: var(--wp--custom--linia-schematu) solid var(--wp--preset--color--tlo-ciemne); }
.wp-block-details:last-child { border-bottom: var(--wp--custom--linia-schematu) solid var(--wp--preset--color--tlo-ciemne); }
.wp-block-details summary {
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	min-height: 3.5rem; padding: 0.875rem 0; cursor: pointer;
	font-weight: 600; font-size: var(--wp--preset--font-size--medium); list-style: none;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+" / ""; flex: none; font-family: var(--wp--preset--font-family--naglowki); font-weight: 700; font-size: var(--wp--preset--font-size--x-large); line-height: 1; }
.wp-block-details[open] summary::after { content: "\2212" / ""; }
.wp-block-details[open] summary { background: var(--wp--preset--color--tlo-jasne); padding-inline: 0.75rem; margin-inline: -0.75rem; }
.is-style-jasny .wp-block-details[open] summary { background: var(--wp--preset--color--tlo-jasne-2); }
.wp-block-details > :not(summary) { margin: 0; padding: 0.25rem 0 1.25rem; }

/* ---------- 13. S10 wezwanie do działania ---------- */
.sekcja-cta h2 { max-width: 18em; font-size: var(--wp--preset--font-size--naglowek-sekcji); }
.sekcja-cta p { font-size: var(--wp--preset--font-size--lead); }
.sekcja-cta .wp-block-buttons { margin-top: 0.75rem; }

/* ---------- 14. Formularz i dane kontaktowe ---------- */
.form-uklad { display: grid !important; grid-template-columns: 1fr; gap: 2.5rem 4rem; }
@media (min-width: 960px) { .form-uklad { grid-template-columns: 5fr 6fr; } }
.form-uklad h3 { margin-top: 1.75rem; }
.rozmowa { list-style: none; margin: 0; padding: 0; }
.rozmowa li { padding: 0.625rem 0; border-top: 1px solid var(--wp--preset--color--tekst-drugorzedny); }
.rozmowa li:last-child { border-bottom: 1px solid var(--wp--preset--color--tekst-drugorzedny); }
.kontakt-bezp { margin-top: 0.5rem; padding: 1rem 1.125rem; border: var(--wp--custom--linia-schematu) solid var(--wp--preset--color--tlo-ciemne); }
.kontakt-bezp > * { margin-block: 0; }
.kontakt-bezp > * + * { margin-top: 0.875rem; }
.kontakt-osoba { display: flex !important; align-items: center; gap: 1rem; }
.kontakt-osoba p { margin: 0; }
.kontakt-osoba .miejsce-zdjecia.mini { flex: none; width: 4.5rem; height: 4.5rem; padding: 0.25rem; font-size: var(--wp--preset--font-size--small); }
.kontakt-osoba .miejsce-zdjecia.mini p { font-size: var(--wp--preset--font-size--small); }

/* Wnętrze formularza kontaktowego stylizuje wtyczka firma-formularz (assets/formularz.css); .form-okno to tylko wrapper układu. */
.form-okno { max-width: 100%; }

/* Pole wyszukiwarki (blok Szukaj i szablon wyników) */
input[type="search"] {
	display: block; width: 100%; min-height: 3rem;
	padding: 0.625rem 0.75rem;
	border: var(--wp--custom--linia-schematu) solid var(--wp--preset--color--tekst-drugorzedny); border-radius: var(--wp--custom--promien);
	background: var(--wp--preset--color--pole); color: var(--wp--preset--color--tekst);
	font: 400 var(--wp--preset--font-size--medium)/1.4 var(--wp--preset--font-family--tekst);
}

/* ---------- 15. Stopka ---------- */
.stopka { padding-block: 3rem 2rem; font-size: var(--wp--preset--font-size--small); }
.kolumny-stopki { display: grid !important; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .kolumny-stopki { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .kolumny-stopki { grid-template-columns: 1.2fr 1fr 1fr 1.4fr; } }
.kolumny-stopki > * { margin: 0; }
.stopka .stopka-tytul { font-size: var(--wp--preset--font-size--large); margin-bottom: 0.5rem; }
.stopka .wp-block-list { list-style: none; margin: 0; padding: 0; }
.stopka .wp-block-list li a { display: inline-flex; align-items: center; min-height: 2.25rem; }
.stopka .dane p { margin: 0 0 0.6em; }

/* ---------- 16. Blog, archiwa, wpisy, 404 ---------- */
.pas-tytul { padding-block: 0 var(--wp--preset--spacing--70); }
.pas-tytul .wrap { padding-top: var(--wp--preset--spacing--60); }
.pas-tytul .wp-block-post-title, .pas-tytul .wp-block-query-title { max-width: 19em; }
.meta-wpisu { margin-top: 1rem; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--tekst-drugorzedny-na-ciemnym); gap: 0.25rem 1.5rem !important; }
.meta-wpisu > * { margin: 0; }
.lista-wpisow { margin: 0; padding: 0; }
.lista-wpisow > li { margin: 0; padding: 1.75rem 0; border-top: var(--wp--custom--linia-schematu) solid var(--wp--preset--color--tlo-ciemne); list-style: none; }
.lista-wpisow > li:last-child { border-bottom: var(--wp--custom--linia-schematu) solid var(--wp--preset--color--tlo-ciemne); }
.lista-wpisow .wp-block-post-title { font-size: var(--wp--preset--font-size--x-large); margin-bottom: 0.375rem; }
.lista-wpisow .wp-block-post-title a { text-decoration: none; }
.lista-wpisow .wp-block-post-title a:hover { text-decoration: underline; text-decoration-thickness: var(--wp--custom--linia-schematu); }
.lista-wpisow .wp-block-post-date { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--tekst-drugorzedny); margin-bottom: 0.5rem; }
.lista-wpisow .wp-block-post-excerpt { margin: 0; max-width: 66ch; }
.lista-wpisow .wp-block-post-excerpt__excerpt { margin: 0 0 0.5em; }
.wp-block-query-pagination { margin-top: 2rem; gap: 0.5rem 1rem; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.5rem; }
.wp-block-query-pagination .page-numbers.current { font-weight: 600; text-decoration: underline; text-decoration-thickness: var(--wp--custom--linia-gruba); }
.tresc-wpisu > :where(:not(.alignfull)) { max-width: var(--wp--style--global--content-size); margin-inline: auto; }
.tresc-wpisu :where(h2, h3, h4) { margin-top: 2em; margin-bottom: 0.5em; }
.tresc-wpisu :where(p, ul, ol) { margin-block: 0 1em; }
.tresc :where(ul.wp-block-list, ol.wp-block-list) { padding-left: 1.5rem; }
.wp-block-search__button { cursor: pointer; }
.wp-block-search .wp-block-search__input { border: var(--wp--custom--linia-schematu) solid var(--wp--preset--color--tekst-drugorzedny); border-radius: var(--wp--custom--promien); background: var(--wp--preset--color--pole); color: var(--wp--preset--color--tekst); min-height: 3rem; padding: 0.625rem 0.75rem; }
.strona-404 .linki-404 { list-style: none; margin: 1.5rem 0; padding: 0; }
.strona-404 .linki-404 li { padding: 0.375rem 0; }

/* Menu w nakładce: pozycje od lewej, na całą szerokość */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: stretch; width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { justify-content: flex-start; border-bottom: 1px solid var(--wp--preset--color--linia); }
.wp-block-navigation__responsive-container.is-menu-open .menu-przycisk > .wp-block-navigation-item__content { justify-content: center; border-bottom: var(--wp--custom--linia-schematu) solid var(--wp--preset--color--akcent); }

/* ---------- 17. Podstrony (usługi, cennik, o nas, polityka) ---------- */
.sekcja-wstep .cena-linia { font-size: var(--wp--preset--font-size--large); font-weight: 600; max-width: 40em; margin-top: 1.25rem; }
.sekcja-wstep .wp-block-buttons { margin-top: 1.5rem; }
.klauzula-rodo { margin-top: 1rem; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--tekst-drugorzedny); max-width: none; }

/* Zwykłe tabele treści (cennik, porównania, zasady): nagłówki th scope, bez układu „tory” */
.wp-block-table:not(.tory) { margin: 1.5rem 0 0; overflow-x: auto; }
.wp-block-table:not(.tory) table { width: 100%; border-collapse: collapse; font-size: var(--wp--preset--font-size--medium); }
.wp-block-table:not(.tory) :where(th, td) {
	padding: 0.75rem 0.625rem; text-align: left; vertical-align: top;
	border-bottom: 1px solid var(--wp--preset--color--tekst-drugorzedny);
	overflow-wrap: break-word; hyphens: auto;
}
.wp-block-table:not(.tory) thead th { border-bottom: var(--wp--custom--linia-schematu) solid var(--wp--preset--color--tlo-ciemne); font-weight: 600; }
.wp-block-table:not(.tory) tbody th { font-weight: 600; }
@media (max-width: 599.98px) {
	.wp-block-table:not(.tory) table { font-size: var(--wp--preset--font-size--small); }
	.wp-block-table:not(.tory) :where(th, td) { padding: 0.5rem 0.375rem; }
}

/* Listy w sekcjach: odstęp między punktami */
.pas .wrap > :where(ol, ul).wp-block-list:not(.nie-dla-lista):not(.rozmowa) > li { margin-bottom: 0.5rem; max-width: 66ch; }

/* Pojedyncza osoba na stronie „O nas”: zdjęcie obok tekstu także na szerokim ekranie */
@media (min-width: 1000px) { .osoba.osoba-szeroka { grid-template-columns: 12.5rem 1fr; gap: 2.5rem; } }
.osoba h2 { margin-bottom: 0.25rem; }

/* 18. Obrazy w treści podstron (wstawiane przez tresci/importuj.php) */
.obraz-tresci {
	margin-block-start: var(--wp--preset--spacing--50);
}
.obraz-tresci img {
	display: block;
	height: auto;
	border-radius: var(--wp--custom--promien);
}

/* 19. Zdjęcia osób w miejscach na zdjęcia (te same proporcje co .miejsce-zdjecia) */
.obraz-osoby { margin: 0; }
.obraz-osoby img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--wp--custom--promien); }
.obraz-osoby.proporcje-1-1 img { aspect-ratio: 1 / 1; }
.hero-foto .obraz-osoby.proporcje-4-3 img { aspect-ratio: 4 / 3; object-position: center 35%; }
@media (min-width: 760px) { .hero-foto .obraz-osoby.proporcje-4-3 img { aspect-ratio: 21 / 9; } }
.osoba .obraz-osoby { width: min(100%, 10.625rem); }
@media (min-width: 560px) { .osoba .obraz-osoby { width: 12.5rem; } }
.kontakt-osoba .obraz-osoby.mini { flex: none; width: 4.5rem; }
.obraz-osoby .wp-element-caption { margin-top: var(--wp--preset--spacing--20); }
