/* BEM: hero — full-width banner image / slider (1920×600) */

.hero {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 5;
	max-height: 600px;
	min-height: 0;
	overflow: hidden;
	isolation: isolate;
	background-color: var(--color-section-bg);
}

.hero--banner-only {
	display: block;
	padding: 0;
}

.hero__bg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

/* Slider */
.hero--slider {
	touch-action: pan-y;
}

.hero-slider {
	position: absolute;
	inset: 0;
}

.hero-slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: scale(1.04);
	transition:
		opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
		transform 6s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
	pointer-events: none;
}

.hero-slider__slide.is-active {
	opacity: 1;
	transform: scale(1);
	pointer-events: auto;
	z-index: 1;
}

.hero-slider__slide.is-leaving {
	opacity: 0;
	z-index: 0;
}

/* Slider UI: arrows + progress bar */
.hero-slider__ui {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

.hero-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.42);
	border-radius: 50%;
	background: rgba(44, 34, 88, 0.28);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #FFFFFF;
	cursor: pointer;
	transition:
		transform var(--transition-btn),
		background var(--transition-btn),
		border-color var(--transition-btn);
	box-shadow: 0 8px 24px rgba(44, 34, 88, 0.18);
}

.hero-slider__arrow--prev {
	left: 18px;
}

.hero-slider__arrow--next {
	right: 18px;
}

.hero-slider__arrow:hover,
.hero-slider__arrow:focus-visible {
	transform: translateY(calc(-50% - 1px));
	background: rgba(108, 60, 255, 0.55);
	border-color: rgba(255, 255, 255, 0.65);
	outline: none;
}

.hero-slider__arrow-icon {
	display: block;
	width: 18px;
	height: 18px;
	background: #FFFFFF;
	mask: center / contain no-repeat;
}

.hero-slider__arrow--prev .hero-slider__arrow-icon {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.4 7.4 14 6l-6 6 6 6 1.4-1.4-4.6-4.6z'/%3E%3C/svg%3E");
}

.hero-slider__arrow--next .hero-slider__arrow-icon {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m8.6 16.6 1.4 1.4 6-6-6-6-1.4 1.4 4.6 4.6z'/%3E%3C/svg%3E");
}

.hero-slider__progress {
	position: absolute;
	left: 84px;
	right: 84px;
	bottom: 20px;
	display: flex;
	align-items: center;
	gap: 8px;
	pointer-events: auto;
}

.hero-slider__segment {
	flex: 1;
	min-width: 0;
	padding: 8px 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.hero-slider__segment-track {
	display: block;
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.34);
	overflow: hidden;
}

.hero-slider__segment-fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, #6C3CFF 0%, #F33FA6 100%);
}

.hero-slider__segment.is-complete .hero-slider__segment-fill {
	width: 100%;
	animation: none;
}

.hero-slider__segment.is-active .hero-slider__segment-fill {
	animation: hero-segment-progress var(--hero-interval, 5s) linear forwards;
}

.hero-slider__segment:hover .hero-slider__segment-track,
.hero-slider__segment:focus-visible .hero-slider__segment-track {
	background: rgba(255, 255, 255, 0.5);
}

.hero-slider__segment:focus-visible {
	outline: none;
}

.hero-slider__segment:focus-visible .hero-slider__segment-track {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
}

@keyframes hero-segment-progress {
	from { width: 0; }
	to { width: 100%; }
}

@media (max-width: 767px) {
	.hero-slider__arrow {
		width: 32px;
		height: 32px;
		box-shadow: 0 4px 12px rgba(44, 34, 88, 0.16);
	}

	.hero-slider__arrow--prev {
		left: 8px;
	}

	.hero-slider__arrow--next {
		right: 8px;
	}

	.hero-slider__arrow-icon {
		width: 14px;
		height: 14px;
	}

	.hero-slider__progress {
		left: 48px;
		right: 48px;
		bottom: 10px;
		gap: 4px;
	}

	.hero-slider__segment {
		padding: 6px 0;
	}

	.hero-slider__segment-track {
		height: 3px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-slider__slide {
		transition: opacity 0.35s ease;
		transform: none;
	}

	.hero-slider__slide.is-active {
		transform: none;
	}

	.hero-slider__segment.is-active .hero-slider__segment-fill {
		animation: none;
	}
}
