/* =========================================================================
   Дизайн за зразком umanagro.com.ua: Montserrat, білий фон, помаранчевий
   акцент #FE4922, темна верхня смуга, сітка карток з тонкими лініями.
   Назви змінних збережено з попередньої версії — на них спирається адмінка.
   ========================================================================= */
/* Montserrat (SIL Open Font License) — власні файли шрифтів, без запитів до Google */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/montserrat-cyrillic-ext-400-normal.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/montserrat-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/montserrat-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/montserrat-cyrillic-ext-500-normal.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/montserrat-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/montserrat-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/montserrat-cyrillic-ext-600-normal.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/montserrat-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/montserrat-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/montserrat-cyrillic-ext-700-normal.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/montserrat-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/montserrat-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --accent: #FE4922;
  --accent-dk: #E53A15;
  --ink: #212529;
  --ink-2: #333333;
  --black: #000000;
  --topbar: #282828;
  --muted: #999999;
  --muted-2: #797B7E;
  --line: #F1F1F1;
  --line-2: #E4E4E4;
  --bg-soft: #F7F7F7;
  --ok: #3CB371;
  --alert: #D9381E;

  /* сумісність зі старими назвами (адмінка, оформлення) */
  --paper: #FFFFFF;
  --chalk: var(--bg-soft);
  --graphite: var(--ink);
  --steel: var(--muted);
  --signal: var(--accent);
  --signal-dk: var(--accent-dk);
  --field: var(--ok);
  --plate: var(--line);

  --display: 'Montserrat', system-ui, sans-serif;
  --body: 'Montserrat', system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --wrap: 1170px;
  --r: 5px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 14px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 15px; }
.code { font-family: var(--mono); font-size: .92em; letter-spacing: .01em; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }

/* ---------- кнопки, поля ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: #fff;
  padding: 11px 20px; border-radius: var(--r); font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--ink); }
.btn-go { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-go:hover { background: var(--accent-dk); border-color: var(--accent-dk); }
.btn-dark { background: var(--black); border-color: var(--black); color: #fff; }
.btn-dark:hover { background: #333; border-color: #333; }
.btn-light { background: var(--line); border-color: var(--line); color: var(--black); }
.btn-light:hover { background: var(--line-2); border-color: var(--line-2); }
.btn-sm { padding: 6px 20px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

.field { display: grid; gap: 4px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 500; }
.input, select.input, textarea.input { width: 100%; padding: 11px 16px; border: 1px solid var(--line-2); border-radius: 0; background: #fff; font-size: 14px; }
.input:focus { border-color: var(--ink); outline: none; }
.hint { font-size: 12px; color: var(--muted); }
.error-msg { color: var(--alert); font-weight: 500; }

/* ---------- шапка ---------- */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: var(--r); font-weight: 600; }
.skip:focus { left: 8px; }

