/* ==========================================================================
   TOB-STAL — arkusz główny
   Jeden plik, pisany ręcznie, bez narzędzi budujących i bez frameworków.
   Tokeny pochodzą z theme.json (--wp--preset--*, --wp--custom--*) — tutaj
   tylko krótkie aliasy. Mobile-first; breakpointy: 480 / 768 / 1025 / 1440.

   Spis treści
   1. Tokeny          6. Nagłówek i nawigacja   11. Belka cookies
   2. Reset           7. Mega menu „Usługi"     12. Treść i szablony
   3. Typografia      8. Stopka                 13. Ograniczenie ruchu
   4. Dostępność      9. Pasek CTA na mobile    14. Strona główna
   5. Przyciski      10. Przycisk WhatsApp     15. Podstrony (okruszki, usługa, sekcje, CTA)
                                               16. Formularze
   ========================================================================== */

/* 1. Tokeny ---------------------------------------------------------------- */

/* Czcionki zastępcze o metrykach Poppins (budżet CLS < 0,05, §11).
   Zanim Poppins się wczyta (font-display: swap), tekst rysuje się Arialem przeskalowanym
   tak, żeby po podmianie łamanie linii się nie zmieniło. Proporcje zmierzone 19.11.2026:
   tekst zwykły Poppins/Arial ≈ 1,12, wersaliki ≈ 0,94 — stąd dwa warianty.
   ascent/descent/line-gap = metryki Poppins (1050 / 350 / 100 na 1000) ÷ size-adjust. */
@font-face {
	font-family: "Poppins Fallback";
	src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Roboto");
	size-adjust: 112%;
	ascent-override: 93.75%;
	descent-override: 31.25%;
	line-gap-override: 8.93%;
}

@font-face {
	font-family: "Poppins Fallback Caps";
	src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Roboto");
	size-adjust: 94.5%;
	ascent-override: 111.11%;
	descent-override: 37.04%;
	line-gap-override: 10.58%;
}

