/*
 * Timberluk - style uzupełniające.
 * ZASADA: żadnych kolorów, fontów ani rozmiarów wpisanych na sztywno.
 * Tylko var(--wp--preset--...) i var(--wp--custom--...) z theme.json.
 */

/* ---------- Dostępność ---------- */

/* Widoczny focus dla klawiatury (WCAG 2.4.7). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--focus);
	outline-offset: 3px;
}

/* Minimalny cel dotyku 44 px. */
:where(.wp-element-button, .wp-block-button__link, .wc-block-components-button) {
	min-height: var(--wp--custom--touch-target);
}

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

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

.tl-topbar p {
	margin: 0;
}

.tl-topbar a {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--touch-target);
	text-decoration: none;
}

.tl-header {
	position: sticky;
	top: 0;
	z-index: 50;
}

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

.tl-brand {
	min-width: 0;
}

.tl-brand .wp-block-site-title {
	white-space: nowrap;
}

/* Linki menu, ikony szukania, koszyka i hamburgera: min. 44 x 44 px. */
.tl-nav .wp-block-navigation-item__content,
.tl-nav .wp-block-navigation-submenu__toggle,
.tl-search .wp-block-search__button,
.tl-header .wc-block-mini-cart__button {
	min-height: var(--wp--custom--touch-target);
	min-width: var(--wp--custom--touch-target);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Hamburger i zamknięcie: tylko rozmiar - widoczność steruje WordPress. */
.tl-nav .wp-block-navigation__responsive-container-open,
.tl-nav .wp-block-navigation__responsive-container-close {
	min-height: var(--wp--custom--touch-target);
	min-width: var(--wp--custom--touch-target);
	align-items: center;
	justify-content: center;
}

.tl-nav .wp-block-navigation-item__content {
	text-decoration: none;
}

.tl-nav .wp-block-navigation-item__content:hover,
.tl-nav .current-menu-item > .wp-block-navigation-item__content {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

/* Podmenu "Sklep" na komputerze. */
.tl-nav .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--linia) !important;
	border-radius: var(--wp--custom--radius--medium);
	padding-block: var(--wp--preset--spacing--20);
	min-width: 16rem !important;
}

.tl-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	justify-content: flex-start;
	padding-inline: var(--wp--preset--spacing--30);
}

/* Menu mobilne (nakładka): duże, czytelne pozycje. */
.tl-nav .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
	padding: var(--wp--preset--spacing--40);
}

/* Wyrównanie do lewej - czyta się jak listę. */
.tl-nav .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	--navigation-layout-align: flex-start;
}

.tl-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start !important;
	padding-top: var(--wp--preset--spacing--40) !important;
}

.tl-nav .is-menu-open .wp-block-navigation__container,
.tl-nav .is-menu-open .wp-block-navigation-item {
	align-items: flex-start !important;
	gap: var(--wp--preset--spacing--20) !important;
}

.tl-nav .is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--large);
	justify-content: flex-start;
}

.tl-nav .is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important;
	padding: 0 0 0 var(--wp--preset--spacing--30) !important;
	min-width: 0 !important;
}

.tl-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--medium);
	padding-inline: 0;
	font-weight: 400;
}

.tl-search .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	padding: 0;
	border: 0;
}

.tl-search .wp-block-search__input {
	min-height: var(--wp--custom--touch-target);
	border: 1px solid var(--wp--preset--color--linia);
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--contrast);
}

.tl-search .wp-block-search__inside-wrapper {
	border: 0;
	padding: 0;
}

/* Telefon: kolejność ikon szukaj - koszyk - menu, krótszy pasek. */
@media (max-width: 599px) {
	.tl-topbar__extra {
		display: none;
	}

	.tl-header__actions .tl-nav {
		order: 3;
	}

	.tl-header__actions .tl-search {
		order: 1;
	}

	.tl-header__actions .wp-block-woocommerce-mini-cart {
		order: 2;
	}

	.tl-brand .wp-block-site-title {
		font-size: var(--wp--preset--font-size--large) !important;
	}

	/* Rozwinięte pole szukania zajmuje cały wiersz pod nagłówkiem. */
	.tl-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
		flex: 1 1 auto;
		width: 100% !important;
		padding-inline: 0.75rem;
	}

	.tl-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper {
		position: absolute;
		left: 1rem;
		right: 1rem;
		top: 100%;
		width: auto !important;
		z-index: 60;
		gap: var(--wp--preset--spacing--20);
		background: var(--wp--preset--color--base);
		padding-block: var(--wp--preset--spacing--20);
	}
}

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

.tl-plain-list {
	list-style: none;
	padding-left: 0;
	margin-top: var(--wp--preset--spacing--20);
}

.tl-plain-list li {
	margin: 0;
}

.tl-plain-list a {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--touch-target);
	overflow-wrap: anywhere;
}

.tl-footer .wp-block-social-links .wp-social-link a {
	padding: 0.5rem;
	min-width: var(--wp--custom--touch-target);
	min-height: var(--wp--custom--touch-target);
	justify-content: center;
}

/* ==========================================================================
   Strona główna - wersja 2 (więcej charakteru)
   Kształty, ikony i faktura to maski SVG - kolor zawsze z tokenów theme.json.
   ========================================================================== */

