﻿

body.kh-theme.home .upk-cat-card,
body.kh-theme.home .upk-icon-box,
body.kh-theme .kh-cat-tile {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .5s ease, transform .5s ease;
}

body.kh-theme.home .upk-cat-card.kh-in,
body.kh-theme.home .upk-icon-box.kh-in,
body.kh-theme .kh-cat-tile.kh-in {
	opacity: 1;
	transform: none;
}

/* Если IntersectionObserver недоступен — показываем сразу */
body.kh-theme.no-io .upk-cat-card,
body.kh-theme.no-io .upk-icon-box,
body.kh-theme.no-io .kh-cat-tile {
	opacity: 1;
	transform: none;
}

/* Знак логотипа в бейдже вместо зелёной точки */
body.kh-theme.home .upk-hero-badge::before {
	content: "";
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: #fff url("https://etiketkia4.ru/wp-content/uploads/2026/11/logo-badge.png") center / contain no-repeat;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}

@media (max-width: 768px) {
	body.kh-theme.home .upk-hero-badge::before { width: 22px; height: 22px; border-radius: 6px; }
}

/* Баннер главной: затемнение под текст */
body.kh-theme.home .banner .video-overlay,
body.kh-theme.home .banner .bg-fill {
	opacity: 1;
}

body.kh-theme.home .banner .banner-bg { background: #0b1220; }
body.kh-theme.home .banner .video-bg { object-fit: cover; }

body.kh-theme.home .banner.has-video::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(100deg, rgba(11, 18, 32, .82) 0%, rgba(11, 18, 32, .58) 48%, rgba(11, 18, 32, .28) 100%);
	pointer-events: none;
}

body.kh-theme.home .banner.has-video .banner-layers { z-index: 2; }

/* Текст героя выравниваем по левому краю */
body.kh-theme.home .upk-hero-text .text-inner,
body.kh-theme.home .upk-hero-text .text-box-content,
body.kh-theme.home .upk-hero-text .text-box-content.text { text-align: left !important; }

body.kh-theme.home .upk-hero-text .text-box-content { padding: 0; }

body.kh-theme.home .upk-hero-text.banner-layer {
	left: 0 !important;
	right: auto !important;
	transform: translateY(-50%) !important;
}

/* Параллакс фона убирает щель сверху — герой должен быть плотным */
body.kh-theme.home .banner.has-video .banner-bg {
	transform: none !important;
	height: 100% !important;
	top: 0 !important;
	bottom: 0 !important;
}

body.kh-theme.home .banner.has-video { background: #0b1220; }

/* Секции с фоном */
body.kh-theme.home .upk-section-bg > .upk-modern-wrap > .row { margin-bottom: 0; }

/* Карточки «Популярные товары» внутри главной */
body.kh-theme.home .upk-section-bg .col-inner.box-shadow-1 h4,
body.kh-theme.home .upk-section-bg .col-inner.box-shadow-1 h3 {
	font-size: 15px;
	margin: 0 0 10px;
}

/* Второй баннер (рулоны) */
body.kh-theme.home .banner:not(.has-video) {
	border-radius: 24px;
	overflow: hidden;
	max-width: var(--kh-container);
	margin: 24px auto !important;
	width: calc(100% - 48px);
}

body.kh-theme.home .banner:not(.has-video) .banner-inner {
	border-radius: 24px;
}

@media (max-width: 768px) {
	body.kh-theme.home .banner:not(.has-video) { width: calc(100% - 32px); margin: 16px auto !important; border-radius: 18px; }
	body.kh-theme.home .banner.has-video::after {
		background: linear-gradient(180deg, rgba(11, 18, 32, .72) 0%, rgba(11, 18, 32, .64) 100%);
	}
	body.kh-theme.home .upk-hero-text.banner-layer {
		padding-left: 16px !important;
		padding-right: 16px !important;
		width: 100% !important;
	}
	body.kh-theme.home .upk-hero-text h1 { font-size: 26px !important; line-height: 1.12 !important; }
	body.kh-theme.home .upk-hero-sub { font-size: 14.5px !important; margin-bottom: 20px !important; }
	body.kh-theme.home .upk-hero-badge { font-size: 11.5px; padding: 6px 12px; margin-bottom: 16px; }
	body.kh-theme.home .upk-hero-actions { flex-direction: column; gap: 8px; margin-bottom: 18px; }
	body.kh-theme.home .upk-hero-btn { width: 100%; min-height: 46px; font-size: 15px; }
	body.kh-theme.home .upk-hero-hours { margin-bottom: 16px !important; font-size: 12.5px !important; }
	body.kh-theme.home .upk-hero-stats {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px;
		padding-top: 14px;
	}
	body.kh-theme.home .upk-hero-stats strong { font-size: 17px; }
	body.kh-theme.home .upk-hero-stats span { font-size: 10.5px; line-height: 1.3; }
}