:root {
	--c-orange: var(--wp--preset--color--orange, #fc6a03);
	--c-action: var(--wp--preset--color--action, #b54b02);
	--c-deep: var(--wp--preset--color--deep, #0d0f10);
	--c-graphite: var(--wp--preset--color--graphite, #353a3e);
	--c-ink: var(--wp--preset--color--ink, #0c1215);
	--c-white: var(--wp--preset--color--white, #fff);
	--c-surface: var(--wp--preset--color--surface, #f5f6f7);
	--c-line: var(--wp--preset--color--line, #e4e6e8);
	--c-border: var(--wp--preset--color--border, #69727d);
	--c-overlay: var(--wp--custom--overlay, rgba(252, 106, 3, .55));
	--c-orange-hover: var(--wp--custom--orange-hover, #db5a00); /* czarny tekst: 4,92:1 */
	--c-whatsapp: var(--wp--custom--whatsapp, #25d366);

	--font-sans: var(--wp--preset--font-family--poppins, "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", sans-serif);
	--font-caps: "Poppins", "Poppins Fallback Caps", system-ui, -apple-system, "Segoe UI", sans-serif;
	--fs-h1: var(--wp--preset--font-size--h1, clamp(2rem, 1.4rem + 2.2vw, 2.75rem));
	--fs-h2: var(--wp--preset--font-size--h2, clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem));
	--fs-h3: var(--wp--preset--font-size--h3, 1.3125rem);
	--fs-body: var(--wp--preset--font-size--body, 1rem);
	--fs-small: var(--wp--preset--font-size--small, .875rem);
	--fs-button: .9375rem; /* 15 px — DESIGN-SYSTEM.md §5.5 */
	--lh-tight: 1.22;
	--lh-body: 1.6;

	--gutter: var(--wp--custom--gutter, clamp(16px, 4vw, 48px));
	--container: 1400px;
	--radius: var(--wp--custom--radius, 3px);
	--tap: 44px; /* minimalne pole klikalne */

	/* Kolejność warstw — DESIGN-SYSTEM.md §5.8 */
	--z-header: var(--wp--custom--z--header, 100);
	--z-mobile-bar: var(--wp--custom--z--mobile-bar, 200);
	--z-wa-fab: var(--wp--custom--z--wa-fab, 300);
	--z-cookie: var(--wp--custom--z--cookie, 400);
	--z-overlay: var(--wp--custom--z--overlay, 500);

	--header-h: 64px;
	/* Wartość startowa przed uruchomieniem JS (bez przesunięcia układu).
	   main.js nadpisuje ją zmierzoną wysokością paska (ResizeObserver). */
	--mobile-bar-h: calc(56px + env(safe-area-inset-bottom, 0px));

	--shadow-sm: 0 2px 12px rgba(12, 18, 21, .08);
	--shadow-md: 0 16px 32px rgba(12, 18, 21, .12);
	--ease: 200ms ease;
}

@media (min-width: 768px) {
	:root {
		--header-h: 80px;
		--mobile-bar-h: 0px;
	}
}

@media (min-width: 1025px) {
	:root {
		--header-h: 100px;
	}
}

/* 2. Reset ----------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	min-height: 100vh;
	padding-bottom: var(--mobile-bar-h); /* pasek CTA nie zasłania stopki */
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--c-ink);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
}

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

svg {
	flex: none;
}

input,
button,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

address {
	font-style: normal;
}

/* Bloki najwyższego poziomu stykają się — odstępy nadają same sekcje. */
.wp-site-blocks > * {
	margin-block: 0;
}

/* 3. Typografia ------------------------------------------------------------ */
h1,
h2,
h3 {
	font-weight: 500;
	line-height: var(--lh-tight);
}

h1 {
	font-size: var(--fs-h1);
	text-transform: uppercase;
}

h2 {
	font-size: var(--fs-h2);
	text-transform: uppercase;
}

h3 {
	font-size: var(--fs-h3);
	font-weight: 400;
	line-height: 1.3;
}

/* Długie złożenia niemieckie („PRODUKTIONSBETRIEBEN") w wersalikach nie mieszczą się
   na telefonie. Łamanie słowa tylko wtedy, gdy się nie mieści; na wąskich ekranach
   w wersji DE — dzielenie z łącznikiem wg słownika przeglądarki (lang="de-DE"). Etap 7. */
h1,
h2,
h3 {
	overflow-wrap: anywhere;
}

@media (max-width: 767px) {
	:lang(de) h1,
	:lang(de) h2 {
		-webkit-hyphens: auto;
		hyphens: auto;
	}
}

/* Elementy pisane wersalikami — zastępcza czcionka dopasowana do wersalików Poppins. */
h1,
h2,
.site-nav__link,
.site-nav__title,
.home-hero__kicker,
.pillar__title,
.mega__heading,
.mega__featured-title,
.site-footer__heading,
.site-footer__subheading,
.map-facade__label {
	font-family: var(--font-caps);
}

/* Wyjątki: nagłówki h2 pisane zwykłym tekstem. */
.cookie-bar__title {
	font-family: var(--font-sans);
}

a {
	color: var(--c-action);
	text-underline-offset: .15em;
}

a:hover {
	color: var(--c-ink);
}

small,
.text-small {
	font-size: var(--fs-small);
}

/* 4. Dostępność ------------------------------------------------------------ */
:focus-visible {
	outline: 3px solid var(--c-action);
	outline-offset: 2px;
}

.site-footer :focus-visible,
.mobile-bar :focus-visible {
	outline-color: var(--c-white);
}

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

.skip-link {
	position: absolute;
	top: 8px;
	left: var(--gutter);
	z-index: 10;
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
	padding: 0 20px;
	color: var(--c-white);
	background: var(--c-ink);
	border-radius: var(--radius);
	text-decoration: none;
	transform: translateY(-300%);
}

.skip-link:focus {
	color: var(--c-white);
	transform: none;
}

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

/* Punkty obserwowane przez IntersectionObserver (inc/ui.php) */
.scroll-sentinel {
	position: absolute;
	left: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.scroll-sentinel--top {
	top: 0;
}

.scroll-sentinel--fab {
	top: 300px;
}

/* 5. Przyciski — DESIGN-SYSTEM.md §5.5 ------------------------------------- */
/* Przycisk główny: pomarańcz marki + czarny tekst (6,47:1). Nigdy biały na #FC6A03. */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: var(--tap);
	padding: 12px 28px;
	font-family: inherit;
	font-size: var(--fs-button);
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: var(--radius);
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn--primary {
	color: var(--c-ink);
	background: var(--c-orange);
}

.btn--primary:hover {
	color: var(--c-ink);
	background: var(--c-orange-hover);
}

.btn--ghost {
	color: var(--c-white);
	background: transparent;
	border-color: var(--c-white);
}

.btn--ghost:hover {
	color: var(--c-graphite);
	background: var(--c-white);
}

.btn--dark {
	color: var(--c-white);
	background: var(--c-ink);
}

.btn--dark:hover {
	color: var(--c-white);
	background: var(--c-graphite);
}

.btn--outline {
	color: var(--c-ink);
	background: transparent;
	border-color: var(--c-ink);
}

.btn--outline:hover {
	color: var(--c-white);
	background: var(--c-ink);
}

.btn--text {
	padding-inline: 12px;
	color: var(--c-action);
	background: none;
	text-decoration: underline;
}

.btn--text:hover {
	color: var(--c-ink);
}

/* 6. Nagłówek i nawigacja — DESIGN-SYSTEM.md §5.1 -------------------------- */
.site-header-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: var(--z-header);
}

/* Otwarte menu mobilne musi przykryć pasek CTA i belkę cookies. */
.nav-open .site-header-part {
	z-index: var(--z-overlay);
}

.nav-open,
.nav-open body {
	overflow: hidden;
}

.site-header {
	position: relative; /* punkt odniesienia dla mega menu */
	background: var(--c-white);
	border-bottom: 1px solid var(--c-line);
	transition: box-shadow var(--ease);
}

.site-header.is-scrolled {
	box-shadow: var(--shadow-sm);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: var(--header-h);
}

.site-header__logo {
	display: inline-flex;
	flex: none;
	align-items: center;
	min-height: var(--tap);
}

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

.site-header__main,
.site-header__actions {
	display: flex;
	align-items: center;
}

.site-header__actions {
	gap: 4px;
}

/* Telefon — od tabletu w górę (na telefonie dzwoni pasek CTA) */
.header-phone {
	display: none;
	align-items: center;
	gap: 8px;
	min-height: var(--tap);
	padding: 0 10px;
	color: var(--c-ink);
	font-size: var(--fs-small);
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
	border-radius: var(--radius);
}

.header-phone .icon {
	color: var(--c-orange); /* ikona dekoracyjna, numer obok niesie treść */
}

.header-phone:hover {
	color: var(--c-action);
}

/* Ikony społecznościowe — DESIGN-SYSTEM.md §5.9 */
.social {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--tap);
	height: var(--tap);
	color: var(--c-graphite);
	border-radius: var(--radius);
	transition: color var(--ease);
}

.social__link:hover {
	color: var(--c-action);
}

.social--header {
	display: none; /* tylko desktop */
}

.social--panel {
	gap: 8px;
	padding: 24px var(--gutter) 8px;
}

.social--panel .social__link {
	width: 48px;
	height: 48px;
}

/* Przełącznik języka */
.lang-switch ul {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lang-switch li + li {
	border-left: 1px solid var(--c-line);
}

.lang-switch__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--tap);
	min-height: var(--tap);
	color: var(--c-graphite);
	font-size: var(--fs-small);
	font-weight: 500;
	letter-spacing: .9px;
	text-decoration: none;
	border-radius: var(--radius);
}

.lang-switch__link:hover {
	color: var(--c-action);
}

.lang-switch__link[aria-current] {
	color: var(--c-ink);
	text-decoration: underline;
	text-decoration-color: var(--c-orange);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.header-cta {
	display: none;
	margin-left: 8px;
	padding-inline: 20px;
	white-space: nowrap;
}

/* Hamburger i zamknięcie panelu — pole 48×48 */
.nav-toggle,
.nav-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	color: var(--c-graphite);
	background: none;
	border: 0;
	border-radius: var(--radius);
}

.nav-toggle:hover,
.nav-close:hover {
	color: var(--c-action);
}

/* Panel menu mobilnego (do 1024 px) */
.site-nav {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	width: min(100%, 400px);
	padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--c-white);
	box-shadow: var(--shadow-md);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 250ms ease, visibility 0s linear 250ms;
}

.site-nav.is-open {
	transform: none;
	visibility: visible;
	transition: transform 250ms ease;
}

.nav-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1;
	background: rgba(13, 15, 16, .55);
}

.nav-backdrop[hidden] {
	display: none;
}

.site-nav__head {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	min-height: var(--header-h);
	padding: 0 calc(var(--gutter) - 12px) 0 var(--gutter);
	border-bottom: 1px solid var(--c-line);
}

.site-nav__title {
	font-size: var(--fs-small);
	font-weight: 500;
	letter-spacing: .9px;
	text-transform: uppercase;
}

.site-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__item {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	border-bottom: 1px solid var(--c-line);
}

.site-nav__link {
	display: flex;
	flex: 1;
	align-items: center;
	min-height: 52px; /* min. 48 px — DESIGN-SYSTEM.md §5.1 */
	padding: 4px var(--gutter);
	color: var(--c-ink);
	font-size: var(--fs-button);
	font-weight: 500;
	letter-spacing: .9px;
	text-decoration: none;
	text-transform: uppercase;
}

.site-nav__link:hover,
.site-nav__link[aria-current] {
	color: var(--c-action);
}

.site-nav__link[aria-current] {
	box-shadow: inset 3px 0 0 var(--c-orange);
}

.site-nav__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	min-height: 52px;
	padding: 0;
	color: var(--c-graphite);
	background: none;
	border: 0;
	border-left: 1px solid var(--c-line);
}

.site-nav__toggle:hover {
	color: var(--c-action);
}

.site-nav__toggle .icon {
	transition: transform var(--ease);
}

.site-nav__toggle[aria-expanded="true"] .icon {
	transform: rotate(180deg);
}

/* Bez JS (awaryjnie): menu jako zwykła lista pod nagłówkiem. */
html:not(.js) .site-nav {
	position: static;
	width: 100%;
	transform: none;
	visibility: visible;
	box-shadow: none;
}

html:not(.js) .nav-toggle,
html:not(.js) .site-nav__head,
html:not(.js) .site-nav__toggle {
	display: none;
}

@media (max-width: 1024.98px) {
	html:not(.js) .site-header__inner,
	html:not(.js) .site-header__main {
		flex-wrap: wrap;
	}

	html:not(.js) .site-nav {
		flex-basis: 100%;
	}
}

/* 7. Mega menu „Usługi" ---------------------------------------------------- */
/* Na mobile: akordeon w panelu. Na desktopie: panel pod nagłówkiem. */
.mega {
	display: none;
	flex-basis: 100%;
	background: var(--c-surface);
	border-top: 1px solid var(--c-line);
}

.has-mega.is-open .mega,
html:not(.js) .mega {
	display: block;
}

.mega__inner {
	display: grid;
	gap: 20px;
	padding-block: 16px 20px;
}

.mega__heading {
	margin-bottom: 4px;
	color: var(--c-graphite);
	font-size: var(--fs-small);
	font-weight: 500;
	letter-spacing: .9px;
	text-transform: uppercase;
}

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

.mega__link {
	display: flex;
	align-items: center;
	min-height: var(--tap);
	padding-block: 6px;
	color: var(--c-ink);
	font-size: var(--fs-button);
	line-height: 1.35;
	text-decoration: none;
}

.mega__link:hover,
.mega__link[aria-current] {
	color: var(--c-action);
	text-decoration: underline;
	text-decoration-color: var(--c-orange);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

/* Wyróżniony blok: pomarańcz marki + czarny tekst (6,47:1) */
.mega__featured {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: 20px;
	color: var(--c-ink);
	background: var(--c-orange);
	border-radius: var(--radius);
}

.mega__featured-title {
	font-size: var(--fs-h3);
	font-weight: 500;
	line-height: 1.3;
	text-transform: uppercase;
}

.mega__featured :focus-visible {
	outline-color: var(--c-ink);
}

/* Układ — tablet i desktop ------------------------------------------------- */
@media (min-width: 480px) {
	.site-header__logo img {
		height: 40px;
	}
}

@media (min-width: 768px) {
	.site-header__logo img {
		height: 44px;
	}

	.header-phone,
	.header-cta {
		display: inline-flex;
	}
}

/* 768–899 px: sam symbol słuchawki, numer zostaje dla czytników ekranu */
@media (min-width: 768px) and (max-width: 899.98px) {
	.header-phone {
		justify-content: center;
		width: var(--tap);
		padding: 0;
	}

	.header-phone__number {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

@media (min-width: 1025px) {
	.site-header__logo img {
		height: 52px;
	}

	.site-header__main {
		flex-direction: column;
		align-items: flex-end;
		justify-content: center;
		gap: 2px;
	}

	.social--header {
		display: flex;
	}

	.header-cta {
		padding-inline: 24px;
	}

	.nav-toggle,
	.site-nav__head,
	.nav-backdrop,
	.social--panel {
		display: none;
	}

	.site-nav,
	html:not(.js) .site-nav {
		position: static;
		z-index: auto;
		display: block;
		width: auto;
		padding: 0;
		overflow: visible;
		background: none;
		box-shadow: none;
		transform: none;
		visibility: visible;
		transition: none;
	}

	.site-nav__list {
		display: flex;
		align-items: center;
		gap: clamp(2px, .8vw, 16px);
	}

	.site-nav__item {
		flex-wrap: nowrap;
		align-items: center;
		border: 0;
	}

	.site-nav__link {
		position: relative;
		justify-content: center;
		min-width: var(--tap);
		min-height: var(--tap);
		padding: 0 6px;
		font-size: var(--fs-small);
		font-weight: 400;
	}

	.site-nav__link[aria-current] {
		box-shadow: none;
	}

	.site-nav__link::after {
		position: absolute;
		right: 6px;
		bottom: 6px;
		left: 6px;
		height: 2px;
		background: var(--c-orange);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 160ms ease;
		content: "";
	}

	.site-nav__link:hover::after,
	.site-nav__link[aria-current]::after,
	.has-mega.is-open > .site-nav__link::after {
		transform: scaleX(1);
	}

	.has-mega > .site-nav__link {
		padding-right: 0;
	}

	.has-mega > .site-nav__link::after {
		right: 0;
	}

	.site-nav__toggle,
	html:not(.js) .site-nav__toggle {
		display: inline-flex;
		width: var(--tap);
		min-height: var(--tap);
		margin-left: -6px;
		border: 0;
	}

	html:not(.js) .site-nav__toggle {
		pointer-events: none;
	}

	.mega,
	html:not(.js) .mega {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: block;
		background: var(--c-white);
		border-top: 1px solid var(--c-line);
		box-shadow: var(--shadow-md);
		opacity: 0;
		transform: translateY(-6px);
		visibility: hidden;
		transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
	}

	.has-mega.is-open .mega,
	html:not(.js) .has-mega:hover .mega,
	html:not(.js) .has-mega:focus-within .mega {
		opacity: 1;
		transform: none;
		visibility: visible;
		transition: opacity 160ms ease, transform 160ms ease;
	}

	.mega__inner {
		grid-template-columns: 1fr 1fr minmax(280px, .9fr);
		gap: 40px;
		padding-block: 32px 36px;
	}

	.mega__featured {
		justify-content: space-between;
		padding: 28px;
	}
}

/* 8. Stopka — DESIGN-SYSTEM.md §5.7 ---------------------------------------- */
/* Ciemny blok zawsze ze zdjęciem (§1 „Tonacja"); zdjęcie dochodzi klasą .has-bg. */
.site-footer {
	color: var(--c-white);
	font-size: var(--fs-button);
	background-color: var(--c-deep);
	background-position: center;
	background-size: cover;
}

.site-footer.has-bg {
	background-image:
		linear-gradient(rgba(13, 15, 16, .86), rgba(13, 15, 16, .93)),
		url("../img/footer-bg.webp");
}

.site-footer__inner {
	display: grid;
	gap: 40px;
	padding-block: var(--wp--preset--spacing--60, 64px) 40px;
}

.site-footer__logo {
	width: 96px;
	height: 96px;
	margin-bottom: 16px;
}

.site-footer__name {
	margin-bottom: 8px;
	font-weight: 500;
}

.site-footer__address {
	margin-bottom: 12px;
}

.site-footer__ids div {
	display: flex;
	gap: 6px;
}

.site-footer__ids dt {
	font-weight: 500;
}

.site-footer__heading,
.site-footer__subheading {
	margin: 0 0 12px;
	color: var(--c-orange); /* 6,57:1 na #0D0F10 */
	font-size: var(--fs-small);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: .9px;
	text-transform: uppercase;
}

.site-footer__subheading {
	margin-top: 24px;
	margin-bottom: 4px;
}

.footer-phones {
	display: grid;
	gap: 8px;
	margin: 0 0 4px;
	padding: 0;
	list-style: none;
}

.footer-phones li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 16px;
}

.footer-phones__name {
	flex-basis: 100%;
	color: rgba(255, 255, 255, .72);
	font-size: var(--fs-small);
	font-weight: 500;
}

.footer-link {
	display: inline-flex;
	align-items: center;
	min-width: var(--tap);
	min-height: var(--tap);
	color: var(--c-white);
	text-decoration: none;
}

.footer-link:hover {
	color: var(--c-orange);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.footer-link--button {
	padding: 0;
	font: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

.social--footer {
	margin-left: -10px;
}

.social--footer .social__link {
	color: var(--c-white);
}

.social--footer .social__link:hover {
	color: var(--c-orange);
}

.site-footer__sitemap {
	display: grid;
	gap: 32px;
}

.footer-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-col .footer-link {
	padding-block: 4px;
	line-height: 1.35;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0 24px;
	padding-block: 12px 20px;
	font-size: var(--fs-small);
	border-top: 1px solid rgba(255, 255, 255, .14);
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 480px) {
	.site-footer__sitemap {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 768px) {
	.site-footer__inner {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Copyright nie może chować się pod przyciskiem WhatsApp (lewy dolny róg, 24 + 56 px).
	   Odsunięcie liczone od lewej krawędzi ekranu, więc na szerokich ekranach
	   (wyśrodkowany kontener) wiersz zostaje wyrównany do kolumn powyżej. */
	.site-footer__bottom {
		padding-left: max(var(--gutter), calc(104px - max(0px, (100vw - var(--container) - 2 * var(--gutter)) / 2)));
	}

	.site-footer__sitemap {
		grid-column: 1 / -1;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Trzy kolumny stopki dopiero od 1280 px — przy 1025 px mapa strony się nie mieści. */
@media (min-width: 1280px) {
	.site-footer__inner {
		grid-template-columns: minmax(220px, 1fr) minmax(250px, 1fr) 2.4fr;
		gap: 48px;
	}

	.site-footer__sitemap {
		grid-column: auto;
	}
}

/* 9. Pasek CTA na mobile — DESIGN-SYSTEM.md §7 ----------------------------- */
.mobile-bar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: var(--z-mobile-bar);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	background: var(--c-graphite);
	box-shadow: 0 -2px 12px rgba(12, 18, 21, .18);
}

.mobile-bar__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 56px;
	padding: 6px 4px;
	color: var(--c-white);
	font-size: var(--fs-small);
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
}

.mobile-bar__item + .mobile-bar__item {
	border-left: 1px solid rgba(255, 255, 255, .14);
}

.mobile-bar__item:hover,
.mobile-bar__item:focus-visible {
	color: var(--c-white);
}

/* Aktywny element: pomarańcz na ikonie i pasek u góry (tekst zostaje biały — kontrast). */
.mobile-bar__item:hover .icon,
.mobile-bar__item:active .icon,
.mobile-bar__item:focus-visible .icon {
	color: var(--c-orange);
}

.mobile-bar__item:active::before,
.mobile-bar__item:focus-visible::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 3px;
	background: var(--c-orange);
	content: "";
}

.mobile-bar :focus-visible {
	outline-offset: -5px;
}

@media (min-width: 768px) {
	.mobile-bar {
		display: none;
	}
}

/* 10. Przycisk WhatsApp — DESIGN-SYSTEM.md §5.8 ---------------------------- */
/* Lewy dolny róg, zawsze ponad belką cookies (odsadzenie liczone z jej wysokości). */
.wa-fab {
	position: fixed;
	bottom: calc(var(--cookie-bar-h, 0px) + var(--mobile-bar-h, 0px) + 24px);
	left: 24px;
	z-index: var(--z-wa-fab);
	display: none; /* poniżej 768 px WhatsApp obsługuje pasek CTA */
	align-items: center;
	min-width: 56px;
	height: 56px;
	padding: 0 14px;
	color: var(--c-white);
	background: var(--c-whatsapp); /* wyjątek od palety — rozpoznawalność marki WhatsApp */
	border-radius: 999px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
	text-decoration: none;
	opacity: 0;
	transform: translateY(16px);
	visibility: hidden;
	transition: opacity var(--ease), transform var(--ease), bottom var(--ease), visibility 0s linear 200ms;
}

.wa-fab.is-visible {
	opacity: 1;
	transform: none;
	visibility: visible;
	transition: opacity var(--ease), transform var(--ease), bottom var(--ease);
}

.wa-fab .icon {
	width: 28px;
	height: 28px;
}

/* Etykieta zawsze w DOM; zwinięta wizualnie. Tekst w kolorze --c-ink (9,5:1 na zieleni),
   bo biały na #25D366 ma ok. 2:1 i nie spełnia WCAG AA dla tekstu. */
.wa-fab__label {
	max-width: 0;
	overflow: hidden;
	color: var(--c-ink);
	font-size: 1rem;
	font-weight: 500;
	white-space: nowrap;
	transition: max-width var(--ease), margin var(--ease);
}

.wa-fab:hover,
.wa-fab:focus-visible {
	color: var(--c-white);
}

.wa-fab:hover .wa-fab__label,
.wa-fab:focus-visible .wa-fab__label {
	max-width: 240px;
	margin-left: 10px;
}

.wa-fab:focus-visible {
	outline: 2px solid var(--c-white);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--c-ink), 0 4px 16px rgba(0, 0, 0, .25);
}

@media (min-width: 768px) {
	.wa-fab {
		display: inline-flex;
	}
}

/* 11. Belka cookies — DESIGN-SYSTEM.md §5.8 / §5.9 ------------------------- */
/* Jasna (ciemne bloki tylko ze zdjęciem). Stoi nad paskiem CTA na mobile. */
.cookie-bar {
	position: fixed;
	right: 0;
	bottom: var(--mobile-bar-h, 0px);
	left: 0;
	z-index: var(--z-cookie);
	color: var(--c-ink);
	font-size: var(--fs-small);
	background: var(--c-white);
	border-top: 3px solid var(--c-orange);
	box-shadow: 0 -8px 24px rgba(12, 18, 21, .14);
}

.cookie-bar[hidden] {
	display: none;
}

.cookie-bar__inner {
	display: grid;
	gap: 12px 32px;
	max-height: min(70vh, 560px);
	padding-block: 16px;
	overflow-y: auto;
}

.cookie-bar__title {
	margin-bottom: 4px;
	font-size: var(--fs-body);
	font-weight: 500;
	text-transform: none;
}

.cookie-bar__title:focus {
	outline: none;
}

.cookie-bar__settings[hidden] {
	display: none;
}

.cookie-bar__settings fieldset {
	margin: 0;
	padding: 4px 16px 8px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
}

.cookie-bar__settings legend {
	padding: 0 6px;
	font-weight: 500;
}

.cookie-bar__option {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: var(--tap);
	cursor: pointer;
}

.cookie-bar__option input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--c-action);
}

.cookie-bar__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cookie-bar__actions .btn {
	flex: 1 1 auto;
}

.cookie-bar__actions [hidden] {
	display: none;
}

@media (min-width: 1025px) {
	.cookie-bar__inner {
		grid-template-columns: 1fr auto;
		align-items: center;
	}

	.cookie-bar__settings {
		grid-row: 2;
		grid-column: 1 / -1;
	}

	.cookie-bar__actions {
		flex-wrap: nowrap;
	}

	.cookie-bar__actions .btn {
		flex: none;
	}
}

/* 12. Treść i szablony ----------------------------------------------------- */
.site-main {
	padding-block: var(--wp--preset--spacing--60, 64px);
}

.site-main > .wp-block-post-title,
.page-title {
	margin-bottom: var(--wp--preset--spacing--40, 24px);
}

.error-404 {
	display: grid;
	justify-items: center;
	gap: 16px;
	max-width: 640px;
	margin-inline: auto;
	padding-block: 32px;
	text-align: center;
}

.error-404__code {
	color: var(--c-action);
	font-size: clamp(4rem, 3rem + 6vw, 7rem);
	font-weight: 500;
	line-height: 1;
}

/* 14. Strona główna — DESIGN-SYSTEM.md §10.2a ------------------------------ */
/* Rytm: biel (H1) → panele ze zdjęciem → --c-surface (Dlaczego my) → biel (kontakt)
   → mapa (szara, bez zdjęcia) → ciemna stopka ze zdjęciem. */
.site-main--home {
	padding-block: 0;
}

.site-main--home > * {
	margin-block: 0;
}

.section-title {
	margin-bottom: var(--wp--preset--spacing--50, 40px);
}

.section-title::before {
	display: block;
	width: 48px;
	height: 4px;
	margin-bottom: 16px;
	background: var(--c-orange);
	content: "";
}

/* Hero: H1 na bieli + trzy panele ze zdjęciem */
.home-hero {
	padding-bottom: var(--wp--preset--spacing--50, 40px);
}

.home-hero__intro {
	padding-block: clamp(28px, 1.5rem + 2vw, 56px) clamp(20px, 1rem + 1.5vw, 36px);
}

.home-hero__kicker {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
	color: var(--c-graphite);
	font-size: var(--fs-small);
	font-weight: 500;
	letter-spacing: .9px;
	text-transform: uppercase;
}

.home-hero__kicker::before {
	flex: none;
	width: 32px;
	height: 3px;
	background: var(--c-orange);
	content: "";
}

/* Szerokości w em, nie w ch — ch zależy od kroju i zmieniałby łamanie po podmianie fontu (CLS). */
.home-hero__title {
	max-width: 16em;
}

.pillars {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pillar {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 360px;
	overflow: hidden;
	color: var(--c-white);
	background: var(--c-deep);
	border-radius: var(--radius);
	isolation: isolate;
}

.pillar__media {
	position: absolute;
	inset: 0;
	z-index: -3;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

/* Overlay marki (§1: 0,55) + przyciemnienie od dołu pod tekst (czytelność bieli). */
.pillar::before {
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		linear-gradient(to top, rgba(13, 15, 16, .86) 0%, rgba(13, 15, 16, .5) 45%, rgba(13, 15, 16, .05) 100%),
		var(--c-overlay);
	content: "";
}

/* Hover: dodatkowe przyciemnienie ok. 10% */
.pillar::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(13, 15, 16, 0);
	transition: background-color var(--ease);
	content: "";
}

.pillar:hover::after {
	background: rgba(13, 15, 16, .12);
}

.pillar:hover .pillar__media {
	transform: scale(1.02);
}

.pillar__body {
	display: grid;
	justify-items: start;
	gap: 12px;
	width: 100%;
	padding: 24px;
}

.pillar__title {
	font-size: var(--fs-h3);
	font-weight: 500;
	line-height: 1.25;
	text-transform: uppercase;
}

.pillar__link {
	color: var(--c-white);
	text-decoration: none;
}

.pillar__link:hover {
	color: var(--c-white);
}

/* Cały panel klikalny: link z tytułu rozciągnięty na panel. */
.pillar__link::after {
	position: absolute;
	inset: 0;
	content: "";
}

.pillar__link:focus-visible {
	outline: none;
}

.pillar:has(.pillar__link:focus-visible) {
	outline: 3px solid var(--c-action);
	outline-offset: 3px;
}

.pillar__text {
	max-width: 28em;
	color: rgba(255, 255, 255, .92);
	font-size: var(--fs-button);
	line-height: 1.55;
}

.pillar__cta {
	margin-top: 4px;
	pointer-events: none;
}

.pillar:hover .pillar__cta {
	color: var(--c-graphite);
	background: var(--c-white);
}

/* Dlaczego my */
.home-why {
	padding-block: var(--wp--preset--spacing--60, 64px);
	background: var(--c-surface);
}

.why-grid {
	display: grid;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.why-card {
	display: grid;
	align-content: start;
	gap: 14px;
	padding: 28px;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	box-shadow: 0 1px 2px rgba(12, 18, 21, .04), 0 8px 24px rgba(12, 18, 21, .06);
}

/* Ikona biała na pomarańczu (§10.2a) — dekoracyjna, treść niesie tytuł. */
.why-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	color: var(--c-white);
	background: var(--c-orange);
	border-radius: var(--radius);
}

.why-card__title {
	font-size: var(--fs-h3);
	font-weight: 500;
}

.why-card__text {
	color: var(--c-graphite);
}

/* Liczniki: 2×2 na mobile, w rzędzie od tabletu */
.counters {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: var(--wp--preset--spacing--50, 40px) 0 0;
	padding: 0;
	list-style: none;
}

.counters__item {
	display: grid;
	align-content: start;
	gap: 8px;
	padding: 20px 12px;
	text-align: center;
	background: var(--c-white);
	border-top: 4px solid var(--c-orange);
	border-radius: var(--radius);
}

.counter {
	color: var(--c-ink);
	font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.counters__label {
	color: var(--c-graphite);
	font-size: var(--fs-small);
	line-height: 1.4;
}

/* Wejście sekcji: translateY 16 px + opacity, 80 ms przesunięcia (tylko z JS). */
.js .counters__item {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 400ms ease, transform 400ms ease;
}

.js .counters.is-inview .counters__item {
	opacity: 1;
	transform: none;
}

/* Nieparzysta liczba liczników na mobile (np. 3): ostatni na całą szerokość, bez dziury w siatce 2×2. */
.counters__item:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

@media (min-width: 768px) {
	.counters__item:last-child:nth-child(odd) {
		grid-column: auto;
	}
}

.counters__item:nth-child(2) { transition-delay: 80ms; }
.counters__item:nth-child(3) { transition-delay: 160ms; }
.counters__item:nth-child(4) { transition-delay: 240ms; }

/* Kontakt */
.home-contact {
	padding-block: var(--wp--preset--spacing--60, 64px);
}

.home-contact__inner {
	display: grid;
	gap: 40px;
}

.home-contact__lead {
	margin: -16px 0 24px;
	color: var(--c-graphite);
}

.contact-list {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-list li {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	column-gap: 14px;
	align-items: start;
}

.contact-list .icon {
	margin-top: 2px;
	color: var(--c-orange); /* dekoracyjne, obok jest tekst */
}

.contact-list__name {
	display: block;
	font-weight: 500;
}

.contact-list__link {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
	margin-right: 20px;
	color: var(--c-ink);
	font-weight: 500;
	text-decoration: none;
}

.contact-list__link:hover {
	color: var(--c-action);
	text-decoration: underline;
	text-decoration-color: var(--c-orange);
	text-underline-offset: 4px;
}

.home-contact__form {
	padding: 28px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
}

.home-contact__form-title {
	margin-bottom: 16px;
	font-size: var(--fs-h3);
	font-weight: 500;
}

/* Widoczny placeholder — CLAUDE.md „Czego nie wolno wymyślać" */
.placeholder-box {
	margin-bottom: 20px;
	padding: 24px;
	color: var(--c-graphite);
	font-weight: 500;
	background: var(--c-white);
	border: 2px dashed var(--c-border);
	border-radius: var(--radius);
}

.home-contact__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Mapa dojazdu: pełna szerokość pod kontaktem, przed stopką.
   Czarno-biała, kolorowa po najechaniu myszą (decyzja właściciela 19.11.2026). */
.map-facade {
	position: relative;
	height: clamp(320px, 42vw, 440px);
	background-color: var(--c-surface);
	background-image:
		linear-gradient(var(--c-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--c-line) 1px, transparent 1px);
	background-size: 40px 40px;
	border-top: 1px solid var(--c-line);
}

.map-facade__frame,
.map-facade__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.map-facade__frame iframe {
	filter: grayscale(1);
	transition: filter 300ms ease;
}

/* Kolor tylko po najechaniu myszą (decyzja właściciela) — na dotyku mapa zostaje szara. */
.map-facade:hover iframe {
	filter: none;
}

.map-facade__cover {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 12px;
	padding: 24px var(--gutter);
	text-align: center;
}

.map-facade.is-loaded .map-facade__cover {
	display: none;
}

.map-facade__pin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	color: var(--c-ink);
	background: var(--c-orange);
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(12, 18, 21, .18);
}

.map-facade__label {
	color: var(--c-graphite);
	font-size: var(--fs-small);
	font-weight: 500;
	letter-spacing: .9px;
	text-transform: uppercase;
}

.map-facade__address {
	font-size: var(--fs-h3);
	font-weight: 500;
}

.map-facade__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 4px;
}

.map-facade__actions .btn--outline {
	background: var(--c-white);
}

.map-facade__note {
	max-width: 32em;
	color: var(--c-graphite);
	font-size: var(--fs-small);
}

/* Linki w zdaniach (nota pod mapą, belka cookies) też z polem klikalnym 44 px. */
.map-facade__note a,
.cookie-bar__text a {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
}

@media (min-width: 768px) {
	.pillar {
		min-height: 380px;
	}

	.pillar__body {
		padding: 32px;
	}

	.why-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px;
	}

	.counters {
		grid-template-columns: repeat(auto-fit, minmax(200px, 280px));
		justify-content: center;
		gap: 24px;
	}
}

@media (min-width: 1025px) {
	.pillars {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}

	.pillar {
		min-height: clamp(460px, 62vh, 580px);
	}

	.pillar__title {
		font-size: clamp(1.3125rem, .9rem + .7vw, 1.625rem);
	}

	.home-contact__inner {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: start;
		gap: 64px;
	}
}

/* 15. Podstrony — DESIGN-SYSTEM.md §10.3, §10.4, §10.5 (etap 3) ------------ */
/* Rytm podstrony usługi: hero ze zdjęciem → pasek zaufania (biel) → sekcje
   (biel / „Tło szare") → formularz (biel) → pomarańczowy pas CTA → ciemna stopka. */

.site-main--service,
.site-main--service > *,
.service-content > * {
	margin-block: 0;
}

.site-main--service {
	padding-block: 0;
}

/* Okruszki */
.breadcrumbs {
	font-size: var(--fs-small);
}

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs li {
	display: inline-flex;
	align-items: center;
}

.breadcrumbs li + li::before {
	margin: 0 8px;
	color: var(--c-border);
	content: "›";
}

.breadcrumbs a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--tap);
	min-height: var(--tap);
	color: var(--c-graphite);
	text-decoration: underline;
	text-decoration-color: var(--c-line);
	text-underline-offset: 4px;
}

.breadcrumbs a:hover {
	color: var(--c-action);
	text-decoration-color: var(--c-orange);
}

.breadcrumbs [aria-current] {
	color: var(--c-ink);
	font-weight: 500;
}

.breadcrumbs--light a,
.breadcrumbs--light [aria-current],
.breadcrumbs--light li + li::before {
	color: var(--c-white);
}

.breadcrumbs--light a {
	text-decoration-color: rgba(255, 255, 255, .45);
}

.breadcrumbs--light a:hover {
	color: var(--c-white);
	text-decoration-color: var(--c-orange);
}

.breadcrumbs--light :focus-visible {
	outline-color: var(--c-white);
}

.site-main > .breadcrumbs {
	margin-bottom: 8px;
}

/* Hero podstrony usługi: zdjęcie + overlay marki + przyciemnienie pod tekst */
.service-hero {
	position: relative;
	display: flex;
	align-items: stretch;
	min-height: clamp(480px, 66vh, 640px);
	overflow: hidden;
	color: var(--c-white);
	background: var(--c-deep);
	isolation: isolate;
}

.service-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.service-hero::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to top, rgba(13, 15, 16, .88) 0%, rgba(13, 15, 16, .55) 55%, rgba(13, 15, 16, .3) 100%),
		var(--c-overlay);
	content: "";
}

.service-hero__inner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	padding-block: 8px 40px;
}