:root {
	--tl-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none' fill='black'%3E%3Cpath d='M0 40V24C160 4 300 0 450 10s280 26 450 22 300-28 540-20V40Z'/%3E%3C/svg%3E");
	--tl-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url%28%23n%29'/%3E%3C/svg%3E");
	--tl-leaf-big: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M100 190C55 165 15 125 15 82 15 50 40 30 65 30c16 0 28 8 35 20 7-12 19-20 35-20 25 0 50 20 50 52 0 43-40 83-85 108z'/%3E%3Cpath d='M100 190V55M100 95 70 75M100 125 130 100M100 150 75 135'/%3E%3C/svg%3E");
	--tl-arch: 999px 999px var(--wp--custom--radius--medium) var(--wp--custom--radius--medium);
}
/* ---------- Ikony (maska + currentColor) ---------- */
.tl-ico--lisc { --tl-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21c-5-3-9-7-9-11.5A4.5 4.5 0 0 1 12 8a4.5 4.5 0 0 1 9 1.5C21 14 17 18 12 21z'/%3E%3Cpath d='M12 21V8M12 12.5 8.5 10.5M12 16l3.5-2'/%3E%3C/svg%3E"); }
.tl-ico--deska { --tl-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='1.5'/%3E%3Cpath d='M6 10.5c2.5-1.5 5 1.5 7.5 0s4-1 4.5-.5M6 14c3-1 5 1 8 0s3-.8 4-.4'/%3E%3C/svg%3E"); }
.tl-ico--miara { --tl-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 16.5 16.5 3 21 7.5 7.5 21z'/%3E%3Cpath d='m7.5 12.5 1.8 1.8M10.5 9.5l1.2 1.2M13.5 6.5l1.8 1.8'/%3E%3C/svg%3E"); }
.tl-ico--dluto { --tl-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14.5 3 6.5 6.5-2.5 2.5L12 5.5z'/%3E%3Cpath d='M12.5 6 4 14.5V20h5.5L18 11.5'/%3E%3C/svg%3E"); }
.tl-ico--ciezarowka { --tl-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5h11v10h-11zM13.5 9.5H17l3.5 3.5v3.5h-7'/%3E%3Ccircle cx='6.5' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E"); }
.tl-ico--faktura { --tl-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2.5h8.5l4 4v15H6z'/%3E%3Cpath d='M14 2.5V7h4.5M9 12h6.5M9 15.5h6.5M9 8.5h2.5'/%3E%3C/svg%3E"); }
.tl-ico--telefon { --tl-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 3.5h3.5l1.8 4.6-2.3 1.4a11 11 0 0 0 6 6l1.4-2.3 4.6 1.8v3.5a2 2 0 0 1-2 2A16.5 16.5 0 0 1 3.5 5.5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.tl-ico--mail { --tl-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 7 8.5 6 8.5-6'/%3E%3C/svg%3E"); }
.tl-ico--pinezka { --tl-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.tl-ico--schody { --tl-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20.5h4.5V16H12v-4.5h4.5V7H21'/%3E%3Cpath d='M3 20.5V17'/%3E%3C/svg%3E"); }
.tl-ico--waga { --tl-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5v17M6 20.5h12M4.5 7.5h15M7 7.5l-2.8 6.5a2.8 2.8 0 0 0 5.6 0zM17 7.5l-2.8 6.5a2.8 2.8 0 0 0 5.6 0z'/%3E%3C/svg%3E"); }
.tl-ico--pedzel { --tl-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m17.5 3 3.5 3.5-8.5 8.5L9 11.5z'/%3E%3Cpath d='M9 11.5c-2.5 0-4 1.5-4 4 0 1.5-1 3-2 3.5 3.5 1 7.5 0 8.5-3.5'/%3E%3C/svg%3E"); }
.tl-ico--strzalka { --tl-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.tl-ico--zegar { --tl-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E"); }

.tl-ico {
	display: flex;
	align-items: center;
	gap: 0.6em;
}

.tl-ico::before {
	content: "";
	flex: none;
	width: 1.4em;
	height: 1.4em;
	background-color: currentColor;
	-webkit-mask: var(--tl-ico) center / contain no-repeat;
	mask: var(--tl-ico) center / contain no-repeat;
}

/* ---------- Fala nad sekcją (styl bloku "Fala u góry") ---------- */
.is-style-tl-fala {
	position: relative;
	margin-top: 0 !important;
}

.is-style-tl-fala::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(100% - 1px);
	height: clamp(18px, 3vw, 40px);
	background-color: inherit;
	-webkit-mask: var(--tl-wave) center bottom / 100% 100% no-repeat;
	mask: var(--tl-wave) center bottom / 100% 100% no-repeat;
	pointer-events: none;
}

/* Bloki w treści strony głównej stykają się bez przerw - fale robią podział. */
.wp-site-blocks .entry-content > .alignfull,
.wp-block-post-content > .alignfull {
	margin-block: 0;
}

/* ---------- Ciepła korekta zdjęć z telefonu ---------- */
.tl-photo img {
	filter: var(--wp--custom--photo--filter);
}

/* ---------- Hero ---------- */
.tl-hero2 {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

/* Delikatne ziarno papieru. */
.tl-hero2::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: var(--wp--preset--color--contrast);
	-webkit-mask: var(--tl-noise);
	mask: var(--tl-noise);
	opacity: 0.07;
	pointer-events: none;
}

/* Duży liść lipy w tle. */
.tl-hero2::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: clamp(260px, 38vw, 560px);
	aspect-ratio: 1;
	right: -6%;
	top: -8%;
	background-color: var(--wp--preset--color--accent);
	-webkit-mask: var(--tl-leaf-big) center / contain no-repeat;
	mask: var(--tl-leaf-big) center / contain no-repeat;
	opacity: 0.12;
	transform: rotate(-18deg);
	pointer-events: none;
}

.tl-eyebrow {
	color: var(--wp--preset--color--accent);
	font-weight: 700;
	letter-spacing: 0.02em;
}

.tl-hero2 h1 {
	font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.6rem);
	line-height: 1.02;
	font-weight: 800;
	letter-spacing: -0.015em;
	text-wrap: balance;
	margin-block: var(--wp--preset--spacing--30);
}

.tl-hero2 h1 em,
.tl-accent-em em {
	color: var(--wp--preset--color--accent);
	font-weight: 500;
	padding-inline-end: 0.08em;
}

.tl-hero2__text > * + * {
	margin-top: var(--wp--preset--spacing--30);
}

.tl-hero2__text .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--40);
}

/* Kompozycja: łuk + kółko + linie wymiarowe. */
.tl-hero2__media {
	position: relative;
	padding: 2.75rem 0 1.5rem 3rem;
}

.tl-arch {
	margin: 0;
}

.tl-arch img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: var(--tl-arch);
	max-height: min(72vh, 40rem);
}

.tl-hero2__media .tl-arch {
	max-width: 30rem;
	margin-inline-start: auto;
}

.tl-hero2__media {
	--tl-orbit-size: clamp(7.5rem, 14vw, 11rem);
	--tl-orbit-left: 0px;
}

.tl-orbit {
	position: absolute;
	left: var(--tl-orbit-left);
	bottom: 0;
	width: var(--tl-orbit-size);
	margin: 0;
	z-index: 2;
}

.tl-orbit img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
	border: 6px solid var(--wp--preset--color--base);
}

/* Linie wymiarowe jak na rysunku technicznym. */
.tl-dim {
	position: absolute;
	margin: 0 !important;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	color: var(--wp--preset--color--contrast-2);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.tl-dim::before,
.tl-dim::after {
	content: "";
	flex: 1;
	height: 1px;
	background-color: currentColor;
}

.tl-dim--w {
	top: 0.75rem;
	right: 0;
	width: min(30rem, calc(100% - 3rem));
	border-inline: 1px solid currentColor;
	height: 0.9rem;
}

.tl-dim--h {
	top: 2.75rem;
	bottom: 1.5rem;
	left: 1rem;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	border-inline: 1px solid currentColor;
	width: 0.9rem;
}

.tl-dim--h::before,
.tl-dim--h::after {
	width: 1px;
	height: auto;
}

/* Pasek cech pod hero. */
.tl-features {
	border-top: 1px solid var(--wp--preset--color--linia);
	padding-top: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--50) !important;
}

.tl-features p {
	margin: 0;
	font-weight: 600;
	max-width: 14rem;
}

.tl-features .tl-ico::before {
	color: var(--wp--preset--color--accent);
	width: 1.75em;
	height: 1.75em;
	margin-top: -0.1em;
}

/* Ikony wszystkich czterech cech na jednej linii - przy pozycjach dwuwierszowych
   wyśrodkowanie pionowe rozjeżdżało je względem jednowierszowych. */
.tl-features {
	align-items: flex-start;
}

.tl-features .tl-ico {
	align-items: flex-start;
}

/* ---------- Karty kategorii: łuki ---------- */
.tl-card > * {
	margin: 0;
}

.tl-card {
	transition: transform 200ms ease;
}

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

.tl-card__media {
	overflow: hidden;
	border-radius: var(--tl-arch);
}

.tl-card__media img,
.tl-card__box {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--tl-arch);
}

.tl-card__media img {
	transition: transform 400ms ease;
}

.tl-card:hover .tl-card__media img {
	transform: scale(1.04);
}

.tl-card__box {
	position: relative;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	box-sizing: border-box;
	overflow: hidden;
}

.tl-card__box p {
	line-height: 1.2;
	margin: 0;
	position: relative;
}

/* Duża ikona w kaflu tekstowym. */
.tl-card__box::before {
	content: "";
	position: absolute;
	top: 22%;
	left: 50%;
	width: 46%;
	aspect-ratio: 1;
	transform: translateX(-50%);
	background-color: currentColor;
	opacity: 0.9;
	-webkit-mask: var(--tl-ico) center / contain no-repeat;
	mask: var(--tl-ico) center / contain no-repeat;
}

.tl-card h3 {
	margin-top: var(--wp--preset--spacing--20);
}

.tl-card h3 a {
	text-decoration: none;
}

.tl-card h3 a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* ---------- Sekcje zdjęcie + tekst ---------- */
.tl-split-media {
	position: relative;
}

.tl-split-media .tl-arch img {
	aspect-ratio: 4 / 5;
	max-height: 38rem;
}

/* Ciemna sekcja (dąb): linki i przyciski w jasnym kolorze. */
.has-contrast-background-color :where(a:not(.wp-element-button)) {
	color: inherit;
}

.has-contrast-background-color .is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--base);
}

.has-contrast-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

.has-contrast-background-color em {
	color: var(--wp--preset--color--base-3) !important;
}

.has-contrast-background-color .tl-ico::before {
	color: var(--wp--preset--color--base-3);
}

.has-contrast-background-color .tl-dim {
	color: var(--wp--preset--color--linia);
}

/* Rysunek "na wymiar". */
.tl-measure {
	position: relative;
	padding: 2.75rem 0 0 3rem;
}

.tl-measure .tl-dim--w {
	top: 0.75rem;
	width: calc(100% - 3rem);
}

.tl-measure .tl-dim--h {
	top: 2.75rem;
	bottom: 0;
}

/* Listy z ikonami. */
.tl-list-ico {
	list-style: none;
	padding-left: 0;
}

.tl-list-ico li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.tl-list-ico li + li {
	margin-top: 0.75rem;
}

.tl-list-ico li::before {
	margin-top: 0.1em;
}

/* Sekcja o lipie - liść w rogu. */
.tl-leaf-deco {
	position: relative;
	isolation: isolate;
	clip-path: inset(-60px 0 0 0);
	overflow-x: clip;
}

.tl-leaf-deco::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: clamp(220px, 30vw, 420px);
	aspect-ratio: 1;
	left: -5%;
	bottom: -12%;
	background-color: var(--wp--preset--color--accent);
	-webkit-mask: var(--tl-leaf-big) center / contain no-repeat;
	mask: var(--tl-leaf-big) center / contain no-repeat;
	opacity: 0.1;
	transform: rotate(24deg);
}

/* Kontakt. */
.tl-contact p {
	margin: 0;
}

.tl-contact .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.tl-contact .tl-ico::before {
	color: var(--wp--preset--color--accent);
	width: 2rem;
	height: 2rem;
}

.tl-contact a {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--touch-target);
	overflow-wrap: anywhere;
}

/* Stopka z falą. */
.tl-footer {
	position: relative;
}

.tl-footer::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(100% - 1px);
	height: clamp(18px, 3vw, 40px);
	background-color: inherit;
	-webkit-mask: var(--tl-wave) center bottom / 100% 100% no-repeat;
	mask: var(--tl-wave) center bottom / 100% 100% no-repeat;
	transform: scaleX(-1);
}

/* Produkty na stronie głównej. */
.tl-products .wc-block-components-product-image img {
	border-radius: var(--wp--custom--radius--medium);
}

.tl-products .wp-block-post-title a {
	text-decoration: none;
}

/* ---------- Telefon ---------- */
@media (max-width: 781px) {
	/* Najpierw tekst i przyciski, zdjęcie pod spodem. */
	.tl-hero2__media {
		padding: 2.25rem 0 1rem 2.5rem;
	}

	.tl-hero2__media .tl-arch {
		max-width: none;
	}

	.tl-hero2__media {
		--tl-orbit-left: 1.5rem;
	}

	.tl-arch img,
	.tl-split-media .tl-arch img {
		max-height: 22rem;
	}

	.tl-dim--w {
		width: calc(100% - 2.5rem);
	}

	.tl-dim--h {
		left: 0.6rem;
		top: 2.25rem;
		bottom: 1rem;
	}

	.tl-hero2::after {
		top: auto;
		bottom: 30%;
		right: -30%;
	}

	/* Kafle z ikoną: mniejsza ikona, tekst niżej. */
	.tl-card__box::before {
		top: 16%;
		width: 34%;
	}

	.tl-card__box p {
		font-size: var(--wp--preset--font-size--medium) !important;
	}
}

/* ==========================================================================
   Strona główna - dodatki v3: podgląd wymiaru, kroki, słoje, pieczątka, ruch
   ========================================================================== */

:root {
	--tl-rings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M213.8 200.0 L213.9 201.2 L213.8 202.3 L213.5 203.5 L213.0 204.5 L212.4 205.5 L211.6 206.4 L210.8 207.2 L209.9 207.9 L209.0 208.6 L208.2 209.3 L207.3 209.9 L206.4 210.5 L205.4 211.0 L204.4 211.5 L203.3 211.9 L202.2 212.1 L201.1 212.3 L200.0 212.3 L198.9 212.2 L197.8 212.0 L196.7 211.8 L195.6 211.5 L194.5 211.2 L193.4 210.9 L192.3 210.4 L191.3 209.9 L190.2 209.3 L189.3 208.5 L188.5 207.7 L187.9 206.7 L187.5 205.6 L187.2 204.4 L187.2 203.3 L187.2 202.1 L187.4 201.1 L187.6 200.0 L187.8 199.0 L188.0 198.0 L188.2 197.0 L188.4 196.0 L188.6 194.9 L188.9 193.9 L189.3 192.8 L189.8 191.9 L190.5 190.9 L191.3 190.1 L192.2 189.4 L193.2 188.8 L194.3 188.4 L195.4 188.0 L196.5 187.7 L197.7 187.5 L198.8 187.4 L200.0 187.3 L201.2 187.3 L202.3 187.4 L203.5 187.6 L204.6 188.0 L205.6 188.5 L206.5 189.2 L207.4 190.0 L208.1 190.8 L208.8 191.6 L209.4 192.5 L210.0 193.3 L210.6 194.2 L211.3 195.0 L211.9 195.9 L212.5 196.8 L213.1 197.8 L213.5 198.9 L213.8 200.0Z'/%3E%3Cpath d='M228.1 200.0 L227.8 202.3 L227.1 204.6 L226.2 206.7 L225.0 208.7 L223.6 210.5 L222.2 212.2 L220.8 213.9 L219.4 215.5 L217.9 217.0 L216.3 218.5 L214.7 219.9 L212.9 221.2 L210.9 222.3 L208.9 223.2 L206.7 223.8 L204.5 224.2 L202.2 224.4 L200.0 224.5 L197.8 224.4 L195.5 224.3 L193.2 224.1 L190.9 223.7 L188.6 223.2 L186.3 222.5 L184.1 221.6 L182.1 220.4 L180.2 218.8 L178.7 217.0 L177.5 215.0 L176.7 212.8 L176.2 210.6 L175.9 208.4 L175.8 206.2 L175.7 204.1 L175.7 202.0 L175.6 200.0 L175.5 198.0 L175.4 195.9 L175.4 193.7 L175.6 191.6 L176.0 189.4 L176.8 187.2 L177.8 185.2 L179.1 183.3 L180.8 181.7 L182.6 180.2 L184.6 179.0 L186.6 177.9 L188.7 177.0 L190.9 176.2 L193.1 175.5 L195.4 175.0 L197.7 174.6 L200.0 174.5 L202.3 174.6 L204.6 175.1 L206.8 175.8 L208.9 176.7 L210.8 177.9 L212.6 179.2 L214.2 180.6 L215.8 182.1 L217.4 183.5 L218.9 184.9 L220.5 186.3 L222.2 187.8 L223.8 189.4 L225.2 191.3 L226.5 193.2 L227.4 195.4 L228.0 197.7 L228.1 200.0Z'/%3E%3Cpath d='M241.1 200.0 L240.1 203.3 L238.9 206.5 L237.4 209.5 L235.9 212.4 L234.3 215.2 L232.7 218.0 L231.0 220.7 L229.2 223.3 L227.1 225.8 L224.8 228.2 L222.3 230.3 L219.5 232.1 L216.5 233.6 L213.3 234.8 L210.0 235.7 L206.7 236.4 L203.4 236.9 L200.0 237.2 L196.6 237.5 L193.0 237.5 L189.5 237.4 L185.9 236.9 L182.4 235.9 L179.1 234.5 L176.0 232.6 L173.4 230.2 L171.2 227.5 L169.4 224.4 L168.1 221.3 L167.1 218.1 L166.2 215.0 L165.5 212.0 L164.8 209.0 L164.0 206.1 L163.1 203.1 L162.3 200.0 L161.7 196.8 L161.3 193.5 L161.4 190.1 L161.9 186.8 L162.9 183.5 L164.5 180.5 L166.5 177.7 L168.8 175.1 L171.4 172.8 L174.2 170.7 L177.1 168.9 L180.1 167.2 L183.2 165.6 L186.4 164.3 L189.7 163.2 L193.1 162.5 L196.5 162.1 L200.0 162.2 L203.4 162.8 L206.7 163.7 L209.9 164.9 L212.8 166.4 L215.7 167.9 L218.5 169.6 L221.2 171.2 L224.0 172.8 L226.9 174.4 L229.7 176.2 L232.6 178.3 L235.3 180.6 L237.6 183.3 L239.5 186.3 L240.8 189.6 L241.5 193.0 L241.6 196.5 L241.1 200.0Z'/%3E%3Cpath d='M252.1 200.0 L251.0 204.2 L249.8 208.4 L248.5 212.4 L247.1 216.3 L245.7 220.3 L244.0 224.2 L242.0 228.0 L239.6 231.6 L236.7 235.0 L233.5 238.0 L229.9 240.6 L226.0 242.9 L221.9 244.8 L217.8 246.5 L213.5 247.9 L209.1 249.2 L204.6 250.3 L200.0 251.1 L195.3 251.6 L190.4 251.7 L185.6 251.1 L181.0 249.8 L176.6 247.8 L172.6 245.2 L169.1 242.0 L166.2 238.4 L163.7 234.6 L161.5 230.7 L159.6 226.9 L157.8 223.2 L155.9 219.6 L154.0 215.9 L152.0 212.2 L150.1 208.4 L148.4 204.3 L147.1 200.0 L146.4 195.5 L146.3 191.0 L147.1 186.5 L148.5 182.1 L150.5 178.0 L153.1 174.2 L156.0 170.6 L159.1 167.3 L162.5 164.3 L166.0 161.4 L169.6 158.7 L173.5 156.3 L177.6 154.2 L181.8 152.5 L186.3 151.3 L190.9 150.7 L195.5 150.7 L200.0 151.1 L204.4 152.0 L208.7 153.2 L212.8 154.5 L216.9 155.8 L221.0 157.2 L225.1 158.6 L229.4 160.1 L233.7 161.8 L237.9 163.9 L242.0 166.5 L245.6 169.6 L248.7 173.2 L251.1 177.3 L252.7 181.7 L253.4 186.4 L253.5 191.0 L253.0 195.6 L252.1 200.0Z'/%3E%3Cpath d='M262.7 200.0 L262.2 205.2 L261.6 210.3 L260.8 215.5 L259.8 220.7 L258.2 225.9 L256.1 230.8 L253.4 235.6 L250.0 240.0 L246.2 244.0 L241.9 247.6 L237.4 250.9 L232.6 253.8 L227.7 256.5 L222.6 259.0 L217.2 261.3 L211.7 263.3 L206.0 264.8 L200.0 265.7 L194.0 265.8 L188.0 265.0 L182.2 263.3 L176.8 260.7 L171.9 257.5 L167.5 253.7 L163.6 249.6 L160.0 245.4 L156.7 241.2 L153.5 237.2 L150.2 233.2 L146.7 229.3 L143.3 225.2 L139.9 220.8 L136.8 216.1 L134.2 211.0 L132.4 205.6 L131.5 200.0 L131.4 194.3 L132.4 188.6 L134.1 183.2 L136.4 178.0 L139.3 173.0 L142.4 168.3 L145.9 163.9 L149.5 159.6 L153.4 155.6 L157.6 151.9 L162.1 148.5 L167.0 145.6 L172.2 143.2 L177.7 141.6 L183.3 140.6 L188.9 140.2 L194.5 140.2 L200.0 140.7 L205.4 141.3 L210.8 141.9 L216.2 142.6 L221.7 143.3 L227.3 144.2 L233.1 145.4 L238.9 147.2 L244.4 149.6 L249.5 152.8 L254.0 156.8 L257.7 161.5 L260.4 166.8 L262.2 172.4 L263.2 178.1 L263.6 183.8 L263.5 189.3 L263.2 194.7 L262.7 200.0Z'/%3E%3Cpath d='M275.0 200.0 L275.4 206.3 L275.4 212.7 L274.7 219.1 L273.3 225.4 L271.2 231.6 L268.2 237.5 L264.5 243.0 L260.2 248.1 L255.6 252.9 L250.6 257.4 L245.3 261.6 L239.8 265.6 L234.0 269.3 L227.8 272.7 L221.3 275.5 L214.4 277.6 L207.2 278.8 L200.0 278.8 L192.9 277.8 L186.0 275.7 L179.5 272.7 L173.6 269.1 L168.1 265.1 L163.0 261.1 L158.1 257.0 L153.2 253.1 L148.2 249.3 L143.1 245.5 L137.9 241.4 L132.8 236.9 L128.1 231.9 L124.0 226.4 L120.7 220.2 L118.5 213.7 L117.5 206.9 L117.5 200.0 L118.5 193.2 L120.3 186.6 L122.6 180.2 L125.3 174.1 L128.4 168.2 L131.8 162.5 L135.5 157.0 L139.6 151.7 L144.2 146.8 L149.3 142.5 L155.0 138.7 L161.0 135.7 L167.4 133.4 L173.9 131.8 L180.5 130.6 L187.0 129.9 L193.5 129.3 L200.0 128.8 L206.6 128.3 L213.3 127.9 L220.3 127.8 L227.5 128.1 L234.7 129.2 L241.7 131.2 L248.4 134.2 L254.4 138.2 L259.6 143.3 L263.7 149.1 L266.9 155.4 L269.2 161.9 L270.8 168.5 L272.0 175.1 L272.9 181.4 L273.6 187.6 L274.4 193.8 L275.0 200.0Z'/%3E%3Cpath d='M289.6 200.0 L290.3 207.5 L290.1 215.1 L288.9 222.7 L286.7 230.0 L283.6 237.1 L279.8 243.9 L275.4 250.3 L270.6 256.4 L265.4 262.3 L259.9 268.0 L254.0 273.4 L247.5 278.4 L240.5 282.8 L233.0 286.3 L225.0 288.8 L216.7 290.0 L208.3 290.0 L200.0 288.7 L192.1 286.5 L184.5 283.6 L177.4 280.3 L170.6 276.8 L164.0 273.4 L157.4 270.2 L150.7 267.0 L143.8 263.8 L136.8 260.2 L129.9 256.0 L123.4 251.1 L117.5 245.4 L112.6 238.8 L108.9 231.6 L106.5 223.9 L105.3 215.9 L105.1 207.9 L105.9 200.0 L107.3 192.3 L109.2 184.7 L111.4 177.4 L114.0 170.2 L117.1 163.2 L120.6 156.4 L124.9 149.9 L129.8 143.9 L135.5 138.6 L141.8 133.9 L148.6 130.0 L155.6 126.8 L162.9 124.2 L170.1 121.9 L177.4 119.7 L184.8 117.7 L192.3 115.6 L200.0 113.7 L208.1 112.2 L216.4 111.2 L225.0 111.2 L233.5 112.4 L241.7 114.8 L249.3 118.6 L256.1 123.7 L261.9 129.7 L266.7 136.4 L270.7 143.5 L273.9 150.7 L276.6 157.9 L279.2 164.8 L281.6 171.7 L284.0 178.6 L286.2 185.5 L288.2 192.7 L289.6 200.0Z'/%3E%3Cpath d='M305.1 200.0 L305.3 208.8 L304.3 217.5 L302.2 226.1 L299.3 234.4 L295.7 242.5 L291.6 250.4 L287.0 258.0 L281.9 265.4 L276.2 272.6 L269.9 279.4 L262.8 285.5 L255.0 290.7 L246.4 294.7 L237.2 297.5 L227.8 298.8 L218.3 298.9 L209.0 297.8 L200.0 296.1 L191.4 293.9 L183.0 291.6 L174.9 289.4 L166.6 287.3 L158.2 285.3 L149.6 283.2 L140.8 280.6 L132.0 277.1 L123.6 272.7 L115.9 267.2 L109.2 260.5 L103.8 252.9 L99.7 244.6 L96.9 235.8 L95.2 226.7 L94.6 217.7 L94.6 208.8 L95.1 200.0 L96.1 191.3 L97.5 182.8 L99.4 174.3 L102.0 166.0 L105.4 158.0 L109.7 150.4 L114.9 143.3 L121.0 136.9 L127.7 131.2 L134.9 126.2 L142.4 121.6 L150.0 117.5 L157.6 113.5 L165.4 109.5 L173.4 105.6 L181.8 101.9 L190.7 98.6 L200.0 96.1 L209.7 94.6 L219.5 94.6 L229.2 96.2 L238.4 99.4 L247.0 104.1 L254.6 110.0 L261.2 116.7 L267.0 123.9 L272.1 131.3 L276.8 138.6 L281.2 145.8 L285.6 152.9 L290.0 160.0 L294.2 167.3 L298.1 175.0 L301.4 183.0 L303.8 191.4 L305.1 200.0Z'/%3E%3Cpath d='M319.7 200.0 L319.1 209.9 L317.5 219.7 L315.1 229.4 L312.1 238.9 L308.6 248.2 L304.4 257.4 L299.5 266.4 L293.8 274.9 L287.0 282.9 L279.2 289.9 L270.4 295.8 L260.8 300.3 L250.6 303.3 L240.1 305.1 L229.7 305.7 L219.5 305.5 L209.6 305.0 L200.0 304.4 L190.5 303.9 L180.8 303.5 L171.0 303.2 L160.8 302.6 L150.3 301.4 L139.9 299.2 L129.6 295.7 L120.0 290.8 L111.4 284.4 L104.1 276.7 L98.1 268.0 L93.4 258.6 L89.9 248.9 L87.5 239.0 L85.7 229.2 L84.5 219.4 L83.7 209.7 L83.4 200.0 L83.7 190.3 L84.9 180.7 L86.9 171.1 L90.1 161.9 L94.5 153.1 L99.8 144.9 L106.0 137.3 L112.8 130.3 L120.0 123.8 L127.4 117.6 L134.9 111.5 L142.7 105.4 L150.7 99.4 L159.3 93.6 L168.6 88.3 L178.5 84.0 L189.1 80.8 L200.0 79.4 L211.0 79.7 L221.9 81.9 L232.1 85.9 L241.6 91.2 L250.2 97.5 L258.0 104.3 L265.1 111.4 L271.9 118.4 L278.5 125.3 L285.0 132.0 L291.6 138.9 L298.0 146.1 L304.1 153.8 L309.5 162.1 L313.9 170.9 L317.1 180.3 L319.1 190.1 L319.7 200.0Z'/%3E%3Cpath d='M333.0 200.0 L332.3 211.0 L330.9 222.0 L328.9 232.9 L326.1 243.7 L322.4 254.4 L317.7 264.7 L311.7 274.5 L304.4 283.4 L295.8 291.3 L286.1 297.7 L275.6 302.8 L264.6 306.5 L253.5 309.2 L242.5 311.1 L231.7 312.6 L221.1 314.1 L210.6 315.8 L200.0 317.6 L189.0 319.4 L177.6 320.9 L165.8 321.5 L153.8 320.9 L141.9 318.7 L130.5 314.7 L119.9 308.9 L110.5 301.6 L102.4 292.9 L95.7 283.4 L90.1 273.3 L85.5 263.0 L81.6 252.6 L78.3 242.2 L75.4 231.8 L73.0 221.3 L71.3 210.7 L70.5 200.0 L70.8 189.2 L72.4 178.6 L75.3 168.2 L79.4 158.2 L84.5 148.7 L90.4 139.7 L96.7 131.1 L103.3 122.7 L110.2 114.5 L117.4 106.2 L125.0 98.0 L133.3 90.0 L142.5 82.6 L152.7 76.2 L163.7 71.1 L175.5 67.9 L187.8 66.7 L200.0 67.6 L211.9 70.4 L223.2 74.6 L233.8 80.0 L243.6 86.0 L252.8 92.1 L261.7 98.2 L270.5 104.1 L279.3 110.1 L288.1 116.1 L296.8 122.7 L305.2 129.9 L312.8 138.0 L319.5 146.9 L324.9 156.7 L328.9 167.1 L331.5 177.9 L332.8 188.9 L333.0 200.0Z'/%3E%3Cpath d='M346.5 200.0 L346.4 212.2 L345.4 224.4 L343.5 236.6 L340.2 248.6 L335.5 260.2 L329.2 271.0 L321.2 280.8 L311.9 289.4 L301.5 296.7 L290.5 302.7 L279.2 307.7 L267.9 312.0 L256.8 316.0 L245.8 320.0 L234.9 324.1 L223.8 328.5 L212.2 332.8 L200.0 336.6 L187.2 339.4 L173.9 340.7 L160.6 340.2 L147.4 337.6 L135.0 332.8 L123.5 326.1 L113.3 318.0 L104.3 308.7 L96.4 298.7 L89.4 288.4 L83.1 277.9 L77.3 267.4 L72.0 256.8 L67.2 246.0 L63.1 234.9 L60.0 223.5 L58.2 211.8 L57.7 200.0 L58.7 188.2 L61.1 176.7 L64.5 165.4 L68.9 154.6 L73.8 144.0 L79.1 133.5 L84.7 123.1 L90.7 112.7 L97.4 102.2 L104.9 92.0 L113.6 82.4 L123.5 73.8 L134.8 66.7 L147.1 61.6 L160.2 58.5 L173.6 57.7 L187.0 58.8 L200.0 61.6 L212.4 65.4 L224.1 69.9 L235.3 74.6 L246.2 79.1 L257.0 83.6 L267.9 88.0 L278.9 92.7 L289.9 98.0 L300.6 104.2 L310.6 111.6 L319.6 120.2 L327.4 129.9 L333.7 140.6 L338.6 152.0 L342.1 163.7 L344.4 175.7 L345.8 187.8 L346.5 200.0Z'/%3E%3Cpath d='M361.0 200.0 L361.2 213.4 L359.9 226.8 L356.8 240.0 L352.0 252.7 L345.2 264.5 L336.8 275.2 L327.2 284.8 L316.7 293.2 L305.8 300.7 L294.8 307.6 L284.0 314.3 L273.4 321.0 L262.6 328.0 L251.6 335.1 L240.0 342.0 L227.5 348.5 L214.1 353.7 L200.0 357.3 L185.4 358.7 L170.8 357.8 L156.6 354.4 L143.1 348.9 L130.7 341.6 L119.3 333.1 L109.0 323.8 L99.5 314.0 L90.7 304.1 L82.3 294.0 L74.4 283.8 L67.0 273.2 L60.3 262.1 L54.6 250.4 L50.2 238.2 L47.3 225.7 L45.9 212.8 L46.0 200.0 L47.4 187.3 L49.6 174.8 L52.6 162.4 L56.0 150.1 L59.7 137.7 L64.0 125.2 L69.1 112.7 L75.4 100.4 L83.0 88.6 L92.4 77.8 L103.4 68.5 L115.9 61.2 L129.5 56.1 L143.9 53.1 L158.4 52.3 L172.8 53.0 L186.7 54.9 L200.0 57.3 L212.9 59.9 L225.5 62.3 L238.1 64.6 L250.8 67.0 L263.8 69.7 L276.8 73.3 L289.7 78.0 L302.0 84.2 L313.4 92.0 L323.6 101.2 L332.4 111.7 L339.8 123.2 L345.7 135.3 L350.6 147.8 L354.4 160.6 L357.5 173.6 L359.7 186.7 L361.0 200.0Z'/%3E%3Cpath d='M375.2 200.0 L374.4 214.5 L371.4 228.8 L366.4 242.5 L359.5 255.3 L351.2 267.1 L341.9 278.0 L332.1 288.1 L322.2 297.6 L312.4 307.0 L302.7 316.6 L292.9 326.3 L282.6 336.3 L271.5 346.1 L259.3 355.2 L245.9 363.1 L231.3 369.1 L215.9 372.8 L200.0 373.9 L184.2 372.3 L168.8 368.3 L154.3 362.5 L140.7 355.2 L128.0 347.1 L116.0 338.5 L104.6 329.7 L93.6 320.7 L83.0 311.4 L72.9 301.6 L63.4 291.1 L54.9 279.8 L47.7 267.6 L42.1 254.7 L38.0 241.3 L35.5 227.6 L34.2 213.8 L34.0 200.0 L34.4 186.2 L35.3 172.3 L36.8 158.3 L38.8 144.1 L41.9 129.8 L46.3 115.5 L52.5 101.7 L60.8 88.7 L71.1 77.2 L83.3 67.6 L97.1 60.1 L112.0 54.8 L127.3 51.5 L142.6 49.8 L157.6 49.2 L172.1 49.1 L186.1 49.0 L200.0 48.9 L213.9 48.5 L228.1 48.3 L242.6 48.6 L257.4 49.8 L272.2 52.6 L286.6 57.1 L300.4 63.5 L313.0 71.8 L324.3 81.6 L334.3 92.7 L342.9 104.7 L350.4 117.3 L357.0 130.3 L362.8 143.6 L367.7 157.2 L371.6 171.2 L374.2 185.5 L375.2 200.0Z'/%3E%3Cpath d='M386.2 200.0 L383.4 215.3 L378.6 230.0 L372.2 244.0 L364.8 257.1 L356.8 269.6 L348.7 281.8 L340.7 293.8 L332.7 306.0 L324.5 318.6 L315.7 331.3 L305.8 343.9 L294.4 355.8 L281.4 366.3 L266.9 374.9 L250.9 381.0 L234.1 384.4 L217.0 385.0 L200.0 383.0 L183.5 379.1 L167.8 373.7 L152.9 367.4 L138.6 360.6 L124.8 353.6 L111.3 346.3 L98.1 338.6 L85.3 330.2 L73.1 320.9 L61.8 310.5 L51.7 298.9 L43.1 286.3 L36.1 272.8 L30.6 258.7 L26.4 244.3 L23.1 229.7 L20.6 214.9 L18.7 200.0 L17.3 184.8 L16.7 169.2 L17.3 153.4 L19.5 137.4 L23.7 121.7 L30.4 106.8 L39.6 93.1 L51.2 81.1 L64.6 71.1 L79.4 63.2 L95.0 57.2 L110.7 52.7 L126.1 49.1 L141.2 46.0 L155.8 43.0 L170.3 39.7 L185.0 36.3 L200.0 33.0 L215.6 30.4 L231.7 29.0 L248.0 29.3 L264.3 31.7 L280.1 36.4 L295.1 43.2 L308.9 51.9 L321.5 62.1 L332.9 73.4 L343.3 85.5 L352.7 98.1 L361.4 111.3 L369.2 124.9 L375.9 139.0 L381.3 153.7 L385.1 168.9 L386.7 184.4 L386.2 200.0Z'/%3E%3Cpath d='M392.9 200.0 L389.1 215.8 L384.2 230.9 L378.7 245.6 L373.1 260.0 L367.6 274.4 L362.0 289.1 L356.1 304.1 L349.4 319.4 L341.3 334.6 L331.4 349.1 L319.4 362.4 L305.2 373.6 L289.3 382.3 L271.9 388.2 L253.8 391.3 L235.5 391.8 L217.5 390.2 L200.0 387.2 L183.2 383.3 L166.9 379.0 L151.0 374.3 L135.3 369.3 L119.8 363.9 L104.5 357.6 L89.6 350.1 L75.6 341.2 L62.6 330.8 L51.0 319.1 L40.9 306.1 L32.2 292.3 L24.8 277.8 L18.3 263.0 L12.5 247.8 L7.4 232.4 L2.8 216.4 L-0.8 200.0 L-3.1 183.1 L-3.6 165.8 L-1.6 148.6 L3.1 131.8 L10.7 115.9 L21.0 101.6 L33.6 89.0 L47.8 78.4 L62.9 69.4 L78.3 61.9 L93.5 55.2 L108.4 48.8 L122.9 42.4 L137.3 35.8 L151.9 29.0 L167.1 22.5 L183.2 16.7 L200.0 12.2 L217.5 9.8 L235.2 9.7 L252.9 12.1 L270.0 17.0 L286.2 24.0 L301.4 32.8 L315.5 42.9 L328.7 53.9 L341.1 65.7 L352.7 78.0 L363.4 91.0 L373.2 104.8 L381.6 119.3 L388.3 134.7 L392.9 150.8 L395.1 167.2 L395.1 183.7 L392.9 200.0Z'/%3E%3Cpath d='M398.9 200.0 L396.6 216.4 L394.2 232.6 L391.8 248.9 L389.3 265.6 L386.3 282.7 L382.3 300.2 L376.6 317.7 L368.6 334.7 L358.0 350.5 L344.8 364.3 L329.2 375.8 L311.8 384.4 L293.2 390.3 L274.0 393.6 L254.8 394.9 L236.1 394.8 L217.8 393.8 L200.0 392.4 L182.5 390.7 L165.1 388.7 L147.6 386.1 L130.3 382.4 L113.1 377.4 L96.6 370.6 L80.9 362.1 L66.3 351.7 L53.1 339.9 L41.1 327.0 L30.3 313.1 L20.4 298.7 L11.2 283.8 L2.6 268.4 L-5.3 252.4 L-12.2 235.6 L-17.7 218.1 L-21.1 200.0 L-21.8 181.5 L-19.5 163.1 L-13.9 145.4 L-5.4 128.8 L5.6 113.7 L18.5 100.2 L32.5 88.3 L46.8 77.6 L61.0 67.6 L74.8 57.9 L88.3 48.1 L101.8 38.0 L115.7 27.7 L130.3 17.7 L146.1 8.5 L163.1 0.9 L181.2 -4.6 L200.0 -7.6 L219.1 -7.7 L238.0 -5.2 L256.3 -0.3 L273.9 6.6 L290.6 14.9 L306.6 24.2 L321.8 34.4 L336.3 45.3 L350.1 57.1 L362.9 69.8 L374.4 83.7 L384.2 98.7 L391.9 114.8 L397.3 131.6 L400.4 148.9 L401.4 166.2 L400.7 183.3 L398.9 200.0Z'/%3E%3Cpath d='M200 200 L320 120'/%3E%3C/svg%3E");
}

/* Słoje (przekrój pnia) w ciemnej sekcji. */
.tl-rings {
	isolation: isolate;
	clip-path: inset(-60px 0 0 0);
	overflow-x: clip;
}

.tl-rings::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: clamp(320px, 48vw, 720px);
	aspect-ratio: 1;
	right: -14%;
	top: -10%;
	background-color: var(--wp--preset--color--base-3);
	-webkit-mask: var(--tl-rings) center / contain no-repeat;
	mask: var(--tl-rings) center / contain no-repeat;
	opacity: 0.08;
	pointer-events: none;
}

