/* Kaizer: «Хиты продаж» [hityprodazh] и «Новости» [novosti] */

.kz-hits,
.kz-news {
	--kz-red: #e51212;
	--kz-red-dark: #b80d0d;
	--kz-ink: #222;
	--kz-muted: #666;
	--kz-line: #eaeaea;
	--kz-soft: #f6f6f4;
	--kz-radius: 20px;
	font-family: inherit;
	color: var(--kz-ink);
	width: 100%;
}

.kz-hits *,
.kz-news * { box-sizing: border-box; }

.kz-hits svg,
.kz-news svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}

/* ---------- Общие стрелки ---------- */
.kz-hits button.kz-arrow,
.kz-news button.kz-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid #dcdcdc;
	border-radius: 50%;
	background: #fff;
	color: var(--kz-ink);
	box-shadow: none;
	cursor: pointer;
	line-height: 1;
	text-transform: none;
	transition: background-color .2s, border-color .2s, color .2s, opacity .2s;
}
.kz-hits button.kz-arrow:hover,
.kz-news button.kz-arrow:hover:not(:disabled) {
	background: var(--kz-red);
	border-color: var(--kz-red);
	color: #fff;
}
.kz-hits button.kz-arrow:focus-visible,
.kz-news button.kz-arrow:focus-visible,
.kz-hits button.kz-hits__thumb:focus-visible,
.kz-news button.kz-news__dot:focus-visible,
.kz-news__viewport:focus-visible {
	outline: 2px solid var(--kz-red);
	outline-offset: 3px;
}
.kz-news button.kz-arrow:disabled {
	opacity: .35;
	cursor: default;
}

/* ---------- Кнопки ---------- */
.kz-hits a.kz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 26px;
	border-radius: 12px;
	border: 2px solid transparent;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s;
}
.kz-hits a.kz-btn--primary { background: var(--kz-red); border-color: var(--kz-red); color: #fff; }
.kz-hits a.kz-btn--primary:hover { background: var(--kz-red-dark); border-color: var(--kz-red-dark); color: #fff; }
.kz-hits a.kz-btn--ghost { background: transparent; border-color: var(--kz-ink); color: var(--kz-ink); }
.kz-hits a.kz-btn--ghost:hover { background: var(--kz-ink); color: #fff; }

/* =========================================================
   ХИТЫ ПРОДАЖ
   ========================================================= */
.kz-hits {
	display: grid;
	gap: 16px;
	margin-bottom: 20px;
}

.kz-hits__stage {
	position: relative;
	display: grid;
	background: var(--kz-soft);
	border-radius: 24px;
	overflow: hidden;
	touch-action: pan-y;
}

.kz-hits__slide {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	opacity: 0;
	visibility: hidden;
	transition: opacity .55s ease, visibility .55s;
}
.kz-hits__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.kz-hits .kz-hits__media {
	display: block;
	position: relative;
	align-self: stretch;
	min-height: 440px;
	overflow: hidden;
	background: #e9e9e6;
}
.kz-hits .kz-hits__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
	transform: scale(1.06);
	transition: transform 6s ease-out;
}
.kz-hits .is-active .kz-hits__img { transform: scale(1); }

.kz-hits__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 14px;
	padding: 48px 56px 104px;
	min-width: 0;
}

.kz-hits__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--kz-red);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1;
}
.kz-hits__badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fff;
}

.kz-hits h3.kz-hits__title {
	margin: 4px 0 0;
	padding: 0;
	font-size: clamp(26px, 2.5vw, 40px);
	font-weight: 600;
	line-height: 1.1;
	text-transform: none;
	letter-spacing: 0;
}
.kz-hits .kz-hits__title a { color: var(--kz-ink); text-decoration: none; }
.kz-hits .kz-hits__title a:hover { color: var(--kz-red); }

.kz-hits__sub {
	margin: 0;
	font-size: clamp(17px, 1.3vw, 20px);
	line-height: 1.3;
	color: var(--kz-red);
	font-weight: 500;
}
.kz-hits__sub::first-letter { text-transform: uppercase; }