.service-hero__content {
	display: grid;
	justify-items: start;
	gap: 20px;
	max-width: 46rem;
}

.service-hero__title {
	color: var(--c-white);
}

.service-hero__lead {
	max-width: 40em;
	color: rgba(255, 255, 255, .92);
	font-size: 1.0625rem;
}

.service-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Pasek zaufania */
.trust-bar {
	padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
	background: var(--c-white);
	border-bottom: 1px solid var(--c-line);
}

.trust-bar .trust-bar__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 24px;
	margin: 0;
	padding: 20px 0;
	list-style: none;
}

.trust-bar__list li {
	position: relative;
	padding-left: 28px;
	font-size: var(--fs-button);
	font-weight: 500;
	line-height: 1.4;
}

/* Znacznik „✓" w pomarańczu — dekoracyjny, rysowany CSS-em (zero plików). */
.trust-bar__list li::before,
.list-checks li::before {
	position: absolute;
	top: .35em;
	left: 2px;
	width: 14px;
	height: 8px;
	border-bottom: 3px solid var(--c-orange);
	border-left: 3px solid var(--c-orange);
	transform: rotate(-45deg);
	content: "";
}

/* Sekcje treści (wzorce tobstal/service-*) */
.service-section {
	padding-block: var(--wp--preset--spacing--60, 64px);
	padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
}

