/**
 * Watermania — style motywu.
 *
 * Wszystkie kolory, kroje, rozmiary i odstępy pochodzą z theme.json
 * (zmienne --wp--preset--* i --wp--custom--*). Poniżej tylko krótsze aliasy.
 * Progi szerokości (media queries) nie mogą korzystać ze zmiennych: 600, 768, 1100 px.
 */

:root {
	--wm-blue: var(--wp--preset--color--brand-blue);
	--wm-blue-dark: var(--wp--preset--color--brand-blue-dark);
	--wm-orange: var(--wp--preset--color--brand-orange);
	--wm-lime: var(--wp--preset--color--brand-lime);
	--wm-ink: var(--wp--preset--color--ink);
	--wm-ink-soft: var(--wp--preset--color--ink-soft);
	--wm-tint-1: var(--wp--preset--color--blue-tint-1);
	--wm-tint-2: var(--wp--preset--color--blue-tint-2);
	--wm-tint-3: var(--wp--preset--color--blue-tint-3);
	--wm-tint-4: var(--wp--preset--color--blue-tint-4);
	--wm-white: var(--wp--preset--color--white);

	--wm-s1: var(--wp--preset--spacing--10);
	--wm-s2: var(--wp--preset--spacing--20);
	--wm-s3: var(--wp--preset--spacing--30);
	--wm-s4: var(--wp--preset--spacing--40);
	--wm-s5: var(--wp--preset--spacing--50);
	--wm-s6: var(--wp--preset--spacing--60);
	--wm-s7: var(--wp--preset--spacing--70);

	--wm-radius-s: var(--wp--custom--radius--small);
	--wm-radius-m: var(--wp--custom--radius--medium);
	--wm-radius-l: var(--wp--custom--radius--large);
	--wm-radius-pill: var(--wp--custom--radius--pill);
	--wm-border: var(--wp--custom--border--thin);
	--wm-border-thick: var(--wp--custom--border--thick);
	--wm-duration: var(--wp--custom--duration);

	/* Ukos: jeden kąt dla całej strony, przeliczony na wysokość przy pełnej szerokości ekranu. */
	--wm-slant: calc(tan(var(--wp--custom--angle)) * 100vw);

	--wm-focus-color: var(--wm-blue);
}

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

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

html {
	scroll-padding-top: calc(var(--wp--custom--logo--header-wide) + var(--wm-s5));
}

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

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

:where(h1, h2, h3, h4, h5, h6) {
	text-wrap: balance;
}

:where(p, li) {
	text-wrap: pretty;
}

:focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--wm-focus-color);
	outline-offset: var(--wp--custom--focus--offset);
}

/* Sekcja niebieska poza edytorem (w blokach to samo daje styl „Sekcja niebieska”). */
.wm-section-blue {
	background: var(--wm-blue);
	color: var(--wm-white);
}

.wm-section-blue :is(h1, h2, h3, h4) {
	color: var(--wm-white);
}

/* Na niebieskim tle fokus limonkowy (kontrast 5,98). */
.wm-section-blue,
.is-style-section-blue,
.wm-on-blue,
.site-footer,
.topbar,
.mobile-cta {
	--wm-focus-color: var(--wm-lime);
}

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

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

.skip-link:focus {
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	z-index: 1000;
	top: var(--wm-s2);
	left: var(--wm-s2);
	padding: var(--wm-s2) var(--wm-s3);
	background: var(--wm-lime);
	color: var(--wm-ink);
	font-weight: 600;
	border-radius: var(--wm-radius-s);
}

.wm-container {
	width: 100%;
	max-width: calc(var(--wp--style--global--wide-size) + var(--wp--style--root--padding-left) + var(--wp--style--root--padding-right));
	margin-inline: auto;
	padding-inline: var(--wp--style--root--padding-left) var(--wp--style--root--padding-right);
}

.wm-section {
	padding-block: var(--wm-s6);
}

.wm-icon {
	width: var(--wp--custom--icon--small);
	height: var(--wp--custom--icon--small);
	flex: none;
	vertical-align: middle;
}

.wm-todo {
	display: inline-block;
	padding: var(--wm-s1) var(--wm-s2);
	border: var(--wm-border-thick) dashed currentColor;
	border-radius: var(--wm-radius-s);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: var(--wp--custom--letter-spacing--caps);
}

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

.wm-button,
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wm-s2);
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--wm-duration), color var(--wm-duration), border-color var(--wm-duration);
}

.wm-button {
	padding: 0.8em 1.6em;
	border: var(--wm-border-thick) solid transparent;
	border-radius: var(--wm-radius-pill);
	background: var(--wm-orange);
	color: var(--wm-ink);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	line-height: 1.2;
}

.wm-button:hover {
	background: var(--wm-lime);
	color: var(--wm-ink);
}

/* Pomocniczy: limonka z granatowym tekstem (kontrast 10,37). */
.wm-button--lime,
.wp-block-button.is-style-lime .wp-block-button__link {
	background: var(--wm-lime);
	color: var(--wm-ink);
}

.wm-button--lime:hover,
.wp-block-button.is-style-lime .wp-block-button__link:hover {
	background: var(--wm-white);
	color: var(--wm-ink);
}

