:root {
	--wm-brown: #715442;
	--wm-accent: #3c2d24;
	--wm-sand: #f2c397;
	--wm-line: #d5d8dc;
	--wm-display: 'Amatic SC', sans-serif;
	--wm-faq: 'Arima', sans-serif;
	--wm-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M285.5 273 91.1 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.7-22.7c-9.4-9.4-9.4-24.5 0-33.9L188.5 256 34.5 101.3c-9.3-9.4-9.3-24.5 0-33.9l22.7-22.7c9.4-9.4 24.6-9.4 33.9 0L285.5 239c9.4 9.4 9.4 24.6 0 34z'/%3E%3C/svg%3E");
	--wm-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M416 208H272V64c0-17.7-14.3-32-32-32h-32c-17.7 0-32 14.3-32 32v144H32c-17.7 0-32 14.3-32 32v32c0 17.7 14.3 32 32 32h144v144c0 17.7 14.3 32 32 32h32c17.7 0 32-14.3 32-32V304h144c17.7 0 32-14.3 32-32v-32c0-17.7-14.3-32-32-32z'/%3E%3C/svg%3E");
	--wm-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M416 208H32c-17.7 0-32 14.3-32 32v32c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32v-32c0-17.7-14.3-32-32-32z'/%3E%3C/svg%3E");
}

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

body {
	margin: 0;
	background: #fff url("../img/wooden-wall.webp") center / cover no-repeat;
	overflow-wrap: break-word;
}

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

:focus-visible {
	outline: 3px solid var(--wm-brown);
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	left: -999rem;
	top: 0;
	z-index: 100;
	padding: 12px 16px;
	background: #fff;
}

.skip-link:focus {
	left: 0;
}

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

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

/* Nagłówek */
.site-header {
	position: relative;
	z-index: 5;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 10px;
}

.site-header__contact,
.site-header__main {
	width: 100%;
	max-width: 1460px;
	margin-inline: auto;
}

.site-header__contact {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 20px;
	height: 59px;
	margin-bottom: -30px;
}

.contact-chip {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 18.72px;
	color: #000;
	text-decoration: none;
	transition: color 0.4s;
}

.contact-chip:hover {
	color: var(--wm-brown);
}

.contact-chip img {
	width: 30px;
	height: 30px;
}

.site-header__main {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.custom-logo {
	display: block;
	width: 500px;
	max-width: 500px;
	height: auto;
}

.site-title {
	font-family: var(--wm-display);
	font-size: 60px;
	font-weight: 700;
	color: #000;
	text-decoration: none;
}

.nav-toggle {
	display: none;
}

.primary-nav .menu {
	display: flex;
	gap: 22px;
}

.primary-nav a,
.footer-nav a {
	position: relative;
	display: block;
	font-family: var(--wm-display);
	font-weight: 700;
	line-height: 20px;
	color: #000;
	text-decoration: none;
	white-space: nowrap;
}

.primary-nav a {
	padding: 21px 20px;
	font-size: 33px;
}

.primary-nav a::after,
.footer-nav a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: -20px;
	width: 10px;
	height: 3px;
	background: var(--wm-brown);
	opacity: 0;
	transition: 0.3s;
}

.primary-nav a:hover,
.footer-nav a:hover {
	color: var(--wm-accent);
}

.primary-nav a:hover::after,
.footer-nav a:hover::after,
.primary-nav .current-menu-item > a:not([href*="#"])::after,
.primary-nav .current_page_item > a:not([href*="#"])::after {
	left: 0;
	width: 100%;
	opacity: 1;
}

.primary-nav .current-menu-item > a:not([href*="#"])::after,
.primary-nav .current_page_item > a:not([href*="#"])::after {
	background: var(--wm-accent);
}

/* Podmenu (np. Oferta): rozwija się po najechaniu lub wejściu klawiaturą */
.primary-nav .menu > li {
	position: relative;
}

.primary-nav .menu-item-has-children > a {
	padding-right: 38px;
}

.primary-nav .menu-item-has-children > a::before {
	content: "";
	position: absolute;
	top: 50%;
	right: 18px;
	width: 8px;
	height: 12px;
	background: currentcolor;
	transform: translateY(-50%) rotate(90deg);
	mask: var(--wm-chevron) center / contain no-repeat;
}

.primary-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	min-width: 100%;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	border-radius: 0 0 10px 10px;
	background: #fff;
	box-shadow: 0 8px 20px -6px rgb(0 0 0 / 40%);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.primary-nav .sub-menu a {
	padding: 14px 22px;
	font-size: 27px;
}

