/* MULTIIMMO: wygląd strony (front i edytor bloków). */

/* Fonty */

@font-face {
	font-family: 'DM Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/dm-sans-400.woff2) format('woff2');
}

@font-face {
	font-family: 'DM Sans';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url(../fonts/dm-sans-500.woff2) format('woff2');
}

@font-face {
	font-family: 'DM Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(../fonts/dm-sans-600.woff2) format('woff2');
}

@font-face {
	font-family: 'DM Sans';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(../fonts/dm-sans-700.woff2) format('woff2');
}

@font-face {
	font-family: 'DM Serif Display';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/dm-serif-display-400.woff2) format('woff2');
}

@font-face {
	font-family: 'DM Serif Display';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/dm-serif-display-400-italic.woff2) format('woff2');
}

/* Zmienne i elementy bazowe */

:root {
	--navy: var(--ast-global-color-2, #121f28);
	--navy-3: color-mix(in srgb, var(--navy) 86%, white);
	--accent: var(--ast-global-color-0, #4a57a5);
	--accent-hover: var(--ast-global-color-1, #39478d);
	--accent-soft: var(--ast-global-color-6, #edf0fb);
	--accent-on-dark: #dfe4ff;
	--white: var(--ast-global-color-5, #ffffff);
	--bg: var(--ast-global-color-4, #f4f5f7);
	--line: var(--ast-global-color-8, #e2e5e9);
	--line-strong: color-mix(in srgb, var(--line) 84%, var(--navy));
	--line-on-dark: rgba(255, 255, 255, 0.12);
	--muted: var(--ast-global-color-3, #5b6770);
	--on-navy-muted: rgba(255, 255, 255, 0.7);
	--error: #b3261e;
	--error-soft: #fff3f3;
	--sans: var(--mi-font-body, 'DM Sans', system-ui, sans-serif);
	--serif: var(--mi-font-heading, 'DM Serif Display', Georgia, serif);
	--mi-wide-size: var(--ast-container-width, 1320px);
	--mi-content-size: var(--ast-narrow-container-width, 800px);
	--radius: 6px;
	--radius-s: 4px;
	--gutter: 32px;
	--section: 112px;
	--header-h: 80px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--focus-ring: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}

@media (max-width: 1179px) {
	:root {
		--header-h: 72px;
	}
}

@media (max-width: 999px) {
	:root {
		--section: 84px;
	}
}

@media (max-width: 640px) {
	:root {
		--gutter: 20px;
		--section: 68px;
		--header-h: 64px;
	}
}

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

/* Kotwice i elementy w fokusie zatrzymują się pod przyklejonym nagłówkiem. */
html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) - 8px);
	-webkit-text-size-adjust: 100%;
}

body,
.editor-styles-wrapper {
	margin: 0;
	background: var(--white);
	color: var(--navy);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
address,
legend {
	margin: 0;
	padding: 0;
}

ul,
ol {
	list-style: none;
}

address {
	font-style: normal;
}

fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

a {
	color: inherit;
}

button {
	color: inherit;
	font: inherit;
	cursor: pointer;
}

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

select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23121f28' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 2px center;
	background-size: 11px auto;
	text-overflow: ellipsis;
}

[hidden] {
	display: none !important;
}

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

.site-header :focus-visible,
.hero :focus-visible,
.section--navy :focus-visible,
.band :focus-visible,
.tile--photo :focus-visible,
.tool__card :focus-visible,
.site-footer :focus-visible {
	outline-color: var(--white);
}

::selection {
	background: var(--accent);
	color: var(--white);
}

.sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.icon {
	flex: none;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-delay: 0s !important;
	}
}

/* Astra, bloki i Spectra: zerowanie odstępów i szerokości motywu */

.site-content > .ast-container {
	display: block;
	width: 100%;
	max-width: none;
	padding: 0;
}

#primary {
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

.site-content,
.ast-article-single,
.ast-article-post {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.entry-header,
.ast-single-post-featured-section {
	display: none;
}

.entry-content,
.entry-content > .wp-block-uagb-container {
	margin: 0;
}

.entry-content > :is(.mi-page-content, .mi-spectra-section, .wp-block-uagb-container, .mi-offer-dynamic, section.offers) {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.entry-content > .mi-page-content {
	margin-block: 0;
	padding: 0;
}

/* Spectra ogranicza wnętrze kontenerów głównych do szerokości treści; te sekcje mają być na całą szerokość (poza edytorem). */
body:not(.editor-styles-wrapper) .wp-block-uagb-container:is(.mi-page-content, .mi-spectra-section, .site-header, .site-footer) > .uagb-container-inner-blocks-wrap {
	width: 100%;
	min-width: 0;
	max-width: none !important;
}

/* Spectra daje dzieciom kontenera width: 100% selektorem z kilkoma :not(); w tych wierszach flex liczy się szerokość treści. */
.site-header__in > .site-header__logo,
.site-header__in .site-nav__list,
.site-nav__side > *,
.site-footer__ask > *,
.site-footer__bottom > p,
.mi-contact-head > .wp-block-buttons {
	width: auto !important;
}

.entry-content[data-ast-blocks-layout] > .mi-page-content > .wp-block-uagb-container {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.is-layout-flow > * {
	margin-block: 0;
}

.entry-content :where(h1, h2, h3, h4, p, ul, ol, figure),
.site-header :where(h1, h2, h3, p, ul, ol, figure),
.site-footer :where(h1, h2, h3, p, ul, ol, figure) {
	margin-block: 0;
}

.entry-content p {
	margin-bottom: 0;
}

.entry-content :where(ul, ol),
.site-header :where(ul, ol),
.site-footer :where(ul, ol) {
	margin-left: 0;
	padding: 0;
}

:is(.entry-content, .editor-styles-wrapper) :where(h1, h2, h3, h4),
.site-footer :where(h1, h2, h3, h4) {
	color: inherit;
}

:is(.entry-content, .editor-styles-wrapper) a,
.site-header a,
.site-footer a {
	text-decoration: none;
}

.wp-block-image {
	max-width: 100%;
}

.wp-block-image img {
	vertical-align: middle;
}

/* Spectra (0,3,0) i Astra (0,4,0) nadpisują max-width kontenerów w treści, stąd dłuższe selektory. */
.container,
.wp-block-uagb-container.container,
.entry-content .wp-block-uagb-container.container,
.site-content .entry-content[data-ast-blocks-layout] > * > .container {
	width: 100%;
	max-width: calc(var(--mi-wide-size) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Wspólne sekcje i typografia */

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

.section--grey {
	background: var(--bg);
}

.section--warm {
	background: var(--accent-soft);
}

.section--navy {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--navy);
	color: var(--white);
}

.section__head {
	margin-bottom: 48px;
}

.section__head--split {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.eyebrow::before {
	content: '';
	width: 28px;
	height: 2px;
	background: var(--accent);
}

.eyebrow--light {
	color: var(--accent-on-dark);
}

.section__title {
	max-width: 21em;
	letter-spacing: -0.008em;
	text-wrap: balance;
}

:is(.entry-content, .editor-styles-wrapper) .section__title {
	font-family: var(--serif);
	font-size: clamp(31px, 3.3vw, 48px);
	font-weight: 400;
	line-height: 1.1;
}

.eyebrow + .section__title {
	margin-top: 14px;
}

.section__lead {
	max-width: 640px;
	margin-top: 16px;
	color: var(--muted);
	font-size: 18px;
	line-height: 1.55;
	text-wrap: pretty;
}

.section--navy .section__lead {
	color: var(--on-navy-muted);
}

.badge {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 10px;
	border-radius: 3px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.badge--deal {
	background: var(--navy);
	color: var(--white);
}

@media (max-width: 640px) {
	.section__head {
		margin-bottom: 32px;
	}

	.section__head--split {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.section__lead {
		font-size: 16.5px;
	}
}

/* Przyciski, linki i przełączniki */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: var(--radius-s);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.btn--block {
	display: flex;
	width: 100%;
}

.wp-block-buttons {
	gap: 12px;
	margin: 0;
}

.wp-block-button {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

/* Blok przycisku dostaje klasę .btn na otoczce: wygląd ma tylko link w środku. */
.wp-block-button.btn,
.wp-block-button.btn:is(:hover, :active, :focus-within) {
	display: block;
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	transform: none;
}

.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 14px 24px;
	border: 1px solid transparent;
	border-radius: var(--radius-s);
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

:is(a, button, input).btn,
.wp-block-button > .wp-block-button__link {
	--mi-button-bg: var(--navy);
	--mi-button-fg: var(--white);
	--mi-button-border: transparent;
	--mi-button-hover-bg: var(--navy-3);
	--mi-button-hover-fg: var(--white);
	--mi-button-hover-border: transparent;
	border-color: var(--mi-button-border);
	background-color: var(--mi-button-bg);
	color: var(--mi-button-fg);
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

:is(a, button, input).btn--primary,
.btn--primary > .wp-block-button__link {
	--mi-button-bg: var(--accent);
	--mi-button-hover-bg: var(--accent-hover);
}

:is(a, button, input).btn--ghost,
.btn--ghost > .wp-block-button__link {
	--mi-button-bg: var(--white);
	--mi-button-fg: var(--navy);
	--mi-button-border: var(--line-strong);
	--mi-button-hover-bg: var(--accent-soft);
	--mi-button-hover-fg: var(--navy);
	--mi-button-hover-border: var(--accent);
}

:is(a, button, input).btn--line,
.btn--line > .wp-block-button__link {
	--mi-button-bg: transparent;
	--mi-button-border: rgba(255, 255, 255, 0.6);
	--mi-button-hover-bg: var(--white);
	--mi-button-hover-fg: var(--navy);
	--mi-button-hover-border: var(--white);
}

:is(a, button, input).btn:hover,
.wp-block-button > .wp-block-button__link:hover {
	border-color: var(--mi-button-hover-border);
	background-color: var(--mi-button-hover-bg);
	color: var(--mi-button-hover-fg);
	box-shadow: 0 6px 16px -10px color-mix(in srgb, var(--navy) 45%, transparent);
	transform: translateY(-1px);
}

:is(a, button, input).btn:active,
.wp-block-button > .wp-block-button__link:active {
	transform: translateY(0);
}

:is(a, button, input).btn:focus-visible,
.wp-block-button > .wp-block-button__link:focus-visible,
button:is(.chip, .tab, .switch__btn):focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	box-shadow: 0 0 0 2px var(--white);
}

a.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 2px;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
	color: var(--navy);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease, background-size 0.35s var(--ease);
}

a.link-arrow:hover,
a.link-arrow:focus-visible {
	background-size: calc(100% - 26px) 1.5px;
	color: var(--accent);
}

button.chip {
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--radius-s);
	background: var(--white);
	color: var(--navy);
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 2px 10px rgba(10, 18, 24, 0.35);
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}

button.chip:hover {
	background: var(--accent-soft);
	color: var(--navy);
	transform: translateY(-2px);
}

button.chip:active {
	transform: translateY(0);
}

button.chip[aria-pressed='true'] {
	background: var(--accent);
	color: var(--white);
}

button.chip:disabled {
	background: var(--line);
	color: var(--muted);
	box-shadow: none;
	transform: none;
	opacity: 1;
	cursor: not-allowed;
}

@media (max-width: 999px) {
	button.chip {
		box-shadow: 0 1px 2px color-mix(in srgb, var(--navy) 12%, transparent);
	}
}

@media (max-width: 640px) {
	button.chip {
		flex: none;
	}

	a.link-arrow {
		min-height: 44px;
	}
}

/* Nagłówek */

.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	height: var(--header-h);
	background: var(--navy);
	color: var(--white);
	transition: background-color 0.3s ease, box-shadow 0.3s ease, height 0.3s var(--ease);
}

.site-header::after {
	content: '';
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 1px;
	background: rgba(255, 255, 255, 0.14);
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.site-header.is-solid,
.site-header.is-open {
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px color-mix(in srgb, var(--navy) 18%, transparent);
}

.site-header.is-solid::after,
.site-header.is-open::after {
	opacity: 0;
}

.home .site-header:not(.is-solid, .is-open) {
	background: transparent;
	box-shadow: none;
}

.admin-bar .site-header {
	top: 32px;
}

.site-header__in {
	display: flex;
	align-items: center;
	gap: 40px;
	min-width: 0;
	height: 100%;
}

.site-header__in > *,
.site-nav > *,
.site-nav__side > * {
	margin-block: 0;
}

.site-header__in > .site-header__logo {
	flex: none;
	display: block;
	margin: 0;
	transition: opacity 0.2s ease;
}

.site-header__logo:hover {
	opacity: 0.82;
}

/* Proporcje logo (1260 x 267) rezerwują miejsce, zanim obrazek się wczyta. */
.site-header__logo img {
	width: auto;
	max-width: none;
	height: 36px;
	aspect-ratio: 1260 / 267;
	transition: height 0.3s var(--ease);
}

.site-header__in > .site-header__toggle {
	display: none;
	flex: 0 0 48px;
	align-items: center;
	justify-content: center;
	width: 48px !important;
	height: 48px;
	margin-left: auto;
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: var(--radius-s);
	background: transparent;
	color: var(--white);
	box-shadow: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.site-header__in > .site-header__toggle:hover,
.site-header__in > .site-header__toggle:focus {
	border-color: var(--white);
	background: rgba(255, 255, 255, 0.12);
	color: var(--white);
	box-shadow: none;
}

.site-header__toggle .icon {
	width: 24px;
	height: 24px;
}

.site-header__toggle .icon--close,
.site-header.is-open .site-header__toggle .icon--open {
	display: none;
}

.site-header.is-open .site-header__toggle .icon--close {
	display: block;
}

.site-nav {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-width: 0;
}

.site-header__in .site-nav__list {
	display: flex;
	flex: 0 0 auto;
	gap: 6px;
}

.site-nav__list a {
	position: relative;
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 14px;
	border-radius: var(--radius-s);
	color: var(--white);
	font-size: 15px;
	font-weight: 500;
	transition: color 0.2s ease;
}

.site-nav__list a::after {
	content: '';
	position: absolute;
	right: 14px;
	bottom: 8px;
	left: 14px;
	height: 1.5px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--ease);
}

.site-nav__list a:hover,
.site-nav__list a[aria-current] {
	color: var(--accent-on-dark);
}

.site-nav__list a:hover::after,
.site-nav__list a[aria-current]::after {
	transform: scaleX(1);
}

.site-nav__side {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 24px;
	min-width: 0;
}

.site-nav__side > .site-header__tel {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.site-header__tel a {
	color: inherit;
}

.site-header__tel a:hover {
	color: var(--accent-on-dark);
}

.site-nav__side > .wp-block-buttons {
	flex: 0 0 auto;
}

.site-header .wp-block-button .wp-block-button__link {
	min-height: 44px;
	padding: 11px 20px;
}

@media (min-width: 1180px) {
	.site-header.is-solid {
		height: 68px;
	}

	.site-header.is-solid .site-header__logo img {
		height: 32px;
	}
}

@media (max-width: 1240px) {
	.site-header__in {
		gap: 24px;
	}

	.site-nav,
	.site-nav__side {
		gap: 16px;
	}

	.site-header__in .site-nav__list {
		gap: 0;
	}

	.site-nav__list a {
		padding-inline: 10px;
	}

	.site-nav__list a::after {
		right: 10px;
		left: 10px;
	}
}

@media (max-width: 1179px) {
	.site-header__in {
		gap: 20px;
	}

	.site-header__logo img {
		height: 32px;
	}

	.js .site-header__in > .site-header__toggle {
		display: inline-flex;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		max-height: calc(100vh - var(--header-h));
		padding: 4px var(--gutter) 24px;
		overflow-y: auto;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
		background: var(--navy);
		box-shadow: 0 24px 40px rgba(5, 10, 14, 0.4);
	}

	.site-header.is-open .site-nav {
		display: flex;
	}

	.site-header__in .site-nav__list {
		flex-direction: column;
	}

	.site-nav__list a {
		display: flex;
		height: 54px;
		padding: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		border-radius: 0;
		font-size: 17px;
	}

	.site-nav__list a::after {
		display: none;
	}

	.site-nav__side {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding-top: 20px;
	}

	.site-nav__side > .site-header__tel {
		justify-content: center;
		min-height: 48px;
		font-size: 17px;
	}

	.site-nav__side .wp-block-buttons {
		width: 100%;
	}

	.site-nav .wp-block-button .wp-block-button__link {
		width: 100%;
		min-height: 48px;
	}

	/* Bez JS menu zostaje rozwinięte pod logo. */
	html:not(.js) .site-header {
		position: relative;
		height: auto;
	}

	html:not(.js) .site-header__in {
		flex-wrap: wrap;
		gap: 0 24px;
		height: auto;
		padding-block: 14px 8px;
	}

	html:not(.js) :is(.site-nav, .site-nav__list, .site-nav__side) {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 0 20px;
		padding: 0;
	}

	html:not(.js) .site-nav {
		position: static;
		flex-basis: 100%;
		justify-content: flex-start;
		max-height: none;
		overflow: visible;
		border-top: 0;
		box-shadow: none;
	}

	html:not(.js) .site-nav__list a {
		display: inline-flex;
		height: 44px;
		border-bottom: 0;
		font-size: 15px;
	}

	html:not(.js) .site-nav__side > .site-header__tel {
		min-height: 44px;
		font-size: 15px;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 640px) {
	.site-header__in > .site-header__logo {
		display: flex;
		align-items: center;
		min-height: 44px;
	}

	.site-header__logo img {
		height: 28px;
	}

	.site-header__in > .site-header__toggle {
		flex-basis: 44px;
		width: 44px !important;
		height: 44px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.js .site-header {
		animation: drop 0.5s var(--ease) backwards;
	}
}

/* Hero na stronie głównej */

.hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: clamp(620px, 82vh, 780px);
	padding: calc(var(--header-h) + 40px) 0 160px;
	color: var(--white);
	text-align: center;
}

.wp-block-uagb-container.hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	margin: 0;
	overflow: hidden;
	background: var(--navy);
}

.hero__bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 58% 52% at 50% 42%, color-mix(in srgb, var(--navy) 42%, transparent), transparent 72%),
		linear-gradient(180deg, color-mix(in srgb, var(--navy) 84%, transparent) 0%, color-mix(in srgb, var(--navy) 50%, transparent) 28%, color-mix(in srgb, var(--navy) 54%, transparent) 62%, color-mix(in srgb, var(--navy) 92%, transparent) 100%);
}

.wp-block-uagb-container.hero__plx {
	position: absolute;
	inset: 0;
	margin: 0;
}

/* Spectra nadaje dzieciom kontenera position: relative selektorem z kilkoma :not(), stąd !important. */
.hero__plx > .wp-block-image {
	position: absolute !important;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
}

.hero__plx img {
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
}

.hero__label {
	color: var(--accent-on-dark);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hero__title {
	max-width: 1150px;
	margin: 18px auto 0;
	letter-spacing: -0.012em;
	text-wrap: balance;
}

:is(.entry-content, .editor-styles-wrapper) .hero__title {
	color: var(--white);
	font-family: var(--serif);
	font-size: clamp(38px, 4.6vw, 66px);
	font-weight: 400;
	line-height: 1.06;
}

.hero__title em {
	color: var(--accent-on-dark);
	font-style: italic;
}

.hero__lead {
	max-width: 820px;
	margin: 24px auto 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 18px;
	line-height: 1.55;
	text-wrap: pretty;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 30px;
}

@media (max-width: 1179px) {
	html:not(.js) .hero {
		padding-top: 56px;
	}
}

@media (max-width: 640px) {
	.hero {
		min-height: 0;
		padding: calc(var(--header-h) + 48px) 0 110px;
	}

	.hero__label {
		font-size: 11.5px;
		letter-spacing: 0.1em;
	}

	.hero__label span {
		display: none;
	}

	:is(.entry-content, .editor-styles-wrapper) .hero__title {
		font-size: clamp(32px, 9vw, 40px);
	}

	.hero__lead {
		font-size: 16px;
	}

	.hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hero__actions .wp-block-button {
		width: 100%;
	}

	.hero__actions .wp-block-button .wp-block-button__link {
		width: 100%;
		white-space: normal;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.js .hero__plx img {
		animation: settle 1.3s var(--ease) backwards;
	}

	.js .hero__label {
		animation: rise 0.5s var(--ease) 0.08s backwards;
	}

	.js .hero__lead {
		animation: rise 0.55s var(--ease) 0.36s backwards;
	}
}

/* Kafle nawigacyjne pod hero */

.paths {
	position: relative;
	z-index: 2;
	margin-top: -96px;
	padding-bottom: 0;
	background: linear-gradient(to bottom, transparent 96px, var(--bg) 96px);
}

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

.path {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 208px;
	padding: 26px 30px 24px;
	overflow: hidden;
	border: 0;
	border-radius: var(--radius);
	background: var(--white);
	box-shadow: none;
	text-align: left;
	text-decoration: none;
	transition: transform 0.2s var(--ease);
}

.path::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 3px;
	background: var(--accent);
	transform: scaleX(0.16);
	transform-origin: left;
	transition: transform 0.6s var(--ease-out);
}

.path:hover,
.path:focus-visible {
	transform: translateY(-2px);
}

.path:hover::after,
.path:focus-visible::after {
	transform: scaleX(1);
}

.path__title {
	margin-top: 8px;
}

:is(.entry-content, .editor-styles-wrapper) .path__title {
	font-family: var(--serif);
	font-size: 27px;
	font-weight: 400;
	line-height: 1.15;
}

.path__desc {
	max-width: min(285px, calc(100% - 50px));
	margin-top: 8px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.5;
}

.path__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 0;
	padding-top: 16px;
	color: var(--navy);
	font-size: 14px;
	font-weight: 700;
	transition: color 0.2s ease;
}

.path:hover .path__link,
.path:focus-visible .path__link {
	color: var(--accent);
}

.path__link a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.path--featured {
	background: var(--accent);
	color: var(--white);
}

.path--featured .path__title,
.path--featured .path__link,
.path--featured .path__link a:hover {
	color: var(--white);
}

.path--featured .path__desc {
	color: rgba(255, 255, 255, 0.9);
}

.paths + .services {
	padding-top: 94px;
}

@media (max-width: 999px) {
	.paths__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.path {
		min-height: 0;
		padding: 22px 24px 20px;
	}

	.path__link {
		padding-top: 12px;
	}
}

@media (max-width: 640px) {
	.paths {
		margin-top: -72px;
		background: linear-gradient(to bottom, transparent 72px, var(--bg) 72px);
	}

	.path {
		padding: 18px 20px 16px;
	}

	:is(.entry-content, .editor-styles-wrapper) .path__title {
		font-size: 24px;
	}

	.path__desc {
		max-width: 100%;
		font-size: 14.5px;
	}

	.paths + .services {
		padding-top: 62px;
	}
}

@media (hover: none) {
	.path:hover {
		transform: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.js .path {
		animation: rise 0.55s var(--ease) 0.6s backwards;
	}

	.js .path:nth-child(2) {
		animation-delay: 0.68s;
	}

	.js .path:nth-child(3) {
		animation-delay: 0.76s;
	}
}

/* Usługi na stronie głównej */

.tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: minmax(212px, auto);
	gap: 20px;
}

.tile {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	padding: 26px 26px 30px;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--white);
	transition: transform 0.2s var(--ease);
}

.tile:hover {
	transform: translateY(-2px);
}

.tile h3 {
	max-width: 12em;
}

:is(.entry-content, .editor-styles-wrapper) .tile h3 {
	font-family: var(--sans);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
}

.tile p {
	max-width: 30ch;
	margin-top: 10px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.5;
}

.tile > p:last-child {
	margin-bottom: 70px;
}

.tile__fact {
	align-self: flex-start;
	max-width: 25ch;
	padding-top: 18px;
	color: var(--navy);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 5px;
	transition: text-decoration-color 0.3s ease, color 0.2s ease;
}

.tile > .tile__fact {
	max-width: calc(100% - 72px);
	padding-top: 30px;
}

.tile > .tile__fact:last-child {
	max-width: none;
	margin-bottom: 0;
}

.tile__fact:hover,
.tile__fact:focus-visible {
	color: var(--accent);
	text-decoration-color: currentColor;
}

.tile__fact a {
	color: var(--accent);
}

.tile__fact a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.tile--photo {
	grid-column: span 2;
	justify-content: flex-end;
	padding: 0;
	background: var(--navy);
	color: var(--white);
}

.tile--photo:hover {
	transform: none;
}

.tile--photo::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, color-mix(in srgb, var(--navy) 95%, transparent) 0%, color-mix(in srgb, var(--navy) 80%, transparent) 34%, color-mix(in srgb, var(--navy) 10%, transparent) 74%, transparent 100%);
}

.tile--photo > .tile__img {
	position: absolute !important;
	inset: 0;
	z-index: -2;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	transition: transform 1.1s var(--ease);
}

.tile--photo > .tile__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tile--photo:hover .tile__img {
	transform: scale(1.05);
}

.tile__body {
	position: relative;
	z-index: 1;
	padding: 28px 30px;
}

:is(.entry-content, .editor-styles-wrapper) .tile--photo h3 {
	max-width: none;
	color: var(--white);
	font-family: var(--serif);
	font-size: 30px;
	font-weight: 400;
}

.tile--photo p {
	max-width: 44ch;
	color: rgba(255, 255, 255, 0.86);
}

.tile--photo .tile__fact {
	display: inline-block;
	max-width: none;
	padding-top: 16px;
	color: var(--accent-on-dark);
	font-size: 15px;
}

.tile--photo .tile__fact a {
	color: var(--white);
}

.tile--tall {
	grid-row: span 2;
}

.tile--tall p {
	max-width: 44ch;
}

.tile--wide::after {
	background:
		radial-gradient(ellipse 40% 110% at 100% 100%, color-mix(in srgb, var(--navy) 94%, transparent) 0%, color-mix(in srgb, var(--navy) 82%, transparent) 50%, transparent 100%),
		linear-gradient(90deg, color-mix(in srgb, var(--navy) 95%, transparent) 0%, color-mix(in srgb, var(--navy) 84%, transparent) 44%, color-mix(in srgb, var(--navy) 16%, transparent) 100%);
}

.tile--wide .tile__body {
	max-width: 70%;
}

@media (max-width: 1240px) {
	.tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 999px) {
	.tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: auto;
	}

	.tile {
		min-height: 180px;
	}

	.tile--tall {
		grid-row: auto;
		min-height: 380px;
	}

	.tile--wide {
		min-height: 240px;
	}
}

@media (max-width: 640px) {
	.tiles {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.tile {
		min-height: 0;
		padding: 20px 20px 22px;
	}

	.tile h3 {
		max-width: none;
		padding-right: 40px;
	}

	:is(.entry-content, .editor-styles-wrapper) .tile h3 {
		font-size: 18px;
	}

	.tile p {
		font-size: 14.5px;
	}

	.tile > p,
	.tile > p:last-child {
		max-width: calc(100% - 72px);
		margin-bottom: 0;
	}

	.tile > .tile__fact {
		padding-top: 12px;
	}

	.tile--photo {
		grid-column: auto;
		padding: 0;
	}

	.tile--photo .tile__body > :not(h3) {
		max-width: calc(100% - 84px);
	}

	:is(.entry-content, .editor-styles-wrapper) .tile--photo h3 {
		padding-right: 0;
		font-size: 26px;
	}

	.tile__body {
		padding: 22px 20px;
	}

	.tile--tall {
		min-height: 340px;
	}

	.tile--tall::after {
		background: linear-gradient(to top, color-mix(in srgb, var(--navy) 96%, transparent) 0%, color-mix(in srgb, var(--navy) 88%, transparent) 56%, color-mix(in srgb, var(--navy) 15%, transparent) 100%);
	}

	.tile--wide {
		min-height: 260px;
	}

	.tile--wide .tile__body {
		max-width: none;
	}

	.tile--wide::after {
		background: linear-gradient(to top, color-mix(in srgb, var(--navy) 95%, transparent) 0%, color-mix(in srgb, var(--navy) 80%, transparent) 50%, color-mix(in srgb, var(--navy) 10%, transparent) 100%);
	}
}

@media (hover: none) {
	.tile:hover,
	.tile--photo:hover .tile__img {
		transform: none;
	}
}

/* Strona usług */

/* :where() zostawia pierwszeństwo ustawieniom zapisanym w kontenerach Spectry. */
:where(.mi-services-grid) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	gap: 28px;
	width: 100%;
}

:where(.mi-service-card) {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 0;
	min-width: 0;
	padding: 34px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
}

.mi-services-intro {
	padding-bottom: 48px;
}

.mi-services-list {
	padding-block: 24px 88px;
	background: var(--bg);
}

.mi-service-card .mi-service-card__title {
	margin: 0;
	color: var(--navy);
	font-family: var(--serif);
	font-size: 32px;
	font-weight: 400;
	line-height: 1.15;
}

.mi-service-card .mi-service-card__summary {
	margin-top: 20px;
	color: var(--navy);
	font-size: 18px;
	line-height: 1.55;
}

.mi-service-card .mi-service-card__description {
	margin-top: 16px;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.65;
}

.mi-service-card > .wp-block-buttons {
	justify-content: flex-start;
	margin-top: auto;
	padding-top: 28px;
}

.mi-service-card > .wp-block-buttons > .wp-block-button {
	width: auto;
}

.mi-service-card > .wp-block-buttons .wp-block-button__link {
	white-space: normal;
}

@media (max-width: 767px) {
	:where(.mi-services-grid) {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	:where(.mi-service-card) {
		padding: 26px 24px;
	}

	.mi-services-intro {
		padding-bottom: 36px;
	}

	.mi-services-list {
		padding-block: 20px 64px;
	}

	.mi-service-card .mi-service-card__title {
		font-size: 28px;
	}
}

/* Analiza działki: wyszukiwarka, mapa i karta działki */

.tool {
	padding-bottom: var(--section);
}

:where(.tool__intro) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: end;
	gap: 48px;
	margin-bottom: 48px;
}

.tool__intro > *,
.tool__intro .section__head {
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.tool__intro .section__title,
.tool__intro .section__lead {
	max-width: 100%;
}

.tool__search label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 700;
}

.tool__field {
	position: relative;
	display: flex;
	gap: 8px;
}

.tool__field > .icon {
	position: absolute;
	top: 50%;
	left: 16px;
	margin-top: -10px;
	color: var(--muted);
	pointer-events: none;
	transition: color 0.2s ease;
}

.tool__field:focus-within > .icon {
	color: var(--navy);
}

.tool__field input {
	flex: 1;
	min-width: 0;
	height: 52px;
	padding: 0 16px 0 46px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-s);
	background: var(--white);
	font-size: 16px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool__field input:hover {
	border-color: var(--navy-3);
}

.tool__field input:focus {
	border-color: var(--navy);
	outline: 0;
	box-shadow: var(--focus-ring);
}

.tool__field .btn {
	min-height: 52px;
}

.tool__hint {
	margin-top: 0;
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.5;
}

.tool__hint.is-error {
	color: var(--error);
}

.tool__stage {
	position: relative;
	height: clamp(660px, 46vw, 740px);
	overflow: hidden;
	background: var(--navy);
}

.tool__stage .leaflet-container {
	font-family: var(--sans);
}

.tool__stage .leaflet-control-zoom {
	margin: 22px 0 0 22px;
}

.tool__stage .leaflet-control-zoom a {
	background: var(--white);
	color: var(--navy);
}

.tool__stage .leaflet-control-zoom a:hover {
	background: var(--accent-soft);
	color: var(--navy);
}

.tool__stage .leaflet-control-attribution {
	max-width: 70%;
	font-size: 11px;
	line-height: 1.4;
}

/* Numery działek: biały tekst z ciemną obwódką, czytelny na jasnym i ciemnym zdjęciu. */
.tool__stage .mi-parcel-label span {
	display: block;
	transform: translate(-50%, -50%);
	color: var(--white);
	font: 600 12px/1 var(--sans);
	letter-spacing: 0.02em;
	white-space: nowrap;
	text-shadow: 0 0 2px rgba(18, 31, 40, 0.95), 0 0 6px rgba(18, 31, 40, 0.7);
}

.tool__stage .mi-parcel-label.is-hidden {
	display: none;
}

#mi-live-parcel-map {
	position: relative;
	z-index: 0;
	width: 100%;
	height: 620px;
	min-height: 420px;
	background: #d8dee3;
}

.mi-snapshot-map-active #mi-live-parcel-map {
	background: var(--navy);
}

.mi-snapshot-static {
	overflow: hidden;
}

.mi-snapshot-static > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mi-snapshot-loading::after,
.mi-snapshot-error::after {
	position: absolute;
	inset: 0;
	z-index: 600;
	display: grid;
	place-items: center;
	padding: 24px;
	background: var(--navy);
	color: var(--white);
	font-family: var(--sans);
	font-size: 16px;
	text-align: center;
}

.mi-snapshot-loading::after {
	content: 'Wczytywanie zapisanego przykładu analizy...';
}

.mi-snapshot-error::after {
	content: 'Podgląd mapy jest chwilowo niedostępny. Odśwież stronę lub skontaktuj się z doradcą.';
}

.tool__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.tool__overlay-in {
	position: relative;
	height: 100%;
}

.tool__switch .chip {
	pointer-events: auto;
}

.tool__layers {
	position: absolute;
	bottom: 28px;
	left: var(--gutter);
	display: grid;
	justify-items: start;
	gap: 8px;
	max-width: calc(100% - 2 * var(--gutter) - 440px);
}

.tool__switch {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tool__legend {
	max-width: 46ch;
	pointer-events: auto;
	padding: 9px 14px;
	border-radius: var(--radius-s);
	background: color-mix(in srgb, var(--navy) 90%, transparent);
	color: var(--white);
	font-size: 13.5px;
	line-height: 1.4;
}

.tool__card {
	position: absolute;
	top: 50%;
	right: var(--gutter);
	width: 400px;
	padding: 26px 28px 28px;
	border-radius: var(--radius);
	background: var(--navy);
	color: var(--white);
	box-shadow: 0 24px 60px rgba(5, 10, 14, 0.5);
	transform: translateY(-50%);
	pointer-events: auto;
}

.tool__tag {
	display: none;
}

.tool__card.is-sample .tool__tag {
	display: inline-flex;
	align-items: center;
	height: 24px;
	margin-bottom: 10px;
	padding: 0 10px;
	border-radius: 3px;
	background: var(--accent);
	color: var(--white);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tool__title {
	font-family: var(--serif);
	font-size: 30px;
	font-weight: 400;
	line-height: 1.1;
}

.tool__sub {
	margin-top: 0;
	color: var(--on-navy-muted);
	font-size: 13.5px;
	line-height: 1.45;
}

.tool__rows {
	display: grid;
	margin-top: 18px;
}

.tool__rows > div {
	padding: 9px 0;
	border-top: 1px solid var(--line-on-dark);
}

.tool__rows dt {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	color: var(--on-navy-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tool__rows dt em {
	display: none;
	padding: 1px 6px;
	border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
	border-radius: 3px;
	color: var(--accent-on-dark);
	font-size: 10.5px;
	font-style: normal;
	letter-spacing: 0.04em;
}

.tool__card.is-sample .tool__rows dt em {
	display: inline-block;
}

.tool__rows dd {
	margin-top: 2px;
	font-size: 15px;
	line-height: 1.4;
	font-variant-numeric: tabular-nums;
}

.tool__rows dd.is-later {
	color: var(--on-navy-muted);
}

.tool__note {
	margin-top: 0;
	padding-top: 12px;
	border-top: 1px solid var(--line-on-dark);
	color: rgba(255, 255, 255, 0.82);
	font-size: 13px;
	line-height: 1.45;
}

.tool__card .btn {
	margin-top: 16px;
}

.tool__caption {
	margin-top: 0;
	color: var(--muted);
	font-size: 14px;
}

.inside {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: stretch;
	gap: 56px;
	margin-top: 64px;
}

.inside__media {
	position: relative;
	min-height: 440px;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--navy);
}

.inside__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: 62% 50%;
}

:is(.entry-content, .editor-styles-wrapper) .inside__title {
	font-family: var(--serif);
	font-size: 34px;
	font-weight: 400;
	line-height: 1.12;
}

.inside__lead {
	max-width: 60ch;
	margin-top: 0;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.55;
}

.inside__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 0;
}

ul.mi-report-list {
	margin-top: 22px;
	border-bottom: 1px solid var(--line-strong);
}

.mi-report-list li {
	padding: 14px 0;
	border-top: 1px solid var(--line-strong);
	font-size: 15px;
	line-height: 1.5;
}

.mi-report-list strong {
	color: var(--navy);
}

@media (min-width: 1000px) {
	.tool__stage {
		height: clamp(760px, 46vw, 820px);
	}

	.tool__stage #mi-live-parcel-map {
		position: absolute;
		inset: 0;
		height: 100%;
		min-height: 0;
	}

	.tool__card {
		max-height: calc(100% - 48px);
		overflow-y: auto;
	}
}

@media (max-width: 999px) {
	:where(.tool__intro) {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
		gap: 28px;
	}

	.tool__stage {
		display: flex;
		flex-direction: column;
		height: auto;
		overflow: visible;
	}

	.tool__stage #mi-live-parcel-map {
		order: 2;
		height: 480px;
	}

	.tool__stage .leaflet-control-attribution {
		max-width: 100%;
	}

	.tool__overlay,
	.tool__overlay-in {
		display: contents;
	}

	.tool__layers {
		position: static;
		order: 1;
		width: 100%;
		max-width: none;
		padding: 16px var(--gutter);
		background: var(--bg);
		pointer-events: auto;
	}

	.tool__switch {
		pointer-events: auto;
	}

	.tool__legend {
		padding: 0;
		background: transparent;
		color: var(--muted);
	}

	.tool__card {
		position: static;
		order: 3;
		width: auto;
		padding: 28px var(--gutter) 32px;
		border-radius: 0;
		box-shadow: none;
		transform: none;
	}

	.tool__card .btn {
		display: inline-flex;
		width: auto;
	}

	.inside {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.inside__media {
		min-height: 300px;
	}
}

@media (max-width: 640px) {
	.tool__field {
		flex-wrap: wrap;
	}

	.tool__field > .icon {
		top: 26px;
	}

	.tool__field .btn {
		width: 100%;
	}

	.tool__stage .leaflet-control-zoom {
		margin: 14px 0 0 14px;
	}

	.tool__stage #mi-live-parcel-map {
		height: 390px;
		min-height: 360px;
	}

	.tool__card .btn {
		display: flex;
		width: 100%;
	}

	.inside {
		margin-top: 44px;
	}

	.inside__media {
		min-height: 230px;
	}

	:is(.entry-content, .editor-styles-wrapper) .inside__title {
		font-size: 28px;
	}

	.inside__cta .btn {
		width: 100%;
	}
}

/* Pas z cytatem */

.band {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--navy);
	color: var(--white);
}

.band > .band__bg {
	position: absolute !important;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
}

.band__bg img {
	position: absolute;
	top: -30%;
	left: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: 50% 62%;
}

.band__bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, color-mix(in srgb, var(--navy) 94%, transparent) 0%, color-mix(in srgb, var(--navy) 80%, transparent) 38%, color-mix(in srgb, var(--navy) 28%, transparent) 78%, color-mix(in srgb, var(--navy) 18%, transparent) 100%),
		linear-gradient(180deg, color-mix(in srgb, var(--navy) 35%, transparent), transparent 30%);
}