/* Obrys: na białym niebieski, na niebieskim biały. */
.wm-button--outline,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: var(--wm-border-thick) solid currentColor;
	color: var(--wm-blue);
}

.wm-button--outline:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wm-blue);
	border-color: var(--wm-blue);
	color: var(--wm-white);
}

:is(.is-style-section-blue, .wm-section-blue, .wm-on-blue) :is(.wm-button--outline, .is-style-outline .wp-block-button__link) {
	color: var(--wm-white);
}

:is(.is-style-section-blue, .wm-section-blue, .wm-on-blue) :is(.wm-button--outline, .is-style-outline .wp-block-button__link):hover {
	background: var(--wm-white);
	border-color: var(--wm-white);
	color: var(--wm-blue);
}

/* ---------- Nagłówki: podświetlenie i nagłówek dwuczłonowy ---------- */

/*
 * Podświetlenie: ukośny pomarańczowy blok pod wybranymi słowami (najwyżej jedno na ekran).
 * Tekst na pomarańczowym zawsze granatowy (decyzja 8). Działa też przy łamaniu wiersza.
 */
.wm-highlight {
	--wm-cut: 0.45em;
	color: var(--wm-ink);
	padding: 0.02em 0.5em 0.06em;
	margin-inline: -0.15em;
	background: linear-gradient(
		102deg,
		transparent var(--wm-cut),
		var(--wm-orange) var(--wm-cut),
		var(--wm-orange) calc(100% - var(--wm-cut)),
		transparent calc(100% - var(--wm-cut))
	);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* Nagłówek „Konfiguracje // gotowe rozwiązania”. */
.wm-heading-split,
.wp-block-heading.is-style-split {
	color: var(--wm-ink);
}

.wm-heading-split__second,
.wp-block-heading.is-style-split em {
	font-style: normal;
	color: var(--wm-blue);
}

:is(.is-style-section-blue, .wm-section-blue, .wm-on-blue) :is(.wm-heading-split, .wp-block-heading.is-style-split) {
	color: var(--wm-white);
}

:is(.is-style-section-blue, .wm-section-blue, .wm-on-blue) :is(.wm-heading-split__second, .wp-block-heading.is-style-split em) {
	color: var(--wm-lime);
}

.wm-eyebrow {
	margin: 0 0 var(--wm-s2);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: var(--wp--custom--letter-spacing--caps);
	text-transform: uppercase;
	color: var(--wm-ink-soft);
}

/* ---------- Ozdobniki (zawsze aria-hidden, nigdy pod tekstem) ---------- */

.wm-f-b1 { fill: var(--wp--custom--facet--blue-1); }
.wm-f-b2 { fill: var(--wp--custom--facet--blue-2); }
.wm-f-b3 { fill: var(--wp--custom--facet--blue-3); }
.wm-f-y1 { fill: var(--wp--custom--facet--yellow-1); }
.wm-f-y2 { fill: var(--wp--custom--facet--yellow-2); }
.wm-f-ol { fill: var(--wp--custom--facet--orange-light); }
.wm-f-or { fill: var(--wp--custom--facet--orange-red); }
.wm-f-o { fill: var(--wm-orange); }
.wm-f-l { fill: var(--wm-lime); }

.wm-has-deco {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.wm-deco {
	position: absolute;
	z-index: -1;
	pointer-events: none;
	height: auto;
}

.wm-deco--facets-corner {
	width: clamp(7rem, 22vw, 19rem);
}

.wm-deco--dots {
	width: clamp(5rem, 10vw, 8rem);
}

.wm-deco--drops {
	width: clamp(3rem, 6vw, 5rem);
}

.wm-deco.is-top-left { top: 0; left: 0; }
.wm-deco.is-top-right { top: 0; right: 0; transform: scaleX(-1); }
.wm-deco.is-bottom-left { bottom: 0; left: 0; transform: scaleY(-1); }
.wm-deco.is-bottom-right { bottom: 0; right: 0; transform: scale(-1); }

@media (max-width: 599px) {
	.wm-deco--facets-corner {
		width: 5.5rem;
	}

	/* Na telefonie fasety tylko tam, gdzie oznaczono, że nie wejdą pod tekst. */
	.wm-deco--facets-corner:not(.is-keep-mobile) {
		display: none;
	}

	.wm-deco--dots,
	.wm-deco--drops {
		display: none;
	}
}

/* ---------- Ukośne zdjęcia i krawędzie sekcji ---------- */

.wm-slant-photo {
	container-type: inline-size;
	margin: 0;
}

.wm-slant-photo img {
	--wm-cut: calc(tan(var(--wp--custom--angle)) * 100cqi);
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	clip-path: polygon(0 0, 100% var(--wm-cut), 100% 100%, 0 calc(100% - var(--wm-cut)));
}

.wm-edge-bottom {
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--wm-slant)));
	padding-bottom: calc(var(--wm-s6) + var(--wm-slant));
}

.wm-edge-top {
	clip-path: polygon(0 var(--wm-slant), 100% 0, 100% 100%, 0 100%);
	padding-top: calc(var(--wm-s6) + var(--wm-slant));
}