.primary-nav .sub-menu a::after {
	display: none;
}

.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu .current-menu-item > a {
	background: #f6e8df;
	color: var(--wm-brown);
}

/* Węższe ekrany komputerów: mniejsze logo i menu, żeby sześć pozycji mieściło się w jednym wierszu */
@media (min-width: 1025px) and (max-width: 1380px) {
	.custom-logo {
		width: clamp(280px, 27vw, 380px);
	}

	.primary-nav .menu {
		gap: 4px;
	}

	.primary-nav .menu > li > a {
		padding-inline: 12px;
		font-size: clamp(24px, 2.3vw, 30px);
	}

	.primary-nav .menu > .menu-item-has-children > a {
		padding-right: 28px;
	}

	.primary-nav .menu-item-has-children > a::before {
		right: 10px;
	}
}

/* Baner */
.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Stałe proporcje banera: zdjęcie strony o innym formacie jest kadrowane, a nie rozciąga sekcji. */
.hero__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1920 / 820;
	object-fit: cover;
}

.hero__box {
	position: absolute;
	top: 50%;
	left: 15%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	width: 69%;
	padding: 40px;
	transform: translateY(-50%);
	border: 3px solid #fff;
	border-radius: 10px;
	background: #00000080;
	color: #fff;
	text-align: center;
}

.hero:not(:has(.hero__img)) .hero__box {
	position: relative;
	top: auto;
	margin-top: 120px;
	transform: none;
}

.hero__shield {
	width: 210px;
	margin-top: -120px;
}

.hero__title {
	margin: 0;
	font-size: 69px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.hero__lead {
	margin: 0;
	padding: 40px 0;
	font-family: var(--wm-display);
	font-size: 39px;
	font-weight: 700;
	line-height: 1;
}

.hero__lead::before {
	content: "~ ";
}

.hero__lead::after {
	content: " ~";
}

/* Postrzępione krawędzie: maska nakładana na dowolne zdjęcie banera (proporcje pasków z pliku 1920 px) */
.hero,
.page-banner {
	container-type: inline-size;
}

.hero__img,
.page-banner__bg {
	--wm-torn-top: calc(100cqi * 59 / 1920);
	--wm-torn-bottom: calc(100cqi * 58 / 1920);

	mask-image: url("../img/torn-top.png"), url("../img/torn-bottom.png"), linear-gradient(#000, #000);
	mask-repeat: no-repeat;
	mask-position: top, bottom, 0 calc(var(--wm-torn-top) - 1px);
	mask-size:
		100% var(--wm-torn-top),
		100% var(--wm-torn-bottom),
		100% calc(100% - var(--wm-torn-top) - var(--wm-torn-bottom) + 2px);
}

.breadcrumbs {
	padding: 21px 39px;
	background: #f9f5f0;
	font-size: 13.6px;
	color: var(--wm-brown);
}

.breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.breadcrumbs a:hover {
	text-decoration: underline;
}

/* Baner podstron i bloga: przyciemnione zdjęcie strony z poszarpaną krawędzią, na nim okruszki, tytuł i zajawka albo daty wpisu */
.page-banner {
	position: relative;
	margin-bottom: 30px;
	color: #fff;
	text-align: center;
}

.page-banner__bg {
	position: absolute;
	inset: 0;
}

.page-banner__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(rgb(60 45 36 / 62%), rgb(28 20 15 / 86%));
}

.page-banner__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page-banner__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 22px;
	min-height: clamp(320px, 32cqi, 460px);
	padding: calc(100cqi * 59 / 1920 + 56px) 40px calc(100cqi * 58 / 1920 + 56px);
}

.page-banner .breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 10px;
	padding: 0;
	background: none;
	font-size: 14px;
	color: var(--wm-sand);
}

.page-banner .breadcrumbs [aria-current] {
	font-weight: 700;
	color: #fff;
}

.page-banner__title {
	max-width: 980px;
	margin: 0;
	font-family: var(--wm-display);
	font-size: clamp(40px, 5cqi, 72px);
	font-weight: 700;
	line-height: 1.05;
	color: #fff;
	text-wrap: balance;
}

.page-banner__ornament {
	width: clamp(130px, 12.5cqi, 180px);
	color: var(--wm-sand);
}

.page-banner__lead {
	max-width: 720px;
	margin: 0;
	font-size: 19px;
	line-height: 1.5;
}

.page-banner__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 28px;
	margin: 0;
	font-size: 15px;
}

