:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #16202b;
  --ink-2: #4a5664;
  --ink-3: #6f7a87;
  --line: #e2e6ec;
  --brand: #1d3a5f;
  --brand-ink: #ffffff;
  --accent: #e8700c;
  --accent-soft: #fdeedf;
  --ok: #2f7a4c;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(22, 32, 43, .06), 0 4px 16px rgba(22, 32, 43, .06);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.topbar { background: var(--brand); color: var(--brand-ink); font-size: 13px; }
.topbar .wrap { display: flex; gap: 20px; justify-content: space-between; align-items: center; min-height: 34px; flex-wrap: wrap; }
.topbar a { text-decoration: none; opacity: .9; }
.topbar span:empty, .topbar a:empty { display: none; }
header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
header.site .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 8px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; letter-spacing: .5px;
}
.logo-text b { display: block; font-size: 17px; line-height: 1.1; }
.logo-text small { color: var(--ink-3); font-size: 12px; }
nav.main { display: flex; gap: 4px; margin-left: auto; }
nav.main a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; color: var(--ink-2); }
nav.main a:hover, nav.main a.active { background: var(--bg); color: var(--ink); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--accent); color: #fff; font-weight: 700; padding: 9px 14px; border-radius: 8px; white-space: nowrap;
}
.cart-btn .count { background: rgba(255,255,255,.25); border-radius: 20px; padding: 0 8px; font-size: 13px; }

