/* BelZAP — hero главной (премиум B2B, гармония с UniShop2) */
.bz-home-hero.uni-module,
.home-page .content-top .bz-home-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: 1fr;
	width: 100%;
	max-width: 100%;
	margin: 0 0 32px;
	padding: 0;
	clear: both;
	box-sizing: border-box;
}

.bz-home-hero {
	--bz-hero-red: #c8102e;
	--bz-hero-red-dark: #9e0c24;
	--bz-hero-red-glow: rgba(200, 16, 46, 0.4);
	--bz-hero-bg: #0a0c10;
	--bz-hero-pad-x: 20px;
	--bz-hero-pad-y: 32px;
	--bz-hero-photo-start: 40%;
	--bz-hero-blend: 32%;
	position: relative;
	min-height: 400px;
	aspect-ratio: 2.5 / 1;
	max-height: 560px;
	border-radius: 16px;
	overflow: hidden;
	isolation: isolate;
	background: var(--bz-hero-bg);
	border: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow:
		0 4px 6px rgba(8, 10, 14, 0.06),
		0 20px 48px rgba(8, 10, 14, 0.18);
}

@media (min-width: 768px) {
	.bz-home-hero {
		--bz-hero-pad-x: 40px;
		--bz-hero-pad-y: 44px;
		--bz-hero-photo-start: 42%;
		--bz-hero-blend: 30%;
		min-height: 440px;
	}
}

@media (min-width: 992px) {
	.bz-home-hero {
		--bz-hero-pad-x: 56px;
		--bz-hero-pad-y: 48px;
		--bz-hero-photo-start: 44%;
		--bz-hero-blend: 28%;
		min-height: 480px;
	}
}

/* Слои в одной ячейке */
.bz-home-hero__bg,
.bz-home-hero__overlay,
.bz-home-hero__glow,
.bz-home-hero__inner {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
	min-height: 0;
}

.bz-home-hero__bg,
.bz-home-hero__overlay,
.bz-home-hero__glow {
	align-self: stretch;
}

/* Левая тёмная зона под текст (правая часть — фото без затемнения) */
.bz-home-hero__bg::before {
	content: '';
	position: absolute;
	inset: 0;
	right: var(--bz-hero-photo-start);
	z-index: 1;
	background: linear-gradient(
		100deg,
		var(--bz-hero-bg) 0%,
		#0c0e13 36%,
		rgba(10, 12, 16, 0.75) 62%,
		rgba(10, 12, 16, 0.2) 82%,
		transparent 100%
	);
	pointer-events: none;
}

.bz-home-hero__bg {
	position: relative;
	z-index: 0;
	overflow: hidden;
	background: var(--bz-hero-bg);
}

.bz-home-hero__picture {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

.bz-home-hero__picture .bz-home-hero__bg-img {
	position: absolute;
	inset: 0;
}

.bz-home-hero__bg-img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 68% center;
	filter: brightness(1.08) contrast(1.05);
}

@media (min-width: 768px) {
	.bz-home-hero__bg-img {
		object-position: 72% 42%;
	}
}

@media (min-width: 992px) {
	.bz-home-hero__bg-img {
		object-position: 78% 40%;
	}
}

@media (min-width: 1200px) {
	.bz-home-hero__bg-img {
		object-position: 82% 38%;
	}
}

.bz-home-hero__overlay {
	position: relative;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		rgba(6, 8, 12, 0.94) 0%,
		rgba(8, 10, 14, 0.82) 24%,
		rgba(8, 10, 14, 0.42) 38%,
		rgba(10, 12, 16, 0.08) 50%,
		transparent 58%
	);
}

/* Доп. смягчение шва между текстом и фото */
@media (min-width: 768px) {
	.bz-home-hero__overlay::after {
		content: '';
		position: absolute;
		top: 0;
		bottom: 0;
		left: calc(var(--bz-hero-blend) + 4%);
		width: 18%;
		background: linear-gradient(90deg, rgba(10, 12, 16, 0.75) 0%, transparent 100%);
		pointer-events: none;
	}
}

.bz-home-hero__glow {
	position: relative;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(ellipse 45% 80% at 78% 50%, rgba(200, 16, 46, 0.14) 0%, transparent 55%),
		radial-gradient(ellipse 30% 45% at 70% 88%, rgba(200, 16, 46, 0.05) 0%, transparent 65%);
}