.is-style-tobstal-surface {
	background: var(--c-surface);
}

.section-lead {
	max-width: 46em;
	color: var(--c-graphite);
	font-size: 1.0625rem;
}

/* Akapity sekcji: ok. 75 znaków w linii (czytelność), siatki kart i kroków dalej na pełną szerokość. */
.service-section > p {
	max-width: 46em;
}

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

.list-checks li {
	position: relative;
	margin-bottom: 10px;
	padding-left: 30px;
	break-inside: avoid;
}

.service-cards,
.steps,
.cases {
	display: grid;
	gap: 20px;
}

/* Elementy siatek bez odstępów z układu „flow" WordPressa (siatka ma własny gap). */
.service-cards > .service-card,
.steps > .step,
.cases > .case-card {
	margin: 0;
}

.service-card {
	padding: 28px;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	box-shadow: 0 1px 2px rgba(12, 18, 21, .04), 0 8px 24px rgba(12, 18, 21, .06);
}

.service-card h3,
.step h3,
.case-card h3 {
	font-weight: 500;
}

.service-card__note {
	padding-top: 12px;
	color: var(--c-graphite);
	font-size: var(--fs-small);
	border-top: 1px solid var(--c-line);
}

/* Kroki — numeracja automatyczna */
.steps {
	counter-reset: step;
}