/* ---------- Ikony usług na pomarańczowym trójkącie ---------- */

.wm-service-icon {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: var(--wp--custom--icon--large);
	height: var(--wp--custom--icon--large);
	flex: none;
	color: var(--wm-white);
}

.wm-service-icon::before {
	content: "";
	position: absolute;
	inset: 12% 8% 0 6%;
	background: var(--wm-orange);
	clip-path: polygon(0 18%, 100% 0, 46% 100%);
}

.wm-service-icon .wm-icon {
	position: relative;
	width: 78%;
	height: 78%;
}

/* Na jasnym tle kontur w kolorze niebieskim. */
.wm-service-icon--light {
	color: var(--wm-blue);
}

.wm-service-icon--small {
	width: var(--wp--custom--icon--medium);
	height: var(--wp--custom--icon--medium);
}

/* ---------- Liczby („Watermania w liczbach”) ---------- */

.wm-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: var(--wm-s5) var(--wm-s4);
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.wm-stat__number {
	display: block;
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
	line-height: var(--wp--custom--line-height--tight);
	color: var(--wm-blue);
}

.wm-stat__label {
	display: block;
	margin-top: var(--wm-s2);
	font-size: var(--wp--preset--font-size--small);
}

:is(.is-style-section-blue, .wm-section-blue, .wm-on-blue) .wm-stat__number {
	color: var(--wm-lime);
}

/* ---------- Pasek górny ---------- */

.topbar {
	background: var(--wm-blue-dark);
	color: var(--wm-white);
	font-size: var(--wp--preset--font-size--small);
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wm-s3);
	min-height: var(--wp--custom--header--bar);
}

.topbar a {
	color: var(--wm-white);
	text-decoration: none;
}

.topbar a:hover {
	color: var(--wm-lime);
	text-decoration: underline;
}

.topbar__phones {
	display: flex;
	align-items: center;
	gap: var(--wm-s2) var(--wm-s3);
	margin: 0;
	font-weight: 600;
}

.topbar__phones .wm-icon {
	color: var(--wm-lime);
}

.topbar__social {
	display: flex;
	gap: var(--wm-s1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.topbar__social a {
	display: grid;
	place-items: center;
	width: var(--wp--custom--header--bar);
	height: var(--wp--custom--header--bar);
}

@media (max-width: 599px) {
	.topbar__social {
		display: none;
	}

	.topbar__inner {
		justify-content: center;
	}
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wm-white);
	border-bottom: var(--wm-border) solid var(--wm-tint-3);
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 0);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--wm-s3);
	min-height: calc(var(--wp--custom--logo--header) + var(--wm-s4));
}

.site-header__logo {
	display: block;
	flex: none;
	color: var(--wm-blue);
	line-height: 0;
	border-radius: var(--wm-radius-s);
}

.wm-logo--compact {
	display: block;
	height: var(--wp--custom--logo--header);
	width: auto;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: var(--wm-s2);
	margin-left: auto;
}

.site-header__inquiry,
.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--wm-s2);
	min-height: 2.75rem;
	padding: var(--wm-s2) var(--wm-s3);
	border: var(--wm-border-thick) solid var(--wm-tint-3);
	border-radius: var(--wm-radius-pill);
	background: var(--wm-white);
	color: var(--wm-blue);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: border-color var(--wm-duration), background-color var(--wm-duration);
}

.site-header__inquiry:hover,
.menu-toggle:hover {
	border-color: var(--wm-blue);
	background: var(--wm-tint-2);
}

.site-header__inquiry .wm-icon,
.menu-toggle .wm-icon {
	width: var(--wp--custom--icon--medium);
	height: var(--wp--custom--icon--medium);
}

.menu-toggle__close,
.menu-toggle[aria-expanded="true"] .menu-toggle__open {
	display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
	display: block;
}

@media (max-width: 599px) {
	.site-header__inquiry-label,
	.menu-toggle__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.site-header__inquiry,
	.menu-toggle {
		padding: var(--wm-s2);
	}
}

/* ---------- Menu główne: telefon i tablet (szuflada) ---------- */

.primary-nav__list,
.primary-nav__submenu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav a {
	color: var(--wm-ink);
	text-decoration: none;
}