/* ---------- Podgląd wymiaru ---------- */
.tl-sizer {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--40);
	border: 1px dashed var(--wp--preset--color--contrast-2);
	border-radius: var(--wp--custom--radius--medium);
}

.tl-sizer__presets {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tl-sizer__presets button {
	min-height: var(--wp--custom--touch-target);
	padding: 0 1rem;
	border: 1px solid var(--wp--preset--color--contrast-2);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
}

.tl-sizer__presets button[aria-pressed="true"],
.tl-sizer__presets button:hover {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--base);
}

.tl-sizer__fields {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
}

.tl-sizer label {
	display: grid;
	gap: 0.3rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.tl-sizer input[type="number"] {
	min-height: var(--wp--custom--touch-target);
	width: 100%;
	box-sizing: border-box;
	padding: 0 0.75rem;
	border: 1px solid var(--wp--preset--color--linia);
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: var(--wp--preset--font-size--medium);
	font-variant-numeric: tabular-nums;
}

/* Legenda kolejności wymiarów pod polami. */
.tl-sizer__legenda {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.85;
}

.tl-sizer__check {
	display: flex !important;
	align-items: center;
	gap: 0.6rem !important;
	min-height: var(--wp--custom--touch-target);
	cursor: pointer;
}

.tl-sizer__check input {
	width: 1.4rem;
	height: 1.4rem;
	accent-color: var(--wp--preset--color--accent);
}

.tl-sizer__stage {
	display: grid;
	place-items: center;
	min-height: 240px;
	padding: 2.25rem 0 0.5rem 1.75rem;
}

.tl-sizer__frame {
	position: relative;
	width: 210px;
	height: 297px;
	transition: width 250ms ease, height 250ms ease;
}

.tl-sizer__a4,
.tl-sizer__board {
	position: absolute;
	left: 0;
	bottom: 0;
	box-sizing: border-box;
	transition: width 250ms ease, height 250ms ease, border-radius 250ms ease;
}

.tl-sizer__a4 {
	width: 210px;
	height: 297px;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--linia);
	border-radius: 2px;
	display: grid;
	place-items: center;
	transition: width 250ms ease, height 250ms ease, left 250ms ease;
}