.page-banner__meta svg {
	margin-right: 8px;
	vertical-align: -3px;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: var(--wm-sand);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 767px) {
	.page-banner__inner {
		gap: 16px;
		padding: calc(100cqi * 59 / 1920 + 36px) 20px calc(100cqi * 58 / 1920 + 36px);
	}

	.page-banner .breadcrumbs,
	.page-banner__meta {
		font-size: 13px;
	}

	.page-banner__meta {
		column-gap: 16px;
	}

	.page-banner__meta svg {
		width: 16px;
		height: 16px;
	}

	.page-banner__lead {
		font-size: 16px;
	}
}

/* Akapity, listy i nagłówki leżące bezpośrednio w treści mają własne marginesy, więc centrowanie trzeba im przywrócić. */
.site-main .entry-content > p,
.site-main .entry-content > ul,
.site-main .entry-content > ol,
.site-main .entry-content > h2,
.site-main .entry-content > h3,
.site-main .entry-content > h4 {
	margin-inline: auto;
}

/* Wpisy blogowe: węższa kolumna, żeby wiersz tekstu nie był za długi do czytania. */
.single-post .entry-content > * {
	max-width: min(760px, 100% - 20px);
}

.single-post .entry-content h2 {
	margin-top: 1.4em;
	font-size: 46px;
}

.single-post .entry-content h3 {
	margin-top: 1.2em;
}

.single-post .entry-content table {
	width: 100%;
	background: #fff;
	font-size: 16px;
}

.single-post .entry-content th,
.single-post .entry-content td {
	padding: 10px 12px;
	border: 1px solid var(--wm-line);
}

.single-post .entry-content th {
	background: var(--wm-brown);
	color: #fff;
}

.single-post .entry-content .wp-block-table {
	margin-bottom: 1.5em;
	overflow-x: auto;
}

/* Treść: szerokość 70% jak w kontenerach dotychczasowej wersji */
.site-main {
	padding-bottom: 50px;
}

.content,
.entry-content > * {
	max-width: calc((100% - 20px) * 0.7);
	margin-inline: auto;
}

.entry-content > .alignfull {
	max-width: none;
}

/* Wtyczka galerii zeruje boczne marginesy, więc siatka nie centrowałaby się w treści. */
.entry-content > .wmg-gallery {
	margin-inline: auto;
	padding-inline: 10px;
}

.entry-content h2 {
	margin: 0 0 20px;
	line-height: 1;
}

.entry-content h3 {
	margin: 0 0 20px;
	line-height: 1;
}

.entry-content h2 + h3 {
	margin-top: -17px;
}

/* Tekst wyrównany do lewej: justowanie w wąskich kolumnach robiło dziury między wyrazami. */
.entry-content p {
	margin: 0 0 1.2em;
	font-size: 18px;
	line-height: 1.65;
	text-wrap: pretty;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.65em;
	font-size: 16px;
}

.entry-content ul {
	list-style-image: url("../img/pointer.png");
}

.entry-content li {
	line-height: 1.65;
}

.entry-content table {
	border: 1px solid #ddd;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 4px;
	text-align: left;
}

.entry-content tr:nth-child(even) {
	background: #f2f2f2;
}

/* Przyciski */
.btn,
.wp-block-button__link {
	display: inline-block;
	padding: 15px 20px;
	border: 2px solid #e7e7e7;
	border-radius: 10px;
	background: var(--wm-brown);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.3s;
	cursor: pointer;
}

.btn:hover,
.wp-block-button__link:hover {
	background: var(--wm-accent);
	color: #fff;
}

.btn::after,
.wp-block-button__link::after {
	content: "";
	display: inline-block;
	width: 0.65em;
	height: 1em;
	margin-left: 14px;
	background: currentcolor;
	vertical-align: -0.15em;
	mask: var(--wm-chevron) center / contain no-repeat;
}

.entry-content .wp-block-buttons {
	margin-bottom: 20px;
}

/* Karty z ikonami pod banerem */
.wm-cards.wp-block-columns {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-evenly;
	gap: 20px;
	min-height: 440px;
	margin-block: 30px;
	padding: 10px 0;
}

.wm-cards.wp-block-columns > .wp-block-column {
	flex: 0 0 30%;
	padding: 5px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 4px 10px -4px rgb(0 0 0 / 50%);
	text-align: center;
	transition: transform 0.3s;
}

.wm-cards > .wp-block-column:hover {
	transform: scale(1.05);
}

.wm-cards .wp-block-image {
	margin: 0 0 15px;
}