/* Hero */
.hero { background: var(--brand); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; margin: 0 0 16px; letter-spacing: -.5px; }
.hero p { font-size: 17px; opacity: .88; margin: 0 0 24px; max-width: 560px; }
.hero .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 8px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.btn-primary { background: var(--brand); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.hero-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-grid img { border-radius: 8px; background: #fff; aspect-ratio: 420/644; object-fit: cover; }
.hero-grid img:nth-child(2) { transform: translateY(24px); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.stats div { background: var(--surface); padding: 20px 16px; text-align: center; }
.stats b { display: block; font-size: 24px; color: var(--brand); }
.stats span { color: var(--ink-2); font-size: 13px; }

section.block { padding: 48px 0; }
section.block h2 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.3px; }
section.block .lead { color: var(--ink-2); margin: 0 0 24px; }

.cat-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s;
}
.cat-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-tile img { aspect-ratio: 1/1; object-fit: cover; object-position: top; background: #f1f0ec; }
.cat-tile div { padding: 10px 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cat-tile b { font-size: 14px; }
.cat-tile small { color: var(--ink-3); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature .ico { width: 40px; height: 40px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 14px; }

.methods { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }

/* Catalog */
.page-head { padding: 28px 0 8px; }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: -.3px; }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.crumbs a { text-decoration: none; }
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding-bottom: 60px; }
.filters { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; padding-right: 4px; }
.fgroup { border-bottom: 1px solid var(--line); padding: 14px 0; }
.fgroup h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-3); }
.fgroup label { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; font-size: 14px; }
.fgroup label small { margin-left: auto; color: var(--ink-3); }
.fgroup input[type=checkbox] { accent-color: var(--brand); width: 16px; height: 16px; }
.range-row { display: flex; gap: 8px; align-items: center; }
.range-row input { width: 100%; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.search {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
}
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .found { color: var(--ink-2); }
.toolbar select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.filter-toggle { display: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; display: flex; flex-direction: column; transition: box-shadow .15s;
}
.card:hover { box-shadow: var(--shadow); }
.card .pic { aspect-ratio: 420/644; background: #f1f0ec; position: relative; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .tag { position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.92); font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .sku { font-size: 12px; color: var(--ink-3); }
.card h3 { margin: 0; font-size: 16px; }
.card .meta { font-size: 13px; color: var(--ink-2); }
.dots { display: flex; gap: 4px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; align-items: center; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.dots small { color: var(--ink-3); font-size: 12px; margin-left: 2px; }
.empty { padding: 60px 20px; text-align: center; color: var(--ink-2); background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--line); }

/* Product */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 8px 0 40px; }
.gallery .main { background: #f1f0ec; border-radius: var(--radius); overflow: hidden; aspect-ratio: 420/644; max-height: 720px; margin: 0 auto; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #f1f0ec; cursor: pointer; aspect-ratio: 420/644; }
.thumbs button.on { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pinfo h1 { margin: 0; font-size: 32px; letter-spacing: -.4px; }
.pinfo .sku { color: var(--ink-3); margin: 2px 0 14px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.badge { background: var(--accent-soft); color: #8a4a0c; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.badge.blue { background: #e4ecf6; color: var(--brand); }
.spec { display: grid; grid-template-columns: 150px 1fr; border-top: 1px solid var(--line); }
.spec div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec div:nth-child(odd) { color: var(--ink-3); }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.sw {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line);
  cursor: pointer; padding: 0;
}
.sw.on { box-shadow: 0 0 0 2px var(--brand); }
.color-label { font-size: 14px; color: var(--ink-2); min-height: 22px; }
.order-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 20px 0; }
.order-box h3 { margin: 0 0 4px; font-size: 16px; }
.order-box p { margin: 0 0 12px; font-size: 13px; color: var(--ink-3); }
.qty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-bottom: 14px; }
.qty-grid label { font-size: 12px; font-weight: 700; text-align: center; color: var(--ink-2); }
.qty-grid input { width: 100%; padding: 8px 4px; text-align: center; border: 1px solid var(--line); border-radius: 6px; margin-top: 3px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 10px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 700; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--accent); }
.tabpane { padding: 16px 0; }
.tabpane ul { margin: 0; padding-left: 18px; }
.tabpane li { margin: 4px 0; }
.table-scroll { overflow-x: auto; }
table.sizes { border-collapse: collapse; font-size: 14px; min-width: 100%; }
table.sizes th, table.sizes td { border: 1px solid var(--line); padding: 7px 10px; text-align: center; white-space: nowrap; }
table.sizes th { background: var(--bg); }
table.sizes td:first-child { text-align: left; font-weight: 600; background: var(--bg); }
.note { font-size: 13px; color: var(--ink-3); }
.related { padding: 20px 0 60px; }
.related h2 { font-size: 22px; }

/* Request */
.req { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding-bottom: 60px; }
.req-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; margin-bottom: 10px; align-items: start; }
.req-item img { border-radius: 6px; aspect-ratio: 420/644; object-fit: cover; background: #f1f0ec; }
.req-item h3 { margin: 0; font-size: 16px; }
.req-item .lines { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.req-item button { background: none; border: 0; color: var(--ink-3); cursor: pointer; font-size: 13px; text-decoration: underline; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 84px; }
.panel h3 { margin: 0 0 12px; }
.panel label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
.panel input, .panel textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.panel .btn { width: 100%; margin-top: 14px; }
.panel .hint { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px; transition: transform .25s; z-index: 50; max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* Stock & ordering */
:root { --own: #2f7a4c; --own-soft: #e3f1e8; --partner: #b0700f; --partner-soft: #fbf0dc; --warn: #b42318; }
.avail { font-size: 12px; font-weight: 700; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.avail::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.avail.own { color: var(--own); }
.avail.partner { color: var(--partner); }
.avail.none { color: var(--ink-3); }
.t-own { color: var(--own); }
.t-partner { color: var(--partner); }
.warn { color: var(--warn); font-weight: 700; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; border: 1px solid rgba(0,0,0,.1); }
.lg.own { background: var(--own-soft); border-color: var(--own); }
.lg.partner { background: var(--partner-soft); border-color: var(--partner); }
.lg.none { background: #f1f0ec; }
.stock-sum { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0 20px; display: grid; gap: 8px; }
.stock-sum div { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.stock-sum small { color: var(--ink-3); margin-left: auto; }
.stock-sum .btn { margin-top: 6px; }
.stock-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 30px; scroll-margin-top: 84px; }
.stock-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.stock-head h2 { margin: 0 0 2px; font-size: 22px; }
.stock-head .note { margin: 0; }
.only { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.only input { accent-color: var(--brand); width: 16px; height: 16px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin: 14px 0 10px; }
table.stock { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
table.stock th, table.stock td { border-bottom: 1px solid var(--line); padding: 6px 5px; text-align: center; }
table.stock thead th { background: var(--bg); font-size: 12px; position: sticky; top: 0; white-space: nowrap; }
table.stock tbody th { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 170px; }
table.stock tbody tr.cur th { box-shadow: inset 3px 0 0 var(--brand); }
table.stock tbody tr.has th { background: #f4f7fb; }
.row-color { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 2px; cursor: pointer; text-align: left; font-size: 13px; }
.row-color .dot { flex: none; width: 18px; height: 18px; }
table.stock td { min-width: 74px; }
table.stock td.own { background: var(--own-soft); }
table.stock td.partner { background: var(--partner-soft); }
table.stock td.none { background: #f6f5f2; }
table.stock td input { width: 62px; padding: 6px 4px; text-align: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-weight: 700; }
table.stock td input:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
table.stock td input:disabled { background: transparent; border-color: transparent; }
table.stock td small { display: flex; flex-direction: column; font-size: 11px; line-height: 1.25; margin-top: 3px; }
table.stock td small span:first-child { color: var(--own); font-weight: 700; }
table.stock td small span:last-child { color: var(--partner); }
table.stock td.none small { opacity: .5; }
table.stock .row-sum { font-weight: 800; min-width: 54px; }
.stock-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 0 4px; position: sticky; bottom: 0; background: var(--surface); z-index: 3; }
.sel-sum { font-size: 14px; color: var(--ink-2); }
/* Cart */
table.cart-lines { border-collapse: collapse; font-size: 13px; margin-top: 8px; }
table.cart-lines th, table.cart-lines td { padding: 4px 10px 4px 0; text-align: left; white-space: nowrap; }
table.cart-lines th { color: var(--ink-3); font-weight: 600; font-size: 12px; }
table.cart-lines input { width: 64px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; }
.panel select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.cart-total:empty { display: none; }
.cart-total { margin-bottom: 8px; }
.tot { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.done { max-width: 560px; margin: 10px auto 60px; text-align: center; grid-column: 1 / -1; position: static; }
.done .tot { text-align: left; }
.ok-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--own-soft); color: var(--own); display: grid; place-items: center; font-size: 28px; font-weight: 800; margin: 6px auto 10px; }
.done h2 { margin: 0 0 8px; }
.done p { color: var(--ink-2); }
/* Admin */
.demo-note { background: var(--accent-soft); color: #8a4a0c; padding: 8px 12px; border-radius: 8px; display: inline-block; }
.admin-tabs { margin: 8px 0 18px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
button.chip { cursor: pointer; font-weight: 600; }
button.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
button.chip small { opacity: .7; }
table.orders { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
table.orders th, table.orders td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.orders th { background: var(--bg); font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .4px; }
table.orders tr.ord { cursor: pointer; }
table.orders tr.ord:hover, table.orders tr.open { background: #fafaf8; }
table.orders td small { display: block; color: var(--ink-3); font-size: 12px; }
table.orders .link { background: none; border: 0; color: var(--brand); font-weight: 700; cursor: pointer; text-decoration: underline; }
select.st { padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line); font-weight: 700; }
.st-new { background: #e4ecf6; color: var(--brand); }
.st-work { background: var(--partner-soft); color: var(--partner); }
.st-shipped { background: var(--own-soft); color: var(--own); }
.st-cancel { background: #f1f0ec; color: var(--ink-3); }
tr.details > td { background: #fafaf8; }
.od-grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; font-size: 13px; line-height: 1.6; }
.od-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.admin-cards .panel { position: static; display: flex; flex-direction: column; gap: 2px; }
.admin-cards small { color: var(--ink-3); font-size: 12px; }
.admin-cards b { font-size: 20px; }

/* Prices & company account */
.acc-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 700; color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; max-width: 240px; }
.acc-btn .label { overflow: hidden; text-overflow: ellipsis; }
.acc-btn:hover, .acc-btn.active { background: var(--bg); color: var(--ink); }
.acc-btn .tier { background: #e4ecf6; color: var(--brand); border-radius: 20px; padding: 0 8px; font-size: 12px; }
.price { font-size: 14px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.price b { font-size: 16px; }
.price s { color: var(--ink-3); font-size: 13px; }
.price small { color: var(--ink-3); font-size: 12px; }
.price-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0 0; }
.pb-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pb-main b { font-size: 26px; letter-spacing: -.3px; }
.pb-main s { color: var(--ink-3); }
.pb-main small { color: var(--ink-3); font-size: 13px; }
table.tiers { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
table.tiers td { padding: 6px 0; border-top: 1px solid var(--line); }
table.tiers td:last-child { text-align: right; font-weight: 700; }
table.tiers td a { font-weight: 600; color: var(--brand); }
table.tiers tr.on td { color: var(--brand); }
.price-box .note { margin: 8px 0 0; }
.tot.sum b { font-size: 18px; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.acc-grid .panel { position: static; }
.acc-grid .panel .btn-outline { margin-top: 8px; }
.acc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; position: static; margin-bottom: 14px; }
.acc-head h2 { margin: 0; }
.acc-tier { display: flex; align-items: center; gap: 10px; }
.acc-tier .btn { width: auto; margin: 0; }
#acc-root h3 { margin: 22px 0 10px; }
table.cart-lines.wide { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.cart-lines.wide th, table.cart-lines.wide td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
table.cart-lines small { color: var(--ink-3); }
span.st { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.panel label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 13px; margin: 10px 0 0; }
.panel label.check input { width: auto; margin-top: 2px; accent-color: var(--brand); }
.admin-tabs #mlogout { color: var(--ink-3); }
table.orders select[data-tier] { padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line); }

/* Brand logo */
.logo-in { display: flex; align-items: center; gap: 10px; }
.logo-svg { flex: none; display: block; }
.wm { font-size: 19px; font-weight: 800; letter-spacing: -.3px; color: var(--brand); line-height: 1.1; display: block; }
.wm-a { color: var(--accent); }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding-bottom: 40px; }
.logo-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.logo-card.on { box-shadow: 0 0 0 2px var(--brand); }
.logo-demo { padding: 22px 18px; }
.logo-demo.dark { background: var(--ink); }
.logo-demo.dark .wm { color: #fff; }
.logo-demo.dark .logo-text small { color: #c9d1da; }
.logo-demo.dark .logo-svg [fill="#1d3a5f"] { fill: #3d6ea8; }
.logo-cap { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.logo-cap code { font-size: 12px; color: var(--ink-3); }
/* Info pages */
.info { padding-bottom: 50px; }
.info .lead { color: var(--ink-2); font-size: 16px; max-width: 760px; margin: 8px 0 0; }
.info section { padding: 18px 0; }
.info h2 { font-size: 22px; margin: 0 0 12px; }
.info p { max-width: 820px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.info-card { position: static; }
.info-card h3 { margin: 0 0 8px; }
.info-card .spec { grid-template-columns: 130px 1fr; }
.info-list { padding-left: 20px; max-width: 860px; }
.info-list li { margin: 8px 0; }
table.info-table { border-collapse: collapse; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
table.info-table th, table.info-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.info-table th { background: var(--bg); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-3); }
.about-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 4px 0 16px; max-width: 860px; }
.about-facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.about-facts b { display: block; font-size: 28px; color: var(--accent); letter-spacing: -.5px; }
.about-facts span { color: var(--ink-2); font-size: 14px; }
mark.todo { background: #fff3c4; color: #7a5a00; padding: 1px 6px; border-radius: 4px; font-size: .92em; }
footer.site .legal { display: block; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #9aa6b2; }

/* ===== v2: нові блоки ===== */
.demo-strip { background: #fff3c4; color: #6b4e00; text-align: center; font-size: 13px; font-weight: 600; padding: 7px 16px; border-bottom: 1px solid #f0dc8a; }
.hero .eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; opacity: .75; margin: 0 0 10px; }
.stats.trust { grid-template-columns: repeat(5, 1fr); }
.stats.trust b { color: var(--accent); }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.entries-block { padding: 28px 0 8px; }
.entries { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.entry { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.entry:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.entry-ico { font-size: 30px; line-height: 1; }
.entry h3 { margin: 0 0 6px; font-size: 19px; }
.entry p { margin: 0 0 10px; color: var(--ink-2); font-size: 14px; }
.entry b { color: var(--accent); font-size: 14px; }
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ind-tile { position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: #e9edf2; aspect-ratio: 4/3; display: block; }
.ind-tile img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.ind-tile:hover img { transform: scale(1.04); }
.ind-tile div { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(16,24,36,.85)); color: #fff; }
.ind-tile b { display: block; font-size: 16px; }
.ind-tile small { font-size: 12px; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ind-intro { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.ind-intro .lead { margin: 0; max-width: 720px; color: var(--ink-2); }
.methods .chip small { color: var(--ink-3); }
.logos-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.logo-ph { border: 1px dashed var(--line); border-radius: var(--radius); height: 72px; display: grid; place-items: center; background: var(--bg); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.review { margin: 0; background: var(--bg); border-radius: var(--radius); padding: 18px; }
.review p { margin: 0 0 10px; }
.review cite { font-style: normal; font-size: 13px; color: var(--ink-3); }
.quote-wrap { display: grid; grid-template-columns: 1fr 420px; gap: 32px; align-items: start; }
.quote-wrap .panel { position: static; }
.panel label small { font-weight: 400; color: var(--ink-3); }
.panel input[type=file] { padding: 6px; background: var(--bg); }
.done-inline { padding: 18px; background: #e3f1e8; color: var(--own); border-radius: 8px; font-weight: 700; }
/* шапка: ПДВ і порівняння */
.topbar .wrap { gap: 12px; }
.vat-switch { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.vat-switch button { background: rgba(255,255,255,.12); border: 0; color: #fff; padding: 3px 10px; border-radius: 20px; cursor: pointer; font-size: 12px; font-weight: 600; }
.vat-switch button.on { background: var(--accent); }
.cmp-btn .count { background: var(--accent); color: #fff; border-radius: 20px; padding: 0 7px; font-size: 12px; }
/* картка товару в каталозі */
.card { position: relative; }
.card-link { text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.card .pic .alt { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.card:hover .pic .alt { opacity: 1; }
.card .cmp { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.92); border-radius: 20px; padding: 2px 10px 2px 6px; font-size: 12px; font-weight: 600; display: flex; gap: 4px; align-items: center; cursor: pointer; opacity: 0; transition: opacity .15s; }
.card:hover .cmp, .card .cmp:has(input:checked) { opacity: 1; }
.card .cmp input { accent-color: var(--brand); margin: 0; }
.price .vol-hint { color: var(--own); font-weight: 600; }
.fam-row { display: flex; flex-wrap: wrap; gap: 6px; }
.fam { cursor: pointer; }
.fam input { position: absolute; opacity: 0; pointer-events: none; }
.fam span { display: block; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.fam input:checked + span { box-shadow: 0 0 0 2px var(--brand); }
.fam input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* сторінка товару */
.p-actions { display: flex; gap: 16px; align-items: center; margin: -6px 0 12px; font-size: 13px; }
.p-actions .cmp { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.p-actions .link { background: none; border: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font-size: 13px; padding: 0; }
.pb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 12px; }
.pb-cols h4 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-3); }
table.tiers.vol td:nth-child(3) { color: var(--own); font-weight: 700; width: 48px; text-align: right; }
table.tiers.vol tr.on td { color: var(--accent); }
.vol-next { margin-top: 4px; color: var(--own); font-weight: 600; font-size: 13px; }
.m-color { display: none; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.m-color select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); margin-left: 6px; max-width: 70vw; }
.brand-box { margin: 16px 0 0; padding: 14px 16px; border: 1px dashed var(--accent); border-radius: var(--radius); background: var(--accent-soft); }
.brand-box .check { display: flex; gap: 8px; align-items: center; cursor: pointer; flex-wrap: wrap; }
.brand-box .check input { accent-color: var(--accent); width: 18px; height: 18px; }
.b-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.b-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.b-grid select, .b-grid input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; }
.restock { margin-top: 14px; }
.restock summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 14px; }
.restock-form { position: static; display: grid; grid-template-columns: 1fr 1fr 2fr auto; gap: 10px; align-items: end; margin-top: 10px; }
.restock-form label { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.restock-form .btn { width: auto; margin: 0; }
/* кошик: нанесення і список */
.brand-line { color: var(--accent); }
.brand-line .link { background: none; border: 0; color: var(--ink-3); text-decoration: underline; cursor: pointer; font-size: 12px; }
.quick { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.quick summary { cursor: pointer; }
.q-tabs { margin: 12px 0 8px; }
.q-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-bottom: 10px; }
.q-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.q-grid input, .q-grid select, .quick textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; width: 100%; }
.quick textarea { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.quick .btn { margin-top: 10px; }
/* порівняння */
.cmp-table th { width: 140px; }
.cmp-table td { min-width: 200px; }
.cmp-img { width: 140px; border-radius: 8px; background: #eef1f5; }
/* месенджери */
.msg-float { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 40; }
.msg-float .msg { display: block; padding: 10px 14px; border-radius: 24px; color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; box-shadow: var(--shadow); }
.msg.viber { background: #7360f2; } .msg.tg { background: #229ed9; } .msg.tel { background: var(--own); }
/* друк / PDF картки товару */
@media print {
  .topbar, header.site, footer.site, .related, .stock-block, .tabs, .p-actions, .stock-sum .btn, .msg-float, .toast, .thumbs { display: none !important; }
  body { background: #fff; }
  .product { grid-template-columns: 1fr 1.2fr; gap: 24px; }
  .tabpane { display: block !important; }
  .tabpane[hidden] { display: block !important; }
}

footer.site { background: var(--ink); color: #c9d1da; padding: 36px 0; font-size: 14px; }
footer.site .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
footer.site h4 { color: #fff; margin: 0 0 8px; }
footer.site a { text-decoration: none; display: block; padding: 2px 0; }
footer.site p { margin: 0 0 4px; }
footer.site p:empty { display: none; }

@media (max-width: 1000px) {
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-grid { display: none; }
  .product, .req { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) {
  nav.main a { white-space: nowrap; padding: 8px 8px; }
  .logo-text small { display: none; }
  .acc-btn { max-width: 170px; }
  header.site .wrap { gap: 12px; }
  .panel { position: static; }
}
@media (max-width: 1240px) {
  nav.main a { padding: 8px 6px; font-size: 14px; }
  .cart-btn .label { display: none; }
  .acc-btn { max-width: 150px; }
  .logo-text small { display: none; }
}
.burger { display: none; flex: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; padding: 10px 9px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; }
.b-grid[hidden], .q-pane[hidden] { display: none; }
@media (max-width: 1060px) {
  .burger { display: flex; }
  nav.main { display: none; }
  header.site .wrap { justify-content: flex-start; position: relative; }
  header.site .logo { margin-right: auto; }
  header.site.menu-open nav.main { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 14px; margin: 0; }
  header.site.menu-open nav.main a { padding: 12px 8px; font-size: 16px; }
}
@media (max-width: 1000px) {
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .stats.trust { grid-template-columns: repeat(3, 1fr); }
  .quote-wrap, .entries { grid-template-columns: 1fr; }
  .reviews, .logos-row { grid-template-columns: repeat(2, 1fr); }
  .restock-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .m-color { display: block; }
  .stock-block.one table.stock tbody tr:not(.pick) { display: none; }
  .pb-cols, .b-grid, .q-grid, .restock-form { grid-template-columns: 1fr; }
  .stats.trust { grid-template-columns: repeat(2, 1fr); }
  .card .cmp { opacity: 1; }
  .topbar { display: block; }
  .topbar .wrap > span:first-child { display: none; }
  .msg-float { bottom: 76px; }
  header.site .wrap { gap: 8px; }
  .wm { font-size: 17px; }
  .logo-svg { width: 34px; height: 34px; }
  .cart-btn { padding: 9px 12px; }
  nav.main { display: none; }
  header.site .wrap { justify-content: space-between; }
  .cart-btn .label { display: none; }
  .logo-text small { display: none; }
  .topbar { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card .body { padding: 10px; }
  .spec { grid-template-columns: 120px 1fr; }
  footer.site .wrap { grid-template-columns: 1fr; }
  .req-item { grid-template-columns: 56px 1fr; }
  .req-item > button { grid-column: 2; justify-self: start; }
  .stock-block { padding: 14px; margin-left: -8px; margin-right: -8px; }
  table.stock tbody th { min-width: 120px; max-width: 140px; }
  .stock-foot .btn { width: 100%; }
  .admin-cards { grid-template-columns: repeat(2, 1fr); }
  .od-grid { grid-template-columns: 1fr; }
  .acc-grid { grid-template-columns: 1fr; }
  .acc-btn .label { display: none; }
}
