/* ==========================================================================
   Кунак Строй — дизайн-система
   ========================================================================== */
:root {
	--gold: #b8962e;
	--gold-600: #9c7d22;
	--gold-100: #f4ecd6;
	--ink: #1f2429;
	--ink-800: #2b3238;
	--ink-600: #4a525a;
	--text: #22272c;
	--muted: #6a7078;
	--stone: #f6f3ec;
	--sand: #ece5d5;
	--line: #e3dccc;
	--white: #fff;
	--ok: #2f7d4f;
	--warn: #b5562a;
	--radius-s: 6px;
	--radius: 10px;
	--radius-l: 16px;
	--shadow: 0 1px 2px rgb(31 36 41 / .06), 0 4px 16px rgb(31 36 41 / .06);
	--shadow-l: 0 12px 40px rgb(31 36 41 / .14);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--container: 1320px;
	--gap: clamp(16px, 2.4vw, 28px);
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 400 16px/1.55 var(--font); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgb(184 150 46 / .5); text-underline-offset: 3px; }
a:hover { color: var(--gold-600); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 750; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-s); }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gap); }
.container--narrow { max-width: 900px; }
.ico { flex: none; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius-s); font-weight: 650; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--gold, .button.alt, .single_add_to_cart_button, .checkout-button, #place_order { background: var(--gold); color: var(--white); }
.btn--gold:hover, .button.alt:hover, .single_add_to_cart_button:hover, .checkout-button:hover, #place_order:hover { background: var(--gold-600); color: var(--white); }
.btn--light { background: rgb(255 255 255 / .1); color: #fff; border-color: rgb(255 255 255 / .35); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--ink); }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.btn--block { width: 100%; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gold-600); text-decoration: none; }
.link-more:hover { color: var(--ink); }

/* ---------- верхняя строка ---------- */
.topbar { background: var(--ink); color: #cfd3d7; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 36px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.topbar__item .ico { color: var(--gold); }
.topbar a:hover { color: #fff; }
.topbar__msg { margin-left: auto; display: flex; gap: 16px; }
.topbar__msg a { color: #cfd3d7; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.topbar__msg .ico { color: var(--gold); }
.drawer__msg { display: flex; gap: 8px; margin-top: 8px; }
.drawer__msg .btn { flex: 1; font-size: 15px; }

/* ---------- шапка ---------- */
.header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); }
.header.is-stuck { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.header__burger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.logo img { width: 174px; height: auto; }
.header__catalog { flex: none; }
.search { flex: 1; display: flex; position: relative; min-width: 0; }
.search input { width: 100%; height: 46px; padding: 0 48px 0 16px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--stone); transition: border-color .15s, background .15s; }
.search input:focus { outline: 0; border-color: var(--gold); background: var(--white); }
.search button { position: absolute; right: 4px; top: 4px; height: 38px; width: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-600); cursor: pointer; }
.search--inline { max-width: 560px; margin: 0 0 20px; }
.header__phone { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.header__phone a { font-weight: 750; font-size: 18px; text-decoration: none; color: var(--ink); }
.header__phone small { color: var(--muted); font-size: 12px; }
.header__icons { display: flex; align-items: center; gap: 6px; }
.header__icons a { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-s); color: var(--ink); }
.header__icons a:hover { background: var(--stone); }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.cart-count:empty, .cart-count:is([data-count="0"]) { display: none; }

.mainnav { border-top: 1px solid var(--line); }
.mainnav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.mainnav__list a { display: block; padding: 11px 14px; font-size: 15px; font-weight: 550; text-decoration: none; color: var(--ink-800); border-bottom: 2px solid transparent; }
.mainnav__list a:hover, .mainnav__list .current-menu-item > a { color: var(--ink); border-bottom-color: var(--gold); }
.mainnav__list:empty, .mainnav:not(:has(li)) { display: none; }

/* ---------- мега-меню ---------- */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line); box-shadow: var(--shadow-l); max-height: calc(100vh - 140px); overflow: auto; }
.mega__inner { display: grid; grid-template-columns: 320px 1fr; padding-top: 16px; padding-bottom: 24px; }
.mega__top { border-right: 1px solid var(--line); padding-right: 12px; }
.mega__item a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: var(--radius-s); font-weight: 600; text-decoration: none; }
.mega__item.is-active a, .mega__item a:hover { background: var(--stone); color: var(--ink); }
.mega__item .ico { color: var(--muted); }
.mega__panels { padding: 4px 28px; }
.mega__panel { display: none; }
.mega__panel.is-active { display: block; }
.mega__title { display: inline-block; font-size: 22px; font-weight: 750; text-decoration: none; margin-bottom: 14px; }
.mega__list { columns: 3 220px; column-gap: 28px; }
.mega__list li { break-inside: avoid; }
.mega__list a { display: block; padding: 6px 0; color: var(--ink-600); text-decoration: none; }
.mega__list a:hover { color: var(--gold-600); }
.mega__empty { padding: 12px 0; }