.wm-cards .wp-block-image img {
	width: auto;
	height: 180px;
}

.wm-cards p {
	font-family: var(--wm-display);
	font-weight: 700;
	text-align: center;
}

.wm-cards .wm-card__title {
	margin: 0.83em 0;
	font-size: 40px;
	line-height: normal;
	color: var(--wm-brown);
}

.wm-cards .wm-card__text {
	margin: 0;
	font-size: 25px;
}

/* Sekcje dwukolumnowe: tekst i zdjęcie */
.wm-split.wp-block-columns {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	justify-items: center;
	align-items: start;
	gap: 20px;
	min-height: 440px;
	margin-block: 30px;
	padding: 30px 0;
}

.wm-split.wm-split--center {
	align-items: center;
}

.wm-split > .wp-block-column {
	width: 100%;
	padding: 10px;
}

.wm-split > .wm-split__media {
	padding: 0;
}

.wm-split__media .wp-block-image {
	margin: 0;
}

.wm-split__media img {
	display: block;
	width: 100%;
	height: 414px;
	object-fit: cover;
}

.wm-split--center .wm-split__media img {
	height: auto;
}

/* Sekcja z rozmytym zdjęciem w tle */
.wm-blur {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
}

.wm-blur .wm-blur__bg {
	margin: 0;
}

.wm-blur__bg img {
	display: block;
	width: 100%;
	height: 60vh;
	object-fit: cover;
	filter: brightness(70%) blur(8.1px);
}

.wm-blur__box {
	position: absolute;
	top: 50%;
	right: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 60%;
	margin-inline: auto;
	padding: 40px;
	transform: translateY(-50%);
}

.wm-blur__box h2 {
	font-size: 50px;
	color: #fff;
}

.wm-blur__box p {
	color: #d8d8d8;
}

.wm-blur__box .wp-block-buttons {
	margin-bottom: 0;
}

/* Logotypy serwisów sprzedażowych */
.entry-content .wm-market-title {
	margin-top: 60px;
	font-size: 39px;
	color: var(--wm-brown);
}

.wm-market {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	width: 72%;
	margin-bottom: 20px;
	padding: 10px;
}

.wm-market .wp-block-image {
	margin: 0;
	transition: transform 0.3s;
}

.wm-market .wp-block-image:hover {
	transform: scale(1.1);
}

.wm-market img {
	display: block;
	width: 100%;
	height: 60px;
	object-fit: cover;
	border-radius: 20px;
}

/* Wyśrodkowane tytuły sekcji z ornamentem z gontów */
.entry-content .wm-title-center,
.entry-content .wmr-reviews__title {
	text-align: center;
}

.entry-content .wm-title-center::after,
.entry-content .wmr-reviews__title::after {
	content: "";
	display: block;
	width: 72px;
	height: 22px;
	margin: 14px auto 0;
	background: var(--wm-sand);
	mask: url("../icons/ornament.svg") center / contain no-repeat;
}

/* Ikony SVG: plik ikony jako maska, kolor z motywu */
.wm-icon-shield { --wm-icon: url("../icons/shield.svg"); }
.wm-icon-weather { --wm-icon: url("../icons/weather.svg"); }
.wm-icon-leaf { --wm-icon: url("../icons/leaf.svg"); }
.wm-icon-home { --wm-icon: url("../icons/home.svg"); }
.wm-icon-roof { --wm-icon: url("../icons/roof.svg"); }
.wm-icon-facade { --wm-icon: url("../icons/facade.svg"); }
.wm-icon-gazebo { --wm-icon: url("../icons/gazebo.svg"); }
.wm-icon-length { --wm-icon: url("../icons/length.svg"); }
.wm-icon-width { --wm-icon: url("../icons/width.svg"); }
.wm-icon-thickness { --wm-icon: url("../icons/thickness.svg"); }
.wm-icon-area { --wm-icon: url("../icons/area.svg"); }
.wm-icon-phone { --wm-icon: url("../icons/phone.svg"); }
.wm-icon-mail { --wm-icon: url("../icons/mail.svg"); }
.wm-icon-pin { --wm-icon: url("../icons/pin.svg"); }
.wm-icon-clock { --wm-icon: url("../icons/clock.svg"); }
.wm-icon-chat { --wm-icon: url("../icons/chat.svg"); }
.wm-icon-calendar { --wm-icon: url("../icons/calendar.svg"); }
.wm-icon-document { --wm-icon: url("../icons/document.svg"); }

