/*
 * Anzorge v1: global layer.
 *
 * DIRECTION CONTRACT (user brief, 2026-11-15: inspired by klinikatajdus.pl,
 * the user's own work, except the hero, which is invented here).
 *
 * THESIS: a beauty studio shown like a monochrome fashion title. One device
 * carries every heading: the first word in large serif capitals, the rest
 * smaller, in italics. Refused: the soft beige wellness page and rounded
 * cards.
 * OWN-WORLD: white and true black only, in full-bleed bands; photographs with
 * sharp corners; Cormorant Garamond for titles, Montserrat for everything
 * else; hairline pill buttons; underline fields.
 * STORY: the visitor sees the work, reads who stands behind it, picks a
 * treatment, books.
 * FIRST VIEWPORT: one large photograph across the whole screen; the header
 * floats over it in white and turns into the white bar after the hero. Bottom left, over a soft shade: the studio name (capitals, then
 * italics), one line about the studio and the filled booking action.
 * FORM: own list, structure 7 of 7 ("title interrupted by the plate"),
 * seed 2dcad621.
 * FINISH: unreviewed and undocumented is unfinished; this build ends with the
 * finish review, the verdict, DESIGN.md, and every shipping raster carrying
 * its provenance.
 *
 * Motion (Emil Kowalski): transform, opacity, clip-path, filter and colour
 * only; ease-out entrances; hover gated to real pointers; press 0.97;
 * everything collapses under prefers-reduced-motion and the panel setting.
 */

@property --mdl-hd-fg {
	syntax: "<color>";
	inherits: true;
	initial-value: #0b0b0b;
}

/* 0 = header floating over the black hero, 1 = white bar. */
@property --mdl-hd-t {
	syntax: "<number>";
	inherits: true;
	initial-value: 1;
}

:root {
	--mdl-ink: var(--wp--preset--color--contrast);
	--mdl-base: var(--wp--preset--color--base);
	--mdl-surface: var(--wp--preset--color--surface);
	--mdl-muted: var(--wp--preset--color--muted);
	--mdl-line: var(--wp--preset--color--line);
	--mdl-mocha: var(--wp--preset--color--shade);
	--mdl-deep: var(--wp--preset--color--shade-deep);
	--mdl-on: var(--wp--preset--color--on-shade);
	--mdl-on-muted: color-mix(in oklab, var(--mdl-on) 68%, var(--mdl-mocha));
	--mdl-on-line: color-mix(in oklab, var(--mdl-on) 22%, var(--mdl-mocha));
	--mdl-ease: cubic-bezier(0.23, 1, 0.32, 1);
	--mdl-header-h: 4.5rem;
	--mdl-head-case: uppercase;
	--mdl-head-track: 0.02em;
	--mdl-tone-filter: none;
	--mdl-arrow: url("../icons/arrow-right.svg");
	interpolate-size: allow-keywords;
}

/* ---------- Browser surfaces ---------- */

html {
	scroll-padding-top: calc(var(--mdl-header-h) + 1.5rem);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scrollbar-color: var(--mdl-ink) var(--mdl-base);
	scrollbar-width: thin;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	caret-color: var(--mdl-ink);
	accent-color: var(--mdl-ink);
	overflow-x: clip;
}

::selection {
	background: var(--mdl-ink);
	color: var(--mdl-base);
}

/* The heading device: first word in capitals, the rest (em) smaller, in italics. */
:where(h1, h2, h3) {
	text-wrap: balance;
	letter-spacing: var(--mdl-head-track);
	text-transform: var(--mdl-head-case);
	font-variant-numeric: lining-nums;
}

:where(h1, h2, h3) em {
	font-style: italic;
	font-weight: 400;
	font-size: 0.62em;
	letter-spacing: 0;
	text-transform: none;
}

:where(h4) {
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

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

:where(a) {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
	transition: color 200ms ease, opacity 200ms ease;
}

:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 4px;
}

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

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

.mdl-icon {
	width: 1.1em;
	height: 1.1em;
	flex: none;
	vertical-align: -0.2em;
}

/* ---------- Type helpers ---------- */

.mdl-center {
	text-align: center;
	margin-inline: auto;
}

/* Small tracked capitals. */
.mdl-label {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
	color: inherit;
}

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

.mdl-label a:hover {
	text-decoration: underline;
}

/* A heading speaks for itself: the small label that used to sit above it is dropped. */
.mdl-label:has(+ :is(h1, h2)),
.mdl-why__head .mdl-label,
.mdl-vlabel,
.mdl-num {
	display: none;
}

.mdl-work__head .mdl-label {
	display: block;
}

.mdl-caps {
	font-size: 1rem;
	line-height: 1.7;
}

.mdl-monogram {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 4.25rem;
	margin: 0 auto !important;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.312rem;
	line-height: 1;
}

.mdl-tag {
	display: inline-block;
	vertical-align: middle;
	margin: -0.3em 0.5em 0;
	padding: 0.6em 1.2em;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	line-height: 1;
	text-transform: uppercase;
}

.mdl-section,
.mdl-kw-band,
.mdl-offer-block {
	position: relative;
}

/* Short lists: plain lines divided by hairlines. */
.mdl-slash-list {
	list-style: none;
	padding: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.mdl-slash-list li {
	margin: 0;
	padding-block: 0.7rem;
	border-top: 1px solid var(--mdl-line);
}

.mdl-slash-list li:last-child {
	border-bottom: 1px solid var(--mdl-line);
}

/* ---------- Buttons: hairline pills that fill on hover ---------- */

.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-width: min(100%, 15rem);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 280ms var(--mdl-ease), color 280ms var(--mdl-ease), border-color 280ms var(--mdl-ease), transform 160ms var(--mdl-ease);
}

.wp-element-button:active,
.wp-block-button__link:active {
	transform: scale(0.97);
}

.wp-block-buttons {
	gap: 0.75rem;
}

/* The one main action ("Umów wizytę", form submit) is filled. */
.mdl-cta-btn .wp-block-button__link,
.mdl-cf__submit .wp-block-button__link {
	background: var(--mdl-ink);
	border-color: var(--mdl-ink);
	color: var(--mdl-base);
}

.mdl-cta-btn .wp-block-button__link:hover,
.mdl-cf__submit .wp-block-button__link:hover {
	background: transparent;
	color: var(--mdl-ink);
}

/* On black bands everything inverts. */
:is(.is-style-section-dark, .mdl-offer-block, .mdl-reviews, .mdl-foot, .mdl-me) .wp-block-button__link {
	border-color: var(--mdl-on);
	background: transparent;
	color: var(--mdl-on);
}