.step {
	position: relative;
	padding: 24px;
	background: var(--c-white);
	border-top: 4px solid var(--c-orange);
	border-radius: var(--radius);
	counter-increment: step;
}

.step::before {
	display: block;
	margin-bottom: 12px;
	color: var(--c-action); /* 5,29:1 na bieli */
	font-size: 1.75rem;
	font-weight: 500;
	line-height: 1;
	content: counter(step, decimal-leading-zero);
}

.step h3 {
	font-size: 1.125rem;
}

/* Realizacje */
.case-card {
	padding: 24px;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-left: 4px solid var(--c-orange);
	border-radius: var(--radius);
}

.case-card__facts {
	color: var(--c-graphite);
	font-size: var(--fs-button);
	line-height: 1.8;
}

.case-card__facts strong {
	color: var(--c-ink);
	font-weight: 500;
}

/* FAQ na <details> — zero JS */
.faq {
	max-width: 56rem;
}

.faq > .wp-block-details {
	margin: 0;
	padding: 0 20px;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-top: 0;
}

.faq > .wp-block-details:first-child {
	border-top: 1px solid var(--c-line);
	border-radius: var(--radius) var(--radius) 0 0;
}

.faq > .wp-block-details:last-child {
	border-radius: 0 0 var(--radius) var(--radius);
}