/* Zalety: cztery kafle z ikoną */
.wm-benefits {
	margin-block: 30px;
	padding: 30px 0;
}

.wm-features.wp-block-columns {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin: 30px 0 0;
}

.wm-features > .wp-block-column {
	padding: 24px 18px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 4px 10px -4px rgb(0 0 0 / 50%);
	text-align: center;
}

.wm-features > .wp-block-column::before {
	content: "";
	display: block;
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	background: var(--wm-brown);
	mask: var(--wm-icon) center / contain no-repeat;
}

.entry-content .wm-features h3 {
	margin-bottom: 10px;
}

.entry-content .wm-features p {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	text-align: center;
}

/* Zastosowania i wymiary: listy z ikonami zamiast punktorów */
.entry-content .wm-uses,
.entry-content .wm-specs {
	display: grid;
	gap: 12px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
	font-size: 17px;
}

.entry-content .wm-uses {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.wm-uses li,
.wm-specs li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 4px 10px -4px rgb(0 0 0 / 35%);
	line-height: 1.35;
}

.wm-uses li::before,
.wm-specs li::before {
	content: "";
	flex: 0 0 34px;
	height: 34px;
	background: var(--wm-brown);
	mask: var(--wm-icon) center / contain no-repeat;
}

/* Kroki montażu z numerami */
.entry-content .wm-steps {
	display: grid;
	gap: 14px;
	width: 100%;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
	counter-reset: wm-step;
	font-size: 18px;
	color: #fff;
}

.wm-steps li {
	display: flex;
	align-items: center;
	gap: 14px;
	line-height: 1.4;
	counter-increment: wm-step;
}

.wm-steps li::before {
	content: counter(wm-step);
	display: grid;
	flex: 0 0 40px;
	place-items: center;
	height: 40px;
	border: 2px solid #fff;
	border-radius: 50%;
	font-family: var(--wm-display);
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
}

/* Formularz kontaktowy */
.wm-form {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px 20px;
	padding: 24px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 4px 10px -4px rgb(0 0 0 / 50%);
	scroll-margin-top: 20px;
}

.entry-content .wm-form p {
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
}

.wm-form__field--wide,
.wm-form__notice {
	grid-column: 1 / -1;
}

.wm-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
}

.wm-form input:not([type="checkbox"]),
.wm-form select,
.wm-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--wm-line);
	border-radius: 10px;
	background: #fff;
	color: #000;
	font: inherit;
}

.wm-form textarea {
	resize: vertical;
}

.wm-form__consent label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400;
}

.wm-form__consent input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
}

.wm-form__hp {
	position: absolute;
	left: -999rem;
}

.wm-form__hint {
	color: #5f6368;
}

.entry-content .wm-form .wm-form__notice {
	padding: 14px 18px;
	border-radius: 10px;
	font-weight: 700;
}

.wm-form__notice--ok {
	background: #e6f4ea;
	color: #1e5c2e;
}

.wm-form__notice--error {
	background: #fde8e6;
	color: #8c1d18;
}

/* Tekst prawny (gwarancja, RODO) na białym tle */
.wm-legal {
	margin-block: 30px;
	padding: 25px 30px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 4px 10px -4px rgb(0 0 0 / 50%);
}

.entry-content .wm-legal ol,
.entry-content .wm-legal ul {
	margin-bottom: 1em;
	font-size: 17px;
}

.wm-legal li {
	margin-bottom: 10px;
}

.wm-legal ul {
	margin-top: 10px;
}

/* Opinie Google (sekcję generuje wtyczka) */
.entry-content > .wmr-reviews {
	margin-block: 30px;
	padding: 30px 0;
}

/* Cennik */
.wm-price {
	margin-block: 30px;
	padding: 30px 0;
}

.entry-content .wm-price .wp-block-table {
	max-width: 640px;
	margin: 0 0 30px;
}

.entry-content .wm-price table {
	width: 100%;
	overflow: hidden;
	border: 0;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 4px 10px -4px rgb(0 0 0 / 50%);
	font-size: 18px;
}

.entry-content .wm-price th,
.entry-content .wm-price td {
	padding: 14px 20px;
	border: 0;
	border-bottom: 1px solid var(--wm-line);
}

.entry-content .wm-price thead {
	border-bottom: 0;
}

.entry-content .wm-price th {
	background: var(--wm-brown);
	color: #fff;
}

.entry-content .wm-price tr:nth-child(even) {
	background: none;
}

.entry-content .wm-price tr:last-child td {
	border-bottom: 0;
}