/* Linie jak na kartce w kratkę - widać, że to papier. */
.tl-sizer__a4::before {
	content: "";
	position: absolute;
	inset: 12% 14%;
	background: repeating-linear-gradient(to bottom, var(--wp--preset--color--linia) 0 1px, transparent 1px 14%);
}

.tl-sizer__a4 span {
	position: relative;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 800;
	white-space: nowrap;
	color: var(--wp--preset--color--contrast-2);
	background: var(--wp--preset--color--base);
	padding: 0 0.3em;
}

/* Mała kartka: bez linii, podpis nad kartką. */
.tl-sizer__a4.is-small::before {
	display: none;
}

.tl-sizer__a4.is-small span {
	position: absolute;
	right: 0;
	bottom: calc(100% + 0.35rem);
	padding: 0;
	background: none;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	color: var(--wp--preset--color--base-3);
}

.tl-sizer__board {
	width: 200px;
	height: 300px;
	background: var(--wp--preset--color--base-3) url("../images/hero-uslojenie.webp") center / cover;
	filter: var(--wp--custom--photo--filter);
	box-shadow: 0 18px 30px -18px var(--wp--preset--color--contrast-2);
	z-index: 1;
}

.tl-sizer__lw,
.tl-sizer__lh {
	position: absolute;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--base-3);
}

