/* Двоярусна шапка, бокова колонка каталогу, сітка карток. Нейтральні сталеві тони, один приглушений акцент. */
:root {
  --bg: #f3f4f3;
  --surface: #ffffff;
  --soft: #e8ebeb;
  --ink: #1f2427;
  --muted: #646d72;
  --line: #d9dddf;
  --accent: #2f5468;
  --accent-ink: #ffffff;
  --accent-soft: #e2eaee;
  --ok: #3f6e4f;
  --warn: #8a5a1c;
  --shadow: 0 8px 28px rgba(20, 30, 36, .12);
  --photo-bg: #ffffff;
  --f-body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 6px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15191b; --surface: #1d2225; --soft: #252b2f; --ink: #e5e8e9; --muted: #9aa3a8; --line: #30383c;
    --accent: #8db3c7; --accent-ink: #0f171b; --accent-soft: #23323a; --ok: #8cc29e; --warn: #e0b278;
    --shadow: 0 8px 28px rgba(0, 0, 0, .45); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15191b; --surface: #1d2225; --soft: #252b2f; --ink: #e5e8e9; --muted: #9aa3a8; --line: #30383c;
  --accent: #8db3c7; --accent-ink: #0f171b; --accent-soft: #23323a; --ok: #8cc29e; --warn: #e0b278;
  --shadow: 0 8px 28px rgba(0, 0, 0, .45); color-scheme: dark;
}

* { box-sizing: border-box }
[hidden] { display: none !important }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; font: 15px/1.55 var(--f-body); background: var(--bg); color: var(--ink) }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface) }
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 }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; font-weight: 600 }
h1 { font-size: clamp(24px, 3.4vw, 32px) }
h2 { font-size: clamp(20px, 2.6vw, 24px) }
h3 { font-size: 16px }
p { margin: 0 }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r) }
.muted { color: var(--muted) }
.mono { font-family: var(--f-mono); font-size: .9em; letter-spacing: -.01em }
.ic { flex: none }
.stack { display: grid; gap: 12px }
.section { padding-block: 36px }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap }
.section-head a { color: var(--muted); text-decoration: none; font-size: 14px }
.section-head a:hover { color: var(--accent) }
.band { background: var(--surface); border-block: 1px solid var(--line) }