/* ---------- мобильное меню ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; background: rgb(15 18 21 / .5); }
.drawer__panel { width: min(360px, 88vw); height: 100%; overflow: auto; background: var(--white); padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__close { background: none; border: 0; padding: 6px; cursor: pointer; }
.drawer__cats, .drawer__nav { list-style: none; margin: 0; padding: 0; }
.drawer__cats a, .drawer__nav a { display: block; padding: 11px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 550; }
.drawer__contacts { margin-top: auto; display: grid; gap: 4px; }
.drawer__contacts a { font-size: 20px; font-weight: 750; text-decoration: none; }

.tabbar { display: none; }

/* ---------- общие блоки ---------- */
.site-main { padding-bottom: 56px; min-height: 50vh; }
.breadcrumbs { padding: 16px 0 8px; font-size: 13px; color: var(--muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: var(--line); }
.breadcrumbs a { text-decoration: none; color: var(--ink-600); }
.breadcrumbs a:hover { color: var(--gold-600); }
.page-head { margin: 8px 0 24px; }
.page-title { margin: 0 0 8px; }
.entry-meta { color: var(--muted); font-size: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.badge--sale { background: var(--warn); color: #fff; }

.section { padding: clamp(40px, 6vw, 72px) 0; }
.section--stone { background: var(--stone); }
.section--dark { background: var(--ink); color: #d7dbdf; }
.section--dark h2, .section--dark b { color: #fff; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section__head h2 { margin: 0; position: relative; padding-left: 18px; }
.section__head h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 2px; background: var(--gold); }

/* ---------- главная ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #3a4249 0%, transparent 60%), var(--ink); color: #d7dbdf; }
.hero::after { content: ""; position: absolute; right: -10%; top: -40%; width: 70%; height: 140%; border-radius: 50%; border-top: 2px solid rgb(184 150 46 / .55); transform: rotate(-8deg); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero h1 { color: #fff; font-size: clamp(30px, 4.2vw, 52px); max-width: 16em; }
.hero__lead { font-size: 18px; max-width: 38em; color: #c6cbd0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgb(255 255 255 / .1); border-radius: var(--radius); overflow: hidden; }
.hero__facts li { background: rgb(31 36 41 / .85); padding: 22px; display: grid; gap: 4px; }
.hero__facts b { font-size: 30px; color: var(--gold); font-weight: 800; }
.hero__facts span { font-size: 14px; }

.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.cat-tile a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--white); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat-tile a:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.cat-tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; margin-bottom: 8px; }
.cat-tile__name { font-weight: 750; font-size: 17px; color: var(--ink); }
.cat-tile__sub { font-size: 13px; color: var(--muted); }

.tasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.task { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.task .ico { color: var(--gold); margin-bottom: 12px; }
.task h3 { margin-bottom: 6px; }
.task p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 6px; padding-top: 16px; border-top: 2px solid var(--gold); }
.steps li::before { content: "0" counter(s); font-weight: 800; color: var(--gold); font-size: 14px; }
.steps b { font-size: 18px; }

/* ---------- контент ---------- */
.prose { font-size: 17px; line-height: 1.7; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose table, .woocommerce-product-attributes { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1em 0; }
.prose th, .prose td, .woocommerce-product-attributes th, .woocommerce-product-attributes td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th, .woocommerce-product-attributes th { font-weight: 600; color: var(--ink-600); width: 40%; background: var(--stone); }
.woocommerce-product-attributes td p { margin: 0; }
.seo-text { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); max-width: 960px; }
.entry-cover img { border-radius: var(--radius); }

.faq { margin-top: 40px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 8px; background: var(--white); }
.faq__item summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 650; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--gold); }
.faq__item[open] summary::after { content: "–"; }
.faq__a { padding: 0 16px 14px; color: var(--ink-600); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__body { padding: 18px; }
.post-card__body time { font-size: 13px; color: var(--muted); }
.post-card__title { font-size: 19px; margin: 6px 0; }
.post-card__title a { text-decoration: none; }
.nav-links { display: flex; gap: 6px; margin-top: 32px; }
.nav-links .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; }
.nav-links .current { background: var(--ink); color: #fff; border-color: var(--ink); }

.nf { text-align: center; padding-top: 40px; }
.nf__code { font-size: 96px; font-weight: 800; color: var(--gold); line-height: 1; margin: 0; }
.nf .search--inline { margin: 24px auto; }
.nf .subcats { justify-content: center; margin-top: 32px; }

/* ---------- каталог ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.shop-side { position: sticky; top: calc(var(--header-h) + 60px); }
.shop-side:empty { display: none; }
.shop-layout:has(.shop-side:empty) { grid-template-columns: 1fr; }
.cat-nav { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.cat-nav__title { font-weight: 750; margin: 4px 8px 8px; }
.cat-nav ul { list-style: none; margin: 0; padding: 0; }
.cat-nav a { display: block; padding: 7px 8px; border-radius: var(--radius-s); text-decoration: none; font-size: 15px; }
.cat-nav a:hover { background: var(--stone); color: var(--ink); }
.cat-nav .is-open > a { font-weight: 700; color: var(--ink); }
.cat-nav ul ul { padding-left: 12px; border-left: 2px solid var(--gold-100); margin: 2px 0 6px 10px; }
.cat-nav ul ul a { font-size: 14px; color: var(--ink-600); }

.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.subcats a { display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 550; background: var(--white); }
.subcats a:hover { border-color: var(--gold); color: var(--ink); }
.subcats small { color: var(--muted); font-size: 12px; }

.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.shop-toolbar .subcats { width: 100%; margin-bottom: 8px; }
.woocommerce-result-count { margin: 0; color: var(--muted); font-size: 14px; }
.woocommerce-ordering select, .variations select, .wc-page select, .wc-page input[type=text], .wc-page input[type=email], .wc-page input[type=tel], .wc-page input[type=password], .wc-page textarea, .quantity .qty { height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--white); }
.wc-page textarea { height: auto; padding: 10px 12px; }

ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shop-main ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
ul.products::before, ul.products::after { display: none !important; }
.pcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.pcard:hover { border-color: #d6cdb8; box-shadow: var(--shadow); }
.pcard__img { position: relative; display: block; aspect-ratio: 1; background: var(--white); padding: 12px; }
.pcard__img img { width: 100%; height: 100%; object-fit: contain; }
.pcard__img .badge { position: absolute; left: 10px; top: 10px; }
.pcard__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; border-top: 1px solid var(--stone); }
.pcard__brand { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--gold-600); }
.pcard__title { font-size: 15px; font-weight: 600; line-height: 1.35; margin: 0; }
.pcard__title a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__specs { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--ink-600); }
.pcard__specs span { color: var(--muted); }
.pcard__foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.pcard__price .price, .price { font-weight: 800; font-size: 19px; color: var(--ink); }
.price del { color: var(--muted); font-weight: 400; font-size: .8em; margin-right: 6px; }
.price ins { text-decoration: none; color: var(--warn); }
.price--req { font-size: 15px !important; color: var(--ink-600) !important; }
.pcard__stock, .stock-flag { font-size: 12px; font-weight: 650; white-space: nowrap; }
.is-in { color: var(--ok); }
.is-out { color: var(--muted); }
.pcard .button { width: 100%; }
.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 16px; border: 1px solid var(--ink); border-radius: var(--radius-s); background: var(--ink); color: #fff; font-weight: 650; font-size: 14px; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.added_to_cart { display: block; text-align: center; font-size: 13px; margin-top: 6px; }

.woocommerce-pagination ul { list-style: none; display: flex; gap: 6px; padding: 0; margin: 32px 0 0; }
.woocommerce-pagination .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; }
.woocommerce-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.woocommerce-info, .woocommerce-message, .woocommerce-error { list-style: none; padding: 14px 16px; border-radius: var(--radius-s); background: var(--stone); border-left: 4px solid var(--gold); margin: 0 0 20px; }
.woocommerce-error { border-left-color: var(--warn); }

/* ---------- страница товара ---------- */
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 8px; }
.single-product div.product > .onsale { position: absolute; }
.woocommerce-product-gallery { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--white); }
.woocommerce-product-gallery__image img { width: 100%; max-height: 560px; object-fit: contain; }
.woocommerce-product-gallery .flex-control-thumbs { list-style: none; display: flex; gap: 8px; padding: 0; margin: 12px 0 0; }
.woocommerce-product-gallery .flex-control-thumbs li { width: 72px; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; cursor: pointer; }
.woocommerce-product-gallery__trigger { position: absolute; right: 16px; top: 16px; z-index: 2; }
.summary .product_title { font-size: clamp(24px, 2.6vw, 32px); }
.pmeta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.pmeta b { color: var(--ink); font-weight: 600; }
.summary .price { font-size: 30px; margin: 8px 0 12px; display: block; }
.woocommerce-product-details__short-description { color: var(--ink-600); }
.quick-specs { display: grid; gap: 0; margin: 16px 0 4px; border-top: 1px solid var(--line); }
.quick-specs div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.quick-specs dt { color: var(--muted); }
.quick-specs dd { margin: 0; font-weight: 550; }
.summary form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0; padding: 16px; background: var(--stone); border-radius: var(--radius); }
.summary form.variations_form { display: block; }
.variations { width: 100%; margin-bottom: 12px; border-collapse: collapse; }
.variations th, .variations td { padding: 6px 0; text-align: left; }
.variations th { padding-right: 12px; width: 120px; font-weight: 600; }
.variations select { width: 100%; }
.reset_variations { font-size: 13px; margin-left: 8px; }
.woocommerce-variation-add-to-cart { display: flex; gap: 10px; align-items: center; }
.quantity .qty { width: 84px; text-align: center; }
.single_add_to_cart_button { min-height: 48px !important; padding: 12px 28px !important; font-size: 16px !important; border: 0 !important; flex: 1; }
.help-box { border: 1px solid var(--gold-100); background: #fffdf7; border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.help-box p { margin-bottom: 10px; font-size: 15px; }
.help-box__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.usp-mini { display: grid; gap: 8px; font-size: 14px; color: var(--ink-600); }
.usp-mini li { display: flex; gap: 8px; align-items: center; }
.usp-mini .ico { color: var(--gold); }
.product-sections { grid-column: 1 / -1; display: grid; gap: 16px; margin-top: 24px; }
.psec { border-top: 1px solid var(--line); padding-top: 28px; max-width: 980px; }
.related, .upsells { grid-column: 1 / -1; margin-top: 40px; }
.related > h2 { margin-bottom: 20px; }

/* Перекрытие стилей WooCommerce по умолчанию */
.woocommerce div.product form.cart .button.single_add_to_cart_button, .woocommerce button.button.alt, .woocommerce a.button.alt, .woocommerce #respond input#submit.alt { background: var(--gold); color: #fff; border: 0; border-radius: var(--radius-s); }
.woocommerce div.product form.cart .button.single_add_to_cart_button:hover, .woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover { background: var(--gold-600); color: #fff; }
.woocommerce button.button.alt.disabled, .woocommerce button.button.alt:disabled { background: var(--gold); opacity: .5; }
.woocommerce a.button, .woocommerce button.button { background: var(--ink); color: #fff; border-radius: var(--radius-s); }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--gold); color: #fff; }
.woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce ul.products li.product .price { color: var(--ink); }
.woocommerce table.shop_attributes td, .woocommerce table.shop_attributes th { font-style: normal; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.woocommerce table.shop_attributes { border-top: 1px solid var(--line); }
.woocommerce table.shop_attributes td p { padding: 0; }
.woocommerce table.shop_attributes tr:nth-child(even) td, .woocommerce table.shop_attributes tr:nth-child(even) th { background: transparent; }
.woocommerce span.onsale { background: var(--warn); border-radius: 4px; min-height: 0; min-width: 0; padding: 3px 8px; line-height: 1.4; font-size: 12px; }

/* ---------- фильтры ---------- */
.shop-side { display: grid; gap: 16px; }
.filters__wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.filters__toggle { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 750; display: flex; align-items: center; gap: 8px; }
.filters__toggle::-webkit-details-marker { display: none; }
.filters__toggle::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.filters__wrap[open] .filters__toggle::after { transform: rotate(-135deg); }
.filters__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.filters__body { padding: 0 16px 16px; display: grid; gap: 14px; }
.filters__group { border: 0; padding: 12px 0 0; margin: 0; border-top: 1px solid var(--stone); display: grid; gap: 2px; }
.filters__group legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.filters__check { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; cursor: pointer; line-height: 1.3; }
.filters__check input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; margin: 0; }
.filters__check span { flex: 1; }
.filters__check small { color: var(--muted); font-size: 12px; }
.filters__check.is-zero { opacity: .45; }
.filters__check--stock { font-weight: 600; }
.filters__group.is-long:not(.is-open) .is-extra { display: none; }
.filters__more { background: none; border: 0; padding: 4px 0; color: var(--gold-600); font-weight: 600; font-size: 14px; cursor: pointer; text-align: left; }
.filters__price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters__price input { width: 100%; height: 40px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: var(--radius-s); }
.filters__actions { display: flex; gap: 8px; }
.filters__actions .btn { flex: 1; min-height: 40px; padding: 8px 12px; }

/* ---------- калькулятор ---------- */
.calc { border: 1px solid var(--line); border-radius: var(--radius); margin: 12px 0 16px; background: var(--white); }
.calc summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.calc summary::-webkit-details-marker { display: none; }
.calc summary .ico { color: var(--gold); }
.calc__body { padding: 0 16px 16px; }
.calc__norm { font-size: 14px; color: var(--ink-600); }
.calc__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc__grid label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.calc__grid input { height: 42px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: var(--radius-s); font-size: 16px; color: var(--ink); }
.calc__result { margin-top: 14px; padding: 12px 14px; background: var(--stone); border-radius: var(--radius-s); }
.calc__result p { margin: 0 0 4px; }
.calc__result b { font-size: 18px; }
.calc__packs { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--ink-600); }
.calc__note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

/* ---------- контакты / реквизиты ---------- */
.contacts-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 24px 0; }
.contacts-list div { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.contacts-list dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.contacts-list dd { margin: 0; font-weight: 650; font-size: 17px; }
.contacts-list a { text-decoration: none; color: var(--ink); }
.contacts-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 32px; }
.contacts-map iframe { display: block; }
.requisites { width: 100%; border-collapse: collapse; }
.requisites th { width: 38%; }

/* ---------- корзина / оформление ---------- */
.wc-page .shop_table { width: 100%; border-collapse: collapse; }
.wc-page .shop_table th, .wc-page .shop_table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.wc-page .form-row { margin: 0 0 14px; display: grid; gap: 6px; }
.wc-page .form-row input, .wc-page .form-row select { width: 100%; }
.wc-page .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* ---------- подвал ---------- */
.footer { background: var(--ink); color: #b9bfc5; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer__brand img { width: 174px; margin-bottom: 16px; }
.footer__title { color: #fff; font-weight: 700; margin: 0 0 12px; }
.footer__title:not(:first-child) { margin-top: 24px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer__msg { display: flex; gap: 16px; }
.footer__msg a { display: inline-flex; align-items: center; gap: 6px; }
.footer__contacts { display: grid; gap: 8px; align-content: start; }
.footer__contacts p { display: flex; gap: 8px; margin: 0; }
.footer__contacts .ico { color: var(--gold); margin-top: 3px; }
.footer__phone { font-size: 22px; font-weight: 750; color: #fff; }
.footer__legal { border-top: 1px solid rgb(255 255 255 / .08); font-size: 13px; color: #8c949b; padding: 16px 0; }
.footer__legal-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer__note { margin: 8px 0 0; font-size: 12px; }

/* ---------- адаптив ---------- */
@media (max-width: 1200px) {
	.header__phone small { display: none; }
	ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.shop-main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1025px) { .hide-lg { display: none !important; } }
@media (max-width: 1024px) {
	:root { --header-h: 64px; }
	.header__burger { display: block; }
	.header__catalog, .header__phone, .mainnav { display: none; }
	.header__inner { flex-wrap: wrap; gap: 8px 12px; padding-top: 8px; padding-bottom: 8px; }
	.logo { margin-right: auto; }
	.logo img { width: 130px; }
	.search { order: 3; flex-basis: 100%; }
	.search input { height: 42px; }
	.hero__inner { grid-template-columns: 1fr; }
	.shop-layout { grid-template-columns: 1fr; }
	.shop-side { position: static; order: 0; }
	.shop-side .cat-nav { display: none; }
	.subcats { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gap) * -1); margin-right: calc(var(--gap) * -1); padding: 0 var(--gap) 4px; scrollbar-width: none; }
	.subcats::-webkit-scrollbar { display: none; }
	.subcats a { white-space: nowrap; }
	.nf .subcats { flex-wrap: wrap; margin: 32px 0 0; padding: 0; }
	.single-product div.product { grid-template-columns: 1fr; gap: 24px; }
	.steps { grid-template-columns: 1fr 1fr; }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.mega { display: none !important; }
}
@media (max-width: 720px) {
	body { padding-bottom: 64px; }
	.hide-sm, .topbar__item.hide-sm { display: none; }
	.topbar__inner { gap: 12px; }
	ul.products, .shop-main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.pcard__body { padding: 10px 12px 12px; }
	.pcard__title { font-size: 14px; }
	.pcard__price .price { font-size: 16px; }
	.pcard__specs { display: none; }
	.pcard__foot { flex-direction: column; align-items: start; gap: 2px; }
	.hero__facts b { font-size: 24px; }
	.hero__lead { font-size: 16px; }
	.steps { grid-template-columns: 1fr; }
	.footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.wc-page .col2-set { grid-template-columns: 1fr; }
	.tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: var(--white); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
	.tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 4px; font-size: 11px; text-decoration: none; color: var(--ink-600); }
	.tabbar .ico { color: var(--ink); }
	.tabbar .cart-count { top: 2px; right: calc(50% - 22px); }
	.summary .price { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