.entry-content .wm-price td:not(:first-child),
.entry-content .wm-price th:not(:first-child) {
	text-align: center;
}

.entry-content .wm-price td:first-child {
	font-weight: 700;
}

/* FAQ */
.wm-faq {
	margin-top: -20px;
	margin-bottom: 50px;
	padding: 10px 0;
}

.wm-faq details {
	margin: 0 20px 15px;
}

.wm-faq summary {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 30px;
	border: 1px solid var(--wm-line);
	border-radius: 10px;
	background: #fff;
	font-family: var(--wm-display);
	font-size: 35px;
	font-weight: 700;
	color: var(--wm-brown);
	list-style: none;
	cursor: pointer;
	transition: background-color 0.3s;
}

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

.wm-faq summary::before {
	content: "";
	flex: 0 0 20px;
	height: 20px;
	background: currentcolor;
	mask: var(--wm-plus) center / contain no-repeat;
}

.wm-faq details[open] > summary::before {
	mask-image: var(--wm-minus);
}

.wm-faq summary:hover,
.wm-faq details[open] > summary {
	background: #f0e6dc;
}

.wm-faq__body {
	margin-top: -10px;
	padding: 30px 50px 20px;
	border: 1px solid var(--wm-line);
	border-radius: 0 0 10px 10px;
	background: #fff;
}

.wm-faq__body p,
.wm-faq__body li {
	font-family: var(--wm-faq);
	font-size: 18px;
	line-height: 1.8;
}

.wm-faq__body > :last-child {
	margin-bottom: 0;
}

.cta {
	margin-top: 30px;
	text-align: center;
}

.cta__title {
	margin: 0 0 16px;
	font-family: var(--wm-display);
	font-size: 39px;
	font-weight: 700;
	color: var(--wm-brown);
}

.cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
}

/* Karty oferty i wpisów */
.section {
	padding-block: 30px;
}

.section__title {
	margin: 0 0 20px;
	line-height: 1;
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 20px;
}

.card {
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 4px 10px -4px rgb(0 0 0 / 50%);
	transition: transform 0.3s;
}

.card:hover {
	transform: scale(1.05);
}

.card__link {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.card__img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.card__body {
	padding: 5px 15px 15px;
}

.card__title {
	margin: 15px 0 10px;
	line-height: 1;
}

.card__text {
	margin: 0;
}

.nav-links {
	display: flex;
	gap: 10px;
	margin-top: 30px;
}

.page-numbers {
	padding: 10px 16px;
	border-radius: 10px;
	background: #fff;
	color: #000;
	text-decoration: none;
}

.page-numbers.current {
	background: var(--wm-brown);
	color: #fff;
}

/* Stopka */
.back-to-top {
	position: fixed;
	right: 60px;
	bottom: 60px;
	z-index: 4;
	width: 40px;
	height: 40px;
	transition: transform 1s;
}

.back-to-top:hover {
	transform: rotate(180deg);
}

.foot-sharp {
	display: block;
	width: 100%;
	height: auto;
}

.site-footer {
	background: var(--wm-sand);
}

.site-footer__main {
	display: flex;
	padding: 10px;
}

.site-footer__brand {
	display: flex;
	flex: 1 1 54%;
	align-items: center;
	gap: 20px;
	padding: 10px;
}

.site-footer__logo {
	flex: 0 0 auto;
	width: 158px;
	height: 158px;
}

.site-footer__nap {
	padding: 10px 10px 36px;
	font-style: normal;
	line-height: 1.65;
}

.site-footer__nap a {
	color: #0d3b66;
}

.site-footer__nap img {
	width: 21px;
	height: 21px;
	vertical-align: middle;
}

.footer-nav {
	display: flex;
	flex: 1 1 46%;
	align-items: center;
	justify-content: center;
	padding: 10px;
}

.footer-nav .menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.footer-nav a {
	padding: 13px 20px;
	font-size: 32px;
}

.footer-legal .menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 30px;
	padding: 10px;
}

.footer-legal a,
.footer-legal button {
	padding: 0;
	border: 0;
	background: none;
	color: #000;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	transition: color 0.3s;
}

.footer-legal a:hover,
.footer-legal button:hover {
	color: var(--wm-brown);
}