.band__in {
	padding-block: clamp(84px, 8.4vw, 132px);
}

.band__quote {
	max-width: 15em;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

:is(.entry-content, .editor-styles-wrapper) .band__quote {
	color: var(--white);
	font-family: var(--serif);
	font-size: clamp(31px, 3.9vw, 56px);
	font-weight: 400;
	line-height: 1.08;
}

.band__text {
	max-width: 50ch;
	margin-top: 24px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 18px;
	line-height: 1.55;
}

.band__more a {
	color: var(--white);
	font-weight: 700;
}

.band__more a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

@media (max-width: 640px) {
	.band__in {
		padding-block: 72px;
	}

	.band__text {
		font-size: 16.5px;
	}

	.band__bg::after {
		background: linear-gradient(180deg, color-mix(in srgb, var(--navy) 90%, transparent) 0%, color-mix(in srgb, var(--navy) 72%, transparent) 60%, color-mix(in srgb, var(--navy) 50%, transparent) 100%);
	}
}

/* O firmie i liczby */

.about__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 80px;
}

.about__photo {
	position: relative;
}

.about__frame {
	position: relative;
	display: block;
	aspect-ratio: 5 / 4;
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
	background: #d8dcdf;
}

.about__frame img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: 50% 40%;
}

.about__text .section__title {
	max-width: 15em;
}

