/* Hero slider — шаблон news.list/slider (newgold_lux) */

.lux-hero-slider .banner {
	position: absolute;
	inset: 0;
	border-radius: var(--r-lg);
	overflow: hidden;
}

.lux-hero-slider .banner svg {
	width: 100%;
	height: 100%;
	display: block;
}

.lux-hero-slider .banner-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: inherit;
}

.lux-hero-slider .hero {
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 14px;
	aspect-ratio: 3 / 1;
	margin-bottom: 18px;
}

.lux-hero-slider .hero .slide-main {
	grid-row: span 2;
	position: relative;
	display: block;
	border-radius: var(--r-lg);
	overflow: hidden;
}

.lux-hero-slider .hero .slide-side {
	position: relative;
	display: block;
	border-radius: var(--r-lg);
	overflow: hidden;
}

.lux-hero-slider .hero-indicator {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 56px;
	padding-top: 6px;
}

.lux-hero-slider {
	--lux-hero-rotate: 5s;
	margin-top: 10px;
}

.lux-hero-slider .hero-indicator .dash {
	position: relative;
	width: 28px;
	height: 2px;
	background: var(--rule-strong);
	border-radius: 2px;
	cursor: pointer;
	flex-shrink: 0;
	overflow: hidden;
	transition: width var(--t);
}

.lux-hero-slider .hero-indicator .dash.active {
	width: 44px;
}

.lux-hero-slider .hero-indicator .dash-fill {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 0;
	background: var(--ink);
	border-radius: inherit;
	pointer-events: none;
}

.lux-hero-slider .hero-indicator .dash.active .dash-fill {
	animation: lux-hero-dash-progress var(--lux-hero-rotate) linear forwards;
}

.lux-hero-slider.is-paused .hero-indicator .dash.active .dash-fill {
	animation-play-state: paused;
}

@keyframes lux-hero-dash-progress {
	from { width: 0%; }
	to { width: 100%; }
}

.lux-hero-slider .hero .slide-hidden {
	display: none !important;
}

/* Планшет: крупный баннер сверху, два боковых снизу */
@media (max-width: 900px) {
	.lux-hero-slider .hero {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto;
		height: auto;
		aspect-ratio: auto;
	}

	.lux-hero-slider .hero .slide-main {
		grid-row: span 1;
		grid-column: span 2;
		aspect-ratio: 2 / 1;
	}

	.lux-hero-slider .hero .slide-side {
		aspect-ratio: 2 / 1;
	}
}

@media (max-width: 720px) {
	.lux-hero-slider .hero {
		display: block;
		height: auto;
		aspect-ratio: auto;
		margin: 0 0 12px;
		padding: 0;
		gap: 0;
		overflow: visible;
	}

	.lux-hero-slider .hero .slide-main {
		display: block;
		width: 100%;
		aspect-ratio: 2 / 1;
		grid-row: auto !important;
		grid-column: auto !important;
	}

	.lux-hero-slider .hero .slide-side {
		display: none;
	}
}
