/* undertop.kz — три вида на выбор владельца (29.10): «Свет», «Графит», «Стекло».
   Раскладка общая; темы меняют только переменные: цвета, шрифты, материал панелей. */

/* --- «Свет» (выбран владельцем 29.10: «Свет, нужно как на Mac стеклянные»): светлое матовое стекло
   как в macOS — полупрозрачные панели с размытием на мягком цветном фоне, светлая кромка и блик сверху,
   системный шрифт Apple на Mac (на остальных — Inter), оранжевый акцент. --- */
:root, [data-theme="light"] {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --head-weight: 700;
  --bg: #f3f4f8;
  --surface: rgba(255, 255, 255, .68);
  --surface-2: rgba(255, 255, 255, .66);
  --img-bg: rgba(255, 255, 255, .82);
  --ink: #111318;
  --ink-2: #444a57;
  --muted: #7c8392;
  --line: rgba(255, 255, 255, .7);
  --accent: #ff5f1f;
  --accent-2: #ff9248;
  --accent-ink: #ffffff;
  --accent-soft: rgba(255, 95, 31, .12);
  --ok: #10915a;
  --warn: #b86e00;
  --wa: #25d366;
  --kaspi: #f14635;
  --head-bg: rgba(255, 255, 255, .5);
  --head-line: rgba(255, 255, 255, .75);
  --hero-bg: linear-gradient(140deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .42) 100%);
  --tile-accent-bg: linear-gradient(140deg, rgba(255, 108, 40, .92) 0%, rgba(255, 150, 80, .86) 100%);
  --footer-bg: rgba(22, 24, 30, .78);
  --footer-ink: #c9ced8;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 0 0 .5px rgba(17, 19, 24, .07), 0 10px 34px rgba(40, 46, 70, .10);
  --shadow-hover: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 .5px rgba(17, 19, 24, .09), 0 18px 48px rgba(40, 46, 70, .16);
  /* размытие — только «рамке» (шапка, меню, блоки главной, фильтры, окна), как в macOS:
     на каждой карточке оно тормозит прокрутку */
  --blur: none;
  --radius: 24px;
  --radius-s: 16px;
  /* «Обои» под стеклом: тёплый персик, сирень и голубой — размыто, как фон рабочего стола macOS */
  --body-bg:
    radial-gradient(55% 45% at 8% 6%, rgba(255, 176, 128, .55) 0%, transparent 70%),
    radial-gradient(45% 40% at 92% 4%, rgba(170, 190, 255, .55) 0%, transparent 70%),
    radial-gradient(50% 45% at 85% 70%, rgba(255, 196, 225, .45) 0%, transparent 70%),
    radial-gradient(55% 50% at 12% 88%, rgba(150, 225, 215, .40) 0%, transparent 70%),
    linear-gradient(180deg, #f6f3f1 0%, #eef0f6 100%);
}