:is(.is-style-section-dark, .mdl-offer-block, .mdl-reviews, .mdl-foot, .mdl-me) .wp-block-button__link:hover {
	background: var(--mdl-on);
	color: var(--mdl-mocha);
}

:is(.is-style-section-dark, .mdl-offer-block, .mdl-reviews, .mdl-foot, .mdl-me) .mdl-cta-btn .wp-block-button__link {
	background: var(--mdl-on);
	color: var(--mdl-mocha);
}

:is(.is-style-section-dark, .mdl-offer-block, .mdl-reviews, .mdl-foot, .mdl-me) .mdl-cta-btn .wp-block-button__link:hover {
	background: transparent;
	color: var(--mdl-on);
}

/* ---------- Layout rhythm ---------- */

.mdl-main,
.mdl-site-footer {
	margin-block: 0;
}

.mdl-section {
	padding-block: var(--wp--preset--spacing--70);
}

.mdl-section--tight-top {
	padding-top: 0;
}

.mdl-section > * + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

.mdl-section > .wp-block-query,
.mdl-section > .wp-block-buttons {
	margin-block-start: var(--wp--preset--spacing--50);
}

.wp-block-post-content > .alignfull + .alignfull,
.wp-block-post-content > .alignfull:first-child {
	margin-block-start: 0;
}

.mdl-note,
.mdl-intro__lead {
	color: var(--mdl-muted);
	max-width: 56ch;
}

.mdl-meta {
	color: var(--mdl-muted);
	font-size: var(--wp--preset--font-size--small);
	margin: 0;
}

.mdl-empty {
	border: 1px solid var(--mdl-line);
	padding: 1.25rem 1.5rem;
	color: var(--mdl-muted);
	max-width: 46ch;
	margin-inline: auto;
	text-align: center;
}

/* Light "surface" sections stay white; only the dark style paints a band. */
.mdl-section.is-style-section-surface,
.mdl-section.is-style-section-taupe {
	background: transparent !important;
}

/* Content rises as it enters (scroll-linked, CSS only). */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.mdl-section > *,
		.mdl-offer-block > .wp-block-cover .wp-block-cover__inner-container > * {
			animation: mdl-fade-up linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 35%;
		}
	}
}

@keyframes mdl-fade-up {
	from {
		opacity: 0;
		transform: translateY(1.5rem);
	}
}

/* ---------- Photo tone ---------- */

.mdl-tone img,
.mdl-tone .wp-block-cover__image-background {
	filter: var(--mdl-tone-filter);
}

/* ---------- Header: white bar, name left, menu right ---------- */

.mdl-site-header {
	--mdl-hd-fg: var(--mdl-ink);
	position: sticky;
	top: 0;
	z-index: 30;
	color: var(--mdl-hd-fg);
}

/* The bar itself is a layer, so it can fade in under the content. */
.mdl-site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--mdl-base);
	box-shadow: 0 10px 30px -24px rgb(0 0 0 / 0.5);
	opacity: var(--mdl-hd-t);
	pointer-events: none;
}

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

.mdl-header {
	display: flex !important;
	align-items: center;
	gap: clamp(1.25rem, 3vw, 3rem);
	min-height: var(--mdl-header-h);
	padding-inline: var(--wp--custom--rail);
}

.mdl-header > * {
	margin: 0 !important;
	max-width: none !important;
}

.mdl-header__brand {
	order: -1;
	margin-right: auto !important;
	gap: 0.75rem;
	min-width: 0;
}

.mdl-header .wp-block-site-title {
	margin: 0;
	white-space: nowrap;
}

.mdl-header .wp-block-site-title a {
	text-decoration: none;
	color: inherit;
}

/* The studio name set in type: font, case and spacing come from the panel. */
.mdl-header .wp-block-site-title,
.mdl-foot .wp-block-site-title {
	font-family: var(--mdl-brand-font, var(--wp--preset--font-family--display));
	font-weight: var(--mdl-brand-weight, 600);
	letter-spacing: var(--mdl-brand-track, 0.04em);
	text-transform: var(--mdl-brand-case, uppercase);
}

.mdl-header__nav .wp-block-navigation__container {
	flex-wrap: nowrap;
	gap: clamp(1.25rem, 2.6vw, 3rem);
}

/* The header action is an outline that fills black on hover, like every other button. */
.mdl-header__cta .wp-block-button__link,
.mdl-header__cta .wp-block-button__link:visited {
	min-width: 0;
	padding: 0.7rem 1.5rem;
	border-color: currentColor;
	background: transparent;
	color: inherit;
	font-size: 0.875rem;
	letter-spacing: 0.06em;
}

.mdl-header__cta .wp-block-button__link:hover {
	border-color: var(--mdl-ink);
	background: var(--mdl-ink);
	color: var(--mdl-base);
}

/* Logo from the panel: sized by the panel, replaces the text name. */
.mdl-header .wp-block-site-logo {
	line-height: 0;
}

.mdl-header .wp-block-site-logo img {
	width: var(--mdl-logo-w, 120px) !important;
	max-height: 3rem;
	height: auto;
	object-fit: contain;
	/* A one-colour logo turns white while the header floats over the black hero. */
	filter: brightness(var(--mdl-hd-t)) invert(calc(1 - var(--mdl-hd-t)));
}

.mdl-has-logo .mdl-header .wp-block-site-title {
	display: none;
}

/* Front page: the header floats over the hero photograph in white, then becomes the white bar.
   header.js sets .mdl-hd-float (page starts with the hero) and .mdl-hd-solid (hero scrolled past). */
.mdl-hd-float .home .mdl-site-header {
	--mdl-hd-fg: var(--mdl-on);
	--mdl-hd-t: 0;
	position: fixed;
	inset-inline: 0;
	transition: --mdl-hd-fg 320ms ease, --mdl-hd-t 320ms ease;
}

.mdl-hd-float.mdl-hd-solid .home .mdl-site-header {
	--mdl-hd-fg: var(--mdl-ink);
	--mdl-hd-t: 1;
}

/* Over the photograph the header action fills white. */
.mdl-hd-float:not(.mdl-hd-solid) .home .mdl-header__cta .wp-block-button__link:hover {
	border-color: #fff;
	background: #fff;
	color: #000;
}

/* The hero reaches up under the floating header. */
.mdl-hd-float .home .wp-block-cover.mdl-mag {
	min-height: 100svh !important;
}

.mdl-hd-float .home .wp-block-cover.mdl-mag .wp-block-cover__inner-container {
	padding-top: calc(var(--mdl-header-h) + var(--wp--preset--spacing--50));
}

/* A soft shade under the floating header keeps the menu readable on bright photographs. */
.mdl-hd-float .home .wp-block-cover.mdl-mag::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	z-index: 1;
	height: calc(var(--mdl-header-h) * 2.5);
	background: linear-gradient(rgb(0 0 0 / 0.5), rgb(0 0 0 / 0));
	pointer-events: none;
}

