/**
 * Sekcja: hero „O firmie".
 * Figma 14559:25993 — sekcja 1440×1024, zdjęcie na całej powierzchni, dwie linie
 * 1 px na wysokości 104 i 945, treść od y=236 w kolumnie 749, lead 428 w odstępie 50,
 * akcje 56 px w odstępie 50 pod leadem.
 *
 * Nagłówek jest overlay jak w makiecie — treść od y=236.
 */

.about-hero {
	--about-hero-pad-top: 236px;

	position: relative;
	overflow: hidden;
	min-height: 1024px;
	background-color: var(--color-surface-soft);
}

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

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

/* Woal: dwie duże, rozmyte elipsy z makiety (14559:25995 i 14559:26027) plus
   poziomy przemiał w stronę bieli, żeby tekst trzymał kontrast na zdjęciu. */
.about-hero__veil {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(
			57% 40% at 78% 22%,
			color-mix(in srgb, var(--color-white) 80%, transparent) 0%,
			transparent 72%
		),
		radial-gradient(
			57% 40% at 26% 57%,
			color-mix(in srgb, var(--color-white) 88%, transparent) 0%,
			transparent 74%
		),
		linear-gradient(
			90deg,
			color-mix(in srgb, var(--color-white) 80%, transparent) 0%,
			color-mix(in srgb, var(--color-white) 46%, transparent) 52%,
			color-mix(in srgb, var(--color-white) 18%, transparent) 100%
		);
}

.about-hero__rule {
	position: absolute;
	inset-inline: 0;
	z-index: 2;
	height: 1px;
	background-color: var(--color-hairline-light);
}

.about-hero__rule--top {
	top: 104px;
}

.about-hero__rule--bottom {
	bottom: 79px;
}

.about-hero__inner {
	position: relative;
	max-width: 749px;
	padding-top: var(--about-hero-pad-top);
	padding-bottom: var(--space-section);
}

.about-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);
}

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

/* Odstęp 27 px z makiety: przycisk 281 + 27 + link 121 = rząd 429 (14559:25989). */
.about-hero__actions {
	display: flex;
	align-items: center;
	gap: 27px;
	margin-top: 50px;
	flex-wrap: wrap;
}

@media (max-width: 991px) {
	.about-hero {
		/* Nagłówek ma 186 px przy 991 (nie 168). 212 = spód nagłówka + 26. */
		--about-hero-pad-top: 212px;

		min-height: 0;
	}

	.about-hero__inner {
		max-width: none;
	}

	.about-hero__lead {
		margin-top: var(--space-md);
	}

	.about-hero__actions {
		margin-top: var(--space-md);
	}

	.about-hero__rule--bottom {
		display: none;
	}
}

@media (max-width: 767px) {
	.about-hero {
		--about-hero-pad-top: 140px;
	}
}

/* ≤991: zdjęcie pod tekstem. Pad-top 212 / 140 zostaje — czyści header 188 / 106 px. */
@media (max-width: 991px) {
	.about-hero {
		display: flex;
		flex-direction: column;
		background-color: var(--color-white);
	}

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

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

	.about-hero__bg-img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		max-width: none;
		object-position: center 42%;
	}

	.about-hero__veil,
	.about-hero__rule {
		display: none;
	}

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