.about__text > p {
	max-width: 60ch;
	margin-top: 18px;
	color: var(--muted);
	font-size: 17px;
}

.about__sub {
	margin-top: 28px;
	font-family: var(--sans);
	font-size: 16px;
	font-weight: 700;
}

ul.checks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 24px;
	margin-top: 18px;
}

.checks li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15.5px;
	font-weight: 500;
	line-height: 1.4;
}

.stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 32px;
	margin-top: 88px;
}

.stat {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 12px;
	padding-top: 24px;
	border-top: 2px solid var(--navy);
}

.mi-stat-value {
	color: var(--navy);
	font-family: var(--serif);
	font-size: clamp(36px, 4vw, 60px);
	line-height: 1.08;
}

.mi-stat-label {
	max-width: 27ch;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.45;
}

@media (max-width: 1240px) {
	.about__grid {
		gap: 52px;
	}
}

@media (max-width: 999px) {
	.about__grid {
		grid-template-columns: 1fr;
		gap: 60px;
	}

	.about__photo {
		max-width: 640px;
	}

	.about__frame {
		aspect-ratio: 16 / 10;
	}

	.stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px 32px;
		margin-top: 64px;
	}
}

@media (max-width: 640px) {
	.about__grid {
		gap: 48px;
	}

	.about__text > p {
		font-size: 16px;
	}

	ul.checks {
		grid-template-columns: 1fr;
	}

	.stats {
		gap: 28px 20px;
		margin-top: 48px;
	}

	.stat {
		gap: 8px;
		padding-top: 16px;
	}

	.mi-stat-value {
		font-size: 34px;
	}
}

