.sw-page-hero,
.sw-page-hero * {
	box-sizing: border-box;
}

.sw-page-hero {
	--sw-hero-height: 100vh;
	--sw-overlay-color: #0c211d;
	--sw-overlay-opacity: 0.34;
	--sw-tablet-overlay-opacity: 0.42;
	--sw-mobile-overlay-opacity: 0.5;
	--sw-desktop-focus: center center;
	--sw-tablet-focus: center center;
	--sw-mobile-focus: center center;
	--sw-scroll-duration: 1.2s;
	position: relative;
	display: flex;
	align-items: center;
	width: 100vw;
	min-height: max(600px, var(--sw-hero-height));
	min-height: max(600px, 100svh, var(--sw-hero-height));
	margin-inline: calc(50% - 50vw);
	overflow: hidden;
	isolation: isolate;
	background: #17332f;
	color: #fff;
	font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sw-page-hero__media,
.sw-page-hero__media img,
.sw-page-hero__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.sw-page-hero__media {
	z-index: 0;
	display: block;
	pointer-events: none;
}

.sw-page-hero__media img {
	display: block;
	object-fit: cover;
	object-position: var(--sw-desktop-focus);
	transform: scale(1.01);
}

.sw-page-hero__overlay {
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.42) 34%, rgba(0, 0, 0, 0.08) 72%, transparent 100%),
		var(--sw-overlay-color);
	opacity: var(--sw-overlay-opacity);
	pointer-events: none;
}

.sw-page-hero__container {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: flex-start;
	width: min(100% - 48px, 1280px);
	margin-inline: auto;
}

.sw-page-hero__content {
	max-width: 576px;
	padding-block: 112px 128px;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}

.sw-page-hero__eyebrow,
.sw-page-hero__heading,
.sw-page-hero__description,
.sw-page-hero__button {
	opacity: 0;
	animation: sw-hero-rise 0.72s ease-out forwards;
}

.sw-page-hero__eyebrow {
	margin: 0 0 20px;
	color: #c39160;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	animation-delay: 0.12s;
}

.sw-page-hero__heading {
	margin: 0;
	color: #fff;
	font-size: clamp(36px, 4.3vw, 60px);
	font-weight: 750;
	line-height: 1.06;
	letter-spacing: -0.035em;
	text-wrap: balance;
	animation-delay: 0.24s;
}

.sw-page-hero__description {
	max-width: 560px;
	margin: 24px 0 0;
	color: #f4f4f2;
	font-size: clamp(16px, 1.25vw, 18px);
	font-weight: 400;
	line-height: 1.7;
	text-wrap: pretty;
	animation-delay: 0.36s;
}

.sw-page-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 48px;
	margin-top: 28px;
	padding: 12px 26px;
	border: 1px solid rgba(255, 255, 255, 0.68);
	border-radius: 999px;
	background: #387e80;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.16);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
	animation-delay: 0.48s;
}

.sw-page-hero__button:hover,
.sw-page-hero__button:focus-visible {
	background: #2e686a;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
	color: #fff;
	transform: translateY(-2px);
}

.sw-page-hero__button:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.92);
	outline-offset: 4px;
}

.sw-page-hero__button-icon {
	flex: 0 0 auto;
	transition: transform 0.25s ease;
}

.sw-page-hero__button:hover .sw-page-hero__button-icon,
.sw-page-hero__button:focus-visible .sw-page-hero__button-icon {
	transform: translateX(4px);
}

.sw-page-hero__scroll {
	position: absolute;
	z-index: 2;
	bottom: max(22px, env(safe-area-inset-bottom));
	left: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.74);
	transform: translateX(-50%);
}

.sw-page-hero__scroll-label {
	font-size: 10px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.12em;
}

.sw-page-hero__scroll-line {
	display: block;
	width: 1px;
	height: 40px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	animation: sw-scroll-bob var(--sw-scroll-duration) ease-in-out infinite;
	will-change: transform;
}

@keyframes sw-hero-rise {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes sw-scroll-bob {
	0%,
	100% { transform: translateY(0); }
	50% { transform: translateY(16px); }
}

@media (min-width: 768px) and (max-width: 1180px) {
	.sw-page-hero {
		min-height: max(720px, var(--sw-hero-height));
	}

	.sw-page-hero__media img {
		object-position: var(--sw-tablet-focus);
		transform: none;
	}

	.sw-page-hero__overlay {
		background:
			linear-gradient(90deg, rgba(0, 0, 0, 0.64) 0%, rgba(0, 0, 0, 0.36) 48%, rgba(0, 0, 0, 0.08) 82%, transparent 100%),
			linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0%, transparent 42%),
			var(--sw-overlay-color);
		opacity: var(--sw-tablet-overlay-opacity);
	}

	.sw-page-hero__container {
		width: min(100% - 64px, 1120px);
	}

	.sw-page-hero__content {
		max-width: min(64vw, 480px);
		padding-block: 104px 112px;
	}

	.sw-page-hero__eyebrow {
		margin-bottom: 16px;
		font-size: 12px;
	}

	.sw-page-hero__heading {
		font-size: clamp(40px, 5.6vw, 46px);
		line-height: 1.07;
	}

	.sw-page-hero__description {
		max-width: 450px;
		margin-top: 22px;
		font-size: 15px;
		line-height: 1.65;
	}

	.sw-page-hero__button {
		min-height: 46px;
		margin-top: 24px;
		padding: 11px 22px;
		font-size: 13px;
	}
}

@media (max-width: 767px) {
	.sw-page-hero {
		min-height: max(600px, var(--sw-hero-height));
	}

	.sw-page-hero__media img {
		object-position: var(--sw-mobile-focus);
	}

	.sw-page-hero__overlay {
		background:
			linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.22) 100%),
			linear-gradient(0deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.22) 66%, rgba(0, 0, 0, 0.12) 100%),
			var(--sw-overlay-color);
		opacity: var(--sw-mobile-overlay-opacity);
	}

	.sw-page-hero__container {
		justify-content: center;
		width: calc(100% - 40px);
	}

	.sw-page-hero__content {
		width: 100%;
		max-width: 340px;
		padding-block: 72px 84px;
		text-align: center;
	}

	.sw-page-hero__eyebrow {
		margin-bottom: 16px;
		font-size: 12px;
	}

	.sw-page-hero__heading {
		font-size: clamp(34px, 9.6vw, 42px);
		line-height: 1.08;
		letter-spacing: -0.03em;
	}

	.sw-page-hero__description {
		max-width: 330px;
		margin: 20px auto 0;
		font-size: 15px;
		line-height: 1.62;
	}

	.sw-page-hero__button {
		min-height: 48px;
		margin-top: 24px;
		padding-inline: 24px;
	}

	.sw-page-hero__scroll {
		bottom: max(18px, env(safe-area-inset-bottom));
	}
}

@media (prefers-reduced-motion: reduce) {
	.sw-page-hero__eyebrow,
	.sw-page-hero__heading,
	.sw-page-hero__description,
	.sw-page-hero__button {
		opacity: 1;
		animation: none;
	}

	.sw-page-hero__button,
	.sw-page-hero__button-icon {
		transition: none;
	}

}