.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding-block: 12px;
	font-weight: 500;
	list-style: none;
	cursor: pointer;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: var(--c-ink);
	font-size: 1.25rem;
	line-height: 1;
	background: var(--c-orange);
	border-radius: 50%;
	content: "+";
}

.faq details[open] > summary::after {
	content: "–";
}

.faq details > :not(summary) {
	padding-bottom: 16px;
	color: var(--c-graphite);
}

/* Lista kafelków */
.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-left: 0;
	padding: 0;
	list-style: none;
}

.tag-list li {
	padding: 8px 16px;
	font-size: var(--fs-button);
	font-weight: 500;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
}

/* Przyciski z edytora (blok „Przycisk") — wygląd jak .btn--primary z theme.json */
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: var(--tap);
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	padding: 10px 26px;
	color: var(--c-ink);
	background: transparent;
	border: 2px solid var(--c-ink);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	color: var(--c-white);
	background: var(--c-ink);
}

/* Sekcja formularza na podstronie usługi (#formularz) */
.service-form {
	padding-block: var(--wp--preset--spacing--60, 64px);
	background: var(--c-white);
	border-top: 1px solid var(--c-line);
}

.service-form__inner {
	display: grid;
	gap: 32px;
}

.service-form__contacts {
	margin-top: 24px;
}

