.hero-compare {
	position: relative;
	height: 670px;
	width: 100%;
}

.hero-compare__pairs,
.hero-compare__pair,
.hero-compare__layers {
	height: 100%;
}

.hero-compare__pair {
	display: none;
}

.hero-compare__pair.is-active {
	display: block;
}

.hero-compare__layers {
	position: relative;
	overflow: hidden;
	cursor: col-resize;
	user-select: none;
	touch-action: pan-y pinch-zoom;
}

.hero-compare__layers.is-dragging {
	cursor: grabbing;
}

.hero-compare__photo {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	z-index: 1;
}

.hero-compare__reveal {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 50%;
	overflow: hidden;
	z-index: 2;
}

.hero-compare__sketch {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
	filter: grayscale(1) contrast(0.82) brightness(1.12);
}

.hero-compare__handle {
	position: absolute;
	top: 0;
	left: 50%;
	width: 66px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	transform: translateX(-50%);
	z-index: 10;
	cursor: grab;
	touch-action: pan-y pinch-zoom;
	pointer-events: none;
	overflow: visible;
}

.hero-compare__handle::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 2px;
	height: 100%;
	background: #fff;
	transform: translateX(-50%);
	z-index: 0;
}

.hero-compare__layers.is-dragging .hero-compare__handle {
	cursor: grabbing;
}

.hero-compare__handle-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 66px;
	height: 66px;
	border-radius: 50%;
	background: #f44611;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	line-height: 0;
	padding-top: 0;
	pointer-events: none;
	z-index: 1;
	box-shadow: 0 0 0 2px #fff;
}

.hero-compare__handle-chevron {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 0.55em;
	height: 0.55em;
	font-size: 32px;
	font-weight: 300;
	line-height: 1;
	color: #fff;
	transform: translateY(-2px);
}

.hero-compare__nav {
	position: absolute;
	bottom: 28px;
	right: clamp(20px, 4vw, 40px);
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 12px;
}

.hero-compare__arrow {
	width: 44px;
	height: 44px;
	border: 1px solid #fff;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
	padding: 0;
}

.hero-compare__arrow:hover,
.hero-compare__arrow:focus {
	background: rgba(0, 0, 0, 0.55);
}

.hero-compare__counter {
	color: #fff;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero-compare__hint {
	position: absolute;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%);
	z-index: 6;
	margin: 0;
	padding: 0;
	max-width: min(92%, 520px);
	font-family: "Helvetica Neue", Arial, sans-serif;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0.04em;
	text-align: center;
	text-transform: none;
	color: #f44611;
	text-shadow: 0 1px 4px rgba(255, 255, 255, 1),
		0 2px 12px rgba(255, 255, 255, 1),
		0 0 16px rgba(255, 255, 255, 1),
		0 0 32px rgba(255, 255, 255, 1),
		0 0 56px rgba(255, 255, 255, 1),
		0 0 88px rgba(255, 255, 255, 0.96);
	pointer-events: none;
}

.hero-compare__hint-line {
	display: block;
}

.hero-compare__hint-line--action {
	font-size: clamp(18px, 2.1vw, 26px);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
}

.hero-compare__hint-line--result {
	margin-top: 0.2em;
	font-size: clamp(18px, 2.5vw, 24px);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

@media (max-width: 900px) {
	.hero-compare {
		height: 520px;
	}

	.hero-compare__hint {
		bottom: 16px;
	}

	.hero-compare__hint-line--action {
		font-size: clamp(16px, 4.5vw, 22px);
	}

	.hero-compare__hint-line--result {
		font-size: clamp(12px, 3.2vw, 15px);
	}
}

/* Keep the sketch anchored on the left on every screen size. */
