

.kh-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--kh-line);
	transition: box-shadow .25s ease, background-color .25s ease;
}

.kh-header.is-scrolled {
	box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .35);
	background: rgba(255, 255, 255, .97);
}

.kh-topbar {
	background: var(--kh-ink);
	color: rgba(255, 255, 255, .82);
	font-size: 12.5px;
	line-height: 1;
}

.kh-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 38px;
}

.kh-topbar__info {
	display: flex;
	align-items: center;
	gap: 22px;
	min-width: 0;
}

.kh-topbar__item,
.kh-topbar__links a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: rgba(255, 255, 255, .82);
	white-space: nowrap;
}

/* Ссылки в верхней строке — светлые и читаемые на тёмном фоне */
body.kh-theme .kh-topbar__links a,
body.kh-theme .kh-topbar__links a:visited {
	color: #e9ecf8;
	font-weight: 500;
}

body.kh-theme .kh-topbar__links a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.kh-theme .kh-topbar__links a svg {
	opacity: .9;
}

.kh-topbar__phone {
	font-family: 'Manrope', sans-serif;
	font-size: 13.5px;
	font-weight: 800;
	color: #fff !important;
	letter-spacing: -.01em;
}

.kh-topbar__phone svg { opacity: .95; }

.kh-topbar__phone:hover { color: #fff !important; }

.kh-topbar svg {
	width: 15px;
	height: 15px;
	opacity: .8;
	flex: none;
}

.kh-topbar__links {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-left: 20px;
	border-left: 1px solid rgba(255, 255, 255, .14);
}

.kh-header__main { position: relative; }

.kh-header__inner {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: var(--kh-header-h);
}

@media (min-width: 1200px) {
	.kh-header__inner { max-width: 1360px; }
}

.kh-logo {
	display: inline-flex;
	align-items: center;
	flex: none;
}

body.kh-theme .kh-logo__img {
	display: block;
	height: 34px;
	width: auto;
	max-width: 170px;
	object-fit: contain;
}

.kh-logo__text {
	font-family: 'Manrope', sans-serif;
	font-weight: 800;
	font-size: 20px;
	color: var(--kh-ink);
	white-space: nowrap;
}

.kh-nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	min-width: 0;
}

.kh-menu {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	flex-wrap: nowrap;
}

.kh-menu > li {
	position: relative;
	margin: 0;
}

.kh-menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 8px;
	border-radius: 10px;
	color: var(--kh-ink) !important;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.01em;
	text-transform: none;
	white-space: nowrap;
	transition: background-color .18s ease, color .18s ease;
}

.kh-menu > li > a:hover,
.kh-menu > li.current-menu-item > a,
.kh-menu > li.current-page-ancestor > a,
.kh-menu > li.current-product-ancestor > a {
	background: var(--kh-brand-soft);
	color: var(--kh-brand) !important;
}

.kh-menu > li.menu-item-has-children > a::after {
	content: "";
	width: 5px;
	height: 5px;
	margin-left: 2px;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	opacity: .5;
	flex: none;
}

/* выпадающие меню */
.kh-menu .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 30;
	min-width: 250px;
	margin: 0;
	padding: 10px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--kh-line);
	border-radius: 16px;
	box-shadow: var(--kh-shadow-m);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.kh-menu li:hover > .sub-menu,
.kh-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.kh-menu .sub-menu li { margin: 0; }

.kh-menu .sub-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 9px;
	color: var(--kh-ink-2) !important;
	font-size: 14.5px;
	font-weight: 500;
}

.kh-menu .sub-menu a:hover {
	background: var(--kh-line-2);
	color: var(--kh-brand) !important;
}

.kh-actions {
	--kh-action-h: 44px;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	flex: none;
}

/* Убираем сторонние отступы у кнопок — иначе строка «плывёт» */
.kh-actions > * {
	margin: 0 !important;
}

.kh-actions > .kh-iconbtn,
.kh-actions > .kh-header__cta {
	height: var(--kh-action-h);
	min-height: var(--kh-action-h);
}

.kh-actions > .kh-header__cta {
	padding: 0 20px;
	font-size: 14.5px;
}

.kh-actions__phone {
	color: var(--kh-ink) !important;
}