.site-footer__copy {
	margin: 0;
	padding: 10px;
	font-family: var(--wm-display);
	font-size: 18.72px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

/* Zgoda na pliki cookies: okno wyboru i panel ustawień */
.wm-consent {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 50;
	width: min(540px, calc(100% - 40px));
	padding: 22px 24px;
	border: 1px solid var(--wm-line);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 4px 10px -4px rgb(0 0 0 / 50%);
}

.wm-consent[hidden] {
	display: none;
}

.wm-consent__title {
	margin: 0 0 10px;
	font-family: var(--wm-display);
	font-size: 34px;
	font-weight: 700;
	line-height: 1;
	color: var(--wm-brown);
}

.wm-consent__text {
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 1.5;
}

.wm-consent__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.wm-consent__btn {
	padding: 13px 12px;
	border: 2px solid #e7e7e7;
	border-radius: 10px;
	background: var(--wm-brown);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.3s;
}

.wm-consent__btn:hover {
	background: var(--wm-accent);
}

.wm-consent__btn--wide {
	grid-column: 1 / -1;
	border-color: var(--wm-brown);
	background: #fff;
	color: var(--wm-brown);
}

.wm-consent__btn--wide:hover {
	background: var(--wm-sand);
}

.wm-consent-dialog {
	width: min(600px, calc(100% - 40px));
	max-height: calc(100dvh - 40px);
	padding: 24px;
	border: 0;
	border-radius: 10px;
	background: #fff;
	color: #000;
	box-shadow: 0 4px 10px -4px rgb(0 0 0 / 50%);
}

.wm-consent-dialog::backdrop {
	background: rgb(0 0 0 / 55%);
}

.wm-consent-dialog .wm-consent__title {
	padding-right: 40px;
}

.wm-consent-dialog__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wm-brown);
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}

.wm-consent-dialog__close:hover {
	color: var(--wm-accent);
}

.wm-consent-dialog__list {
	margin: 0 0 20px;
	padding: 0;
	border-bottom: 1px solid var(--wm-line);
	list-style: none;
}

.wm-consent-dialog__list li {
	padding: 14px 0;
	border-top: 1px solid var(--wm-line);
}

.wm-consent-dialog__list p {
	margin: 6px 60px 0 0;
	font-size: 15px;
	line-height: 1.5;
}

.wm-switch {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	font-weight: 700;
	cursor: pointer;
}

.wm-switch input {
	position: relative;
	flex: 0 0 auto;
	width: 46px;
	height: 26px;
	margin: 0;
	border-radius: 13px;
	background: #80868b;
	cursor: pointer;
	transition: background-color 0.2s;
	appearance: none;
}

.wm-switch input::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s;
}

.wm-switch input:checked {
	background: var(--wm-brown);
}

.wm-switch input:checked::before {
	transform: translateX(20px);
}

.wm-switch input:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

@media (prefers-reduced-motion: no-preference) {
	.wm-consent {
		animation: wm-consent-in 0.4s ease-out;
	}
}

@keyframes wm-consent-in {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
}