/* Biura i doradca */

:where(.mi-contact-head) {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 42px;
}

.mi-contact-head > .section__head {
	flex: 1 1 0;
	min-width: 0;
}

.mi-contact-head > .wp-block-buttons {
	flex: 0 0 auto;
	margin: 0;
}

.mi-contact-head .section__title {
	max-width: 100%;
}

.contact > .container > .wp-block-buttons {
	margin-top: 28px;
}

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

.office {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	padding: 30px 30px 26px;
	overflow: hidden;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: var(--white);
	transition: border-color 0.3s ease, transform 0.35s var(--ease);
}

.office:hover {
	border-color: var(--accent-hover);
	transform: translateY(-3px);
}

.office__kind {
	color: var(--accent);
	font-size: 14px;
	font-weight: 700;
}

.office h3 {
	margin-top: 2px;
}

:is(.entry-content, .editor-styles-wrapper) .office h3 {
	font-family: var(--serif);
	font-size: 32px;
	font-weight: 400;
	line-height: 1.1;
}

.office address,
.office__role {
	max-width: 34ch;
	margin-bottom: 20px;
	color: var(--muted);
	font-size: 16px;
}

.office address {
	margin-top: 12px;
}

.office__role {
	margin-top: 0;
}

.office__lines {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	margin-top: 0;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.office__lines a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	background: linear-gradient(var(--accent), var(--accent)) 0 calc(100% - 4px) / 0 1.5px no-repeat;
	color: inherit;
	font-weight: 700;
	text-decoration: none;
	transition: color 0.2s ease, background-size 0.3s var(--ease);
}