.kh-actions__phone:hover {
	color: var(--kh-brand) !important;
}
.kh-iconbtn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--kh-line);
	border-radius: 12px;
	background: #fff;
	color: var(--kh-ink);
	cursor: pointer;
	transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.kh-iconbtn:hover {
	border-color: #d9def0;
	background: #fbfcff;
	color: var(--kh-brand);
}

.kh-iconbtn svg { width: 20px; height: 20px; }

.kh-cart__count {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--kh-grad);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 19px;
	text-align: center;
}

.kh-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--kh-line);
	border-radius: 12px;
	background: #fff;
	color: var(--kh-ink);
	cursor: pointer;
}

.kh-burger svg { width: 22px; height: 22px; }

/* поиск */
.kh-search-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 20;
	padding: 20px 0 22px;
	background: #fff;
	border-bottom: 1px solid var(--kh-line);
	box-shadow: var(--kh-shadow-m);
}

.kh-search-panel[hidden] { display: none; }

.kh-search-form {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
}

.kh-search-form__icon {
	position: absolute;
	left: 18px;
	width: 20px;
	height: 20px;
	color: var(--kh-muted);
	pointer-events: none;
}

.kh-search-form input[type="search"] {
	flex: 1;
	height: 54px;
	padding: 0 18px 0 50px;
	border: 1px solid var(--kh-line);
	border-radius: 14px;
	background: #fbfcff;
	color: var(--kh-ink);
	font-family: 'Inter', sans-serif;
	font-size: 16px;
}

.kh-search-form input[type="search"]:focus {
	outline: none;
	border-color: var(--kh-brand);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(124, 58, 237, .1);
}

.kh-search-form .kh-btn { height: 54px; border-radius: 14px; padding: 0 26px; }

.kh-search-hints {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 14px;
	font-size: 13.5px;
	color: var(--kh-muted);
}

.kh-search-hints a {
	color: var(--kh-ink-2);
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--kh-line-2);
	font-weight: 500;
}

.kh-search-hints a:hover { background: var(--kh-brand-soft); color: var(--kh-brand); }

.kh-mobile {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	width: min(400px, 92vw);
	max-width: 100%;
	padding: 18px 20px 28px;
	background: #fff;
	box-shadow: var(--kh-shadow-l);
	transform: translateX(-102%);
	transition: transform .28s cubic-bezier(.22, .8, .3, 1);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.kh-mobile.is-open { transform: translateX(0); }

.kh-mobile__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.kh-mobile__title {
	font-family: 'Manrope', sans-serif;
	font-size: 20px;
	font-weight: 800;
	color: var(--kh-ink);
}

.kh-search-form--mobile { margin-bottom: 8px; }

.kh-search-form--mobile input[type="search"] {
	height: 46px;
	padding-left: 16px;
	font-size: 15px;
}

.kh-search-form--mobile .kh-btn {
	height: 46px;
	padding: 0 16px;
	border-radius: 12px;
}

.kh-mobile__nav {
	margin: 8px -8px 0;
	padding: 8px 0;
	border-top: 1px solid var(--kh-line);
}

.kh-menu--mobile {
	display: block;
	width: 100%;
}

.kh-menu--mobile > li { border-bottom: 1px solid var(--kh-line-2); }

.kh-menu--mobile > li > a {
	display: flex;
	justify-content: space-between;
	padding: 14px 10px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 0;
}

.kh-menu--mobile > li > a:hover { background: transparent; }

.kh-menu--mobile .sub-menu {
	position: static;
	display: block;
	min-width: 0;
	padding: 0 0 8px 10px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	transform: none;
}

.kh-menu--mobile .sub-menu a {
	padding: 9px 10px;
	color: var(--kh-muted) !important;
	font-size: 15px;
}

.kh-menu--mobile .sub-menu a:hover { color: var(--kh-brand) !important; background: transparent; }

.kh-mobile__contacts {
	margin-top: auto;
	padding-top: 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.kh-mobile__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 8px;
	font-size: 13.5px;
	color: var(--kh-muted);
}

.kh-overlay {
	position: fixed;
	inset: 0;
	z-index: 999;
	background: rgba(11, 18, 32, .52);
	opacity: 0;
	transition: opacity .25s ease;
}

.kh-overlay.is-open { opacity: 1; }

body.kh-menu-open { overflow: hidden; }

.kh-trust {
	background: #fff;
	border-bottom: 1px solid var(--kh-line);
}

.kh-trust__inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.kh-trust__item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.kh-trust__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--kh-grad-soft);
	color: var(--kh-brand);
}