/* --- «Графит»: тёмный, жёлтый акцент, крупная типографика --- */
[data-theme="graphite"] {
  --font: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Unbounded", "Manrope", sans-serif;
  --head-weight: 700;
  --bg: #0d0f12;
  --surface: #15181d;
  --surface-2: #1c2027;
  --img-bg: #f1f2f4;
  --ink: #f3f5f8;
  --ink-2: #b7bdc8;
  --muted: #7f8794;
  --line: #262b33;
  --accent: #ffc400;
  --accent-2: #ffdd4d;
  --accent-ink: #111111;
  --accent-soft: rgba(255, 196, 0, .12);
  --ok: #3ddc84;
  --warn: #ffb020;
  --head-bg: rgba(13, 15, 18, .82);
  --head-line: rgba(255, 255, 255, .07);
  --hero-bg: radial-gradient(110% 130% at 100% 0%, rgba(255, 196, 0, .22) 0%, rgba(255, 196, 0, .05) 35%, #15181d 70%);
  --tile-accent-bg: linear-gradient(135deg, #ffc400 0%, #ffdd4d 100%);
  --footer-bg: #090a0c;
  --footer-ink: #9aa1ad;
  --shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 12px 30px rgba(0, 0, 0, .35);
  --shadow-hover: 0 0 0 1px rgba(255, 196, 0, .35), 0 18px 40px rgba(0, 0, 0, .5);
  --body-bg: var(--bg);
}

/* --- «Стекло»: полупрозрачные панели на цветном фоне, бирюзовый акцент (как система) --- */
[data-theme="glass"] {
  --font: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: var(--font);
  --head-weight: 800;
  --bg: #e9f0f5;
  --surface: rgba(255, 255, 255, .58);
  --surface-2: rgba(255, 255, 255, .7);
  --img-bg: rgba(255, 255, 255, .82);
  --ink: #0b1b2b;
  --ink-2: #3c4f63;
  --muted: #6f8195;
  --line: rgba(255, 255, 255, .75);
  --accent: #0aa5a0;
  --accent-2: #3b82f6;
  --accent-ink: #ffffff;
  --accent-soft: rgba(10, 165, 160, .12);
  --ok: #0a8f62;
  --warn: #b26a00;
  --head-bg: rgba(255, 255, 255, .55);
  --head-line: rgba(255, 255, 255, .8);
  --hero-bg: rgba(255, 255, 255, .5);
  --tile-accent-bg: linear-gradient(135deg, #0aa5a0 0%, #3b82f6 100%);
  --footer-bg: rgba(11, 27, 43, .88);
  --footer-ink: #c7d4e2;
  --shadow: 0 8px 32px rgba(31, 61, 92, .10), inset 0 1px 0 rgba(255, 255, 255, .7);
  --shadow-hover: 0 14px 40px rgba(31, 61, 92, .18), inset 0 1px 0 rgba(255, 255, 255, .8);
  --blur: blur(18px) saturate(160%);
  --body-bg:
    radial-gradient(60% 50% at 0% 0%, #b7f0e6 0%, transparent 60%),
    radial-gradient(50% 50% at 100% 10%, #c7d8ff 0%, transparent 60%),
    radial-gradient(60% 60% at 80% 100%, #f6d6ff 0%, transparent 60%),
    radial-gradient(50% 50% at 10% 90%, #ffe7c7 0%, transparent 60%),
    #eef3f8;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--body-bg); background-attachment: fixed;
  font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: 34px; margin: 8px 0 6px; }
h2 { font-size: 24px; margin: 0; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lead { color: var(--ink-2); margin: 0 0 18px; }
.ic { flex: none; }

/* панели: в «Стекле» — с размытием */
.card, .panel, .filters, .pricebox, .desc, .specs-table, .dep, .why > div, .b-tile, .b-main, .empty,
.brand-row a, .service > div, .reqitem, .menu, .suggest, .modal .box, .sections a, .chip-plain {
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--font); white-space: nowrap;
  background: var(--accent); color: var(--accent-ink); transition: transform .15s, filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.ghost { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.wa { background: var(--wa); color: #fff; }
.btn.kaspi { background: var(--kaspi); color: #fff; }
.btn.small { height: 38px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }
.round { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.round.wa { background: var(--wa); color: #fff; }

/* --- шапка: «капсула» --- */
.top { position: sticky; top: 0; z-index: 30; padding: 12px 20px 0; }
.bar-wrap {
  max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  height: 68px; padding: 0 14px 0 18px; border-radius: 999px;
  background: var(--head-bg); box-shadow: 0 0 0 1px var(--head-line), 0 10px 30px rgba(15, 20, 30, .08);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
}
.logo { display: inline-flex; align-items: center; gap: 9px; font: 800 19px/1 var(--font-head); letter-spacing: .02em; }
.logo img { width: 34px; height: auto; }
[data-theme="graphite"] .logo img { filter: invert(1); }
.catbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px;
  border: 0; cursor: pointer; background: var(--accent); color: var(--accent-ink); font: 600 15px var(--font);
}
.search { flex: 1; position: relative; }
.search form { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 999px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.search input { flex: 1; border: 0; background: none; outline: none; font: 15px var(--font); color: var(--ink); min-width: 0; }
.search form:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.suggest { position: absolute; left: 0; right: 0; top: 54px; background: var(--surface); border-radius: var(--radius-s);
  box-shadow: var(--shadow-hover); overflow: hidden; display: none; }
[data-theme="glass"] .suggest, [data-theme="glass"] .menu,
[data-theme="light"] .suggest, [data-theme="light"] .menu { background: rgba(255, 255, 255, .8); }
.suggest.on { display: block; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.suggest a.sel, .suggest a:hover { background: var(--accent-soft); }
.suggest img { width: 42px; height: 42px; object-fit: contain; background: var(--img-bg); border-radius: 10px; }
.suggest .sec { font-weight: 600; }
.suggest .price { margin-left: auto; font-weight: 700; white-space: nowrap; }
.actions { display: flex; align-items: center; gap: 10px; }
.phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding: 0 6px; }
.reqlink { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.reqlink .n { background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: 12px; padding: 1px 7px; }
.reqlink .n:empty { display: none; }
.menu { display: none; max-width: 1320px; margin: 10px auto 0; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-hover); padding: 16px; }
.menu.on { display: block; }
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.menu-grid a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--surface-2); }
.menu-grid a:hover { background: var(--accent-soft); }
.menu-grid span { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }

/* --- общее --- */
main { padding: 20px 0 56px; min-height: 60vh; }
.crumbs { font-size: 13px; color: var(--muted); margin: 4px 0 2px; }
.crumbs a:hover { color: var(--accent); }
.crumbs i { font-style: normal; margin: 0 8px; opacity: .5; }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 44px 0 16px; }
.sec-head a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; }
.sec-head a:hover { color: var(--accent); }

/* --- главная: сетка блоков --- */
.bento { display: grid; grid-template-columns: 2.1fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; margin-top: 4px; }
.b-main { grid-row: span 2; background: var(--hero-bg); border-radius: 28px; box-shadow: var(--shadow); padding: 38px 38px 32px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.b-main h1 { font-size: 44px; margin: 18px 0 14px; }
.b-main h1 em { font-style: normal; color: var(--accent); }
.b-main p { color: var(--ink-2); font-size: 17px; max-width: 560px; margin: 0 0 22px; }
.hero-search { display: flex; align-items: center; gap: 10px; background: var(--surface); padding: 6px 6px 6px 18px;
  border-radius: 999px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); max-width: 600px; color: var(--muted); }
[data-theme="graphite"] .hero-search { background: var(--surface-2); }
.hero-search input { flex: 1; border: 0; outline: none; background: none; font: 16px var(--font); color: var(--ink); min-width: 0; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-tags a { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.hero-tags a:hover { color: var(--accent); }
.b-tile { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); padding: 22px; display: flex; min-height: 190px;
  flex-direction: column; justify-content: flex-end; gap: 4px; position: relative; color: var(--ink); }
.b-tile .ic { color: var(--accent); margin-bottom: auto; }
.b-tile b { font: var(--head-weight) 20px/1.2 var(--font-head); }
.b-tile span { color: var(--muted); font-size: 14px; }
.b-accent { background: var(--tile-accent-bg); color: var(--accent-ink); justify-content: flex-end; overflow: hidden; }
.b-img { position: absolute; right: -14px; top: 18px; width: 62%; height: 62%; object-fit: contain; mix-blend-mode: multiply; }
.b-accent b, .b-accent span { position: relative; }
.b-accent b { font-size: 44px; }
.b-accent span { color: inherit; opacity: .85; }
.b-accent .ic { color: inherit; margin: 0; vertical-align: -3px; }
.deps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.dep { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 12px 16px;
  display: flex; flex-direction: column; gap: 3px; transition: transform .18s, box-shadow .18s; }
.dep:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.dep-img { aspect-ratio: 1; background: var(--img-bg); border-radius: var(--radius-s); display: flex; align-items: center;
  justify-content: center; padding: 14px; margin-bottom: 8px; }
.dep-img img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.dep b { font-size: 14px; line-height: 1.25; }
.dep span { font-size: 12px; color: var(--muted); }
.brand-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.brand-row a { flex: none; background: var(--surface); box-shadow: var(--shadow); border-radius: 999px; padding: 12px 20px;
  font: 800 15px var(--font-head); letter-spacing: .02em; }
.brand-row a span { font: 500 12px var(--font); color: var(--muted); margin-left: 6px; }
.brand-row a:hover { color: var(--accent); }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.why > div { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.why-ic { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.why b { font-size: 16px; display: block; margin-bottom: 4px; }
.why p { margin: 0; color: var(--ink-2); font-size: 14px; }
.seo { margin-top: 44px; color: var(--ink-2); font-size: 14px; max-width: 900px; }
.seo h2 { font-size: 20px; margin-bottom: 10px; color: var(--ink); }

/* --- товары --- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; display: flex;
  flex-direction: column; transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card .pic { position: relative; aspect-ratio: 1; background: var(--img-bg); border-radius: var(--radius-s); display: flex;
  align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
.card .pic img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.card:hover .pic img { transform: scale(1.04); }
.noimg { font: 800 16px var(--font-head); color: #a7adb8; text-align: center; }
.badge { position: absolute; left: 10px; top: 10px; background: #fff3cc; color: #6b4a00; border-radius: 999px; font-size: 11px;
  font-weight: 700; padding: 4px 9px; }
.card-body { padding: 12px 6px 4px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-brand { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); min-height: 16px; }
.card .name { font-size: 14.5px; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.card .name:hover { color: var(--accent); }
.card .specs { list-style: none; padding: 0; margin: 0; font-size: 12.5px; color: var(--ink-2); }
.card .specs li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .specs span { color: var(--muted); }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.price { font: 800 21px/1.1 var(--font-head); letter-spacing: -.01em; }
.stock { font-size: 12px; font-weight: 600; color: var(--ok); }
.stock.few { color: var(--warn); }
.add { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s; }
.add:hover { transform: scale(1.08); }
.add.added { background: var(--ok); color: #fff; }

/* --- список --- */
.listing { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.filters { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 18px 18px;
  position: sticky; top: 96px; max-height: calc(100vh - 110px); overflow: auto; }
.filters h3 { font: 700 14px var(--font); margin: 16px 0 8px; letter-spacing: 0; }
.filters label { display: flex; gap: 10px; align-items: center; font-size: 14px; padding: 4px 0; cursor: pointer; }
.filters input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.filters label span { margin-left: auto; color: var(--muted); font-size: 12px; }
.filters .more { display: none; }
.filters .opened .more { display: flex; }
.filters .toggle { font: 600 13px var(--font); color: var(--accent); cursor: pointer; background: none; border: 0; padding: 4px 0; }
.filters .brandsearch, .price-row input { width: 100%; height: 38px; border: 0; border-radius: 12px; padding: 0 12px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line); font: 14px var(--font); color: var(--ink); outline: none; }
.filters .brandsearch { margin-bottom: 6px; }
.price-row { display: flex; gap: 8px; }
.filters .apply { margin-top: 16px; }
.filters .close-f { display: none; }
.filters-open { display: none; }
.bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.bar select { height: 40px; border: 0; border-radius: 999px; padding: 0 14px; background: var(--surface); box-shadow: var(--shadow);
  margin-left: auto; font: 14px var(--font); color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent); border-radius: 999px;
  padding: 7px 12px; font-size: 13px; font-weight: 600; }
.sections { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.sections a { background: var(--surface); box-shadow: var(--shadow); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 500; }
.sections a span { color: var(--muted); margin-left: 2px; }
.sections a:hover { color: var(--accent); }
.pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 26px 0 0; }
.pages a, .pages span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); padding: 0 12px; font-weight: 600; }
.pages .cur { background: var(--accent); color: var(--accent-ink); }
.empty { background: var(--surface); border-radius: var(--radius); padding: 36px; text-align: center; box-shadow: var(--shadow); }
.empty .btn { margin: 6px 4px 0; }

/* --- карточка товара --- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; margin-top: 8px; }
.gallery .main { background: var(--img-bg); border-radius: 28px; aspect-ratio: 1; display: flex; align-items: center;
  justify-content: center; padding: 28px; box-shadow: var(--shadow); }
.gallery .main img { max-height: 100%; object-fit: contain; cursor: zoom-in; mix-blend-mode: multiply; }
.gallery .main .noimg { font-size: 22px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumbs button { width: 76px; height: 76px; flex: none; border-radius: 16px; border: 2px solid transparent; background: var(--img-bg);
  padding: 6px; cursor: pointer; }
.thumbs button.on { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.buy h1 { font-size: 30px; margin-top: 0; overflow-wrap: anywhere; }
[data-theme="graphite"] .buy h1 { font-size: 24px; line-height: 1.3; }
[data-theme="graphite"] .b-main h1 { font-size: 40px; }
.ids { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); margin: 6px 0 16px; }
.ids b { color: var(--ink-2); }
.ids button { border: 0; background: none; color: var(--accent); cursor: pointer; font: 600 13px var(--font); padding: 0; }
.pricebox { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.pricebox .price { font-size: 38px; }
.pricebox .note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.pricebox .note .stock { font-size: 13px; }
.pricebox .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pricebox .row .btn { flex: 1 1 170px; }
.pricebox .badge { position: static; display: inline-block; margin-bottom: 8px; }
.keyspecs { margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; }
.keyspecs li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.keyspecs li span:first-child { color: var(--muted); }
.keyspecs li span:last-child { font-weight: 600; text-align: right; }
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.service > div { background: var(--surface); border-radius: var(--radius-s); box-shadow: var(--shadow); padding: 14px; font-size: 13px; color: var(--ink-2); }
.service .ic { color: var(--accent); display: block; margin-bottom: 6px; }
.service b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.service a { color: var(--accent); }
.product-sec { margin-top: 40px; }
.product-sec h2 { margin-bottom: 14px; }
.desc { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 26px; color: var(--ink-2); }
.desc h3 { font-size: 18px; color: var(--ink); }
.specs-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); }
.specs-table td { padding: 11px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs-table tr:last-child td { border-bottom: 0; }
.specs-table td:first-child { color: var(--muted); width: 45%; }
.reqform { display: grid; gap: 10px; }
.reqform input, .reqform textarea { width: 100%; border: 0; border-radius: 14px; padding: 13px 14px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line); font: 15px var(--font); color: var(--ink); outline: none; }
.reqform input:focus, .reqform textarea:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.reqform textarea { min-height: 80px; resize: vertical; }
.reqform label { display: flex; align-items: center; gap: 8px; }
.reqform .legal { display: none; gap: 10px; }
.reqform .legal.on { display: grid; }
.reqform .hp { position: absolute; left: -5000px; }
.msg { padding: 12px 14px; border-radius: 14px; font-size: 14px; }
.msg.err { background: #fde8e6; color: #9b2216; }
.msg.ok { background: #e3f6ea; color: #14683a; }
.modal { position: fixed; inset: 0; background: rgba(10, 12, 16, .55); display: none; align-items: center; justify-content: center;
  z-index: 50; padding: 16px; }
.modal.on { display: flex; }
.modal .box { background: var(--surface); border-radius: 26px; width: 100%; max-width: 460px; padding: 26px; position: relative;
  max-height: 92vh; overflow: auto; box-shadow: var(--shadow-hover); }
[data-theme="glass"] .modal .box, [data-theme="light"] .modal .box { background: rgba(255, 255, 255, .86); }
.modal .close { position: absolute; right: 14px; top: 14px; border: 0; background: var(--surface-2); width: 38px; height: 38px;
  border-radius: 50%; cursor: pointer; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }
.zoom { position: fixed; inset: 0; background: rgba(0, 0, 0, .85); display: none; align-items: center; justify-content: center;
  z-index: 60; cursor: zoom-out; }
.zoom.on { display: flex; }
.zoom img { max-width: 94vw; max-height: 94vh; background: #fff; border-radius: 18px; }
.stickybuy { display: none; }
.reqlist { display: grid; gap: 10px; }
.reqitem { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 14px; align-items: center; background: var(--surface);
  border-radius: var(--radius-s); box-shadow: var(--shadow); padding: 10px; }
.reqitem img { width: 72px; height: 72px; object-fit: contain; background: var(--img-bg); border-radius: 12px; }
.reqitem input { width: 66px; height: 40px; border: 0; border-radius: 12px; text-align: center; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.reqitem button { border: 0; background: none; color: var(--muted); font-size: 24px; cursor: pointer; }
.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }

/* --- подвал --- */
footer { background: var(--footer-bg); color: var(--footer-ink); padding: 44px 0 26px; font-size: 14px; margin-top: 30px;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
footer .logo { color: #fff; margin-bottom: 12px; }
footer .logo img { filter: invert(1); }
footer h4 { color: #fff; margin: 0 0 12px; font: 700 15px var(--font); }
footer a { display: block; padding: 4px 0; }
footer a:hover { color: #fff; }
.foot-contacts a { display: inline-flex; align-items: center; gap: 8px; margin-right: 14px; color: #fff; font-weight: 600; }
footer .legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 26px; padding-top: 16px; font-size: 12px; opacity: .7; }

/* --- переключатель вида (предпросмотр) --- */
.theme-switch { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70; display: flex; gap: 4px;
  align-items: center; background: rgba(15, 18, 24, .88); color: #fff; padding: 6px 6px 6px 14px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3); font: 600 13px var(--font); }
.theme-switch a { padding: 8px 14px; border-radius: 999px; color: #cfd5de; }
.theme-switch a.on { background: #fff; color: #111; }

/* --- планшет и телефон --- */
@media (max-width: 1100px) {
  .deps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .phone span { display: none; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .b-main { grid-column: span 2; grid-row: auto; }
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .top { padding: 8px 10px 0; }
  .bar-wrap { flex-wrap: wrap; height: auto; padding: 8px 10px 10px 14px; border-radius: 26px; gap: 8px; }
  .search { order: 3; flex-basis: 100%; }
  .search form { height: 44px; }
  .actions { margin-left: auto; gap: 6px; }
  .phone { display: none; }
  .reqlink { height: 40px; padding: 0 12px; }
  .reqlink .t { display: none; }
  .catbtn { height: 40px; padding: 0 14px; }
  .catbtn span { display: none; }
  .round { width: 40px; height: 40px; }
  .logo { font-size: 17px; }
  .logo img { width: 30px; }
  .menu-grid { grid-template-columns: 1fr 1fr; max-height: 65vh; overflow: auto; }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  .b-main { padding: 26px 22px; border-radius: 24px; }
  .b-main h1 { font-size: 30px; }
  .b-main p { font-size: 15px; }
  .b-accent b { font-size: 32px; }
  .b-tile b { font-size: 17px; }
  .deps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .why { grid-template-columns: 1fr 1fr; }
  .listing { grid-template-columns: minmax(0, 1fr); }
  .filters { display: none; position: fixed; inset: 0; z-index: 40; border-radius: 0; max-height: none; top: 0; padding-bottom: 90px; }
  [data-theme="glass"] .filters, [data-theme="light"] .filters { background: rgba(250, 250, 252, .94); }
  .filters.on { display: block; }
  .filters .apply { position: fixed; left: 16px; right: 16px; bottom: 16px; }
  .filters .close-f { display: inline-flex; }
  .filters-open { display: inline-flex; }
  .bar select { margin-left: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 8px; }
  .card .pic { padding: 10px; }
  .price { font-size: 18px; }
  .add { width: 40px; height: 40px; }
  .product, .two { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .buy h1 { font-size: 23px; }
  .pricebox .price { font-size: 30px; }
  .service { grid-template-columns: 1fr 1fr; }
  .stickybuy { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 35; background: var(--surface);
    padding: 10px 10px 10px 18px; border-radius: 999px; box-shadow: var(--shadow-hover); gap: 8px; align-items: center;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  [data-theme="glass"] .stickybuy, [data-theme="light"] .stickybuy { background: rgba(255, 255, 255, .72); }
  .stickybuy b { font: 800 19px var(--font-head); margin-right: auto; }
  body.has-sticky { padding-bottom: 80px; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  footer .about { grid-column: span 2; }
  .theme-switch { bottom: 84px; }
}
@media (max-width: 480px) {
  .deps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; gap: 10px; }
  .b-tile { padding: 16px; border-radius: 20px; min-height: 120px; }
  .menu-grid { grid-template-columns: 1fr; }
  .reqitem { grid-template-columns: 56px 1fr auto; }
  .reqitem img { width: 56px; height: 56px; }
  .service { grid-template-columns: 1fr; }
}

/* --- «Свет» как стекло macOS: глянцевые кнопки, стеклянные поля и кнопки-«капсулы» --- */
[data-theme="light"] .btn:not(.ghost):not(.wa):not(.kaspi), [data-theme="light"] .catbtn, [data-theme="light"] .add,
[data-theme="light"] .pages .cur {
  background: linear-gradient(180deg, #ff8a4a 0%, #ff5f1f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 18px rgba(255, 95, 31, .30);
}
[data-theme="light"] .btn.wa, [data-theme="light"] .round.wa {
  background: linear-gradient(180deg, #4be07f 0%, #22c35e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 18px rgba(37, 211, 102, .28);
}
[data-theme="light"] .btn.kaspi { background: linear-gradient(180deg, #ff6a5a 0%, #ee3b2b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 6px 18px rgba(241, 70, 53, .26); }
[data-theme="light"] .btn.ghost, [data-theme="light"] .reqlink, [data-theme="light"] .search form,
[data-theme="light"] .hero-search, [data-theme="light"] .hero-tags a, [data-theme="light"] .bar select,
[data-theme="light"] .reqform input, [data-theme="light"] .reqform textarea, [data-theme="light"] .price-row input,
[data-theme="light"] .filters .brandsearch, [data-theme="light"] .thumbs button, [data-theme="light"] .pages a {
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 .5px rgba(17, 19, 24, .1), 0 2px 8px rgba(40, 46, 70, .06);
}
[data-theme="light"] .search form:focus-within, [data-theme="light"] .reqform input:focus,
[data-theme="light"] .reqform textarea:focus { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 2px rgba(255, 95, 31, .55); }
[data-theme="light"] .bar-wrap {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 .5px rgba(17, 19, 24, .08), 0 12px 40px rgba(40, 46, 70, .14);
  -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%);
}
[data-theme="light"] .b-main { box-shadow: var(--shadow); }
[data-theme="light"] .b-accent { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 14px 40px rgba(255, 95, 31, .30); }
[data-theme="light"] .b-accent .b-img { mix-blend-mode: multiply; }
[data-theme="light"] .menu-grid a { background: rgba(255, 255, 255, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 .5px rgba(17, 19, 24, .06); }
[data-theme="light"] .badge { background: rgba(255, 236, 179, .9); }
[data-theme="light"] .chip { background: rgba(255, 95, 31, .12); }
[data-theme="light"] .why-ic { background: rgba(255, 95, 31, .12); }
[data-theme="light"] footer { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
[data-theme="light"] .menu, [data-theme="light"] .suggest, [data-theme="light"] .b-main, [data-theme="light"] .b-tile,
[data-theme="light"] .filters, [data-theme="light"] .pricebox, [data-theme="light"] .modal .box, [data-theme="light"] footer {
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
}
