/*
Theme Name: DrevOpt
Theme URI: https://drev-opt.ru
Author: DrevOpt
Description: Тема для оптовой продажи пиломатериалов на WooCommerce: главная из 8 экранов, каталог с фильтрами, карточка товара с итогом, избранное, заказ физлиц и юрлиц без онлайн-оплаты, страницы доставки, о компании и контактов, заявки в админке, цели Яндекс Метрики.
Version: 3.39.0
Requires at least: 6.3
Requires PHP: 7.4
WC requires at least: 8.0
License: GPL-2.0-or-later
Text Domain: drevopt
*/

:root {
	--spruce: #1E3B2F;
	--spruce-2: #2A5040;
	--spruce-3: #16291F;
	--resin: #E2A93B;
	--resin-2: #CF9427;
	--paper: #F4F5F1;
	--ink: #1B1F22;
	--muted: #5B6560;
	--line: #D8DCD2;
	--field: #C5CBC1;
	--bark: #7A5433;
	--f-display: "Unbounded", system-ui, sans-serif;
	--f-body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* hidden всегда прячет, даже при display: grid/flex */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--f-body); }
img { max-width: 100%; height: auto; }
a { color: var(--spruce-2); text-underline-offset: 3px; }
a:hover { color: var(--bark); }
:focus-visible { outline: 3px solid var(--resin); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; animation: none !important; }
}