.kz-hits__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: #555;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.kz-hits__price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 24px;
	font-weight: 600;
	color: var(--kz-ink);
}
.kz-hits__price > span:first-child {
	font-size: 14px;
	font-weight: 400;
	color: #888;
}
.kz-hits__price del { color: #999; font-size: 16px; font-weight: 400; }
.kz-hits__price ins { text-decoration: none; }

.kz-hits__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

.kz-hits__nav {
	position: absolute;
	right: 40px;
	bottom: 32px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 14px;
}
.kz-hits__count {
	min-width: 48px;
	text-align: center;
	font-size: 15px;
	color: #888;
	font-variant-numeric: tabular-nums;
}
.kz-hits__count b { color: var(--kz-ink); font-weight: 600; }

/* Миниатюры-вкладки */
.kz-hits__thumbs {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 12px;
}

.kz-hits button.kz-hits__thumb {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 10px;
	border: 1px solid var(--kz-line);
	border-radius: 14px;
	background: #fff;
	color: var(--kz-ink);
	box-shadow: none;
	text-align: left;
	text-transform: none;
	cursor: pointer;
	overflow: hidden;
	transition: border-color .2s, box-shadow .2s;
}
.kz-hits button.kz-hits__thumb:hover { border-color: #cfcfcf; }
.kz-hits button.kz-hits__thumb.is-active {
	border-color: var(--kz-red);
	box-shadow: 0 6px 18px rgba(229, 18, 18, .12);
}

.kz-hits .kz-hits__thumb-img {
	width: 56px;
	height: 56px;
	flex: none;
	max-width: none;
	border-radius: 10px;
	object-fit: cover;
}

.kz-hits__thumb-name {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.kz-hits__thumb.is-active .kz-hits__thumb-name { color: var(--kz-red); }

.kz-hits__progress {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: 100%;
	background: var(--kz-red);
	transform: scaleX(0);
	transform-origin: left;
}
.kz-hits__thumb.is-active .kz-hits__progress { transform: scaleX(1); }
.kz-hits.is-playing .kz-hits__thumb.is-active .kz-hits__progress {
	animation: kz-progress var(--kz-dur, 7s) linear forwards;
}
.kz-hits.is-playing.is-paused .kz-hits__thumb.is-active .kz-hits__progress {
	animation-play-state: paused;
}
@keyframes kz-progress {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

.kz-hits.is-single .kz-hits__nav,
.kz-hits.is-single .kz-hits__thumbs { display: none; }

/* =========================================================
   НОВОСТИ
   ========================================================= */
.kz-news {
	--gap: 24px;
	--per: 3;
	margin-bottom: 20px;
}

.kz-news__viewport {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	padding: 6px 2px 14px;
	margin: -6px -2px 0;
	border-radius: var(--kz-radius);
}
.kz-news__viewport::-webkit-scrollbar { display: none; }
.kz-news.is-dragging .kz-news__viewport {
	scroll-snap-type: none;
	scroll-behavior: auto;
	cursor: grabbing;
}
.kz-news.is-dragging .kz-news__link { pointer-events: none; }

.kz-news ul.kz-news__track {
	display: flex;
	gap: var(--gap);
	list-style: none;
	margin: 0;
	padding: 0;
	width: auto;
	min-width: 0;
	transform: none;
}

.kz-news li.kz-news__card {
	flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
	margin: 0;
	padding: 0;
	list-style: none;
	scroll-snap-align: start;
	display: flex;
}

.kz-news a.kz-news__link {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #fff;
	border: 1px solid var(--kz-line);
	border-radius: var(--kz-radius);
	overflow: hidden;
	color: var(--kz-ink);
	text-decoration: none;
	-webkit-user-drag: none;
	transition: box-shadow .25s, transform .25s, border-color .25s;
}
.kz-news a.kz-news__link:hover {
	transform: translateY(-4px);
	border-color: transparent;
	box-shadow: 0 14px 30px rgba(0, 0, 0, .09);
}

.kz-news .kz-news__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #eee;
}
.kz-news .kz-news__img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
	transition: transform .5s ease;
	-webkit-user-drag: none;
}
.kz-news a.kz-news__link:hover .kz-news__img { transform: scale(1.05); }

.kz-news__date {
	position: absolute;
	left: 14px;
	top: 14px;
	padding: 6px 10px;
	border-radius: 8px;
	background: rgba(255, 255, 255, .94);
	color: var(--kz-ink);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}

.kz-news__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	padding: 20px 22px 22px;
}

.kz-news__title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	transition: color .2s;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.kz-news a.kz-news__link:hover .kz-news__title { color: var(--kz-red); }

.kz-news__text {
	font-size: 15px;
	line-height: 1.5;
	color: var(--kz-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.kz-news__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 6px;
	color: var(--kz-red);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.kz-news__more svg { width: 18px; height: 18px; transition: transform .2s; }
.kz-news a.kz-news__link:hover .kz-news__more svg { transform: translateX(4px); }

/* Панель управления */
.kz-news__bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin-top: 14px;
}
.kz-news__arrows { display: flex; gap: 10px; }

.kz-news__dots { display: flex; align-items: center; gap: 8px; }
.kz-news button.kz-news__dot {
	width: 10px;
	height: 10px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #d4d4d4;
	box-shadow: none;
	cursor: pointer;
	transition: width .3s, background-color .3s;
}
.kz-news button.kz-news__dot:hover { background: #aaa; }
.kz-news button.kz-news__dot.is-active { width: 28px; background: var(--kz-red); }

.kz-news__counter {
	font-size: 14px;
	color: #888;
	font-variant-numeric: tabular-nums;
}

.kz-news a.kz-news__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	padding: 12px 20px;
	border-radius: 12px;
	border: 2px solid var(--kz-ink);
	color: var(--kz-ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.kz-news a.kz-news__all:hover { background: var(--kz-ink); color: #fff; }
.kz-news a.kz-news__all svg { width: 18px; height: 18px; }

.kz-news.is-static .kz-news__arrows,
.kz-news.is-static .kz-news__dots,
.kz-news.is-static .kz-news__counter { display: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
	.kz-hits__body { padding: 36px 36px 96px; }
	.kz-hits__nav { right: 28px; bottom: 24px; }
	.kz-hits__thumbs {
		grid-auto-columns: minmax(200px, 1fr);
		overflow-x: auto;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		padding-bottom: 2px;
	}
	.kz-hits__thumbs::-webkit-scrollbar { display: none; }
	.kz-hits button.kz-hits__thumb { scroll-snap-align: start; }
}

@media (max-width: 1023px) {
	.kz-news { --per: 2; --gap: 18px; }
}

@media (max-width: 800px) {
	.kz-hits__slide { grid-template-columns: 1fr; }
	.kz-hits .kz-hits__media { aspect-ratio: 16 / 10; min-height: 0; }
	.kz-hits__body { padding: 22px 20px 88px; gap: 12px; }
	.kz-hits__text { -webkit-line-clamp: 3; font-size: 15px; }
	.kz-hits__actions > a.kz-btn { flex: 1 1 auto; }
	.kz-hits__price { font-size: 21px; }
	.kz-hits__nav { left: 20px; right: 20px; bottom: 20px; justify-content: space-between; }
	.kz-hits a.kz-btn { padding: 12px 20px; font-size: 15px; }
	.kz-hits__thumbs { grid-auto-columns: 172px; gap: 10px; }
	.kz-hits .kz-hits__thumb-img { width: 44px; height: 44px; }
	.kz-hits__thumb-name { font-size: 13px; }
}

@media (max-width: 639px) {
	.kz-news { --per: 1.15; --gap: 14px; }
	.kz-news__body { padding: 16px 18px 18px; }
	.kz-news__title { font-size: 17px; }
	.kz-news:not(.is-many) .kz-news__counter { display: none; }
	.kz-news.is-many .kz-news__dots { display: none; }
	.kz-news a.kz-news__all { margin-left: 0; width: 100%; justify-content: center; }
	.kz-news__bar { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
	.kz-hits__slide,
	.kz-hits .kz-hits__img,
	.kz-news a.kz-news__link,
	.kz-news .kz-news__img { transition: none; }
	.kz-news__viewport { scroll-behavior: auto; }
}
