/*
 * Стили для функций, добавленных при миграции каталога:
 * теги под описанием товара, пагинация каталога, фильтр по цене.
 * Подключается отдельным файлом, чтобы не трогать style.min.css темы.
 */

/* --- Теги / ссылки на разделы каталога (переиспользуется в нескольких местах) --- */

.kitchen_card_tabs_content {
	background: #fff;
}

/* Persistent compact header and resilient home-page background video. */
#header.header {
	transition: height .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
	will-change: transform;
}

#header.header .mw {
	transition: padding-top .18s ease, padding-bottom .18s ease;
}

#header.header.sticky,
#header.header.out {
	height: 78px;
	transform: translateY(0);
	background-color: rgba(255, 255, 255, .96);
	box-shadow: 0 8px 24px rgba(34, 34, 34, .08);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

#kp-catalog-grid {
	scroll-margin-top: 96px;
}

#header.header.sticky .mw,
#header.header.out .mw {
	padding-top: 10px;
	padding-bottom: 10px;
}

@media (min-width: 1551px) {
	#header.header.sticky .mw .left_side .logo a,
	#header.header.out .mw .left_side .logo a {
		width: 180px;
		min-width: 180px;
	}
}

@media (max-width: 1550px) {
	#header.header.sticky,
	#header.header.out {
		height: 72px;
	}
}

@media (max-width: 1300px) {
	#header.header.sticky,
	#header.header.out {
		height: 68px;
	}

	#header.header.sticky .mw,
	#header.header.out .mw {
		padding-top: 8px;
		padding-bottom: 8px;
	}
}

@media (max-width: 767px) {
	#header.header.sticky,
	#header.header.out {
		height: 58px;
	}

	#header.header.sticky .mw,
	#header.header.out .mw {
		padding-top: 5px;
		padding-bottom: 5px;
	}

	#header.header.sticky .mw .left_side .logo a,
	#header.header.out .mw .left_side .logo a {
		width: 128px;
		min-width: 128px;
	}
}

.page .main .main_cont .mw .main_video {
	position: relative;
	background: #eff0f4;
}

.page .main .main_cont .mw .main_video video {
	display: block;
}

.main_video_play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: 72px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(124, 185, 39, .96);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -50%);
	transition: opacity .18s ease, visibility .18s ease, background-color .18s ease;
	cursor: pointer;
}

.main_video_play span {
	width: 0;
	height: 0;
	margin-left: 5px;
	border-top: 11px solid transparent;
	border-bottom: 11px solid transparent;
	border-left: 18px solid #fff;
}

.main_video.autoplay-blocked .main_video_play {
	opacity: 1;
	visibility: visible;
}

.main_video_play:focus-visible {
	outline: 3px solid #222;
	outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
	.main_video_play:hover {
		background-color: #6aaa20;
	}
}

@media (max-width: 767px) {
	.main_video_play {
		width: 60px;
		height: 60px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#header.header,
	#header.header .mw,
	.main_video_play {
		transition: none;
	}
}

/* Parking information on the About page. */
.kp-about-parking {
	padding: 80px 0 100px;
}

.kp-about-parking__panel {
	padding: 48px;
	border-radius: 30px;
	background: #eef0f4;
}

.kp-about-parking__intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
	align-items: end;
	gap: 32px 64px;
	margin-bottom: 32px;
}

.kp-about-parking__intro .h2 {
	margin: 0;
}