h1, h2 { font-family: var(--f-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(28px, 4vw, 48px); }
h2 { font-size: clamp(22px, 2.6vw, 32px); }
h3 { font-size: 18px; font-weight: 600; line-height: 1.3; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* Кнопки и поля */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px; border: 2px solid transparent; border-radius: var(--r);
	font: 600 16px/1 var(--f-body); text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
.btn--resin { background: var(--resin); color: var(--ink); }
.btn--resin:hover { background: var(--resin-2); color: var(--ink); }
.btn--ghost { border-color: rgba(255,255,255,.45); background: transparent; color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--line { border-color: var(--spruce); color: var(--spruce); background: #fff; }

input[type=text], input[type=tel], input[type=email], input[type=number], input[type=search], select, textarea {
	width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--field); border-radius: var(--r);
	background: #fff; color: var(--ink); font: 400 16px/1.4 var(--f-body);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--spruce-2); outline: 2px solid rgba(42,80,64,.25); outline-offset: 0; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.topbar { background: var(--spruce); color: #CBD7D0; font-size: 14px; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.header__in { position: relative; display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; flex-direction: column; font: 700 19px/1.15 var(--f-display); color: var(--ink); text-decoration: none; }
.brand small { font: 400 13px/1.3 var(--f-body); color: var(--muted); margin-top: 3px; }
.brand--logo img { max-height: 52px; width: auto; }
.brand:hover { color: var(--ink); }
.brand { flex-shrink: 0; }
.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone { font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.cart-count {
	display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
	border-radius: 11px; background: var(--resin); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1;
}
.menu-toggle { display: none; }

/* Первый экран */
.hero { position: relative; overflow: hidden; background: var(--spruce); color: #fff; padding: 64px 0 72px; }
.hero::after {
	content: ""; position: absolute; right: -200px; bottom: -300px; width: 680px; height: 680px; border-radius: 50%;
	background: repeating-radial-gradient(circle, rgba(255,255,255,.06) 0 2px, transparent 2px 24px);
	pointer-events: none;
}
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero__text { max-width: 46ch; font-size: 19px; color: #D3DED8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__phone { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 28px 0 0; color: #B9C8C0; font-size: 15px; }
.hero__phone a { color: #fff; font-size: 22px; font-weight: 600; text-decoration: none; }

/* Калькулятор */
.calc { position: relative; background: var(--paper); color: var(--ink); border-radius: 12px; padding: 28px; }
.calc__title { font-size: 20px; margin-bottom: 18px; }
.calc__fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.calc__fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.2; color: var(--muted); white-space: nowrap; }
.calc__fields input { min-height: 48px; padding: 8px 10px; font-size: 18px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.calc__fields input::-webkit-outer-spin-button, .calc__fields input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__fields input::placeholder { color: #A7AEA8; font-weight: 400; }
.calc__result { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 14px; margin: 18px 0; padding: 12px 16px; background: #fff; border-left: 4px solid var(--resin); border-radius: 0 var(--r) var(--r) 0; }
.calc__label { font-size: 14px; color: var(--muted); }
.calc__eq { font: 700 30px/1.15 var(--f-display); font-variant-numeric: tabular-nums; }
.calc__per { grid-column: 2; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.calc .btn { width: 100%; text-align: center; line-height: 1.2; }
@media (max-width: 480px) {
	.calc__fields { grid-template-columns: 1fr 1fr; }
}

/* Секции */
.section { padding: 72px 0; }
.section--white { background: #fff; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; margin-bottom: 28px; }
.section__head h2 { margin: 0; }
.section__head a { font-weight: 600; }
.admin-hint { padding: 16px 18px; border: 2px dashed var(--field); border-radius: var(--r); color: var(--muted); margin: 0; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.cat { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.cat:hover { border-color: var(--spruce-2); color: var(--ink); }
.cat__img {
	display: block; aspect-ratio: 4 / 3;
	background: repeating-radial-gradient(circle at 18% 130%, #D9BB8C 0 9px, #CDA771 9px 11px);
}
.cat__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cat__body { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 14px 16px; }
.cat__name { font-weight: 600; }
.cat:hover .cat__name { color: var(--bark); }
.cat__count { flex-shrink: 0; font-size: 14px; color: var(--muted); }

.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.term { padding: 20px 0 28px; border-top: 2px solid var(--spruce); }
.term p { margin: 0; color: var(--muted); max-width: 52ch; }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; margin: 0; padding: 0; }
.steps li { position: relative; counter-increment: step; padding-top: 58px; }
.steps li::before {
	content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
	display: grid; place-items: center; background: var(--resin); font: 700 16px/1 var(--f-display);
}
.steps p { margin: 0; color: var(--muted); }

/* Заявка */
.callback { background: var(--spruce-2); color: #fff; padding: 72px 0; }
.callback__in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.callback__copy p { color: #D3DED8; max-width: 44ch; }
.callback__phone a { color: #fff; font-weight: 600; }
.form { display: grid; gap: 14px; padding: 28px; background: #fff; color: var(--ink); border-radius: 10px; }
.form > label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.form .btn { width: 100%; }
.form > .consent, .consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--spruce); }
.hp { position: absolute !important; left: -9999px; }
.notice { margin: 0; padding: 12px 14px; border-radius: var(--r); color: var(--ink); }
.notice--ok { background: #E4F1E8; border-left: 4px solid #2E7D4F; }
.notice--err { background: #FBEAEA; border-left: 4px solid #B3261E; }

/* Подвал */
.site-footer { background: var(--spruce-3); color: #BFCCC4; padding: 56px 0 24px; font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-size: 16px; }
.site-footer p { margin: 0 0 .5em; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer__brand { font: 700 18px/1.2 var(--f-display); color: #fff; margin-bottom: 12px !important; }
.footer__phone { font-size: 18px; font-weight: 600; text-decoration: none; }
.footer__msg { display: flex; gap: 16px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }

.mdock { display: none; }

/* Страницы и записи */
.page-content, .page-wc { padding-top: 40px; padding-bottom: 72px; }
.entry { max-width: 780px; }
.entry--wide { max-width: none; }
.entry__title { font-size: clamp(26px, 3vw, 38px); }
.entry__thumb { border-radius: 8px; margin-bottom: 24px; }
.posts { display: grid; gap: 24px; max-width: 780px; }
.post-card { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.post-card h2 { font-size: 22px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }

/* WooCommerce */
.woocommerce-breadcrumb { margin-bottom: 24px !important; font-size: 14px; color: var(--muted) !important; }
.woocommerce-products-header__title, .woocommerce div.product .product_title { font-family: var(--f-display); font-size: clamp(24px, 3vw, 36px); }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin: 0 0 32px !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
	display: flex; flex-direction: column; width: auto !important; float: none !important; margin: 0 !important;
	padding: 12px 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px;
}
.woocommerce ul.products li.product a img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 12px !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 !important; font-size: 16px !important; font-weight: 600; color: var(--ink); }
.woocommerce ul.products li.product .price { color: var(--ink) !important; font-size: 18px !important; font-weight: 600; }
.woocommerce ul.products li.product .button { margin-top: auto !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
	background: var(--resin) !important; color: var(--ink) !important; border-radius: var(--r) !important;
	padding: 13px 18px !important; font-family: var(--f-body) !important; font-weight: 600 !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--resin-2) !important; }
.woocommerce a.added_to_cart { display: block; margin-top: 8px; font-size: 14px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink) !important; font-size: 26px !important; font-weight: 600; }
.woocommerce div.product form.cart .qty { min-height: 48px; width: 5em; }
.woocommerce span.onsale { background: var(--bark) !important; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--spruce); color: #fff; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { min-height: 46px; padding: 10px 12px; border: 1px solid var(--field); border-radius: var(--r); }
.woocommerce-checkout form.checkout { max-width: 760px; }
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { float: none !important; width: 100% !important; }
.woocommerce-checkout #payment { background: #fff !important; border: 1px solid var(--line); }
.woocommerce #place_order { width: 100%; min-height: 54px; font-size: 17px !important; }
.consent-row { margin: 0 0 16px !important; }


/* ===== v2: общие блоки ===== */
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.hicon { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); }
.hicon:hover { border-color: var(--spruce-2); color: var(--ink); }
.hicon .cart-count, .hicon .fav-count { position: absolute; top: -7px; right: -7px; }
.fav-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--resin); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1; }
.fav-count[hidden], .cart-count[data-n="0"] { display: none; }
.lead { font-size: 19px; color: var(--muted); max-width: 60ch; }
.section__cta { margin: 28px 0 0; }
.narrow > * { max-width: 820px; }
.h3 { font: 600 18px/1.3 var(--f-body); margin: 28px 0 8px; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.split__cta { justify-self: end; }
.split--map { align-items: start; }

.facts { display: grid; gap: 0; margin: 0; }
.facts > div { padding: 16px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.facts--row { grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.facts--row > div { border-top: 2px solid var(--spruce); }

.phero { background: var(--spruce); color: #fff; padding: 56px 0 60px; }
.phero h1 { color: #fff; margin-bottom: .4em; }
.phero__text { max-width: 60ch; font-size: 19px; color: #D3DED8; margin: 0; }
.phero .hero__actions { margin-top: 26px; }

.callback--dark { background: var(--spruce-3); }
.callback__bigphone { margin: 8px 0 20px; }
.callback__bigphone a { font: 700 clamp(24px, 3vw, 34px)/1.2 var(--f-display); color: #fff; text-decoration: none; }
.callback .clist dt { color: #9FB3A8; }
.callback .clist a, .callback .clist dd { color: #fff; }

.clist { display: grid; gap: 14px; margin: 0 0 8px; }
.clist dt { font-size: 14px; color: var(--muted); }
.clist dd { margin: 2px 0 0; font-weight: 500; }
.clist__phone { font-size: 22px; font-weight: 600; text-decoration: none; }
.clist__msg { display: flex; gap: 16px; }
.req { color: var(--muted); max-width: 52ch; }

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { position: relative; padding: 18px 44px 18px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 400 26px/1 var(--f-body); color: var(--bark); transition: transform .15s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 18px; color: var(--muted); max-width: 70ch; }
.faq__a p:last-child { margin: 0; }

.zones { list-style: none; margin: 0 0 28px; padding: 0; }
.zones li { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
.zones span { color: var(--muted); font-size: 15px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 4px 0 4px 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 12px; height: 7px; border-left: 2px solid var(--spruce-2); border-bottom: 2px solid var(--spruce-2); transform: rotate(-45deg); }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #E6E9E2; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.empty { padding: 48px 24px; text-align: center; border: 2px dashed var(--field); border-radius: 10px; }
.empty p { font-size: 18px; margin-bottom: 18px; }
.empty[hidden] { display: none; }

/* ===== Каталог ===== */
.bc-sep { margin: 0 8px; color: var(--field); }
.cat-head { margin-bottom: 28px; }
.cat-head__text { max-width: 70ch; color: var(--muted); }
.cat-head__text p:last-child { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.chip span { color: var(--muted); font-weight: 400; font-size: 13px; }
.chip:hover { border-color: var(--spruce-2); color: var(--ink); }
.chips--quiet { align-items: center; margin-top: 32px; }
.chips__label { color: var(--muted); font-size: 15px; margin-right: 4px; }

.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.catalog__side { position: sticky; top: 130px; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.filters summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-weight: 600; cursor: pointer; }
.filters__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; background: var(--resin); font-size: 13px; }
.filters__body { padding: 0 16px 16px; }
.fgroup { margin: 0 0 16px; padding: 14px 0 0; border: 0; box-shadow: 0 -1px 0 var(--line); min-width: 0; }
.fgroup fieldset { margin: 0; padding: 0; border: 0; }
.fgroup legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.fgroup ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fopt { display: inline-block; padding: 5px 10px; border: 1px solid var(--field); border-radius: var(--r); color: var(--ink); text-decoration: none; font-size: 14px; font-variant-numeric: tabular-nums; }
.fopt:hover { border-color: var(--spruce-2); color: var(--ink); }
.fopt.is-on { background: var(--spruce); border-color: var(--spruce); color: #fff; }
.fprice__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.fprice .btn { width: 100%; min-height: 42px; }
.filters__reset { display: inline-block; font-size: 14px; }

.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.toolbar .woocommerce-notices-wrapper { flex-basis: 100%; }
.toolbar .woocommerce-result-count, .toolbar .woocommerce-ordering { float: none !important; margin: 0 !important; color: var(--muted); }
.toolbar .woocommerce-ordering select { min-height: 42px; width: auto; }

.help { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 64px 0 0; padding: 36px; background: var(--spruce-2); color: #fff; border-radius: 12px; }
.help p { color: #D3DED8; }
.cat-faq { margin-top: 64px; max-width: 860px; }
.seo { margin-top: 36px; color: var(--muted); }

/* Карточка товара в сетке */
.woocommerce ul.products li.product { position: relative; }
.specs { list-style: none; margin: 0 0 10px; padding: 0; font-size: 14px; color: var(--ink); }
.specs li { padding: 1px 0; }
.specs span { color: var(--muted); }
.specs span::after { content: ":"; }
.unit { font-size: .75em; font-weight: 400; color: var(--muted); }
.avail { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin: 0 0 12px; }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.avail--in { color: #2E7D4F; }
.avail--order { color: var(--bark); }
.avail--out { color: #9A3A33; }
.loop-buy { display: grid; grid-template-columns: 64px 1fr; gap: 8px; margin-top: auto; }
.loop-qty { min-height: 44px !important; padding: 8px !important; text-align: center; }
.loop-buy .button { margin: 0 !important; text-align: center; }
.woocommerce ul.products li.product > .button { margin-top: auto !important; }
.fav-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--muted); cursor: pointer; }
.woocommerce ul.products li.product .fav-btn { position: absolute; top: 20px; right: 20px; z-index: 2; }
.fav-btn:hover { color: var(--bark); border-color: var(--bark); }
.fav-btn.is-on { color: #C0392B; border-color: #E8B7B1; }
.fav-btn.is-on .ico { fill: currentColor; }
.fav-btn--text { display: inline-flex; width: auto; height: 48px; gap: 8px; padding: 0 16px; border-radius: var(--r); font: 500 15px var(--f-body); color: var(--ink); }

/* Страница товара */
.pmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin: -4px 0 14px; font-size: 14px; color: var(--muted); }
.pmeta .avail { margin: 0; }
.single-product .summary .specs { font-size: 15px; margin-bottom: 16px; }
.single-product form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.single-product form.cart .quantity { margin: 0 !important; }
.line-total { flex-basis: 100%; order: -1; margin: 0 0 4px; color: var(--muted); }
.line-total b { color: var(--ink); font-size: 20px; font-variant-numeric: tabular-nums; }
.single-product form.cart .quantity { order: -2; }
.pdeliv { margin-top: 18px; padding: 14px 16px; background: #fff; border-left: 4px solid var(--resin); font-size: 15px; color: var(--muted); }
.pdeliv b { color: var(--ink); }
.psec { clear: both; padding: 40px 0 0; margin-top: 40px; border-top: 1px solid var(--line); }
.psec__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.psec__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 20px; }
.psec__cols p { color: var(--muted); margin: 0; }
.woocommerce table.shop_attributes { border-top: 1px solid var(--line); margin: 0; }
.woocommerce table.shop_attributes tr:nth-child(even) th, .woocommerce table.shop_attributes tr:nth-child(even) td { background: none !important; }
.woocommerce table.shop_attributes th { width: 42%; padding: 10px 12px 10px 0; text-align: left; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); background: none; }
.woocommerce table.shop_attributes td { padding: 10px 0; font-style: normal; border-bottom: 1px solid var(--line); background: none !important; }
.woocommerce table.shop_attributes td p { margin: 0; padding: 0; }
.related, .upsells, .cross-sells { clear: both; padding-top: 40px; }
.related > h2, .upsells > h2, .cross-sells > h2 { font-size: clamp(22px, 2.6vw, 30px); }

/* Корзина и оформление */
.price-note { padding: 12px 14px; background: #FFF6E3; border-left: 4px solid var(--resin); border-radius: 0 var(--r) var(--r) 0; font-size: 15px; }
.cart-fav { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--spruce-2); font: 500 14px var(--f-body); cursor: pointer; }
.cart-fav .ico { width: 16px; height: 16px; }
.cart-fav:hover { color: var(--bark); }
.woocommerce-cart table.cart .specs { margin: 6px 0 0; }
.woocommerce-cart table.cart img { width: 72px; border-radius: 6px; }
.woocommerce .cart-collaterals .cart_totals { float: none; width: 100%; max-width: 460px; margin-left: auto; }
.delivery-row td { color: var(--muted); }
.ctype .woocommerce-input-wrapper { display: flex; flex-wrap: wrap; gap: 8px; }
.ctype input[type=radio] { position: absolute; opacity: 0; }
.ctype input[type=radio] + label { display: inline-flex !important; align-items: center; min-height: 44px; padding: 0 16px; margin: 0 !important; border: 1px solid var(--field); border-radius: var(--r); background: #fff; cursor: pointer; font-weight: 500; }
.ctype input[type=radio]:checked + label { border-color: var(--spruce); background: var(--spruce); color: #fff; }
.ctype input[type=radio]:focus-visible + label { outline: 3px solid var(--resin); outline-offset: 2px; }
.drevopt-company[hidden] { display: none !important; }
.woocommerce form .form-row select { min-height: 46px; }

/* Избранное */
.favs__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 24px; }
.favs__head h1 { margin: 0; }
.favs__head .btn[hidden] { display: none; }
.favs__loading { color: var(--muted); }

/* Адаптив */
@media (max-width: 1180px) {
	.topbar { display: none; }
	.menu-toggle {
		display: inline-flex; align-items: center; margin-left: auto; min-height: 42px; padding: 0 14px;
		border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); font: 500 15px var(--f-body); cursor: pointer;
	}
	.header__phone { display: none; }
	.header__in { gap: 12px; min-height: 64px; }
}
@media (max-width: 960px) {
	.hero__in, .callback__in { grid-template-columns: 1fr; gap: 36px; }
	.footer__grid { grid-template-columns: 1fr 1fr; }
}
/* ===== v3.23: нижняя панель на телефоне — покупка/итог + меню из 5 пунктов ===== */
@media (max-width: 760px) {
	body { padding-bottom: calc(var(--dock-h, 62px) + 8px); }
	.mdock {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line);
		box-shadow: 0 -8px 24px rgba(22, 41, 31, .07);
	}
	body.kb-open .mdock { display: none; } /* открыта клавиатура — панель не закрывает поле */
	.tabbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
	.tabbar__a {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		min-height: 58px; padding: 7px 2px 6px; color: var(--muted); text-decoration: none;
		font: 500 11.5px/1.1 var(--f-body); -webkit-tap-highlight-color: transparent;
	}
	.tabbar__a:hover { color: var(--ink); }
	.tabbar__a.is-active { color: var(--spruce); font-weight: 600; }
	.tabbar__a.is-active .ico { stroke-width: 2.2; }
	.tabbar__ico { position: relative; display: grid; place-items: center; }
	.tabbar__a .ico { width: 24px; height: 24px; }
	.tabbar .cart-count, .tabbar .fav-count {
		position: absolute; top: -6px; left: 15px; min-width: 18px; height: 18px; padding: 0 5px;
		border: 2px solid #fff; border-radius: 9px; box-sizing: content-box; font-size: 11px;
	}
	.tabbar__a--call { color: var(--spruce-2); }

	.dbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
	.dbar--cart { grid-template-columns: minmax(0, 1fr) auto; }
	.dbar .stepper { width: 108px; height: 46px; grid-template-columns: 34px 1fr 34px; }
	.dbar__sum { min-width: 0; line-height: 1.2; }
	.dbar__sum small { display: block; overflow: hidden; color: var(--muted); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
	.dbar__sum b { display: block; font-size: 18px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
	.dbar .btn { min-height: 46px; padding: 0 16px; white-space: nowrap; }
	.dbar__go.is-loading { opacity: .6; pointer-events: none; }
}
@media (max-width: 360px) {
	.dbar { gap: 6px; padding: 8px; }
	.dbar .stepper { width: 84px; grid-template-columns: 26px 1fr 26px; }
	.dbar .stepper input { font-size: 15px; }
	.dbar__sum small { font-size: 11.5px; }
	.dbar__sum b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
	.dbar .btn { padding: 0 8px; font-size: 14px; }
	.tabbar__a { font-size: 10.5px; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.section, .callback { padding: 52px 0; }
	.hero { padding: 36px 0 44px; }
	.calc, .form { padding: 20px; }
	.terms, .steps, .footer__grid { grid-template-columns: 1fr; }
	.woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 12px; }
	.woocommerce ul.products li.product .button { padding: 11px 10px !important; font-size: 14px; }
}

@media (max-width: 960px) {
	.split, .help, .psec__grid { grid-template-columns: 1fr; gap: 28px; }
	.split__cta { justify-self: start; }
	.catalog { grid-template-columns: 1fr; gap: 16px; }
	.catalog__side { position: static; }
	.facts--row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.help { padding: 24px 20px; }
	.psec__cols { grid-template-columns: 1fr; gap: 16px; }
	.loop-buy { grid-template-columns: 1fr; }
	.woocommerce ul.products li.product .fav-btn { top: 16px; right: 16px; width: 36px; height: 36px; }
	.phero { padding: 36px 0 40px; }
	.hicon { width: 40px; height: 40px; }
}

/* Оформление: лишние пометки */
.ctype input[type=radio] + label .required, .ctype input[type=radio] + label .optional, .drevopt-company .optional { display: none; }
@media (max-width: 600px) {
	.cats { grid-template-columns: 1fr 1fr; gap: 12px; }
	.cat__body { flex-direction: column; gap: 2px; padding: 10px 12px; }
}

/* Бейджи и оффер доставки */
.badges { position: absolute; top: 20px; left: 20px; z-index: 2; display: flex; gap: 6px; }
.single-product .summary .badges { position: static; margin-bottom: 10px; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 4px; font-size: 13px; font-weight: 600; line-height: 1.2; }
.badge--sale { background: #B3261E; color: #fff; }
.badge--hit { background: var(--resin); color: var(--ink); }
.woocommerce ul.products li.product .price del { color: var(--muted); font-weight: 400; font-size: .8em; }
.woocommerce ul.products li.product .price ins, .woocommerce div.product p.price ins { text-decoration: none; }
.offer { display: inline-block; margin: 4px 0 0; padding: 8px 14px; border-left: 4px solid var(--resin); background: rgba(255,255,255,.08); color: #fff; font-weight: 600; }
@media (max-width: 600px) { .badges { top: 16px; left: 16px; } }

/* ===== v2.3: страница товара ===== */
.single-product div.product { display: block; }
.ptop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 56px; align-items: start; }
.woocommerce.single-product div.product .ptop div.images, .woocommerce.single-product div.product .ptop div.summary { float: none !important; width: auto !important; margin: 0 !important; }
/* Фото «едет» рядом с длинным блоком покупки и не оставляет пустоты; за пределы верхнего блока не выходит. */
.woocommerce.single-product div.product .ptop div.images { position: sticky; top: 124px; }
.woocommerce div.product div.images .woocommerce-product-gallery__image img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #E6E9E2; }
.woocommerce div.product div.images .woocommerce-product-gallery__image a { cursor: zoom-in; }
.woocommerce div.product div.images .flex-control-thumbs { margin-top: 10px; display: flex; gap: 8px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 72px !important; float: none !important; }
.woocommerce div.product div.images .flex-control-thumbs img { border-radius: 6px; aspect-ratio: 1; object-fit: cover; }
.woocommerce div.product .product_title { margin: 0 0 10px; line-height: 1.15; }
.pmeta { margin: 0 0 18px; }
.pspecs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0 0 20px; }
.pspecs > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--field); font-size: 15px; }
.pspecs dt { color: var(--muted); }
.pspecs dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.buybox { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(22, 41, 31, .06); }
.buybox p.price { margin: 0 0 4px !important; font-size: 30px !important; line-height: 1.2; }
.buybox__alt { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.buybox__hint { margin: 6px 0 14px; color: var(--muted); font-size: 15px; }
.buybox form.cart { margin: 14px 0 0 !important; }
.buybox .single_add_to_cart_button { flex: 1 1 auto; min-height: 50px; font-size: 17px !important; }
.buybox .form { padding: 0; gap: 12px; }
.buybox .fav-btn--text { margin-top: 12px; }
.buybox form.cart .fav-btn--text { margin-top: 0; }
.price-request { font: 700 26px/1.2 var(--f-display); color: var(--ink); }
.woocommerce ul.products li.product .price-request { font-size: 17px; font-family: var(--f-body); }
.pbenefits { list-style: none; margin: 18px 0 0; padding: 0; font-size: 15px; color: var(--muted); }
.pbenefits li { position: relative; padding: 7px 0 7px 26px; }
.pbenefits li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 11px; height: 6px; border-left: 2px solid var(--spruce-2); border-bottom: 2px solid var(--spruce-2); transform: rotate(-45deg); }
.pbenefits b { color: var(--ink); font-weight: 600; }
.pbenefits a { font-weight: 600; white-space: nowrap; }
.psec { padding: 44px 0 0; margin-top: 44px; }
.psec:first-of-type { margin-top: 56px; }
.psec__grid { grid-template-columns: 1.3fr 1fr; gap: 48px; }
.psec__one { max-width: 75ch; }
.psec__desc { max-width: 70ch; }
.psec__attrs h3 { margin-bottom: 12px; }
.psec__cols { grid-template-columns: repeat(3, 1fr); }
.steps--compact li { padding-top: 52px; }
.steps--compact li::before { width: 38px; height: 38px; }
.psec--faq .faq { max-width: 860px; }
.woocommerce ul.products li.product > .button { display: block; width: 100%; text-align: center; margin-top: auto !important; }
@media (max-width: 960px) {
	.ptop { grid-template-columns: 1fr; }
	.woocommerce.single-product div.product .ptop div.images { position: static; }
	.woocommerce.single-product div.product .ptop div.summary { margin-top: 24px !important; }
	.psec__cols { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 600px) {
	.pspecs { grid-template-columns: 1fr; }
	.buybox { padding: 18px; }
	.buybox p.price { font-size: 26px !important; }
}

.buybox form.cart .quantity { order: 1; }
.buybox .line-total { order: 2; flex: 1 1 55%; flex-basis: 55%; margin: 0 0 0 6px; }
.buybox .single_add_to_cart_button { order: 3; }
.buybox form.cart .fav-btn--text { order: 4; }

/* Количество: кнопки − / + вместо мелких стрелок браузера */
input.qty, .loop-qty { -moz-appearance: textfield; appearance: textfield; text-align: center !important; font-variant-numeric: tabular-nums; }
input.qty::-webkit-inner-spin-button, input.qty::-webkit-outer-spin-button,
.loop-qty::-webkit-inner-spin-button, .loop-qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper { display: inline-grid; grid-template-columns: 40px minmax(44px, 1fr) 40px; align-items: stretch; height: 48px; border: 1px solid var(--field); border-radius: var(--r); background: #fff; overflow: hidden; }
.stepper:focus-within { border-color: var(--spruce-2); }
.stepper button { display: grid; place-items: center; padding: 0; border: 0; background: #F4F5F1; color: var(--ink); font: 500 22px/1 var(--f-body); cursor: pointer; user-select: none; }
.stepper button:hover { background: #E7EAE3; }
.stepper button:disabled { color: var(--field); cursor: default; }
.stepper input { width: 100% !important; min-width: 0; height: 100% !important; min-height: 0 !important; margin: 0 !important; padding: 0 4px !important; border: 0 !important; border-radius: 0 !important; outline: none !important; font: 600 17px/1 var(--f-body); box-shadow: none !important; }
.woocommerce .quantity .stepper input.qty { width: 100% !important; }
.buybox .stepper { width: 140px; }
.loop-buy { grid-template-columns: 112px 1fr; }
.loop-buy .stepper { height: 44px; grid-template-columns: 32px 1fr 32px; }
.loop-buy .stepper button { font-size: 19px; }
.woocommerce-cart table.cart .stepper { width: 132px; height: 44px; }
@media (max-width: 600px) {
	.loop-buy { grid-template-columns: 1fr; }
}


/* Блок покупки: ровная сетка — [количество | итог] / [в корзину | избранное] */
.buybox form.cart { display: grid !important; grid-template-columns: 140px 1fr auto; gap: 12px; align-items: center; }
.buybox form.cart::before, .buybox form.cart::after { display: none !important; }
.buybox form.cart .quantity { grid-column: 1; grid-row: 1; float: none !important; }
.buybox .line-total { grid-column: 2 / 4; grid-row: 1; margin: 0 !important; }
.buybox .single_add_to_cart_button { grid-column: 1 / 3; grid-row: 2; width: 100%; margin: 0 !important; float: none !important; }
.buybox form.cart .fav-btn--text { grid-column: 3; grid-row: 2; }
/* Карточка в каталоге: количество и кнопка в две строки, ничего не переносится */
.loop-buy { grid-template-columns: 1fr !important; }
.loop-buy .stepper { width: 100%; }
@media (max-width: 420px) {
	.buybox form.cart { grid-template-columns: 1fr 1fr; }
	.buybox .line-total { grid-column: 2; }
	.buybox .single_add_to_cart_button { grid-column: 1 / -1; }
	.buybox form.cart .fav-btn--text { grid-column: 1 / -1; grid-row: 3; justify-content: center; }
	.buybox .stepper { width: 100%; }
}

/* ===== v2.4 ===== */
/* Уведомления WooCommerce: аккуратная карточка вместо серой плашки */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error,
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
	margin: 0 0 24px !important; padding: 14px 18px 14px 48px !important; list-style: none;
	background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-left: 4px solid var(--spruce-2) !important;
	border-radius: 10px; font-size: 15px; line-height: 1.45; box-shadow: 0 6px 18px rgba(22, 41, 31, .05);
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { top: 50% !important; left: 18px !important; transform: translateY(-50%); color: var(--spruce-2) !important; }
.woocommerce-error { border-left-color: #B3261E !important; flex-direction: column; align-items: flex-start; }
.woocommerce-error::before { color: #B3261E !important; }
.woocommerce-message::after, .woocommerce-info::after, .woocommerce-error::after { display: none !important; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; float: none !important; margin: 0 !important; padding: 9px 14px !important; background: none !important; border: 1px solid var(--spruce-2) !important; color: var(--spruce-2) !important; font-size: 14px !important; }
.woocommerce-message .button:hover, .woocommerce-info .button:hover { background: var(--spruce-2) !important; color: #fff !important; }
.woocommerce ul.products li.product a.added_to_cart { display: none !important; }

/* Кнопка после добавления: «В корзине · Перейти» */
.woocommerce a.button.is-added, .woocommerce button.button.is-added, .button.is-added {
	display: flex !important; align-items: center; justify-content: center; gap: 10px;
	background: var(--spruce) !important; color: #fff !important;
}
.woocommerce a.button.is-added:hover, .woocommerce button.button.is-added:hover { background: var(--spruce-2) !important; }
.is-added .ok { display: inline-flex; align-items: center; gap: 6px; }
.is-added .ok::before { content: ""; width: 10px; height: 5px; margin-top: -3px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.is-added .go { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .35); font-weight: 500; opacity: .9; }
.single_add_to_cart_button.is-loading { opacity: .6; pointer-events: none; }
.cart-count.bump { animation: cartbump .45s ease; }
@keyframes cartbump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* Переключатель категорий в каталоге */
.catnav { display: flex; gap: 8px; margin-top: 20px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.catnav::-webkit-scrollbar { display: none; }
.catnav .chip { flex-shrink: 0; white-space: nowrap; }
.chip.is-active { background: var(--spruce); border-color: var(--spruce); color: #fff; }
.chip.is-active span { color: #BFD0C6; }
.catnav--sub { margin-top: 10px; }
.catnav--sub .chip { padding: 6px 12px; font-size: 14px; background: transparent; }
.catnav--sub .chip.is-active { background: var(--resin); border-color: var(--resin); color: var(--ink); }
.toolbar { justify-content: flex-end; }

/* Корзина: пересчёт сразу, без кнопки «Обновить корзину» */
.woocommerce-cart-form td.actions, .woocommerce-cart-form [name="update_cart"] { display: none !important; }
.woocommerce-cart-form .product-name > a { font-weight: 600; text-decoration: none; color: var(--ink); }
.woocommerce-cart-form .product-name > a:hover { color: var(--bark); }
.cart-fav { display: flex; margin-top: 8px; }
.woocommerce-cart table.cart td { vertical-align: middle; }
.woocommerce-cart .blockUI.blockOverlay { background: rgba(244, 245, 241, .6) !important; }
.woocommerce a.added_to_cart { display: none !important; }
.woocommerce a.button.added::after, .woocommerce button.button.added::after { display: none !important; }

/* ===== v2.5: компактная шапка каталога ===== */
.page-wc { padding-top: 20px; }
.woocommerce-breadcrumb { margin-bottom: 12px !important; }
.cat-head { margin-bottom: 20px; }
.cat-head__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.cat-head h1 { margin: 0; font-size: clamp(26px, 3vw, 36px); }
.cat-head__row .woocommerce-ordering { float: none !important; margin: 0 !important; }
.cat-head__row .woocommerce-ordering select { min-height: 42px; width: auto; }
.cat-head__text { margin-top: 8px; font-size: 16px; }
.catnav { margin-top: 14px; }
.catalog__main > .woocommerce-notices-wrapper { margin-bottom: 12px; }

/* Заголовок группы фильтра — под разделителем, а не на линии */
.fgroup legend { float: left; width: 100%; }
.fgroup legend + * { clear: both; }

/* ===== v2.7: простое оформление заказа ===== */
.woocommerce-checkout form.checkout { max-width: none; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 40px; align-items: start; }
.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup, .woocommerce-checkout form.checkout > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; padding: 26px 26px 6px; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; font-size: 22px; line-height: 1.3; }
.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; padding: 10px 26px 26px; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; }
.woocommerce-checkout #customer_details h3 { margin: 0 0 16px; font-size: 22px; }
.woocommerce-checkout .woocommerce-additional-fields > h3 { display: none; }
.woocommerce-checkout .woocommerce-additional-fields { margin-top: 4px; }
.woocommerce-checkout .form-row { margin: 0 0 14px !important; padding: 0 !important; }
.woocommerce-checkout .form-row label { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.woocommerce-checkout .form-row .required { color: var(--bark); text-decoration: none; }
.woocommerce-checkout textarea#order_comments { min-height: 64px; }
.company-toggle { margin-top: 4px !important; }
.company-toggle label.checkbox { display: flex !important; align-items: center; gap: 10px; color: var(--ink) !important; font-size: 15px !important; cursor: pointer; }
.company-toggle input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--spruce); }
.company-toggle .optional { display: none; }
.drevopt-company { padding-left: 0 !important; }
.woocommerce-checkout-review-order-table { margin: 0 0 16px !important; border: 0 !important; border-radius: 0 !important; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 10px 0 !important; border-top: 1px solid var(--line) !important; background: none !important; }
.woocommerce-checkout-review-order-table thead { display: none; }
.woocommerce-checkout-review-order-table tbody tr:first-child td { border-top: 0 !important; }
.woocommerce-checkout-review-order-table td.product-total, .woocommerce-checkout-review-order-table tfoot td { text-align: right; white-space: nowrap; }
.woocommerce-checkout-review-order-table .product-name { font-weight: 500; }
.woocommerce-checkout-review-order-table .product-quantity { color: var(--muted); font-weight: 400; }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { font-size: 19px; padding-top: 14px !important; }
.woocommerce-checkout #payment { padding: 0 !important; background: none !important; border: 0 !important; }
.woocommerce-checkout #payment .form-row.place-order { margin: 0 !important; padding: 0 !important; }
.woocommerce-checkout .consent-row { margin: 0 0 14px !important; }
.submit-note { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 10px 12px; background: var(--paper); border-radius: 8px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.submit-note .ico { flex-shrink: 0; width: 18px; height: 18px; color: var(--spruce-2); }

/* Выгода по акции */
.savings-row th, .savings-row td { color: #2E7D4F !important; font-weight: 600; }
.savings-row[hidden] { display: none; }
.cart-sale { display: inline-block; margin: 6px 0 2px; }
.woocommerce-cart table.cart .product-price del, .woocommerce-checkout-review-order-table del { color: var(--muted); font-weight: 400; font-size: .85em; margin-right: 4px; }
.woocommerce-cart table.cart .product-price ins { text-decoration: none; font-weight: 600; }

@media (max-width: 960px) {
	.woocommerce-checkout form.checkout { grid-template-columns: 1fr; gap: 20px; }
	.woocommerce-checkout #customer_details, .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; position: static; }
	.woocommerce-checkout #customer_details { padding: 20px; }
}

.woocommerce-checkout-review-order-table { border-collapse: collapse !important; }
.woocommerce-checkout .consent-row .consent { align-items: center; font-size: 14px; }
.cart-sale { display: table; margin: 6px 0 4px; }
.savings-row th { white-space: nowrap; }

/* ===== v2.8: шапка с поиском ===== */
.topbar__in { align-items: center; }
.topbar__info { display: flex; gap: 20px; }
.topbar__hours { color: #9FB3A8; }
.topnav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.topnav a { color: #E3EBE6; text-decoration: none; font-size: 14px; }
.topnav a:hover, .topnav .current-menu-item > a { color: #fff; text-decoration: underline; }
.header__in { gap: 16px; min-height: 76px; }
.catmenu { position: relative; flex-shrink: 0; }
.catmenu__btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border: 0; border-radius: var(--r); background: var(--spruce); color: #fff; font: 600 16px/1 var(--f-body); cursor: pointer; }
.catmenu__btn:hover, .catmenu__btn[aria-expanded="true"] { background: var(--spruce-2); }
.catmenu__btn .ico { width: 20px; height: 20px; }
.catmenu__panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 70; display: grid; min-width: 280px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 44px rgba(6, 20, 14, .14); }
.catmenu__panel[hidden] { display: none; }
.catmenu__panel a { display: flex; justify-content: space-between; gap: 16px; padding: 11px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.catmenu__panel a:hover { background: var(--paper); color: var(--ink); }
.catmenu__panel a span { color: var(--muted); font-weight: 400; font-size: 14px; }
.catmenu__all { border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0 !important; margin-bottom: 4px; }

.hsearch { position: relative; flex: 1 1 auto; min-width: 200px; max-width: 560px; }
.hsearch input[type=search] { width: 100%; height: 46px; min-height: 46px; padding: 0 52px 0 16px; border: 2px solid var(--spruce); border-radius: var(--r); background: #fff; font-size: 16px; -webkit-appearance: none; appearance: none; }
.hsearch input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.hsearch input[type=search]:focus { outline: none; border-color: var(--spruce-2); box-shadow: 0 0 0 3px rgba(42, 80, 64, .15); }
.hsearch__go { position: absolute; top: 4px; right: 4px; bottom: 4px; width: 42px; display: grid; place-items: center; border: 0; border-radius: 4px; background: var(--resin); color: var(--ink); cursor: pointer; }
.hsearch__go:hover { background: var(--resin-2); }
.hsearch__drop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 70; max-height: 70vh; overflow: auto; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 44px rgba(6, 20, 14, .14); }
.hsearch__drop[hidden] { display: none; }
.hsearch__drop a { display: grid; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.hsearch__drop a:hover, .hsearch__drop a.is-active { background: var(--paper); color: var(--ink); }
.sd__item { grid-template-columns: 44px 1fr auto; }
.sd__item img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: var(--paper); }
.sd__name { font-weight: 500; }
.sd__price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sd__cat { color: var(--muted) !important; font-size: 15px; }
.sd__cat b { color: var(--ink); }
.sd__all { justify-content: center; font-weight: 600; color: var(--spruce-2) !important; border-top: 1px solid var(--line); border-radius: 0 !important; margin-top: 4px; }
.sd__empty { padding: 12px; color: var(--muted); font-size: 15px; }

.header__actions { gap: 12px; margin-left: auto; }
.hphone { display: grid; justify-items: end; gap: 2px; margin-right: 6px; }
.hphone__msg { padding: 0; border: 0; background: none; color: var(--spruce-2); font: 500 13px/1.2 var(--f-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hphone__msg:hover { color: var(--bark); }
.linkbtn { padding: 0; border: 0; background: none; color: var(--spruce-2); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mnav { display: none; }

@media (max-width: 1180px) {
	.header__in { flex-wrap: wrap; gap: 10px 12px; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
	.catmenu, .hphone { display: none; }
	.hsearch { order: 10; flex: 1 1 100%; max-width: none; }
	.mnav { position: absolute; top: 100%; left: 0; right: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); padding: 6px 20px 16px; }
	.mnav.is-open { display: block; }
	.mnav ul { list-style: none; margin: 0; padding: 0; }
	.mnav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
	.mnav__phone { font-weight: 700 !important; border-bottom: 0 !important; }
}

/* Иконки в разделах */
.features { display: grid; gap: 24px 40px; }
.features--grid { grid-template-columns: repeat(2, 1fr); }
.features--row { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 24px; }
.feature { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.feature h3 { margin: 4px 0 6px; }
.feature p { margin: 0; color: var(--muted); }
.feature__ico, .step__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #E4ECE6; color: var(--spruce); }
.feature__ico .ico, .step__ico .ico { width: 26px; height: 26px; stroke-width: 1.7; }
.steps--ico li { padding-top: 0 !important; }
.steps--ico li::before { top: -8px !important; left: 40px !important; width: 24px !important; height: 24px !important; font-size: 12px !important; z-index: 1; border: 2px solid var(--paper); }
.section--white .steps--ico li::before { border-color: #fff; }
.steps--ico .step__ico { margin-bottom: 14px; }
.steps--ico h3 { margin-bottom: 4px; }
@media (max-width: 760px) { .features--grid { grid-template-columns: 1fr; } }

/* Кнопки мессенджеров */
.msg { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.msg__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.msg__btn .ico { width: 18px; height: 18px; }
.msg__btn::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); margin-right: -2px; }
.msg__btn--wa::before { background: #25D366; }
.msg__btn--tg::before { background: #2AABEE; }
.msg__btn--max::before { background: #7B4DFF; }
.msg__btn--mail::before { background: var(--resin); }
.msg__btn .ico { display: none; }
.msg__btn:hover { border-color: var(--spruce-2); color: var(--ink); }
.msg--dark .msg__btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: #fff; }
.msg--dark .msg__btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.msg--footer .msg__btn { min-height: 36px; padding: 0 12px; font-size: 14px; background: transparent; border-color: rgba(255, 255, 255, .25); color: #fff; }
.msg--stack { display: grid; margin: 12px 0 0; }
.msg--stack .msg__btn { border-radius: 10px; justify-content: flex-start; min-height: 46px; }

/* Плавающая кнопка «Написать нам» */
.chatw { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: grid; justify-items: end; gap: 10px; }
.chatw__btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--spruce); color: #fff; font: 600 16px/1 var(--f-body); box-shadow: 0 12px 30px rgba(6, 20, 14, .25); cursor: pointer; }
.chatw__btn:hover { background: var(--spruce-2); }
.chatw__btn .ico { width: 22px; height: 22px; }
.chatw__panel { width: 280px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(6, 20, 14, .18); }
.chatw__panel[hidden] { display: none; }
.chatw__title { margin: 0 0 2px; font-weight: 700; font-size: 17px; }
.chatw__text { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
	.chatw { right: 12px; bottom: calc(var(--dock-h, 62px) + 12px); }	.chatw__btn { width: 52px; padding: 0; justify-content: center; }
	.chatw__btn span { display: none; }
}

/* Убрать из корзины на карточке */
.cart-remove { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--muted); cursor: pointer; }
.cart-remove:hover { color: #B3261E; border-color: #E8B7B1; }
.cart-remove .ico { width: 20px; height: 20px; }
.loop-buy { grid-template-columns: 1fr auto !important; }
.loop-buy .stepper { grid-column: 1 / -1; }
.loop-buy .add_to_cart_button { grid-column: 1 / -1; }
.loop-buy .add_to_cart_button.is-added { grid-column: 1; }
.buybox form.cart.has-remove { grid-template-columns: 140px 1fr auto auto; }
.buybox form.cart.has-remove .line-total { grid-column: 2 / 5; }
.buybox form.cart.has-remove .cart-remove { grid-column: 3; grid-row: 2; min-height: 50px; width: 50px; }
.buybox form.cart.has-remove .fav-btn--text { grid-column: 4; }
.empty__hint { color: var(--muted); font-size: 15px !important; }

/* ===== v2.9 ===== */
/* Подсказки поиска: разделы — компактной строкой */
.sd__cats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px 6px; border-top: 1px solid var(--line); margin-top: 4px; font-size: 13px; color: var(--muted); }
.hsearch__drop a.sd__chip { display: inline-block; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; }
.hsearch__drop a.sd__chip:hover { border-color: var(--spruce-2); background: #fff; }

/* Иконки мессенджеров */
.bico { width: 20px; height: 20px; flex-shrink: 0; }
.max-mark { display: inline-grid; place-items: center; border-radius: 6px; background: linear-gradient(135deg, #3A7BFF, #8A3DFF); color: #fff; font: 800 7px/1 var(--f-body); letter-spacing: .02em; }
.micons { display: flex; gap: 6px; }
.micons__a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #F1F3EF; transition: transform .15s; }
.micons__a:hover { transform: translateY(-1px); }
.micons__a .bico { width: 17px; height: 17px; }
.micons__a--wa { color: #25D366; }
.micons__a--tg { color: #26A5E4; }
.micons__a--max .max-mark { width: 18px; height: 18px; font-size: 6.5px; border-radius: 5px; }
.hphone { gap: 4px; }
.msg__btn::before { display: none !important; }
.msg__btn .bico { display: block; }
.msg__btn--wa .bico { color: #25D366; }
.msg__btn--tg .bico { color: #26A5E4; }
.msg__btn--mail .bico { color: var(--bark); fill: none; stroke: currentColor; stroke-width: 1.8; }
.msg--dark .msg__btn--mail .bico, .msg--footer .msg__btn--mail .bico { color: var(--resin); }

.max-mark { line-height: 1; padding-top: 1px; }

/* ===== v3.0 ===== */
/* Плитки категорий: компактные, для 3–15 категорий */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cat { position: relative; display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 12px 40px 12px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.cat:hover { border-color: var(--spruce-2); box-shadow: 0 8px 22px rgba(22, 41, 31, .08); color: var(--ink); }
.cat__img { flex-shrink: 0; width: 72px; height: 72px; aspect-ratio: auto; border-radius: 10px; overflow: hidden; background: repeating-radial-gradient(circle at 18% 130%, #D9BB8C 0 5px, #CDA771 5px 6px); }
.cat__img img { width: 100%; height: 100%; object-fit: cover; }
.cat__body { display: grid; gap: 4px; padding: 0; min-width: 0; }
.cat__name { font-weight: 600; font-size: 17px; line-height: 1.25; }
.cat__meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 14px; color: var(--muted); }
.cat__meta b { color: var(--ink); font-weight: 600; }
.cat__go { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--muted); stroke-width: 2; }
.cat:hover .cat__go { stroke: var(--spruce-2); }
.cat:hover .cat__name { color: var(--ink); }
@media (max-width: 600px) {
	.cats { grid-template-columns: 1fr; gap: 8px; }
	.cat__img { width: 60px; height: 60px; }
}

/* Карточка товара: количество и кнопка в одну строку */
.woocommerce ul.products li.product { container-type: inline-size; }
.loop-buy { display: grid !important; grid-template-columns: 112px minmax(0, 1fr) !important; gap: 8px; align-items: stretch; }
.loop-buy .stepper { grid-column: auto !important; width: 112px !important; height: 44px; grid-template-columns: 34px 1fr 34px !important; }
.loop-buy .add_to_cart_button, .loop-buy .add_to_cart_button.is-added { grid-column: auto !important; display: flex !important; align-items: center; justify-content: center; min-height: 44px; padding: 0 10px !important; font-size: 15px !important; white-space: nowrap; }
@container (max-width: 230px) {
	.loop-buy { grid-template-columns: 1fr !important; }
	.loop-buy .stepper { width: 100% !important; }
}
.stepper button.is-trash { color: #B3261E; }
.stepper button.is-trash .ico { width: 18px; height: 18px; }
.in-cart .stepper { border-color: var(--spruce); }
.in-cart .stepper button { background: #E4ECE6; }

/* Шапка: только телефон */
.hphone { margin-right: 4px; }

/* Мессенджеры под телефоном на первом экране */
.msg--hero { margin: 14px 0 0; }

/* Чат «Задать вопрос» */
.chatw__btn span { white-space: nowrap; }
.chatw__panel { width: min(360px, calc(100vw - 24px)); padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.chatw__panel[hidden] { display: none; }
.chatw__head { display: grid; grid-template-columns: 40px 1fr 32px; gap: 10px; align-items: center; padding: 14px 14px 14px 16px; background: var(--spruce); color: #fff; }
.chatw__head small { display: block; color: #BFD0C6; font-size: 13px; }
.chatw__ava { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.chatw__close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: #fff; cursor: pointer; }
.chatw__close:hover { background: rgba(255, 255, 255, .12); }
.chatw__log { display: flex; flex-direction: column; gap: 8px; height: 260px; overflow-y: auto; padding: 14px; background: var(--paper); }
.cmsg { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: 15px; line-height: 1.4; }
.cmsg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.cmsg--me { align-self: flex-end; background: var(--spruce); color: #fff; border-bottom-right-radius: 4px; }
.chatw__form { padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.chatw__row { display: grid; grid-template-columns: 1fr 44px; gap: 8px; }
.chatw__input { min-height: 44px !important; }
.chatw__send { display: grid; place-items: center; border: 0; border-radius: var(--r); background: var(--resin); color: var(--ink); cursor: pointer; }
.chatw__send:hover { background: var(--resin-2); }
.chatw__consent { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.chatw__consent[hidden] { display: none; }
.chatw__consent input { margin-top: 2px; accent-color: var(--spruce); }
.chatw__alt { display: flex; align-items: center; gap: 10px; padding: 10px 14px 12px; border-top: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--muted); }
.micons__a--mail { color: var(--bark); }
.micons__a--mail .bico { fill: none; stroke: currentColor; stroke-width: 1.8; }

.chatw__form[hidden] { display: none; }

/* Чат: мини-форма «Имя + телефон» */
.chatw__card { display: grid; gap: 8px; align-self: stretch; margin-top: 2px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.chatw__card[hidden] { display: none; }
.chatw__card-title { margin: 0 0 2px; font-weight: 600; }
.chatw__card input[type=text], .chatw__card input[type=tel] { min-height: 42px; }
.chatw__card .btn { min-height: 44px; width: 100%; }
.chatw__card .chatw__consent { margin: 0; }
.chatw__err { margin: 0; color: #B3261E; font-size: 13px; }
.chatw__err[hidden] { display: none; }
.chatw__log { height: 300px; }


/* Чат: когда перезвонить */
.chatw__when { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--field); border-radius: var(--r); overflow: hidden; }
.chatw__when button { min-height: 40px; padding: 0 6px; border: 0; border-right: 1px solid var(--field); background: #fff; color: var(--ink); font: 600 14px/1 var(--f-body); cursor: pointer; }
.chatw__when button:last-child { border-right: 0; }
.chatw__when button[hidden] { display: none; }
.chatw__when button:hover { background: var(--paper); }
.chatw__when button.is-active { background: var(--spruce); color: #fff; }
.chatw__slot { min-height: 42px; }
.chatw__slot[hidden] { display: none; }
.chatw__consent { cursor: pointer; padding: 4px 0; }
.chatw__consent input { width: 18px; height: 18px; flex-shrink: 0; }
.chatw__consent.is-shake { color: #B3261E; animation: drevopt-shake .35s; }
@keyframes drevopt-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Нашли дешевле? */
.cheaper { background: #FBF3E1; border-top: 1px solid #F0DDB0; border-bottom: 1px solid #F0DDB0; }
.cheaper__in { align-items: start; }
.cheaper__note { margin: 0 0 20px; font-size: 15px; color: var(--muted); }
.cheaper__alt { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.cheaper .form { background: #fff; }

/* Заявка на первом экране */
.leadcard { padding: 28px; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 24px 48px rgba(6,20,14,.35); }
.leadcard__title { margin: 0 0 18px; font-size: 22px; }
.leadcard .form { padding: 0; gap: 10px; }
/* Подпись остаётся для экранных дикторов, на экране — только подсказка в поле. */
.leadcard .form > label:not(.consent):not(.hp) { font-size: 0; gap: 0; }
.leadcard .form input[type=text], .leadcard .form input[type=tel] { min-height: 50px; font-size: 16px; }
.leadcard .consent { margin: 2px 0 4px; font-size: 13px; }
.leadcard .form .btn { min-height: 52px; font-size: 17px; }

/* Виджет «Калькулятор кубов» */
.calctile {
	display: grid; grid-template-columns: 44px 1fr 36px; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding: 12px 12px 12px 14px;
	border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.calctile:hover { border-color: var(--spruce-2); box-shadow: 0 8px 20px rgba(6,20,14,.10); transform: translateY(-1px); }
.calctile__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--resin); color: var(--ink); }
.calctile__ico .ico { width: 24px; height: 24px; }
.calctile:hover .calctile__ico .ico { animation: calctile-spin .6s ease-out; }
@keyframes calctile-spin { 50% { transform: rotate(-12deg) scale(1.08); } }
.calctile__txt { display: grid; gap: 2px; font: 600 16px/1.2 var(--f-body); }
.calctile__txt small { font-weight: 400; font-size: 14px; color: var(--muted); }
.calctile__go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--spruce); color: #fff; transition: transform .15s; }
.calctile__go .ico { width: 18px; height: 18px; }
.calctile:hover .calctile__go { transform: translateX(3px); }
@media (max-width: 600px) { .leadcard { padding: 20px; } }

/* Калькулятор внутри карточки заявки */
.calc--inline { margin-top: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: none; animation: calc-in .18s ease-out; }
.calc--inline[hidden] { display: none; }
@keyframes calc-in { from { opacity: 0; transform: translateY(-6px); } }
.calc--inline .calc__fields { gap: 8px; }
.calc--inline .calc__fields input { min-height: 44px; padding: 6px 4px; font-size: 17px; }
.calc--inline .calc__result { margin: 12px 0; padding: 10px 14px; }
.calc--inline .calc__eq { font-size: 26px; }
.calc--inline .btn { min-height: 44px; }
.calctile.is-open { border-color: var(--spruce-2); border-bottom-left-radius: 12px; }
.calctile.is-open .calctile__go { transform: rotate(90deg); }
.calctile.has-calc small { color: var(--spruce-2); font-weight: 600; }

/* Адрес: подсказки + карта */
.addr { position: relative; }
.addr > input { padding-right: 96px !important; }
.addr__map { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px; border: 0; border-radius: var(--r); background: var(--paper); color: var(--spruce-2); font: 600 14px/1 var(--f-body); cursor: pointer; }
.addr__map:hover { background: #E6EAE3; }
.addr__map .ico { width: 18px; height: 18px; }
.addr__list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60; max-height: 280px; overflow: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 34px rgba(6,20,14,.16); }
.addr__list[hidden] { display: none; }
.addr__list li { padding: 9px 10px; border-radius: 6px; font-size: 15px; line-height: 1.35; color: var(--ink); cursor: pointer; }
.addr__list li:hover, .addr__list li.is-active { background: var(--paper); }
.mapdlg { width: min(760px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 30px 70px rgba(6,20,14,.45); }
.mapdlg::backdrop { background: rgba(10, 22, 16, .6); }
.mapdlg__in { display: grid; }
.mapdlg__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mapdlg__x { width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.mapdlg__x:hover { background: var(--paper); }
.mapdlg__map { height: min(60vh, 460px); background: #E9ECE6; }
.mapdlg__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.mapdlg__addr { font-size: 15px; color: var(--ink); }
.mapdlg__ok { min-width: 140px; }
.mapdlg__ok:disabled { opacity: .45; cursor: not-allowed; }
.mappin { color: #B3261E; }
.mappin .ico { width: 36px; height: 36px; fill: #fff; stroke-width: 2; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
@media (max-width: 600px) { .mapdlg__foot { flex-direction: column; align-items: stretch; } .addr__map span { display: none; } .addr > input { padding-right: 52px !important; } }

/* Оформление: короткие ошибки у полей */
.woocommerce-checkout .checkout-inline-error-message { margin: 4px 0 0; font-size: 13px; color: #B3261E; }
.woocommerce-checkout .woocommerce-invalid input.input-text, .woocommerce-checkout .woocommerce-invalid textarea { border-color: #B3261E !important; }
.woocommerce-checkout .woocommerce-invalid label { color: #B3261E; }
#drevopt_consent_field:has(.checkout-inline-error-message) .consent { color: #B3261E; }
.woocommerce-checkout .form-row:has(.checkout-inline-error-message) input.input-text { border-color: #B3261E !important; }
.woocommerce-checkout .optin-row label.checkbox { display: flex !important; align-items: center; gap: 10px; font-size: 15px !important; color: var(--ink) !important; cursor: pointer; }
.woocommerce-checkout .optin-row input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--spruce); }

/* Заказ принят */
.ty { max-width: 960px; margin: 8px 0 40px; }
.ty__head { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; margin-bottom: 28px; }
.ty__ok { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #2E7D4F; }
.ty__ok svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ty__num { margin: 0 0 4px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ty__title { margin: 0 0 8px; font-size: clamp(26px, 3.2vw, 36px); }
.ty__lead { margin: 0; font-size: 18px; color: var(--ink); }
.ty__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; counter-reset: ty; }
.ty__steps li { position: relative; display: grid; gap: 2px; padding: 16px 16px 16px 58px; background: #fff; border: 1px solid var(--line); border-radius: 12px; counter-increment: ty; }
.ty__steps li::before { content: counter(ty); position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--resin); font-weight: 700; }
.ty__steps span { font-size: 14px; color: var(--muted); }
.ty__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.ty__card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.ty__card h2 { margin: 0 0 14px; font-size: 18px; }
.ty__items { margin: 0; padding: 0; list-style: none; }
.ty__items li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.ty__items li:first-child { border-top: 0; padding-top: 0; }
.ty__items em { font-style: normal; color: var(--muted); white-space: nowrap; }
.ty__items b { white-space: nowrap; font-weight: 600; }
.ty__sum, .ty__data { margin: 0; }
.ty__sum div, .ty__data div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.ty__sum dt, .ty__data dt { color: var(--muted); }
.ty__sum dd, .ty__data dd { margin: 0; text-align: right; }
.ty__data div:first-child { border-top: 0; padding-top: 0; }
.ty__total dt, .ty__total dd { font-size: 19px; font-weight: 700; color: var(--ink); }
.ty__hint { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.ty__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 760px) {
	.ty__head { grid-template-columns: 48px 1fr; gap: 14px; }
	.ty__ok { width: 48px; height: 48px; }
	.ty__steps, .ty__grid { grid-template-columns: 1fr; }
}

/* Ошибки форм: коротко и по-русски */
.field-err { margin: 4px 0 0; font-size: 13px; line-height: 1.3; color: #B3261E; }
input.is-invalid { border-color: #B3261E !important; }
.consent.is-err, .chatw__consent.is-err, .consent.is-err a, .chatw__consent.is-err a { color: #B3261E; }
.consent.is-err input, .chatw__consent.is-err input { outline: 2px solid #B3261E; outline-offset: 1px; border-radius: 3px; }
.consent.is-shake { animation: drevopt-shake .35s; }
/* Галочка согласия в заказе: подсвечиваем, без лишнего текста */
#drevopt_consent_field .checkout-inline-error-message { display: none; }
#drevopt_consent_field:has(.checkout-inline-error-message) input { outline: 2px solid #B3261E; outline-offset: 1px; border-radius: 3px; }
.emailbox { position: relative; }
a[href^="tel:"] { white-space: nowrap; }

/* Карта: скромная подпись OpenStreetMap */
.mapdlg .leaflet-control-attribution { padding: 0 5px; font-size: 10px; line-height: 16px; background: rgba(255,255,255,.55) !important; color: #8A918C; }
.mapdlg .leaflet-control-attribution a { color: inherit; }

/* Заказ принят: итог прижат к низу карточки */
.ty__card { display: flex; flex-direction: column; }
.ty__sum { margin-top: auto; padding-top: 12px; }
.ty__hint { margin-top: auto !important; padding-top: 14px; }

/* Метка на Яндекс Карте: остриём в точку */
.mappin--y { position: absolute; width: 36px; height: 36px; color: #B3261E; transform: translate(-50%, -94%); pointer-events: none; }
.mappin--y .ico { width: 36px; height: 36px; fill: #fff; stroke-width: 2; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }

/* Заявка принята */
.lead-ok { display: grid; justify-items: center; gap: 6px; padding: 28px 20px; background: #fff; color: var(--ink); border-radius: 10px; text-align: center; outline: none; animation: calc-in .2s ease-out; }
.leadcard .lead-ok { padding: 12px 0 4px; }
.lead-ok__ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 50%; background: #2E7D4F; }
.lead-ok__ico svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lead-ok__title { margin: 0; font: 700 22px/1.25 var(--f-display); }
.lead-ok__text { margin: 0; font-size: 16px; color: var(--muted); max-width: 34ch; }
.lead-ok__text b { color: var(--ink); white-space: nowrap; }
.lead-ok__edit { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--muted); font: 400 14px/1.3 var(--f-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lead-ok__edit:hover { color: var(--spruce-2); }
.mapdlg__admin { margin: 0; padding: 10px 16px; background: #FBF3E1; border-bottom: 1px solid #F0DDB0; font-size: 13px; line-height: 1.4; }
.leadcard.is-done { display: flex; flex-direction: column; justify-content: center; }

/* Оформление: переключатели вместо галочек (юрлицо, рассылка) */
.woocommerce-checkout .switch-row label.checkbox { display: flex !important; align-items: center; gap: 12px; margin: 0; color: var(--ink) !important; font-size: 15px !important; line-height: 1.3; cursor: pointer; }
.woocommerce-checkout .switch-row input[type=checkbox] { -webkit-appearance: none; appearance: none; position: relative; flex-shrink: 0; width: 42px; height: 24px; margin: 0; border-radius: 12px; background: #C9CFC7; cursor: pointer; transition: background .15s; }
.woocommerce-checkout .switch-row input[type=checkbox]::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.woocommerce-checkout .switch-row input[type=checkbox]:checked { background: var(--spruce); }
.woocommerce-checkout .switch-row input[type=checkbox]:checked::before { transform: translateX(18px); }
.woocommerce-checkout .switch-row input[type=checkbox]:focus-visible { outline: 3px solid var(--resin); outline-offset: 2px; }
.woocommerce-checkout .optin-row { padding-left: 0 !important; }
.woocommerce-checkout .company-toggle { margin: 6px 0 16px !important; }
/* Комментарий по кнопке */
.addnote { display: inline-flex; align-items: center; padding: 6px 0; border: 0; background: none; color: var(--spruce-2); font: 600 15px/1.3 var(--f-body); cursor: pointer; }
.addnote:hover { color: var(--bark); }

/* Окно «Перезвоним вам»: по центру, в 2 шага */
.cbpop { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 40px 90px rgba(6,20,14,.45); overflow: auto; }
.cbpop::backdrop { background: rgba(10, 22, 16, .62); backdrop-filter: blur(2px); }
.cbpop[open] { animation: cbpop-in .28s cubic-bezier(.2,.8,.2,1); }
@keyframes cbpop-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.cbpop__in { display: grid; grid-template-columns: 330px 1fr; min-height: 480px; }
.cbpop__side { position: relative; display: flex; flex-direction: column; padding: 28px 26px 0; background: var(--spruce); color: #fff; overflow: hidden; }
.cbpop__side.has-photo { background-size: cover; background-position: center; }
.cbpop__side.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,41,31,.88) 0%, rgba(22,41,31,.55) 55%, rgba(22,41,31,.2) 100%); }
.cbpop__side > * { position: relative; }
.cbpop__live { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 0 0 22px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 13px; font-weight: 600; }
.cbpop__dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: cbpop-pulse 1.8s infinite; }
.cbpop.is-offline .cbpop__dot { background: #B9C8C0; animation: none; }
@keyframes cbpop-pulse { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.cbpop__why { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.cbpop__why li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.35; color: #E3ECE6; }
.cbpop__why li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--resin) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%231B1F22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.cbpop__art { display: block; width: calc(100% + 52px); height: auto; margin: auto -26px 0; padding-top: 18px; }
.cbpop__main { position: relative; display: flex; flex-direction: column; padding: 34px 36px 28px; }
.cbpop__x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.cbpop__x:hover { background: var(--paper); color: var(--ink); }
.cbpop__x .ico { width: 20px; height: 20px; }
.cbpop__kicker { margin: 0 0 8px; color: var(--bark); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cbpop__t { margin: 0 44px 22px 0; font: 700 26px/1.2 var(--f-display); letter-spacing: -.01em; }
.cbpop__q { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.cbpop__q b { display: block; margin-top: 2px; color: #2E7D4F; font-size: 15px; }
.cbpop__n { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; font-weight: 500; }
.cbpop__needs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cbpop__need { min-height: 54px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 600 15px/1.25 var(--f-body); text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.cbpop__need:hover { border-color: var(--spruce-2); background: #F3F7F4; transform: translateY(-1px); }
.cbpop__need:last-child { grid-column: 1 / -1; color: var(--spruce-2); }
.cbpop__chosen { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 8px 12px; background: var(--paper); border-radius: 8px; font-size: 14px; }
.cbpop__back { margin-left: auto; padding: 0; border: 0; background: none; color: var(--muted); font: 400 14px/1.3 var(--f-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cbpop .form { padding: 0; gap: 10px; }
.cbpop .form > label:not(.consent):not(.hp) { font-size: 0; gap: 0; }
.cbpop .form input[type=text], .cbpop .form input[type=tel] { min-height: 52px; font-size: 17px; }
.cbpop .consent { font-size: 13px; }
.cbpop .form .btn { min-height: 56px; font-size: 18px; }
.cbpop__alt { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.cbpop .lead-ok { padding: 24px 0 8px; }
.cbpop .lead-ok__title { font-size: 26px; }
.cbpop__done { margin-top: 16px; }
@media (max-width: 760px) {
	/* Телефон: лист снизу, без картинки, чтобы не закрывать весь экран */
	.cbpop { width: 100vw; max-width: none; max-height: 88vh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
	.cbpop[open] { animation: cbpop-up .28s cubic-bezier(.2,.8,.2,1); }
	@keyframes cbpop-up { from { transform: translateY(40px); opacity: 0; } }
	.cbpop__in { grid-template-columns: 1fr; min-height: 0; }
	.cbpop__side { display: none; }
	.cbpop__main { padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
	.cbpop__t { font-size: 21px; margin-bottom: 16px; }
	.cbpop__needs { gap: 8px; }
	.cbpop__need { min-height: 50px; font-size: 14px; }
}


/* Комментарий к заказу */
.woocommerce-checkout .note { position: relative; padding: 14px !important; background: var(--paper); border-radius: 10px; }
.woocommerce-checkout .note label { margin: 0 0 8px !important; color: var(--ink) !important; font-weight: 600; }
.woocommerce-checkout .note label .optional { display: none; }
.woocommerce-checkout .note textarea#order_comments { display: block; width: 100%; min-height: 64px; padding: 10px 12px; border: 1px solid var(--field) !important; border-radius: var(--r); background: #fff; font: 400 16px/1.45 var(--f-body); resize: none; overflow: hidden; box-shadow: none; }
.woocommerce-checkout .note textarea#order_comments:focus { border-color: var(--spruce-2) !important; outline: 2px solid rgba(42,80,64,.2); outline-offset: 0; }
.note__x { position: absolute; top: 12px; right: 12px; padding: 2px 4px; border: 0; background: none; color: var(--muted); font: 400 14px/1.3 var(--f-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.note__x:hover { color: var(--ink); }
.note__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.note__chips .chip { padding: 6px 11px; border: 1px solid var(--field); border-radius: 999px; background: #fff; color: var(--ink); font: 500 13px/1.2 var(--f-body); cursor: pointer; }
.note__chips .chip:hover { border-color: var(--spruce-2); }
.note__chips .chip.is-on { background: var(--spruce); border-color: var(--spruce); color: #fff; }

/* ИНН: список компаний и карточка найденной */
.emailbox .addr__list li b { display: block; font-weight: 600; }
.emailbox .addr__list li small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.inn-card { display: grid; gap: 2px; margin-top: 8px; padding: 10px 12px; background: #EEF5F0; border-left: 3px solid #2E7D4F; border-radius: 0 8px 8px 0; font-size: 14px; }
.inn-card span { color: var(--muted); font-size: 13px; }
.inn-card em { font-style: normal; color: #B3261E; font-size: 13px; }
.inn-card.is-bad { background: #FBEAEA; border-left-color: #B3261E; }
.woocommerce-checkout .is-hidden-field { display: none !important; }
.cbpop__in:focus { outline: none; }

/* Оформление: короткие поля парами (имя+телефон, ИНН+e-mail), адрес на всю ширину */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row { grid-column: 1 / -1; float: none !important; width: auto !important; }
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-first { grid-column: 1; }
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-last { grid-column: 2; }
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .inn-card { grid-column: 1 / -1; }
@media (max-width: 600px) {
	.woocommerce-checkout .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; }
	.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-first,
	.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-last { grid-column: 1; }
}

/* Формы заявок: имя и телефон — в одну строку (короткие поля), остальное на всю ширину */
.form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; }
.form > * { grid-column: 1 / -1; }
.form:has(> .f-name) > .f-phone, .form:has(> .f-phone) > .f-name { grid-column: auto; }
@media (max-width: 600px) {
	.form:has(> .f-name) > .f-phone, .form:has(> .f-phone) > .f-name { grid-column: 1 / -1; }
}
.form > label { align-self: start; align-content: start; }

/* Кнопка заказа: у WooCommerce она плавающая (float) — отключаем, текст по центру */
.woocommerce-checkout #payment #place_order { float: none !important; display: flex; align-items: center; justify-content: center; width: 100%; margin: 0; text-align: center; }
/* Плашка «Оплата при получении» — под карточкой заказа */
.woocommerce-checkout form.checkout > .submit-note--out { grid-column: 2; grid-row: 3; margin: 12px 0 0; padding: 12px 16px; background: rgba(30, 59, 47, .06); border-radius: 10px; }
@media (max-width: 960px) { .woocommerce-checkout form.checkout > .submit-note--out { grid-column: 1; grid-row: auto; } }

/* ===== v3.21: боковой «Каталог товаров» ===== */
.catalog__side { position: static; display: grid; gap: 16px; }
.sidecat { position: relative; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.sidecat__head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 18px; background: var(--resin); border: 0; border-radius: 9px 9px 0 0; color: var(--ink); font: 700 17px/1.2 var(--f-display); text-align: left; cursor: default; }
.sidecat__head small, .sidecat__caret { display: none; }
.sidecat__list, .sidecat__sub { list-style: none; margin: 0; padding: 0; }
.sidecat__item { position: relative; display: flex; align-items: stretch; border-top: 1px solid var(--line); }
.sidecat__item:first-child { border-top: 0; }
.sidecat__item > a { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 10px 8px 10px 18px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; line-height: 1.3; }
.sidecat__item:not(.has-sub) > a { padding-right: 18px; }
.sidecat__n { color: var(--muted); font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }
.sidecat__tg { display: grid; place-items: center; width: 40px; flex-shrink: 0; padding: 0; background: none; border: 0; color: var(--muted); cursor: pointer; }
.sidecat__tg .ico { width: 18px; height: 18px; transition: transform .2s; }
.sidecat__item:hover, .sidecat__item:focus-within { background: var(--paper); }
.sidecat__item:hover > a, .sidecat__item:hover .sidecat__tg { color: var(--spruce); }
.sidecat__item.is-active { box-shadow: inset 3px 0 0 var(--spruce); }
.sidecat__item.is-active > a { color: var(--spruce); font-weight: 600; }
.sidecat__item:last-child { border-radius: 0 0 9px 9px; }
.sidecat__sub a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 18px; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.35; }
.sidecat__sub a:hover { background: var(--paper); color: var(--spruce); }
.sidecat__sub .is-active > a { color: var(--spruce); font-weight: 600; }
.sidecat__subhead { padding: 14px 18px 8px; font: 700 16px/1.2 var(--f-display); }

/* Компьютер: подкатегории выезжают вправо по наведению */
@media (min-width: 961px) {
	.sidecat__sub { position: absolute; left: 100%; top: -1px; display: none; min-width: 280px; max-height: 70vh; overflow: auto; padding-bottom: 8px; background: #fff; border: 1px solid var(--line); border-radius: 0 10px 10px 10px; box-shadow: 0 12px 32px rgba(27,31,34,.14); }
	.sidecat__item.has-sub:hover > .sidecat__sub, .sidecat__item.has-sub:focus-within > .sidecat__sub, .sidecat__item.is-hover > .sidecat__sub { display: block; }
	.sidecat__item.has-sub:hover .sidecat__tg .ico { transform: translateX(3px); }
}

/* Телефон/планшет: шапка раскрывает список, стрелка — подкатегории */
@media (max-width: 960px) {
	.sidecat__head { cursor: pointer; border-radius: 9px; }
	.sidecat.is-open .sidecat__head { border-radius: 9px 9px 0 0; }
	.sidecat__head small { display: block; margin-left: auto; overflow: hidden; max-width: 45%; font: 500 14px/1.2 var(--f-body); white-space: nowrap; text-overflow: ellipsis; }
	.sidecat__caret { display: block; width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s; }
	.sidecat.is-open .sidecat__caret { transform: rotate(180deg); }
	.sidecat__list { display: none; }
	.sidecat.is-open .sidecat__list { display: block; }
	.sidecat__item { flex-wrap: wrap; }
	.sidecat__tg { width: 52px; border-left: 1px solid var(--line); }
	.sidecat__tg .ico { transform: rotate(90deg); }
	.sidecat__item.is-open > .sidecat__tg .ico { transform: rotate(-90deg); }
	.sidecat__sub { display: none; flex-basis: 100%; padding: 0 0 8px 12px; background: var(--paper); }
	.sidecat__item.is-open > .sidecat__sub { display: block; }
	.sidecat__subhead { display: none; }
	.sidecat__item:hover { background: none; }
}

/* Оформление: без «полоски» между заголовком «Ваш заказ» и карточкой */
@media (max-width: 960px) {
	.woocommerce-checkout #order_review { margin-top: -20px; }
}

/* ===== v3.22: каталог без перезагрузки и без прыжков ===== */
.cat-head__row { min-height: 52px; }
.cat-head__text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.catalog__main { transition: opacity .15s; }
.catalog__main.is-loading { opacity: .45; pointer-events: none; }
@keyframes catIn { from { opacity: .25; } to { opacity: 1; } }
.catalog__main.is-in ul.products, .catgrid.is-in ul.products { animation: catIn .22s ease-out; }
.catalog--home .section__cta { margin-top: 0; }
@media (max-width: 600px) {
	.cat-head__text { white-space: normal; min-height: 3em; }
}
@media (prefers-reduced-motion: reduce) {
	.catalog__main.is-in ul.products, .catgrid.is-in ul.products { animation: none; }
}

/* ===== v3.23: страница «Спасибо» /tup ===== */
.ty__when { margin: 10px 0 0; padding: 10px 14px; background: #EEF5F0; border-left: 3px solid #2E7D4F; border-radius: 0 8px 8px 0; font-weight: 600; }
.ty--lead .ty__grid { grid-template-columns: 1fr 1fr; }
.ty--lead .ty__card:only-child { grid-column: 1 / -1; max-width: 560px; }
.ty__phone { font-size: 18px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ty__msg { margin: 14px 0 0; }
@media (max-width: 760px) {
	.ty--lead .ty__grid { grid-template-columns: 1fr; }
	.ty__actions .btn { width: 100%; }
}

/* ===== v3.24: размеры плашками — на странице товара и в карточке ===== */
.vsel-hidden { display: none !important; }
.vchips { display: flex; flex-wrap: wrap; gap: 8px; }
.vchip {
	display: inline-flex; align-items: center; justify-content: center; min-height: 42px; min-width: 64px; padding: 0 14px;
	border: 1px solid var(--field); border-radius: 8px; background: #fff; color: var(--ink);
	font: 600 15px/1 var(--f-body); font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.vchip:hover { border-color: var(--spruce-2); }
.vchip.is-on { background: var(--spruce); border-color: var(--spruce); color: #fff; }
.vchip:disabled { background: var(--paper); border-style: dashed; color: #9AA39C; text-decoration: line-through; cursor: default; }
.vchips__note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.vchips.is-shake { animation: vshake .4s; }
@keyframes vshake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* Страница товара: «Размер» над плашками, затем [количество | итог] / [в корзину | ♡] — как у обычного товара */
.buybox form.variations_form { display: block !important; }
.woocommerce div.product .buybox form.cart table.variations { width: 100%; margin: 4px 0 16px; border: 0; border-collapse: collapse; }
.woocommerce div.product .buybox form.cart table.variations tbody,
.woocommerce div.product .buybox form.cart table.variations tr { display: block; }
.woocommerce div.product .buybox form.cart table.variations tr + tr { margin-top: 14px; }
.woocommerce div.product .buybox form.cart table.variations th,
.woocommerce div.product .buybox form.cart table.variations td { display: block; padding: 0; border: 0; line-height: 1.3; text-align: left; background: none; }
.woocommerce div.product .buybox form.cart table.variations th label { display: block; margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.woocommerce div.product .buybox form.cart .reset_variations { display: none !important; }
.buybox .woocommerce-variation-price { display: none; } /* цена выбранного размера — вверху блока */
.buybox .woocommerce-variation-description p { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.buybox .woocommerce-variation-availability p.stock { margin: 0 0 12px; font-size: 14px; }
.buybox .woocommerce-variation-add-to-cart { display: grid; grid-template-columns: 140px 1fr auto; gap: 12px; align-items: center; }
.buybox .woocommerce-variation-add-to-cart::before, .buybox .woocommerce-variation-add-to-cart::after { display: none; }
.buybox .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 420px) { .buybox .woocommerce-variation-add-to-cart { grid-template-columns: 1fr 1fr; } }

/* Карточка каталога: размер → количество → «В корзину» */
.vbuy { display: grid; gap: 10px; margin-top: auto; }
.vbuy .loop-buy { margin-top: 0; }
.vpick__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.vpick__label small { font-size: 12px; font-weight: 400; color: var(--muted); }

/* ===== v3.25: размеры — компактно и без выхода за края ===== */
/* Карточка: одна строка плашек, листается пальцем (Baymard: на телефоне — горизонтальный ряд вместо «простыни») */
.vpick { min-width: 0; }
.vscroll { position: relative; margin: 0 -2px; }
.vchips--row { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding: 2px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.vchips--row::-webkit-scrollbar { display: none; }
.vchips--row .vchip { flex: 0 0 auto; min-width: 0; min-height: 36px; padding: 0 11px; border-radius: 8px; font-size: 14px; white-space: nowrap; scroll-snap-align: start; }
/* Мягкое затухание у края — видно, что есть ещё размеры */
.vscroll.can-next::after, .vscroll.can-prev::before { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 28px; pointer-events: none; }
.vscroll.can-next::after { right: 0; background: linear-gradient(90deg, rgba(255,255,255,0), #fff 85%); }
.vscroll.can-prev::before { left: 0; background: linear-gradient(270deg, rgba(255,255,255,0), #fff 85%); }
.vscroll__btn { position: absolute; top: 50%; z-index: 2; display: none; place-items: center; width: 28px; height: 28px; margin-top: -14px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(22,41,31,.12); cursor: pointer; }
.vscroll__btn .ico { width: 16px; height: 16px; }
.vscroll__btn--prev { left: -4px; }
.vscroll__btn--next { right: -4px; }
@media (hover: hover) and (pointer: fine) { .vscroll__btn:not([hidden]) { display: grid; } }
.vpick__label { flex-direction: row !important; }

/* Страница товара: плашки ровной сеткой; много размеров — группы по формату */
.vchips--page .vchip { min-width: 0; padding: 8px 12px; line-height: 1.2; text-align: center; white-space: normal; }
.vchips--grouped { display: grid; gap: 14px; }
.vgroup__t { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.vgroup__chips { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 600px) {
	.vchips--page:not(.vchips--grouped), .vgroup__chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
	.vchips--page .vchip { min-height: 44px; padding: 6px 8px; font-size: 14px; }
}

/* Описание и характеристики: на телефоне — одна колонка на всю ширину (раньше сжималось в две узкие) */
@media (max-width: 960px) {
	.psec__grid { grid-template-columns: 1fr !important; gap: 28px !important; }
	.psec__desc, .psec__one { max-width: none; }
}
@media (max-width: 600px) {
	.psec { padding-top: 28px; margin-top: 28px; }
	.psec h2 { font-size: 22px; }
	.psec__desc { font-size: 16px; line-height: 1.6; }
	.psec__desc h3 { margin-top: 20px; }
	.psec__desc ul { padding-left: 20px; }
	.woocommerce table.shop_attributes th { width: 45%; font-size: 15px; }
	.woocommerce table.shop_attributes td { font-size: 15px; }
}

/* Нижняя панель: итог по центру и крупно, под ним — «5 шт × 1 268 ₽» */
@media (max-width: 760px) {
	.dbar__sum { text-align: center; }
	.dbar__sum b { font-size: 19px; line-height: 1.15; }
	.dbar__sum small { margin-top: 2px; }
	.dbar--cart .dbar__sum { text-align: left; }
}
@media (max-width: 360px) { .dbar__sum b { font-size: 16px; } }

/* ===== v3.25: корзина на телефоне — позиция = одна компактная карточка, итог — одна карточка ===== */
@media (max-width: 768px) {
	.woocommerce-cart .page-wc h1, .woocommerce-cart .entry__title { margin-bottom: 12px; font-size: 26px; }
	.woocommerce-cart .price-note { margin: 0 0 12px; padding: 9px 12px; border-left-width: 3px; font-size: 13px; line-height: 1.4; color: var(--muted); }
	.woocommerce-cart table.shop_table.cart { display: block; margin: 0 0 16px !important; border: 0 !important; background: none; }
	.woocommerce-cart table.shop_table.cart thead { display: none; }
	.woocommerce-cart table.shop_table.cart tbody { display: grid; gap: 10px; }
	.woocommerce-cart table.shop_table.cart tr.cart_item {
		position: relative; display: grid !important;
		grid-template-columns: 56px minmax(0, 1fr) 32px;
		grid-template-areas: "img name x" "img price price" "qty qty sum";
		align-items: center; gap: 2px 12px; padding: 12px 12px 12px 14px;
		background: #fff; border: 1px solid var(--line); border-radius: 12px;
	}
	.woocommerce-cart table.shop_table.cart tr.cart_item.no-thumb {
		grid-template-columns: minmax(0, 1fr) 32px;
		grid-template-areas: "name x" "price price" "qty sum";
	}
	.woocommerce-cart table.shop_table.cart tr.cart_item td {
		display: block !important; padding: 0 !important; border: 0 !important; background: none !important; text-align: left !important; min-width: 0;
	}
	.woocommerce-cart table.shop_table.cart tr.cart_item td::before { content: none !important; display: none !important; }
	.woocommerce-cart table.shop_table.cart td.product-thumbnail { grid-area: img; align-self: start; }
	.woocommerce-cart table.shop_table.cart tr.no-thumb td.product-thumbnail { display: none !important; }
	.woocommerce-cart table.shop_table.cart td.product-thumbnail img { display: block; width: 56px !important; height: 56px; object-fit: cover; border-radius: 8px; }
	.woocommerce-cart table.shop_table.cart tr.cart_item td.product-name { grid-area: name; padding-right: 40px !important; font-size: 15px; line-height: 1.35; }
	.woocommerce-cart table.shop_table.cart td.product-name > a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.woocommerce-cart table.shop_table.cart td.product-name .specs, .woocommerce-cart table.shop_table.cart td.product-name dl.variation { display: none; }
	.woocommerce-cart table.shop_table.cart td.product-name .cart-sale { margin: 4px 0 0; font-size: 11px; padding: 2px 6px; }
	.woocommerce-cart table.shop_table.cart td.product-price { grid-area: price; margin-top: 2px; font-size: 13px; color: var(--muted); }
	.woocommerce-cart table.shop_table.cart td.product-price .unit { font-size: 1em; }
	.woocommerce-cart table.shop_table.cart td.product-quantity { grid-area: qty; margin-top: 10px; }
	.woocommerce-cart table.shop_table.cart td.product-quantity .stepper { width: 116px; height: 40px; grid-template-columns: 34px 1fr 34px; }
	.woocommerce-cart table.shop_table.cart td.product-subtotal { grid-area: sum; justify-self: end; margin-top: 10px; font-size: 17px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
	.woocommerce-cart table.shop_table.cart td.product-subtotal del { display: none; }
	/* Удалить и «в избранное» — две иконки в правом верхнем углу, без строк текста */
	.woocommerce-cart table.shop_table.cart td.product-remove { grid-area: x; align-self: start; justify-self: end; }
	.woocommerce-cart table.shop_table.cart td.product-remove a.remove {
		display: grid !important; place-items: center; width: 32px !important; height: 32px !important; margin: -4px -4px 0 0;
		border-radius: 8px !important; color: #8A938D !important; font-size: 22px !important; font-weight: 400; line-height: 1 !important; background: none !important;
	}
	.woocommerce-cart table.shop_table.cart td.product-remove a.remove:hover { color: #B3261E !important; background: #FBEAEA !important; }
	.woocommerce-cart table.shop_table.cart .cart-fav {
		position: absolute; top: 8px; right: 42px; display: grid; place-items: center; width: 32px; height: 32px; margin: 0;
		border-radius: 8px; color: #8A938D; font-size: 0; line-height: 0;
	}
	.woocommerce-cart table.shop_table.cart .cart-fav .ico { width: 18px; height: 18px; }
	.woocommerce-cart table.shop_table.cart .cart-fav:hover { color: var(--spruce); background: var(--paper); }
	.woocommerce-cart table.shop_table.cart td.product-remove a.remove, .woocommerce-cart table.shop_table.cart .cart-fav { text-decoration: none !important; }
	.woocommerce-cart table.shop_table.cart tr:not(.cart_item) { display: none !important; }

	/* Итог: компактная карточка без повторов (сумма и кнопка — ещё и в нижней панели) */
	.woocommerce-cart .cart-collaterals { margin-top: 4px; }
	.woocommerce-cart .cart-collaterals .cart_totals { max-width: none; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
	.woocommerce-cart .cart_totals > h2 { display: none; }
	.woocommerce-cart .cart_totals table.shop_table { display: block; width: 100%; margin: 0 !important; border: 0 !important; }
	.woocommerce-cart .cart_totals table.shop_table tr[hidden] { display: none !important; }
	.woocommerce-cart .cart_totals table.shop_table tbody { display: block; }
	.woocommerce-cart .cart_totals table.shop_table tr { display: block !important; }
	.woocommerce-cart .cart_totals table.shop_table tr.cart-subtotal { display: none !important; }
	.woocommerce-cart .cart_totals table.shop_table th { display: none !important; }
	.woocommerce-cart .cart_totals table.shop_table td {
		display: flex !important; justify-content: space-between; gap: 12px; width: 100%; padding: 6px 0 !important;
		border: 0 !important; background: none !important; font-size: 15px; text-align: right !important;
	}
	.woocommerce-cart .cart_totals table.shop_table td::before { content: attr(data-title) !important; float: none !important; font-weight: 400 !important; color: var(--muted); text-align: left; }
	.woocommerce-cart .cart_totals tr.delivery-row td { color: var(--muted); }
	.woocommerce-cart .cart_totals tr.order-total td { margin-top: 6px; padding-top: 12px !important; border-top: 1px solid var(--line) !important; font-size: 19px; }
	.woocommerce-cart .cart_totals tr.order-total td::before { color: var(--ink); font-weight: 700 !important; }
	.woocommerce-cart .wc-proceed-to-checkout { display: none; }
	.woocommerce-cart .page-wc { padding-bottom: 24px; }
}

/* ===== v3.25: страница «Спасибо» — по центру, одна колонка, ничего лишнего ===== */
.tyc { max-width: 560px; margin: 24px auto 48px; text-align: center; }
.tyc__ok { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: #2E7D4F; box-shadow: 0 0 0 8px #E4F1E8; }
.tyc__ok svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tyc__num { margin: 0 0 6px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tyc__title { margin: 0 0 10px; font-size: clamp(26px, 3.4vw, 36px); }
.tyc__lead { max-width: 44ch; margin: 0 auto 16px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.tyc__lead b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.tyc__pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; padding: 8px 16px; border-radius: 999px; background: #E9F3EC; color: #1F5F3A; font-size: 15px; font-weight: 600; line-height: 1.3; }
.tyc__pill .ico { width: 18px; height: 18px; flex-shrink: 0; }
.tyc__card { margin: 0 0 12px; padding: 4px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-align: left; }
.tyc__h { margin: 16px 0 6px; font: 600 13px/1.3 var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tyc__list { margin: 0; }
.tyc__list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.tyc__list > div:first-child { border-top: 0; }
.tyc__h + .tyc__list > div:first-child, .tyc__h + .tyc__items > li:first-child { border-top: 0; }
.tyc__list dt { color: var(--muted); }
.tyc__list dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.tyc__list dd.is-muted { font-weight: 400; color: var(--muted); }
.tyc__list--sum { border-top: 1px solid var(--line); }
.tyc__list--sum > div:first-child { border-top: 0; }
.tyc__total dt, .tyc__total dd { font-size: 18px; font-weight: 700; color: var(--ink); }
.tyc__hint { margin: 0; padding: 12px 0 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.tyc__items { margin: 0; padding: 0; list-style: none; }
.tyc__items li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.tyc__items em { font-style: normal; color: var(--muted); white-space: nowrap; }
.tyc__items b { font-weight: 600; white-space: nowrap; }
.tyc__steps { margin: 0; padding: 0 0 6px; list-style: none; counter-reset: tyc; }
.tyc__steps li { position: relative; display: grid; gap: 1px; padding: 10px 0 10px 40px; counter-increment: tyc; font-size: 15px; }
.tyc__steps li::before { content: counter(tyc); position: absolute; left: 0; top: 11px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--resin); font-size: 13px; font-weight: 700; }
.tyc__steps span { color: var(--muted); font-size: 14px; }
.tyc__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 32px; }
.tyc__actions .btn { min-width: 260px; }
.tyc__contact { padding-top: 28px; border-top: 1px solid var(--line); }
.tyc__contact-t { margin: 0 0 6px; font-size: 15px; color: var(--muted); }
.tyc__phone { display: inline-block; margin-bottom: 4px; color: var(--ink); font-size: 22px; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.tyc__phone:hover { color: var(--spruce); }
.tyc__msg { justify-content: center; margin: 10px 0 8px; }
.tyc__hours { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 600px) {
	.tyc { margin-top: 8px; }
	.tyc__lead { font-size: 16px; }
	.tyc__card { padding: 2px 16px; }
	.tyc__actions .btn { width: 100%; min-width: 0; }
}

/* ===== Карточка: поле «Размер ▾» — текст никогда не обрезается (переносится), выбор — в панели ===== */
.vfield {
	display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 8px 10px 8px 12px;
	border: 1px solid var(--field); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; text-align: left;
	font: 600 15px/1.25 var(--f-body); font-variant-numeric: tabular-nums; transition: border-color .15s;
}
.vfield:hover { border-color: var(--spruce-2); }
.vfield__v { min-width: 0; overflow-wrap: normal; word-break: normal; }
.vfield .ico { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }
@container (max-width: 200px) { .vfield { gap: 4px; font-size: 13px; padding: 7px 6px 7px 10px; } .vfield .ico { width: 16px; height: 16px; } }

/* Панель выбора: на телефоне выезжает снизу, на компьютере — окно по центру */
.vsheet { width: min(480px, calc(100% - 32px)); max-height: 85vh; padding: 0; border: 0; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(6, 20, 14, .25); }
.vsheet::backdrop { background: rgba(16, 24, 20, .45); }
.vsheet__in { display: flex; flex-direction: column; max-height: 85vh; }
.vsheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.vsheet__head b { display: block; font: 700 19px/1.2 var(--f-display); }
.vsheet__name { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.vsheet__x { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; margin: -4px -8px 0 0; padding: 0; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.vsheet__x .ico { width: 18px; height: 18px; }
.vsheet__note { margin: 0; padding: 0 20px 6px; font-size: 13px; color: var(--muted); }
.vsheet__body { overflow-y: auto; padding: 8px 20px 20px; overscroll-behavior: contain; }
.vsheet__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.vsheet__g + .vsheet__g { margin-top: 14px; }
.vsheet__gt { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.vsheet__chip {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; padding: 8px 6px;
	border: 1px solid var(--field); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; text-align: center;
	font: 600 15px/1.2 var(--f-body); font-variant-numeric: tabular-nums;
}
.vsheet__chip b { font-weight: 600; overflow-wrap: anywhere; }
.vsheet__chip span { font-size: 12px; font-weight: 500; color: var(--muted); }
.vsheet__chip small { font-size: 13px; font-weight: 400; color: var(--muted); }
.vsheet__chip:hover { border-color: var(--spruce-2); }
.vsheet__chip.is-on { border-color: var(--spruce); box-shadow: inset 0 0 0 1px var(--spruce); background: #EEF5F0; }
.vsheet__chip:disabled { background: var(--paper); border-style: dashed; cursor: default; }
.vsheet__chip:disabled b { color: #9AA39C; text-decoration: line-through; }
@media (max-width: 600px) {
	.vsheet { width: 100%; max-width: 100%; max-height: 82vh; margin: auto 0 0; border-radius: 18px 18px 0 0; animation: vsheetUp .22s ease-out; }
	.vsheet__in { max-height: 82vh; }
	.vsheet__body { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
	.vsheet__grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
}
@keyframes vsheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }

/* Страница товара, группы: [6 мм / МУРОМ] — две строки, по 3 в ряд на телефоне */
.vgroup__chips .vchip { flex-direction: column; gap: 1px; min-width: 88px; }
.vgroup__chips .vchip b { font-weight: 600; }
.vgroup__chips .vchip small { font-size: 12px; font-weight: 500; opacity: .75; }
@media (max-width: 600px) {
	.vgroup__chips { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px !important; }
	.vgroup__chips .vchip { min-width: 0; min-height: 50px; padding: 6px 4px; font-size: 14px; }
	.vgroup__chips .vchip small { font-size: 11px; overflow-wrap: anywhere; }
}

/* ===== v3.26: меню «Каталог товаров» — крупно, в одну строку, без лишних цифр ===== */
.catalog { grid-template-columns: 336px minmax(0, 1fr); gap: 28px; }
.sidecat { border-radius: 12px; }
.sidecat__head { padding: 18px 22px; border-radius: 11px 11px 0 0; font-size: 19px; }
.sidecat__item > a { min-height: 56px; padding: 12px 2px 12px 22px; font-size: 16px; font-weight: 500; line-height: 1.25; color: var(--ink); }
.sidecat__item:not(.has-sub) > a { padding-right: 22px; }
.sidecat__n { display: none; }
.sidecat__tg { width: 38px; color: #8A938D; }
.sidecat__tg .ico { width: 20px; height: 20px; }
.sidecat__item:last-child { border-radius: 0 0 11px 11px; }
.sidecat__item.is-active { box-shadow: inset 4px 0 0 var(--resin); background: #FBF6EA; }
.sidecat__item.is-active > a { color: var(--ink); font-weight: 600; }
.sidecat__sub a { padding: 11px 22px; font-size: 16px; }
.sidecat__subhead { padding: 16px 22px 8px; font-size: 17px; }
@media (min-width: 961px) and (max-width: 1180px) { .catalog { grid-template-columns: 270px minmax(0, 1fr); gap: 24px; } .sidecat__item > a { font-size: 15px; } }
@media (max-width: 960px) {
	.catalog { grid-template-columns: 1fr; }
	.sidecat__head { padding: 15px 18px; font-size: 17px; }
	.sidecat__item > a { min-height: 52px; padding-left: 18px; }
	.sidecat__tg { width: 52px; }
}

/* «Как заказать» на телефоне: иконка слева от текста — вдвое компактнее */
@media (max-width: 760px) {
	.steps--ico { grid-template-columns: 1fr !important; gap: 18px !important; }
	.steps--ico li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; align-items: center; }
	.steps--ico .step__ico { grid-row: 1 / span 2; align-self: start; width: 48px; height: 48px; margin: 0; border-radius: 12px; }
	.steps--ico .step__ico .ico { width: 24px; height: 24px; }
	.steps--ico li::before { top: -6px !important; left: 34px !important; }
	.steps--ico h3 { margin: 2px 0 2px; font-size: 17px; }
	.steps--ico p { margin: 0; font-size: 15px; line-height: 1.45; }
}

/* ===== v3.26: «Заказ принят» — всё на одном экране ПК: шапка, две карточки, строка контактов ===== */
.tyc--order { max-width: 980px; margin-top: 4px; margin-bottom: 32px; }
.tyc--order .tyc__list dd { font-weight: 500; }
.tyc--order .tyc__total dt, .tyc--order .tyc__total dd { font-weight: 700; }
.tyc__hero { margin-bottom: 20px; }
.tyc--order .tyc__ok { width: 52px; height: 52px; margin-bottom: 12px; box-shadow: 0 0 0 6px #E4F1E8; }
.tyc--order .tyc__ok svg { width: 26px; height: 26px; }
.tyc--order .tyc__title { margin-bottom: 6px; font-size: clamp(24px, 3vw, 32px); }
.tyc--order .tyc__lead { max-width: 60ch; margin-bottom: 14px; font-size: 16px; }
.tyc__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px; }
.tyc__meta .tyc__pill { margin: 0; }
.tyc__flow { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.tyc__flow li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tyc__flow li + li::before { content: "→"; margin-right: 2px; color: #A7AEA8; }
.tyc__flow b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--resin); color: var(--ink); font-size: 11px; }
.tyc__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; text-align: left; }
.tyc__cols .tyc__card { margin: 0; }
.tyc--order .tyc__items { max-height: 320px; overflow-y: auto; } /* на компьютере очень длинный заказ листается внутри, чтобы страница помещалась на экран */
.tyc__det > summary { display: block; list-style: none; cursor: default; }
.tyc__det > summary::-webkit-details-marker { display: none; }
.tyc--order .tyc__list > div, .tyc--order .tyc__items li { padding: 10px 0; }
/* Кнопка и контакты — одной строкой */
.tyc__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.tyc__bar .btn { min-width: 240px; }
.tyc__reach { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; font-size: 15px; color: var(--muted); }
.tyc__reach .tyc__phone { margin: 0; font-size: 18px; }
.tyc__reach .micons__a { width: 34px; height: 34px; }
.tyc__reach .micons__a .bico { width: 19px; height: 19px; }
.tyc:not(.tyc--order) .tyc__bar { margin-top: 24px; }
@media (max-width: 760px) {
	.tyc--order { margin-top: 4px; }
	.tyc__hero { margin-bottom: 14px; }
	.tyc--order .tyc__title { font-size: 25px; }
	.tyc--order .tyc__lead { font-size: 15px; }
	.tyc__meta { gap: 10px; }
	.tyc__flow { font-size: 13px; }
	.tyc__cols { grid-template-columns: 1fr; gap: 10px; }
	.tyc__det > summary { position: relative; margin: 0; padding: 14px 0; cursor: pointer; }
	.tyc__det > summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
	.tyc__det[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
	.tyc__det:not([open]) { padding-bottom: 0; }
	.tyc__bar { flex-direction: column; gap: 12px; margin-top: 16px; padding-top: 0; border-top: 0; }
	.tyc__bar .btn { width: 100%; min-width: 0; }
}

/* ===== v3.26: корзина на телефоне — одна панель: позиции через разделитель, внизу доставка и итог ===== */
@media (max-width: 768px) {
	.woocommerce-cart .price-note { margin: -4px 0 14px; padding: 0; background: none; border: 0; font-size: 13px; color: var(--muted); }
	.woocommerce-cart table.shop_table.cart { margin: 0 !important; overflow: hidden; background: #fff; border: 1px solid var(--line) !important; border-bottom: 0 !important; border-radius: 14px 14px 0 0 !important; }
	.woocommerce-cart table.shop_table.cart tbody { gap: 0; }
	.woocommerce-cart table.shop_table.cart tr.cart_item { padding: 14px 14px 14px 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
	.woocommerce-cart .cart-collaterals { margin-top: 0; }
	.woocommerce-cart .cart-collaterals .cart_totals { padding: 8px 16px 14px; border-top: 0; border-radius: 0 0 14px 14px; }
	.woocommerce-cart .cart_totals tr.order-total td { margin-top: 2px; padding-top: 10px !important; }
}

/* ===== v3.26: панель выбора размера — выбор не закрывает окно; внизу количество и «В корзину · сумма» ===== */
.vsheet__chip { position: relative; }
.vsheet__chip.is-on::after { content: ""; position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--spruce) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.vsheet__foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px 20px 16px; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -6px 16px rgba(22, 41, 31, .05); }
.vsheet__qty { display: grid; grid-template-columns: 40px 52px 40px; height: 50px; border: 1px solid var(--field); border-radius: 10px; overflow: hidden; }
.vsheet__qty button { padding: 0; border: 0; background: var(--paper); color: var(--ink); font: 500 22px/1 var(--f-body); cursor: pointer; }
.vsheet__qty button:disabled { color: var(--field); cursor: default; }
.vsheet__qty input { width: 100%; min-height: 0; height: 100%; padding: 0; border: 0; border-radius: 0; text-align: center; font: 600 18px/1 var(--f-body); -moz-appearance: textfield; appearance: textfield; }
.vsheet__qty input::-webkit-inner-spin-button, .vsheet__qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.vsheet__qty input:focus { outline: none; box-shadow: none; }
.vsheet__add { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; padding: 0 18px; font-size: 16px; }
.vsheet__add b { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vsheet__add.is-done { background: var(--spruce); color: #fff; }
.vsheet__add.is-done b { display: none; }
.vsheet__add:disabled { cursor: default; }
@media (max-width: 600px) {
	.vsheet__foot { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
	.vsheet__body { padding-bottom: 14px; }
	.vsheet__qty { grid-template-columns: 36px 44px 36px; }
	.vsheet__add { padding: 0 14px; font-size: 15px; }
}
@media (max-width: 760px) { .tyc__flow-x { display: none; } .tyc__flow { flex-wrap: nowrap; } }

/* ===== v3.27: панель размеров — таблица заказа: у каждого размера своё количество, одна кнопка ===== */
.vsheet { width: min(520px, calc(100% - 32px)); }
.vsheet__g + .vsheet__g { margin-top: 16px; }
.vsheet__gt { margin: 0 0 8px; }
.vrows { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.vrow {
	display: grid; grid-template-columns: minmax(0, 1fr) auto 116px; align-items: center; gap: 12px;
	min-height: 58px; padding: 8px 10px 8px 14px; border-top: 1px solid var(--line); background: #fff; cursor: pointer;
	-webkit-tap-highlight-color: transparent; transition: background-color .15s;
}
.vrow:first-child { border-top: 0; }
.vrow:hover { background: #FAFBF8; }
.vrow.is-on { background: #EEF5F0; box-shadow: inset 3px 0 0 var(--spruce); }
.vrow.is-out { cursor: default; background: var(--paper); }
.vrow.is-out b { color: #9AA39C; text-decoration: line-through; }
.vrow__info { min-width: 0; line-height: 1.25; }
.vrow__info b { display: block; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vrow__info span { display: block; font-size: 12.5px; color: var(--muted); }
.vrow__price { font-size: 14px; font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.2; }
.vrow__price small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.vrow__qty { display: flex; justify-content: flex-end; }
.vrow__add { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--field); border-radius: 10px; background: #fff; color: var(--spruce); font: 500 24px/1 var(--f-body); cursor: pointer; }
.vrow:hover .vrow__add { border-color: var(--spruce); background: #EEF5F0; }
.vrow__na { font-size: 12px; color: var(--muted); text-align: right; }
.vstep { display: grid; grid-template-columns: 36px 1fr 36px; width: 116px; height: 40px; overflow: hidden; border: 1px solid var(--spruce); border-radius: 10px; background: #fff; }
.vstep button { display: grid; place-items: center; padding: 0; border: 0; background: #fff; color: var(--ink); font: 500 20px/1 var(--f-body); cursor: pointer; }
.vstep button:hover { background: var(--paper); }
.vstep button .ico { width: 17px; height: 17px; color: #B3261E; }
.vstep input { width: 100%; min-height: 0; height: 100%; padding: 0; border: 0; border-radius: 0; text-align: center; font: 600 16px/1 var(--f-body); -moz-appearance: textfield; appearance: textfield; }
.vstep input::-webkit-inner-spin-button, .vstep input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.vstep input:focus { outline: none; box-shadow: none; }
/* Низ панели: что выбрано — и одна аккуратная кнопка по центру */
.vsheet__foot { display: grid; grid-template-columns: 1fr; gap: 8px; }
.vsheet__sel { margin: 0; font-size: 14px; color: var(--muted); text-align: center; line-height: 1.35; }
.vsheet__sel b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.vsheet__add { justify-content: center; width: 100%; min-height: 50px; font-size: 16px; }
.vsheet__add:disabled { background: #E9ECE6; color: #8A938D; opacity: 1; }
/* Под полем «Размер» в карточке */
.vpick__cart { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #2E7D4F; }
@media (max-width: 600px) {
	.vrow { grid-template-columns: minmax(0, 1fr) auto 108px; gap: 10px; padding-left: 12px; }
	.vstep { width: 108px; grid-template-columns: 34px 1fr 34px; }
}

/* ===== v3.27: корзина — размеры одного товара одной группой, артикул ===== */
.cart-var { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.cart-sku { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.cart-group__in { display: flex; align-items: baseline; gap: 10px; }
.cart-group__name { color: var(--ink); font-size: 16px; font-weight: 700; text-decoration: none; }
.cart-group__name:hover { color: var(--bark); }
.cart-group__n { font-size: 13px; color: var(--muted); }
.cart-group__sum { margin-left: auto; font-size: 15px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* В группе у строки остаётся только размер — название уже в заголовке */
.woocommerce-cart table.cart tr.in-group .cart-pname { display: none !important; }
.woocommerce-cart table.cart tr.in-group .cart-var { margin-top: 0; font-size: 15px; font-weight: 600; }
.woocommerce-cart table.cart tr.cart-group td { padding: 16px 12px 8px !important; background: #FAFBF8; }
@media (min-width: 769px) {
	.woocommerce-cart table.cart tr.in-group td { background: #FDFDFB; }
	.woocommerce-cart table.cart tr.in-group:not(.grp-first) td { border-top: 1px dashed #DDE1D8 !important; }
	.woocommerce-cart table.cart tr.in-group td.product-name { padding-left: 24px !important; }
}
@media (max-width: 768px) {
	.woocommerce-cart table.shop_table.cart tr.cart-group { display: block !important; padding: 14px 16px 2px; background: #FAFBF8; border-bottom: 0; }
	.woocommerce-cart table.shop_table.cart tr.cart-group td { display: block !important; padding: 0 !important; border: 0 !important; background: none !important; text-align: left !important; }
	.woocommerce-cart table.shop_table.cart tr.cart-group td::before { content: none !important; }
	.cart-group__in { flex-wrap: wrap; gap: 2px 8px; }
	.cart-group__name { font-size: 15.5px; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group { padding-top: 10px; padding-bottom: 10px; background: #FAFBF8; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group:not(.grp-last) { border-bottom: 1px dashed #DDE1D8; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group .cart-sku { margin-top: 1px; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group td.product-quantity,
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group td.product-subtotal { margin-top: 6px; }
}

/* «Заказ принят»: группы размеров и артикулы; на телефоне все позиции сразу, без прокрутки внутри блока */
.tyc__items li > span small { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); }
.tyc__items li.tyc__grp { padding-bottom: 2px; font-weight: 700; }
.tyc__items li.tyc__sub { padding: 6px 0 6px 14px; border-top: 0; font-size: 14px; }
.tyc__items li.tyc__sub + li:not(.tyc__sub) { border-top: 1px solid var(--line); }
@media (max-width: 760px) { .tyc--order .tyc__items { max-height: none; overflow: visible; } }

/* ===== v3.28: карточка — количество и «В корзину» снова в одну строку (как было до расширения меню) ===== */
@container (max-width: 230px) {
	.loop-buy { grid-template-columns: 100px minmax(0, 1fr) !important; gap: 6px !important; }
	.loop-buy .stepper { width: 100px !important; grid-template-columns: 30px 1fr 30px !important; }
	.loop-buy .add_to_cart_button, .loop-buy .add_to_cart_button.is-added { padding: 0 6px !important; font-size: 14px !important; }
}
@container (max-width: 196px) {
	.loop-buy { grid-template-columns: 1fr !important; }
	.loop-buy .stepper { width: 100% !important; }
}

/* Быстрые нажатия «+/−» не выделяют текст синим; двойной тап на телефоне не приближает страницу */
.stepper, .stepper button, .vstep, .vstep button, .vrow, .vrow__add, .dbar .stepper, .vchip, .vfield, .vsheet__chip {
	-webkit-user-select: none; user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.stepper input, .vstep input { -webkit-user-select: text; user-select: text; }

/* Панель размеров: «×» — убрать размер одним нажатием; «Очистить всё» */
.vrow { grid-template-columns: minmax(0, 1fr) auto auto; }
.vrow__qty { gap: 4px; align-items: center; min-width: 116px; }
.vrow__x { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: #8A938D; cursor: pointer; }
.vrow__x:hover { background: #FBEAEA; color: #B3261E; }
.vrow__x .ico { width: 16px; height: 16px; stroke-width: 2.2; }
.vstep { width: 108px; }
.vsheet__clear { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--spruce-2); font: 600 14px var(--f-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vsheet__clear:hover { color: #B3261E; }
@media (max-width: 600px) {
	.vrow { gap: 8px; padding-right: 6px; }
	.vrow__qty { min-width: 104px; gap: 2px; }
	.vstep { width: 100px; grid-template-columns: 32px 1fr 32px; }
	.vrow__x { width: 28px; }
	.vrow__price { font-size: 13px; }
}

/* Страница товара: размер уже в корзине — зелёная рамка и цифра количества в углу */
.vchip { position: relative; }
.vchip.has-cart { border-color: #2E7D4F; box-shadow: inset 0 0 0 1px #2E7D4F; }
.vchip.is-on.has-cart { border-color: var(--spruce); }
.vchip__q {
	position: absolute; top: -8px; right: -6px; z-index: 1; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
	border: 2px solid #fff; border-radius: 11px; background: #2E7D4F; color: #fff; font: 700 11.5px/1 var(--f-body); font-style: normal; font-variant-numeric: tabular-nums;
}
.vmulti-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: -4px 0 14px; }
.vchips__cart { display: block; margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.vchips__cart b { color: var(--ink); font-weight: 600; }
.vchips__cart a { font-weight: 600; white-space: nowrap; }
.vchips__dot { display: inline-block; width: 8px; height: 8px; margin: 0 6px 1px 0; border-radius: 50%; background: #2E7D4F; vertical-align: middle; }
.vmulti { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 8px 12px; border: 1px dashed var(--spruce-2); border-radius: 8px; background: #fff; color: var(--spruce); font: 600 14px var(--f-body); cursor: pointer; }
.vmulti:hover { background: #EEF5F0; border-style: solid; }
.vmulti .ico { width: 16px; height: 16px; stroke-width: 2.2; }
@media (max-width: 600px) {
	.vmulti { width: 100%; justify-content: center; margin-left: 0; min-height: 42px; }
	.vchip__q { top: -7px; right: -4px; min-width: 20px; height: 20px; font-size: 11px; }
}

/* ===== v3.29: подкатегории при наведении — панель-сетка без заголовка (мега-меню) ===== */
@media (min-width: 961px) {
	.sidecat__list { position: relative; }
	.sidecat__item { position: static; }
	.sidecat__item.has-sub:hover > .sidecat__sub, .sidecat__item.has-sub:focus-within > .sidecat__sub { display: none; }
	.sidecat__item.is-hover > .sidecat__sub { display: grid !important; }
	.sidecat__sub {
		top: 0; left: calc(100% + 6px); z-index: 30; width: min(700px, calc(100vw - 460px)); min-width: 0; max-height: none; overflow: visible;
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); align-content: start; gap: 4px 8px; padding: 14px;
		border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(22, 41, 31, .16);
	}
	/* «Мостик» между пунктом и панелью: мышь не теряет меню на промежутке */
	.sidecat__sub::before { content: ""; position: absolute; top: 0; bottom: 0; left: -8px; width: 8px; }
	.sidecat__subhead { display: none !important; }
	.sidecat__sub li { min-width: 0; }
	.sidecat__sub a { align-items: center; min-height: 52px; padding: 12px 16px; border-radius: 10px; font-size: 16px; font-weight: 500; line-height: 1.3; }
	.sidecat__sub a:hover { background: #F4F6F1; color: var(--spruce); }
	.sidecat__sub .is-active > a { background: #FBF6EA; color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--resin); }
	.sidecat__item.is-hover { background: var(--paper); }
	.sidecat__item.is-hover > a, .sidecat__item.is-hover > .sidecat__tg { color: var(--spruce); }
}

/* ===== v3.29: таблица размеров — «− 0 +» у каждого размера всегда на месте, ничего не прыгает ===== */
.buybox.has-mx form.variations_form { display: none !important; }
.mx--pdp { margin-top: 4px; }
.mx__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.mx__label { font-size: 15px; font-weight: 600; color: var(--ink); }
.mx__label small { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--muted); }
.mx__clear { flex-shrink: 0; padding: 0; border: 0; background: none; color: var(--muted); font: 500 13.5px var(--f-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mx__clear:hover { color: #B3261E; }
.mx__g + .mx__g { margin-top: 14px; }
.mx__gt { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.vrow { grid-template-columns: minmax(0, 1fr) auto 112px 28px; gap: 10px; min-height: 56px; padding: 6px 6px 6px 14px; }
.vrow__x { width: 28px; height: 28px; }
.vrow:not(.is-on) .vrow__x { visibility: hidden; }
.vstep { width: 112px; height: 40px; border-color: var(--field); }
.vrow.is-on .vstep { border-color: var(--spruce); }
.vrow:not(.is-on) .vstep input { color: #A7AEA8; font-weight: 500; }
.vstep button:disabled { color: var(--field); cursor: default; background: #fff; }
.vrow.is-out .vstep { opacity: .45; }
.vrow.is-out .vrow__price small { color: #9A3A33; }
/* Итог и кнопка — рядом, кнопка по размеру текста */
.mx__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 14px; }
.mx__sum { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.mx__sel { font-size: 13.5px; color: var(--muted); }
.mx__total { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mx__add { min-width: 190px; min-height: 50px; padding: 0 22px; font-size: 16px; }
.mx__add:disabled { background: #E9ECE6; color: #6B746E; opacity: 1; cursor: default; }
.mx__add.is-done { background: var(--spruce); color: #fff; }
.mx__extra { margin-top: 10px; }
.mx__extra .fav-btn--text { width: 100%; justify-content: center; }
/* В панели из карточки: шапка и итог закреплены, листается только список */
.vsheet__in { display: flex; flex-direction: column; max-height: 85vh; }
.mx--sheet { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.mx--sheet .mx__top { margin: 0; padding: 2px 20px 10px; }
.mx--sheet .mx__body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 20px 14px; overscroll-behavior: contain; }
.mx--sheet .mx__foot { margin: 0; padding: 12px 20px 16px; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -6px 16px rgba(22, 41, 31, .05); }
/* Нижняя панель телефона на странице товара с размерами */
.dbar--mx { grid-template-columns: minmax(0, 1fr) auto !important; }
.dbar--mx .dbar__sum { text-align: left !important; }
.dbar--mx .btn { min-width: 132px; }
@media (max-width: 600px) {
	.vrow { grid-template-columns: minmax(0, 1fr) auto 100px 24px; gap: 6px; padding: 6px 4px 6px 12px; }
	.vstep { width: 100px; grid-template-columns: 32px 1fr 32px; }
	.vrow__x { width: 24px; }
	.vrow__price { font-size: 13px; }
	.mx__add { min-width: 0; padding: 0 18px; font-size: 15px; }
	.mx__total { font-size: 19px; }
	.mx--sheet .mx__top, .mx--sheet .mx__body { padding-left: 14px; padding-right: 14px; }
	.mx--sheet .mx__foot { padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); }
}

/* ===== v3.29: корзина на телефоне — группа размеров компактно: «размер · сумма» / «цена · количество» ===== */
@media (max-width: 768px) {
	.woocommerce-cart table.shop_table.cart tr.cart-group { padding: 14px 16px 8px; background: #F3F6F1; border-top: 1px solid var(--line); }
	.woocommerce-cart table.shop_table.cart tbody > tr.cart-group:first-child { border-top: 0; }
	.cart-group__name { font-size: 16px; }
	.cart-group__n { padding: 2px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--spruce); }
	.cart-group__sum { font-size: 16px; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group {
		grid-template-columns: minmax(0, 1fr) auto 28px;
		grid-template-areas: "name sum x" "price qty qty";
		gap: 2px 10px; padding: 10px 8px 10px 16px; background: #fff;
		box-shadow: inset 3px 0 0 #CFE0D3;
	}
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group td.product-thumbnail,
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group .cart-fav,
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group .cart-sale { display: none !important; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group td.product-name { padding-right: 0 !important; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group .cart-var { font-size: 15px; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group .cart-sku { font-size: 12px; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group td.product-subtotal { align-self: start; margin-top: 0 !important; font-size: 15.5px; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group td.product-remove { align-self: start; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group td.product-remove a.remove { width: 28px !important; height: 28px !important; margin: -2px 0 0; font-size: 20px !important; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group td.product-price { align-self: center; margin-top: 4px; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group td.product-quantity { justify-self: end; margin-top: 4px !important; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group td.product-quantity .stepper { width: 104px; height: 36px; grid-template-columns: 32px 1fr 32px; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group:not(.grp-last) { border-bottom: 1px solid #EEF0EB; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group.grp-last { border-bottom: 1px solid var(--line); }
}
.mx--sheet .mx__label small { margin-left: 0; }
@media (max-width: 600px) { .vsheet { width: 100%; max-width: 100%; margin: auto 0 0; } }

/* ===== v3.30: блок покупки на странице товара — плашки, итог справа, кнопка + ♡ в одну строку ===== */
.buybox { padding: 24px; }
.buybox p.price { margin-bottom: 2px !important; }
.buybox__vnote { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.buybox .woocommerce-variation-description { display: none !important; }
.woocommerce div.product .buybox form.cart table.variations { margin-top: 10px; }
.woocommerce div.product .buybox form.cart table.variations th label { margin-bottom: 10px; font-size: 15px; }
.vchips__note { margin-top: 10px; }
/* «В корзине 4 размера · 16 шт — Открыть корзину» — аккуратная плашка под размерами */
.vchips__cart { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: -2px 0 16px; padding: 9px 12px; border-radius: 10px; background: #EEF5F0; color: #1F5F3A; font-size: 13.5px; line-height: 1.35; }
.vchips__cart[hidden] { display: none; }
.vchips__cart b { color: var(--ink); font-weight: 600; }
.vchips__cart a { margin-left: auto; font-weight: 600; white-space: nowrap; }
.vchips__dot { margin: 0; }
/* Количество слева, «Итого» справа; ниже — «В корзину» и сердечко-иконка */
.buybox .woocommerce-variation-add-to-cart, .buybox form.cart:not(.variations_form) { grid-template-columns: 140px minmax(0, 1fr) 52px !important; gap: 12px !important; }
.buybox .line-total { grid-column: 2 / 4 !important; grid-row: 1; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; margin: 0 !important; font-size: 13px; line-height: 1.15; color: var(--muted); }
.buybox .line-total b { font-size: 23px; }
.buybox .single_add_to_cart_button { grid-column: 1 / 3 !important; grid-row: 2 !important; min-height: 52px; }
.buybox form.cart .fav-btn--text { grid-column: 3 !important; grid-row: 2 !important; justify-self: stretch; width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: var(--r); }
.buybox form.cart .fav-btn--text [data-fav-label] { display: none; }
.buybox form.cart .fav-btn--text .ico { width: 22px; height: 22px; margin: 0; }
@media (max-width: 420px) {
	.buybox { padding: 18px; }
	.buybox .woocommerce-variation-add-to-cart, .buybox form.cart:not(.variations_form) { grid-template-columns: 128px minmax(0, 1fr) 50px !important; gap: 10px !important; }
	.buybox .stepper { width: 128px !important; }
	.buybox form.cart .fav-btn--text { width: 50px; height: 50px; }
	.buybox .line-total b { font-size: 20px; }
}

/* ===== v3.30: корзина на телефоне — каждый товар отделён полосой фона, заголовки групп белые и чёткие ===== */
@media (max-width: 768px) {
	.woocommerce-cart table.shop_table.cart tr.cart_item:not(.in-group),
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group.grp-last { border-bottom: 8px solid var(--paper) !important; }
	.woocommerce-cart table.shop_table.cart tr.cart-group { padding: 16px 14px 10px 16px; background: #fff; border-top: 0 !important; border-bottom: 1px solid #EEF0EB; }
	.cart-group__in { align-items: center; }
	.cart-group__name { font-size: 16.5px; font-weight: 700; color: var(--ink); }
	.cart-group__n { padding: 3px 9px; border: 0; border-radius: 999px; background: #FBF1DC; color: var(--bark); font-size: 12px; font-weight: 600; }
	.cart-group__sum { font-size: 16.5px; color: var(--ink); }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group { padding: 12px 8px 12px 16px; background: #fff; box-shadow: none; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group:not(.grp-last) { border-bottom: 1px solid #EEF0EB; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group .cart-var { font-size: 15.5px; font-weight: 700; color: var(--ink); }
	.woocommerce-cart table.shop_table.cart .cart-sku { color: #7A847E; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group td.product-subtotal { font-size: 16px; color: var(--ink); }
	.woocommerce-cart table.shop_table.cart td.product-quantity .stepper { border-color: #CBD1C7; background: #fff; }
	.woocommerce-cart table.shop_table.cart td.product-quantity .stepper button { background: #F1F3EE; }
	.woocommerce-cart .cart-collaterals .cart_totals { border-top: 0; }
}

/* Панель размеров: «×» слева от названия — далеко от «+» */
.vrow { grid-template-columns: 28px minmax(0, 1fr) auto 112px; gap: 8px; padding: 6px 10px 6px 6px; }
.vrow__x { width: 28px; height: 28px; border-radius: 50%; }
.vrow.is-on .vrow__x { background: #fff; box-shadow: inset 0 0 0 1px #D7DDD3; }
.vrow.is-on .vrow__x:hover { background: #FBEAEA; box-shadow: inset 0 0 0 1px #E8B7B1; }
@media (max-width: 600px) {
	.vrow { grid-template-columns: 26px minmax(0, 1fr) auto 100px; gap: 6px; padding: 6px 8px 6px 6px; }
	.vrow__x { width: 26px; height: 26px; }
}

/* ===== v3.31: страница товара — сумма всех размеров в корзине, «Убрать все размеры» ===== */
.vchips__cart { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 11px 14px; }
.vchips__cart[hidden] { display: none; }
.vchips__row { min-width: 0; }
.vchips__sum { color: var(--ink); font-size: 18px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vchips__acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-top: 8px; border-top: 1px solid #D5E5D9; }
.vchips__cart .vchips__acts a { margin: 0; }
.vchips__clear { padding: 0; border: 0; background: none; color: #9A3A33; font: 600 13.5px var(--f-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vchips__clear:hover { color: #B3261E; }
/* «В корзине: 2 размера · 47 520 ₽» под полем размера в карточке */
.vpick__cart { font-variant-numeric: tabular-nums; }

/* Корзина: «Очистить корзину» рядом с пояснением о ценах */
.cart-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 20px; }
.cart-tools .price-note { flex: 1 1 420px; margin: 0; }
.cart-clear { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.cart-clear .ico { width: 17px; height: 17px; }
.cart-clear:hover { color: #B3261E; }
@media (max-width: 768px) {
	.cart-tools { gap: 6px 12px; margin-bottom: 14px; }
	.cart-tools .price-note { flex-basis: 100%; margin: 0 !important; }
	.cart-clear { margin-left: auto; font-size: 13.5px; }
}

/* ===== v3.31: корзина на телефоне — единая панель без «разрывов»; размеры — на мягком сером фоне, как на ПК ===== */
@media (max-width: 768px) {
	.woocommerce-cart table.shop_table.cart tr.cart_item:not(.in-group),
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group.grp-last { border-bottom: 1px solid var(--line) !important; }
	.woocommerce-cart table.shop_table.cart tr.cart-group { padding: 14px 14px 12px 16px; background: #fff; border-bottom: 1px solid #E6E9E2; }
	.cart-group__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; }
	.cart-group__name { grid-column: 1; grid-row: 1; }
	.cart-group__n { grid-column: 1; grid-row: 2; justify-self: start; }
	.cart-group__sum { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group { background: #F6F7F3; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group:not(.grp-last) { border-bottom: 1px solid #E6E9E2; }
	.woocommerce-cart table.shop_table.cart tr.cart_item.in-group td.product-quantity .stepper { background: #fff; }
}

/* v3.31 — полоска загрузки при переходе (мгновенный отклик на тап) */
.navbar-load{position:fixed;left:0;top:0;height:3px;width:100%;z-index:9999;pointer-events:none;background:var(--resin,#B5651D);transform:scaleX(0);transform-origin:0 50%;opacity:0}
.navbar-load.is-on{opacity:1;animation:navload 2.4s cubic-bezier(.1,.7,.2,1) forwards}
@keyframes navload{0%{transform:scaleX(0)}100%{transform:scaleX(.92)}}
.tabbar__a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.tabbar__a:active .tabbar__ico{transform:scale(.9)}
.tabbar__ico{transition:transform .12s}
@media (prefers-reduced-motion:reduce){.navbar-load.is-on{animation:none;transform:scaleX(.6)}}
.vchips__n { display: block; white-space: nowrap; }
.vchips__dot { margin-right: 6px; }

/* v3.32 — строки размеров в корзине на странице товара: можно убрать конкретный размер */
.vcl-list { grid-column: 1 / -1; display: grid; gap: 0; margin: 2px 0 0; padding: 0; list-style: none; }
.vcl { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 30px; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid #D5E5D9; transition: opacity .15s; }
.vcl.is-busy { opacity: .45; pointer-events: none; }
.vcl__name { min-width: 0; padding: 0; border: 0; background: none; color: var(--ink); font: 500 14px/1.3 var(--f-body); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.vcl__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.vcl__q { color: var(--muted); font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vcl__s { min-width: 72px; text-align: right; white-space: nowrap; font-size: 14px; font-variant-numeric: tabular-nums; }
.vcl__x { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid #CFDCD2; border-radius: 50%; background: #fff; color: #6B746E; cursor: pointer; transition: color .15s, border-color .15s; }
.vcl__x:hover { color: #B3261E; border-color: #E2B4AF; }
.vcl__x .ico { width: 14px; height: 14px; }
.vchips__cart .vchips__acts { border-top-color: #D5E5D9; }
@media (max-width: 420px) { .vcl { gap: 8px; } .vcl__s { min-width: 0; } }

/* v3.32 — окно выбора размеров не меняет высоту при нажатии «+»: место под «Сбросить всё» и итог зарезервировано */
.mx--sheet .mx__top { min-height: 36px; align-items: center; }
.mx--sheet .mx__clear[hidden] { display: inline-block; visibility: hidden; }
.mx__sum { min-height: 46px; justify-content: center; }
.mx__add { width: 210px; min-width: 0; white-space: nowrap; }
@media (max-width: 600px) { .mx__add { width: 176px; padding: 0 12px; } }

/* v3.33 — подвал всегда внизу экрана, даже на короткой странице (пустая корзина, 404) */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > * { flex-shrink: 0; }
.site-main { flex: 1 0 auto; }

/* v3.33 — пустая корзина: понятный следующий шаг вместо служебной плашки */
.woocommerce-cart .woocommerce > .cempty { margin-top: 4px; }
.cempty { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.cempty__main { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: center; padding: 36px 40px 32px; }
.cempty__art { width: 120px; height: 120px; }
.cempty__title { margin: 0 0 8px; font: 700 clamp(22px, 2.4vw, 28px)/1.2 var(--f-display); }
.cempty__text { max-width: 56ch; margin: 0; color: var(--muted); }
.cempty__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cempty__actions .btn .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cempty__fav .ico { fill: none; stroke: currentColor; stroke-width: 1.8; }
.cempty__fav .fav-count { position: static; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 2px; border-radius: 999px; background: var(--spruce); color: #fff; font-size: 12px; font-weight: 600; }
.cempty__cats { padding: 22px 40px 26px; border-top: 1px solid var(--line); }
.cempty__label { margin: 0 0 12px; color: var(--muted); font-size: 14px; font-weight: 500; }
.cempty__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cempty__chips .chip { background: var(--paper); border-color: transparent; }
.cempty__chips .chip:hover { background: #fff; border-color: var(--spruce-2); }
.cempty__help { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 40px; background: #EEF3EF; border-top: 1px solid var(--line); }
.cempty__help-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--spruce); }
.cempty__help-ico .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.cempty__help-copy { display: grid; gap: 2px; line-height: 1.4; }
.cempty__help-copy span { color: var(--muted); font-size: 15px; }
.cempty__help-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 16px; }
.msg--cempty { display: flex; gap: 8px; margin: 0; }
.msg--cempty .msg__btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
.msg--cempty .msg__btn--mail { display: none; }
.cempty__phone { font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.cempty__phone:hover { color: var(--bark); }
@media (max-width: 860px) {
	.cempty__help { grid-template-columns: 44px minmax(0, 1fr); }
	.cempty__help-acts { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 600px) {
	.cempty { border-radius: 12px; }
	.cempty__main { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 26px 20px 22px; text-align: center; justify-items: center; }
	.cempty__art { width: 96px; height: 96px; }
	.cempty__text { font-size: 16px; }
	.cempty__actions { display: grid; width: 100%; }
	.cempty__actions .btn { width: 100%; }
	.cempty__cats, .cempty__help { padding-left: 20px; padding-right: 20px; }
	.cempty__chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; }
	.cempty__chips::-webkit-scrollbar { display: none; }
	.cempty__chips .chip { flex-shrink: 0; white-space: nowrap; }
	.msg--cempty { flex: 1 1 auto; }
	.msg--cempty .msg__btn { flex: 1 1 0; justify-content: center; }
}

/* v3.33 — «Заказ принят»: ссылка на чек-лист приёмки */
.tyc__accept { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 14px; align-items: center; margin: 14px 0 0; padding: 14px 18px; background: #EEF3EF; border: 1px solid #D5E5D9; border-radius: 14px; color: var(--ink); text-align: left; text-decoration: none; transition: border-color .15s; }
.tyc__accept:hover { border-color: var(--spruce-2); color: var(--ink); }
.tyc__accept-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--spruce); }
.tyc__accept-t { display: grid; gap: 2px; line-height: 1.35; }
.tyc__accept-t span { color: var(--muted); font-size: 14px; }
.tyc__accept-go { width: 20px; height: 20px; fill: none; stroke: var(--spruce-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* v3.33 — «Доставка и оплата»: тизер чек-листа */
.acc-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 28px 32px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--resin); border-radius: 12px; }
.acc-teaser h2 { margin-bottom: .3em; }
.acc-teaser p { margin: 0; max-width: 60ch; color: var(--muted); }
@media (max-width: 600px) { .acc-teaser { padding: 22px 20px; } .acc-teaser .btn { width: 100%; } }

/* v3.33 — страница «Приёмка товара» */
.acc-kit { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.acc-kit li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 500; }
.acc-kit .ico { width: 20px; height: 20px; color: var(--spruce-2); }
.acc-calc { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0; margin-top: 8px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.acc-calc__in { display: grid; gap: 18px; padding: 24px; }
.acc-calc__presets { display: flex; flex-wrap: wrap; gap: 6px; }
.acc-calc__presets .chip { padding: 6px 12px; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; font-family: var(--f-body); }
.acc-calc__presets .chip.is-on { background: var(--spruce); border-color: var(--spruce); color: #fff; }
.acc-calc__fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.acc-calc label { display: grid; gap: 6px; font-size: 13px; line-height: 1.2; color: var(--muted); }
.acc-calc input { min-height: 48px; padding: 8px 10px; font: 600 18px var(--f-body); text-align: center; font-variant-numeric: tabular-nums; background: #fff; -moz-appearance: textfield; appearance: textfield; }
.acc-calc input::-webkit-outer-spin-button, .acc-calc input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.acc-calc__fact { max-width: 280px; }
.acc-calc__fact span { color: #8A938E; }
.acc-calc__fact input { text-align: left; padding-left: 14px; }
.acc-calc__out { display: grid; align-content: center; gap: 4px; padding: 24px; background: var(--spruce); color: #D3DED8; }
.acc-calc__label { font-size: 14px; }
.acc-calc__big { color: #fff; font: 700 clamp(34px, 4vw, 44px)/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.acc-calc__sub { font-size: 14px; }
.acc-calc__fact-out { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 15px; line-height: 1.45; }
.acc-calc__fact-out b { display: block; font-size: 17px; }
.acc-calc__fact-out.is-bad { background: rgba(226, 169, 59, .18); box-shadow: inset 3px 0 0 var(--resin); }
.acc-calc__fact-out.is-ok { box-shadow: inset 3px 0 0 #7BC69A; }

.acc-ref { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.acc-ref__h { margin: 0; padding: 16px 20px 10px; font-weight: 600; }
.acc-ref__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 20px; }
.acc-ref table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.acc-ref caption { padding: 0 0 6px; text-align: left; font-weight: 600; }
.acc-ref th, .acc-ref td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.acc-ref th:first-child, .acc-ref td:first-child { text-align: left; }
.acc-ref th { color: var(--muted); font-weight: 500; font-size: 13px; }
.acc-ref td:last-child { font-weight: 600; }
.acc-ref__pick { padding: 0; border: 0; background: none; color: var(--spruce-2); font: 500 15px var(--f-body); text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.acc-ref__note { margin: 12px 20px 18px; color: var(--muted); font-size: 14px; }

@media (max-width: 960px) {
	.acc-calc { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.acc-kit li { font-size: 14px; }
	.acc-calc__in, .acc-calc__out { padding: 18px; }
	.acc-calc__fields { grid-template-columns: 1fr 1fr; }
	.acc-calc__fact { max-width: none; }
	.acc-calc__presets { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px; padding: 0 18px 2px; scrollbar-width: none; }
	.acc-calc__presets .chip { flex-shrink: 0; }
	.acc-ref__grid { grid-template-columns: 1fr; padding: 0 14px; }
	.acc-ref__note { margin: 12px 14px 16px; }
}

/* v3.35 — схема приёмки: 7 действий, 3 остановки, у каждого действия норма; справа — что делать, если не так */
.ag-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 20px; }
.ag-bar__acts { display: flex; gap: 8px; }
.ag-bar__acts .btn { min-height: 42px; padding: 0 16px; font-size: 15px; }
.ag-bar__acts .btn .ico { width: 19px; height: 19px; }
.ag { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.ag__list { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.section--white .ag__list { border-color: #CBD3C7; }
.ag__stop { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 20px; background: var(--spruce); color: #fff; font-size: 14px; }
.ag__stop b { font: 700 15px/1.2 var(--f-display); letter-spacing: .01em; }
.ag__stop > span:last-child { color: rgba(255, 255, 255, .7); }
.ag__stop-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--resin); color: var(--ink); font: 700 12px/1 var(--f-display); }
.ag__stop--2 { background: var(--spruce-2); }
.ag__stop--3 { background: var(--bark); }
.ag__steps { margin: 0; padding: 0; list-style: none; }
.ag__step { display: grid; grid-template-columns: 40px minmax(0, 1fr) 240px; gap: 4px 16px; align-items: center; padding: 16px 20px; }
.ag__step + .ag__step { border-top: 1px solid var(--line); }
.ag__n { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--spruce-2); border-radius: 50%; color: var(--spruce); font: 700 17px/1 var(--f-display); }
.ag__body { display: grid; gap: 2px; min-width: 0; }
.ag__t { font-size: 17px; line-height: 1.3; }
.ag__d { color: var(--muted); font-size: 15px; line-height: 1.45; }
.ag__norm { display: grid; gap: 1px; align-self: stretch; align-content: center; padding: 8px 12px 8px 14px; border-left: 3px solid #7BB38F; background: #F1F6F2; border-radius: 0 8px 8px 0; }
.ag__norm small { color: #4F7A5E; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ag__norm span { font-size: 15px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ag__fail { position: sticky; top: 130px; display: grid; gap: 12px; padding: 20px; background: #FFF6E3; border: 1px solid #F0D49B; border-radius: 16px; }
.ag__fail-h { font: 700 18px/1.2 var(--f-display); }
.ag__fail ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: f; font-size: 15px; line-height: 1.4; }
.ag__fail li { position: relative; padding-left: 30px; counter-increment: f; color: #4A3A1F; }
.ag__fail li::before { content: counter(f); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--resin); color: var(--ink); font: 700 12px/1 var(--f-display); }
.ag__fail li b { color: var(--ink); }
.ag__fail-phone { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: var(--r); background: var(--spruce); color: #fff; font: 700 17px/1 var(--f-body); text-decoration: none; }
.ag__fail-phone:hover { background: var(--spruce-2); color: #fff; }
.ag__fail-phone .ico { width: 20px; height: 20px; }
.ag-lead { margin: 0; max-width: 62ch; color: var(--muted); }
.ag-more { font-weight: 600; white-space: nowrap; }
#priemka .section__head { align-items: flex-end; margin-bottom: 22px; }
#priemka h2 { margin-bottom: .25em; }
.ag-tol { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; margin-top: 16px; padding: 16px 20px; background: #fff; border: 1px dashed var(--field); border-radius: 14px; }
.ag-tol__h { font-size: 15px; line-height: 1.3; white-space: nowrap; padding-right: 12px; }
.ag-tol dl { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.ag-tol dl div { display: flex; gap: 6px; align-items: baseline; font-size: 14px; }
.ag-tol dt { color: var(--muted); }
.ag-tol dd { margin: 0; font-weight: 700; white-space: nowrap; }
.ag-tol p { grid-column: 2; margin: 4px 0 0; color: var(--muted); font-size: 13px; }

/* v3.35 — «Доставка и оплата» */
.dv-facts { padding: 28px 0 8px; background: #fff; border-bottom: 1px solid var(--line); }
.dv-facts .facts--row > div { border-top: 0; padding-top: 0; }
.dv-facts dt { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 600; }
.dv-facts dd { font-size: 18px; }
.dv-cars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.dv-car { display: grid; gap: 4px; align-content: start; padding: 14px; background: var(--paper); border-radius: 12px; font-size: 14px; line-height: 1.4; }
.dv-car .ico { width: 26px; height: 26px; margin-bottom: 4px; color: var(--spruce-2); }
.dv-car b { font-size: 15px; }
.dv-car span { color: var(--muted); }
.dv-price { margin: 0; color: var(--muted); font-size: 15px; }
.dv-price b { color: var(--ink); }
.dv-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dv-pay__card { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; gap: 4px 16px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.dv-pay__ico { grid-row: 1 / span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #E4ECE6; color: var(--spruce); }
.dv-pay__ico .ico { width: 26px; height: 26px; stroke-width: 1.7; }
.dv-pay__card h3 { margin: 2px 0 0; }
.dv-pay__card p { margin: 0; color: var(--muted); }
.dv-pay__card p b { color: var(--ink); }
.dv-note { margin: 14px 0 0; color: var(--muted); font-size: 15px; }

@media (max-width: 1100px) {
	.ag { grid-template-columns: 1fr; }
	.ag__fail { position: static; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
	.ag__fail-h, .ag__fail ol { grid-column: 1; }
	.ag__fail-phone { grid-column: 2; grid-row: 1 / span 2; padding: 0 20px; }
	.ag-tol { grid-template-columns: 1fr; }
	.ag-tol p { grid-column: 1; }
}
@media (max-width: 860px) {
	.dv-cars { grid-template-columns: 1fr; }
	.dv-car { grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; }
	.dv-car .ico { grid-row: 1 / span 2; margin: 0; }
	.dv-pay { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.ag__step { grid-template-columns: 34px minmax(0, 1fr); gap: 8px 12px; align-items: start; padding: 14px 16px; }
	.ag__n { width: 34px; height: 34px; font-size: 15px; }
	.ag__norm { grid-column: 2; padding: 6px 10px; }
	.ag__stop { padding: 10px 16px; }
	.ag__t { font-size: 16px; }
	.ag__fail { grid-template-columns: 1fr; }
	.ag__fail-phone { grid-column: 1; grid-row: auto; }
	.dv-facts dd { font-size: 16px; }
	.dv-pay__card { padding: 18px; grid-template-columns: 44px minmax(0, 1fr); }
	.dv-pay__ico { width: 44px; height: 44px; }
	.ag-more { white-space: normal; }
}
@media (max-width: 600px) {
	.ag-bar { margin-bottom: 16px; }
	.ag-bar__acts { width: 100%; }
	.ag-bar__acts .btn { flex: 1 1 0; padding: 0 10px; font-size: 14px; white-space: nowrap; }
	.ag-bar__acts .btn .ico { display: none; }
	.ag-tol dl { display: grid; gap: 4px; }
	.ag-tol dl div { justify-content: space-between; }
}

/* v3.37 — «О нас»: производитель → мы → вы, правила, кто отвечает */
.ab-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; }
.ab-flow__item { position: relative; display: grid; align-content: start; gap: 6px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.ab-flow__item + .ab-flow__item::before { content: ""; position: absolute; left: -30px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-top: 3px solid var(--resin); border-right: 3px solid var(--resin); transform: rotate(45deg) scale(.75); }
.ab-flow__item--us { background: var(--spruce); border-color: var(--spruce); color: #D3DED8; }
.ab-flow__item--us b { color: #fff; }
.ab-flow__item--us small { color: var(--resin); }
.ab-flow__item--us .ab-flow__ico { background: rgba(255, 255, 255, .1); color: #fff; }
.ab-flow__ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 14px; background: #E4ECE6; color: var(--spruce); }
.ab-flow__ico .ico { width: 24px; height: 24px; stroke-width: 1.7; }
.ab-flow__item small { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ab-flow__item b { font: 700 19px/1.25 var(--f-display); }
.ab-flow__item p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; }
.ab-flow__item:not(.ab-flow__item--us) p { color: var(--muted); }
.ab-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ab-rule { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--paper); border-radius: 16px; }
.ab-rule__n { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 6px; border-radius: 50%; background: var(--resin); color: var(--ink); font: 700 14px/1 var(--f-display); }
.ab-rule h3 { margin: 0; font-size: 18px; }
.ab-rule p { flex: 1; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.ab-rule a { margin-top: 8px; font-weight: 600; font-size: 15px; }
.ab-person { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.ab-person__img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.ab-person__img--txt { display: grid; place-items: center; background: #E4ECE6; color: var(--spruce); font: 700 44px/1 var(--f-display); }
.ab-person__copy { display: grid; gap: 2px; }
.ab-person__copy small { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ab-person__copy b { font: 700 22px/1.25 var(--f-display); }
.ab-person__role { color: var(--muted); }
.ab-person__copy p { margin: 8px 0 0; max-width: 60ch; }
.ab-person__acts { display: grid; gap: 10px; justify-items: end; }
.ab-person__phone { color: var(--ink); font: 700 20px/1.2 var(--f-display); text-decoration: none; white-space: nowrap; }
.ab-req { margin-top: 18px; color: #9FB3A8 !important; font-size: 13px; }
@media (max-width: 900px) {
	.ab-flow, .ab-rules { grid-template-columns: 1fr; gap: 14px; }
	.ab-flow { gap: 30px; }
	.ab-flow__item + .ab-flow__item::before { left: 50%; top: -24px; margin: 0 0 0 -10px; transform: rotate(135deg) scale(.75); }
	.ab-person { grid-template-columns: 88px minmax(0, 1fr); gap: 18px; padding: 20px; }
	.ab-person__img { width: 88px; height: 88px; }
	.ab-person__img--txt { font-size: 32px; }
	.ab-person__acts { grid-column: 1 / -1; justify-items: start; }
}

/* ===== v3.38 ===== */

/* Значок MAX — фирменная плитка */
.bico--max { border-radius: 5px; }
.micons__a--max .bico { width: 18px; height: 18px; }

/* Каталог в шапке: компактная таблица в 3 колонки, всегда в пределах экрана */
.catmenu__panel { display: block; width: min(780px, calc(100vw - 240px)); min-width: 0; max-height: calc(100vh - 140px); overflow: auto; padding: 0; overscroll-behavior: contain; }
.catmenu__panel[hidden] { display: none; }
.catmenu__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.catmenu__head b { font: 700 16px/1.2 var(--f-display); }
.catmenu__panel a.catmenu__all { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 8px 12px; border: 0; border-radius: 8px !important; background: var(--resin); color: var(--ink); font-weight: 600; font-size: 15px; }
.catmenu__panel a.catmenu__all:hover { background: var(--resin-2); color: var(--ink); }
.catmenu__all .ico { width: 17px; height: 17px; stroke-width: 2.2; }
.catmenu__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 6px; padding: 10px; }
.catmenu__grid a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 8px 10px 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; line-height: 1.25; }
.catmenu__grid a:hover { background: var(--paper); color: var(--ink); }
.catmenu__grid a:hover .catmenu__name { color: var(--spruce-2); }
.catmenu__name { min-width: 0; }
.catmenu__panel .catmenu__n { flex-shrink: 0; min-width: 26px; padding: 2px 7px; border-radius: 999px; background: var(--paper); color: var(--muted); font-size: 12.5px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.catmenu__grid a:hover .catmenu__n { background: #fff; }
@media (max-width: 1360px) { .catmenu__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .catmenu__panel { width: min(560px, calc(100vw - 240px)); } }

/* Приёмка: «Возьмите с собой» — подпись + список, а не кнопки */
.acc-kit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; padding: 0; }
.acc-kit__h { color: var(--muted); font-size: 15px; font-weight: 500; }
.acc-kit ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.acc-kit li { display: inline-flex; align-items: center; gap: 7px; padding: 0; background: none; border: 0; border-radius: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.acc-kit .ico { width: 20px; height: 20px; color: var(--spruce-2); }
@media (max-width: 600px) { .acc-kit { gap: 6px 10px; } .acc-kit ul { gap: 6px 14px; } .acc-kit li { font-size: 14px; } }


/* Лист приёмки: только для печати */
.acc-sheet { display: none; }
@media print {
	@page { size: A4 portrait; margin: 11mm 12mm; }
	html, body.pg-accept { background: #fff !important; }
	body.pg-accept { display: block !important; margin: 0 !important; padding: 0 !important; color: #111; font-size: 9.5pt; line-height: 1.35; }
	body.pg-accept > *:not(#main) { display: none !important; }
	body.pg-accept #main { display: block !important; padding: 0 !important; margin: 0 !important; }
	body.pg-accept #main > *:not(.acc-sheet) { display: none !important; }
	body.pg-accept .acc-sheet { display: block !important; }
	.acc-sheet, .acc-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.acc-sheet i { display: block; flex: 1; min-width: 14mm; height: 0; margin-top: 5mm; border-bottom: .6pt solid #555; }
	.acs-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 10mm; padding-bottom: 3mm; border-bottom: 1.6pt solid #1E3B2F; }
	.acs-brand { display: grid; gap: 1mm; }
	.acs-brand b { font: 800 15pt/1 var(--f-display); color: #1E3B2F; }
	.acs-brand span, .acs-call span { color: #555; font-size: 8pt; }
	.acs-call { display: grid; justify-items: end; gap: .5mm; text-align: right; }
	.acs-call b { font: 800 14pt/1.1 var(--f-display); color: #111; }
	.acs-title { margin: 3.5mm 0 2.5mm; font: 800 17pt/1.1 var(--f-display); color: #111; letter-spacing: 0; }
	.acs-fields, .acs-sign, .acs-calc { display: flex; gap: 5mm; }
	.acs-fields > span, .acs-sign > span, .acs-calc > span { display: flex; align-items: flex-end; gap: 2mm; flex: 1; color: #444; font-size: 8.5pt; white-space: nowrap; }
	.acs-fields .acs-fields__wide { flex: 2; }
	.acs-kit { margin: 2.5mm 0 2.5mm; font-size: 9pt; }
	.acs-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 9pt; }
	.acs-table th { padding: 1.6mm 2mm; background: #1E3B2F; color: #fff; font-size: 8pt; font-weight: 700; text-align: left; letter-spacing: .03em; text-transform: uppercase; }
	.acs-table th:nth-child(2) { width: auto; }
	.acs-table th:nth-child(3) { width: 47mm; }
	.acs-table .acs-c { width: 8mm; text-align: center; }
	.acs-table .acs-note { width: 38mm; }
	.acs-table td { padding: 1.3mm 2mm; border-bottom: .5pt solid #BBB; vertical-align: top; }
	.acs-table td b { display: block; font-size: 9.5pt; }
	.acs-table td span { display: block; color: #444; font-size: 8.3pt; }
	.acs-table tr { break-inside: avoid; }
	.acs-stage td { padding: 1.1mm 2mm; background: #E9EFEA; border-bottom: .5pt solid #BBB; font-weight: 700; font-size: 9pt; color: #1E3B2F; }
	.acs-stage td span { display: inline; color: #555; font-weight: 400; }
	.acs-box { display: inline-block !important; width: 4mm; height: 4mm; margin-top: .4mm; border: 1pt solid #222; border-radius: .6mm; }
	.acs-norm { font-weight: 600; font-size: 8.8pt; }
	.acs-table td.acs-note { border-left: .5pt solid #DDD; }
	.acs-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 4mm; margin-top: 3.5mm; break-inside: avoid; }
	.acs-box2 { padding: 2.5mm 3.5mm; border: .6pt solid #999; border-radius: 2mm; }
	.acs-h { display: block; margin-bottom: 1mm; font-size: 9.5pt; }
	.acs-calc { flex-wrap: wrap; gap: 1mm 4mm; }
	.acs-calc > span { flex: 1 1 40%; }
	.acs-small { margin: 2mm 0 0; color: #555; font-size: 7.6pt; line-height: 1.35; }
	.acs-tol { width: 100%; border-collapse: collapse; font-size: 8.5pt; }
	.acs-tol td { padding: .7mm 0; border-bottom: .4pt dotted #AAA; }
	.acs-tol td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
	.acs-fail { margin-top: 3.5mm; padding: 2.5mm 3.5mm; background: #FFF3D6; border-left: 2pt solid #E2A93B; font-size: 9pt; break-inside: avoid; }
	.acs-sign { gap: 4mm; margin-top: 5mm; break-inside: avoid; }
	.acs-sign > span { flex: 1 1 0; }
	.acs-sign > span:nth-child(even) { flex: .7 1 0; }
}

/* ===== v3.39 — карточка товара: аккуратная сетка =====
   Фото → название → характеристики; внизу, на одной линии во всём ряду: [размер] → цена · наличие → кол-во + «В корзину». */
.woocommerce ul.products li.product { padding: 12px 12px 14px; border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.woocommerce ul.products li.product:hover { border-color: #CBD3C7; box-shadow: 0 10px 28px rgba(22, 41, 31, .08); }
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1 0 auto; color: inherit; text-decoration: none; }
.woocommerce ul.products li.product a img { margin-bottom: 14px !important; border-radius: 8px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { margin: 0 0 6px !important; font-size: 15.5px !important; line-height: 1.3 !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.woocommerce ul.products li.product .specs { display: grid; gap: 3px; margin: 0; font-size: 13.5px; line-height: 1.35; color: var(--ink); }
.woocommerce ul.products li.product .specs li { padding: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.woocommerce ul.products li.product .specs span { color: var(--muted); }

/* Нижний блок: порядок задаём здесь — разметка WooCommerce остаётся прежней */
.woocommerce ul.products li.product .vbuy { display: contents; }
.woocommerce ul.products li.product .vpick { order: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; }
.woocommerce ul.products li.product .vpick__cart { order: 1; margin-top: 6px; }
.woocommerce ul.products li.product .cprice { order: 2; }
.woocommerce ul.products li.product .loop-buy,
.woocommerce ul.products li.product > .button { order: 3; margin-top: 12px !important; }

.cprice { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.woocommerce ul.products li.product .cprice .price { margin: 0 !important; font: 700 18px/1.2 var(--f-body) !important; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.woocommerce ul.products li.product .cprice .price del { font-size: 13px; font-weight: 400; }
.woocommerce ul.products li.product .cprice .unit { font-size: 13px; font-weight: 400; }
.cprice .avail { margin: 0; font-size: 13px; line-height: 1.2; white-space: nowrap; }
.cprice .avail::before { width: 7px; height: 7px; }

/* Поле размера — по ширине значения, рядом — «6 размеров» (открывает весь список) */
.woocommerce ul.products li.product .vfield { flex: 0 1 auto; width: auto; max-width: 100%; min-height: 38px; gap: 6px; padding: 6px 8px 6px 12px; border-color: var(--field); border-radius: 8px; font: 600 15px/1.2 var(--f-body); }
.woocommerce ul.products li.product .vfield:hover { border-color: var(--spruce-2); background: #FAFBF9; }
.woocommerce ul.products li.product .vfield .ico { width: 16px; height: 16px; }
.vfield__v small { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.vfield__v[data-u]::after { content: " " attr(data-u); font-weight: 500; color: var(--muted); }
.vpick__all { flex: 0 0 auto; margin-left: auto; padding: 4px 0; border: 0; background: none; color: var(--muted); font: 500 13.5px/1.2 var(--f-body); text-decoration: underline dotted; text-decoration-color: #A9B4AD; text-underline-offset: 4px; cursor: pointer; white-space: nowrap; }
.vpick__all:hover { color: var(--spruce); text-decoration-color: currentColor; }
.vpick__all:focus-visible, .woocommerce ul.products li.product .vfield:focus-visible { outline: 2px solid var(--spruce-2); outline-offset: 2px; }
@container (max-width: 200px) {
	.woocommerce ul.products li.product .vfield { font-size: 14px; padding: 6px 6px 6px 10px; }
	.vpick__all { margin-left: 0; font-size: 13px; }
}

/* Приёмка: «Скачать PDF» */
.ag-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 20px; }
.ag-links .btn { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn .ico { flex-shrink: 0; }
.ag-bar__acts .btn, .ag-links .btn { display: inline-flex; align-items: center; gap: 8px; }
.ag-bar__acts .btn .ico, .ag-links .btn .ico { width: 19px; height: 19px; }
@media (max-width: 700px) { .ag-links { justify-content: flex-start; } }
@media (max-width: 600px) { .ag-bar__acts { flex-wrap: wrap; } .ag-bar__acts .btn { flex: 1 1 calc(50% - 4px); } .ag-bar__acts .btn[data-acc-print] { display: none; } }

/* Карточка на телефоне: название целиком, шрифт чуть меньше */
@media (max-width: 600px) {
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px !important; -webkit-line-clamp: 5; }
	.woocommerce ul.products li.product .specs { font-size: 12.5px; }
	.woocommerce ul.products li.product .cprice .price { font-size: 16px !important; }
}
.ag-bar__acts { margin-left: auto; flex-wrap: wrap; }
@media (max-width: 600px) { .ag-bar__acts { margin-left: 0; } }
.ag-bar__acts .btn--ico { width: 42px; padding: 0 !important; justify-content: center; }
