/* ==========================================================================
   Двери Центр — слайдер на главной [dc_hero]
   ========================================================================== */
.dc-hero {
	--h-gap: 20px;
	--h-radius: 20px;
	--h-nav: 56px;
	display: grid;
	grid-template-columns: 270px minmax(0, 1.77fr) minmax(0, 1fr);
	gap: var(--h-gap);
	align-items: stretch;
	margin: 0 0 8px;
	padding-top: var(--h-gap);
	font-family: var(--dc-font, Manrope, sans-serif);
}
/* Место под открытое меню «Каталог товаров» на главной */
.dc-hero__spacer { min-height: 1px; }
.dc-hero__tab { min-width: 0 !important; }

/* ---------- Большой слайдер ---------- */
.dc-hero__main {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	border-radius: var(--h-radius);
	overflow: hidden;
	background: #10100F;
	box-shadow: 0 18px 44px rgba(16, 16, 15, .18);
	isolation: isolate;
}
.dc-hero__track {
	position: relative;
	aspect-ratio: 1024 / 724;
	overflow: hidden;
	touch-action: pan-y;
}
.dc-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transform: scale(1.035);
	transition: opacity .7s var(--dc-ease), transform 1.2s var(--dc-ease), visibility 0s .7s;
}
.dc-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .7s var(--dc-ease), transform 1.2s var(--dc-ease), visibility 0s;
	z-index: 1;
}
.dc-hero__link { display: block; width: 100%; height: 100%; }
.dc-hero__slide img,
.dc-hero__card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	-webkit-user-drag: none;
	user-select: none;
}