.top { background: var(--topbar); font-size: 14px; font-weight: 500; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 31px; }
.top nav { display: flex; gap: 6px 52px; flex-wrap: wrap; }
.top a { color: var(--muted); text-decoration: none; }
.top a:hover { color: #fff; }
.top .top-right { display: flex; gap: 24px; }
.top .top-right a { color: #fff; }

header.main { background: #fff; position: sticky; top: 0; z-index: 30; }
header.main.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
header.main .wrap { display: flex; align-items: center; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.logo img { height: 47px; width: auto; }
.logo-text { display: inline-block; border: 3px solid var(--black); padding: 3px 10px 2px; font-weight: 600; font-size: 26px; line-height: 1.2; letter-spacing: .02em; color: var(--black); white-space: nowrap; }

.hcat { position: relative; flex-shrink: 0; }
.btn-catalog { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 170px; height: 50px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; border-radius: var(--r); font-weight: 600; font-size: 14px; cursor: pointer; }
.btn-catalog:hover { background: var(--accent-dk); }
.btn-catalog svg { width: 18px; height: 18px; }
.mega { position: absolute; left: 0; top: calc(100% + 10px); width: min(860px, calc(100vw - 30px)); background: #fff; border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0,0,0,.14); padding: 22px 26px; display: none; grid-template-columns: 1.3fr 1fr; gap: 30px; z-index: 40; }
.hcat.open .mega { display: grid; }
.mega .m-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin: 0 0 10px; }
.mega ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.mega li { break-inside: avoid; }
.mega a { display: flex; align-items: center; gap: 10px; padding: 7px 0; text-decoration: none; font-weight: 500; }
.mega a:hover { color: var(--accent); }
.mega a svg { width: 22px; height: 22px; stroke: var(--ink); flex-shrink: 0; }
.mega a .cat-img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; margin: -4px 0; }
.mega a small { color: var(--muted); font-weight: 400; margin-left: auto; }

.hsearch { flex: 1; position: relative; display: flex; min-width: 0; }
.hsearch .input { height: 50px; border-color: var(--line); border-right: 0; }
.hsearch > button { width: 58px; height: 50px; flex-shrink: 0; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; }
.hsearch > button:hover { background: var(--line); }
.hphone { font-size: 20px; font-weight: 600; color: var(--black); text-decoration: none; white-space: nowrap; }
.hphone:hover { color: var(--accent); }
.hicons { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.hicons a, .hicons button { position: relative; display: grid; place-items: center; background: none; border: 0; padding: 4px; cursor: pointer; text-decoration: none; color: var(--black); }
.hicons a:hover, .hicons button:hover { color: var(--accent); }
.hicons .lbl { display: none; }
.cart-count { position: absolute; top: -4px; right: -8px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px;
  border-radius: 8px; display: grid; place-items: center; padding: 0 4px; line-height: 1; }

.hmenu { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.hmenu .wrap { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }
.hmenu a { padding: 15px 0; font-size: 15px; font-weight: 500; color: var(--black); text-decoration: none; }
.hmenu a:hover, .hmenu a.on { color: var(--accent); }

.suggest { position: absolute; left: 0; right: 58px; top: 100%; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0,0,0,.12);
  z-index: 35; max-height: 420px; overflow: auto; }
.suggest a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 14px; text-decoration: none; border-bottom: 1px solid var(--line); }
.suggest a:hover, .suggest a.on { background: var(--bg-soft); }
.suggest small { grid-column: 1; color: var(--muted); }
.suggest .pr { grid-row: 1 / 3; grid-column: 2; align-self: center; font-weight: 600; }

/* ---------- хлібні крихти: сіра смуга на всю ширину ---------- */
.crumbs { font-size: 12px; color: var(--ink); padding: 6px 0; margin-bottom: 22px; background: var(--line);
  box-shadow: 0 0 0 100vmax var(--line); clip-path: inset(0 -100vmax); }
.crumbs a { color: var(--muted-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { font-weight: 600; }

/* ---------- головна ---------- */
.hero-banner { display: block; background: #3b3329; }
.hero-banner img { width: 100%; height: auto; aspect-ratio: 3840 / 1060; object-fit: cover; }
/* текст поверх банера (задається в адмінці) */
.hero-banner { position: relative; overflow: hidden; color: #fff; text-decoration: none; }
.hero-banner.has-text::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero-banner.al-right::after { background: linear-gradient(90deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.45)); }
.hero-banner.al-left::after { background: linear-gradient(270deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.45)); }
.hero-banner.al-center::after { background: rgba(0,0,0,.3); }
.hero-text { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; padding: 0 max(16px, calc((100% - var(--wrap)) / 2 + 15px)); }
.hero-text > div { max-width: min(820px, 70%); display: grid; gap: clamp(8px, 1.4vw, 20px); }
.al-right .hero-text { justify-content: flex-end; text-align: right; }
.al-right .hero-text > div { justify-items: end; }
.al-center .hero-text { justify-content: center; text-align: center; }
.al-center .hero-text > div { justify-items: center; }
.hero-text h2 { margin: 0; color: #fff; font-weight: 700; text-transform: uppercase; font-size: clamp(20px, 3.2vw, 48px); line-height: 1.1; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-text p { margin: 0; max-width: 560px; font-weight: 500; text-transform: uppercase; font-size: clamp(11px, 1.15vw, 17px); line-height: 1.35; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-btn { display: inline-block; margin-top: clamp(4px, 1vw, 14px); background: #fff; color: var(--ink); font-weight: 600; font-size: clamp(12px, 1.1vw, 16px); padding: clamp(8px, 1vw, 14px) clamp(24px, 4vw, 72px); }
.hero-banner:hover .hero-btn { background: var(--accent); color: #fff; }
@media (max-width: 640px) {
  .hero-banner.has-text img { aspect-ratio: auto; min-height: 220px; }
  .hero-text p { font-size: 12px; }
}
section.block { padding: 34px 0 10px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.block-head h2 { margin: 0; }
.block-head a { color: var(--muted); font-weight: 500; font-size: 13px; text-decoration: none; }
.block-head a:hover { color: var(--accent); }

.finder { border: 1px solid var(--line); padding: 26px 28px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px 40px; }
.finder h1 { font-size: 22px; grid-column: 1 / -1; margin: 0; }
.finder-cats { display: grid; gap: 10px; align-content: start; }
.finder-cats .f-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.finder form { display: grid; gap: 8px; align-content: start; }
.finder label.f-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.finder .row-in { display: flex; }
.finder .row-in .input { height: 48px; }
.finder .row-in .btn { border-radius: 0 var(--r) var(--r) 0; height: 48px; }
.machine { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; }
.machine .input { height: 48px; }
.machine .btn { height: 48px; }
.examples { font-size: 12px; color: var(--muted); }
.examples button { background: none; border: 0; padding: 0 3px; font-family: var(--mono); font-size: 12px; color: var(--ink); text-decoration: underline dotted; cursor: pointer; }
.examples button:hover { color: var(--accent); }

/* промо-банери: стрічка по 2 (на телефоні по 1) */
.promo-slider { --per: 2; --gap: 30px; position: relative; }
.ps-view { overflow: hidden; }
.ps-track { display: flex; gap: var(--gap); transition: transform .5s ease; will-change: transform; touch-action: pan-y; }
.ps-slide { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); display: block; overflow: hidden; }
.ps-slide img { width: 100%; height: auto; aspect-ratio: 2368 / 1200; object-fit: cover; display: block; transition: transform .3s; }
.ps-slide:hover img { transform: scale(1.02); }
.ps-btn { position: absolute; top: calc(50% - 14px); transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92);
  color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18); z-index: 2; }
.ps-btn:hover { background: var(--accent); color: #fff; }
.ps-prev { left: 10px; } .ps-next { right: 10px; }
.ps-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.ps-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #D4D4D4; cursor: pointer; }
.ps-dots button[aria-current="true"] { background: var(--accent); }
@media (max-width: 700px) { .promo-slider { --per: 1; --gap: 16px; } }
@media (prefers-reduced-motion: reduce) { .ps-track { transition: none; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.tiles a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px 12px 18px; background: #fff;
  box-shadow: 0 1px 10px rgba(0,0,0,.08); text-align: center; text-decoration: none; min-height: 150px; transition: box-shadow .15s; }
.tiles a:hover { box-shadow: 0 4px 18px rgba(0,0,0,.14); }
.tiles svg { width: 54px; height: 54px; stroke: var(--ink); }
.tiles .cat-img { width: 120px; height: 120px; object-fit: contain; }
.tiles a.has-img { padding-top: 14px; }
.tiles b { font-weight: 500; line-height: 1.35; }
.tiles small { color: var(--muted); font-size: 12px; }

.makes { display: flex; flex-wrap: wrap; gap: 8px; }
.makes a { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: var(--r); text-decoration: none; background: #fff; font-weight: 500; }
.makes a:hover { border-color: var(--accent); color: var(--accent); }
.makes.sub { margin: -4px 0 22px; }
.makes.sub a { font-size: 13px; padding: 6px 12px; }

.perks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); }
.perks div { padding: 22px 18px; border-right: 1px solid var(--line); }
.perks div:last-child { border-right: 0; }
.perks svg { width: 34px; height: 34px; stroke: var(--accent); margin-bottom: 10px; }
.perks b { display: block; font-weight: 600; margin-bottom: 4px; }
.perks p { margin: 0; font-size: 13px; color: var(--muted-2); }

.about { margin-top: 36px; color: var(--ink); font-size: 13.5px; }
.about h2 { font-size: 20px; }
.about p { margin: 0 0 12px; max-width: 110ch; }

/* ---------- сітка товарів ---------- */
.grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.grid.g5 { --cols: 5; }
.grid > .card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid > .empty { grid-column: 1 / -1; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 10px 20px; background: #fff; transition: box-shadow .15s; position: relative; }
.card:hover { box-shadow: 0 4px 22px rgba(0,0,0,.1); z-index: 1; }
.card-img { width: 100%; aspect-ratio: 1; display: grid; place-items: center; background: #fff; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-img svg { width: 42%; height: 42%; stroke: #C9C9C9; stroke-width: 1.4; }
.card-name { font-weight: 500; color: var(--ink-2); text-decoration: none; line-height: 1.4; margin: 10px 4px 4px; min-height: 2.8em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-name:hover { color: var(--accent); }
.card-meta { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.card-meta .code { color: var(--muted-2); }
.card .stock { justify-content: center; font-size: 11.5px; margin-bottom: 8px; }
.card-price { font-weight: 600; font-size: 14px; color: var(--ink-2); margin: auto 0 12px; }
.card-price s { color: var(--muted); font-weight: 400; font-size: 12px; margin-right: 6px; }
.btn-buy { background: var(--accent); border: 1px solid var(--accent); color: #fff; font-weight: 600; font-size: 12px; padding: 6px 20px; border-radius: var(--r); cursor: pointer; min-width: 88px; }
.btn-buy:hover { background: var(--accent-dk); }

.stock { font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock.low { color: #D48A00; }
.stock.none { color: var(--muted); }
.stock.none::before { background: transparent; border: 1.5px solid currentColor; width: 5px; height: 5px; }
.added { background: var(--ok) !important; border-color: var(--ok) !important; color: #fff !important; }

/* ---------- каталог ---------- */
.catalog { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 30px; padding-bottom: 50px; align-items: start; }
.side-cats { list-style: none; margin: 0 0 30px; padding: 0; border: 1px solid var(--line); }
.side-cats a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 13px; font-weight: 500; }
.side-cats li:last-child a { border-bottom: 0; }
.side-cats a:hover { color: var(--accent); }
.side-cats a.on { background: var(--black); color: #fff; }
.side-cats a small { color: var(--muted); font-weight: 400; }
.side-cats a.on small { color: #bbb; }
.facet { border: 1px solid var(--line); margin-bottom: 12px; background: #fff; }
.facet summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .02em; color: var(--ink-2); cursor: pointer; }
.facet summary::-webkit-details-marker { display: none; }
.facet summary::after { content: ''; width: 9px; height: 9px; border-right: 1.5px solid #999; border-bottom: 1.5px solid #999; transform: rotate(45deg); margin-top: -4px; transition: transform .15s; }
.facet[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.facet .facet-body { padding: 0 20px 18px; }
.facet .input { padding: 9px 12px; font-size: 13px; }
.opt { display: flex; gap: 10px; align-items: center; padding: 4px 0; font-size: 13px; cursor: pointer; }
.opt input { accent-color: var(--black); width: 15px; height: 15px; }
.opt small { color: var(--muted); margin-left: auto; }
.price-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.sorts { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; }
.sorts a { color: var(--muted); text-decoration: none; }
.sorts a:hover { color: var(--ink); }
.sorts a.on { color: var(--black); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chips:empty { display: none; }
.chip { display: inline-flex; gap: 6px; align-items: center; background: var(--line); color: var(--ink); padding: 5px 12px; border-radius: var(--r); font-size: 12px; font-weight: 500; border: 0; cursor: pointer; }
.chip:hover { background: var(--line-2); }
.count-line { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.pager { display: flex; gap: 4px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pager .btn { min-width: 38px; padding: 8px 10px; border-color: var(--line); color: var(--muted); font-size: 12px; }
.pager .btn:hover { color: var(--black); border-color: var(--line-2); }
.pager .on { background: var(--black); border-color: var(--black); color: #fff; }
.empty { padding: 48px 24px; text-align: center; }
.filters-toggle { display: none; }

/* ---------- товар ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 30px; padding-bottom: 20px; }
.gallery { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: start; }
.gallery.single { grid-template-columns: 1fr; }
.gallery-thumbs { display: grid; gap: 8px; }
.gallery-thumbs button { width: 70px; height: 70px; padding: 0; border: 1px solid var(--line); background: #fff; cursor: pointer; overflow: hidden; }
.gallery-thumbs button.on { border-color: var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main { aspect-ratio: 1; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; }
.gallery-main svg { width: 34%; height: 34%; stroke: #CFCFCF; stroke-width: 1.2; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.pbox { border: 1px solid var(--line); padding: 18px 20px; margin-bottom: 12px; background: #fff; }
.pbox-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 12px; color: var(--ink-2); }
.badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 3px; background: var(--ok); color: #fff; }
.badge.low { background: #E09A1A; }
.badge.none { background: var(--muted); }
.p-price { font-size: 24px; font-weight: 600; margin: 12px 0 18px; color: var(--black); }
.p-price s { font-size: 15px; font-weight: 400; color: var(--muted); margin-right: 10px; }
.p-price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.buy-row { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; }
.buy-row .btn { height: 48px; }
.qty { display: flex; border: 1px solid var(--line-2); background: #fff; height: 48px; }
.qty button { width: 34px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.qty input { width: 44px; border: 0; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.dl-rows { display: grid; gap: 10px; font-size: 13px; }
.dl-rows > div { display: flex; justify-content: space-between; gap: 16px; }
.dl-rows small { display: block; color: var(--muted); font-size: 11.5px; }
.dl-rows span:last-child { white-space: nowrap; text-align: right; }
.pay-marks { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-marks span { border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.idtable { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 14px 0 0; font-size: 13px; }
.idtable dt { color: var(--muted); }
.idtable dd { margin: 0; }
.facet.pbox-acc { margin-bottom: 12px; }
.specs { width: 100%; border-collapse: collapse; font-size: 13px; }
.specs th, .specs td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 45%; font-weight: 400; color: var(--muted-2); padding-right: 12px; }
.compat { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.compat a { display: block; border: 1px solid var(--line); padding: 8px 10px; text-decoration: none; font-size: 13px; font-weight: 500; }
.compat a:hover { border-color: var(--accent); color: var(--accent); }
.p-desc { margin-top: 26px; font-size: 13.5px; }
.p-desc h2 { font-size: 16px; }
.h1-code { font-family: var(--mono); font-weight: 500; font-size: .6em; color: var(--muted); white-space: nowrap; }

/* ---------- кошик (бокова панель) ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 51; transform: translateX(100%);
  transition: transform .25s ease; display: flex; flex-direction: column; }
body.drawer-open .drawer-bg { opacity: 1; pointer-events: auto; }
body.drawer-open .drawer { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 18px; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px; display: grid; gap: 12px; }
.ci { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci-name { font-weight: 500; line-height: 1.35; text-decoration: none; }
.ci-name:hover { color: var(--accent); }
.ci-ctl { display: flex; gap: 12px; align-items: center; }
.ci .qty { height: 34px; }
.ci .qty button { width: 28px; }
.ci .qty input { width: 38px; }
.x { background: none; border: 0; cursor: pointer; padding: 6px; color: var(--muted); }
.x:hover { color: var(--alert); }
.sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.sum b { font-size: 20px; font-weight: 600; }

/* ---------- оформлення, замовлення, кабінет ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; padding-bottom: 50px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); padding: 22px; margin-bottom: 18px; }
.panel h2 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.panel h2 i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.choice { display: grid; gap: 8px; margin-bottom: 14px; }
.choice label { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line-2); padding: 12px 14px; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--accent); background: #FFF6F3; }
.choice input { margin-top: 4px; accent-color: var(--accent); }
.choice small { display: block; color: var(--muted); }
.ac { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--line-2); z-index: 10; max-height: 260px; overflow: auto; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.ac-list button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; cursor: pointer; }
.ac-list button:hover, .ac-list button.on { background: var(--bg-soft); }
.summary { position: sticky; top: 100px; }
.summary .ci { font-size: 13px; }
.status { display: inline-block; padding: 3px 10px; border-radius: 3px; font-size: 12px; font-weight: 600; background: var(--line); }
.st-new { background: #FFE9E2; color: var(--accent-dk); } .st-confirmed { background: #E2ECF7; } .st-paid { background: #DDF2E5; }
.st-shipped { background: #DCEDF2; } .st-completed { background: var(--ok); color: #fff; } .st-cancelled { background: #F5DEDA; color: var(--alert); }
.narrow { max-width: 780px; margin: 0 auto; padding: 28px 15px 56px; }
.narrow h2 { margin-top: 1.4em; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: 20px; }
.tabs button { background: none; border: 0; padding: 10px 16px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); }
.tabs button.on { border-color: var(--accent); color: var(--black); }
table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
table.list th, table.list td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.list th { font-weight: 600; color: var(--muted-2); font-size: 12px; }
table.list td.num, table.list th.num { text-align: right; white-space: nowrap; }

.machines { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding-bottom: 40px; }
.machines h2 { font-size: 17px; }
.machines h2 a { text-decoration: none; }
.machines h2 a:hover { color: var(--accent); }
.machines ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; }
.machines li a { text-decoration: none; font-weight: 500; }
.machines li a:hover { color: var(--accent); }
.lead { color: var(--muted-2); margin: -6px 0 22px; }

/* ---------- підвал ---------- */
footer { background: #fff; border-top: 1px solid var(--line); margin-top: 40px; font-size: 13px; color: var(--muted-2); }
footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; padding-top: 40px; padding-bottom: 30px; }
footer a { color: var(--muted-2); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer .f-name { color: var(--ink); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 14px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer address { font-style: normal; display: grid; gap: 6px; }
footer .f-phone { color: var(--black); font-size: 18px; font-weight: 600; }
footer .f-about { margin: 14px 0 0; max-width: 34ch; }
footer .bottom { border-top: 1px solid var(--line); }
footer .bottom .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
footer .logo-text { font-size: 20px; border-width: 2px; }
footer .logo img { height: 36px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--black); color: #fff; padding: 12px 20px;
  border-radius: var(--r); z-index: 60; opacity: 0; transition: .2s; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- мобільна нижня панель ---------- */
.mbar { display: none; }


/* телефон у шапці з другим номером, як на umanagro */
.hphone-box { position: relative; }
.hphone { display: inline-flex; align-items: center; gap: 6px; }
.hphone-drop { position: absolute; right: 0; top: 100%; padding: 12px 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.12);
  display: none; flex-direction: column; gap: 6px; white-space: nowrap; z-index: 40; font-size: 13px; color: var(--muted-2); }
.hphone-drop a { color: var(--black); font-size: 18px; font-weight: 600; text-decoration: none; }
.hphone-drop a:hover { color: var(--accent); }
.hphone-box:hover .hphone-drop, .hphone-box:focus-within .hphone-drop { display: flex; }
.top .hours { color: var(--muted); }
@media (max-width: 1100px) { .hphone-box { display: none; } }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .hphone { display: none; }
  .grid.g5 { --cols: 4; }
  .perks { grid-template-columns: repeat(3, 1fr); }
  .perks div:nth-child(3) { border-right: 0; }
  .perks div:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .filters { position: fixed; overflow: auto; inset: 0 auto 0 0; width: min(320px, 88%); max-height: none; z-index: 52; background: #fff; padding: 16px; transform: translateX(-100%); transition: transform .25s; }
  body.filters-open .filters { transform: none; }
  body.filters-open .drawer-bg { opacity: 1; pointer-events: auto; }
  .filters-toggle { display: inline-flex; }
  .grid { --cols: 3; }
  .grid.g5 { --cols: 3; }
  .product, .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .finder { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  body { padding-bottom: 58px; }
  .top { display: none; }
  header.main .wrap { flex-wrap: wrap; gap: 10px 14px; padding-top: 12px; padding-bottom: 12px; }
  .logo-text { font-size: 20px; border-width: 2px; }
  .logo img { height: 36px; }
  .hcat { display: none; }
  .hsearch { order: 3; flex-basis: 100%; }
  .hsearch .input, .hsearch > button { height: 44px; }
  .hmenu { display: none; }
  .hicons { display: none; }
  .sorts { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .filters-toggle { align-self: flex-start; }
  .grid, .grid.g5 { --cols: 2; }
  .card-name { font-size: 13px; }
  .machine { grid-template-columns: 1fr 1fr; }
  .machine .btn { grid-column: 1 / -1; }
  .finder { padding: 18px 16px; }
  .perks { grid-template-columns: 1fr 1fr; }
  .perks div { border-right: 1px solid var(--line) !important; border-top: 1px solid var(--line); }
  .perks div:nth-child(2n) { border-right: 0 !important; }
  .perks div:nth-child(-n+2) { border-top: 0; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-auto-flow: column; justify-content: start; order: 2; }
  .buy-row { grid-template-columns: auto 1fr; }
  .buy-row .btn-dark { grid-column: 1 / -1; }
  .grid2 { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr; gap: 22px; }
  .mbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: 58px; background: #fff;
    border-top: 1px solid var(--line-2); z-index: 45; }
  .mbar a, .mbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; font-weight: 500;
    text-decoration: none; color: var(--ink); background: none; border: 0; cursor: pointer; position: relative; }
  .mbar svg { width: 22px; height: 22px; }
  .mbar .cart-count { top: 6px; right: calc(50% - 20px); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- адаптив, 16.11.2026 ---------- */
/* телефон у шапці, коли блок з двома номерами схований (планшет, телефон) */
.hcall { display: none; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.hcall svg { color: var(--accent); flex: none; }
.hcall:hover { color: var(--accent); }
@media (max-width: 1100px) {
  .hcall { display: inline-flex; }
  .top .hours { display: none; }
  .top a { white-space: nowrap; }
}
@media (max-width: 767px) { .hcall { margin-left: auto; font-size: 15px; } }
/* головний банер без тексту поверх: на телефоні вищий і зсунутий праворуч, щоб напис на зображенні читався */
@media (max-width: 640px) {
  .hero-banner:not(.has-text) img { aspect-ratio: auto; width: 100%; height: 190px; object-fit: cover; object-position: right center; }
}
@media (min-width: 768px) and (max-width: 900px) { .hcall span { display: none; } }

/* Карта в «Контактах» */
.map-box { position: relative; margin-top: 18px; aspect-ratio: 16 / 9; min-height: 280px; max-height: 420px; background: var(--line); border: 1px solid var(--line-2); }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 10px; }
@media (max-width: 640px) { .map-box { aspect-ratio: 4 / 3; } }

/* Сторінка «Контакти» */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0 4px; }
.contact-card { border: 1px solid var(--line-2); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.contact-card p { margin: 0; }
.contact-card .cc-t { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #777; margin-bottom: 4px; }
.contact-card .cc-big { font-size: 18px; font-weight: 600; color: inherit; text-decoration: none; }
.contact-card .cc-big:hover { color: var(--accent, #FE4922); }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