/* Tablet: menu rozwijane, węższe logo */
@media (max-width: 1024px) {
	.site-header__contact {
		display: none;
	}

	.site-header__main {
		width: 80%;
		margin-inline: 0;
	}

	.custom-logo {
		width: 268px;
	}

	.nav-toggle {
		display: block;
		padding: 7.5px;
		border: 0;
		border-radius: 3px;
		background: #fff;
		color: var(--wm-brown);
		line-height: 0;
		cursor: pointer;
	}

	.nav-toggle svg {
		width: 22px;
		height: 22px;
		fill: currentcolor;
	}

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

	.primary-nav {
		position: absolute;
		top: 100%;
		left: 0;
		display: none;
		width: 100%;
		background: #fff;
	}

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

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

	.primary-nav a {
		padding: 10px 20px;
		color: #33373d;
		text-align: center;
	}

	.primary-nav a::after {
		display: none;
	}

	.primary-nav a:hover {
		background: #f6e8df;
		color: var(--wm-brown);
	}

	/* W menu rozwijanym podstrony oferty są zawsze widoczne pod pozycją nadrzędną. */
	.primary-nav .sub-menu {
		position: static;
		padding: 0;
		border-radius: 0;
		background: #faf5ee;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.primary-nav .sub-menu a {
		padding: 12px 20px;
		font-size: 25px;
	}

	.primary-nav .menu-item-has-children > a {
		padding-right: 20px;
	}

	.primary-nav .menu-item-has-children > a::before {
		display: none;
	}

	.hero__box {
		left: 5%;
		width: 90%;
		padding: 40px 0;
	}

	.hero__shield {
		width: 160px;
		margin-top: -100px;
	}

	.hero__title {
		font-size: 50px;
	}

	.hero__lead {
		padding: 0;
	}

	.content,
	.entry-content > * {
		max-width: 90%;
	}

	.wm-features.wp-block-columns {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-nav .menu {
		display: block;
		text-align: center;
	}

	.footer-nav a::after {
		display: none;
	}
}

/* Telefon */
@media (max-width: 767px) {
	.site-header__main {
		width: 100%;
		padding: 20px 10px;
	}

	.custom-logo {
		width: 175px;
	}

	.nav-toggle svg {
		width: 30px;
		height: 30px;
	}

	.primary-nav a {
		padding: 23px 20px;
		font-size: 29px;
	}

	.hero__img {
		height: 500px;
		object-fit: cover;
	}

	.hero__shield {
		width: 146px;
		margin-top: -98px;
	}

	.hero__title {
		font-size: 41px;
	}

	.hero__lead {
		font-size: 23px;
	}

	.breadcrumbs {
		padding: 14px 20px;
	}

	.content,
	.entry-content > * {
		max-width: none;
		padding-inline: 10px;
	}

	.entry-content > .alignfull {
		padding-inline: 0;
	}

	.entry-content > .wmg-gallery {
		padding-inline: 20px;
	}

	.entry-content h2 {
		font-size: 49px;
	}

	.entry-content h3 {
		font-size: 30px;
	}

	.entry-content p {
		font-size: 16px;
		line-height: 1.5;
	}

	.wm-cards.wp-block-columns {
		flex-direction: column;
		gap: 20px;
		padding: 10px;
	}

	.wm-cards.wp-block-columns > .wp-block-column {
		flex: 0 0 auto;
		width: 90%;
		margin-inline: auto;
		padding: 30px 10px;
	}

	.wm-cards .wp-block-image img {
		height: 17vh;
		object-fit: scale-down;
	}

	.wm-cards .wm-card__title {
		margin-bottom: 11px;
	}

	.wm-split.wp-block-columns {
		grid-template-columns: 1fr;
		margin-block: 0;
		padding: 0 10px;
	}

	.wm-faq {
		padding-inline: 10px;
	}

	.wm-features.wp-block-columns {
		grid-template-columns: 1fr;
	}

	.wm-form {
		grid-template-columns: 1fr;
		padding: 18px;
	}

	.wm-legal {
		padding: 18px 16px;
	}

	.wm-steps li {
		font-size: 16px;
	}

	.entry-content .wm-price table {
		font-size: 15px;
	}

	.entry-content .wm-price th,
	.entry-content .wm-price td {
		padding: 12px 8px;
	}

	.wm-market .wp-block-image {
		width: 135px;
	}

	.wm-split > .wm-split__media {
		order: -1;
	}

	.wm-blur__bg img {
		height: 80vh;
	}

	.wm-blur__box {
		width: 90%;
		padding: 0;
	}

	.wm-blur__box h2 {
		font-size: 37px;
	}

	.entry-content .wm-market-title {
		margin-top: 20px;
		font-size: 32px;
	}

	.wm-market {
		grid-template-columns: 1fr;
		justify-items: center;
		width: 100%;
	}

	.wm-market img {
		max-width: 135px;
	}

	.wm-faq h2 {
		font-size: 42px;
		text-align: center;
	}

	.wm-faq details {
		margin-inline: 0;
	}

	.wm-faq summary {
		font-size: 28px;
	}

	.wm-faq__body {
		padding: 20px 20px 10px;
	}

	.foot-sharp {
		height: 21px;
		object-fit: cover;
	}

	.site-footer__main,
	.site-footer__brand {
		flex-direction: column;
		align-items: center;
	}

	.site-footer__logo {
		width: 209px;
		height: 209px;
	}

	.site-footer__nap {
		text-align: center;
	}

	.footer-nav a {
		font-size: 28px;
	}

	.site-footer__copy {
		padding: 30px 0;
	}

	.wm-consent {
		bottom: 10px;
		left: 10px;
		width: calc(100% - 20px);
		max-height: calc(100dvh - 20px);
		padding: 18px;
		overflow-y: auto;
	}

	.wm-consent__title {
		font-size: 30px;
	}

	.wm-consent__text {
		margin-bottom: 14px;
		font-size: 15px;
	}

	/* Dwa równe przyciski muszą zmieścić etykiety w jednym wierszu także na wąskim ekranie. */
	.wm-consent__btn {
		padding-inline: 6px;
		font-size: 14px;
	}

	.wm-consent-dialog {
		padding: 20px 18px;
	}

	.wm-consent-dialog__list p {
		margin-right: 0;
	}
}