.tl-sizer__lw {
	top: -1.6rem;
	left: 0;
}

.tl-sizer__lh {
	left: -1.6rem;
	bottom: 0;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

.tl-sizer__out {
	margin: 0;
	font-weight: 600;
	min-height: 3em;
}

.tl-sizer__mail {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--touch-target);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-contrast) !important;
	text-decoration: none;
	padding: 0.75rem 1.5rem;
	border-radius: var(--wp--custom--radius--medium);
	font-weight: 600;
}

.tl-sizer__mail:hover {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast) !important;
}

@media (max-width: 599px) {
	.tl-sizer {
		padding: var(--wp--preset--spacing--30);
	}

	.tl-sizer__fields {
		grid-template-columns: 1fr 1fr;
	}

	.tl-sizer__fields label:last-child {
		grid-column: 1 / -1;
	}
}

/* ---------- Kroki zamówienia: duże cyfry i linia cięcia ---------- */
.tl-steps {
	list-style: none;
	padding: 0;
	counter-reset: tl-krok;
	display: grid;
	gap: var(--wp--preset--spacing--40);
}

.tl-steps li {
	counter-increment: tl-krok;
	position: relative;
	padding-left: 4.25rem;
	min-height: 3.5rem;
}

.tl-steps li::before {
	content: counter(tl-krok);
	position: absolute;
	left: 0;
	top: -0.35rem;
	width: 3rem;
	text-align: center;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2.75rem;
	font-weight: 800;
	font-style: italic;
	line-height: 1;
	/* Na jasnej stronie cyfra w kolorze tła sekcji ginęła - potrzebny
	   ciemniejszy ton. Na ciemnym tle zostaje jasny (reguła niżej). */
	color: var(--wp--preset--color--contrast-2);
}

.has-contrast-background-color .tl-steps li::before,
.has-contrast-2-background-color .tl-steps li::before {
	color: var(--wp--preset--color--base-3);
}

.tl-steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 1.5rem;
	top: 2.9rem;
	bottom: calc(-1 * var(--wp--preset--spacing--40) + 0.4rem);
	border-left: 2px dashed var(--wp--preset--color--contrast-2);
}

.tl-steps strong {
	display: block;
	font-size: var(--wp--preset--font-size--large);
}

/* ---------- Pieczątka wokół kółka w hero ---------- */
.tl-stamp {
	position: absolute;
	left: calc(var(--tl-orbit-left) - var(--tl-orbit-size) * 0.22);
	bottom: calc(var(--tl-orbit-size) * -0.22);
	width: calc(var(--tl-orbit-size) * 1.44);
	aspect-ratio: 1;
	z-index: 3;
	color: var(--wp--preset--color--accent);
	pointer-events: none;
	margin: 0 !important;
}

.tl-stamp svg {
	width: 100%;
	height: 100%;
	display: block;
	overflow: visible;
}

.tl-stamp text {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	fill: currentColor;
}

/* ---------- Ruch przy przewijaniu (tylko CSS, wyłączany przy "ogranicz ruch") ---------- */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.wp-block-post-content > .alignfull:not(:first-child) > :not(.tl-card-grid):not(.wp-block-columns),
		.wp-block-post-content > .alignfull:not(:first-child) > .wp-block-columns > .wp-block-column,
		.tl-card,
		.tl-features > * {
			animation: tl-wjazd linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 35%;
		}

		.tl-card:nth-child(3n + 2) {
			animation-range: entry 5% entry 40%;
		}

		.tl-card:nth-child(3n) {
			animation-range: entry 10% entry 45%;
		}
	}
}

@keyframes tl-wjazd {
	from {
		opacity: 0;
		transform: translateY(28px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Sklep: pasek kategorii (filtr) ---------- */
/* Kafelki kategorii zawijają się do kolejnego wiersza. Wcześniej jechały
   w jednym przewijanym rzędzie, przez co część kategorii była niewidoczna
   (wytyczna "Chip Collection Reflow" z UI UX Pro Max). */
.tl-chips {
	flex-wrap: wrap;
}

.tl-chips .wp-block-button__link {
	white-space: nowrap;
	min-height: var(--wp--custom--touch-target);
	display: inline-flex;
	align-items: center;
	padding-block: 0.4rem;
}

/* ---------- Sklep: pasek narzędzi nad listą ---------- */
.tl-shop-toolbar {
	width: 100%;
}

.tl-shop-toolbar p,
.tl-shop-toolbar .woocommerce-result-count {
	margin: 0;
	color: var(--wp--preset--color--contrast-2);
}

.tl-shop-toolbar form,
.tl-shop-toolbar .woocommerce-ordering {
	margin: 0;
}

select,
select.orderby {
	min-height: var(--wp--custom--touch-target);
	max-width: 100%;
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--wp--preset--color--linia);
	border-radius: var(--wp--custom--radius--small);
	background-color: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- Sklep: siatka produktów ---------- */
.tl-products .wc-block-product-template,
.tl-related .wc-block-product-template {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--40);
}

@media (min-width: 600px) {
	.tl-products .wc-block-product-template,
	.tl-related .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.tl-products .wc-block-product-template,
	.tl-related .wc-block-product-template {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.tl-products .wc-block-product {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.75rem 0.75rem 1rem;
	background-color: var(--wp--preset--color--base-2);
	border: 1px solid var(--wp--preset--color--linia);
	border-radius: var(--wp--custom--radius--medium);
	transition: transform 200ms ease;
}

.tl-products .wc-block-product:hover {
	transform: translateY(-4px);
}

.tl-products .wc-block-product > * {
	margin: 0;
}

.tl-products .wc-block-components-product-image {
	margin-bottom: 0.25rem;
}

.tl-products .wc-block-components-product-image img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--small);
	background-color: var(--wp--preset--color--base-3);
}

.tl-products .wp-block-post-title {
	line-height: 1.35;
}

.tl-products .wp-block-post-title a {
	text-decoration: none;
}

.tl-products .wp-block-post-title a:hover {
	text-decoration: underline;
}

/* Przyciski "Dodaj do koszyka" w jednym rzędzie na tej samej wysokości,
   niezależnie od tego, czy nazwa produktu zajmuje jedną linijkę czy dwie.
   Dlatego to przycisk jest dopychany do dołu karty, a nie cena. */
.tl-products .wc-block-components-product-price {
	padding-top: 0.25rem;
	color: var(--wp--preset--color--contrast);
}

.tl-products .wp-block-woocommerce-product-button {
	width: 100%;
	margin-top: auto;
}

.tl-products .wp-block-woocommerce-product-button .wp-block-button__link {
	width: 100%;
	justify-content: center;
	min-height: var(--wp--custom--touch-target);
	display: inline-flex;
	align-items: center;
}

/* Link "Zobacz koszyk" doklejany przez WooCommerce po dodaniu produktu. */
.tl-products .added_to_cart {
	align-self: center;
	font-size: var(--wp--preset--font-size--small);
}

.tl-pagination {
	margin-top: var(--wp--preset--spacing--50);
	gap: 0.25rem;
}

.tl-pagination a,
.tl-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--wp--custom--touch-target);
	min-height: var(--wp--custom--touch-target);
	padding-inline: 0.5rem;
	border-radius: var(--wp--custom--radius--small);
	text-decoration: none;
}

