/*
 * Maurer – Baner główny (Hero).
 * Desktop 1:1 z makiety audytu UX (sklepmaurera-redesign.html, sekcja HERO).
 * Selektory są dwuklasowe, żeby wygrać ze stylami motywu i kitu Elementora.
 */

@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 600 700;
	font-display: swap;
	src: url("../fonts/playfair-display-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 600 700;
	font-display: swap;
	src: url("../fonts/playfair-display-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 700;
	font-stretch: 100%;
	font-display: swap;
	src: url("../fonts/open-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 700;
	font-stretch: 100%;
	font-display: swap;
	src: url("../fonts/open-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.mh-hero {
	--mh-bg-from: #3a5a1e;
	--mh-bg-mid: #5b8a3c;
	--mh-bg-to: #7aa85a;
	--mh-accent: #d4a74b;
	--mh-font-display: "Playfair Display", Georgia, serif;
	--mh-font-body: "Open Sans", Arial, sans-serif;
	--mh-radius: 8px;

	position: relative;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 480px;
	margin: 0;
	overflow: hidden;
	background: linear-gradient(135deg, var(--mh-bg-from) 0%, var(--mh-bg-mid) 40%, var(--mh-bg-to) 100%);
	color: #fff;
	font-family: var(--mh-font-body);
	container-type: inline-size;
}

.mh-hero *,
.mh-hero *::before,
.mh-hero *::after {
	box-sizing: border-box;
}

.mh-hero-wrap > .mh-hero,
.mh-hero-wrap > .mh-usp {
	margin-top: 0;
	margin-bottom: 0;
}

.mh-hero .mh-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1260px;
	margin: 0 auto;
	padding: 60px 24px;
}

.mh-hero .mh-hero__content {
	max-width: min(540px, calc(50vw - 56px));
	max-width: min(540px, calc(50cqw - 56px));
}

.mh-hero--no-image .mh-hero__content {
	max-width: 640px;
}

.mh-hero .mh-hero__eyebrow {
	margin: 0 0 16px;
	padding: 0;
	font-family: var(--mh-font-display);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--mh-accent);
}

.mh-hero .mh-hero__title {
	margin: 0 0 8px;
	padding: 0;
	font-family: var(--mh-font-display);
	font-size: 48px;
	font-weight: 700;
	font-style: normal;
	line-height: 1.15;
	letter-spacing: normal;
	text-transform: none;
	color: #fff;
}

.mh-hero .mh-hero__lede {
	margin: 0 0 32px;
	padding: 0;
	font-family: var(--mh-font-body);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: normal;
	color: rgba(255, 255, 255, 0.85);
}

.mh-hero .mh-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}

.mh-hero .mh-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: var(--mh-radius);
	font-family: var(--mh-font-body);
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.mh-hero .mh-hero__btn--primary {
	padding: 15px 36px;
	border: 0;
	background: var(--mh-accent);
	color: #1a1a1a;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.3px;
}

.mh-hero .mh-hero__btn--primary:hover,
.mh-hero .mh-hero__btn--primary:focus-visible {
	background: var(--mh-accent);
	color: #1a1a1a;
	filter: brightness(1.07);
	transform: translateY(-1px);
}

.mh-hero .mh-hero__btn--secondary {
	padding: 13px 28px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	background: transparent;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: normal;
}

.mh-hero .mh-hero__btn--secondary:hover,
.mh-hero .mh-hero__btn--secondary:focus-visible {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.mh-hero .mh-hero__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Cechy z ptaszkami w kółeczku w kolorze akcentu: na desktopie obok siebie, na mobile pod sobą. */
.mh-hero .mh-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	font-family: var(--mh-font-body);
	font-size: 13px;
	line-height: 1.4;
	font-weight: 400;
	color: #fff;
}

.mh-hero .mh-hero__trust li {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 600;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mh-hero .mh-hero__trust li::before {
	content: "\2713";
	display: inline-flex;
	flex: 0 0 16px;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--mh-accent);
	color: #1a1a1a;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	text-shadow: none;
}

.mh-hero .mh-hero__media {
	position: absolute;
	z-index: 1;
	top: 0;
	right: 0;
	bottom: 0;
	width: 50%;
	margin: 0;
	background: rgba(0, 0, 0, 0.15);
}

.mh-hero .mh-hero__media picture {
	display: block;
	width: 100%;
	height: 100%;
}

.mh-hero .mh-hero__img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	object-position: center;
}

/* Miękkie przejście: lewa krawędź zdjęcia staje się przezroczysta i odsłania ten sam gradient tła. */
.mh-hero--edge-soft .mh-hero__media {
	background: none;
	-webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, 0.35) 9%, #000 24%);
	mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, 0.35) 9%, #000 24%);
}