.service-form__box {
	padding: 28px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
}

/* Pas CTA przed stopką — pomarańcz + czarny tekst (6,47:1) */
.cta-band {
	padding-block: clamp(40px, 2rem + 3vw, 72px);
	color: var(--c-ink);
	background: var(--c-orange);
}

.cta-band__inner {
	display: grid;
	align-items: center;
	gap: 24px;
}

.cta-band__title {
	margin-bottom: 8px;
	color: var(--c-ink);
	font-size: var(--fs-h2);
}

.cta-band p {
	font-size: 1.0625rem;
}

.cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cta-band :focus-visible {
	outline-color: var(--c-ink);
}

@media (min-width: 768px) {
	.list-columns {
		column-gap: 48px;
		columns: 2;
	}

	.service-cards,
	.steps,
	.cases {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
}

@media (min-width: 1025px) {
	.service-hero::before {
		background:
			linear-gradient(90deg, rgba(13, 15, 16, .85) 0%, rgba(13, 15, 16, .6) 45%, rgba(13, 15, 16, .15) 100%),
			var(--c-overlay);
	}

	.service-hero__inner {
		padding-block: 16px 64px;
	}

	.trust-bar .trust-bar__list {
		grid-template-columns: repeat(4, auto);
		justify-content: space-between;
	}

	.steps {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}

	.cases {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.service-form__inner {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: start;
		gap: 64px;
	}

	.cta-band__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 48px;
	}
}

/* 15b. Przegląd usług, strony ogólne, realizacje (etap 5) ----------------- */

/* Nagłówek stron bez zdjęcia (Usługi, Kontakt, Realizacje): okruszki → H1 → lead */
.page-intro {
	padding-block: 8px clamp(32px, 2rem + 1.5vw, 56px);
}

.page-intro__title {
	margin-block: 12px 16px;
	max-width: 24em;
}

.page-intro .section-lead {
	margin: 0;
}

/* Grupy usług na stronie /uslugi/: szare → białe → wyróżniona sekcja Niemiec */
.services-group {
	padding-block: var(--wp--preset--spacing--60, 64px);
	background: var(--c-surface);
}

.services-group + .services-group {
	background: var(--c-white);
}

.service-tiles {
	display: grid;
	gap: 20px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

/* Cały kafel klikalny (rozciągnięty link) — pole dotyku znacznie > 44 px */
.service-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-top: 4px solid var(--c-orange);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition: box-shadow 160ms ease, transform 160ms ease;
}

/* Kafle z edytora (strony regionów DE): grupa bloków zamiast listy — bez odstępów układu „flow". */
.service-tiles > .service-tile {
	margin: 0;
}

.service-tile > * {
	margin-block: 0;
}

.services-group + .services-group .service-tile {
	background: var(--c-surface);
	box-shadow: none;
}

.service-tile:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.service-tile__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 500;
}

.service-tile__link {
	color: var(--c-ink);
	text-decoration: none;
}

.service-tile__link::after {
	position: absolute;
	inset: 0;
	content: "";
}

.service-tile__link:focus-visible {
	outline: none;
}

.service-tile:focus-within {
	outline: 3px solid var(--c-action);
	outline-offset: 2px;
}

.service-tile__desc {
	margin: 0;
	color: var(--c-graphite);
}

.service-tile__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 8px;
	color: var(--c-action);
	font-size: var(--fs-button);
	font-weight: 500;
}

.services-group--featured {
	border-bottom: 1px solid var(--c-line);
}

.services-featured {
	display: grid;
	gap: 24px;
	padding: clamp(24px, 1rem + 2vw, 48px);
	background: var(--c-surface);
	border-left: 6px solid var(--c-orange);
	border-radius: var(--radius);
}

.services-featured__title {
	margin-bottom: 12px;
	font-size: var(--fs-h2, 1.75rem);
}

.services-featured p {
	max-width: 46em;
	margin: 0;
	color: var(--c-graphite);
}

/* Pas „Awaria? Zadzwoń" (strona utrzymania ruchu) — ciemny, numery jako przyciski */
.callout {
	color: var(--c-white);
	background: var(--c-deep);
}

.callout h2 {
	color: var(--c-white);
}

.callout p {
	max-width: 46em;
	color: rgba(255, 255, 255, .9);
}

.callout .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--c-white);
	border-color: var(--c-white);
}

.callout .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	color: var(--c-ink);
	background: var(--c-white);
}

.callout :focus-visible {
	outline-color: var(--c-white);
}

/* Realizacje: filtry-pigułki (linki, bez JS) */
.pills {
	margin-top: 24px;
}

.pills__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pill {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
	padding: 0 18px;
	color: var(--c-ink);
	font-size: var(--fs-button);
	font-weight: 500;
	text-decoration: none;
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
}

.pill:hover {
	border-color: var(--c-ink);
}

.pill[aria-current] {
	color: var(--c-white);
	background: var(--c-ink);
	border-color: var(--c-ink);
}

.projects {
	padding-bottom: var(--wp--preset--spacing--60, 64px);
}

.projects-grid {
	display: grid;
	gap: 24px;
}

.project-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition: box-shadow 160ms ease;
}

.project-card:hover {
	box-shadow: var(--shadow-md);
}

.project-card:focus-within {
	outline: 3px solid var(--c-action);
	outline-offset: 2px;
}