.tl-pagination .current {
	background-color: var(--wp--preset--color--base-3);
	font-weight: 700;
}

/* ---------- Karta produktu ---------- */
.tl-product {
	margin-top: var(--wp--preset--spacing--40) !important;
}

.tl-product__media .wp-block-woocommerce-product-image-gallery img,
.tl-product__media .woocommerce-product-gallery img {
	border-radius: var(--wp--custom--radius--medium);
}

/* WooCommerce ogranicza galerię do szerokości pliku zdjęcia (tu 512 px),
   przez co nie wypełniała swojej kolumny i zostawiała dziurę obok opisu. */
.tl-product__media .wp-block-woocommerce-product-image-gallery,
.tl-product__media .woocommerce-product-gallery {
	max-width: none;
	width: 100%;
}

.tl-product__media .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.tl-product__media .flex-control-thumbs li {
	width: calc(25% - 0.375rem);
}

.tl-product__info .wc-block-components-product-price {
	display: block;
	color: var(--wp--preset--color--contrast);
}

.tl-product__facts p {
	display: flex;
	align-items: center;
	margin: 0;
	min-height: 1.75rem;
	color: var(--wp--preset--color--contrast-2);
}

.tl-product__facts .tl-ico::before {
	color: var(--wp--preset--color--accent);
}

/* Formularz dodawania do koszyka - WooCommerce renderuje klasyczny formularz. */
.tl-atc form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	margin: 0;
}

.tl-atc .quantity {
	display: flex;
	align-items: center;
}

.tl-atc .quantity input.qty,
.tl-atc input[type="number"] {
	width: 5rem;
	min-height: var(--wp--custom--touch-target);
	padding: 0.5rem;
	text-align: center;
	font-size: var(--wp--preset--font-size--medium);
	font-family: var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base-2);
	border: 1px solid var(--wp--preset--color--linia);
	border-radius: var(--wp--custom--radius--small);
}

.tl-atc button.single_add_to_cart_button,
.tl-atc .single_add_to_cart_button {
	flex: 1 1 14rem;
	min-height: var(--wp--custom--touch-target);
	padding: 0.75rem 1.5rem;
	border: 0;
	border-radius: var(--wp--custom--radius--medium);
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-contrast);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	cursor: pointer;
	transition: background-color 200ms ease;
}

.tl-atc button.single_add_to_cart_button:hover {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.tl-atc .stock {
	flex-basis: 100%;
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
}

/* Dane techniczne: tabela atrybutów WooCommerce. */
.tl-product-specs table,
.woocommerce-product-attributes {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small);
}

.tl-product-specs th,
.tl-product-specs td,
.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
	border: 0;
	padding: 0.5rem 0;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--wp--preset--color--linia);
}

.tl-product-specs th,
.woocommerce-product-attributes th {
	width: 45%;
	font-weight: 600;
	color: var(--wp--preset--color--contrast-2);
}

.tl-product-specs td p,
.woocommerce-product-attributes td p {
	margin: 0;
}

/* ---------- Rozwijane sekcje (details) ---------- */
.tl-details .wp-block-details,
.wp-block-details.tl-details {
	border: 1px solid var(--wp--preset--color--linia);
	border-radius: var(--wp--custom--radius--small);
	background-color: var(--wp--preset--color--base-2);
	padding: 0 var(--wp--preset--spacing--30);
}

.tl-details summary {
	display: flex;
	align-items: center;
	min-height: var(--wp--custom--touch-target);
	font-weight: 600;
	cursor: pointer;
	padding-block: 0.5rem;
}

.tl-details .wp-block-details[open] summary {
	border-bottom: 1px solid var(--wp--preset--color--linia);
	margin-bottom: var(--wp--preset--spacing--30);
}

.tl-details .wp-block-details > *:last-child {
	margin-bottom: var(--wp--preset--spacing--30);
}

/* ---------- Pasek: inny wymiar? ---------- */
.tl-askbar .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--touch-target);
}

.tl-askbar .tl-ico .wp-block-button__link::before {
	content: none;
}

/* ---------- Polecane / powiązane produkty ---------- */
.tl-related .wc-block-product {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

/* WooCommerce ustawia szerokość kafla pod swój układ flex - w naszej siatce ma wypełnić kolumnę. */
.tl-products .wc-block-product,
.tl-related .wc-block-product {
	width: auto !important;
	max-width: none !important;
	margin: 0;
}

.tl-related .wc-block-product > * {
	margin: 0;
}

.tl-related .wc-block-components-product-image img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--small);
}

/* ---------- Koszyk i kasa ---------- */
.wc-block-components-button:not(.is-link) {
	min-height: var(--wp--custom--touch-target);
	border-radius: var(--wp--custom--radius--medium);
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-contrast);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
}

.wc-block-components-button:not(.is-link):hover {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-block-components-select__container {
	border-radius: var(--wp--custom--radius--small);
	background-color: var(--wp--preset--color--base-2);
}

.wc-block-components-sidebar .wc-block-components-panel,
.wc-block-cart__sidebar .wc-block-components-panel {
	background-color: var(--wp--preset--color--base-2);
}

/* ---------- Telefon: sklep ---------- */
@media (max-width: 781px) {
	.tl-products .wc-block-product {
		padding: 0.5rem 0.5rem 0.75rem;
	}

	.tl-shop-toolbar {
		gap: 0.5rem;
	}

	.tl-atc button.single_add_to_cart_button,
	.tl-atc .single_add_to_cart_button {
		flex-basis: 100%;
	}

	.tl-product__media .flex-control-thumbs li {
		width: calc(33.333% - 0.34rem);
	}
}

/* ---------- Strony informacyjne ---------- */

/* Widoczna notka "SZKIC" na stronach prawnych - ma kłuć w oczy, dopóki ktoś jej nie usunie. */
.tl-draft {
	border-left: 4px solid var(--wp--preset--color--accent);
	border-radius: var(--wp--custom--radius--small);
}

/* Tabele w treści stron (dostawa, polityka prywatności). */
.tl-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small);
}

.tl-table th,
.tl-table td {
	padding: 0.6rem 0.75rem;
	text-align: left;
	vertical-align: top;
	border: 1px solid var(--wp--preset--color--linia);
}

.tl-table thead th {
	background-color: var(--wp--preset--color--base-3);
	font-weight: 700;
}

/* Na telefonie tabela przewija się w poziomie zamiast rozpychać stronę. */
.tl-table {
	overflow-x: auto;
}

.tl-table table {
	min-width: 32rem;
}

/* ---------- Formularz kontaktowy ---------- */
.tl-form__form {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	margin: 0;
}

.tl-form__row {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0;
	flex: 1;
}

.tl-form__cols {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30);
}

.tl-form label {
	font-weight: 600;
}

.tl-form__hint {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
	font-weight: 400;
}

.tl-form input[type="text"],
.tl-form input[type="email"],
.tl-form input[type="tel"],
.tl-form textarea {
	width: 100%;
	min-height: var(--wp--custom--touch-target);
	padding: 0.6rem 0.75rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--linia);
	border-radius: var(--wp--custom--radius--small);
}

.tl-form textarea {
	min-height: 9rem;
	line-height: 1.5;
	resize: vertical;
}

.tl-form input:focus,
.tl-form textarea:focus {
	border-color: var(--wp--preset--color--accent);
}

/* Informacja o polach wymaganych (nad polami) i o danych (pod polami).
   Obowiązkowego pola zgody już nie ma - polityka prywatności podaje dla
   formularza podstawę "prawnie uzasadniony interes", nie zgodę. */
.tl-form__wymagane,
.tl-form__rodo {
	margin: 0;
}

/* Pole-pułapka na boty: niewidoczne dla ludzi, ale obecne w kodzie. */
.tl-form__pulapka {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tl-form__wyslij {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	margin: 0;
}

.tl-form__wyslij button {
	min-height: var(--wp--custom--touch-target);
	padding: 0.75rem 1.5rem;
	border: 0;
	border-radius: var(--wp--custom--radius--medium);
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-contrast);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	cursor: pointer;
	transition: background-color 200ms ease;
}

.tl-form__wyslij button:hover {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* Komunikat po wysłaniu albo przy błędzie. */
.tl-form__msg {
	margin-bottom: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--30);
	border-radius: var(--wp--custom--radius--small);
	border-left: 4px solid var(--wp--preset--color--accent);
	background-color: var(--wp--preset--color--base-3);
}

.tl-form__msg--blad {
	border-left-color: var(--wp--preset--color--contrast);
}

@media (max-width: 600px) {
	.tl-form__cols {
		flex-direction: column;
	}

	.tl-form__wyslij button {
		width: 100%;
	}
}

/* ---------- Listy z ikonami: poprawka układu ----------
   Wcześniej każdy <li> był kontenerem flex, więc pogrubiony początek zdania
   ("Ikonopisarze") stawał się osobną kolumną i zawijał się w słupek.
   Teraz ikona jest pozycjonowana absolutnie, a tekst płynie normalnie. */
.tl-list-ico li,
.tl-list-ico li.tl-ico {
	display: block;
	position: relative;
	padding-left: 2.1em;
}

.tl-list-ico li.tl-ico::before {
	position: absolute;
	left: 0;
	top: 0.15em;
	margin: 0;
}

/* Pozycje bez ikony nie potrzebują wcięcia. */
.tl-list-ico li:not(.tl-ico) {
	padding-left: 0;
}

/* ---------- Kafelki treściowe (np. "Dla kogo pracujemy") ---------- */
/* Kafelki treściowe jako siatka, nie kolumny bloku: równa wysokość i sensowne
   układy pośrednie - trzy w rzędzie na dużym ekranie, dwa na tablecie,
   jeden na telefonie, bez sztywnych punktów łamania. */
.tl-tiles.wp-block-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: var(--wp--preset--spacing--40);
	margin-block: var(--wp--preset--spacing--40);
}

.tl-tiles.wp-block-columns > .wp-block-column {
	flex-basis: auto;
}

/* Bez height: 100%. Kafelek dostawał wysokość procentową od wiersza siatki,
   który był już policzony z innej zawartości - karta rosła ponad wiersz
   i wchodziła na następną sekcję. Wysokość ma wynikać z siatki (stretch). */
