.hero {
	--hero-min-height: clamp(37.5rem, 76vh, 50rem);

	position: relative;
	z-index: 10;
	display: grid;
	min-height: var(--hero-min-height);
	margin-block-end: 0;
	isolation: isolate;
	color: var(--color-white);
	background-color: var(--color-navy-950);
}

.hero--has-quick-links {
	margin-block-end: 0;
}

.hero__media,
.hero__overlay {
	position: absolute;
	inset: 0;
}

.hero__media {
	z-index: -3;
	overflow: hidden;
}

.hero__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero__overlay {
	z-index: -2;
	background:
		linear-gradient(
			0deg,
			rgba(8, 21, 48, 0.72) 0%,
			rgba(8, 21, 48, 0.28) 55%,
			rgba(8, 21, 48, 0.38) 100%
		),
		rgba(8, 21, 48, 0.2);
}

.hero__container {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100rem;
	margin-inline: auto;
	padding:
		clamp(6rem, 12vw, 10rem)
		clamp(1.25rem, 5vw, 6rem)
		clamp(7rem, 12vw, 9rem);
}

.hero__content {
	width: min(100%, 64rem);
	margin-inline: auto;
	text-align: center;
}

.hero__eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin: 0 0 1.25rem;
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
	width: 2.5rem;
	height: 0.1875rem;
	content: "";
	flex: 0 0 auto;
	background-color: var(--color-accent);
}

.hero__heading {
	max-width: 12ch;
	margin: 0 auto;
	color: inherit;
	font-family: var(--font-heading);
	font-size: clamp(3.75rem, 7vw, 7rem);
	font-weight: 800;
	line-height: 0.84;
	letter-spacing: -0.035em;
	text-wrap: balance;
	text-transform: uppercase;
}

.hero__description {
	max-width: 42rem;
	margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
	font-size: clamp(1rem, 1.25vw, 1.2rem);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.88);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	margin-top: clamp(2rem, 4vw, 3rem);
}

.hero .hero__actions .hero__secondary-link,
.hero .hero__actions .hero__secondary-link:visited {
	position: relative;
	z-index: 1;
	color: var(--color-white) !important;
	-webkit-text-fill-color: var(--color-white);
	text-decoration: none;
	border-color: rgba(255, 255, 255, 0.8);
	background-color: transparent;
}

.hero .hero__actions .hero__secondary-link:hover,
.hero .hero__actions .hero__secondary-link:focus,
.hero .hero__actions .hero__secondary-link:focus-visible,
.hero .hero__actions .hero__secondary-link:active {
	color: var(--color-navy-950) !important;
	-webkit-text-fill-color: var(--color-navy-950);
	border-color: var(--color-white);
	background-color: var(--color-white);
}

/*
 * Pasek szybkiej nawigacji — desktop.
 */
.hero__quick-navigation {
	position: absolute;
	z-index: 20;
	right: 50%;
	bottom: 0;
	width: min(calc(100% - 2.5rem), 70rem);
	color: var(--color-navy-950);
	background-color: var(--color-white);
	box-shadow: 0 1.25rem 3rem rgba(8, 21, 48, 0.18);
	transform: translate(50%, 50%);
}

.hero__quick-links {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.hero__quick-item {
	min-width: 0;
	margin: 0;
}

.hero__quick-item:not(:last-child) {
	border-right: 1px solid var(--color-border);
}

.hero__quick-link {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.75rem;
	min-height: 7rem;
	padding: 1rem 1.25rem;
	color: var(--color-navy-950);
	text-decoration: none;
	background-color: var(--color-white);
	transition:
		color 180ms ease,
		background-color 180ms ease;
}

.hero__quick-number {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	flex: 0 0 auto;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1;
	color: var(--color-accent);
	border: 1px solid var(--color-border);
	border-radius: 50%;
}

.hero__quick-label {
	min-width: 0;
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hero__quick-arrow {
	flex: 0 0 auto;
	transition: transform 180ms ease;
}

.hero__quick-link:hover,
.hero__quick-link:focus-visible {
	color: var(--color-white);
	background-color: var(--color-accent);
}

.hero__quick-link:hover .hero__quick-number,
.hero__quick-link:focus-visible .hero__quick-number {
	color: var(--color-white);
	border-color: rgba(255, 255, 255, 0.65);
}

.hero__quick-link:hover .hero__quick-arrow,
.hero__quick-link:focus-visible .hero__quick-arrow {
	transform: translateX(0.25rem);
}

@media (max-width: 63.99rem) {
	.hero__quick-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hero__quick-item:nth-child(2) {
		border-right: 0;
	}

	.hero__quick-item:nth-child(-n + 2) {
		border-bottom: 1px solid var(--color-border);
	}

	.hero__quick-link {
		min-height: 5.5rem;
	}
}

@media (max-width: 47.99rem) {
	/*
	 * Na mobile banner przestaje być absolutnie wysunięty.
	 * Znajduje się w normalnym układzie Hero, więc nie tworzy
	 * niewidzialnej przestrzeni przed kolejnym blokiem.
	 */
	.hero {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.hero__container {
		display: flex;
		flex: 0 0 auto;
		align-items: center;
		justify-content: center;
		min-height: 0;
		padding:
			4.5rem
			1.25rem
			3.5rem;
	}

	.hero__content {
		width: 100%;
	}

	.hero__eyebrow {
		gap: 0.5rem;
		font-size: 0.6875rem;
	}

	.hero__eyebrow::before,
	.hero__eyebrow::after {
		width: 1.5rem;
	}

	.hero__heading {
		max-width: 10ch;
		font-size: clamp(3.5rem, 16vw, 5.25rem);
		line-height: 0.96;
	}

	.hero__description {
		max-width: 32rem;
		font-size: 1rem;
		line-height: 1.55;
	}

	.hero__actions {
		align-items: stretch;
	}

	.hero__actions .button {
		justify-content: center;
		width: 100%;
	}

	.hero__quick-navigation {
		position: relative;
		z-index: 20;
		right: auto;
		bottom: auto;
		width: calc(100% - 2.5rem);
		margin: 0 auto;
		box-shadow: 0 1rem 2.5rem rgba(8, 21, 48, 0.2);
		transform: translateY(-2rem);
	}

	.hero__quick-links {
		grid-template-columns: 1fr;
	}

	.hero__quick-item,
	.hero__quick-item:nth-child(2) {
		border-right: 0;
	}

	.hero__quick-item:nth-child(-n + 2) {
		border-bottom: 0;
	}

	.hero__quick-item:not(:last-child) {
		border-right: 0;
		border-bottom: 1px solid var(--color-border);
	}

	.hero__quick-link {
		min-height: 6.25rem;
		padding: 1rem 1.5rem;
	}

	.hero__quick-number {
		width: 2.5rem;
		height: 2.5rem;
	}

	.hero__quick-label {
		font-size: 0.875rem;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.hero__image {
		animation: hero-image-reveal 900ms ease-out both;
	}

	.hero__content {
		animation: hero-content-reveal 650ms 150ms ease-out both;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero__quick-link,
	.hero__quick-arrow {
		transition: none;
	}
}

@keyframes hero-image-reveal {
	from {
		opacity: 0;
		transform: scale(1.04);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes hero-content-reveal {
	from {
		opacity: 0;
		transform: translateY(1.5/leather905rX);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}