@media (max-width: 1099px) {
	.primary-nav {
		position: fixed;
		inset: var(--wm-nav-top, 0) 0 0;
		z-index: 99;
		display: none;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: var(--wm-s3) var(--wp--style--root--padding-left) var(--wm-s6);
		background: var(--wm-white);
		border-top: var(--wm-border) solid var(--wm-tint-3);
	}

	.is-menu-open .primary-nav {
		display: block;
	}

	.wm-scroll-lock {
		overflow: hidden;
	}

	.primary-nav__item {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		border-bottom: var(--wm-border) solid var(--wm-tint-3);
	}

	.primary-nav__link {
		flex: 1;
		padding: var(--wm-s3) 0;
		font-size: var(--wp--preset--font-size--large);
		font-weight: 600;
	}

	.primary-nav__item.is-active > .primary-nav__link {
		color: var(--wm-blue);
		text-decoration: underline;
		text-decoration-thickness: var(--wm-border-thick);
		text-underline-offset: 0.3em;
	}

	.primary-nav__toggle {
		display: grid;
		place-items: center;
		width: 2.75rem;
		height: 2.75rem;
		border: 0;
		border-radius: var(--wm-radius-s);
		background: var(--wm-tint-2);
		color: var(--wm-blue);
		cursor: pointer;
	}

	.primary-nav__submenu {
		display: none;
		flex-basis: 100%;
		padding-bottom: var(--wm-s3);
	}

	.primary-nav__item.is-open > .primary-nav__submenu {
		display: block;
	}

	.primary-nav__submenu a {
		display: flex;
		align-items: center;
		gap: var(--wm-s2);
		padding: var(--wm-s2) var(--wm-s3);
	}

	.primary-nav__extra {
		display: grid;
		gap: var(--wm-s2);
		margin-top: var(--wm-s4);
	}
}

/* ---------- Menu główne: komputer ---------- */

@media (min-width: 1100px) {
	.wm-logo--compact {
		height: var(--wp--custom--logo--header-wide);
	}

	.site-header__inner {
		gap: var(--wm-s4);
	}

	.menu-toggle,
	.primary-nav__extra {
		display: none;
	}

	.primary-nav {
		margin-left: auto;
	}

	.primary-nav__list {
		display: flex;
		align-items: center;
		gap: var(--wm-s1);
	}

	.primary-nav__item {
		position: relative;
		display: flex;
		align-items: center;
	}

	.primary-nav__link {
		display: block;
		padding: var(--wm-s2) var(--wm-s3);
		border-radius: var(--wm-radius-pill);
		font-weight: 600;
		white-space: nowrap;
	}

	.primary-nav__item.has-children > .primary-nav__link {
		padding-right: var(--wm-s1);
	}

	.primary-nav__link:hover {
		background: var(--wm-tint-2);
		color: var(--wm-blue);
	}

	/* Aktywny dział: kolor + podkreślenie, nie sam kolor. */
	.primary-nav__item.is-active > .primary-nav__link {
		color: var(--wm-blue);
		text-decoration: underline;
		text-decoration-color: var(--wm-orange);
		text-decoration-thickness: 3px;
		text-underline-offset: 0.45em;
	}

	.primary-nav__toggle {
		display: grid;
		place-items: center;
		width: 1.75rem;
		height: 1.75rem;
		padding: 0;
		border: 0;
		border-radius: var(--wm-radius-s);
		background: transparent;
		color: var(--wm-blue);
		cursor: pointer;
	}

	.primary-nav__submenu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 10;
		display: none;
		min-width: 15rem;
		padding: var(--wm-s2);
		background: var(--wm-white);
		border: var(--wm-border) solid var(--wm-tint-3);
		border-top: 3px solid var(--wm-orange);
		border-radius: 0 0 var(--wm-radius-m) var(--wm-radius-m);
		box-shadow: var(--wp--preset--shadow--card);
	}

	.primary-nav__item.is-open > .primary-nav__submenu {
		display: block;
	}

	@media (hover: hover) {
		.primary-nav__item.has-children:hover > .primary-nav__submenu {
			display: block;
		}
	}

	.primary-nav__submenu a {
		display: flex;
		align-items: center;
		gap: var(--wm-s2);
		padding: var(--wm-s2) var(--wm-s3);
		border-radius: var(--wm-radius-s);
		white-space: nowrap;
	}

	.primary-nav__submenu a:hover {
		background: var(--wm-tint-2);
		color: var(--wm-blue);
	}
}

.primary-nav__toggle .wm-icon {
	transition: transform var(--wm-duration);
}

.primary-nav__item.is-open > .primary-nav__toggle .wm-icon {
	transform: rotate(180deg);
}

.primary-nav__subitem--overview a {
	font-weight: 600;
	color: var(--wm-blue);
}

.primary-nav__subitem--overview .wm-icon {
	color: var(--wm-blue);
}

.primary-nav__subitem.is-active > a {
	font-weight: 600;
	color: var(--wm-blue);
	text-decoration: underline;
}

/* ---------- Pasek działu ---------- */

.department-bar {
	background: var(--wm-tint-2);
	border-top: var(--wm-border) solid var(--wm-tint-3);
	font-size: var(--wp--preset--font-size--small);
}

.department-bar__inner {
	display: flex;
	align-items: center;
	gap: var(--wm-s3) var(--wm-s4);
	min-height: 3rem;
}

.department-bar__name {
	display: inline-flex;
	align-items: center;
	gap: var(--wm-s2);
	flex: none;
	font-weight: 700;
	color: var(--wm-blue);
	text-decoration: none;
}

.department-bar__nav {
	overflow-x: auto;
	scrollbar-width: thin;
}

.department-bar__nav ul {
	display: flex;
	gap: var(--wm-s1);
	margin: 0;
	padding: var(--wm-s1) 0;
	list-style: none;
}

.department-bar__nav a {
	display: block;
	padding: var(--wm-s1) var(--wm-s3);
	border-radius: var(--wm-radius-pill);
	color: var(--wm-ink);
	text-decoration: none;
	white-space: nowrap;
}