.kh-trust__icon svg { width: 20px; height: 20px; }

.kh-trust__text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	min-width: 0;
}

.kh-trust__text strong {
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 800;
	color: var(--kh-ink);
}

.kh-trust__text span {
	font-size: 12.5px;
	color: var(--kh-muted);
}

.kh-footer {
	position: relative;
	background: var(--kh-ink);
	color: rgba(255, 255, 255, .72);
	margin-top: 0;
}

.kh-footer__cta {
	background: var(--kh-grad);
	color: #fff;
}

.kh-footer__cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 26px;
	padding-bottom: 26px;
}

.kh-footer__cta-text { display: flex; flex-direction: column; gap: 4px; }

.kh-footer__cta-text strong {
	font-family: 'Manrope', sans-serif;
	font-size: 22px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -.02em;
}

.kh-footer__cta-text span { font-size: 14.5px; color: rgba(255, 255, 255, .82); max-width: 620px; }

.kh-footer__cta-actions { display: flex; gap: 10px; flex: none; }

.kh-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 40px;
	padding-top: 52px;
	padding-bottom: 42px;
}

.kh-footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	color: #fff !important;
}

.kh-footer__logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--kh-grad);
	color: #fff;
}

.kh-footer__logo-mark svg { width: 22px; height: 22px; }

body.kh-theme .kh-footer__logo-text {
	display: flex;
	flex-direction: column;
	font-family: 'Manrope', sans-serif;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.05;
	color: #fff;
}

body.kh-theme .kh-footer__logo-text small {
	font-family: 'Inter', sans-serif;
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .5);
}

body.kh-theme .kh-footer__about {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .62);
	max-width: 320px;
}

.kh-footer__contacts {
	display: flex;
	flex-direction: column;
	gap: 9px;
	font-size: 14px;
}

body.kh-theme .kh-footer__contacts a,
body.kh-theme .kh-footer__contacts span {
	display: inline-flex;
	align-items: flex-start;
	gap: 9px;
	color: rgba(255, 255, 255, .78) !important;
	line-height: 1.4;
}

body.kh-theme .kh-footer__contacts a:hover { color: #fff; }

.kh-footer__contacts svg {
	width: 16px;
	height: 16px;
	margin-top: 2px;
	flex: none;
	color: rgba(255, 255, 255, .45);
}

body.kh-theme .kh-footer__title {
	margin: 6px 0 16px;
	font-family: 'Manrope', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .45);
}

.kh-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

body.kh-theme .kh-footer__list a {
	color: rgba(255, 255, 255, .74);
	font-size: 14.5px;
	line-height: 1.4;
}

body.kh-theme .kh-footer__list a:hover { color: #fff; }

.kh-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .1);
}

body.kh-theme .kh-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding-top: 18px;
	padding-bottom: 18px;
	font-size: 12.5px;
	color: rgba(255, 255, 255, .42);
}

.kh-footer__bottom-links {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

body.kh-theme .kh-footer__bottom a { color: rgba(255, 255, 255, .55); }

body.kh-theme .kh-footer__bottom a:hover { color: #fff; }

.kh-theme .breadcrumbs {
	margin: 0 0 18px;
	font-size: 13px;
	color: var(--kh-muted);
	line-height: 1.4;
}

.kh-theme .breadcrumbs a { color: var(--kh-muted); }

.kh-theme .breadcrumbs a:hover { color: var(--kh-brand); }

#callnowbutton.call-now-button {
	background: var(--kh-grad) !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	min-height: 54px !important;
	box-shadow: 0 -10px 30px -18px rgba(15, 23, 42, .55) !important;
}

#callnowbutton.call-now-button img {
	filter: brightness(0) invert(1);
}

body.single-product #callnowbutton.call-now-button {
	display: none !important;
}

