:root {
  --bg: #07161c;
  --bg-2: #0b1f27;
  --line: #d7e3e8;
  --cyan: #00b4e6;
  --cyan-2: #0097c4;
  --gold: #00b4e6;
  --gold-2: #00b4e6;
  --teal: #007a9e;
  --paper: #f5f8fa;
  --ink: #111111;
  --muted: #5b6b72;
  --card: #ffffff;
  --danger: #8b3a32;
  --radius: 16px;
  --shadow: 0 14px 32px rgba(7, 22, 28, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.theme-lab {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.dim { color: var(--muted); }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  background: #fff;
  color: var(--ink);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 3px solid var(--cyan);
  box-shadow: 0 8px 24px rgba(7, 22, 28, 0.06);
}
.topbar {
  background: var(--bg);
  color: #d5e6ec;
  font-size: 12px;
}
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 16px; }
.topbar a { color: #fff; }
.topbar__hot {
  color: #7fe3f5 !important;
  font-weight: 800;
  letter-spacing: .01em;
  text-shadow: 0 0 12px rgba(0,180,230,.35);
}
.topbar__hot:hover { color: #b7f3ff !important; }
.topbar__right { display: flex; gap: 18px; align-items: center; }

.header__main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 12px 0;
}
.logo { display: flex; align-items: center; }
.logo img {
  display: block;
  height: 68px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
}
.logo--foot {
  display: inline-block;
  max-width: 280px;
}
.logo--foot img {
  height: auto;
  width: 260px;
  max-width: 100%;
  background: transparent;
  padding: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
}

.search { position: relative; display: flex; background: #f3f7f9; border: 1px solid var(--line); border-radius: 999px; }
.search input { flex: 1; border: 0; background: transparent; color: var(--ink); padding: 10px 16px; outline: none; min-width: 0; }
.search button { border: 0; background: var(--cyan); color: #fff; font-weight: 600; padding: 0 16px; cursor: pointer; border-radius: 0 999px 999px 0; }
.search-drop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 2147483000; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(7,22,28,.14); overflow: hidden; max-height: 420px; overflow-y: auto; }
.search-drop[hidden] { display: none; }
.ui-autocomplete, .ac_results, .js-search-suggest, .search-suggestions { display: none !important; }
.search-hit { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; color: var(--ink); text-decoration: none; border-bottom: 1px solid #eef3f5; }
.search-hit:hover { background: #f3f7f9; }
.search-hit img, .search-hit__ph { width: 48px; height: 48px; object-fit: contain; background: #f3f7f9; border-radius: 8px; }
.search-hit__ph { display:grid; place-items:center; font-size:10px; color:#8aa; }
.search-hit strong { display:block; font-size: 14px; line-height: 1.3; }
.search-hit small { color: #5b6b72; }
.search-hit__price { font-weight: 700; white-space: nowrap; }
.search-more { display:block; padding: 12px; text-align:center; font-weight:600; color: var(--cyan-2); }
.search-empty { padding: 14px; color:#5b6b72; }
.nav-toggle { display: none; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; width: 40px; height: 40px; }
.nav {
  background: #fff;
  border-top: 1px solid #eef3f5;
}
.nav__in {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 10px 0 14px;
}
.nav a {
  position: relative;
  color: #2b3a40;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.nav a:hover {
  color: #06313a;
  background: #f3fbfc;
  border-color: #cfeaf1;
  box-shadow: 0 6px 16px rgba(0, 140, 170, .08);
  transform: translateY(-1px);
}
.nav a.is-current {
  color: #04333c;
  background: linear-gradient(180deg, #e7f7fb, #d8f1f7);
  border-color: #9ad7e8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.nav a.is-current:hover { transform: none; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.badge { background: var(--cyan); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  color: #f3f8fa;
  padding: 64px 0 72px;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero__slides {
  position: absolute;
  inset: 0;
}
.hero__slides:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7,22,28,.92) 0%, rgba(7,22,28,.78) 42%, rgba(7,22,28,.28) 100%),
    linear-gradient(180deg, rgba(7,22,28,.2), rgba(7,22,28,.55));
}
.hero__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 78% center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero__photo.is-on { opacity: 1; }
.hero__grid { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--cyan); text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; margin: 0 0 12px; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); margin: 0 0 16px; max-width: 16ch; }
.lead { color: #c5d5db; max-width: 46ch; }
.hero__actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; max-width: 560px; }
.hero-contacts__card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border: 1px solid rgba(0,180,230,.32);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  color: #fff;
  backdrop-filter: blur(8px);
}
.hero-contacts__card:hover { border-color: var(--cyan); background: rgba(0,180,230,.12); }
.hero-contacts__ico {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--cyan);
  background: rgba(0,180,230,.12);
}
.hero-contacts__ico svg { width: 20px; height: 20px; }
.hero-contacts__card small { display: block; color: #9eb0b7; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.hero-contacts__card strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: .01em; color: #7fe3f5; text-shadow: 0 0 16px rgba(0,180,230,.4); }
.hero__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: rgba(255,255,255,.05); border: 1px solid rgba(0,180,230,.28); border-radius: 14px; padding: 16px; }
.stat span { display: block; color: var(--cyan); font-size: 22px; }
.stat small { color: #9eb0b7; }

.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--cyan); color: #fff; border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 600; cursor: pointer; }
.btn--ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.trust { background: var(--bg-2); color: #d5e0e4; }
.trust__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px 0; }
.trust strong { display: block; color: #fff; }
.trust span { color: #8ea0a7; font-size: 13px; }

.section { padding: 56px 0; }
.section--paper { background: #e8eef1; }
.section__head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 24px; }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cats--sub { margin-bottom: 22px; }
.cat {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 168px;
  border: 1px solid rgba(11, 31, 39, .06);
  border-top: 3px solid var(--cyan);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(7,22,28,.12); }
.cat__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cat__mark {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: var(--cyan);
  background: linear-gradient(180deg, #e7f7fb, #f4fbfc);
  border: 1px solid rgba(0,180,230,.18);
}
.cat-ico { width: 30px; height: 30px; display: block; }
.cat span.mono { color: var(--cyan-2); font-size: 13px; }
.cat strong { margin-top: 16px; font-size: 17px; line-height: 1.25; }
.cat em { font-style: normal; color: var(--muted); font-size: 13px; margin-top: 4px; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: linear-gradient(180deg, #f7f8f8 0%, #ffffff 42%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(16, 34, 40, .05);
}
.card__media {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 40%, #eef1f2 0%, #e4e8ea 62%, #dce2e4 100%);
}
.card__media:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(247,248,248,0) 58%, rgba(247,248,248,.55) 86%, #fff 100%),
    radial-gradient(circle at 50% 45%, transparent 52%, rgba(7,22,28,.06) 100%);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  position: relative;
  z-index: 1;
}
.card__ph, .gallery__ph { height: 100%; min-height: 220px; display: grid; place-items: center; color: var(--cyan); letter-spacing: .2em; font-family: "IBM Plex Mono", monospace; }
.chip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  background: #8b2e2e;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(80,16,16,.25);
  max-width: calc(100% - 24px);
  white-space: nowrap;
}
.card.is-out .card__media img { opacity: .78; filter: saturate(.85); }
.card.is-out .card__price strong { color: #66757b; }
.card__body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__sku { font-size: 11px; color: var(--muted); }
.price-kg { font-size: 12px; color: #6a7f86; margin: 0 0 2px; font-weight: 400; }
.price-kg strong { color: #3d8a9a; font-weight: 600; }
.buybox .price-kg { font-size: 14px; margin: 6px 0 10px; color: #4d6066; }
.buybox .price-kg strong { color: var(--ink); }
.price-kg__net { display: block; margin-top: 4px; font-size: 13px; color: #5b6e74; }
.price-kg__net strong { font-weight: 650; }
.card__title { font-weight: 600; font-size: 15px; color: #102228; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.4em; }
.card__price { display: flex; gap: 8px; align-items: baseline; margin-top: 2px; }
.card__price strong { font-size: 20px; font-weight: 750; color: #0c5f70; letter-spacing: -.02em; }
.card__price s { color: var(--muted); font-size: 13px; }
.card__buy { margin-top: auto; }

.page-head {
  position: relative;
  overflow: hidden;
  z-index: 20;
  color: #f3f8fa;
  min-height: 248px;
  display: flex;
  align-items: center;
  padding: 40px 0;
  isolation: isolate;
  background:
    radial-gradient(42% 120% at 0% 50%, rgba(4,16,22,.82) 0%, rgba(4,16,22,.35) 48%, transparent 70%),
    radial-gradient(900px 260px at 78% -10%, rgba(0,196,230,.28), transparent 60%),
    radial-gradient(520px 200px at 92% 120%, rgba(0,90,110,.45), transparent 70%),
    radial-gradient(280px 140px at 62% 30%, rgba(255,255,255,.07), transparent 70%),
    linear-gradient(118deg, #041016 0%, #072028 38%, #0a3340 68%, #0b3d4a 100%);
}
.page-head:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("page-head-flasks.jpg") left -8% center / auto 210% no-repeat;
  opacity: .88;
  filter: saturate(1.06) contrast(1.04);
  mask-image: linear-gradient(90deg, #000 0%, #000 22%, rgba(0,0,0,.45) 38%, transparent 58%);
}
.page-head:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    url("page-head-mol.svg") right -4% center / auto 150% no-repeat,
    linear-gradient(90deg, rgba(4,16,22,.5) 16%, rgba(4,16,22,.12) 40%, transparent 56%),
    radial-gradient(90% 80% at 50% 120%, rgba(0,0,0,.32), transparent 55%);
  box-shadow: inset 0 -1px 0 rgba(0,196,230,.35);
  -webkit-mask-image: linear-gradient(90deg, transparent 42%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 42%, #000 62%);
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 {
  margin: 8px 0;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}
.page-head__title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.page-head__title h1 { margin: 8px 0 0; }
.crumb { color: #c5d6dc; font-size: 13px; }
.crumb a { color: var(--cyan); }
.page-head__count {
  margin: 0;
  color: #c4a06a;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .03em;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0,0,0,.7);
}
.subcats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.subcats a { background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; }

.product { padding: 32px 0 64px; }
.product__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.gallery {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 38%, #eef1f2 0%, #e4e8ea 58%, #d7dfe2 100%);
  border-radius: 24px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(16, 34, 40, .06);
  box-shadow: 0 10px 30px rgba(7, 22, 28, .06);
}
.gallery:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), transparent 32%),
    radial-gradient(circle at 50% 42%, transparent 55%, rgba(7,22,28,.05) 100%);
}
.gallery__main {
  width: 100%;
  background: transparent;
  border-radius: 16px;
  object-fit: contain;
  max-height: 520px;
  padding: 8px;
  position: relative;
  z-index: 1;
}
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(16, 34, 40, .08);
  background: linear-gradient(180deg, #eef1f2, #e3e8ea);
  border-radius: 14px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  flex: 0 0 72px;
  display: grid;
  place-items: center;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 14px;
}
.thumb.is-on, .thumb:hover { border-color: #9ad7e8; }
.buybox h1 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 8px; }
.price { font-size: 32px; font-weight: 700; }
.avail { color: var(--teal); font-weight: 600; }
.buy-form { margin: 20px 0; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 13px; }
.field select { height: 44px; border-radius: 10px; border: 1px solid var(--line); padding: 0 10px; }
.qty-row { display: flex; gap: 10px; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 40px; border: 0; background: transparent; cursor: pointer; font-size: 18px; }
.qty input { width: 48px; border: 0; text-align: center; }
.notes { display: grid; gap: 8px; background: #fff; border-radius: 14px; padding: 14px; }
.tabs { margin-top: 48px; }
.content { background: #fff; border-radius: 16px; padding: 22px; }
.specs { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
.specs th, .specs td { text-align: left; padding: 10px 14px; border-bottom: 1px solid #e6eef1; }
.specs th { width: 34%; color: var(--muted); font-weight: 500; }

.cart-row { display: grid; grid-template-columns: 72px 1fr auto auto auto; gap: 14px; align-items: center; background: #fff; padding: 12px; border-radius: 14px; margin-bottom: 10px; }
.cart-row__img { width: 72px; height: 68px; background: #eef3f5; border-radius: 10px; overflow: hidden; }
.cart-total { display: flex; justify-content: space-between; font-size: 22px; margin: 20px 0; }
.cart-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.linkish { background: none; border: 0; color: var(--danger); cursor: pointer; }
.cart-remove {
  width: 40px;
  height: 40px;
  border: 1px solid #ead4d4;
  background: #fff;
  color: #8b2e2e;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.cart-remove:hover {
  background: #8b2e2e;
  color: #fff;
  border-color: #8b2e2e;
}
.cart-row.is-out {
  opacity: 0;
  transform: translateX(16px);
  transition: opacity .25s ease, transform .25s ease;
}
.empty { background: #fff; padding: 28px; border-radius: 16px; }

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
  color: #d5e0e4;
  padding: 48px 0 24px;
}
.site-footer:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .34;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='240' viewBox='0 0 360 240'%3E%3Cg fill='none' stroke='%2368c4d6' stroke-width='1.05' stroke-linecap='round'%3E%3Cpath d='M30 40l28 16 28-16 28 16 28-16 28 16'/%3E%3Cpath d='M58 56v32l28 16 28-16V56'/%3E%3Cpath d='M114 56v32l28 16 28-16V56'/%3E%3Cpath d='M86 104l28 16 28-16 28 16 28-16'/%3E%3Ccircle cx='30' cy='40' r='2.4' fill='%2368c4d6' stroke='none'/%3E%3Ccircle cx='58' cy='56' r='2.4' fill='%2368c4d6' stroke='none'/%3E%3Ccircle cx='86' cy='40' r='2.4' fill='%2368c4d6' stroke='none'/%3E%3Ccircle cx='114' cy='56' r='2.4' fill='%2368c4d6' stroke='none'/%3E%3Ccircle cx='142' cy='40' r='2.4' fill='%2368c4d6' stroke='none'/%3E%3Ccircle cx='86' cy='88' r='2.4' fill='%2368c4d6' stroke='none'/%3E%3Ccircle cx='114' cy='104' r='2.4' fill='%2368c4d6' stroke='none'/%3E%3Ccircle cx='142' cy='88' r='2.4' fill='%2368c4d6' stroke='none'/%3E%3Cpath d='M240 150h40 M260 150l18-22 M260 150l18 22'/%3E%3Ccircle cx='240' cy='150' r='2.6' fill='%2378d0e0' stroke='none'/%3E%3Ccircle cx='280' cy='150' r='2.6' fill='%2378d0e0' stroke='none'/%3E%3Ccircle cx='278' cy='128' r='2.6' fill='%2378d0e0' stroke='none'/%3E%3Ccircle cx='278' cy='172' r='2.6' fill='%2378d0e0' stroke='none'/%3E%3Cpath d='M300 50h36 M318 50v40 M300 90h36'/%3E%3Ccircle cx='300' cy='50' r='2.3' fill='%2368c4d6' stroke='none'/%3E%3Ccircle cx='336' cy='50' r='2.3' fill='%2368c4d6' stroke='none'/%3E%3Ccircle cx='318' cy='90' r='2.3' fill='%2368c4d6' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 360px 240px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.45) 55%, rgba(0,0,0,.2));
}
.site-footer .wrap { position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer__grid h4 { color: #fff; margin: 0 0 10px; }
.footer__grid a, .footer__grid p { display: block; color: #b7c6cc; margin: 0 0 6px; }
.footer__about { max-width: 36ch; }
.footer__copy { border-top: 1px solid rgba(0,180,230,.25); margin-top: 28px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.page-narrow { max-width: 760px; }
.post-teaser { background: #fff; padding: 20px; border-radius: 16px; margin-bottom: 12px; }

@media (max-width: 980px) {
  .header__main { grid-template-columns: 1fr auto; }
  .search { grid-column: 1 / -1; order: 3; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; }
  .nav.is-open { display: block; }
  .hero__grid, .product__grid, .footer__grid, .trust__row, .cats, .grid { grid-template-columns: 1fr 1fr; }
  .cart-row { grid-template-columns: 64px 1fr; }
  .logo img { height: 58px; }
}
@media (max-width: 640px) {
  .page-head {
    min-height: 168px;
    padding: 22px 0;
  }
  .page-head:before {
    background-position: left -30% center;
    background-size: auto 160%;
    opacity: .55;
    mask-image: linear-gradient(90deg, rgba(0,0,0,.55), transparent 52%);
  }
  .page-head:after {
    background-image: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .page-head h1 { font-size: 26px; }
  .hero__grid, .grid, .trust__row, .footer__grid, .product__grid { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cat {
    min-height: 0;
    padding: 10px 10px 12px;
    border-radius: 14px;
  }
  .cat:hover { transform: none; }
  .cat__mark { width: 32px; height: 32px; border-radius: 9px; }
  .cat-ico { width: 18px; height: 18px; }
  .cat strong { margin-top: 8px; font-size: 13px; line-height: 1.2; }
  .cat em { font-size: 11px; margin-top: 2px; }
  .hero { padding: 36px 0; }
}

.gallery__zoom { display:block; width:100%; padding:0; border:0; background:transparent; cursor: zoom-in; }
.gallery__zoom .gallery__main { pointer-events:none; }
.zoombox { position:fixed; inset:0; z-index:9999; background:rgba(7,22,28,.88); display:flex; align-items:center; justify-content:center; padding:24px; }
.zoombox img { max-width:min(96vw, 1400px); max-height:92vh; object-fit:contain; background:#fff; border-radius:12px; }
.zoombox__close { position:absolute; top:16px; right:20px; width:44px; height:44px; border:0; border-radius:50%; background:#fff; color:#111; font-size:28px; cursor:pointer; }

.zoombox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}
.zoombox__nav--prev { left: 16px; }
.zoombox__nav--next { right: 16px; }
.zoombox__count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  letter-spacing: .08em;
}

.footer__legal { display:flex; gap:14px; flex-wrap:wrap; }
.footer__legal a { color:#b7c6cc; }
.footer__legal a:hover { color:#fff; }

@media (max-width: 980px) {
  .wrap { width: min(1180px, calc(100% - 20px)); }
  .topbar__in { min-height: 40px; }
  .topbar .mono { display: none; }
  .logo img { height: 48px; max-width: 210px; }
  .nav.is-open .nav__in { flex-direction: column; gap: 0; padding: 8px 0 16px; }
  .nav.is-open a { padding: 12px 0; border-bottom: 1px solid #eef3f5; white-space: normal; }
  .hero { min-height: 0; padding: 28px 0 32px; }
  .hero h1 { max-width: none; }
  .hero__panel { margin-top: 8px; }
  .hero__actions .btn { width: 100%; }
  .hero-contacts { grid-template-columns: 1fr; max-width: none; }
  .trust__row { grid-template-columns: 1fr 1fr; }
  .section { padding: 36px 0; }
  .qty-row { flex-wrap: wrap; }
  .qty-row .btn { flex: 1; min-width: 160px; }
  .cart-actions .btn { width: 100%; }
  .footer__copy { flex-direction: column; }
  .search-hit { grid-template-columns: 40px 1fr auto; }
}
@media (max-width: 640px) {
  .hero__panel { grid-template-columns: 1fr 1fr; }
  .product__grid { grid-template-columns: 1fr; gap: 20px; }
  .gallery__main { max-height: 320px; padding: 12px; }
  .buybox h1 { font-size: 22px; }
  .price { font-size: 26px; }
  .cart-row { grid-template-columns: 64px 1fr; }
  .cart-row .qty, .cart-row__sum, .cart-row .linkish { grid-column: 1 / -1; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card__title { font-size: 13px; min-height: 0; -webkit-line-clamp: 4; }
  .card__body { padding: 10px; }
  .footer__grid { grid-template-columns: 1fr; }
  .qty button { width: 44px; height: 44px; }
  .search-drop { max-height: 60vh; }
}

.badge.is-pop { animation: badgePop .45s ease; }
@keyframes badgePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.cart-link.is-pulse { animation: cartPulse .5s ease; }
@keyframes cartPulse {
  0% { color: #fff; }
  40% { color: var(--cyan); }
  100% { color: #fff; }
}
.cart-fly {
  position: fixed;
  z-index: 2000;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #fff center/contain no-repeat;
  box-shadow: 0 10px 24px rgba(7,22,28,.25);
  pointer-events: none;
  transition: transform .65s cubic-bezier(.2,.7,.2,1), opacity .65s ease;
}
.cart-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2100;
  background: #07161c;
  color: #fff;
  border: 1px solid rgba(0,180,230,.4);
  border-radius: 16px;
  padding: 14px 16px;
  min-width: 240px;
  box-shadow: 0 16px 40px rgba(7,22,28,.28);
  transform: translateY(16px);
  opacity: 0;
  transition: .25s ease;
}
.cart-toast.is-on { transform: none; opacity: 1; }
.cart-toast strong { display:block; }
.cart-toast span { display:block; color:#b7c6cc; font-size:13px; margin:4px 0 8px; }
.cart-toast a { color: var(--cyan); font-weight: 600; }
@media (max-width: 640px) {
  .cart-toast { left: 12px; right: 12px; bottom: 12px; min-width: 0; }
}

.card__stock { font-size: 13px; color: var(--teal); font-weight: 600; }
.card__stock--low { color: #b26a00; }
.card__stock--out { color: var(--danger); }
.avail strong { color: inherit; }
.avail--low { color: #b26a00; }
.avail--out { color: var(--danger); }

.invoice .lede { margin: 0 0 22px; color: var(--muted); }
.invoice-form { display: grid; gap: 14px; }
.invoice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.invoice-grid__full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; font-size: 14px; }
.field span { font-weight: 600; }
.field input, .field textarea {
  width: 100%; border: 1px solid #d5e0e5; border-radius: 12px;
  padding: 11px 12px; font: inherit; background: #fff;
}
.field textarea { resize: vertical; min-height: 140px; }
.field-hint { color: var(--muted); font-size: 13px; }
.field-hint.is-ok { color: var(--teal); }
.field-hint.is-err { color: var(--danger); }
@media (max-width: 720px) {
  .invoice-grid { grid-template-columns: 1fr; }
}

.city { position: relative; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.city strong { color: #fff; }
.city.is-set .city__ok { display: none; }
.city__ok, .city__edit {
  background: transparent; color: #9fd7e8; border: 1px solid rgba(159,215,232,.35);
  border-radius: 999px; padding: 2px 10px; cursor: pointer; font: inherit;
}
.city-pop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40;
  width: 240px; background: #fff; color: #122; border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18); padding: 10px;
}
.city-pop input { width: 100%; padding: 8px 10px; border: 1px solid #d7e3e8; border-radius: 8px; }
.city-pop [data-city-list] { max-height: 220px; overflow: auto; margin-top: 8px; }
.city-pop button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 6px; cursor: pointer; }
.city-pop button:hover { background: #f3f8fa; }

.btn-cmp {
  margin-top: 6px; background: transparent; border: 0; color: var(--muted);
  font-size: 12px; cursor: pointer; padding: 0; text-align: left;
}
.btn-cmp.is-on { color: var(--cyan); font-weight: 600; }

.dock {
  position: sticky; bottom: 0; z-index: 30;
  background: #0b1f27; color: #fff;
  border-top: 1px solid rgba(0,180,230,.25);
}
.dock__in { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 10px 0; }
.dock__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,.05); color: #fff; border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 10px 8px; cursor: pointer; font: inherit; text-decoration: none;
}
.dock__btn--cart { background: var(--cyan); border-color: transparent; }

.sheet {
  position: fixed; inset: 0; background: rgba(7,16,20,.55); z-index: 2147483000;
  display: none;
  place-items: end center;
}
.sheet.is-open { display: grid !important; }
.sheet[hidden] { display: none !important; }
.sheet__box {
  width: min(920px, 100%); max-height: 82vh; overflow: auto;
  background: #fff; color: #122; border-radius: 20px 20px 0 0; padding: 18px 18px 28px;
}
.sheet__box--wide { width: min(1100px, 100%); }
.sheet__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sheet__head button { border: 0; background: none; font-size: 28px; cursor: pointer; line-height: 1; }
.sheet__empty { color: #667; }
.sheet__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini { display: grid; gap: 8px; color: inherit; }
.mini img, .mini__ph { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f4f7f8; border-radius: 10px; }
.mini b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
.mini i { font-style: normal; color: var(--cyan); font-weight: 600; }
.cmp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cmp__col { display: grid; gap: 8px; align-content: start; }
.cmp__col img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f4f7f8; border-radius: 10px; }

@media (max-width: 720px) {
  .city { font-size: 12px; }
  .sheet__grid, .cmp { grid-template-columns: 1fr 1fr; }
}

.city.is-set .city__ok { display: none !important; }
.city-pop[hidden] { display: none !important; }

.btn-cmp { display: inline-block; margin-top: 8px; padding: 6px 0; background: none; border: 0; color: #2a6d7c; cursor: pointer; font-size: 13px; }
.btn-cmp.is-on { color: #00b4e6; font-weight: 600; }

.sortbar-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.sortbar__hint {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6a7b82;
}
.sortbar__form { margin: 0; }
.sortbar-row select,
.sortbar select,
[data-sort-select] {
  -webkit-appearance: none;
  appearance: none;
  min-width: 280px;
  height: 44px;
  padding: 0 44px 0 16px;
  border: 1px solid #d3e4ea;
  border-radius: 12px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath fill='none' stroke='%2300b4e6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  color: #102228;
  font: 500 14px/1.2 Inter, system-ui, sans-serif;
  box-shadow: 0 1px 0 rgba(16,34,40,.04);
  cursor: pointer;
}
.sortbar-row select:hover,
[data-sort-select]:hover {
  border-color: #9ad7e8;
}
.sortbar-row select:focus,
[data-sort-select]:focus {
  outline: none;
  border-color: #00b4e6;
  box-shadow: 0 0 0 4px rgba(0,180,230,.16);
}
@media (max-width: 640px) {
  .sortbar-row { justify-content: stretch; }
  .sortbar-row select,
  [data-sort-select] { min-width: 0; width: 100%; }
}


/* Mobile polish */
@media (max-width: 900px) {
  .city { display: none !important; }
  .dock, .sheet, .btn-cmp { display: none !important; }
  .topbar__in { justify-content: flex-end; }
  .topbar a[data-compare-open] { display: none; }
  .topbar__right { gap: 12px; }
  .topbar__hot { font-size: 13px; }
  .topbar a.cart-link { font-weight: 600; }
}
@media (max-width: 640px) {
  .topbar__in { justify-content: space-between; }
  .topbar a[href^="mailto"] { display: none; }
  .header__main { padding: 8px 0 10px; gap: 10px; }
  .nav-toggle { width: 44px; height: 44px; font-size: 20px; }
  .search input { font-size: 16px; padding: 12px 14px; }
  .search button { padding: 0 14px; }
  .hero h1 { font-size: 26px; }
  .hero__actions { display: grid; gap: 8px; }
  .sortbar-row { justify-content: space-between; }
  .sortbar__form select { width: 100%; min-width: 0; }
  .cart-row {
    grid-template-columns: 64px 1fr 40px;
    align-items: start;
  }
  .cart-row .qty,
  .cart-row__sum { grid-column: 1 / -1; }
  .cart-row .cart-remove { grid-column: 3; grid-row: 1; }
  .cart-toast { left: 12px; right: 12px; bottom: 12px; min-width: 0; }
  .sheet { width: min(100vw - 16px, 560px); }
  .zoombox__nav { width: 40px; height: 40px; font-size: 28px; }
  .zoombox__nav--prev { left: 8px; }
  .zoombox__nav--next { right: 8px; }
}

.cmp-wrap { overflow: auto; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
.cmp-table th, .cmp-table td { padding: 10px 12px; border-bottom: 1px solid #e6eef1; vertical-align: top; text-align: left; }
.cmp-table thead th { background: #f7fafb; min-width: 180px; }
.cmp-table tbody th { width: 160px; color: #5b6b72; font-weight: 600; background: #fbfcfd; position: sticky; left: 0; }
.cmp-table tr.is-diff td { background: #fff8e8; }
.cmp-head { display: grid; gap: 8px; justify-items: start; }
.cmp-head img { width: 100%; max-width: 140px; aspect-ratio: 1; object-fit: contain; background: #f4f7f8; border-radius: 10px; }
.cmp-head a { font-weight: 600; font-size: 13px; }
.sheet__box--wide { width: min(1100px, calc(100vw - 24px)); max-height: 86vh; overflow: auto; }

.qty button:disabled{opacity:.35;cursor:not-allowed}

.cart-checkout { pointer-events: auto; position: relative; z-index: 5; }
@media (max-width: 640px) {
  .dock { display: none; }
  .cart-actions { flex-direction: column; }
  .cart-actions .btn { width: 100%; min-height: 48px; }
  .cart-page { padding-bottom: 24px; }
}