.department-bar__nav a:hover {
	background: var(--wm-white);
	color: var(--wm-blue);
}

.department-bar__nav .is-active > a {
	background: var(--wm-white);
	color: var(--wm-blue);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--wm-orange);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
}

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

.page-header {
	padding-block: var(--wm-s5) var(--wm-s4);
	background: var(--wm-tint-1);
	border-bottom: var(--wm-border) solid var(--wm-tint-3);
}

.page-header__title {
	margin: var(--wm-s2) 0 0;
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: var(--wp--custom--line-height--tight);
}

.page-header__lead {
	max-width: 46rem;
	margin: var(--wm-s3) 0 0;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wm-ink-soft);
}

.page-header__query {
	color: var(--wm-ink);
}

.wm-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wm-s1) var(--wm-s2);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wm-ink-soft);
}

.wm-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: var(--wm-s1);
}

.wm-breadcrumbs li + li::before {
	content: "›";
	margin-right: var(--wm-s1);
	color: var(--wm-ink-soft);
}

.wm-breadcrumbs__icon {
	color: var(--wm-blue);
}

/* ---------- Treść stron ---------- */

.entry-content {
	padding-block: var(--wm-s5) var(--wm-s6);
}

.entry-content > .alignfull:first-child {
	margin-top: calc(-1 * var(--wm-s5));
}

.entry-content > .alignfull:last-child {
	margin-bottom: calc(-1 * var(--wm-s6));
}

.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table :is(th, td) {
	padding: var(--wm-s2) var(--wm-s3);
	border: var(--wm-border) solid var(--wm-tint-3);
	text-align: left;
}

.wp-block-table thead {
	background: var(--wm-tint-2);
	border-bottom: var(--wm-border-thick) solid var(--wm-blue);
}

/* ---------- Karty i siatka ---------- */

.wm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
	gap: var(--wm-s4);
}

.wm-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--wm-white);
	border: var(--wm-border) solid var(--wm-tint-3);
	border-radius: var(--wm-radius-l);
	transition: box-shadow var(--wm-duration), border-color var(--wm-duration);
}

.wm-card:hover {
	border-color: var(--wm-tint-4);
	box-shadow: var(--wp--preset--shadow--card);
}

.wm-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.wm-card__body {
	padding: var(--wm-s4);
}

.wm-card__meta {
	margin: 0 0 var(--wm-s1);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: var(--wp--custom--letter-spacing--caps);
	text-transform: uppercase;
	color: var(--wm-ink-soft);
}

.wm-card__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
}

.wm-card__title a {
	color: var(--wm-blue);
	text-decoration: none;
}

.wm-card__title a:hover {
	text-decoration: underline;
}

.wm-card__excerpt p {
	margin: var(--wm-s2) 0 0;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wm-s2);
	margin-top: var(--wm-s5);
}

.nav-links .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding-inline: var(--wm-s3);
	border: var(--wm-border) solid var(--wm-tint-3);
	border-radius: var(--wm-radius-pill);
	text-decoration: none;
}

.nav-links .page-numbers.current {
	background: var(--wm-blue);
	border-color: var(--wm-blue);
	color: var(--wm-white);
	font-weight: 600;
}

/* ---------- Formularze ---------- */

:where(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"]), select, textarea) {
	width: 100%;
	min-height: 2.75rem;
	padding: var(--wm-s2) var(--wm-s3);
	border: var(--wm-border-thick) solid var(--wm-ink-soft);
	border-radius: var(--wm-radius-s);
	background: var(--wm-white);
	color: var(--wm-ink);
	font: inherit;
}

:where(input, select, textarea):focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--wm-blue);
	outline-offset: 1px;
	border-color: var(--wm-blue);
}

:where(input[type="checkbox"], input[type="radio"]) {
	width: 1.25rem;
	height: 1.25rem;
	accent-color: var(--wm-blue);
}

textarea {
	min-height: 8rem;
	resize: vertical;
}

label,
.wm-label {
	display: block;
	margin-bottom: var(--wm-s1);
	font-weight: 600;
}

.wm-field {
	margin-bottom: var(--wm-s4);
}

.wm-field__hint {
	margin: var(--wm-s1) 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wm-ink-soft);
}

.wm-field--error :is(input, select, textarea) {
	border-color: var(--wp--custom--facet--orange-red);
}

.wm-field__error {
	display: flex;
	align-items: center;
	gap: var(--wm-s1);
	margin: var(--wm-s1) 0 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wm-ink);
}

.wm-field__error::before {
	content: "!";
	display: inline-grid;
	place-items: center;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	background: var(--wm-orange);
	color: var(--wm-ink);
	font-weight: 700;
}

.wm-check {
	display: flex;
	align-items: flex-start;
	gap: var(--wm-s2);
	font-weight: 400;
}

.wm-check input {
	margin-top: 0.2em;
	flex: none;
}

.wm-search {
	max-width: 36rem;
	margin-bottom: var(--wm-s4);
}

.wm-search__row {
	display: flex;
	gap: var(--wm-s2);
}

.wm-search__row .wm-button {
	flex: none;
}