/* ---------- кнопки, поля ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); padding: 10px 18px; border-radius: var(--r); text-decoration: none; cursor: pointer; font-weight: 500; white-space: nowrap }
.btn:hover { filter: brightness(1.08) }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line) }
.btn.ghost:hover { border-color: var(--ink) }
.btn.small { padding: 6px 12px; font-size: 14px }
.btn.block { width: 100% }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid transparent; background: none; border-radius: var(--r); cursor: pointer; color: var(--muted); position: relative; text-decoration: none }
.icon-btn:hover { color: var(--ink); background: var(--soft) }
.icon-btn.on { color: var(--accent) }
.icon-btn.on svg { fill: currentColor; fill-opacity: .18 }
.badge-count { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; line-height: 17px; text-align: center; font-weight: 600 }
.badge-count:empty, .badge-count[data-n="0"] { display: none }
label.field { display: grid; gap: 5px; font-size: 13px; color: var(--muted) }
input, select, textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface) }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent) }
textarea { resize: vertical }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr }
.form-grid .full { grid-column: 1 / -1 }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr } }
.choice { display: flex; gap: 8px; flex-wrap: wrap }
.choice label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--r); padding: 9px 12px; cursor: pointer; font-size: 14px; color: var(--ink); background: var(--surface) }
.choice input { width: auto; margin: 0; accent-color: var(--accent) }
.choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft) }
.note { background: var(--soft); border-radius: var(--r); padding: 10px 12px; font-size: 13px; color: var(--muted) }
.done { display: grid; gap: 10px; justify-items: start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r) }

/* ---------- шапка ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line) }
.hdr-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 64px }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none }
.logo-mark { width: 34px; height: 34px; border-radius: 7px; background: var(--ink); color: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: -.02em }
.logo-text { display: grid; line-height: 1.1 }
.logo-text b { font-size: 17px; font-weight: 700; letter-spacing: -.01em }
.logo-text span { font-size: 12px; color: var(--muted) }
.search { display: flex; max-width: 620px; width: 100%; justify-self: center }
.search input { border-radius: var(--r) 0 0 var(--r); background: var(--soft); border-color: var(--soft) }
.search input:focus { background: var(--surface) }
.search button { border-radius: 0 var(--r) var(--r) 0; padding-inline: 16px }
.hdr-icons { display: flex; gap: 4px; align-items: center }
.hdr-cart { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px }
.hdr-nav { border-top: 1px solid var(--line) }
.hdr-nav .wrap { display: flex; align-items: center; gap: 4px; min-height: 46px }
.cat-toggle { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--surface); border: 0; border-radius: var(--r); padding: 8px 14px; cursor: pointer; font-weight: 500; margin-right: 12px }
.nav-links { display: flex; gap: 2px; flex-wrap: wrap; align-items: center }
.nav-links > a, .nav-drop > button { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: var(--r); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 14.5px }
.nav-links > a:hover, .nav-drop > button:hover, .nav-links > a.active { color: var(--ink); background: var(--soft) }
.nav-drop { position: relative }
.nav-drop .ic { transform: rotate(90deg); width: 14px; height: 14px }
.nav-drop-menu { position: absolute; top: calc(100% + 4px); left: 0; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; display: grid; z-index: 25 }
.nav-drop-menu a { padding: 8px 10px; border-radius: 4px; text-decoration: none; font-size: 14px }
.nav-drop-menu a:hover { background: var(--soft) }
.hdr-phone { margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap }
.burger { display: none }

/* мега-меню каталогу */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow) }
.mega .wrap { display: grid; grid-template-columns: 320px 1fr; min-height: 380px; padding-block: 8px }
.mega-cats { border-right: 1px solid var(--line); padding-right: 8px; display: grid; align-content: start }
.mega-cats a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--r); text-decoration: none; font-size: 14.5px }
.mega-cats a .ic:last-child { margin-left: auto; color: var(--muted); width: 16px; height: 16px }
.mega-cats a.on, .mega-cats a:hover { background: var(--soft) }
.mega-subs { padding: 14px 24px; display: grid; align-content: start; gap: 14px }
.mega-subs h3 a { text-decoration: none }
.mega-subs ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px }
.mega-subs li { break-inside: avoid; padding-block: 5px }
.mega-subs li a { text-decoration: none; color: var(--muted) }
.mega-subs li a:hover { color: var(--accent) }

/* мобільне меню */
.drawer { position: fixed; inset: 0; z-index: 40; background: rgba(10, 14, 16, .45) }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(360px, 88vw); background: var(--surface); overflow-y: auto; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: grid; align-content: start; gap: 4px }
.drawer-panel .drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px }
.drawer-panel h4 { margin: 14px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted) }
.drawer-panel a { display: flex; align-items: center; gap: 12px; padding: 9px 4px; text-decoration: none; border-bottom: 1px solid var(--line) }

@media (max-width: 900px) {
  .hdr-top { grid-template-columns: auto 1fr auto; gap: 10px; padding-block: 8px }
  .hdr-top .search { grid-column: 1 / -1; grid-row: 2; max-width: none }
  .hdr-nav { display: none }
  .burger { display: inline-flex }
  .hdr-icons .hide-sm { display: none }
  .logo-text span { display: none }
}