/* "Header does not follow the page" from the panel: it stays on the photograph and scrolls away. */
.mdl-hd-float .mdl-header-static.home .mdl-site-header {
	position: absolute;
	--mdl-hd-fg: var(--mdl-on);
	--mdl-hd-t: 0;
}

.mdl-motion-off .mdl-site-header {
	transition: none !important;
}

@media (max-width: 781px) {
	:root {
		--mdl-header-h: 4rem;
	}

	.mdl-header .wp-block-site-title {
		font-size: 1.127rem;
	}

	.wp-block-buttons.mdl-header__cta {
		display: none;
	}
}

/* ---------- Hero: one large photograph, the name, a line about the studio, the booking action ---------- */

.wp-block-cover.mdl-mag {
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	min-height: calc(100svh - var(--mdl-header-h)) !important;
	margin-block: 0 !important;
	padding: 0;
	background: var(--mdl-deep);
	overflow: clip;
}

/* The photograph fills the whole band. */
.wp-block-cover.mdl-mag .wp-block-cover__image-background {
	object-position: 70% 30%;
}

/* A shade from the text side keeps the words readable on any photograph. */
.wp-block-cover.mdl-mag .wp-block-cover__background {
	display: block;
	opacity: 1 !important;
	background:
		linear-gradient(90deg, rgb(0 0 0 / 0.7), rgb(0 0 0 / 0.38) 38%, rgb(0 0 0 / 0) 70%),
		linear-gradient(0deg, rgb(0 0 0 / 0.5), rgb(0 0 0 / 0) 45%) !important;
}

.wp-block-cover.mdl-mag .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
	width: 100% !important;
	max-width: none;
	padding: var(--wp--preset--spacing--60) var(--wp--custom--rail);
	color: #fff;
	text-align: left;
}

.wp-block-cover.mdl-mag .wp-block-cover__inner-container > * {
	margin: 0 !important;
}

.mdl-mag__masthead {
	max-width: 14ch !important;
	font-size: clamp(2.75rem, 6.2vw, 6rem);
	font-weight: 400;
	line-height: 0.95;
	letter-spacing: 0.02em;
	overflow-wrap: anywhere;
}

.mdl-mag__masthead em {
	display: block;
	margin-top: 0.12em;
	font-size: 0.6em;
	letter-spacing: 0;
}

.mdl-mag__lead {
	order: 2;
	max-width: 38ch !important;
	font-size: 1rem;
	line-height: 1.7;
	color: rgb(255 255 255 / 0.86);
}

.mdl-mag__cta {
	order: 3;
	margin-top: 0.5rem !important;
}

.mdl-mag__cta .wp-block-button__link {
	border-color: #fff;
	background: #fff;
	color: #000;
}

.mdl-mag__cta .wp-block-button__link:hover {
	background: transparent;
	color: #fff;
}

/* The one authored moment: the photograph settles, the words rise one after another. */
@media (prefers-reduced-motion: no-preference) {
	.wp-block-cover.mdl-mag .wp-block-cover__image-background {
		animation: mdl-settle 1800ms var(--mdl-ease) both;
	}

	.wp-block-cover.mdl-mag .wp-block-cover__inner-container > * {
		animation: mdl-rise 900ms var(--mdl-ease) 250ms both;
	}

	.mdl-mag__lead { animation-delay: 400ms !important; }
	.mdl-mag__cta { animation-delay: 550ms !important; }
}

@keyframes mdl-settle {
	from { transform: scale(1.06); }
}

@keyframes mdl-rise {
	from {
		opacity: 0;
		transform: translateY(1rem);
	}
}

@keyframes mdl-plate-open {
	from { clip-path: inset(0 50% 0 50%); }
	to { clip-path: inset(0 0 0 0); }
}

@media (max-width: 781px) {
	.wp-block-cover.mdl-mag .wp-block-cover__image-background {
		object-position: 50% 30%;
	}

	.wp-block-cover.mdl-mag .wp-block-cover__background {
		background: linear-gradient(0deg, rgb(0 0 0 / 0.82), rgb(0 0 0 / 0.3) 55%, rgb(0 0 0 / 0.05)) !important;
	}

	.wp-block-cover.mdl-mag .wp-block-cover__inner-container {
		padding-block: var(--wp--preset--spacing--50);
	}
}

/* ---------- Photo bands ---------- */

/* Inside the black offer band the cover is only a title block. */
.mdl-offer-block > .wp-block-cover.mdl-kw-band {
	min-height: 0 !important;
	padding: 0 var(--wp--custom--rail);
	background: none;
	text-align: center;
}

.mdl-offer-block > .wp-block-cover.mdl-kw-band :is(.wp-block-cover__background, .wp-block-cover__image-background) {
	display: none;
}

.mdl-offer-block > .wp-block-cover .wp-block-cover__inner-container {
	width: 100%;
	color: var(--mdl-on);
}

.mdl-offer-block > .wp-block-cover .wp-block-cover__inner-container > * {
	margin-inline: auto !important;
}

.mdl-offer-block > .wp-block-cover .wp-block-cover__inner-container > * + * {
	margin-top: 1.5rem;
}

.mdl-split-title,
.mdl-kw-story__title {
	font-size: clamp(2.05rem, 3.772vw, 3.28rem);
	line-height: 1;
}

.mdl-kw-band__lead {
	max-width: 52ch;
	color: var(--mdl-on-muted);
}

/* "About": the photograph stands on the left as a portrait, the text beside it. */
.wp-block-cover.mdl-kw-story {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(2rem, 8vw, 9rem);
	align-items: center;
	min-height: 0 !important;
	padding: var(--wp--preset--spacing--70) max(var(--wp--custom--rail), 9vw);
	background: var(--mdl-base);
	color: var(--mdl-ink);
	text-align: left;
}

.wp-block-cover.mdl-kw-story .wp-block-cover__background {
	display: none;
}

.wp-block-cover.mdl-kw-story .wp-block-cover__image-background {
	position: relative;
	inset: auto;
	grid-column: 1;
	justify-self: end;
	width: min(100%, 26rem);
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
}

.wp-block-cover.mdl-kw-story .wp-block-cover__inner-container {
	grid-column: 2;
	width: 100%;
	max-width: 38rem;
	margin: 0;
	color: var(--mdl-ink);
}

.mdl-kw-story .wp-block-cover__inner-container > * {
	margin-inline: 0 !important;
}

.mdl-kw-story .wp-block-cover__inner-container > * + * {
	margin-top: 1.25rem;
}

.mdl-kw-story :is(h2, h3) {
	color: var(--mdl-ink);
}

