.home-hero {
	--home-hero-aside-width: 443px;
	--home-hero-height: 503px;
	--home-hero-product-height: 296px;
	--home-hero-intro-padding-top: 48px;
	--home-hero-intro-padding-inline: max(var(--space-page-padding, 64px), calc((100vw - var(--container-max, 1312px)) / 2));
	--home-hero-panel-radius: var(--radius-hero-desktop, 150px);
	--home-hero-copy-gap: var(--space-lg, 24px);
	--home-hero-content-gap: var(--space-xl, 40px);
	--home-hero-title-size: clamp(var(--font-size-xl, 32px), calc(26.057px + 1.524vw), var(--font-size-2xl, 48px));
	--home-hero-description-size: clamp(var(--font-size-base, 16px), calc(15.257px + 0.19vw), var(--font-size-md, 18px));
	--home-hero-contact-title-size: clamp(20px, calc(15.543px + 1.143vw), var(--font-size-xl, 32px));
	--home-hero-contact-text-size: clamp(var(--font-size-base, 16px), calc(14.514px + 0.381vw), 20px);
	--home-hero-contact-link-size: clamp(var(--font-size-sm, 14px), calc(13.257px + 0.19vw), var(--font-size-base, 16px));
	--home-hero-title-width: 614px;
	--home-hero-description-width: 646px;
	--home-hero-product-padding: 32px;
	--home-hero-contact-padding: 32px;
	margin-top: var(--space-md, 16px);
	color: var(--color-text);
	font-family: var(--font-family-base, "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif);
}

.home-hero__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, var(--home-hero-aside-width));
	align-items: stretch;
	min-height: var(--home-hero-height);
}

.home-hero__intro {
	position: relative;
	min-width: 0;
	min-height: var(--home-hero-height);
	overflow: hidden;
	background: var(--color-surface-hero);
	border-radius: var(--home-hero-panel-radius) 0 0 0;
	isolation: isolate;
}

.home-hero__intro::after {
	position: absolute;
	z-index: 0;
	top: 245px;
	left: calc(100% - 381px);
	width: 381px;
	height: 584px;
	background: url("../../images/home-hero/background-mark.svg") center / 100% 100% no-repeat;
	content: "";
	pointer-events: none;
}

.home-hero__intro-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: var(--home-hero-content-gap);
	align-items: flex-start;
	justify-content: center;
	min-height: var(--home-hero-height);
	padding: var(--home-hero-intro-padding-top) var(--home-hero-intro-padding-inline) 0;
}

.home-hero__copy {
	display: grid;
	gap: var(--home-hero-copy-gap);
	max-width: var(--container-max, 1312px);
}

.home-hero__title,
.home-hero__description,
.home-hero__product-title,
.home-hero__contact-title,
.home-hero__contact-text {
	margin: 0;
	letter-spacing: 0;
}

.home-hero__title {
	max-width: var(--home-hero-title-width);
	color: var(--color-text);
	font-size: var(--home-hero-title-size);
	font-weight: 700;
	line-height: 1.07;
}

.home-hero__description {
	max-width: var(--home-hero-description-width);
	color: var(--color-text);
	font-size: var(--home-hero-description-size);
	font-weight: 500;
	line-height: 1.5;
}

.home-hero__cta {
	position: relative;
	z-index: 2;
}

.home-hero__aside {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: var(--home-hero-height);
}

.home-hero__products {
	position: relative;
	flex: 0 0 var(--home-hero-product-height);
	min-height: var(--home-hero-product-height);
	overflow: hidden;
	background: var(--color-neutral-darkest);
}

.home-hero__product {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--space-sm, 8px);
	padding: var(--home-hero-product-padding);
	color: var(--color-background);
	opacity: 0;
	transform: translateY(12px) scale(1.01);
	transition:
		opacity 520ms ease,
		transform 620ms ease;
	pointer-events: none;
}

.home-hero__product--active,
.home-hero__product--empty {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.home-hero__product-media {
	position: absolute;
	z-index: -2;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-background);
}

.home-hero__product-media::after {
	position: absolute;
	inset: 0;
	background: var(--color-overlay-strong);
	content: "";
}