/* ---------- хлібні крихти, розмітка каталогу ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); padding-block: 14px 6px }
.crumbs a { color: var(--muted) }
.crumbs a:hover { color: var(--accent) }
.crumbs span.sep { opacity: .5 }
.page-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px }
.page-title .muted { font-size: 14px }
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 40px }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr) } }
.side { display: grid; gap: 18px; position: sticky; top: calc(130px + env(safe-area-inset-top, 0px)) }
@media (max-width: 900px) { .side { position: static } }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px }
.side-box h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 4px; font-weight: 600 }
.side-cats a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; text-decoration: none; font-size: 14px }
.side-cats a:hover { background: var(--soft) }
.side-cats a.on { background: var(--accent-soft); color: var(--accent); font-weight: 500 }
.side-cats .sub { padding-left: 42px; font-size: 13.5px; color: var(--muted) }
.filters { padding: 8px 10px 12px; display: grid; gap: 14px }
.filters .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer }
.check input { width: auto; margin: 0; accent-color: var(--accent) }
.check .muted { margin-left: auto; font-size: 12px }
.filters-toggle { display: none }
@media (max-width: 900px) {
  .filters-toggle { display: inline-flex }
  .side .side-box.cat-box { display: none }
  .side .filter-box:not(.open) .filters { display: none }
}

.subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 22px }
.subcat { display: grid; justify-items: center; gap: 8px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 10px 12px; text-decoration: none; font-size: 13.5px; line-height: 1.3 }
.subcat:hover { border-color: var(--accent) }
.subcat .ic { color: var(--accent) }
.subcat .muted { font-size: 12px }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-block: 1px solid var(--line); margin-bottom: 18px; font-size: 14px }
.toolbar select { width: auto; padding: 6px 8px }
.toolbar .grow { flex: 1 }
.view-btns { display: flex; gap: 2px }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 10px; background: var(--accent-soft); color: var(--accent); border-radius: 20px; font-size: 13px; border: 0; cursor: pointer }
.chip .ic { width: 14px; height: 14px }

/* ---------- картка товару в списку ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; min-width: 0 }
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)) }
.card .thumb { position: relative; aspect-ratio: 1 / 1; max-width: 100%; border-radius: 4px; background: var(--soft); display: grid; place-items: center; color: var(--muted); overflow: hidden; margin-bottom: 10px; text-decoration: none }
.card .thumb:has(img) { background: var(--photo-bg) }
.card .thumb img { width: 100%; height: 100%; object-fit: contain }
.card .thumb .ic { width: 56px; height: 56px; opacity: .55 }
.tags { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap }
.tag { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; padding: 3px 7px; border-radius: 3px; background: var(--surface); color: var(--ink); border: 1px solid var(--line) }
.tag.new { background: var(--ok); color: var(--surface); border-color: var(--ok) }
.tag.used { background: var(--soft); color: var(--muted) }
.card .sku { font-size: 12px; color: var(--muted) }
.card .name { font-size: 14px; line-height: 1.35; text-decoration: none; margin-block: 4px 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.35em * 3) }
.card .name:hover { color: var(--accent) }
.card .bottom { margin-top: auto; display: flex; align-items: center; gap: 6px }
.card .price { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; margin-right: auto }
.card .price.ask { font-size: 14px; font-weight: 600; color: var(--muted) }
.card .stock { font-size: 12px; margin-bottom: 8px }
.stock.in { color: var(--ok) }
.stock.out { color: var(--warn) }
.card-actions { position: absolute; top: 18px; right: 18px; display: grid; gap: 4px }
.card-actions .icon-btn { background: var(--surface); width: 32px; height: 32px; border-color: var(--line) }
.cart-btn { width: 40px; height: 40px; padding: 0 }

/* вигляд списком */
.grid.list { grid-template-columns: minmax(0, 1fr) }
.grid.list .card { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center }
.grid.list .card .thumb { margin: 0 }
.grid.list .card .name { min-height: 0; margin-bottom: 4px }
.grid.list .card .bottom { margin: 0; flex-direction: column; align-items: flex-end; gap: 8px }
.grid.list .card .price { margin: 0 }
.grid.list .card-actions { position: static; display: flex }
@media (max-width: 600px) { .grid.list .card { grid-template-columns: 80px minmax(0, 1fr) } .grid.list .card .bottom { grid-column: 2; align-items: flex-start; flex-direction: row } }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap }
.pager button { min-width: 38px; height: 38px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); cursor: pointer }
.pager button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent) }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); display: grid; gap: 14px; justify-items: center }

/* ---------- каруселі ---------- */
.rail { position: relative }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin }
.rail-track > * { scroll-snap-align: start }
.rail-nav { display: flex; gap: 6px }
.rail-nav button { width: 34px; height: 34px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--muted) }
.rail-nav button:hover { color: var(--ink); border-color: var(--ink) }