.mdl-kw-story .mdl-label--strong {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.127rem;
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.mdl-kw-story .wp-block-buttons {
	justify-content: flex-start;
	margin-top: 2rem !important;
}

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.wp-block-cover.mdl-kw-story .wp-block-cover__image-background {
			animation: mdl-curtain linear both;
			animation-timeline: view();
			animation-range: entry 5% entry 70%;
		}
	}
}

@keyframes mdl-curtain {
	from { clip-path: inset(100% 0 0 0); }
	to { clip-path: inset(0 0 0 0); }
}

@media (max-width: 781px) {
	.wp-block-cover.mdl-kw-story {
		grid-template-columns: minmax(0, 1fr);
		padding-inline: var(--wp--custom--rail);
	}

	.wp-block-cover.mdl-kw-story .wp-block-cover__image-background,
	.wp-block-cover.mdl-kw-story .wp-block-cover__inner-container {
		grid-column: 1;
		justify-self: start;
	}
}

/* ---------- Welcome: a statement in italics, then the two areas ---------- */

.mdl-section.mdl-pillars {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.mdl-pillars > * {
	max-width: none !important;
	margin-inline: 0 !important;
}

.mdl-pillars__note {
	order: -1;
	margin: 0 !important;
	max-width: 26ch !important;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.537rem, 2.952vw, 2.665rem);
	font-style: italic;
	line-height: 1.2;
}

.mdl-pillars__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	width: min(100%, 68rem);
	margin-top: var(--wp--preset--spacing--60) !important;
	border-top: 1px solid var(--mdl-line);
}

.mdl-pillar {
	padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 4rem);
}

.mdl-pillar + .mdl-pillar {
	border-left: 1px solid var(--mdl-line);
}

.mdl-pillar > * {
	margin: 0;
}

.mdl-pillar > * + * {
	margin-top: 1rem;
}

.mdl-pillar h3 {
	font-size: clamp(1.435rem, 2.132vw, 1.947rem);
	line-height: 1.05;
}

.mdl-pillar p {
	max-width: 42ch;
	margin-inline: auto;
	color: var(--mdl-muted);
}

@media (max-width: 781px) {
	.mdl-pillars__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.mdl-pillar + .mdl-pillar {
		border-left: 0;
		border-top: 1px solid var(--mdl-line);
	}
}

/* ---------- Offer: one black band holds the title and the photo tiles ---------- */

.mdl-offer-block {
	padding-block: var(--wp--preset--spacing--70);
	background: var(--mdl-mocha);
	color: var(--mdl-on);
}

.mdl-offer-block > * {
	margin-block: 0 !important;
}

.mdl-offer-block__list {
	padding-block: var(--wp--preset--spacing--60) 0;
}

.mdl-offer-block__list > .wp-block-query {
	margin-top: 0 !important;
}

.mdl-offer-block__list > .wp-block-buttons {
	justify-content: center;
	margin-top: var(--wp--preset--spacing--60) !important;
}

/* ---------- Dla kogo: the title on the left, plain statements on the right ---------- */

.mdl-why__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	column-gap: clamp(2rem, 7vw, 7rem);
	align-items: start;
}

.mdl-why__head {
	grid-column: 1;
	grid-row: 1 / span 12;
	position: sticky;
	top: calc(var(--mdl-header-h) + 2.5rem);
}

.mdl-why__head > * {
	margin: 0;
}

.mdl-why__title {
	font-size: clamp(2.255rem, 4.1vw, 3.69rem);
	line-height: 1;
}

.mdl-why__title em {
	display: block;
	margin-top: 0.15em;
}

.mdl-why__item {
	grid-column: 2;
	padding-block: clamp(1.25rem, 2.4vw, 2rem);
	border-top: 1px solid var(--mdl-line);
}

.mdl-why__item:last-child {
	border-bottom: 1px solid var(--mdl-line);
}

.mdl-why__item > * {
	margin: 0;
}

.mdl-why__item p {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.23rem, 1.886vw, 1.742rem);
	line-height: 1.25;
	color: var(--mdl-ink);
}

@media (max-width: 899px) {
	.mdl-why__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.mdl-why__head {
		position: static;
		grid-row: auto;
		margin-bottom: var(--wp--preset--spacing--40) !important;
	}

	.mdl-why__item {
		grid-column: 1;
	}
}

/* ---------- Works: the title and the action on the left, three frames on the right ---------- */

.mdl-section.mdl-works-kw {
	display: grid;
	grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr);
	grid-template-rows: auto 1fr;
	column-gap: clamp(2rem, 6vw, 6rem);
	align-items: start;
}

.mdl-works-kw > * {
	grid-column: 1;
	max-width: none !important;
	margin-inline: 0 !important;
	text-align: left;
}

.mdl-works-kw > h2 {
	margin-block: 0;
	font-size: clamp(2.05rem, 3.772vw, 3.28rem);
	line-height: 1;
}

.mdl-works-kw > h2 em {
	display: block;
	margin-top: 0.15em;
}

.mdl-works-kw > .wp-block-buttons {
	justify-content: flex-start;
	margin-block-start: 2rem;
}

.mdl-works-kw > .wp-block-query {
	grid-column: 2;
	grid-row: 1 / span 3;
	margin-block-start: 0;
}

@media (max-width: 899px) {
	.mdl-section.mdl-works-kw {
		grid-template-columns: minmax(0, 1fr);
	}

	.mdl-works-kw > .wp-block-query {
		grid-column: 1;
		grid-row: auto;
		margin-block-start: var(--wp--preset--spacing--40);
	}

	.mdl-works-kw > .wp-block-buttons {
		grid-row: 4;
	}
}

/* ---------- Price and closing bands: black, centred ---------- */

.mdl-section.mdl-price {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.mdl-price > * {
	max-width: none !important;
	margin-inline: auto !important;
	text-align: center;
}

.mdl-price > h2 {
	max-width: 16ch !important;
	font-size: clamp(2.255rem, 4.428vw, 3.895rem);
	line-height: 1;
}

.mdl-price__value {
	margin-block: 0.5rem 0 !important;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(4.1rem, 10.66vw, 9.84rem);
	font-weight: 400;
	font-variant-numeric: lining-nums;
	line-height: 0.9;
}

.mdl-price__value small {
	display: block;
	margin-top: 0.75rem;
	font-size: 1.23rem;
	font-style: italic;
	line-height: 1.2;
}

.mdl-price .mdl-caps {
	max-width: 46ch !important;
	color: var(--mdl-on-muted);
}

.mdl-price .mdl-label:not(:first-child) {
	margin-top: var(--wp--preset--spacing--40);
}

.mdl-price .wp-block-buttons {
	justify-content: center;
	margin-top: var(--wp--preset--spacing--50);
}

/* ---------- Reviews: a black box set into the white page ---------- */

.mdl-section.mdl-reviews {
	width: auto;
	max-width: none;
	margin: var(--wp--preset--spacing--60) clamp(0rem, 5.5vw, 5rem) !important;
	padding: var(--wp--preset--spacing--60) clamp(1.25rem, 6vw, 6rem);
	background: var(--mdl-mocha);
	color: var(--mdl-on);
	text-align: center;
}

.mdl-reviews > * {
	max-width: none !important;
	margin-inline: auto !important;
}

.mdl-reviews > h2 {
	margin-block: 0;
	font-size: clamp(2.05rem, 3.772vw, 3.28rem);
	line-height: 1;
	color: var(--mdl-on);
}

/* ---------- Contact: the title, the details in one line, the form ---------- */

.mdl-contact-kw__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--50);
	max-width: 66rem;
	margin-inline: auto;
}