.tl-tile {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.tl-tile > * {
	margin: 0;
}

.tl-tile__ico::before {
	width: 2.2em;
	height: 2.2em;
	color: var(--wp--preset--color--accent);
}

.tl-tile h3 {
	line-height: 1.25;
}

.tl-tile p:last-child {
	color: var(--wp--preset--color--contrast-2);
}

/* ---------- Pudełko z danymi (adres, NIP) ---------- */
.tl-infobox {
	border-left: 4px solid var(--wp--preset--color--linia);
}

.tl-infobox p {
	margin: 0;
}

/* ---------- Strony treściowe: wstęp i szeroki kadr ---------- */

/* Pierwszy akapit strony - wprowadzenie. Szerokość zostaje taka jak reszty
   tekstu, inaczej jego lewa krawędź odjeżdża od pozostałych akapitów. */
.tl-lead {
	color: var(--wp--preset--color--contrast);
	line-height: 1.5;
}

/* Łuk w wersji poziomej - na szerokie kadry w treści strony. */
.tl-arch--szeroki img {
	aspect-ratio: 16 / 7;
	max-height: 26rem;
	border-radius: var(--wp--custom--radius--medium);
}

@media (max-width: 600px) {
	.tl-arch--szeroki img {
		aspect-ratio: 4 / 3;
	}
}

/* Długi adres e-mail nie może rozpychać kafelka na telefonie. */
.tl-break,
.tl-break a {
	overflow-wrap: anywhere;
}

/* ---------- Długie dokumenty (regulamin, polityka prywatności) ---------- */

/* Cienka linia nad każdym rozdziałem daje rytm i ułatwia skanowanie wzrokiem. */
.tl-doc h2 {
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--linia);
	font-size: var(--wp--preset--font-size--large);
}

.tl-doc h2:first-of-type {
	margin-top: var(--wp--preset--spacing--40);
}

.tl-doc h3 {
	margin-top: var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--medium);
	text-transform: none;
}

.tl-doc li + li {
	margin-top: 0.4rem;
}

/* Szerokość tekstu (65-75 znaków w wierszu) ustawia układ bloku treści
   w templates/page.html: contentSize 672 px dla tekstu, 1240 px dla bloków
   oznaczonych jako szerokie. Tutaj nic nie nadpisujemy, żeby nie mnożyć
   różnych szerokości na jednej stronie. */

/* Wyróżnione pudełko z ważnym wyjątkiem (np. produkty na wymiar). */
.tl-infobox--uwaga {
	border-left-color: var(--wp--preset--color--accent);
}

.tl-infobox--uwaga > * {
	margin-block: 0;
}

/* Pudełko "w skrócie" na początku dokumentu. */
.tl-skrot li {
	margin-top: 0.3rem;
}

/* ---------- Formularz: błędy przy polach ---------- */
.tl-form__err {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
	border-left: 3px solid var(--wp--preset--color--accent);
	padding-left: 0.6rem;
}

.tl-form [aria-invalid="true"] {
	border-color: var(--wp--preset--color--accent);
	border-width: 2px;
}

.tl-form__msg ul {
	margin: 0.5rem 0 0;
	padding-left: 1.2rem;
}

.tl-form__msg li + li {
	margin-top: 0.25rem;
}

/* Kategoria, na której właśnie jesteśmy - wytyczna "Active State" z UI UX Pro Max. */
.tl-chips .tl-chip--aktywny {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-contrast);
	border-color: var(--wp--preset--color--accent);
}

/* Galeria na karcie produktu rezerwuje miejsce, zanim zdjęcie się wczyta
   (wytyczna "Content Jumping"). */
.tl-product__media .wp-block-woocommerce-product-image-gallery img,
.tl-product__media .woocommerce-product-gallery__image img {
	aspect-ratio: 1;
	object-fit: cover;
	width: 100%;
}

/* ---------- Cele dotyku: drobiazgi wyłapane przeglądem ---------- */

/* Telefon i e-mail jako samodzielne dane kontaktowe klika się palcem,
   więc dostają pełną wysokość celu dotyku. */
.tl-tile a[href^="tel:"],
.tl-tile a[href^="mailto:"],
.tl-form__hint a[href^="tel:"],
.tl-product__facts a[href^="tel:"] {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--touch-target);
}

/* Nazwa produktu w siatce to link - jednowierszowe nazwy miały 22 px wysokości. */
.tl-products .wp-block-post-title a,
.tl-related .wp-block-post-title a {
	display: inline-block;
	min-height: 24px;
	padding-block: 2px;
}

/* ---------- Rytm pionowy stron treściowych ----------
   Odstęp przed nagłówkiem sekcji jest większy niż między akapitami, żeby
   było widać, gdzie kończy się jedna część treści, a zaczyna następna. */
.entry-content > :where(h2) {
	margin-top: var(--wp--preset--spacing--50);
}

.entry-content > :where(h3) {
	margin-top: var(--wp--preset--spacing--40);
}

.entry-content > :where(h2, h3):first-child {
	margin-top: 0;
}

/* Pasek cech: wyśrodkowany, gdy kafelki mieszczą się w rzędzie. Gdy układają się
   jeden pod drugim (telefon), środkowanie odsuwa je od lewej krawędzi reszty
   treści - wtedy równamy do lewej. */
@media (max-width: 781px) {
	.tl-features {
		justify-content: flex-start;
	}

	.tl-features p {
		max-width: none;
	}
}

/* Zastępczy obrazek "Zdjęcie wkrótce" jest już w kolorach motywu - ciepła
   korekta przeznaczona dla zdjęć z aparatu robiła go żółtawym. */
.tl-photo img[src$=".svg"],
.wc-block-components-product-image img[src$=".svg"] {
	filter: none;
}

/* ---------- Moje konto ----------
   WooCommerce zamyka swoją treść w 1000 px i centruje ją, przez co formularz
   logowania zaczynał się 120 px dalej niż nagłówek strony. Równamy do tej samej
   linii, a sam formularz trzymamy w wygodnej szerokości. */
.woocommerce-account .entry-content > .woocommerce {
	max-width: none;
	margin-inline: 0;
}

.woocommerce-account form.login,
.woocommerce-account form.register {
	max-width: 32rem;
}

/* ---------- Strona Kontakt: jedna siatka ----------
   Teksty startują przy tej samej lewej krawędzi co kafelki i kolumny,
   a ich szerokość to czytelny wiersz (42 rem), nie cała siatka. */
/* Uwaga na :where() - zeruje specyficzność, a reguła układu WordPressa
   (margin-inline: auto) ładuje się później, więc wygrywałaby remis. Dlatego
   selektory wypisane wprost. */