/* ---------- 404 ---------- */

.wm-404__links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: var(--wm-s3);
	margin: 0 0 var(--wm-s5);
	padding: 0;
	list-style: none;
}

.wm-404__link {
	display: flex;
	align-items: center;
	gap: var(--wm-s3);
	padding: var(--wm-s4);
	border: var(--wm-border) solid var(--wm-tint-3);
	border-radius: var(--wm-radius-l);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	color: var(--wm-blue);
	text-decoration: none;
}

.wm-404__link:hover {
	border-color: var(--wm-blue);
	background: var(--wm-tint-1);
}

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

.site-footer {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin-top: var(--wm-s6);
	padding-top: calc(var(--wm-s6) + var(--wm-slant));
	clip-path: polygon(0 var(--wm-slant), 100% 0, 100% 100%, 0 100%);
	background: var(--wm-blue);
	color: var(--wm-white);
	font-size: var(--wp--preset--font-size--small);
}

.site-footer a {
	color: var(--wm-white);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--wm-lime);
	text-decoration: underline;
}

.site-footer .site-footer__deco {
	right: 0;
	bottom: 0;
	width: 7rem;
	transform: scale(-1);
}

.site-footer__inner {
	display: grid;
	gap: var(--wm-s5);
	padding-bottom: var(--wm-s5);
}

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

	/* Miejsce na fasety w prawym dolnym rogu: nie mogą wejść pod tekst. */
	.site-footer__bottom {
		padding-right: 8rem;
	}
}

@media (min-width: 1100px) {
	.site-footer__inner {
		grid-template-columns: 1.3fr 1fr 1fr 1fr;
	}
}

.site-footer__logo {
	display: block;
	width: var(--wp--custom--logo--footer);
	height: auto;
}

.site-footer__partner {
	margin: var(--wm-s3) 0 0;
}

.site-footer__heading {
	margin: 0 0 var(--wm-s3);
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wm-white);
}

.site-footer :is(ul) {
	display: grid;
	gap: var(--wm-s2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__contact li,
.site-footer__social a {
	display: flex;
	align-items: center;
	gap: var(--wm-s2);
}

.site-footer__contact .wm-icon {
	color: var(--wm-lime);
}

.site-footer__contact a {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
}

.site-footer__contact li:has(.site-footer__emails) {
	align-items: flex-start;
}

.site-footer__emails {
	display: grid;
	gap: var(--wm-s1);
}

.site-footer__emails a {
	font-size: var(--wp--preset--font-size--small);
	overflow-wrap: break-word;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wm-s2) var(--wm-s4);
	padding-block: var(--wm-s4);
	border-top: var(--wm-border) solid color-mix(in srgb, var(--wm-white) 25%, transparent);
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer .site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wm-s2) var(--wm-s4);
}

/* ---------- Pasek „Zadzwoń / Zapytaj” na telefonie ---------- */

.mobile-cta {
	display: none;
}

@media (max-width: 767px) {
	body {
		padding-bottom: 3.5rem;
	}

	.mobile-cta {
		position: fixed;
		inset: auto 0 0;
		z-index: 90;
		display: grid;
		grid-template-columns: 1fr 1fr;
		background: var(--wm-blue);
		box-shadow: var(--wp--preset--shadow--card);
	}

	.mobile-cta a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: var(--wm-s2);
		min-height: 3.5rem;
		font-weight: 700;
		text-decoration: none;
	}

	.mobile-cta__call {
		color: var(--wm-white);
	}

	.mobile-cta__ask {
		background: var(--wm-orange);
		color: var(--wm-ink);
	}

	.is-menu-open .mobile-cta {
		display: none;
	}
}

/* ---------- Ruch i mikroanimacje ---------- */

:root {
	--wm-ease: var(--wp--custom--motion--ease);
	--wm-fast: var(--wp--custom--motion--fast);
	--wm-base: var(--wp--custom--motion--base);
	--wm-slow: var(--wp--custom--motion--slow);
	--wm-rise: var(--wp--custom--motion--distance);
	--wm-step: var(--wp--custom--motion--stagger);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* Nagłówek: półprzezroczysty z rozmyciem, cień po przewinięciu, chowany w dół. */
.site-header {
	background: color-mix(in srgb, var(--wm-white) var(--wp--custom--glass--opacity), transparent);
	-webkit-backdrop-filter: blur(var(--wp--custom--glass--blur)) saturate(1.4);
	backdrop-filter: blur(var(--wp--custom--glass--blur)) saturate(1.4);
	transition: transform var(--wm-base) var(--wm-ease), box-shadow var(--wm-base) var(--wm-ease);
}

/* Rozmycie tworzy blok zawierający dla position: fixed, więc przy otwartej szufladzie je wyłączamy. */
.is-menu-open .site-header {
	background: var(--wm-white);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.site-header.is-scrolled {
	box-shadow: var(--wp--preset--shadow--card);
}

.site-header.is-hidden {
	transform: translateY(-100%);
}

/* Etykieta-pigułka z kropką nad tytułem. */
.wm-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--wm-s2);
	padding: var(--wm-s1) var(--wm-s3);
	border-radius: var(--wm-radius-pill);
	background: var(--wm-tint-2);
	color: var(--wm-blue);
	letter-spacing: var(--wp--custom--letter-spacing--caps);
}