.mdl-contact-kw__info {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.75rem clamp(1.5rem, 4vw, 3.5rem);
	text-align: center;
}

.mdl-contact-kw__info > * {
	margin: 0;
}

.mdl-contact-kw__title {
	flex: 0 0 100%;
	font-size: clamp(2.05rem, 3.772vw, 3.28rem);
	line-height: 1;
}

.mdl-contact-kw__info > p:not(.mdl-line) {
	flex: 0 0 100%;
	box-sizing: border-box;
	margin: 0.5rem 0 1rem;
	padding-inline: max(0px, (100% - 34rem) / 2);
	color: var(--mdl-muted);
}

.mdl-line {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	font-size: 0.9375rem;
	overflow-wrap: anywhere;
}

.mdl-line::before {
	content: "";
	flex: none;
	width: 1rem;
	height: 1rem;
	background: currentColor;
	-webkit-mask: var(--mdl-line-icon) center / contain no-repeat;
	mask: var(--mdl-line-icon) center / contain no-repeat;
}

.mdl-line--phone { --mdl-line-icon: url("../icons/phone.svg"); }
.mdl-line--mail { --mdl-line-icon: url("../icons/envelope-simple.svg"); }
.mdl-line--pin { --mdl-line-icon: url("../icons/map-pin.svg"); }
.mdl-line--clock { --mdl-line-icon: url("../icons/clock.svg"); }

.mdl-line__link {
	color: inherit;
	text-decoration: none;
}

.mdl-line__link:hover {
	text-decoration: underline;
}

/* ---------- Socials ---------- */

.mdl-socials {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mdl-socials a {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid currentColor;
	border-radius: 50%;
	color: inherit;
	transition: background-color 240ms var(--mdl-ease), color 240ms var(--mdl-ease), transform 160ms var(--mdl-ease);
}

.mdl-socials a:hover {
	background: var(--mdl-ink);
	border-color: var(--mdl-ink);
	color: var(--mdl-base);
}

.mdl-foot .mdl-socials a:hover {
	background: var(--mdl-on);
	border-color: var(--mdl-on);
	color: var(--mdl-mocha);
}

.mdl-socials a:active {
	transform: scale(0.95);
}

.mdl-socials .mdl-icon {
	width: 1.125rem;
	height: 1.125rem;
}

/* ---------- FAQ ---------- */

.mdl-faq__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 7vw, 7rem);
	align-items: start;
}

.mdl-faq__intro > * {
	margin: 0;
}

.mdl-faq__intro > * + * {
	margin-top: 1.25rem;
}

.mdl-faq__intro p {
	color: var(--mdl-muted);
	max-width: 32ch;
}

@media (max-width: 899px) {
	.mdl-faq__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Story (about page) ---------- */

.mdl-story__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(2rem, 7vw, 7rem);
	align-items: start;
}

.mdl-story__statement {
	margin: 0;
	max-width: 16ch;
}

.mdl-story__text > * + * {
	margin-top: 1.2em;
}

.mdl-story .wp-block-image img {
	filter: var(--mdl-tone-filter);
}

@media (max-width: 899px) {
	.mdl-story__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Newsletter and search fields ---------- */

.mdl-newsletter {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 5vw, 5rem);
	align-items: end;
}

.mdl-newsletter > * {
	margin: 0 !important;
	max-width: none !important;
}

.mdl-newsletter__form label {
	display: block;
	font-size: 0.9375rem;
	margin-bottom: 0.25rem;
}

.mdl-newsletter__row {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	align-items: end;
}

.mdl-newsletter__row input {
	flex: 1 1 14rem;
}

.mdl-newsletter__note {
	font-size: 0.8125rem;
	color: var(--mdl-muted);
	margin: 0.75rem 0 0;
}

@media (max-width: 781px) {
	.mdl-newsletter {
		grid-template-columns: minmax(0, 1fr);
	}
}

.mdl-newsletter__form input,
.mdl-search .wp-block-search__input {
	font: inherit;
	color: var(--mdl-ink);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--mdl-ink);
	border-radius: 0;
	padding: 0.75rem 0;
	min-height: 3rem;
}

.mdl-newsletter__form input:focus-visible,
.mdl-search .wp-block-search__input:focus-visible {
	outline: none;
	box-shadow: 0 1px 0 0 var(--mdl-ink);
}

:where(input, textarea)::placeholder {
	color: color-mix(in oklab, var(--mdl-ink) 62%, var(--mdl-base));
	opacity: 1;
}

/* ---------- Page intro ---------- */

.mdl-intro {
	padding-block: calc(var(--wp--preset--spacing--70) * 0.8) var(--wp--preset--spacing--50);
	text-align: center;
}

.mdl-intro > * {
	margin-inline: auto !important;
}

.mdl-intro h1,
.mdl-intro .wp-block-query-title {
	font-size: clamp(2.46rem, 5.248vw, 4.92rem);
	line-height: 0.95;
}

.mdl-intro__lead {
	margin-top: 1.5rem !important;
}

/* ---------- Articles, single offer and work ---------- */

.mdl-article > * {
	margin-block: 0;
}

.mdl-article > * + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

.mdl-article .wp-block-post-title {
	font-size: clamp(2.05rem, 4.1vw, 3.69rem);
	line-height: 1;
	max-width: 20ch;
}

.mdl-article .wp-block-post-content > * + * {
	margin-block-start: 1.2em;
}

.mdl-article .wp-block-post-content > :where(h2, h3) {
	margin-block-start: 2em;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.1;
}

.mdl-article .wp-block-post-content > h3 {
	font-size: var(--wp--preset--font-size--large);
}