.project-card__media {
	aspect-ratio: 4 / 3;
	background: var(--c-surface);
}

.project-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.project-card__body {
	display: grid;
	gap: 8px;
	padding: 24px;
}

.project-card__label {
	margin: 0;
	color: var(--c-action);
	font-size: var(--fs-small);
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.project-card__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 500;
	text-transform: none;
}

.project-card__title a {
	color: var(--c-ink);
	text-decoration: none;
}

.project-card__title a::after {
	position: absolute;
	inset: 0;
	content: "";
}

.project-card__title a:focus-visible {
	outline: none;
}

.project-card__facts {
	margin: 4px 0 0;
	padding: 0;
	color: var(--c-graphite);
	font-size: var(--fs-small);
	list-style: none;
}

.project-card__facts strong {
	color: var(--c-ink);
	font-weight: 500;
}

.project-section {
	border-top: 1px solid var(--c-line);
}

.projects-empty {
	max-width: 56rem;
	padding: clamp(24px, 1rem + 2vw, 40px);
	background: var(--c-surface);
	border-left: 6px solid var(--c-orange);
	border-radius: var(--radius);
}

.projects-empty p:last-child {
	margin-bottom: 0;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
	color: var(--c-action);
	font-weight: 500;
	text-underline-offset: 4px;
}

.pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--tap);
	min-height: var(--tap);
	padding: 0 12px;
	color: var(--c-ink);
	text-decoration: none;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
}

.pagination .current {
	color: var(--c-white);
	background: var(--c-ink);
	border-color: var(--c-ink);
}

/* Pojedyncza realizacja: zdjęcie + metryczka */
.project-hero {
	display: grid;
	gap: 24px;
	margin-top: 24px;
}

.project-hero__media img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--radius);
}

.project-facts {
	display: grid;
	gap: 16px;
	align-content: start;
	margin: 0;
	padding: 24px;
	background: var(--c-surface);
	border-top: 4px solid var(--c-orange);
	border-radius: var(--radius);
}

.project-facts dt {
	color: var(--c-graphite);
	font-size: var(--fs-small);
}

.project-facts dd {
	margin: 0;
	font-weight: 500;
}

.project-content {
	padding-block: 0 var(--wp--preset--spacing--60, 64px);
}

@media (min-width: 768px) {
	.service-tiles,
	.projects-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1025px) {
	.service-tiles {
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
		gap: 24px;
	}

	.projects-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.services-featured {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 48px;
	}

	.project-hero:has(.project-hero__media) {
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
		align-items: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.service-tile:hover {
		transform: none;
	}
}

/* 16. Formularze — DESIGN-SYSTEM.md §5.6 (etap 4) ------------------------- */
/* Kolor błędów spoza palety marki — potrzebny dla czytelności komunikatów (6,5:1 na bieli). */
:root {
	--c-error: #b3261e;
	--c-error-bg: #fdecea;
	--c-ok: #1e6b30;
	--c-ok-bg: #e8f4ea;
}

.tob-form {
	display: grid;
	gap: 20px;
}

.tob-form__grid {
	display: grid;
	gap: 18px 20px;
}

.tob-form__note {
	color: var(--c-graphite);
	font-size: var(--fs-small);
}

.tob-form__status {
	padding: 14px 18px;
	font-weight: 500;
	border-left: 4px solid;
	border-radius: var(--radius);
}

.tob-form__status:focus {
	outline: none;
}

.tob-form__status--ok {
	color: var(--c-ok);
	background: var(--c-ok-bg);
	border-color: var(--c-ok);
}

.tob-form__status--error {
	color: #8c1d18;
	background: var(--c-error-bg);
	border-color: var(--c-error);
}

.tob-form__status[hidden] {
	display: none;
}

/* Pułapka na boty — poza ekranem (nie display: none, bo część botów to sprawdza). */
.tob-form__hp {
	position: absolute !important;
	top: auto;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.field {
	display: grid;
	align-content: start;
	gap: 6px;
}

.field__label {
	font-size: var(--fs-button);
	font-weight: 500;
}

.field__req {
	color: var(--c-action);
}

/* 16 px w polach: iOS nie powiększa wtedy strony przy wpisywaniu. */
.field__input {
	width: 100%;
	min-height: var(--tap);
	padding: 11px 14px;
	color: var(--c-ink);
	font-size: 1rem;
	line-height: 1.4;
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
}

textarea.field__input {
	min-height: 140px;
	resize: vertical;
}

select.field__input {
	padding-right: 36px;
}

.field__input:focus-visible {
	border-color: var(--c-action);
	outline: 3px solid var(--c-action);
	outline-offset: 1px;
}

.has-error .field__input,
.field__input[aria-invalid="true"] {
	border: 2px solid var(--c-error);
}

.field__error {
	color: var(--c-error);
	font-size: var(--fs-small);
	font-weight: 500;
}

.field__error[hidden] {
	display: none;
}

.field__hint {
	color: var(--c-graphite);
	font-size: var(--fs-small);
}

.field__hint--alert {
	padding: 12px 16px;
	color: var(--c-ink);
	font-weight: 500;
	background: var(--c-surface);
	border-left: 4px solid var(--c-orange);
	border-radius: var(--radius);
}

.field__hint--alert[hidden] {
	display: none;
}

html:not(.js) .field__hint--alert[hidden] {
	display: block; /* bez JS podpowiedź „awaria → telefon" widoczna zawsze */
}

.choices {
	margin: 0;
	padding: 0;
	border: 0;
}

.choices legend {
	margin-bottom: 4px;
	padding: 0;
}

.choices__list {
	display: grid;
}

.choices__list--inline {
	display: flex;
	flex-wrap: wrap;
	column-gap: 24px;
}

.choice {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: var(--tap);
	cursor: pointer;
}

.choice input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--c-action);
}

.choice--consent {
	align-items: flex-start;
	padding-block: 10px;
	font-size: var(--fs-small);
	line-height: 1.5;
}

.choice--consent input {
	margin-top: 1px;
}

/* Link w treści zgody: pole klikalne 44 px bez rozpychania wierszy (ujemny margines). */
.choice--consent a {
	display: inline-block;
	min-height: 0;
	margin-block: -12px;
	padding-block: 12px;
}

.has-error .choice input {
	outline: 2px solid var(--c-error);
	outline-offset: 2px;
}

.field__file {
	padding: 8px;
	cursor: pointer;
}

.field__file::file-selector-button {
	min-height: 36px;
	margin-right: 12px;
	padding: 6px 14px;
	color: var(--c-white);
	font: inherit;
	font-size: var(--fs-small);
	font-weight: 500;
	background: var(--c-ink);
	border: 0;
	border-radius: var(--radius);
	cursor: pointer;
}

.file-list {
	margin: 0;
	padding: 0;
	color: var(--c-graphite);
	font-size: var(--fs-small);
	list-style: none;
}

.file-list:empty {
	display: none;
}

.tob-form__submit {
	justify-self: start;
}

.tob-form.is-sending .tob-form__submit {
	opacity: .7;
	cursor: progress;
}

@media (min-width: 768px) {
	.tob-form__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.field--full {
		grid-column: 1 / -1;
	}
}

/* 13. Ograniczenie ruchu --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}

	/* WhatsApp: bez animacji wjazdu — przycisk po prostu jest. */
	.wa-fab {
		opacity: 1;
		transform: none;
		visibility: visible;
	}
}
