/**
 * Sekcja: hero listingu usług.
 * Figma 14559:9896 — sekcja 1440×1024, zdjęcie na całej wysokości, treść od y=216
 * w kolumnie 749, lead 456 w odstępie 50, akcje 50 pod leadem.
 * Tło pod zdjęciem jasne, bo nagłówek jest w kolorze ink (inaczej niż na home).
 */

.uslugi-hero {
	position: relative;
	min-height: 1024px;
	background-color: var(--color-surface-soft);
}

.uslugi-hero__bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.uslugi-hero__bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

/* Union 1 px na y=103 (14559:9899) — jak pozostałe photo-hero. */
.uslugi-hero__bg::before {
	content: "";
	position: absolute;
	top: 103px;
	right: 0;
	left: 0;
	z-index: 1;
	height: 1px;
	background-color: color-mix(in srgb, var(--color-white) 40%, transparent);
}

/* Woal z makiety 14559:9896 — rozjaśnienie lewej kolumny pod tytułem. */
.uslugi-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(171.62deg, rgba(255, 255, 255, 0.9) 11.876%, rgba(255, 255, 255, 0) 26.59%),
		linear-gradient(133.62deg, rgba(255, 255, 255, 0.9) 33.625%, rgba(255, 255, 255, 0) 53.051%),
		radial-gradient(52% 40% at 76% 62%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Ramka treści ma w Figmie 749 px, ale węzeł tytułu wystaje z niej na 871 px —
   i właśnie przy 871 nagłówek łamie się na trzy linie z makiety. Przy 749 wychodzi
   pięć linii i sekcja rośnie o 144 px. */
.uslugi-hero__inner {
	position: relative;
	max-width: 871px;
	padding-top: 216px;
	padding-bottom: 234px;
}

.uslugi-hero__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--fs-h1);
	font-weight: 400;
	line-height: var(--lh-heading);
	letter-spacing: var(--ls-heading);
	color: var(--color-ink);
}

.uslugi-hero__lead {
	max-width: 456px;
	margin: 50px 0 0;
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--color-ink);
}

.uslugi-hero__actions {
	display: flex;
	align-items: center;
	gap: 27px;
	margin-top: 50px;
}

@media (max-width: 1199px) {
	.uslugi-hero {
		min-height: 0;
	}

	.uslugi-hero__inner {
		padding-top: 200px;
		padding-bottom: 120px;
	}
}

@media (max-width: 767px) {
	.uslugi-hero__inner {
		padding-top: 160px;
		padding-bottom: 80px;
	}

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

/* ≤991: ten sam <img> schodzi pod treść. Pad-top zostaje (200 / 160) pod header. */
@media (max-width: 991px) {
	.uslugi-hero {
		display: flex;
		flex-direction: column;
		background-color: var(--color-white);
	}

	.uslugi-hero > * {
		min-width: 0;
	}

	.uslugi-hero__bg {
		position: relative;
		inset: auto;
		order: 2;
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 10;
	}

	.uslugi-hero__bg-img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		max-width: none;
		object-position: 72% 55%;
	}

	.uslugi-hero__bg::before,
	.uslugi-hero__bg::after {
		display: none;
	}

	.uslugi-hero__inner {
		padding-bottom: 32px;
	}
}