.office__lines a:hover {
	background-size: 100% 1.5px;
	color: var(--accent);
}

.office > .office__avatar {
	display: grid;
	flex: 0 0 48px;
	place-items: center;
	width: 48px;
	min-width: 48px;
	max-width: 48px;
	height: 48px;
	aspect-ratio: 1;
	border: 1px solid var(--accent-on-dark);
	border-radius: 50%;
	color: var(--accent-on-dark);
	font-family: var(--serif);
	font-size: 19px;
}

.office--advisor {
	border-color: var(--navy);
	background: var(--navy);
	color: var(--white);
}

.office--advisor:hover {
	border-color: var(--accent);
}

.office--advisor h3 {
	margin-top: 16px;
}

.office--advisor .office__role {
	color: var(--on-navy-muted);
}

.office--advisor .office__lines {
	border-top-color: rgba(255, 255, 255, 0.14);
}

.office--advisor .office__lines a {
	background-image: linear-gradient(var(--accent-on-dark), var(--accent-on-dark));
}

.office--advisor .office__lines a:hover {
	color: var(--accent-on-dark);
}

@media (max-width: 1100px) {
	:where(.mi-contact-head) {
		align-items: flex-start;
	}

	.mi-contact-head > .wp-block-buttons {
		flex-shrink: 1;
		max-width: 44%;
	}
}

@media (max-width: 999px) {
	.contact__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.office--advisor {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	:where(.mi-contact-head) {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		margin-bottom: 32px;
	}

	.mi-contact-head > .wp-block-buttons {
		align-self: flex-start;
		max-width: 100%;
	}
}

@media (max-width: 640px) {
	.contact__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.office {
		padding: 22px;
	}

	:is(.entry-content, .editor-styles-wrapper) .office h3 {
		font-size: 30px;
	}

	.office__lines a {
		min-height: 44px;
	}
}

@media (hover: none) {
	.office:hover {
		transform: none;
	}
}

/* Strona kontaktu i formularz (Contact Form 7) */

.mi-contact-page .submit {
	padding-bottom: 48px;
}

.submit__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: stretch;
	gap: 72px;
}

.submit__text {
	display: flex;
	flex-direction: column;
}

.submit__sub {
	margin-top: 0;
	color: var(--accent-on-dark);
	font-size: 16px;
	font-weight: 700;
}

.submit__call {
	display: block;
	margin-top: 24px;
	padding: 18px 20px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--radius);
	background: color-mix(in srgb, var(--navy) 72%, transparent);
	transition: border-color 0.3s ease;
}