.mdl-card-date {
	margin: 0;
	color: var(--mdl-muted);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mdl-post-nav {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1.5rem clamp(1.5rem, 5vw, 4rem);
	align-items: start;
	border-top: 1px solid var(--mdl-line);
	padding-top: var(--wp--preset--spacing--40);
	margin-block-start: var(--wp--preset--spacing--60) !important;
}

.mdl-post-nav > * {
	margin: 0 !important;
	text-align: left;
}

.mdl-post-nav > .post-navigation-link-next {
	grid-column: 2;
	text-align: right;
}

.mdl-post-nav a {
	display: block;
	text-decoration: none;
}

.mdl-post-nav .post-navigation-link__label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mdl-muted);
}

.mdl-post-nav .post-navigation-link__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.125rem, 1.6vw, 1.375rem);
	line-height: 1.25;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size 280ms var(--mdl-ease);
}

.mdl-post-nav a:hover .post-navigation-link__title {
	background-size: 100% 1px;
}

@media (max-width: 599px) {
	.mdl-post-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.mdl-post-nav > .post-navigation-link-next {
		grid-column: 1;
		text-align: left;
	}
}

/* A blog post: everything on one centred axis. */
.mdl-article:not(.mdl-work) > * {
	max-width: 44rem;
	margin-inline: auto !important;
}

.mdl-article:not(.mdl-work) > .mdl-card-date,
.mdl-article:not(.mdl-work) > .wp-block-post-title {
	text-align: center;
}

.mdl-article:not(.mdl-work) > .wp-block-post-title {
	max-width: 24ch;
}

.mdl-article:not(.mdl-work) > .wp-block-post-featured-image {
	width: 100%;
	max-width: 60rem;
	margin-block: var(--wp--preset--spacing--50) !important;
}

.mdl-article:not(.mdl-work) .wp-block-post-content > * {
	max-width: none;
	margin-inline: 0 !important;
}

.mdl-offer__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(2rem, 8vw, 8rem);
	align-items: start;
}

.mdl-offer__copy > * {
	margin-block: 0;
}

.mdl-offer__copy > * + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

.mdl-offer__facts {
	gap: 0.5rem;
}

.mdl-fact {
	margin: 0;
	border: 1px solid var(--mdl-ink);
	border-radius: 999px;
	padding: 0.6rem 1.25rem;
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mdl-offer__photo img {
	filter: var(--mdl-tone-filter);
}

@media (min-width: 900px) {
	.mdl-offer__photo {
		position: sticky;
		top: calc(var(--mdl-header-h) + 2rem);
	}
}

@media (max-width: 899px) {
	.mdl-offer__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Single work ---------- */

.mdl-section.mdl-article.mdl-work {
	padding-inline: var(--wp--custom--rail);
	padding-top: var(--wp--preset--spacing--50);
}

.mdl-article.mdl-work > * {
	max-width: none;
	margin-inline: 0;
}

.mdl-work__head > * {
	margin: 0;
}

.mdl-article.mdl-work .wp-block-post-title {
	margin-top: 1.25rem;
	max-width: 18ch;
	font-size: clamp(2.46rem, 6.15vw, 6.15rem);
	line-height: 0.92;
}

.mdl-work__photo {
	margin-block-start: var(--wp--preset--spacing--50) !important;
}

.mdl-work__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: 82svh;
	object-fit: cover;
	object-position: 50% 35%;
}

.mdl-work__body {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 7vw, 7rem);
	align-items: start;
	margin-block-start: var(--wp--preset--spacing--60) !important;
}

.mdl-work__body > * {
	margin-block: 0 !important;
}

.mdl-work__aside {
	position: sticky;
	top: calc(var(--mdl-header-h) + 2rem);
}

.mdl-work__aside > * {
	margin: 0;
}

.mdl-work__hint {
	margin-block: 1.25rem 2rem !important;
	max-width: 20ch;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.333rem, 2.132vw, 1.947rem);
	font-style: italic;
	line-height: 1.15;
}

.mdl-article .mdl-work__content > p {
	max-width: 48ch;
	font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
}

.mdl-article .mdl-work__content > * + * {
	margin-block-start: 1.25em;
}

.mdl-article .mdl-work__content > .wp-block-gallery,
.mdl-article .mdl-work__content > .wp-block-image {
	margin-block-start: var(--wp--preset--spacing--50);
}

.mdl-work__content .wp-block-gallery.has-nested-images {
	--wp--style--unstable-gallery-gap: 0.5rem;
	gap: 0.5rem;
}

.mdl-work__content :where(.wp-block-image, .wp-block-gallery) img {
	filter: var(--mdl-tone-filter);
}

@media (max-width: 899px) {
	.mdl-work__body {
		grid-template-columns: minmax(0, 1fr);
	}

	.mdl-work__aside {
		position: static;
		order: 2;
	}

	.mdl-work__photo img {
		aspect-ratio: 4 / 5;
	}
}

/* ---------- 404 and search ---------- */

.mdl-404 {
	min-height: 60svh;
	align-content: center;
	text-align: center;
}

.mdl-404 > * {
	margin-inline: auto;
}

.mdl-404 h1 {
	max-width: 16ch;
	font-size: clamp(2.46rem, 5.248vw, 4.92rem);
	line-height: 0.95;
}

.mdl-404 p {
	max-width: 44ch;
	color: var(--mdl-muted);
}

.mdl-404 .wp-block-buttons {
	justify-content: center;
}

.mdl-search {
	max-width: 30rem;
}

.mdl-search .wp-block-search__inside-wrapper {
	gap: 1rem;
	border: 0;
	padding: 0;
}

.mdl-search .wp-block-search__button {
	margin: 0;
}

/* ---------- Full width: grids and loops follow the screen, text keeps its measure ---------- */

.mdl-section.is-layout-constrained > :where(.wp-block-query, [class*="__grid"], .wp-block-buttons),
.mdl-offer-block__list > .wp-block-query {
	max-width: none !important;
}

:where(.mdl-chapters__grid, .mdl-pair__grid, .mdl-pillars__grid, .mdl-why__grid, .mdl-contact-kw__grid, .mdl-faq__grid, .mdl-story__grid, .mdl-offer__grid, .mdl-foot__grid) > * {
	margin-block: 0 !important;
}

/* ---------- Footer: black, name, menu and contact, a hairline, the copyright line ---------- */

.mdl-foot {
	display: flex;
	flex-direction: column;
	margin: 0;
	position: relative;
	z-index: 2;
	padding: var(--wp--preset--spacing--70) var(--wp--custom--rail) 1.75rem;
	border-top: 1px solid var(--mdl-on-line);
	background: var(--mdl-mocha);
	color: var(--mdl-on);
	overflow: hidden;
}

.mdl-foot > * {
	margin-block: 0 !important;
	max-width: none !important;
}