.kp-about-parking__intro .h2 span {
	color: var(--c1, #7cb927);
}

.kp-about-parking__intro p {
	margin: 0;
	color: #626262;
	font-size: 18px;
	line-height: 1.55;
}

.kp-about-parking__gallery {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(380px, 1fr);
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 18px;
	height: clamp(500px, 39vw, 560px);
}

.kp-about-parking__image {
	display: block;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	border-radius: 18px;
	background: #fff;
}

.kp-about-parking__image--3 {
	grid-column: 2;
	grid-row: 1 / span 2;
}

.kp-about-parking__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kp-about-parking__image--3 img {
	object-fit: cover;
}

.kp-about-parking__image:focus-visible {
	outline: 3px solid var(--c1, #7cb927);
	outline-offset: 4px;
}

@media (max-width: 991px) {
	.kp-about-parking {
		padding: 60px 0 70px;
	}

	.kp-about-parking__panel {
		padding: 32px;
	}

	.kp-about-parking__intro {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.kp-about-parking__gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto auto;
		height: auto;
	}

	.kp-about-parking__image--1 {
		grid-column: 1 / -1;
		grid-row: 1;
		aspect-ratio: 8 / 3;
	}

	.kp-about-parking__image--2 {
		grid-column: 1;
		grid-row: 2;
		aspect-ratio: 1 / 1;
	}

	.kp-about-parking__image--3 {
		grid-column: 2;
		grid-row: 2;
		aspect-ratio: 1 / 1;
	}
}

@media (max-width: 767px) {
	.kp-about-parking {
		padding: 40px 0 55px;
	}

	.kp-about-parking__panel {
		padding: 24px 16px;
		border-radius: 24px;
	}

	.kp-about-parking__intro {
		margin-bottom: 24px;
	}

	.kp-about-parking__intro p {
		font-size: 15px;
		line-height: 1.5;
	}

	.kp-about-parking__gallery {
		display: flex;
		flex-direction: column;
		gap: 12px;
		height: auto;
	}

	.kp-about-parking__image {
		width: 100%;
		border-radius: 14px;
	}

	.kp-about-parking__image--1 {
		aspect-ratio: 8 / 3;
	}

	.kp-about-parking__image--2 {
		aspect-ratio: 3 / 2;
	}

	.kp-about-parking__image--3 {
		aspect-ratio: 1 / 1;
	}
}

.kitchen_card_tags,
.related_categories_list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

.tag_link {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 20px;
	background: #eff0f4;
	color: #222;
	font-size: 13px;
	line-height: 1.4;
	text-decoration: none;
	transition: .3s;
}

.related_categories {
	width: 100%;
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid rgba(34, 34, 34, .1);
}

.related_categories--top {
	margin-top: 0;
	margin-bottom: 32px;
	padding-top: 0;
	padding-bottom: 32px;
	border-top: none;
	border-bottom: 1px solid rgba(34, 34, 34, .1);
}

.related_categories--sidebar {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid rgba(34, 34, 34, .12);
}

.related_categories--sidebar .related_categories_list {
	margin-top: 14px;
	gap: 6px;
}

.related_categories--sidebar .tag_link {
	padding: 5px 12px;
	background: #fff;
	font-size: 12.5px;
}

.related_categories .sidebar_title {
	color: #222;
	font-size: 20px;
	font-weight: 500;
}

.tag_link:hover {
	background: var(--c1, #7cb927);
	color: #fff;
}

/* --- Правая колонка каталога (тулбар, сетка, "показать ещё", пагинация) ---
   .kitchen_catalog_wrap — CSS-сетка (сайдбар 405px | контент 1fr). Всё, что
   раньше было отдельными потомками грида, теперь обёрнуто в ОДИН .kitchen_catalog_main —
   иначе каждый из них становится своей строкой грида, а т.к. высота первой строки
   равна высоте сайдбара, всё "проваливается" далеко вниз огромным пустым блоком. */

.kitchen_catalog_main {
	grid-column: 2;
	min-width: 0;
}

/* На ≤767px .kitchen_catalog_wrap в теме переключается на grid-template-columns:1fr
   (одна колонка, сайдбар и контент идут друг под другом) — grid-column:2 в этом
   случае "выталкивает" .kitchen_catalog_main в несуществующую вторую колонку и
   ломает раскладку. Возвращаем обычный поток. */
@media (max-width: 767px) {
	.kitchen_catalog_main {
		grid-column: 1;
	}
}

/* --- Тулбар сортировки / кол-ва на странице над сеткой товаров --- */

.kitchen_catalog_toolbar {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-bottom: 20px;
}

.kp-select_wrap {
	position: relative;
}

.kp-select_wrap::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 16px;
	width: 8px;
	height: 8px;
	border-right: 2px solid #222;
	border-bottom: 2px solid #222;
	transform: translateY(-65%) rotate(45deg);
	pointer-events: none;
}

.kp-select {
	appearance: none;
	-webkit-appearance: none;
	padding: 12px 36px 12px 18px;
	border: 1px solid rgba(34, 34, 34, .15);
	border-radius: 100px;
	background: #fff;
	color: #222;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
}

/* --- Строка "Поиск: «запрос» — найдено N" над результатами поиска --- */

.kp-search-summary {
	margin-bottom: 24px;
	font-size: 24px;
	font-weight: 500;
	color: #555;
}

.kp-search-summary strong {
	color: #222;
	font-weight: 700;
}

.kitchen_catalog_loadmore {
	width: 100%;
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.kitchen_catalog_loadmore button {
	padding: 14px 32px;
	border: 1px solid rgba(34, 34, 34, .15);
	border-radius: 10px;
	background: #fff;
	color: #222;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: .3s;
}

.kitchen_catalog_loadmore button:hover {
	border-color: var(--c1, #7cb927);
	color: var(--c1, #7cb927);
}

.kitchen_catalog_loadmore button[disabled] {
	opacity: .6;
	cursor: default;
}

.kitchen_catalog_pagination {
	width: 100%;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.kitchen_catalog_pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	border-radius: 10px;
	background: #eff0f4;
	color: #222;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: .3s;
}

.kitchen_catalog_pagination a.page-numbers:hover {
	background: var(--c1, #7cb927);
	color: #fff;
}

.kitchen_catalog_pagination .page-numbers.current {
	background: var(--c1, #7cb927);
	color: #fff;
}

.kitchen_catalog_pagination .page-numbers.dots {
	background: transparent;
}

/* --- Фильтр по цене в сайдбаре каталога --- */

.price_filter {
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(34, 34, 34, .1);
}

.price_filter .sidebar_title {
	margin-bottom: 16px;
	color: #222;
	font-size: 20px;
	font-weight: 500;
}

.price_filter .price_filter_row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.price_filter .price_filter_row input[type="number"] {
	width: 100%;
	min-width: 0;
	height: 48px;
	padding: 0 14px;
	border: 1px solid rgba(34, 34, 34, .15);
	border-radius: 10px;
	background: #fff;
	color: #222;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
	-moz-appearance: textfield;
}

.price_filter .price_filter_row input[type="number"]::-webkit-outer-spin-button,
.price_filter .price_filter_row input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.price_filter .price_filter_row span {
	flex: none;
	color: #888;
	font-size: 13px;
}

.price_filter button {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: none;
	border-radius: 10px;
	background: var(--c1, #7cb927);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: .3s;
	box-sizing: border-box;
}

.price_filter button:hover {
	opacity: .9;
}

.price_filter .price_filter_reset {
	display: block;
	margin-top: 10px;
	text-align: center;
	color: #888;
	font-size: 13px;
	text-decoration: underline;
}

.kitchen_catalog_empty {
	width: 100%;
	padding: 40px 0;
	text-align: center;
	color: #888;
	font-size: 15px;
}

/* --- Двойной ползунок цены --- */

.price_filter .price_slider_labels {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	margin-bottom: 18px;
	color: #888;
	font-size: 13px;
}

.price_filter .price_slider {
	position: relative;
	height: 20px;
	margin-bottom: 4px;
}

.price_filter .price_slider_rail {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 4px;
	border-radius: 4px;
	background: rgba(34, 34, 34, .12);
	transform: translateY(-50%);
}

.price_filter .price_slider_track {
	position: absolute;
	top: 50%;
	height: 4px;
	border-radius: 4px;
	background: var(--c1, #7cb927);
	transform: translateY(-50%);
}

.price_filter .price_slider input[type="range"] {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	margin: 0;
	background: transparent;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
	transform: translateY(-50%);
}

.price_filter .price_slider input[type="range"]::-webkit-slider-thumb {
	pointer-events: auto;
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--c1, #7cb927);
	border: 3px solid #fff;
	box-shadow: 0 0 0 1px rgba(34, 34, 34, .15);
	cursor: pointer;
}

.price_filter .price_slider input[type="range"]::-moz-range-thumb {
	pointer-events: auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--c1, #7cb927);
	border: 3px solid #fff;
	box-shadow: 0 0 0 1px rgba(34, 34, 34, .15);
	cursor: pointer;
}

.price_filter .price_slider input[type="range"]::-webkit-slider-runnable-track,
.price_filter .price_slider input[type="range"]::-moz-range-track {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	height: 4px;
}

.price_filter .price_filter_reset:hover {
	color: #222;
}

/* --- Поиск по товарам в сайдбаре каталога --- */

.sidebar_search {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(34, 34, 34, .1);
}

.sidebar_search_input {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 14px;
	border: 1px solid rgba(34, 34, 34, .15);
	border-radius: 10px;
	background: #fff;
	color: #222;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
}

.sidebar_search_input::placeholder {
	color: #888;
}

.sidebar_search_btn {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 10px;
	background: var(--c1, #7cb927);
	color: #fff;
	cursor: pointer;
	transition: .3s;
	box-sizing: border-box;
}

.sidebar_search_btn:hover {
	opacity: .9;
}

/* --- Пункты .sidebar_menu в сайдбаре каталога сжимаются по ширине текста,
   т.к. класс .sidebar_menu переиспользуется в других местах темы с flex/49%-раскладкой.
   Растягиваем на всю ширину сайдбара, как у поиска и фильтра цены. --- */

.kitchen_catalog_sidebar .sidebar_menu {
	display: block !important;
}

.kitchen_catalog_sidebar .sidebar_menu li {
	width: 100% !important;
}

.kitchen_catalog_sidebar .sidebar_menu li a {
	width: 100%;
	min-height: 48px;
	box-sizing: border-box;
	display: flex !important;
	align-items: center;
}

/* --- Тултип у единицы измерения цены (п/м) --- */

.unit_tooltip {
	position: relative;
	display: inline-block;
	cursor: help;
	border-bottom: 1px dashed #888;
}

.unit_tooltip::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	width: 220px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #222;
	color: #fff;
	font-size: 12.5px;
	line-height: 1.4;
	text-align: left;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s;
	z-index: 20;
	pointer-events: none;
}

.unit_tooltip::before {
	content: "";
	position: absolute;
	bottom: calc(100% + 4px);
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #222;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s;
	z-index: 20;
}

.unit_tooltip:hover::after,
.unit_tooltip:hover::before {
	opacity: 1;
	visibility: visible;
}

/* --- Сворачиваемые фильтры в сайдбаре каталога на мобильной версии ---
   На десктопе/планшете кнопка-переключатель скрыта, всё содержимое сайдбара
   видно как обычно. На ≤767px сайдбар занимает много места (поиск + цена +
   список категорий), поэтому по умолчанию содержимое свёрнуто, а открывается
   по клику на кнопку "Фильтры и категории". */

.kp-filters-toggle {
	display: none;
}

@media (max-width: 767px) {
	.kp-filters-toggle {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 52px;
		padding: 0 18px;
		margin-bottom: 0;
		border: 1px solid rgba(34, 34, 34, .15);
		border-radius: 10px;
		background: #fff;
		color: #222;
		font-size: 15px;
		font-weight: 500;
		font-family: inherit;
		cursor: pointer;
	}

	.kp-filters-toggle svg {
		flex: none;
		transition: transform .2s;
	}

	.kp-filters-toggle[aria-expanded="true"] svg {
		transform: rotate(180deg);
	}

	.kp-filters-body {
		display: none;
	}

	.kp-filters-body.is-open {
		display: block;
		margin-top: 16px;
	}
}
/* Keep long article titles readable on narrow phones. */
@media (max-width: 480px) {
    .page_articles .article .article_top h1 {
        font-size: clamp(26px, 7.8vw, 32px);
        line-height: 1.12;
        overflow-wrap: anywhere;
    }
}

/* Make the four homepage benefit cards fully clickable without changing their layout. */
.page .main .main_cont .mw .main_benefits li {
	position: relative;
}

.page .main .main_cont .mw .main_benefits li .main_benefit_link {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	border-radius: inherit;
}

.page .main .main_cont .mw .main_benefits li .main_benefit_link:focus-visible {
	outline: 3px solid #7cb927;
	outline-offset: 3px;
}

/* Subtle image zoom for linked content cards on precise pointing devices. */
.catalog .cont > .card > .img,
.special .bottom_cont > .card > .img,
.special_banners_slider .card > .img,
.catalog_item > .thumb > .img,
.news_grid .news_item > .thumb {
	overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
	.catalog .cont > .card > .img > img,
	.special .bottom_cont > .card > .img > img,
	.special_banners_slider .card > .img > img,
	.catalog_item > .thumb > .img > img,
	.news_grid .news_item > .thumb > img {
		transition: transform 220ms cubic-bezier(.23, 1, .32, 1);
	}

	.catalog .cont > .card:hover > .img > img,
	.special .bottom_cont > .card:hover > .img > img,
	.special_banners_slider .card:hover > .img > img,
	.catalog_item > .thumb:hover > .img > img,
	.news_grid .news_item > .thumb:hover > img {
		transform: scale(1.035);
	}
}

@media (prefers-reduced-motion: reduce) {
	.catalog .cont > .card > .img > img,
	.special .bottom_cont > .card > .img > img,
	.special_banners_slider .card > .img > img,
	.catalog_item > .thumb > .img > img,
	.news_grid .news_item > .thumb > img {
		transition: none;
		transform: none;
	}
}

/* Keep the submenu guide after the actual label, not over long menu text. */
.header .mw .right_side .header_menu .header_dropdown .top_cont > ul > li.menu-item-has-children::after {
	content: none;
}

.header .mw .right_side .header_menu .header_dropdown .top_cont > ul > li.menu-item-has-children > a {
	align-items: center;
}

.header .mw .right_side .header_menu .header_dropdown .top_cont > ul > li.menu-item-has-children > a::before {
	content: "";
	order: 1;
	flex: 1 1 0;
	align-self: center;
	height: 1px;
	margin-left: 16px;
	margin-right: 20px;
	background: #e6e6e6;
	opacity: 0;
	transition: opacity 180ms ease;
}

.header .mw .right_side .header_menu .header_dropdown .top_cont > ul > li.menu-item-has-children.active > a::before,
.header .mw .right_side .header_menu .header_dropdown .top_cont > ul > li.menu-item-has-children:hover > a::before {
	opacity: 1;
}

@media (max-width: 991px) {
	.header .mw .right_side .header_menu .header_dropdown .top_cont > ul > li.menu-item-has-children > a::before {
		display: none;
	}
}