.tl-rail > p,
.tl-rail > h2,
.tl-rail > h3,
.tl-rail > ul,
.tl-rail > ol,
.tl-rail > .wp-block-group > p,
.tl-rail > .wp-block-group > h2,
.tl-rail > .wp-block-group > h3,
.tl-rail > .wp-block-group > ul,
.tl-rail > .wp-block-group > ol,
.entry-content > p,
.entry-content > h2,
.entry-content > h3,
.entry-content > ul,
.entry-content > ol,
.tl-doc > p,
.tl-doc > h2,
.tl-doc > h3,
.tl-doc > ul,
.tl-doc > ol {
	max-width: 42rem;
	/* WordPress wypisuje dla dzieci kontenera "margin-left: auto !important",
	   więc bez !important nie da się ich wyrównać do lewej. To jedyne miejsce
	   w motywie, gdzie nadpisujemy regułę układu WordPressa. */
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* Kafelki kontaktowe: jednakowe odstępy wewnątrz, dane tuż pod etykietą. */
.tl-tile__ico {
	margin-bottom: 0.25rem;
}

.tl-tile__label + .tl-tile__dane {
	margin-top: 0.1rem;
}

.tl-tile__opis {
	color: var(--wp--preset--color--contrast-2);
	margin-top: 0.35rem;
}

/* Pudełko z danymi do faktury ma szerokość swojej treści, nie całej siatki,
   i stoi przy tej samej lewej krawędzi co reszta (stąd ten sam override). */
.tl-infobox--waski {
	width: fit-content;
	max-width: 100%;
}

.tl-rail .tl-infobox--waski {
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* Pola formularza liczyły szerokość bez paddingu i wychodziły poza ramkę
   pudełka - po prawej nie było marginesu, po lewej był. */
.tl-form input,
.tl-form textarea,
.tl-form select {
	box-sizing: border-box;
}

/* Pole wiadomości: niższe na start, nadal rozciągalne ręką. */
.tl-form textarea {
	min-height: 9.5rem;
}

/* ---------- Kontakt: proporcje kolumn ----------
   Szerokości trzymamy w CSS, a nie w atrybutach bloku: dzięki temu da się je
   złamać na wąskich ekranach bez !important. Dwie kolumny dopiero od 900 px,
   bo niżej lista i formularz robią się ciasne. */
@media (min-width: 900px) {
	/* Klasa .wp-block-column w selektorze jest potrzebna: bez niej reguła
	   WordPressa (flex-basis: 0; flex-grow: 1) ma tę samą specyficzność
	   i ładuje się później, więc kolumny wychodziły równe. */
	.tl-kontakt-glowny > .wp-block-column.tl-kontakt-lista {
		flex-basis: 40%;
		flex-grow: 0;
	}

	.tl-kontakt-glowny > .wp-block-column.tl-kontakt-formularz {
		flex-basis: 60%;
		flex-grow: 0;
	}
}

@media (max-width: 899px) {
	.tl-kontakt-glowny {
		flex-direction: column;
	}

	.tl-kontakt-glowny > .wp-block-column {
		flex-basis: auto;
	}
}

/* Stopka na tablecie: dwie kolumny zamiast czterech wierszy jedna pod drugą.
   WordPress wymusza flex-basis: 100% !important poniżej 782 px, więc tylko
   tutaj odpowiadamy tym samym - inaczej stopka ciągnie się przez pół ekranu. */
@media (min-width: 600px) and (max-width: 781px) {
	.tl-footer .wp-block-columns > .wp-block-column {
		flex-basis: calc(50% - var(--wp--preset--spacing--30)) !important;
	}
}

/* Pudełko "W skrócie" trzyma się tej samej szyny i szerokości co tekst wokół. */
.tl-doc > .tl-skrot {
	max-width: 42rem;
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* Pudełka z tekstem (uwagi, dane) nie rozciągają się na całą szynę - trzymają
   szerokość czytelnego wiersza, tak jak akapity obok. Paski CTA (.tl-askbar)
   zostają szerokie, bo to osobny element kompozycji. */
.entry-content > .tl-infobox,
.tl-doc > .tl-infobox {
	max-width: 42rem;
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* WooCommerce ogranicza tytuł na stronie konta do 1000 px, przez co nie trzymał
   się szyny strony (1200 px). */
.woocommerce-account .wp-block-post-title {
	max-width: 1200px;
}

/* ---------- Dane do faktury: rząd zamiast samotnego pudełka ---------- */
.tl-dane {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: var(--wp--preset--spacing--40);
}

.tl-dane > * {
	margin-top: 0;
}

.tl-dane__poz > * {
	margin: 0;
}

.tl-dane__etykieta {
	margin-bottom: 0.2rem !important;
}

/* =========================================================================
   Strona "O nas" - uklad edytorski
   Hero 43/57, zdanie przewodnie na osi zdjecia, trzy grupy na zdjeciach,
   proces 01-04 na cienkich liniach, kontakt i dane firmy w jednym pasie.
   ========================================================================= */

/* ---------- Wspolne elementy kompozycji ---------- */
.tl-eyebrow--kreska {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.8rem;
	font-weight: 700;
}

.tl-eyebrow--kreska::before {
	content: "";
	flex: 0 0 auto;
	width: 2.5rem;
	height: 1px;
	background-color: currentColor;
	opacity: 0.7;
}

.tl-h2-duzy {
	margin: 0;
	font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

/* Naglowek sekcji: grupa zostaje na szynie 1200 px (WordPress ja centruje),
   a czytelna szerokosc ograniczaja jej dzieci - tekst startuje od lewej
   krawedzi szyny, bez nadpisywania marginesow przez !important. */
.tl-naglowek-sekcji > * {
	max-width: min(100%, 42rem);
}

.tl-naglowek-sekcji > p {
	margin-top: var(--wp--preset--spacing--20);
	margin-bottom: 0;
}

/* Link z strzalka - lzejszy od przycisku, uzywany w hero i przy grupach. */
.tl-link-strzalka {
	margin: 0;
}

.tl-link-strzalka a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--wp--preset--color--accent);
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

.tl-link-strzalka a::after {
	content: "\2192";
	transition: transform 180ms ease;
}

.tl-link-strzalka a:hover::after {
	transform: translateX(0.2rem);
}

.tl-link-strzalka--maly a {
	font-weight: 600;
}

/* ---------- Hero ---------- */
/* --tl-kolumna-przerwa: jedna przerwa miedzy kolumnami dla calej strony -
   hero i pas CTA uzywaja tej samej wartosci, wiec kolumny maja ten sam oddech.
   padding-bottom: odstep przed stopka. Widoczna przerwa = ten padding
   - fala stopki (clamp 18-40 px, wystaje nad stopke, jak w .tl-footer::before)
   + 24 px globalnego odstepu blokow nad stopka. Wynik: ok. 64 px (telefon),
   ~78 (tablet), ~93 (1024), 112 px (desktop). Padding na <main>, wiec przerwa
   ma kolor tla strony - pas CTA (base-2) i stopka (base-3) sie nie stykaja. */
.tl-strona-onas {
	--tl-kolumna-przerwa: clamp(2rem, 4vw, 4rem);
	padding-bottom: calc(clamp(2.5rem, 0.5rem + 6vw, 5.5rem) + clamp(18px, 3vw, 40px));
}

.tl-onas-hero__grid {
	display: grid;
	gap: var(--tl-kolumna-przerwa, clamp(2rem, 4vw, 4rem));
	align-items: center;
}

.tl-onas-hero__grid > * {
	margin: 0;
}

@media (min-width: 900px) {
	.tl-onas-hero__grid {
		grid-template-columns: 43fr 57fr;
	}
}

.tl-onas-hero__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--30);
}

.tl-onas-hero__text > * {
	margin: 0;
}

.tl-onas-hero h1 {
	font-size: clamp(2.3rem, 1.5rem + 2.8vw, 3.9rem);
	line-height: 1.04;
	font-weight: 800;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.tl-onas-hero .tl-lead {
	max-width: min(100%, 38ch);
	line-height: 1.5;
}

.tl-onas-hero__media {
	margin: 0;
}

.tl-onas-hero__media img {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	object-position: center;
	border-radius: var(--wp--custom--radius--medium);
}

.tl-onas-hero__media figcaption {
	margin: 0.65rem 0 0;
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-size: 0.95rem;
	color: var(--wp--preset--color--contrast-2);
	text-align: left;
}

@media (max-width: 899px) {
	.tl-onas-hero__media img {
		aspect-ratio: 3 / 2;
	}
}

/* ---------- Dla kogo pracujemy ---------- */
.tl-grupy {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.tl-grupy > * {
	margin: 0;
}

.tl-grupa {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.6rem;
}

.tl-grupa > * {
	margin: 0;
}

.tl-grupa__media {
	width: 100%;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--medium);
}

.tl-grupa__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	transition: transform 400ms ease;
}

.tl-grupa:hover .tl-grupa__media img {
	transform: scale(1.03);
}

.tl-grupa__tytul {
	margin-top: 0.4rem;
	line-height: 1.2;
}

.tl-grupa p {
	line-height: 1.55;
}

.tl-grupa .tl-link-strzalka {
	margin-top: 0.2rem;
}

/* ---------- Jak pracujemy (01-04) ---------- */
.tl-kroki {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.tl-kroki > * {
	margin: 0;
}

.tl-krok {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--linia);
}

.tl-krok > * {
	margin: 0;
}

.tl-krok__nr {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.8rem, 1.2rem + 1.4vw, 2.6rem);
	line-height: 1;
	font-weight: 700;
	color: var(--wp--preset--color--accent);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}

.tl-krok__tytul {
	line-height: 1.2;
}

.tl-krok p:last-child {
	line-height: 1.55;
}

/* ---------- Kontakt na koncu strony ---------- */
/* Tlo base-2 - jasniejsze od strony i od stopki (base-3), wiec pas nie zlewa sie
   ze stopka. Uklad 65/35 na tej samej szynie 1200 px co reszta strony. */
.tl-cta {
	display: grid;
	gap: var(--wp--preset--spacing--40) var(--tl-kolumna-przerwa, clamp(2rem, 4vw, 4rem));
	align-items: center;
}

.tl-cta > * {
	margin: 0;
}

.tl-cta__tekst {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--30);
}

.tl-cta__tekst > * {
	margin: 0;
}

.tl-cta__tytul {
	font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem);
	line-height: 1.12;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.tl-cta__opis {
	max-width: min(100%, 52ch);
	line-height: 1.55;
}

.tl-cta__akcja {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--30);
}

.tl-cta__akcja > * {
	margin: 0;
}

/* Przycisk: wysokosc ~52 px, wiecej powietrza po bokach, strzalka w osi tekstu. */
.tl-btn-strzalka .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 3.25rem;
	padding-block: 0.7rem;
	padding-inline: 2rem;
	transition: background-color 180ms ease, color 180ms ease;
}

.tl-btn-strzalka .wp-block-button__link::after {
	content: "→";
	line-height: 1;
	transition: transform 180ms ease;
}

.tl-btn-strzalka .wp-block-button__link:hover::after,
.tl-btn-strzalka .wp-block-button__link:focus-visible::after {
	transform: translateX(0.25rem);
}

.tl-btn-strzalka .wp-block-button__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--focus);
	outline-offset: 3px;
}

.tl-cta__tel {
	margin: 0;
}

.tl-cta__tel a {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	text-underline-offset: 0.2em;
}

/* Desktop 65/35: kolumna akcji to panel za cienka pionowa linia. Przycisk
   i telefon stoja przy linii (od lewej), wiec nie uciekaja na prawa krawedz,
   a odstep miedzy kolumnami ma funkcje zamiast byc pustka. Linia ma wysokosc
   calego bloku tekstu, przycisk siedzi w jego pionowym srodku. */
@media (min-width: 820px) {
	.tl-cta {
		grid-template-columns: 65fr 35fr;
		align-items: stretch;
	}

	.tl-cta__tekst,
	.tl-cta__akcja {
		justify-content: center;
	}

	.tl-cta__akcja {
		padding-left: var(--tl-kolumna-przerwa, clamp(2rem, 4vw, 4rem));
		border-left: 1px solid var(--wp--preset--color--linia);
	}
}

/* Na telefonie glowny przycisk na cala szerokosc - latwo trafic kciukiem. */
@media (max-width: 599px) {
	.tl-cta__akcja,
	.tl-cta__przyciski,
	.tl-cta__przyciski .wp-block-button {
		width: 100%;
	}

	.tl-btn-strzalka .wp-block-button__link {
		width: 100%;
	}
}


/* Na tablecie cztery kroki ukladaja sie 2x2 - auto-fit zrobilby 3 + 1. */
@media (min-width: 600px) and (max-width: 1023px) {
	.tl-kroki {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* =========================================================================
   Powiadomienia WooCommerce ("Dodano do koszyka", błędy kodu rabatowego,
   komunikaty w koszyku i kasie) w języku komunikatów motywu - jak
   .tl-form__msg: tło base-3, linia 4 px po lewej, mały promień, bez ramki
   dookoła i bez zieleni spoza palety. Rodzaj komunikatu mówi kolor linii
   i ikony (oliwka - sukces, brąz - błąd, szarobrązowy - informacja) oraz sam
   kształt ikony od WooCommerce - nie tylko kolor. Tekst zawsze contrast.
   Selektory powtarzają łańcuch WooCommerce (np. "> ... __content .wc-forward",
   ".is-success > svg") z prefiksem body - wygrywają specyficznością, bez
   !important i bez zależności od kolejności ładowania arkuszy.
   ========================================================================= */
body .wc-block-components-notice-banner {
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border: 0;
	border-left: 4px solid var(--wp--preset--color--accent);
	border-radius: var(--wp--custom--radius--small);
	background-color: var(--wp--preset--color--base-3);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

body .wc-block-components-notice-banner.is-success {
	border-left-color: var(--wp--preset--color--accent);
	background-color: var(--wp--preset--color--base-3);
}

body .wc-block-components-notice-banner.is-error {
	border-left-color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base-3);
}

body .wc-block-components-notice-banner.is-info,
body .wc-block-components-notice-banner.is-warning {
	border-left-color: var(--wp--preset--color--contrast-2);
	background-color: var(--wp--preset--color--base-3);
}

body .wc-block-components-notice-banner > svg,
body .wc-block-components-notice-banner.is-success > svg {
	flex: none;
	background-color: var(--wp--preset--color--accent);
	fill: var(--wp--preset--color--accent-contrast);
}

body .wc-block-components-notice-banner.is-error > svg {
	background-color: var(--wp--preset--color--contrast);
}

body .wc-block-components-notice-banner.is-info > svg,
body .wc-block-components-notice-banner.is-warning > svg {
	background-color: var(--wp--preset--color--contrast-2);
}

/* Treść i przycisk w jednym rzędzie z odstępem; na wąskim ekranie przycisk
   schodzi pod tekst (zamiast floatu przyklejonego do prawej krawędzi). */
body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0 var(--wp--preset--spacing--40);
	min-width: 0;
	color: inherit;
}

/* "Zobacz koszyk" / "Kontynuuj zakupy" - wyraźna akcja w kolorze akcentu,
   jak linki ze strzałką w treści strony, z pełnym celem dotyku. */
body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward {
	float: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: var(--wp--custom--touch-target);
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	/* WooCommerce daje temu linkowi color: #2f2f2f !important - tylko
	   !important go przebije. */
	color: var(--wp--preset--color--accent) !important;
	opacity: 1;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
	white-space: nowrap;
}

body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward::after {
	content: "→";
	display: inline-block;
	text-decoration: none;
	transition: transform 180ms ease;
}

body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward:hover,
body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward:focus-visible {
	color: var(--wp--preset--color--contrast) !important;
	background: none;
}

body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward:hover::after {
	transform: translateX(0.2rem);
}

/* Komunikaty wyskakujące w koszyku (np. usunięcie produktu) unoszą się nad
   treścią - tylko one dostają delikatny cień, żeby odcięły się od tła. */
body .wc-block-components-notice-snackbar {
	box-shadow: 0 2px 10px color-mix(in srgb, var(--wp--preset--color--contrast) 18%, transparent);
}