.mdl-foot__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 5rem);
	padding-bottom: var(--wp--preset--spacing--50);
	border-bottom: 1px solid var(--mdl-on-line);
}

.mdl-foot__brand > *,
.mdl-foot__col > * {
	margin: 0;
}

.mdl-foot__brand > * + * {
	margin-top: 1.25rem;
}

.mdl-foot__col > * + * {
	margin-top: 0.6rem;
}

.mdl-foot__col .mdl-label {
	margin-bottom: 1.25rem;
	color: var(--mdl-on-muted);
}

.mdl-foot .wp-block-site-title {
	font-size: clamp(1.64rem, 2.46vw, 2.255rem);
}

.mdl-foot :is(.wp-block-site-title a, .wp-block-navigation-item__content, .mdl-line__link) {
	color: inherit;
	text-decoration: none;
}

.mdl-foot .wp-block-site-tagline,
.mdl-foot__col p:not(.mdl-label) {
	color: var(--mdl-on-muted);
	font-size: 0.9375rem;
}

.mdl-foot .wp-block-site-tagline {
	max-width: 36ch;
}

.mdl-foot .mdl-socials {
	justify-content: flex-start;
}

.mdl-foot__nav .wp-block-navigation__container {
	gap: 0.7rem;
}

.mdl-foot__nav .wp-block-navigation-item__content {
	padding-block: 0.1rem;
	font-size: 0.8125rem;
	letter-spacing: 0.14em;
}

.mdl-credit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	font-size: 0.75rem;
	color: var(--mdl-muted);
}

.mdl-foot .mdl-credit {
	padding-top: 1.5rem;
	border-top: 1px solid var(--mdl-on-line);
	color: var(--mdl-on-muted);
}

.mdl-credit p {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 1.25rem;
}

.mdl-credit a {
	color: inherit;
}

@media (max-width: 899px) {
	.mdl-foot__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.mdl-foot__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 479px) {
	.mdl-foot__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.mdl-credit {
		justify-content: center;
		text-align: center;
	}
}

/* ---------- About page ---------- */

.mdl-me {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(2rem, 8vw, 9rem);
	align-items: center;
	padding: var(--wp--preset--spacing--60) max(var(--wp--custom--rail), 9vw);
}

.mdl-me > * {
	margin: 0 !important;
	max-width: none !important;
}

.mdl-me__photo {
	position: relative;
	justify-self: end;
	width: min(100%, 28rem);
	aspect-ratio: 2 / 3;
	overflow: hidden;
}

.mdl-me__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: 50% 35%;
}

.mdl-me__copy > * {
	margin: 0;
}

.mdl-me__name {
	font-size: clamp(2.46rem, 4.92vw, 4.51rem);
	font-weight: 400;
	line-height: 0.95;
}

.mdl-me__name em {
	display: block;
	margin-top: 0.15em;
}

.mdl-me__role {
	margin-top: 1.25rem !important;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.mdl-me__text {
	margin-top: 1.5rem !important;
	max-width: 46ch;
	color: var(--mdl-muted);
}

@media (prefers-reduced-motion: no-preference) {
	.mdl-me__photo {
		animation: mdl-curtain 1300ms var(--mdl-ease) both;
	}

	.mdl-me__copy > * {
		animation: mdl-rise 900ms var(--mdl-ease) both;
	}

	.mdl-me__copy > :nth-child(1) { animation-delay: 250ms; }
	.mdl-me__copy > :nth-child(2) { animation-delay: 320ms; }
	.mdl-me__copy > :nth-child(3) { animation-delay: 390ms; }
	.mdl-me__copy > :nth-child(4) { animation-delay: 460ms; }
}

@media (max-width: 899px) {
	.mdl-me {
		grid-template-columns: minmax(0, 1fr);
		padding-inline: var(--wp--custom--rail);
	}

	.mdl-me__photo {
		justify-self: start;
	}
}

/* Motto: a black band with one sentence in italics. */
.mdl-section.mdl-motto {
	background: var(--mdl-mocha) !important;
	color: var(--mdl-on);
	text-align: center;
}

.mdl-motto__text {
	margin-inline: auto !important;
	max-width: 24ch;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.64rem, 3.608vw, 3.28rem);
	font-style: italic;
	line-height: 1.15;
}

.mdl-motto__text::before { content: "\201E"; }
.mdl-motto__text::after { content: "\201D"; }

.mdl-motto .mdl-label {
	margin-top: 2rem !important;
	color: var(--mdl-on-muted);
}

.mdl-chapters__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin-top: var(--wp--preset--spacing--50) !important;
	border-top: 1px solid var(--mdl-line);
}

.mdl-chapter {
	padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2.5rem) 0;
}

.mdl-chapter + .mdl-chapter {
	border-left: 1px solid var(--mdl-line);
}

.mdl-chapter:first-child {
	padding-left: 0;
}

.mdl-chapter > * {
	margin: 0;
}

.mdl-chapter > * + * {
	margin-top: 1rem;
}

.mdl-chapter p {
	color: var(--mdl-muted);
	max-width: 40ch;
}

@media (max-width: 899px) {
	.mdl-chapters__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.mdl-chapter,
	.mdl-chapter:first-child {
		padding: 1.5rem 0;
	}

	.mdl-chapter + .mdl-chapter {
		border-left: 0;
		border-top: 1px solid var(--mdl-line);
	}
}

.mdl-pair__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 0.5rem;
	align-items: start;
}

.mdl-pair__grid figure {
	margin: 0;
}

.mdl-pair__grid img {
	width: 100%;
	object-fit: cover;
}

.mdl-pair__a img {
	aspect-ratio: 4 / 3;
}

.mdl-pair__b {
	margin-top: clamp(3rem, 8vw, 7rem) !important;
}

.mdl-pair__b img {
	aspect-ratio: 4 / 5;
}

.mdl-pair figcaption {
	margin-top: 0.75rem;
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mdl-muted);
	text-align: left;
}

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.mdl-pair__grid img {
			animation: mdl-curtain linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 60%;
		}
	}
}

@media (max-width: 781px) {
	.mdl-pair__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.mdl-pair__b {
		margin-top: 0 !important;
	}
}

/* ---------- Subpages ---------- */

/* Page intro: an optional portrait, the title, one sentence, a short line. */
.mdl-intro__photo {
	width: min(100%, 22rem);
	margin: 0 auto var(--wp--preset--spacing--40) !important;
	aspect-ratio: 4 / 5;
	overflow: hidden;
}

.mdl-intro__img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.mdl-intro::after {
	content: "";
	display: block;
	width: 3.75rem;
	height: 1px;
	margin: 2rem auto 0;
	background: currentColor;
}

@media (prefers-reduced-motion: no-preference) {
	.mdl-intro__photo {
		animation: mdl-curtain 1200ms var(--mdl-ease) both;
	}
}