.wm-eyebrow::before {
	content: "";
	width: 0.45em;
	height: 0.45em;
	border-radius: 50%;
	background: var(--wm-orange);
}

:is(.is-style-section-blue, .wm-section-blue, .wm-on-blue) .wm-eyebrow {
	background: color-mix(in srgb, var(--wm-white) 12%, transparent);
	color: var(--wm-white);
}

/* Przyciski: wypełnienie od lewej i strzałka ↗, która wylatuje i wraca. */
.wm-button {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	transition: color var(--wm-base) var(--wm-ease), border-color var(--wm-base) var(--wm-ease);
}

.wm-button::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wm-lime);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform var(--wm-base) var(--wm-ease);
}

.wm-button:hover {
	background: var(--wm-orange);
}

.wm-button:hover::before {
	transform: scaleX(1);
}

.wm-button--lime::before {
	background: var(--wm-white);
}

.wm-button--lime:hover {
	background: var(--wm-lime);
}

.wm-button--outline::before {
	background: var(--wm-blue);
}

.wm-button--outline:hover {
	background: transparent;
}

:is(.is-style-section-blue, .wm-section-blue, .wm-on-blue) .wm-button--outline::before {
	background: var(--wm-white);
}

.wm-button--arrow {
	padding-right: 0.45em;
}

.wm-button__arrow {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 2.1em;
	height: 2.1em;
	margin-left: var(--wm-s1);
	overflow: hidden;
	border-radius: 50%;
	background: var(--wm-ink);
	color: var(--wm-white);
}

.wm-button__arrow .wm-icon {
	grid-area: 1 / 1;
	width: 1.05em;
	height: 1.05em;
	transition: transform var(--wm-base) var(--wm-ease);
}

.wm-button__arrow .wm-icon + .wm-icon {
	transform: translate(-150%, 150%);
}

.wm-button--arrow:hover .wm-button__arrow .wm-icon:first-child {
	transform: translate(150%, -150%);
}

.wm-button--arrow:hover .wm-button__arrow .wm-icon + .wm-icon {
	transform: translate(0, 0);
}

/* Menu: podkreślenie wysuwane od lewej, podmenu z płynnym pojawieniem. */
@media (min-width: 1100px) {
	.primary-nav__link {
		position: relative;
	}

	.primary-nav__link::after {
		content: "";
		position: absolute;
		left: var(--wm-s3);
		right: var(--wm-s3);
		bottom: 0.2em;
		height: 2px;
		border-radius: 2px;
		background: var(--wm-orange);
		transform: scaleX(0);
		transform-origin: left center;
		transition: transform var(--wm-base) var(--wm-ease);
	}

	.primary-nav__item.has-children > .primary-nav__link::after {
		right: var(--wm-s1);
	}

	.primary-nav__link:hover::after {
		transform: scaleX(1);
	}

	.primary-nav__item.is-active > .primary-nav__link {
		text-decoration: none;
	}

	.primary-nav__item.is-active > .primary-nav__link::after {
		height: 3px;
		transform: scaleX(1);
	}

	.primary-nav__submenu {
		opacity: 1;
		transform: translateY(0);
		transition: opacity var(--wm-fast) var(--wm-ease), transform var(--wm-base) var(--wm-ease), display var(--wm-base) allow-discrete;
	}

	@starting-style {
		.primary-nav__item.is-open > .primary-nav__submenu,
		.primary-nav__item.has-children:hover > .primary-nav__submenu {
			opacity: 0;
			transform: translateY(-0.5rem);
		}
	}

	.primary-nav__submenu a {
		transition: background-color var(--wm-fast), color var(--wm-fast), padding-left var(--wm-base) var(--wm-ease);
	}

	.primary-nav__submenu a:hover {
		padding-left: var(--wm-s4);
	}
}

@media (max-width: 1099px) {
	.is-menu-open .primary-nav {
		animation: wm-drawer var(--wm-base) var(--wm-ease);
	}
}

@keyframes wm-drawer {
	from {
		opacity: 0;
		transform: translateY(-0.75rem);
	}
}

/* Karty: uniesienie, przybliżenie zdjęcia. */
.wm-card {
	transition: transform var(--wm-base) var(--wm-ease), box-shadow var(--wm-base) var(--wm-ease), border-color var(--wm-base);
}

.wm-card:hover {
	transform: translateY(-4px);
}

.wm-card__media {
	overflow: hidden;
}

.wm-card__media img {
	transition: transform var(--wm-slow) var(--wm-ease);
}

.wm-card:hover .wm-card__media img {
	transform: scale(1.05);
}

.wm-404__link,
.wm-service-icon .wm-icon {
	transition: transform var(--wm-base) var(--wm-ease), border-color var(--wm-base), background-color var(--wm-base);
}

a:hover > .wm-service-icon .wm-icon {
	transform: translateY(-3px) rotate(-6deg);
}

