/* Leka Print — общие стили (все страницы): токены, кнопки, шапка, подвал. DESIGN.md */

:root {
	--lk-brand: #0f802b;
	--lk-brand-hover: #0b6a23;
	--lk-brand-soft: #e8f4ec;
	--lk-ink: #0b0b0b;
	--lk-ink-2: #1c1c1c;
	--lk-body: #5e5e5e;
	--lk-mute: #9a9a9a;
	--lk-soft: #f3f3f1;
	--lk-line: #e6e6e3;
	--lk-r-md: 12px;
	--lk-r-lg: 20px;
	--lk-r-xl: 28px;
	--lk-font: Manrope, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--lk-section: clamp(56px, 8vw, 104px);
	--lk-ease: cubic-bezier(.2, .7, .2, 1);
	--lk-topbar-h: 40px;
}

/* ---------- кнопки ---------- */
.lk-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 14px 28px; border-radius: 999px; text-decoration: none !important;
	font: 700 16px/1 var(--lk-font); border: 1.5px solid transparent; cursor: pointer;
	transition: background-color .2s var(--lk-ease), color .2s var(--lk-ease), border-color .2s var(--lk-ease), transform .2s var(--lk-ease);
}
.lk-btn:active { transform: scale(.98); }
.lk-btn--sm { min-height: 42px; padding: 10px 20px; font-size: 15px; }
.lk-btn--primary { background: var(--lk-brand); color: #fff !important; }
.lk-btn--primary:hover { background: var(--lk-brand-hover); }
.lk-btn--dark { background: var(--lk-ink); color: #fff !important; }
.lk-btn--dark:hover { background: #2a2a2a; }
.lk-btn--ghost { border-color: currentColor; color: inherit !important; background: transparent; }
.lk-btn--ghost:hover { background: rgba(0,0,0,.05); }

.lk-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 18px; }
.lk-burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.lk-burger i:nth-child(2) { width: 70%; }

.lk-icon__count {
	position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 999px; background: var(--lk-brand); color: #fff; border: 2px solid #fff;
	font: 700 10px/14px var(--lk-font); text-align: center; font-style: normal;
}
.lk-icon__count:empty, .lk-icon__count[data-favorites-counter=""] { display: none; }

/* ---------- шапка ---------- */
.lk-header {
	position: sticky; top: calc(-1 * var(--lk-topbar-h)); z-index: 1030;
	background: #fff; font-family: var(--lk-font); color: var(--lk-ink);
	box-shadow: 0 1px 0 var(--lk-line);
}
.lk-header a { text-decoration: none; }

.lk-topbar { height: var(--lk-topbar-h); background: var(--lk-soft); font-size: 13px; }
.lk-topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lk-topbar__main, .lk-topbar__aux { display: flex; align-items: center; gap: 22px; min-width: 0; }
.lk-topbar__main a { color: var(--lk-ink); font-weight: 700; white-space: nowrap; }
.lk-topbar__aux a { color: var(--lk-body); font-weight: 500; white-space: nowrap; }
.lk-topbar a:hover, .lk-topbar a.is-active { color: var(--lk-brand); }
.lk-topbar__social { display: flex; gap: 6px; padding-left: 12px; border-left: 1px solid var(--lk-line); }
.lk-topbar__social a { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; }
.lk-topbar__social a:hover { background: #fff; }

.lk-mainbar__inner { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.lk-logo { flex: none; align-items: center; margin-right: 8px; }
.lk-logo img { height: 44px; width: auto; display: block; }

/* каталог: перекрываем старые стили темы .main_category-wrapper */
.lk-header .main_category-wrapper.lk-catalog { flex: none; flex-basis: auto; margin: 0; }
.lk-header .main_category.lk-catalog__btn {
	display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px;
	background: var(--lk-ink); color: #fff; border-radius: 999px; text-transform: none;
	font: 700 15px/1 var(--lk-font); transition: background-color .2s var(--lk-ease);
}
.lk-header .main_category.lk-catalog__btn:hover { background: var(--lk-brand); color: #fff; opacity: 1; }
.lk-header .main_category-wrapper .list-menu-wrapper.absolute {
	position: absolute; top: 100%; left: 0; width: 300px; padding-top: 10px; z-index: 50;
}
.lk-header .list-menu-wrapper > .bg-white {
	border-radius: 16px !important; box-shadow: 0 20px 50px -12px rgba(0,0,0,.25); padding: 8px 0;
}
.lk-header .list-menu-wrapper .list-item-subs-wrapper:not(.first-level) {
	border-radius: 16px !important; box-shadow: 0 20px 50px -12px rgba(0,0,0,.25); padding: 8px 0; left: calc(100% + 4px);
}
.lk-header .list-menu-wrapper .list-item-part a {
	border: 0; margin: 0 8px; padding: 10px 14px; border-radius: 10px; font: 600 15px/1.3 var(--lk-font); color: var(--lk-ink);
}
.lk-header .list-menu-wrapper .list-item-part:hover { background: transparent; }
.lk-header .list-menu-wrapper .list-item-part:hover > a { background: var(--lk-soft); color: var(--lk-brand); }
.lk-header .list-menu-wrapper .list-item-part a.has_babies { padding-right: 36px; }
.lk-header .list-menu-wrapper .list-item-part a .fas { font-size: 11px; right: 4px; }

.lk-search { flex: 1 1 auto; min-width: 0; padding: 0; }
.lk-search .search { display: flex; position: relative; margin: 0; }
.lk-search__input {
	width: 100%; height: 48px; border: 1.5px solid transparent; border-radius: 999px; background: var(--lk-soft);
	padding: 0 56px 0 22px; font: 500 15px var(--lk-font); color: var(--lk-ink); outline: none;
	transition: border-color .2s, background-color .2s; -webkit-appearance: none;
}
.lk-search__input::placeholder { color: var(--lk-mute); }
.lk-search__input:focus { background: #fff; border-color: var(--lk-ink); }
.lk-search__btn {
	position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; border: 0; border-radius: 50%;
	background: var(--lk-ink); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .2s;
}
.lk-search__btn:hover { background: var(--lk-brand); }
.lk-search .search-results { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px -12px rgba(0,0,0,.25); top: calc(100% + 8px); }

.lk-contact { flex-direction: column; align-items: flex-end; line-height: 1.25; flex: none; padding: 0 8px; }
.lk-contact__phone { color: var(--lk-ink) !important; font-weight: 800; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.lk-contact__phone:hover { color: var(--lk-brand) !important; }
.lk-contact__note { color: var(--lk-body) !important; font-size: 12px; font-weight: 500; white-space: nowrap; }

.lk-icons { align-items: center; gap: 6px; flex: none; }
.lk-icon {
	position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
	color: var(--lk-ink) !important; font-size: 17px; transition: background-color .2s;
}
.lk-icon:hover { background: var(--lk-soft); }
.lk-icon--dark { background: var(--lk-ink); color: #fff !important; }
.lk-cart { display: flex; align-items: center; gap: 10px; padding: 2px 16px 2px 2px; border-radius: 999px; background: var(--lk-soft); color: var(--lk-ink) !important; margin-left: 4px; transition: background-color .2s; }
.lk-cart:hover { background: #e9e9e5; }
.lk-cart:hover .lk-icon--dark { background: var(--lk-brand); }
.lk-cart .lk-icon:hover { background: var(--lk-ink); }
.lk-cart__sum { font-weight: 800; font-size: 14px; white-space: nowrap; }

.lk-dropdown { border: 0; border-radius: 16px; box-shadow: 0 20px 50px -12px rgba(0,0,0,.25); padding: 8px; min-width: 260px; font-family: var(--lk-font); }
.lk-dropdown .dropdown-item { border-radius: 10px; padding: 9px 12px; font-weight: 600; font-size: 14px; }
.lk-dropdown .dropdown-item:hover { background: var(--lk-soft); color: var(--lk-brand); }
.lk-dropdown__title { font-weight: 800; font-size: 15px; padding: 8px 12px 6px; }
.lk-dropdown__form { padding: 4px 4px 8px; display: flex; flex-direction: column; gap: 10px; }
.lk-dropdown__form .lk-dropdown__title { padding: 4px 0; }
.lk-dropdown__form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--lk-body); margin: 0; }
.lk-dropdown__form .form-control { border-radius: 10px; height: 42px; background: var(--lk-soft); border-color: transparent; }
.lk-dropdown__form .form-control:focus { background: #fff; border-color: var(--lk-ink); box-shadow: none; }

/* старое плавающее меню/корзина больше не используются */
.navbar-main.megamenu-nav { display: none !important; }

/* ---------- мобильная панель ---------- */
.lk-mnav {
	position: sticky; top: 0; z-index: 1031; align-items: center; justify-content: space-between; gap: 8px;
	height: 60px; padding: 0 10px; background: #fff; border-bottom: 1px solid var(--lk-line); font-family: var(--lk-font);
}
.lk-mnav__logo img { height: 32px; width: auto; display: block; }
.lk-mnav__right { display: flex; align-items: center; gap: 2px; }
.lk-mnav__btn {
	position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent;
	display: grid; place-items: center; color: var(--lk-ink) !important; font-size: 16px; padding: 0; cursor: pointer;
}
.lk-mnav__btn:active { background: var(--lk-soft); }
.lk-mnav__btn .lk-burger { width: 20px; }
.lk-mnav__btn--dark { background: var(--lk-ink); color: #fff !important; margin-left: 4px; }
@media (max-width: 767.98px) {
	.lk-header { position: static; box-shadow: none; }
	.lk-mainbar__inner { padding-top: 10px; padding-bottom: 12px; }
	.lk-search__input { height: 46px; }
}

/* ---------- подвал ---------- */
.lk-footer { background: var(--lk-ink); color: #fff; font-family: var(--lk-font); padding: clamp(48px, 7vw, 88px) 0 0; margin-top: 0; border: 0; }
.lk-footer a { color: #cfcfcf; text-decoration: none; transition: color .2s; }
.lk-footer a:hover { color: #fff; }
.lk-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.lk-footer__logo img { height: 44px; width: auto; filter: brightness(0) invert(1); }
.lk-footer__brand p { margin: 20px 0 24px; color: #a8a8a8; font-size: 15px; line-height: 1.55; max-width: 26em; }
.lk-footer__social { display: flex; gap: 8px; }
.lk-footer__social a { width: 42px; height: 42px; border-radius: 50%; background: var(--lk-ink-2); display: grid; place-items: center; font-size: 16px; color: #fff; transition: background-color .2s; }
.lk-footer__social a:hover { background: var(--lk-brand); }
.lk-footer__title { font: 700 13px/1 var(--lk-font); letter-spacing: .08em; text-transform: uppercase; color: #8a8a8a; margin: 0 0 20px; }
.lk-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 500; }
.lk-footer__contacts ul { color: #a8a8a8; margin-bottom: 24px; }
.lk-footer__phone { display: inline-block; color: #fff !important; font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.lk-footer__phone:hover { color: #6fd38a !important; }
.lk-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	margin-top: clamp(40px, 6vw, 72px); padding: 24px 0 28px; border-top: 1px solid #262626; color: #8a8a8a; font-size: 13px;
}
.lk-footer__bottom a { color: #8a8a8a; }

@media (max-width: 991.98px) {
	.lk-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
	.lk-footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.lk-footer__col ul { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.lk-header *, .lk-footer *, .lk-btn { transition: none !important; }
}
.lk-header--no-top { top: 0; }

/* мобильные правила темы обнуляют скругления у поиска */
.lk-header .lk-search__input { border-radius: 999px !important; }
.lk-header .lk-search__btn { border-radius: 50% !important; }
.lk-header .section-header .search, .lk-header .search { margin: 0 !important; padding: 0 !important; }

/* выезжающее мобильное меню */
.mm-ocd__content { font-family: var(--lk-font); }
.mm-ocd__content .mm-spn li { font-weight: 600; font-size: 16px; color: var(--lk-ink); }
.mm-ocd__content .mm-spn li:hover, .mm-ocd__content .mm-spn li.Selected { color: var(--lk-brand); }

/* тема прячет поиск на внутренних страницах на мобильных — показываем везде */
.lk-header .lk-search { display: block !important; }