.submit__call:hover {
	border-color: var(--accent-on-dark);
}

.submit__call a {
	display: inline-block;
	padding-block: 4px;
	color: var(--white);
	font-size: 22px;
	font-weight: 700;
	text-decoration: none;
	transition: color 0.2s ease;
}

.submit__call a:hover {
	color: var(--accent-on-dark);
}

.mi-form-area {
	min-width: 0;
}

.submit__card.wp-block-uagb-container {
	align-self: start;
	gap: 0;
	padding: 36px;
	border-radius: var(--radius);
	background: var(--white);
	color: var(--navy);
	box-shadow: 0 24px 60px rgba(5, 10, 14, 0.45);
}

:is(.entry-content, .editor-styles-wrapper) .submit__card-title {
	font-family: var(--serif);
	font-size: 30px;
	font-weight: 400;
	line-height: 1.2;
}

.wpcf7 .form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 22px;
}

.wpcf7 .form > :is(div, p),
.wpcf7 .form__extra > div {
	min-width: 0;
	margin: 0;
}

.wpcf7 .form .form__full {
	grid-column: 1 / -1;
}

.wpcf7 .form label,
.wpcf7 .form legend {
	display: block;
	margin-bottom: 6px;
	padding: 0;
	font-size: 13.5px;
	font-weight: 700;
	transition: color 0.2s ease;
}

.wpcf7 .form > div:focus-within > label {
	color: var(--accent);
}

.wpcf7 .form :is(input[type='text'], input[type='tel'], input[type='email'], input[type='number'], select, textarea) {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-s);
	background-color: var(--white);
	color: var(--navy);
	font-size: 16px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.wpcf7 .form select.wpcf7-select {
	padding-right: 36px;
	background-position: right 14px center;
}

.wpcf7 .form textarea.wpcf7-textarea {
	min-height: 96px;
	padding: 12px 14px;
	line-height: 1.45;
	resize: vertical;
}

.wpcf7 .form :is(input, select, textarea):hover {
	border-color: var(--navy-3);
}

.wpcf7 .form :is(input, select, textarea):focus {
	border-color: var(--navy);
	outline: 0;
	box-shadow: var(--focus-ring);
}

.wpcf7 .form :is(input, select, textarea)[aria-invalid='true'] {
	border-color: var(--error);
}

.wpcf7 .form .wpcf7-not-valid-tip {
	margin-top: 6px;
	color: var(--error);
	font-size: 13px;
	font-weight: 700;
}

.wpcf7 .form .form__extra {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.form__extra legend {
	grid-column: 1 / -1;
}

.wpcf7 .form__consent .wpcf7-list-item {
	display: block;
	margin: 0;
}

.wpcf7 .form__consent label {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: 12px;
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	cursor: pointer;
}

.wpcf7 .form__consent label:hover {
	color: var(--navy);
}

.wpcf7 .form__consent input[type='checkbox'] {
	width: 20px;
	min-width: 0;
	height: 20px;
	margin: 2px 0 0;
	background: none;
	accent-color: var(--navy);
	vertical-align: baseline;
	cursor: pointer;
}

.wpcf7-list-item-label::before,
.wpcf7-list-item-label::after {
	content: none;
}

.form__hint {
	margin-top: 6px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.5;
}

.form__actions {
	position: relative;
}

.wpcf7 .form .form__send {
	width: 100%;
	min-height: 52px;
	font-size: 16px;
}

/* CF7 blokuje przycisk, dopóki zgoda nie jest zaznaczona. */
.wpcf7 .form .form__send:disabled {
	opacity: 0.55;
	box-shadow: none;
	transform: none;
}

.wpcf7 .form .wpcf7-spinner {
	position: absolute;
	top: 50%;
	right: 16px;
	margin: -12px 0 0;
	background-color: var(--white);
}

.wpcf7 .form .wpcf7-spinner::before {
	background-color: var(--accent);
}

.wpcf7 form.form .wpcf7-response-output {
	grid-column: 1 / -1;
	margin: 0;
	padding: 16px;
	border: 0;
	border-left: 3px solid var(--accent);
	background: var(--accent-soft);
	color: var(--navy);
	font-size: 15px;
}

.wpcf7 .form:is(.invalid, .unaccepted, .failed, .aborted, .spam) .wpcf7-response-output {
	border-left-color: var(--error);
	background: var(--error-soft);
}

/* Pułapka na boty: pole poza ekranem, niedostępne z klawiatury (tabindex -1 w szablonie). */
.mi-honeypot {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 1240px) {
	.submit__grid {
		gap: 52px;
	}
}

@media (max-width: 999px) {
	.submit__grid {
		grid-template-columns: 1fr;
		gap: 48px;
	}
}

@media (max-width: 640px) {
	.submit__card.wp-block-uagb-container {
		margin-inline: -4px;
		padding: 24px 20px;
	}

	.wpcf7 .form,
	.wpcf7 .form .form__extra {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.form[data-topic='zgloszenie'] .form__extra {
		animation: rise 0.35s var(--ease) backwards;
	}

	.wpcf7-not-valid-tip {
		animation: rise 0.25s var(--ease) backwards;
	}
}

/* Katalog ofert */

.mi-catalog-page {
	padding-bottom: 64px;
}

.offers {
	padding-top: 92px;
}

.mi-catalog-page + .offers {
	padding-top: 64px;
}

.filters {
	margin-bottom: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
}

.filters__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding: 12px 16px;
}

.filters__row--fields {
	align-items: flex-end;
	justify-content: flex-start;
	padding: 14px 16px 16px;
	border-top: 1px solid var(--line);
}

.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

button.tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--radius-s);
	background: transparent;
	color: var(--navy);
	font-size: 15px;
	font-weight: 500;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.tab span {
	padding: 1px 7px;
	border-radius: 10px;
	background: var(--bg);
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	transition: background-color 0.2s ease, color 0.2s ease;
}

button.tab:hover {
	background: var(--accent-soft);
	color: var(--navy);
}

.tab:hover span {
	background: var(--white);
}

.tab:active {
	transform: scale(0.97);
}

button:is(.tab, .switch__btn)[aria-pressed='true'] {
	background: var(--navy);
	color: var(--white);
}

.tab[aria-pressed='true'] span {
	background: rgba(255, 255, 255, 0.16);
	color: var(--white);
}

.switch {
	display: inline-flex;
	padding: 3px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-s);
}

button.switch__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 0 16px;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: var(--navy);
	font-size: 14px;
	font-weight: 700;
	transition: background-color 0.2s ease, color 0.2s ease;
}

button.switch__btn:hover {
	background: var(--accent-soft);
	color: var(--navy);
}

.fsel {
	display: grid;
	gap: 4px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.fsel select {
	height: 44px;
	min-width: 176px;
	padding: 0 34px 0 12px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-s);
	background-color: var(--white);
	background-position: right 12px center;
	color: var(--navy);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fsel select:hover {
	border-color: var(--navy);
}

.fsel select:focus {
	border-color: var(--navy);
	outline: 0;
	box-shadow: var(--focus-ring);
}

.filters__count {
	align-self: center;
	margin-left: auto;
	color: var(--muted);
	font-size: 14px;
}

.filters__clear {
	align-self: center;
	min-height: 44px;
	padding: 0 4px;
	border: 0;
	background: none;
	color: var(--navy);
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

.filters__clear:hover {
	color: var(--accent);
}

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

.card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	transition: transform 0.2s var(--ease), border-color 0.2s ease;
}

.card:hover,
.card:focus-within {
	border-color: var(--accent);
	transform: translateY(-2px);
}

.card__media {
	position: relative;
	aspect-ratio: 738 / 450;
	overflow: hidden;
	background: #dde1e5;
}

.card__media > a {
	display: block;
	width: 100%;
	height: 100%;
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--ease);
}

.card:hover .card__media img,
.card:focus-within .card__media img {
	transform: scale(1.06);
}

.card__badges {
	position: absolute;
	top: 14px;
	left: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 20px 22px 18px;
}

.card__body > p {
	margin-block: 0;
}

.card__cat {
	color: var(--accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.card__title {
	min-height: 2.6em;
	margin-top: 0;
	text-wrap: pretty;
}

:is(.entry-content, .editor-styles-wrapper) .card__title {
	font-family: var(--sans);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
}

.card__place {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	color: var(--muted);
	font-size: 14px;
}

.card__specs {
	display: flex;
	gap: 28px;
	margin-top: auto;
	padding-top: 16px;
}

.card__specs dt {
	color: var(--muted);
	font-size: 12px;
}

.card__specs dd {
	font-size: 15px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.card__price strong {
	font-family: var(--serif);
	font-size: 27px;
	font-weight: 400;
	line-height: 1.1;
}

.card__price span {
	color: var(--muted);
	font-size: 13px;
}

.card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 22px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
	transition: background-color 0.3s ease;
}

.card:hover .card__foot {
	background: var(--accent-soft);
}

.card__foot .link-arrow {
	min-height: 32px;
	font-size: 14px;
}

.offers__empty {
	padding: 48px 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	text-align: center;
}

.offers__empty-text {
	margin-bottom: 20px;
	font-family: var(--serif);
	font-size: 24px;
}

.offers__empty .btn {
	margin: 4px;
}

.offers__more {
	margin-top: 0;
	text-align: center;
}

.offers__mapview {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	align-items: start;
	gap: 24px;
}

.omap__main {
	display: grid;
	gap: 12px;
}

.omap {
	position: relative;
	aspect-ratio: 1920 / 1200;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--navy);
}

.omap__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.85) brightness(0.86);
}