/* Okrągły znaczek z tekstem na obwodzie. */
.wm-badge {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 7.5rem;
	height: 7.5rem;
	border-radius: 50%;
	background: var(--wm-orange);
	color: var(--wm-ink);
	text-decoration: none;
	transition: transform var(--wm-base) var(--wm-ease);
}

.wm-badge:hover {
	transform: scale(1.06);
}

.wm-badge__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(calc(var(--wm-scroll, 0) * 540deg));
}

.wm-badge__ring text {
	fill: currentColor;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wm-badge__core {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--wm-ink);
	color: var(--wm-white);
}

.wm-badge__core .wm-icon {
	width: var(--wp--custom--icon--medium);
	height: var(--wp--custom--icon--medium);
}

/* Pasek haseł przesuwany przewijaniem. */
.wm-ticker {
	overflow: hidden;
	padding-block: var(--wm-s4);
	background: var(--wm-blue);
	color: var(--wm-white);
}

.wm-ticker__track {
	display: flex;
	align-items: center;
	gap: var(--wm-s5);
	width: max-content;
	transform: translateX(calc(var(--wm-scroll, 0) * -40%));
}

.wm-ticker__item {
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.wm-ticker__item:nth-of-type(even) {
	color: transparent;
	-webkit-text-stroke: 1.5px var(--wm-white);
}

.wm-ticker__sep {
	width: 2.5rem;
	height: auto;
	flex: none;
}

@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		.wm-badge__ring {
			animation: wm-spin linear both;
			animation-timeline: scroll(root);
		}

		.wm-ticker__track {
			animation: wm-slide linear both;
			animation-timeline: view();
			animation-range: entry 0% exit 100%;
		}
	}
}

@keyframes wm-spin {
	to {
		transform: rotate(540deg);
	}
}

@keyframes wm-slide {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-30%);
	}
}

/* Odsłanianie przy przewijaniu: tylko gdy działa motion.js (html.wm-motion). */
.wm-motion [data-wm-reveal] {
	opacity: 0;
	transform: translateY(var(--wm-rise));
	transition: opacity var(--wm-slow) var(--wm-ease), transform var(--wm-slow) var(--wm-ease), clip-path var(--wm-slow) var(--wm-ease);
	transition-delay: calc(var(--wm-delay, 0) * var(--wm-step));
}

.wm-motion [data-wm-reveal="fade"] {
	transform: none;
}

.wm-motion [data-wm-reveal="scale"] {
	transform: scale(0.94);
}

.wm-motion [data-wm-reveal="image"] {
	opacity: 1;
	transform: none;
	clip-path: inset(12% 6% 12% 6% round var(--wm-radius-l));
}

.wm-motion [data-wm-reveal="image"] img {
	transform: scale(1.12);
	transition: transform calc(var(--wm-slow) * 1.6) var(--wm-ease);
}

.wm-motion [data-wm-reveal].is-visible {
	opacity: 1;
	transform: none;
	clip-path: inset(0 0 0 0 round 0);
}

.wm-motion [data-wm-reveal="image"].is-visible img {
	transform: scale(1);
}

.wm-motion [data-wm-stagger] > * {
	opacity: 0;
	transform: translateY(var(--wm-rise));
	transition: opacity var(--wm-slow) var(--wm-ease), transform var(--wm-slow) var(--wm-ease);
	transition-delay: calc(var(--i, 0) * var(--wm-step) * 1.5);
}

.wm-motion [data-wm-stagger].is-visible > * {
	opacity: 1;
	transform: none;
}

/* Tytuły słowo po słowie. */
.wm-word {
	display: inline-block;
}

.wm-motion [data-wm-split="rise"] .wm-word {
	opacity: 0;
	transform: translateY(0.6em) rotate(2deg);
	transition: opacity var(--wm-slow) var(--wm-ease), transform var(--wm-slow) var(--wm-ease);
	transition-delay: calc(var(--i) * var(--wm-step));
}

.wm-motion [data-wm-split="rise"].is-visible .wm-word {
	opacity: 1;
	transform: none;
}

/* Podświetlenie rozwija się od lewej, gdy słowa już stoją. */
.wm-motion [data-wm-split="rise"] .wm-highlight {
	background-repeat: no-repeat;
	background-size: 0% 100%;
	transition: background-size var(--wm-slow) var(--wm-ease);
	transition-delay: calc(var(--n, 4) * var(--wm-step) * 0.6);
}

.wm-motion [data-wm-split="rise"].is-visible .wm-highlight {
	background-size: 100% 100%;
}

/* Wypełnianie przy przewijaniu: słowo i zaczyna nabierać koloru, gdy postęp p przekroczy i/n. */
.wm-motion [data-wm-split="fill"] .wm-word {
	opacity: clamp(0.18, calc(var(--p, 0) * (var(--n) + 3) - var(--i)), 1);
	transition: opacity var(--wm-fast) linear;
}

/* Liczby: lekkie powiększenie przy starcie licznika. */
.wm-motion [data-wm-count] {
	display: inline-block;
	transform: scale(0.9);
	transition: transform var(--wm-slow) var(--wm-ease);
}

.wm-motion [data-wm-count].is-visible {
	transform: none;
}

/* ---------- Ograniczony ruch ---------- */

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