/* ---------- головна ---------- */
.hero { padding-block: 20px 8px }
.slider { position: relative; border-radius: 10px; overflow: hidden; background: var(--ink); color: var(--surface) }
.slide { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: clamp(24px, 5vw, 56px); min-height: 300px }
.slide[hidden] { display: none !important }
.slide .eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; margin-bottom: 12px }
.slide h2 { font-size: clamp(26px, 4vw, 42px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; color: var(--surface) }
.slide p { opacity: .8; max-width: 46ch; margin-bottom: 22px }
.slide .btn { background: var(--surface); color: var(--ink); border-color: var(--surface) }
.slide-art { justify-self: center; display: grid; place-items: center; width: min(260px, 100%); aspect-ratio: 1 / 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--surface) 25%, transparent); color: color-mix(in srgb, var(--surface) 70%, transparent) }
.slide-art .ic { width: 45%; height: 45% }
.dots { position: absolute; bottom: 16px; left: clamp(24px, 5vw, 56px); display: flex; gap: 8px }
.dots button { width: 28px; height: 4px; border: 0; border-radius: 2px; background: color-mix(in srgb, var(--surface) 35%, transparent); cursor: pointer; padding: 0 }
.dots button.on { background: var(--surface) }
@media (max-width: 700px) { .slide { grid-template-columns: 1fr; padding-bottom: 48px } .slide-art { display: none } }

.cat-tiles { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)) }
@media (max-width: 900px) { .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
.cat-tile { display: flex; align-items: center; gap: 14px; padding: 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font-size: 14.5px; line-height: 1.3 }
.cat-tile:hover { border-color: var(--accent) }
.cat-tile .ic { color: var(--accent); width: 30px; height: 30px }
.cat-tile span { min-width: 0; overflow-wrap: anywhere }
@media (max-width: 520px) { .cat-tile { padding: 14px 12px; gap: 10px; font-size: 13.5px } .cat-tile .ic { width: 24px; height: 24px } }

.who { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)) }
@media (max-width: 900px) { .who { grid-template-columns: 1fr } }
.who a { display: grid; gap: 10px; align-content: start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none }
.who a:hover { border-color: var(--accent) }
.who .quote { font-size: 17px; font-weight: 600; line-height: 1.35 }
.who .more { color: var(--accent); font-size: 14px; display: inline-flex; align-items: center; gap: 4px }