.bz-home-hero__inner {
	position: relative;
	z-index: 2;
	align-self: center;
	justify-self: start;
	width: 100%;
	max-width: 100%;
	padding: var(--bz-hero-pad-y) var(--bz-hero-pad-x);
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.bz-home-hero__inner {
		max-width: calc(var(--bz-hero-photo-start) + 4%);
	}
}

@media (min-width: 1200px) {
	.bz-home-hero__inner {
		max-width: 52%;
	}
}

.bz-home-hero__content {
	width: 100%;
	max-width: 560px;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.bz-home-hero h2.bz-home-hero__title {
	margin: 0 0 22px !important;
	padding: 0 !important;
	border: 0;
	font-size: clamp(21px, 4.8vw, 38px) !important;
	font-weight: 800 !important;
	line-height: 1.08 !important;
	letter-spacing: 0.01em;
	color: #fff !important;
	text-transform: uppercase;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.bz-home-hero h2.bz-home-hero__title::after,
.bz-home-hero h2.bz-home-hero__title::before {
	display: none !important;
	content: none !important;
}

.bz-home-hero__label {
	display: inline-block;
	margin: 0 0 16px;
	padding: 6px 12px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--bz-hero-red);
	background: rgba(200, 16, 46, 0.12);
	border: 1px solid rgba(200, 16, 46, 0.35);
	border-radius: 4px;
}

.bz-home-hero__benefits {
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.bz-home-hero__benefit {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.bz-home-hero__benefit:last-child {
	margin-bottom: 0;
}

.bz-home-hero__benefit--sub {
	margin: 0 0 6px;
	padding-left: 38px;
}

.bz-home-hero__benefit--sub .bz-home-hero__benefit-text {
	position: relative;
	font-size: 13px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.82);
}

.bz-home-hero__benefit--sub .bz-home-hero__benefit-text::before {
	content: '—';
	position: absolute;
	left: -18px;
	color: var(--bz-hero-red);
	font-weight: 700;
}

.bz-home-hero__benefit:not(.bz-home-hero__benefit--sub) + .bz-home-hero__benefit--sub {
	margin-top: -4px;
}

@media (min-width: 768px) {
	.bz-home-hero__benefit--sub .bz-home-hero__benefit-text {
		font-size: 14px;
	}
}

@media (min-width: 992px) {
	.bz-home-hero__benefit--sub {
		padding-left: 40px;
	}
}

.bz-home-hero__benefit-icon {
	display: flex;
	flex: 0 0 26px;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin-top: 1px;
	color: var(--bz-hero-red);
	background: rgba(200, 16, 46, 0.14);
	border-radius: 50%;
}

.bz-home-hero__benefit-icon svg {
	display: block;
	width: 14px;
	height: 14px;
}

.bz-home-hero__benefit-text {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
	.bz-home-hero__benefit-text {
		font-size: 15px;
	}
}

@media (min-width: 992px) {
	.bz-home-hero h2.bz-home-hero__title {
		margin-bottom: 24px !important;
		font-size: clamp(28px, 2.6vw, 38px) !important;
	}

	.bz-home-hero__benefits {
		margin-bottom: 30px;
	}

	.bz-home-hero__benefit-text {
		font-size: 16px;
		line-height: 1.45;
	}
}

.bz-home-hero__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
}

@media (min-width: 768px) {
	.bz-home-hero__actions {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 14px;
	}

	.bz-home-hero__btn {
		flex: 0 1 auto;
		width: auto;
	}
}

/* Стыковка с блоком категорий */
.home-page .content-top {
	width: 100%;
	max-width: 100%;
}

.home-page .content-top > .bz-home-hero {
	width: 100% !important;
	max-width: 100% !important;
}

.home-page .content-top .bz-home-hero + .heading {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0 0 22px;
	padding: 0 var(--bz-hero-pad-x, 20px) 12px;
	font-size: clamp(20px, 3vw, 26px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.2px;
	color: var(--heading-c, #111);
}

.home-page .content-top .bz-home-hero + .heading::after {
	content: '';
	position: absolute;
	left: var(--bz-hero-pad-x, 20px);
	bottom: 0;
	width: 56px;
	height: 3px;
	background: linear-gradient(90deg, var(--bz-hero-red), transparent);
	border-radius: 2px;
}

@media (min-width: 768px) {
	.home-page .content-top .bz-home-hero + .heading {
		padding-left: 40px;
		padding-right: 40px;
	}

	.home-page .content-top .bz-home-hero + .heading::after {
		left: 40px;
	}
}

@media (min-width: 992px) {
	.home-page .content-top .bz-home-hero + .heading {
		padding-left: 56px;
		padding-right: 56px;
		margin-bottom: 24px;
	}

	.home-page .content-top .bz-home-hero + .heading::after {
		left: 56px;
	}
}

.home-page .bz-home-hero + .heading + .category-wall {
	margin-top: 0;
}

.home-page .bz-home-hero + .uni-slideshow_v2,
.home-page .bz-home-hero + [class*='uni-slideshow'] {
	margin-top: 12px;
}

/* Мобильный и планшет узкий (до 767px) */
@media (max-width: 767px) {
	.bz-home-hero {
		position: relative;
		display: block;
		aspect-ratio: auto;
		min-height: 400px;
		max-height: none;
		border-radius: 12px;
		margin-bottom: 20px;
		overflow: hidden;
		-webkit-transform: translateZ(0);
		transform: translateZ(0);
	}

	.bz-home-hero__bg,
	.bz-home-hero__overlay,
	.bz-home-hero__glow {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		grid-column: auto;
		grid-row: auto;
	}

	.bz-home-hero__bg {
		z-index: 0;
	}

	.bz-home-hero__overlay,
	.bz-home-hero__glow {
		z-index: 1;
	}

	.bz-home-hero__bg::before {
		right: 0;
		background: linear-gradient(
			180deg,
			rgba(6, 8, 12, 0.82) 0%,
			rgba(8, 10, 14, 0.72) 38%,
			rgba(10, 12, 16, 0.45) 62%,
			rgba(10, 12, 16, 0.25) 100%
		);
	}

	.bz-home-hero__bg-img {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		max-width: none;
		margin: 0;
		object-fit: cover;
		object-position: center 22%;
		filter: brightness(1.1) contrast(1.04);
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
	}

	.bz-home-hero__overlay {
		background: linear-gradient(
			180deg,
			rgba(6, 8, 12, 0.78) 0%,
			rgba(8, 10, 14, 0.68) 42%,
			rgba(10, 12, 16, 0.42) 72%,
			rgba(10, 12, 16, 0.2) 100%
		);
	}

	.bz-home-hero__glow {
		background:
			radial-gradient(ellipse 70% 45% at 85% 18%, rgba(200, 16, 46, 0.18) 0%, transparent 55%),
			radial-gradient(ellipse 50% 35% at 75% 92%, rgba(200, 16, 46, 0.06) 0%, transparent 65%);
	}

	.bz-home-hero__inner {
		position: relative;
		z-index: 2;
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		min-height: 400px;
		padding: 24px 16px 28px;
		max-width: 100%;
		grid-column: auto;
		grid-row: auto;
	}

	.bz-home-hero__content {
		max-width: 100%;
	}

	.bz-home-hero h2.bz-home-hero__title {
		margin-bottom: 16px !important;
	}

	.bz-home-hero__benefits {
		margin-bottom: 18px;
	}

	.bz-home-hero__benefit--sub {
		padding-left: 32px;
	}

	.bz-home-hero__actions {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 10px;
		max-width: 100%;
	}

	.bz-home-hero__btn {
		width: 100%;
		min-width: 0;
		min-height: 48px;
		white-space: normal;
		text-align: center;
	}
}

@media (max-width: 479px) {
	.bz-home-hero {
		min-height: 380px;
	}

	.bz-home-hero__inner {
		min-height: 380px;
		padding: 20px 14px 24px;
	}

	.bz-home-hero__bg-img {
		object-position: center 20%;
	}

	.bz-home-hero h2.bz-home-hero__title {
		font-size: 20px !important;
		line-height: 1.12 !important;
	}

	.bz-home-hero__benefit-text {
		font-size: 13px;
	}

	.bz-home-hero__benefit--sub {
		padding-left: 28px;
	}

	.bz-home-hero__benefit--sub .bz-home-hero__benefit-text {
		font-size: 12px;
	}
}