.home-hero__product-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.home-hero__product-image--placeholder {
	width: 50%;
	height: 50%;
}

.home-hero__product-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-md, 16px);
}

.home-hero__product-badges {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: var(--product-card-badge-gap, 5px);
	align-items: flex-start;
	min-width: 0;
}

.home-hero__product-badge {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: var(--space-xs, 4px) 12px;
	background: var(--color-background);
	color: var(--color-text);
	font-size: var(--font-size-base, 16px);
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
	border-radius: var(--radius-md, 20px);
}

.home-hero__product-badge--sale {
	background: var(--color-badge-accent);
	color: var(--color-background);
}

.home-hero__cart {
	margin-left: auto;
}

.home-hero__product-link:focus-visible,
.home-hero__contact-link:focus-visible {
	outline: var(--stroke-border-width, 1px) solid currentColor;
	outline-offset: var(--space-xs, 4px);
}

.home-hero__product-copy {
	display: grid;
	gap: 10px;
}

.home-hero__product-title {
	color: var(--color-background);
	font-size: var(--font-size-base, 16px);
	font-weight: 400;
	line-height: 1.5;
}

.home-hero__product-link {
	display: inline-flex;
	gap: var(--space-sm, 8px);
	align-items: center;
	width: fit-content;
	color: var(--color-background);
	font-size: var(--font-size-base, 16px);
	font-weight: 500;
	line-height: 1.5;
	border-bottom: var(--stroke-border-width, 1px) solid transparent;
	text-decoration: none;
	transition:
		border-color 180ms ease,
		color 180ms ease,
		transform 180ms ease;
}

.home-hero__product-link-icon {
	display: block;
	width: 24px;
	height: 24px;
	background: currentColor;
	-webkit-mask: url("../../images/header/chevron-down.svg") center / 100% 100% no-repeat;
	mask: url("../../images/header/chevron-down.svg") center / 100% 100% no-repeat;
	transform: rotate(-90deg);
	transition: transform 180ms ease;
}

.home-hero__product-empty {
	margin: auto 0;
	color: var(--color-background);
	font-size: var(--font-size-base, 16px);
	line-height: 1.5;
}

.home-hero__contact {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--space-xl, 40px);
	min-height: 0;
	padding: var(--home-hero-contact-padding);
	background: var(--color-secondary);
	color: var(--color-surface-inverse-soft);
	border-radius: 0 0 var(--home-hero-panel-radius) 0;
}

.home-hero__contact-copy {
	display: grid;
	gap: 12px;
}

.home-hero__contact-title {
	color: var(--color-surface-inverse-soft);
	font-size: var(--home-hero-contact-title-size);
	font-weight: 600;
	line-height: 37px;
}

.home-hero__contact-text {
	color: var(--color-surface-inverse-soft);
	font-size: var(--home-hero-contact-text-size);
	font-weight: 400;
	line-height: 24px;
}

.home-hero__contact-links {
	display: flex;
	gap: var(--space-sm, 8px);
	align-items: center;
	max-width: 100%;
	color: var(--color-surface-inverse-soft);
	font-size: var(--home-hero-contact-link-size);
	font-weight: 400;
	line-height: 21px;
}