.perks { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)) }
@media (max-width: 900px) { .perks { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
.perk { display: flex; gap: 12px; align-items: flex-start; font-size: 14px }
.perk .ic { color: var(--accent); width: 26px; height: 26px }
.perk b { display: block; margin-bottom: 2px }

.b2b { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 28px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--line) }
.b2b h2 { margin-bottom: 6px }
@media (max-width: 700px) { .b2b { grid-template-columns: 1fr } }

/* ---------- сторінка товару ---------- */
.p-head { display: grid; gap: 8px; margin-bottom: 12px }
.p-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; position: sticky; top: calc(111px + env(safe-area-inset-top, 0px)); background: var(--bg); z-index: 5 }
.p-tabs a { padding: 10px 12px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-size: 14px }
.p-tabs a:hover { color: var(--ink) }
.p-tabs a.on { color: var(--ink); border-color: var(--accent) }
@media (max-width: 900px) { .p-tabs { top: calc(108px + env(safe-area-inset-top, 0px)) } }
.p-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start }
@media (max-width: 860px) { .p-main { grid-template-columns: minmax(0, 1fr) } }
.gallery { display: grid; gap: 10px }
.gallery .main { aspect-ratio: 4 / 3; max-width: 100%; background: var(--photo-bg); border: 1px solid var(--line); border-radius: var(--r); display: grid; place-items: center; overflow: hidden; color: var(--muted) }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in }
.gallery .main .ic { width: 30%; height: 30%; opacity: .5 }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap }
.thumbs button { width: 72px; height: 72px; padding: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface); cursor: pointer }
.thumbs button.on { border-color: var(--accent); outline: 1px solid var(--accent) }
.thumbs img { width: 100%; height: 100%; object-fit: contain; background: var(--photo-bg) }
.buy { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 16px }
.buy-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted) }
.buy-price { font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em }
.buy-price.ask { font-size: 22px }
.tiers { width: 100%; border-collapse: collapse; font-size: 14px }
.tiers td { padding: 7px 0; border-bottom: 1px dashed var(--line) }
.tiers td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600 }
.tiers tr.on td { color: var(--accent) }
.qty-row { display: flex; gap: 10px; flex-wrap: wrap }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface) }
.qty button { width: 38px; border: 0; background: var(--soft); cursor: pointer; font-size: 18px }
.qty input { width: 56px; border: 0; border-radius: 0; text-align: center; padding: 9px 4px }
.qty-row .btn { flex: 1 }
.buy-meta { display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px }
.buy-meta div { display: flex; gap: 10px; align-items: center }
.buy-meta .ic { width: 18px; height: 18px; color: var(--accent) }
.p-block { padding-top: 36px; scroll-margin-top: 170px }
.p-block > h2 { margin-bottom: 16px }
.spec-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start }
@media (max-width: 860px) { .spec-wrap { grid-template-columns: minmax(0, 1fr) } }
.specs { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 14px }
.specs th, .specs td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top }
.specs th { font-weight: 400; color: var(--muted); width: 45% }
.specs tr:nth-child(even) { background: color-mix(in srgb, var(--soft) 55%, transparent) }
.docs { display: grid; gap: 8px }
.doc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: 14px }
.doc .ic { color: var(--accent) }
.prose { max-width: 70ch; display: grid; gap: 12px }
.report { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--r); font-size: 14px; color: var(--muted) }
.reviews { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 28px; align-items: start }
@media (max-width: 860px) { .reviews { grid-template-columns: minmax(0, 1fr) } }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 6px; font-size: 14px }
.review-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap }
.stars { display: inline-flex; gap: 1px; color: var(--accent) }
.stars .ic { width: 16px; height: 16px }
.stars .ic.f { fill: currentColor }
.star-input { display: flex; gap: 2px }
.star-input button { background: none; border: 0; padding: 2px; cursor: pointer; color: var(--muted) }
.star-input button.on { color: var(--accent) }
.star-input button.on svg { fill: currentColor }
.sib-links { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 14px }
.sib-links a { color: var(--muted) }
.sib-links a:hover { color: var(--accent) }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8, 10, 12, .9); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(16px, env(safe-area-inset-bottom, 0px)) var(--gutter-l) }
.lightbox img { max-height: 90vh; max-width: 100%; object-fit: contain }
.lightbox button { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); background: #fff; color: #111; border: 0; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; display: grid; place-items: center }