/* Панель навигации: вкладки с прогрессом + стрелки */
.dc-hero__nav {
	display: flex;
	align-items: center;
	gap: 12px;
	height: var(--h-nav);
	padding: 0 12px 0 18px;
	background: var(--dc-dark-ui, #474A50);
	border-top: 1px solid rgba(255, 255, 255, .06);
}
.dc-hero__tabs {
	flex: 1;
	min-width: 0;
	display: flex;
	gap: 14px;
}
.dc-hero__tab {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 6px 0 !important;
	margin: 0 !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: rgba(255, 255, 255, .76) !important;
	font: 700 13px/1.1 var(--dc-font) !important;
	letter-spacing: .01em;
	text-transform: none !important;
	text-align: left;
	cursor: pointer;
	transition: color .2s;
	min-height: 0 !important;
	width: auto !important;
	max-width: none !important;
	line-height: 1.1 !important;
}
.dc-hero__tab:hover,
.dc-hero__tab.is-active { color: #fff !important; }
.dc-hero__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-hero__bar {
	position: relative;
	display: block;
	height: 3px;
	border-radius: 3px;
	background: rgba(255, 255, 255, .16);
	overflow: hidden;
}
.dc-hero__bar i {
	position: absolute;
	inset: 0;
	background: #DF1921;
	transform: scaleX(0);
	transform-origin: left;
}
.dc-hero__tab.is-done .dc-hero__bar i { transform: scaleX(1); background: rgba(255, 255, 255, .45); }
.dc-hero__tab.is-active .dc-hero__bar i {
	animation: dc-hero-progress var(--dc-hero-interval, 6000ms) linear forwards;
}
.dc-hero.is-paused .dc-hero__tab.is-active .dc-hero__bar i { animation-play-state: paused; }
@keyframes dc-hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.dc-hero__arrows { display: flex; gap: 8px; flex: none; }
.dc-hero__arrow {
	display: grid !important;
	place-items: center;
	width: 38px !important;
	height: 38px !important;
	min-height: 0 !important;
	padding: 0 !important;
	border-radius: 50% !important;
	border: 1px solid rgba(255, 255, 255, .18) !important;
	background: transparent !important;
	color: #fff !important;
	cursor: pointer;
	transition: background .2s, border-color .2s, transform .2s;
}
.dc-hero__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dc-hero__arrow:hover { background: #DF1921 !important; border-color: #DF1921 !important; transform: scale(1.06); }
.dc-hero__arrow:focus-visible,
.dc-hero__tab:focus-visible { outline: 2px solid #FF5A60; outline-offset: 3px; }

/* ---------- Карточка справа ---------- */
.dc-hero__side {
	position: relative;
	min-width: 0;
	border-radius: var(--h-radius);
	overflow: hidden;
	background: #10100F;
	box-shadow: 0 18px 44px rgba(16, 16, 15, .18);
}
.dc-hero__card {
	position: absolute;
	inset: 0;
	display: block;
	opacity: 0;
	visibility: hidden;
	transition: opacity .8s var(--dc-ease), visibility 0s .8s;
}
.dc-hero__card.is-active { opacity: 1; visibility: visible; transition: opacity .8s var(--dc-ease), visibility 0s; z-index: 1; }
.dc-hero__card img { object-position: 50% 0; }
.dc-hero__dots {
	position: absolute;
	z-index: 3;
	top: 14px;
	right: 14px;
	display: flex;
	gap: 6px;
	padding: 6px 8px;
	border-radius: 999px;
	background: rgba(16, 16, 15, .55);
	backdrop-filter: blur(6px);
}
.dc-hero__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .45); transition: width .3s, background .3s; }
.dc-hero__dots i.is-active { width: 20px; border-radius: 4px; background: #DF1921; }

/* Наведение: лёгкий подъём */
@media (hover: hover) {
	.dc-hero__main, .dc-hero__side { transition: transform .3s var(--dc-ease), box-shadow .3s var(--dc-ease); }
	.dc-hero__side:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(16, 16, 15, .24); }
}

/* ---------- Меню каталога на главной — та же высота и скругления ---------- */
@media (min-width: 1025px) {
	body.dc-has-hero .header-categories-nav .categories-menu-dropdown {
		border-radius: 0 0 var(--h-radius, 20px) var(--h-radius, 20px);
	}
	body.dc-has-hero .header-categories-nav .categories-menu-dropdown > ul,
	body.dc-has-hero .header-categories-nav .categories-menu-dropdown > div > ul {
		display: flex;
		flex-direction: column;
		min-height: var(--dc-hero-h, auto);
	}
	body.dc-has-hero .header-categories-nav .categories-menu-dropdown .item-level-0 { flex: 1 1 auto; display: flex; flex-direction: column; }
	body.dc-has-hero .header-categories-nav .categories-menu-dropdown .item-level-0 > a { flex: 1; display: flex; align-items: center; }
}

/* Без места под меню */
.dc-hero--nomenu { grid-template-columns: minmax(0, 1.77fr) minmax(0, 1fr); }
.dc-hero--nomenu .dc-hero__spacer { display: none; }

/* ---------- Планшет: меню каталога скрыто ---------- */
@media (max-width: 1024px) {
	.dc-hero { grid-template-columns: minmax(0, 1.77fr) minmax(0, 1fr); --h-gap: 16px; }
	.dc-hero__spacer { display: none; }
}

/* ---------- Телефон: слайдер на всю ширину, две карточки рядом ---------- */
@media (max-width: 767px) {
	.dc-hero { grid-template-columns: 1fr 1fr; --h-gap: 12px; --h-radius: 16px; --h-nav: 30px; }
	.dc-hero__main { grid-column: 1 / -1; }
	.dc-hero__nav { padding: 0 16px; }
	.dc-hero__label, .dc-hero__arrows { display: none; }
	.dc-hero__tabs { gap: 6px; }
	.dc-hero__tab { gap: 0; padding: 12px 0 !important; }
	.dc-hero__side { display: contents; }
	.dc-hero__card {
		position: relative;
		opacity: 1;
		visibility: visible;
		aspect-ratio: 725 / 1024;
		border-radius: var(--h-radius);
		overflow: hidden;
		box-shadow: 0 10px 26px rgba(16, 16, 15, .16);
	}
	.dc-hero__dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.dc-hero__slide, .dc-hero__card { transition: none !important; transform: none !important; }
	.dc-hero__tab.is-active .dc-hero__bar i { animation: none; transform: scaleX(1); }
}