/* Кнопка «Наверх» */
#top-link,
.back-to-top {
	right: 20px !important;
	bottom: 90px !important;
	left: auto !important;
	width: 44px !important;
	height: 44px !important;
	border-radius: 12px !important;
	background: #fff !important;
	border: 1px solid var(--kh-line) !important;
	color: var(--kh-ink) !important;
	box-shadow: var(--kh-shadow-s) !important;
	opacity: .9;
}

#top-link:hover,
.back-to-top:hover { opacity: 1; color: var(--kh-brand) !important; }

@media (max-width: 1500px) {
	.kh-menu > li > a { font-size: 13px; padding: 9px 7px; }
	.kh-menu > li.menu-item-home { display: none; }
	.kh-header__inner { gap: 20px; }
}

@media (max-width: 1360px) {
	.kh-header__cta { padding: 0 16px; font-size: 13.5px; min-height: 42px; }
	.kh-logo__img { height: 30px; }
	.kh-topbar__item--hide-md { display: none; }
}

/* С этого размера меню уходит в бургер — так шапка никогда не «наезжает» */
@media (max-width: 1240px) {
	.kh-burger { display: inline-flex; }
	.kh-nav { display: none; }
	.kh-header__cta { display: none !important; }
	.kh-header__inner { gap: 14px; min-height: 66px; }
	.kh-logo__img { height: 30px; }
}

@media (max-width: 992px) {
	.kh-topbar { display: none; }
	.kh-trust__inner { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.kh-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
	.kh-footer__cta-inner { flex-direction: column; align-items: flex-start; }
	.kh-footer__cta-text strong { font-size: 19px; }
}

@media (max-width: 560px) {
	.kh-container { padding: 0 16px; }
	.kh-header__inner { min-height: 60px; }
	.kh-logo__img { height: 34px; max-width: 150px; }
	.kh-iconbtn { width: 40px; height: 40px; border-radius: 11px; }
	.kh-actions { --kh-action-h: 40px; }
	.kh-burger { width: 40px; height: 40px; }
	.kh-trust__inner { grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
	.kh-trust__text span { display: none; }
	.kh-trust__icon { width: 34px; height: 34px; border-radius: 10px; }
	.kh-trust__text strong { font-size: 12px; line-height: 1.25; }
	.kh-trust__icon { width: 36px; height: 36px; }
	.kh-trust__text strong { font-size: 13px; }
	.kh-trust__text span { font-size: 11.5px; }
	.kh-footer__grid { grid-template-columns: 1fr; gap: 26px; padding-top: 36px; }
	body.kh-theme .kh-footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
	.kh-footer__cta-actions { width: 100%; flex-direction: column; }
	.kh-footer__cta-actions .kh-btn { width: 100%; }
	.kh-search-form .kh-btn { padding: 0 16px; }
	.kh-search-hints { display: none; }
}

/* Ссылка на разработку сайта с логотипом */
body.kh-theme .kh-footer__dev {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

body.kh-theme .kh-footer__dev img {
	display: block;
	height: 18px;
	width: auto;
	opacity: .8;
	transition: opacity .2s ease;
}

body.kh-theme .kh-footer__dev:hover img {
	opacity: 1;
}

@media (max-width: 640px) {
	body.kh-theme .kh-footer__dev img { height: 16px; }
}
/* На мобильных фиксированная панель звонка перекрывает низ подвала — оставляем место */
@media (max-width: 900px) {
	body.kh-theme .kh-footer__bottom-inner {
		padding-bottom: 88px;
	}
}
/* Кликабельные преимущества в шапке */
body.kh-theme a.kh-trust__item {
	text-decoration: none !important;
	border-radius: 12px;
	transition: background-color .18s ease;
}

body.kh-theme a.kh-trust__item:hover {
	background: var(--kh-brand-soft);
}

body.kh-theme a.kh-trust__item:hover .kh-trust__icon {
	background: var(--kh-grad);
	color: #fff;
}

body.kh-theme a.kh-trust__item:hover .kh-trust__text strong {
	color: var(--kh-brand);
}

body.kh-theme a.kh-trust__item .kh-trust__icon {
	transition: background-color .18s ease, color .18s ease;
}