/* ---------- кошик, кабінет ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; padding-bottom: 40px }
@media (max-width: 900px) { .two { grid-template-columns: minmax(0, 1fr) } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 14px; min-width: 0 }
.panel h3 { font-size: 17px }
.lines { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r) }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto 38px; gap: 14px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line) }
.line:last-child { border-bottom: 0 }
.line .thumb { width: 72px; height: 72px; border-radius: 4px; background: var(--soft); display: grid; place-items: center; overflow: hidden; color: var(--muted) }
.line .thumb img { width: 100%; height: 100%; object-fit: contain; background: var(--photo-bg) }
.line a { text-decoration: none; font-size: 14px }
.line .sum { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 90px; text-align: right }
.line .tier { font-size: 12px; color: var(--accent) }
@media (max-width: 640px) { .line { grid-template-columns: 56px minmax(0, 1fr) 38px } .line .thumb { width: 56px; height: 56px } .line .qty, .line .sum { grid-column: 2 } .line .sum { text-align: left } .line > button { grid-row: 1; grid-column: 3 } }
.totals { display: grid; gap: 8px; font-size: 14px }
.totals div { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums }
.totals .grand { font-size: 20px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 10px }
.acc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 40px }
@media (max-width: 800px) { .acc { grid-template-columns: minmax(0, 1fr) } }
.acc-nav { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px }
.acc-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 4px; text-decoration: none; font-size: 14px }
.acc-nav a:hover { background: var(--soft) }
.acc-nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 500 }
.order { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 6px; font-size: 14px }
.order-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap }
.status { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent) }
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r) }
.cmp { border-collapse: collapse; font-size: 14px; min-width: 100% }
.cmp th, .cmp td { padding: 10px 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 190px }
.cmp th { color: var(--muted); font-weight: 400; min-width: 150px; position: sticky; left: 0; background: var(--surface) }
.cmp tr.diff td { background: var(--accent-soft) }
.cmp .thumb { width: 120px; height: 120px; border-radius: 4px; background: var(--soft); display: grid; place-items: center; overflow: hidden; color: var(--muted); margin-bottom: 8px }
.cmp .thumb img { width: 100%; height: 100%; object-fit: contain; background: var(--photo-bg) }

/* ---------- текстові сторінки ---------- */
.info { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 40px }
@media (max-width: 800px) { .info { grid-template-columns: minmax(0, 1fr) } }
.info-body { display: grid; gap: 18px; max-width: 760px; min-width: 0 }
.info-body h2 { margin-top: 10px }
.info-body ul { margin: 0; padding-left: 20px; display: grid; gap: 6px }
.cards3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) }
.plain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 8px; align-content: start }
.plain .ic { color: var(--accent) }
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: 14px }
.tbl th, .tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left }
.tbl th { color: var(--muted); font-weight: 500; font-size: 13px }
.tbl td.num { font-variant-numeric: tabular-nums; text-align: right }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap }

/* ---------- підвал ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 24px; font-size: 14px }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; padding-block: 36px }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr } }
.foot-grid h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600 }
.foot-grid a { display: block; text-decoration: none; padding-block: 3px; color: var(--ink) }
.foot-grid a:hover { color: var(--accent) }
.foot-grid p { color: var(--muted); margin-bottom: 4px }
.foot-bottom { border-top: 1px solid var(--line); padding-block: 14px calc(14px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: var(--r); font-size: 14px; z-index: 60; box-shadow: var(--shadow); max-width: calc(100% - 32px) }
.toast a { color: inherit; font-weight: 600 }
@media (prefers-reduced-motion: no-preference) { .rail-track { scroll-behavior: smooth } }

/* ---------- Telegram і форми ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden }
.form-error { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line)); color: var(--ink); border-radius: var(--r); padding: 10px 12px; font-size: 14px; display: grid; gap: 8px }
.err-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap }
.hdr-tg { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--accent); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: var(--r) }
.hdr-tg:hover { background: var(--accent-soft) }
.hdr-tg + .hdr-phone { margin-left: 8px }
.tg-fab { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 35; display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); text-decoration: none; border-radius: 28px; padding: 12px 18px 12px 14px; box-shadow: var(--shadow); font-weight: 500; font-size: 14px }
.tg-fab:hover { filter: brightness(1.08) }
@media (max-width: 600px) { .tg-fab span { display: none } .tg-fab { padding: 14px } }
.in-tg .tg-fab, .in-tg .hdr-tg { display: none }
button:disabled { opacity: .6; cursor: progress }

/* підказки пошуку */
.search { position: relative }
.suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); z-index: 30; max-height: 70vh; overflow-y: auto; padding: 4px }
.suggest a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 4px; text-decoration: none; font-size: 14px }
.suggest a:hover, .suggest a.on { background: var(--soft) }
.sg-img { width: 44px; height: 44px; border-radius: 4px; background: var(--photo-bg); display: grid; place-items: center; overflow: hidden; color: var(--muted) }
.sg-img img { width: 100%; height: 100%; object-fit: contain }
.sg-name { display: grid; line-height: 1.3; overflow: hidden }
.sg-name small { font-size: 11px }
.suggest b { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 14px }
.suggest .sg-all { display: block; text-align: center; color: var(--accent); border-top: 1px solid var(--line); margin-top: 4px; padding: 10px }
.sg-none { padding: 12px; font-size: 14px; color: var(--muted) }
