/* ONYX B2B — mobile-first. Colours from the ONYX mark (orange/amber, graphite). */
:root {
	--ink: #1f2723;
	--ink-soft: #3b4641;
	--muted: #4f5b55;
	--paper: #f7f6f1;
	--surface: #ffffff;
	--line: #d6dbd3;
	--accent: #f3a43b;
	--accent-strong: #e08a12;
	--accent-ink: #8a4b00;
	--warn-bg: #fff4e0;
	--warn-line: #e8b366;
	--danger: #a4262c;
	--ok: #1d6b3a;
	--focus: #0b57d0;
	--radius: 10px;
	--wrap: 1200px;
	--gutter: 16px;
	--header-h: 64px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 6vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 4.5vw, 1.75rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip-link:focus { top: 8px; color: #fff; }
main:focus { outline: none; }
.icon { flex: none; }
/* Progressive enhancement: JS-only controls are hidden until onyx.js removes .no-js. */
.no-js .js-only { display: none !important; }

.staging-bar { background: #2b2b2b; color: #fff; font-size: .8rem; text-align: center; padding: 6px var(--gutter); }

/* Buttons: min 44px touch target. Primary = main next step; secondary = alternative; tertiary = minor inline action. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--radius); border: 2px solid transparent; font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center; }
.btn-primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--ink); }
.btn-primary[disabled], .btn-primary[aria-disabled="true"] { opacity: .65; cursor: progress; }
.btn-ghost, .btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover, .btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-tertiary { background: none; border: 0; padding: 8px 6px; min-height: 44px; color: var(--ink); text-decoration: underline; font-weight: 600; }
.btn-tertiary:hover { color: var(--danger); }
.btn-sm { min-height: 44px; padding: 8px 12px; font-size: .9rem; }
.btn-icon { min-width: 48px; padding: 8px; font-size: 1.2rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 8px; min-height: var(--header-h); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; }
.brand img { width: 62px; height: 44px; object-fit: contain; }
.brand-text { font-weight: 800; font-size: 1.4rem; letter-spacing: .08em; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; }
.header-phone { display: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 8px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.cart-link:hover, .cart-link:focus-visible { background: #000; color: #fff; }
/* «запиту» stays in the accessible name on phones; it is only visually hidden. */
.cart-link .cart-link-extra { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cart-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: .85rem; font-weight: 800; line-height: 1; }
.cart-link.is-bumped .cart-count { animation: onyx-bump .4s ease-out; }
@keyframes onyx-bump { 40% { transform: scale(1.3); } }
.nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); font: 600 .95rem var(--font); color: var(--ink); cursor: pointer; }
.nav-toggle[aria-expanded="true"] { background: var(--ink); color: #fff; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
.site-nav { flex-basis: 100%; display: none; padding: 8px 0 16px; border-top: 1px solid var(--line); max-height: calc(100vh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
.no-js .site-nav, .site-nav.is-open { display: block; }
/* Without JS the menu is always expanded: keep the header in the flow so it never covers the page. */
.no-js .site-header { position: static; }
.no-js .site-nav { max-height: none; overflow: visible; }
.no-js .nav-toggle { display: none; }
.nav-list, .nav-cats { list-style: none; margin: 0; padding: 0; }
.nav-list a, .nav-cats a { display: flex; align-items: center; padding: 12px 4px; min-height: 48px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav-list a[aria-current="page"] { color: var(--accent-ink); box-shadow: inset 4px 0 0 var(--accent); padding-left: 12px; }
.nav-heading { margin: 16px 4px 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.nav-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.nav-cats a { font-weight: 500; }
.nav-actions { display: grid; gap: 8px; margin-top: 16px; }
.nav-actions .btn { width: 100%; }
.cart-link-menu .cart-link-extra { display: inline; }
.cart-link-menu .icon { color: inherit; }

/* Breadcrumbs, heads */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 16px 0 8px; padding: 0; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-head { padding: 8px 0 12px; }
.lead { font-size: 1.075rem; color: var(--ink-soft); max-width: 62ch; }
.lead p:last-child { margin-bottom: 0; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 6px; }
.eyebrow a { color: inherit; }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 36px 0 32px; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { max-width: 20ch; }
.hero .lead { color: #e3e7e4; }
.hero .btn-ghost, .hero .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.hero .btn-ghost:hover, .hero .btn-secondary:hover { background: #fff; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 24px; }
.hero-actions .btn { flex: 1 1 160px; }
.hero-facts { list-style: none; margin: 0; padding: 16px 0 0; display: grid; gap: 8px; border-top: 1px solid #45504b; color: #e3e7e4; font-size: .95rem; }
.hero-facts strong { color: var(--accent); }

/* Sections */
.section { padding: 32px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.link-more { font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }

/* Category cards «П’ять напрямів. Один точний вибір.» — unchanged ONYX images, framing by CSS only. */
.family-head { display: grid; gap: 4px 32px; margin-bottom: 16px; }
.family-head h2 { margin-bottom: 4px; }
.family-lead { margin: 0; color: var(--ink-soft); max-width: 52ch; }
.family-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.family-grid li { min-width: 0; }
.family-card { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) 32px; gap: 12px; align-items: center; height: 100%; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.family-card::before { content: ""; position: absolute; inset: -1px -1px auto -1px; height: 4px; border-radius: var(--radius) var(--radius) 0 0; background: var(--accent); opacity: 0; transition: opacity .15s; }
.family-card:hover, .family-card:focus-visible { border-color: var(--ink); box-shadow: 0 6px 20px rgba(31, 39, 35, .12); color: var(--ink); }
.family-card:hover::before, .family-card:focus-visible::before { opacity: 1; }
.family-media { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.family-media img { width: 100%; height: 100%; }
.family-media--contain img { object-fit: contain; padding: 6%; }
.family-media--cover img { object-fit: cover; object-position: 50% 45%; }
.family-body { display: grid; gap: 2px; min-width: 0; }
.family-num { font: 700 .78rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--accent-ink); letter-spacing: .06em; }
.family-name { margin: 0; font-size: 1.05rem; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.family-desc { font-size: .88rem; line-height: 1.4; color: var(--ink-soft); }
.family-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: .82rem; color: var(--muted); }
.family-tag { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); font-weight: 600; }
.family-arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-weight: 700; color: var(--ink); }
.family-card:hover .family-arrow, .family-card:focus-visible .family-arrow { background: var(--accent); border-color: var(--accent); }
.family-all { margin: 12px 0 0; }
@media (max-width: 400px) {
	.family-card { grid-template-columns: 80px minmax(0, 1fr) 32px; gap: 10px; }
	.family-name { font-size: 1rem; }
}

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; padding: 14px; background: var(--paper); border-radius: var(--radius); }
.steps li::before { content: counter(step); grid-row: span 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); font-weight: 800; }
.steps span { color: var(--ink-soft); font-size: .95rem; }

/* Request state strip: чернетка кошика → запит → пропозиція → підтверджене замовлення */
.state-steps { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.state-steps li { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: .88rem; }
.state-num { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--muted); font-weight: 800; font-size: .85rem; }
.state-text { display: grid; gap: 2px; }
.state-text span { color: var(--muted); font-size: .82rem; }
.state-steps li[aria-current="step"] { border: 2px solid var(--ink); background: var(--warn-bg); }
.state-steps li[aria-current="step"] .state-num { background: var(--accent); border-color: var(--accent); }
.state-steps li.is-done .state-num { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Catalogue */
.chips { margin: 4px calc(var(--gutter) * -1) 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chips ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 4px var(--gutter); width: max-content; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters { display: grid; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #8a948f; border-radius: 8px; background: #fff; font: 1rem var(--font); color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.filter-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.result-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 14px 0 10px; }
.result-count { margin: 0; color: var(--muted); font-weight: 600; }
.active-filters { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.active-filters li { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 12px; border-radius: 999px; background: var(--warn-bg); border: 1px solid var(--warn-line); font-size: .9rem; }
.active-filters .btn-tertiary { min-height: 40px; padding: 6px 8px; }
.catalog-hint { margin: 0 0 12px; padding: 10px 12px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); font-size: .92rem; color: var(--ink-soft); }

.card-grid { display: grid; gap: 12px; }
.card { display: grid; grid-template-columns: 112px 1fr; align-content: start; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-media { align-self: start; }
.card-media img { width: 112px; height: 112px; object-fit: contain; background: #fff; }
.card-body { display: flex; flex-direction: column; min-width: 0; }
.card-title { font-size: 1rem; margin-bottom: 6px; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-facts { margin: 0 0 6px; font-size: .88rem; }
.card-facts div { display: flex; gap: 6px; flex-wrap: wrap; }
.card-facts dt { color: var(--muted); }
.card-facts dt::after { content: ":"; }
.card-facts dd { margin: 0; overflow-wrap: anywhere; }
.card-meta { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.card-actions { margin-top: auto; padding-top: 6px; }
.card-actions .btn { width: 100%; }
.card-actions .btn.is-added { border-color: var(--ok); color: var(--ok); }
.badge { display: inline-block; margin: 0 6px 4px 0; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #eceee9; color: var(--ink-soft); }
.badge-warn { background: var(--warn-bg); color: var(--accent-ink); border: 1px solid var(--warn-line); }
.badge-info { background: #e8eef9; color: #1f3d73; border: 1px solid #a9bde3; }

.empty { padding: 24px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Product */
.product { display: grid; gap: 20px; padding-bottom: 24px; }
.product-media { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.product-media img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.product-media figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.key-facts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.key-facts li { padding-left: 18px; position: relative; }
.key-facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.product-actions .btn-primary { flex: 1 1 220px; }
.notice { padding: 12px 14px; border-left: 4px solid var(--line); background: var(--surface); border-radius: 6px; font-size: .95rem; }
.notice-warn { border-left-color: var(--accent-strong); background: var(--warn-bg); }
.table-scroll { overflow-x: auto; }
.specs { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .95rem; }
.specs caption { text-align: left; font-size: .85rem; color: var(--muted); padding-bottom: 8px; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.specs th { width: 42%; font-weight: 600; color: var(--ink-soft); }
.source { font-size: .9rem; margin-top: 10px; }

/* Add-to-request box (product page) */
.quote-box { display: grid; gap: 10px; margin: 0 0 16px; padding: 14px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); }
.quote-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.quote-legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 1.05rem; }
.qty-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(96px, auto); gap: 10px; align-items: end; }
.qty-row select, .cart-line-controls select { min-height: 50px; }
.stepper { display: flex; align-items: stretch; border: 1px solid #8a948f; border-radius: 8px; background: #fff; overflow: hidden; }
.stepper input { flex: 1 1 auto; min-width: 0; width: 100%; border: 0 !important; border-radius: 0; text-align: center; font-weight: 700; font-size: 1.05rem; min-height: 48px; }
.stepper input:focus-visible { outline-offset: -3px; }
.stepper-btn { flex: none; width: 48px; min-height: 48px; border: 0; background: var(--paper); color: var(--ink); font: 700 1.4rem/1 var(--font); cursor: pointer; }
.stepper-btn:hover { background: var(--line); }
.stepper:has([aria-invalid="true"]) { border: 2px solid var(--danger); }
.hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.hint-warn { color: var(--accent-ink); font-weight: 600; }
.error { color: var(--danger); font-size: .9rem; font-weight: 600; margin: 4px 0 0; }
.config { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.config summary { cursor: pointer; padding: 10px 12px; min-height: 44px; font-weight: 600; display: flex; align-items: center; }
.config[open] summary { border-bottom: 1px solid var(--line); }
.config-body { display: grid; gap: 10px; padding: 12px; }
.config-body .hint { margin: 0; }
.quote-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quote-actions .btn-primary { flex: 1 1 220px; }
.label-nojs { display: none; }
.no-js .quote-box .label-js, .quote-box:not([data-add-to-quote]) .label-js { display: none; }
.no-js .quote-box .label-nojs, .quote-box:not([data-add-to-quote]) .label-nojs { display: inline; }
.quote-status:empty { display: none; }
.quote-status { padding: 10px 12px; border-radius: 8px; background: #e8f5ec; border: 1px solid #8ec7a0; color: #0f4223; font-weight: 600; }
.quote-status.is-error { background: #fdecec; border-color: #e8a1a4; color: #6d1419; }
.quote-status a { color: inherit; }
.quote-alt { margin: 0; font-size: .92rem; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.quote-alt a { display: inline-flex; align-items: center; min-height: 44px; }

/* Sticky mobile action bars (product: add; cart: go to submit). */
.sticky-cta { position: sticky; bottom: 0; z-index: 40; display: flex; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0,0,0,.08); }
.sticky-cta .btn-primary { flex: 1; min-width: 0; }
.sticky-qty { font-weight: 500; white-space: nowrap; }
.sticky-cta[hidden] { display: none; }
.no-js .sticky-cta { display: none; }
/* Floating chat launcher (onyx-crm) keeps clear of the sticky bar on mobile. */
.onyx-has-sticky .onyx-chat { bottom: 84px; }
.onyx-has-sticky .onyx-chat-panel { bottom: 144px; }

/* Toast for quick-add feedback (also a polite live region). */
.cart-toast { position: fixed; left: 50%; bottom: 16px; z-index: 70; transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); padding: 0; }
.cart-toast:not(:empty) { padding: 12px 14px; border-radius: var(--radius); background: var(--ink); color: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.3); }
.cart-toast a { color: #fff; font-weight: 700; }
.cart-toast.is-error:not(:empty) { background: #6d1419; }
.onyx-has-sticky .cart-toast { bottom: 84px; }

/* Cart page */
.cart-page .notice { margin: 0 0 16px; }
.cart-loading { color: var(--muted); }
.cart-empty, .cart-lines-section, .cart-checkout { margin-bottom: 24px; }
.cart-empty { padding: 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.cart-empty-actions, .cart-done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.cart-lines { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.cart-line { display: grid; gap: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-line h3 { margin: 0 0 4px; font-size: 1rem; }
.cart-line h3 a { text-decoration: none; }
.cart-line h3 a:hover { text-decoration: underline; }
.cart-line-meta { margin: 0 0 4px; font-size: .9rem; color: var(--ink-soft); }
.cart-line-flags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; }
.cart-line-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(96px, auto); gap: 8px; align-items: end; }
.cart-line-controls .error { grid-column: 1 / -1; }
.cart-line-controls .field { margin: 0; }
.cart-line-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cart-line-price { margin: 0; font-size: .9rem; color: var(--muted); }
.cart-line.is-saving { opacity: .75; }
.cart-line .error:empty { display: none; }
.cart-summary { display: grid; gap: 4px; margin: 0; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-summary div { display: flex; justify-content: space-between; gap: 12px; }
.cart-summary dt { color: var(--muted); }
.cart-summary dd { margin: 0; font-weight: 600; text-align: right; }
.cart-checkout .rfq { max-width: none; }
.cart-done h2 { font-size: 1.3rem; }
.cart-fallback-box p:last-child { margin-bottom: 0; }

/* Prose pages and forms */
.prose { max-width: 70ch; padding-bottom: 32px; }
.prose h2 { margin-top: 1.4em; }
.rfq { display: grid; gap: 14px; max-width: 720px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rfq fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.rfq legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.rfq .hint { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
.rfq .req { color: var(--danger); }
.rfq .error { color: var(--danger); font-size: .9rem; font-weight: 600; margin: 4px 0 0; }
.rfq [aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.rfq .check { display: flex; gap: 10px; align-items: flex-start; }
.rfq .check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.field-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.rfq-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: var(--radius); margin: 0 0 16px; }
.alert ul { margin: 0; padding-left: 1.2em; }
.alert-error { background: #fdecec; border: 1px solid #e8a1a4; color: #6d1419; }
.alert-error a { color: inherit; }
.alert-ok { background: #e8f5ec; border: 1px solid #8ec7a0; color: #0f4223; }

/* Contact strip and footer */
.contact-strip { background: var(--accent); padding: 28px 0; margin-top: 32px; }
.contact-strip-inner { display: grid; gap: 14px; }
.contact-strip p { margin: 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-strip .btn-on-accent { background: var(--ink); border-color: var(--ink); color: #fff; }
.contact-strip .btn-on-accent:hover { background: #000; border-color: #000; color: #fff; }
.contact-strip .btn-secondary { background: transparent; }
.site-footer { background: var(--ink); color: #dfe4e1; padding: 32px 0 calc(24px + env(safe-area-inset-bottom)); font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.brand-footer { background: #fff; padding: 6px 8px; border-radius: 8px; margin-bottom: 12px; }
.footer-grid { display: grid; gap: 24px; }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 8px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-list a { display: inline-block; padding: 4px 0; }
.footer-contacts { margin-top: 14px; padding-top: 14px; border-top: 1px solid #45504b; }
.footer-legal { margin: 0 0 8px; }
.footer-note { border-top: 1px solid #45504b; margin-top: 24px; padding-top: 16px; font-size: .85rem; color: #c3cbc6; }
.post-list { padding-left: 1.2em; }
.post-meta { color: var(--muted); font-size: .92rem; margin: 0; }

/* ≥600px */
@media (min-width: 600px) {
	:root { --gutter: 24px; }
	.cart-link .cart-link-extra { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
	.family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.family-card { grid-template-columns: 112px minmax(0, 1fr) 32px; }
	.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card { grid-template-columns: 1fr; }
	.card-media img { width: 100%; height: auto; aspect-ratio: 1; }
	.filters { grid-template-columns: 2fr 1fr auto; align-items: end; }
	.hero-facts { grid-template-columns: repeat(3, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.state-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.contact-strip-inner { grid-template-columns: 1fr auto; align-items: center; }
	.footer-grid { grid-template-columns: repeat(2, 1fr); }
	.cart-line { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
	.cart-line-foot { grid-column: 1 / -1; }
	.cart-checkout .rfq fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cart-checkout .rfq fieldset legend, .cart-checkout .rfq [data-field="message"] { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
	.header-phone { display: inline-flex; }
	.header-cta { display: inline-flex; }
}

/* ≥960px */
@media (min-width: 960px) {
	/* Desktop header: row 1 brand + phone + «Запит ціни» + cart; row 2 full-width navigation (wraps if the menu grows). */
	html { scroll-padding-top: 140px; }
	.header-row { padding-top: 10px; row-gap: 8px; }
	.nav-toggle { display: none; }
	.site-nav, .no-js .site-nav { display: block; flex-basis: 100%; order: 3; margin: 0; padding: 0 0 6px; border-top: 1px solid var(--line); max-height: none; overflow: visible; }
	.nav-list { display: flex; flex-wrap: wrap; gap: 2px 4px; padding-top: 6px; }
	.nav-list a { border: 0; padding: 8px 12px; min-height: 44px; border-radius: 8px; }
	.nav-list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); padding-left: 12px; }
	.nav-list a:hover { background: var(--paper); }
	.nav-heading, .nav-cats, .nav-actions { display: none; }
	.hero { padding: 64px 0 56px; }
	.hero-actions .btn { flex: 0 0 auto; }
	.family-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
	.family-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
	.family-card { grid-template-columns: 1fr; align-items: start; align-content: start; gap: 12px; padding: 12px 12px 56px; }
	.family-arrow { position: absolute; left: 12px; bottom: 12px; }
	.card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.steps { grid-template-columns: repeat(4, 1fr); }
	.product { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; column-gap: 40px; }
	.product-media { position: sticky; top: 140px; grid-row: span 2; }
	.sticky-cta { display: none; }
	.onyx-has-sticky .onyx-chat { bottom: 16px; }
	.onyx-has-sticky .onyx-chat-panel { bottom: 76px; }
	.onyx-has-sticky .cart-toast { bottom: 16px; }
	.footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
	.cart-page .cart-app { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 32px; align-items: start; }
	.cart-page .cart-app > .cart-fallback-box, .cart-page .cart-app > .cart-loading, .cart-page .cart-app > .cart-empty, .cart-page .cart-app > .cart-done { grid-column: 1 / -1; }
	.cart-page .cart-checkout { position: sticky; top: 140px; }
	.cart-page .cart-checkout .rfq fieldset { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