.omap__pin {
	position: absolute;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	padding: 0;
	border: 0;
	background: none;
}

.omap__pin span {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border: 2px solid var(--white);
	border-radius: 50%;
	background: var(--accent);
	color: var(--white);
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
	transition: transform 0.25s var(--ease), background-color 0.2s ease, color 0.2s ease;
}

.omap__pin:hover span {
	transform: scale(1.14);
}

.omap__pin.is-active {
	z-index: 2;
}

.omap__pin.is-active span {
	background: var(--navy);
	color: var(--white);
	transform: scale(1.25);
}

.omap__note {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.5;
}

.omap__out {
	padding: 0;
	border: 0;
	background: none;
	color: var(--navy);
	font-size: 13px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

.omap__out:hover {
	color: var(--accent);
}

.omap__side {
	display: grid;
	gap: 14px;
}

.omap__slot .card:hover,
.omap__slot .card:focus-within {
	border-color: var(--line);
	box-shadow: none;
	transform: none;
}

.omap__slot .card__title {
	min-height: 0;
}

.omap__slot-empty {
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--muted);
}

@media (max-width: 999px) {
	.filters__row--fields {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 12px;
	}

	.fsel select {
		width: 100%;
		min-width: 0;
	}

	.filters__count {
		grid-column: 1 / -1;
		margin-left: 0;
	}

	.filters__clear {
		grid-column: 1 / -1;
		justify-self: start;
		margin-left: 0;
	}

	.switch {
		width: 100%;
	}

	button.switch__btn {
		flex: 1;
		justify-content: center;
	}

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

	.offers__mapview {
		grid-template-columns: 1fr;
	}

	.omap__main {
		display: contents;
	}

	.omap__note {
		order: 3;
	}

	.omap__slot .card {
		max-width: 480px;
	}
}

@media (max-width: 767px) {
	.filters__row--fields {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.mi-catalog-page {
		padding-bottom: 44px;
	}

	.offers {
		padding-top: 60px;
	}

	.mi-catalog-page + .offers {
		padding-top: 44px;
	}

	.filters__row,
	.filters__row--fields {
		padding: 12px;
	}

	.tabs {
		gap: 4px 2px;
	}

	button.tab {
		flex: none;
		padding: 0 10px;
		font-size: 14.5px;
	}

	.tab[data-type='hala'],
	.tab[data-type='obiekt'] {
		order: 1;
	}

	button.switch__btn {
		min-height: 40px;
	}

	.cards {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.card__title {
		min-height: 0;
	}

	.offers__more .btn {
		width: 100%;
	}

	.card__foot .link-arrow,
	.omap__out {
		min-height: 44px;
	}

	.omap__pin span {
		width: 26px;
		height: 26px;
		font-size: 12px;
	}
}

@media (hover: none) {
	.card:hover,
	.card:hover .card__media img {
		transform: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.offers__mapview .omap__pin {
		animation: pin 0.4s var(--ease) backwards;
	}

	.offers__mapview .omap__pin:nth-of-type(2) {
		animation-delay: 0.04s;
	}

	.offers__mapview .omap__pin:nth-of-type(3) {
		animation-delay: 0.08s;
	}

	.offers__mapview .omap__pin:nth-of-type(4) {
		animation-delay: 0.12s;
	}

	.offers__mapview .omap__pin:nth-of-type(5) {
		animation-delay: 0.16s;
	}

	.offers__mapview .omap__pin:nth-of-type(6) {
		animation-delay: 0.2s;
	}

	.offers__mapview .omap__pin:nth-of-type(7) {
		animation-delay: 0.24s;
	}

	.offers__mapview .omap__pin:nth-of-type(8) {
		animation-delay: 0.28s;
	}

	.omap__slot > * {
		animation: rise 0.4s var(--ease) backwards;
	}
}

/* Strona oferty */

.mi-offer-detail {
	padding-top: 146px;
}

.mi-offer-heading {
	margin-bottom: 30px;
}

:is(.entry-content, .editor-styles-wrapper) .mi-offer-heading h1 {
	font-family: var(--serif);
	font-size: clamp(32px, 3.3vw, 48px);
	font-weight: 400;
	line-height: 1.1;
}

.mi-offer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
	align-items: start;
	gap: 40px;
}

.mi-offer-image {
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--bg);
}

.mi-offer-image img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	border-radius: 6px;
}

.mi-offer-image figcaption,
.mi-offer-gallery figcaption {
	padding: 12px 16px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.45;
}

.mi-offer-facts {
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg);
}

.mi-offer-facts dl {
	display: grid;
	gap: 12px;
}

.mi-offer-facts dl > div {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}

.mi-offer-facts dt {
	color: var(--muted);
	font-size: 14px;
}

.mi-offer-facts dd {
	font-weight: 700;
}

.mi-offer-facts .mi-offer-price {
	margin: 24px 0 8px;
	font-family: var(--serif);
	font-size: 36px;
	line-height: 1.1;
}

.mi-offer-price small {
	font-family: var(--sans);
	font-size: 0.5em;
}

.mi-offer-unit {
	color: var(--muted);
}

.mi-offer-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.mi-offer-description-text > * + * {
	margin-top: 16px;
}

.mi-offer-features {
	display: grid;
	gap: 12px;
	margin-top: 18px;
}

.mi-offer-features li,
.mi-offer-description .container > ul li {
	padding-left: 18px;
	border-left: 3px solid var(--accent);
}

.mi-offer-description .container > h2 {
	margin-top: 32px;
	margin-bottom: 12px;
	font-family: var(--serif);
	font-size: 30px;
	font-weight: 400;
	line-height: 1.2;
}

.mi-offer-description .container > h2:first-child {
	margin-top: 0;
}

.mi-offer-description .container > p {
	margin-top: 16px;
}

.mi-offer-description .container > ul {
	display: grid;
	gap: 12px;
	margin-top: 16px;
}

.mi-offer-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 28px;
}

.mi-offer-gallery figure {
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--bg);
}

.mi-offer-gallery a {
	display: block;
}

.mi-offer-gallery img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.mi-offer-advisor {
	margin-top: 36px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg);
}

.mi-offer-advisor h2 {
	margin-bottom: 12px;
	font-family: var(--serif);
	font-size: 28px;
	font-weight: 400;
}

.mi-offer-advisor p + p {
	margin-top: 12px;
}

.mi-offer-advisor a {
	color: var(--accent);
}

/* Linki do poprzedniej i następnej oferty wyrównane do treści */
.single-mi_offer .post-navigation {
	width: min(100% - 2 * var(--gutter), var(--mi-wide-size));
	margin-inline: auto;
	padding-inline: 0;
}

@media (max-width: 999px) {
	.mi-offer-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.mi-offer-image {
		max-width: 738px;
	}
}

