/* Хедер поверх слайдера на главной */
body.kuznetsov-hero-overlay #masthead {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: transparent;
	border-bottom: none;
}
body.kuznetsov-hero-overlay #masthead .main-header-bar,
body.kuznetsov-hero-overlay #masthead .ast-primary-header-bar,
body.kuznetsov-hero-overlay #masthead .ast-mobile-header-wrap,
body.kuznetsov-hero-overlay #masthead .ast-site-identity {
	background: transparent !important;
	border-bottom: none;
}
body.kuznetsov-hero-overlay #masthead .main-header-bar .ast-container,
body.kuznetsov-hero-overlay #masthead .ast-primary-header-bar .ast-container,
body.kuznetsov-hero-overlay #masthead .main-header-bar-wrap {
	padding-top: 0.25rem !important;
	padding-bottom: 0.25rem !important;
}
body.kuznetsov-hero-overlay #masthead .site-title a img {
	filter: brightness(0) invert(1);
}
body.kuznetsov-hero-overlay #masthead .main-header-menu .menu-link,
body.kuznetsov-hero-overlay #masthead .ast-mobile-popup-drawer .menu-link {
	color: #fff;
}
body.kuznetsov-hero-overlay .kuznetsov-header-contacts .kuznetsov-header-phone,
body.kuznetsov-hero-overlay .kuznetsov-header-contacts .kuznetsov-header-telegram {
	color: #fff;
}
body.kuznetsov-hero-overlay .kuznetsov-header-contacts .kuznetsov-header-telegram svg {
	fill: #fff;
}
body.kuznetsov-hero-overlay #masthead .main-header-menu .menu-link:hover,
body.kuznetsov-hero-overlay #masthead .ast-mobile-popup-drawer .menu-link:hover {
	color: rgba(255,255,255,0.9);
}
body.kuznetsov-hero-overlay #masthead .main-header-menu .sub-menu {
	background: #fff !important;
}
body.kuznetsov-hero-overlay #masthead .main-header-menu .sub-menu .menu-link {
	color: #333 !important;
}
body.kuznetsov-hero-overlay #masthead .main-header-menu .sub-menu .menu-link:hover {
	color: #1a1a1a !important;
	background: #f5f5f5;
}
body.kuznetsov-hero-overlay #masthead .ast-mobile-svg,
body.kuznetsov-hero-overlay #masthead .menu-toggle {
	fill: #fff;
	color: #fff;
}
body.kuznetsov-hero-overlay #masthead .menu-toggle .mobile-menu {
	fill: #fff;
}
body.kuznetsov-hero-overlay .ast-below-header-wrap,
body.kuznetsov-hero-overlay .ast-above-header-wrap {
	background: transparent;
	border: none;
}
body.kuznetsov-hero-overlay main#main,
body.kuznetsov-hero-overlay .site-content,
body.kuznetsov-hero-overlay #primary {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.kuznetsov-hero-slider {
	position: relative;
	width: 100%;
	min-height: 60vh;
	max-height: 600px;
	overflow: hidden;
	margin-bottom: 2rem;
	margin-top: 0;
}

.hero-slides {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 60vh;
}

.hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0.8s;
}

.hero-slide.active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.hero-slide-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.hero-slide-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.hero-slide-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100%;
	padding: 3rem 2rem;
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
}
body.kuznetsov-hero-overlay .hero-slide-content {
	padding-top: 6rem;
}

.hero-title {
	color: #fff;
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 700;
	margin: 0 0 0.5rem;
	text-shadow: 0 2px 8px rgba(0,0,0,0.5);
	text-align: center;
}

.hero-subtitle {
	color: rgba(255,255,255,0.95);
	font-size: clamp(1rem, 2vw, 1.25rem);
	margin: 0;
	text-shadow: 0 1px 4px rgba(0,0,0,0.5);
	text-align: center;
}

.hero-dots {
	position: absolute;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	gap: 0.5rem;
}

.hero-dot {
	width: 12px;
	height: 12px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background 0.3s, transform 0.2s;
}

.hero-dot:hover {
	transform: scale(1.2);
	background: rgba(255,255,255,0.5);
}

.hero-dot.active {
	background: #fff;
}

@media (max-width: 782px) {
	.kuznetsov-hero-slider {
		min-height: 50vh;
	}
	.hero-slide-content {
		padding: 2rem 1.5rem;
	}
}