.home-hero__contact-link {
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.home-hero__contact-separator {
	display: block;
	flex: 0 0 4px;
	width: 4px;
	height: 15px;
}

@media (hover: hover) {
	.home-hero__product-link:hover {
		color: var(--color-secondary);
		border-bottom-color: var(--color-secondary);
	}

	.home-hero__product-link:hover .home-hero__product-link-icon {
		transform: rotate(-90deg);
	}

	.home-hero__contact-link:hover {
		text-decoration: underline;
		text-underline-offset: 3px;
	}
}

.home-hero__product-link:active {
	color: var(--color-text);
	border-bottom-color: var(--color-text);
}

@media (prefers-reduced-motion: reduce) {
	.home-hero__product,
	.home-hero__product-link,
	.home-hero__product-link-icon {
		transition: none;
	}
}

@media (max-width: 899px) {
	.home-hero {
		--home-hero-height: auto;
		--home-hero-product-height: 244px;
		--home-hero-intro-padding-top: 60px;
		--home-hero-intro-padding-inline: var(--space-page-padding, 20px);
		--home-hero-panel-radius: var(--radius-hero-mobile, 80px);
		--home-hero-content-gap: 32px;
		--home-hero-copy-gap: 20px;
		--home-hero-title-width: none;
		--home-hero-description-width: none;
		--home-hero-product-padding: 20px;
		--home-hero-contact-padding: 20px;
		margin-top: 0;
	}

	.home-hero__layout {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.home-hero__intro {
		min-height: 390px;
	}

	.home-hero__intro::after {
		top: 177px;
		left: calc(100% - 215px);
		width: 236px;
		height: 363px;
	}

	.home-hero__intro-inner {
		align-items: center;
		justify-content: center;
		min-height: 390px;
		padding-bottom: 46px;
		text-align: center;
	}

	.home-hero__copy {
		justify-items: center;
		width: 100%;
	}

	.home-hero__title,
	.home-hero__description {
		max-width: 100%;
	}

	.home-hero__aside {
		min-height: 0;
	}

	.home-hero__products {
		flex-basis: var(--home-hero-product-height);
		min-height: var(--home-hero-product-height);
	}

	.home-hero__contact {
		min-height: 158px;
		gap: 32px;
		border-radius: 0 0 var(--home-hero-panel-radius) 0;
	}

	.home-hero__contact-copy {
		gap: var(--space-xs, 4px);
	}

	.home-hero__contact-links {
		flex-wrap: wrap;
	}
}

.paltaja-home-hero-product-picker,
.paltaja-home-hero-product-picker__selected {
	display: grid;
	gap: var(--space-md, 16px);
}

.paltaja-home-hero-product-picker__search {
	position: relative;
	z-index: 10;
}

.paltaja-home-hero-product-picker__results {
	position: absolute;
	z-index: 20;
	top: calc(100% + var(--space-xs, 4px));
	right: 0;
	left: 0;
	display: grid;
	gap: var(--space-sm, 8px);
	max-height: 360px;
	padding: var(--space-sm, 8px);
	overflow-y: auto;
	background: var(--color-background);
	border: var(--stroke-border-width, 1px) solid var(--color-border);
	border-radius: var(--radius-sm, 8px);
	box-shadow: 0 12px 32px color-mix(in srgb, var(--color-text) 16%, transparent);
}

.paltaja-home-hero-product-picker__item,
.paltaja-home-hero-product-picker__selected-item {
	display: grid;
	gap: var(--space-sm, 8px);
	align-items: center;
	padding: var(--space-sm, 8px);
	border: var(--stroke-border-width, 1px) solid var(--color-border);
	border-radius: var(--radius-md, 20px);
	background: var(--color-background);
}

.paltaja-home-hero-product-picker__item {
	grid-template-areas:
		"image copy"
		"image action";
	grid-template-columns: 36px minmax(0, 1fr);
	align-items: start;
}

.paltaja-home-hero-product-picker__action.components-button {
	grid-area: action;
	justify-self: start;
	justify-content: center;
	width: 20px;
	min-width: 20px;
	height: 20px;
	min-height: 20px;
	padding: 0;
	font-size: 10px;
	line-height: 1;
}

.paltaja-home-hero-product-picker__status {
	grid-area: action;
	justify-self: start;
	color: var(--color-text-muted);
	font-size: 10px;
	line-height: 1.2;
}

.paltaja-home-hero-product-picker__image {
	grid-area: image;
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.paltaja-home-hero-product-picker__copy {
	grid-area: copy;
	display: grid;
	gap: var(--space-xs, 4px);
	min-width: 0;
	font-size: var(--font-size-sm, 14px);
	line-height: 1.35;
}

.paltaja-home-hero-product-picker__selected-item > span {
	overflow: visible;
	white-space: normal;
	overflow-wrap: anywhere;
}

.paltaja-home-hero-product-picker__copy strong {
	display: -webkit-box;
	overflow: hidden;
	text-overflow: ellipsis;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.paltaja-home-hero-product-picker__copy span {
	color: var(--color-text-muted);
	font-size: var(--font-size-xs, 12px);
	overflow-wrap: anywhere;
}

.paltaja-home-hero-product-picker__selected-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs, 4px);
}