@media (max-width: 640px) {
	.mi-offer-detail {
		padding-top: 112px;
	}

	.mi-offer-facts {
		padding: 20px;
	}

	.mi-offer-facts .mi-offer-price {
		font-size: 30px;
	}

	.mi-offer-actions .btn {
		width: 100%;
		white-space: normal;
	}

	.mi-offer-gallery {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* Podstrony: nagłówek strony, Landbank, polityka prywatności */

.mi-page-intro {
	padding-top: 146px;
	background: var(--bg);
}

.mi-landbank-page,
.mi-legal-page {
	padding-top: 146px;
}

.mi-landbank-page > .container,
.mi-legal-page > .container,
.entry-content :is(.mi-landbank-page, .mi-legal-page) > .container,
.site-content .entry-content[data-ast-blocks-layout] > :is(.mi-landbank-page, .mi-legal-page) > .container {
	max-width: calc(var(--mi-content-size) + 2 * var(--gutter));
}

:is(.mi-page-intro, .mi-landbank-page, .mi-legal-page) .section__head {
	max-width: var(--mi-content-size);
}

:is(.mi-page-intro, .mi-landbank-page, .mi-legal-page) .section__lead {
	max-width: 100%;
}

:is(.mi-landbank-page, .mi-legal-page) .container > h2 {
	margin-top: 36px;
	margin-bottom: 12px;
	font-family: var(--serif);
	font-weight: 400;
}

:is(.mi-landbank-page, .mi-legal-page) .container > p {
	margin-top: 18px;
}

.mi-landbank-page .container > .wp-block-buttons {
	margin-top: 28px;
}

ol.mi-process-list,
.mi-legal-page ul {
	margin-top: 20px;
}

.mi-process-list li,
.mi-legal-page li {
	padding: 12px 0;
	border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
	.mi-page-intro,
	.mi-landbank-page,
	.mi-legal-page {
		padding-top: 112px;
	}

	.mi-landbank-page .wp-block-buttons > .wp-block-button {
		width: 100%;
	}

	.mi-landbank-page .wp-block-button__link {
		width: 100%;
		white-space: normal;
	}
}

/* Stopka */

.site-footer {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--navy);
	color: var(--on-navy-muted);
	font-size: 15px;
}

.site-footer a:not(.btn) {
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
	transition: color 0.2s ease, transform 0.25s var(--ease);
}

.site-footer .wp-block-button .wp-block-button__link {
	color: var(--white);
}

:where(.site-footer__ask) {
	position: relative;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	padding-block: 60px 52px;
}

.site-footer__ask::after {
	content: '';
	position: absolute;
	right: var(--gutter);
	bottom: 0;
	left: var(--gutter);
	height: 1px;
	background: var(--line-on-dark);
}

.mi-contact-page .site-footer__ask {
	display: none;
}

.site-footer__ask > .site-footer__claim {
	flex: 1 1 0;
	min-width: 0;
	max-width: 19em;
	margin: 0;
	color: var(--white);
	font-family: var(--serif);
	font-size: clamp(28px, 2.8vw, 40px);
	line-height: 1.12;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.site-footer__ask > .wp-block-buttons {
	flex: 0 0 auto;
	justify-content: flex-end;
	margin: 0;
}

:where(.site-footer__grid) {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
	align-items: start;
	gap: 40px;
	padding-block: 64px 52px;
}

.site-footer__grid > * {
	min-width: 0;
}

.site-footer__brand .wp-block-image img {
	width: 210px;
	height: auto;
	aspect-ratio: 1260 / 267;
}

.site-footer__brand p {
	max-width: 36ch;
	margin-top: 20px;
}

.site-footer__col h2 {
	color: var(--white);
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 700;
}

.site-footer__col ul {
	display: grid;
	gap: 4px;
	margin-top: 14px;
}

.site-footer__col li {
	display: flex;
	align-items: center;
	min-height: 30px;
}

.site-footer__col a {
	display: inline-block;
}

.site-footer__col a:hover {
	color: var(--accent-on-dark);
	transform: translateX(4px);
}

:where(.site-footer__bottom) {
	position: relative;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 28px;
	padding-block: 22px;
	font-size: 13px;
}

.site-footer__bottom::before {
	content: '';
	position: absolute;
	top: 0;
	right: var(--gutter);
	left: var(--gutter);
	height: 1px;
	background: var(--line-on-dark);
}

.site-footer__bottom > p {
	flex: 0 1 auto;
	margin: 0;
	color: inherit;
}

.site-footer__bottom > p:nth-child(2) {
	flex: 1 1 100%;
	order: 4;
	font-size: 12px;
}

.site-footer__bottom > .site-footer__credit {
	margin-left: auto;
}

.site-footer__end {
	display: flex;
	align-items: center;
	gap: 28px;
}

.site-footer__bottom a:not(.btn) {
	color: var(--on-navy-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer__bottom a:hover {
	color: var(--accent-on-dark);
}

/* Stopka: podpis wykonawcy */

.site-footer__credit a.dev-credit {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--on-navy-muted);
	text-decoration: none;
	transition: color 0.3s ease;
}

.site-footer__credit .dev-credit__logo {
	display: block;
	width: auto;
	height: 28px;
	fill: currentColor;
}

.site-footer__credit .dev-credit__accent {
	fill: currentColor;
	transition: fill 0.3s ease;
}

.site-footer__credit a.dev-credit:hover,
.site-footer__credit a.dev-credit:focus-visible {
	color: var(--white);
}

.site-footer__credit a.dev-credit:hover .dev-credit__accent,
.site-footer__credit a.dev-credit:focus-visible .dev-credit__accent {
	fill: #3a50ff;
}

@media (max-width: 1100px) {
	:where(.site-footer__grid) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px;
	}
}

@media (max-width: 999px) {
	.site-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	:where(.site-footer__ask) {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.site-footer__ask > .site-footer__claim {
		flex: 0 1 auto;
		max-width: 100%;
	}

	.site-footer__ask > .wp-block-buttons {
		justify-content: flex-start;
	}

	:where(.site-footer__bottom) {
		align-items: flex-start;
		gap: 12px;
	}

	.site-footer__bottom > p {
		flex-basis: 100%;
	}

	.site-footer__bottom > .site-footer__credit {
		margin-left: 0;
	}
}

@media (max-width: 640px) {
	:where(.site-footer__ask) {
		padding-block: 44px 36px;
	}

	:where(.site-footer__grid) {
		padding-block: 48px 36px;
	}

	.site-footer__col ul {
		gap: 0;
	}

	.site-footer__col li {
		min-height: 44px;
	}

	.site-footer__col a,
	.site-footer__bottom a:not(.btn) {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
}

@media (max-width: 480px) {
	:where(.site-footer__grid) {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
	}
}

/* Animacje */

@keyframes rise {
	from {
		opacity: 0;
		transform: translate3d(0, 18px, 0);
	}
}

@keyframes drop {
	from {
		opacity: 0;
		transform: translate3d(0, -14px, 0);
	}
}

@keyframes settle {
	from {
		transform: scale(1.07);
	}
}

@keyframes pin {
	from {
		opacity: 0;
		transform: translate3d(0, -12px, 0);
	}
}

/* Edytor bloków (ten plik ładuje się też jako arkusz edytora) */

.editor-styles-wrapper .site-header {
	position: relative;
	top: 0;
	height: auto;
	min-height: 80px;
}

.editor-styles-wrapper .hero {
	margin-top: 0;
}

.editor-styles-wrapper .hero__bg,
.editor-styles-wrapper .band__bg {
	pointer-events: none;
}

.editor-styles-wrapper .wp-block {
	max-width: none;
}

.editor-styles-wrapper .block-editor-block-list__layout .wp-block {
	margin-block: 0;
}

.editor-styles-wrapper .wp-block-uagb-container {
	box-sizing: border-box;
}

/* Spectra układa dzieci w wewnętrznej warstwie edytora, więc siatka przechodzi na nią. */
.editor-styles-wrapper .wp-block-uagb-container:is(.mi-service-card, .mi-services-grid, .mi-contact-head, .tool__intro, .site-footer__ask, .site-footer__grid, .site-footer__bottom, .uagb-layout-grid:is(.paths__grid, .tiles, .about__grid, .stats, .contact__grid, .submit__grid, .inside)) {
	display: block !important;
}

.editor-styles-wrapper .wp-block-uagb-container:is(.mi-service-card, .mi-services-grid, .mi-contact-head, .tool__intro, .site-footer__ask, .site-footer__grid, .site-footer__bottom, .uagb-layout-grid:is(.paths__grid, .tiles, .about__grid, .stats, .contact__grid, .submit__grid, .inside)) > .block-editor-inner-blocks,
.editor-styles-wrapper .wp-block-uagb-container:is(.mi-service-card, .mi-services-grid, .mi-contact-head, .tool__intro, .site-footer__ask, .site-footer__grid, .site-footer__bottom, .uagb-layout-grid:is(.paths__grid, .tiles, .about__grid, .stats, .contact__grid, .submit__grid, .inside)) > .block-editor-inner-blocks > .block-editor-block-list__layout {
	width: 100%;
	min-width: 0;
	max-width: none;
}

.editor-styles-wrapper .mi-service-card > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block-buttons {
	justify-content: flex-start;
	margin-top: auto;
	padding-top: 28px;
}

.editor-styles-wrapper .mi-service-card > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block-buttons .wp-block-button__link {
	white-space: normal;
}

.editor-styles-wrapper .mi-contact-head > .block-editor-inner-blocks > .block-editor-block-list__layout > .section__head {
	flex: 1 1 0;
	min-width: 0;
	margin-bottom: 0;
}

.editor-styles-wrapper .mi-contact-head > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block-buttons {
	flex: 0 0 auto;
	width: auto;
	margin: 0;
}

.editor-styles-wrapper .site-footer__ask > .block-editor-inner-blocks > .block-editor-block-list__layout > .site-footer__claim {
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	max-width: 19em;
	margin: 0;
}

.editor-styles-wrapper .site-footer__ask > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block-buttons {
	flex: 0 0 auto;
	justify-content: flex-end;
	width: auto;
	margin: 0;
}

.editor-styles-wrapper :is(.site-footer__grid, .tool__intro) > .block-editor-inner-blocks > .block-editor-block-list__layout > * {
	min-width: 0;
}

.editor-styles-wrapper .site-footer__bottom > .block-editor-inner-blocks > .block-editor-block-list__layout > p {
	flex: 0 1 auto;
	width: auto;
	margin: 0;
}

.editor-styles-wrapper .site-footer__bottom > .block-editor-inner-blocks > .block-editor-block-list__layout > p:nth-of-type(2) {
	flex: 1 1 100%;
	order: 4;
	font-size: 12px;
}

.editor-styles-wrapper .site-footer__bottom > .block-editor-inner-blocks > .block-editor-block-list__layout > .site-footer__credit {
	margin-left: auto;
}

@media (max-width: 1100px) {
	.editor-styles-wrapper .mi-contact-head > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block-buttons {
		flex-shrink: 1;
		max-width: 44%;
	}
}

@media (max-width: 767px) {
	.editor-styles-wrapper .mi-contact-head > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block-buttons {
		align-self: flex-start;
		max-width: 100%;
	}

	.editor-styles-wrapper .site-footer__ask > .block-editor-inner-blocks > .block-editor-block-list__layout > .site-footer__claim {
		flex: 0 1 auto;
		max-width: 100%;
	}

	.editor-styles-wrapper .site-footer__ask > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block-buttons {
		justify-content: flex-start;
	}

	.editor-styles-wrapper .site-footer__bottom > .block-editor-inner-blocks > .block-editor-block-list__layout > p {
		flex-basis: 100%;
	}

	.editor-styles-wrapper .site-footer__bottom > .block-editor-inner-blocks > .block-editor-block-list__layout > .site-footer__credit {
		margin-left: 0;
	}
}