/* About: the person on black, text left, portrait right. */
.mdl-me {
	background: var(--mdl-mocha);
	color: var(--mdl-on);
}

.mdl-me__copy {
	order: -1;
}

.mdl-me__name {
	color: var(--mdl-on);
}

.mdl-me__text {
	color: var(--mdl-on-muted);
}

/* The motto answers on white, between two hairlines. */
.mdl-section.mdl-motto {
	background: transparent !important;
	color: var(--mdl-ink);
}

.mdl-motto .mdl-label {
	color: var(--mdl-muted);
}

/* Contact page: details in a column with small labels, the form in a hairline frame. */
body:not(.home) .mdl-contact-kw__grid {
	grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: start;
	max-width: 80rem;
}

body:not(.home) .mdl-contact-kw__info {
	display: block;
	text-align: left;
}

body:not(.home) .mdl-contact-kw__title {
	font-size: clamp(1.75rem, 2.8vw, 2.5rem);
}

body:not(.home) .mdl-contact-kw__title em {
	display: block;
	margin-top: 0.15em;
}

body:not(.home) .mdl-contact-kw__info > p:not(.mdl-line) {
	margin: 1.25rem 0 2rem;
	padding-inline: 0;
	max-width: 36ch;
}

body:not(.home) .mdl-line {
	display: block;
	padding-block: 1.25rem;
	border-top: 1px solid var(--mdl-line);
}

body:not(.home) .mdl-line:last-child {
	border-bottom: 1px solid var(--mdl-line);
}

body:not(.home) .mdl-line::before {
	display: block;
	width: auto;
	height: auto;
	margin-bottom: 0.4rem;
	background: none;
	-webkit-mask: none;
	mask: none;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mdl-muted);
}

body:not(.home) .mdl-line--phone::before { content: "Telefon"; }
body:not(.home) .mdl-line--mail::before { content: "E-mail"; }
body:not(.home) .mdl-line--pin::before { content: "Adres"; }
body:not(.home) .mdl-line--clock::before { content: "Godziny"; }

body:not(.home) .mdl-contact-kw .mdl-cf {
	max-width: none;
	padding: clamp(1.5rem, 4vw, 3.5rem);
	border: 1px solid var(--mdl-line);
}

@media (max-width: 899px) {
	body:not(.home) .mdl-contact-kw__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- One Page product (body.mdl-one) ---------- */

@media (prefers-reduced-motion: no-preference) {
	html:has(body.mdl-one) {
		scroll-behavior: smooth;
	}
}

/* Treatments have no subpage: the description is always on the tile. */
.mdl-one .wp-block-post-template.mdl-specs > li .mdl-specs__text {
	display: block;
	opacity: 1;
}

.mdl-one .wp-block-post-template.mdl-specs > li:has(.mdl-specs__photo) .mdl-specs__text > * {
	overflow: visible;
}

@media (max-width: 599px) {
	.mdl-one .wp-block-post-template.mdl-specs > li {
		aspect-ratio: auto;
		min-height: 24rem;
	}
}

/* Works: two rows of frames beside the title. */
.mdl-one .wp-block-post-template.mdl-frames {
	row-gap: clamp(1.5rem, 3vw, 3rem);
}

/* ---------- Panel options (body classes from Ustawienia) ---------- */

body.mdl-tone-sepia { --mdl-tone-filter: grayscale(0.85) sepia(0.28) contrast(0.96) brightness(0.98); }
body.mdl-tone-soft { --mdl-tone-filter: saturate(0.8) sepia(0.08) contrast(0.98); }
body.mdl-tone-mono { --mdl-tone-filter: grayscale(1) contrast(1.04); }
body.mdl-tone-natural { --mdl-tone-filter: none; }

/* Headings without capitals. */
body:not(.mdl-heading-upper) {
	--mdl-head-case: none;
	--mdl-head-track: 0;
}

html:has(body.mdl-text-s) { font-size: 93.75%; }
html:has(body.mdl-text-l) { font-size: 106.25%; }

.mdl-btn-soft :where(.wp-element-button, .wp-block-button__link, .mdl-fact) { border-radius: 0.5rem !important; }
.mdl-btn-square :where(.wp-element-button, .wp-block-button__link, .mdl-fact) { border-radius: 0 !important; }

.mdl-no-header-cta .mdl-header__cta,
.mdl-no-footer-socials .mdl-foot .mdl-socials {
	display: none !important;
}

.mdl-header-static .mdl-site-header {
	position: relative;
}

/* Animations: "subtle" drops scroll-linked effects, "off" drops everything. */
.mdl-motion-subtle * {
	animation-timeline: auto !important;
}

.mdl-motion-off *,
.mdl-motion-off *::before,
.mdl-motion-off *::after {
	animation: none !important;
	transition: none !important;
}

/* ---------- Stacking bands (front page, wide screens, full animations) ----------
   Each top-level section pins and the next one slides over it like a curtain.
   stack.js adds .mdl-stack-on and sets --mdl-stack-top; without it nothing pins. */

:root {
	--mdl-stack-gap: 0px;
}

.mdl-stack-on .home .mdl-main > .wp-block-post-content > * {
	position: relative;
}

.mdl-stack-on .home .mdl-main > .wp-block-post-content > :is(.mdl-section, .wp-block-cover, .mdl-offer-block) {
	position: sticky;
	top: var(--mdl-stack-top, auto);
}

/* White sections need their own ground to cover the band below. */
.mdl-stack-on .home .mdl-main > .wp-block-post-content > .mdl-section:not(.is-style-section-dark, .mdl-reviews) {
	margin-inline: calc(var(--wp--custom--rail) * -1) !important;
	padding-inline: var(--wp--custom--rail);
	background: var(--mdl-base) !important;
}

/* The reviews box keeps its white frame while it slides. */
.mdl-stack-on .home .mdl-main > .wp-block-post-content > .mdl-section.mdl-reviews {
	margin-block: 0 !important;
	box-shadow: 0 0 0 100vmax var(--mdl-base);
	clip-path: inset(calc(var(--wp--preset--spacing--60) * -1) -100vmax 0 -100vmax);
}

/* The band after the box brings its own white ground and air. */
.mdl-stack-on .home .mdl-main > .wp-block-post-content > .mdl-section.mdl-reviews + .mdl-section {
	padding-top: calc(var(--wp--preset--spacing--70) + var(--wp--preset--spacing--40));
}

/* ---------- Page cross-fade (enabled from PHP unless animations are off) ---------- */

::view-transition-old(root) {
	animation-duration: 160ms;
}

::view-transition-new(root) {
	animation-duration: 240ms;
}

/* ---------- Motion safety ---------- */

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