.mh-hero--edge-card .mh-hero__media {
	top: 24px;
	right: 24px;
	bottom: 24px;
	width: calc(50% - 24px);
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* Gdy kolumna tekstu jest za wąska na 3 cechy w jednej linii, układ pod sobą zamiast łamania 2 + 1. */
@container (max-width: 1139px) {
	.mh-hero .mh-hero__trust {
		flex-direction: column;
		gap: 6px;
	}
}

@media (max-width: 1023px) {
	.mh-hero .mh-hero__title {
		font-size: 40px;
	}

	.mh-hero .mh-hero__lede {
		font-size: 18px;
	}
}

@media (max-width: 767px) {
	/* Na telefonie baner i pasek od krawędzi do krawędzi, niezależnie od paddingu kontenera Elementora/motywu. */
	.mh-hero-wrap {
		position: relative;
		width: 100vw;
		max-width: 100vw;
		margin-right: calc(50% - 50vw);
		margin-left: calc(50% - 50vw);
	}

	.mh-hero {
		display: block;
		min-height: 0;
	}

	.mh-hero .mh-hero__inner {
		padding: 40px 20px 32px;
	}

	.mh-hero .mh-hero__content,
	.mh-hero--no-image .mh-hero__content {
		max-width: none;
	}

	.mh-hero .mh-hero__eyebrow {
		margin-bottom: 12px;
		font-size: 12px;
		letter-spacing: 2.5px;
	}

	.mh-hero .mh-hero__title {
		font-size: 34px;
		line-height: 1.15;
	}

	.mh-hero .mh-hero__lede {
		margin-bottom: 24px;
		font-size: 17px;
	}

	.mh-hero .mh-hero__lede br {
		display: none;
	}

	.mh-hero .mh-hero__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.mh-hero .mh-hero__btn {
		width: 100%;
	}

	.mh-hero .mh-hero__trust {
		flex-direction: column;
		gap: 7px;
		margin-top: 20px;
		font-size: 14px;
	}

	.mh-hero .mh-hero__trust li {
		gap: 9px;
		line-height: 1.35;
	}

	.mh-hero .mh-hero__trust li::before {
		flex-basis: 18px;
		width: 18px;
		height: 18px;
		font-size: 11px;
	}

	.mh-hero .mh-hero__media {
		position: relative;
		width: 100%;
		aspect-ratio: 4 / 3;
	}

	.mh-hero--edge-soft .mh-hero__media {
		margin-top: -32px;
		/* Przejście w px (nie %), żeby na każdym telefonie zielony „oddech” pod cechami był taki sam. */
		-webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 36px, rgba(0, 0, 0, 0.3) 84px, #000 156px);
		mask-image: linear-gradient(to bottom, transparent 0, transparent 36px, rgba(0, 0, 0, 0.3) 84px, #000 156px);
	}

	.mh-hero--edge-card .mh-hero__media {
		top: auto;
		right: auto;
		bottom: auto;
		width: auto;
		margin: 0 20px 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mh-hero .mh-hero__btn {
		transition: none;
	}

	.mh-hero .mh-hero__btn--primary:hover,
	.mh-hero .mh-hero__btn--primary:focus-visible {
		transform: none;
	}
}

/*
 * Pasek korzyści pod banerem – makieta audytu, sekcja USP BAR (#18).
 * Ikony SVG zamiast emoji, żeby wyglądały tak samo na każdym systemie.
 */
.mh-usp {
	--mh-usp-bg: #faf8f3;
	--mh-usp-border: #e5e5e0;
	--mh-usp-text: #2d2d2d;
	--mh-usp-muted: #5f5f5f;
	--mh-usp-icon: #5b8a3c;

	box-sizing: border-box;
	width: 100%;
	margin: 0;
	border-bottom: 1px solid var(--mh-usp-border);
	background: var(--mh-usp-bg);
	font-family: "Open Sans", Arial, sans-serif;
}

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

.mh-usp .mh-usp__list {
	display: flex;
	align-items: stretch;
	justify-content: center;
	max-width: 1260px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.mh-usp .mh-usp__item {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 18px 20px;
	border-right: 1px solid var(--mh-usp-border);
	list-style: none;
}

.mh-usp .mh-usp__item:last-child {
	border-right: 0;
}

.mh-usp .mh-usp__item::before {
	content: none;
}

.mh-usp .mh-usp__icon {
	display: inline-flex;
	flex: 0 0 auto;
	color: var(--mh-usp-icon);
}

.mh-usp .mh-usp__icon svg {
	display: block;
	width: 36px;
	height: 36px;
}

.mh-usp .mh-usp__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.mh-usp .mh-usp__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--mh-usp-text);
}

.mh-usp .mh-usp__text {
	margin-top: 1px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--mh-usp-muted);
}

.mh-usp .mh-usp__text[hidden] {
	display: none;
}

@media (max-width: 767px) {
	.mh-usp .mh-usp__list {
		flex-wrap: wrap;
	}

	/* Ikona nad tekstem, wycentrowane: tekst ma całą szerokość kafelka, więc może być większy bez łamania tytułów. */
	.mh-usp .mh-usp__item {
		flex: 1 1 50%;
		flex-direction: column;
		justify-content: flex-start;
		align-items: center;
		gap: 10px;
		padding: 22px 10px 20px;
		border-bottom: 1px solid var(--mh-usp-border);
		text-align: center;
	}

	.mh-usp .mh-usp__item:nth-child(2n) {
		border-right: 0;
	}

	.mh-usp .mh-usp__item:nth-last-child(-n+2):nth-child(2n+1),
	.mh-usp .mh-usp__item:nth-last-child(-n+2):nth-child(2n+1) ~ .mh-usp__item,
	.mh-usp .mh-usp__item:last-child {
		border-bottom: 0;
	}

	.mh-usp .mh-usp__body {
		align-items: center;
	}

	.mh-usp .mh-usp__icon svg {
		width: 40px;
		height: 40px;
	}

	.mh-usp .mh-usp__title {
		font-size: 15px;
		line-height: 1.3;
	}

	.mh-usp .mh-usp__text {
		margin-top: 3px;
		font-size: 13px;
		line-height: 1.35;
	}
}
