:root {
  --color-primary: #005BFF;
  --color-primary-hover: #0047D6;
  --color-primary-soft: #E8F0FF;
  --color-accent: #F91155;
  --color-success: #10C44C;
  --color-text: #001A34;
  --color-text-secondary: #707F8D;
  --color-bg: #F2F3F5;
  --color-card: #FFFFFF;
  --color-border: #E8EAED;
  --color-muted: #96A3AE;
  --color-warning: #F5A623;
  --color-star: #FFA921;
  --header-h: 56px;
  --bottom-nav-h: 62px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-card: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-card: 0 4px 16px rgba(0, 26, 52, .08);
  --shadow-hover: 0 8px 24px rgba(0, 26, 52, .12);
  --container: 1472px;
  --sidebar: 252px;
  --font: Inter, Arial, sans-serif;
  --focus: 0 0 0 3px rgba(0, 91, 255, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 10000;
  background: #fff; padding: 8px 12px;
}
.skip:focus { left: 8px; top: 8px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}

/* ——— Header ——— */
.notice {
  background: #EEF3FB;
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  padding: 6px 16px;
}
.notice strong { color: var(--color-text); font-weight: 600; }

.header {
  position: sticky; top: 0; z-index: 80;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.header__row {
  display: flex; align-items: center; gap: 12px;
  height: var(--header-h);
}
.logo {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0; color: var(--color-text);
}
.logo:hover { color: var(--color-text); }
.logo img { width: 36px; height: 36px; }
.logo__word {
  font-weight: 800; font-size: 20px; letter-spacing: -.04em;
  line-height: 1;
}
.logo__word span { color: var(--color-primary); }

.btn-catalog {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  background: var(--color-primary); color: #fff;
  border: 0; border-radius: 8px;
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.btn-catalog:hover { background: var(--color-primary-hover); color: #fff; }
.btn-catalog.is-open { background: var(--color-primary-hover); }
.btn-catalog svg { width: 18px; height: 18px; }

.search {
  flex: 1; min-width: 0; position: relative;
  display: block; height: 40px;
  border: 0; background: transparent;
}
.search__bar {
  display: flex; align-items: stretch;
  height: 40px; background: var(--color-primary);
  border-radius: 8px; overflow: hidden;
}
.search__field {
  flex: 1; min-width: 0; position: relative;
  display: flex; align-items: center;
  margin: 2px 0 2px 2px; background: #fff;
  border: 0; border-radius: 6px 0 0 6px;
}
.search__scope {
  flex-shrink: 0; display: flex; align-items: center; gap: 4px;
  padding: 0 10px 0 12px; border: 0; background: transparent;
  color: var(--color-text); font-size: 13px; font-weight: 500;
  border-right: 1px solid var(--color-border); height: 100%;
  border-radius: 6px 0 0 6px;
}
.search__scope svg { width: 10px; height: 10px; color: var(--color-muted); }
.search__input {
  flex: 1; border: 0; background: transparent;
  padding: 0 36px 0 12px; min-width: 0; height: 100%;
}
.search__input::placeholder { color: var(--color-muted); }
.search__input:focus { outline: none; box-shadow: none; }
.search__clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: 0; background: transparent;
  color: var(--color-muted); display: none; align-items: center; justify-content: center;
  border-radius: 999px;
}
.search.has-value .search__clear { display: flex; }
.search__submit {
  width: 44px; height: auto; margin: 0; border: 0; flex-shrink: 0; padding: 0; line-height: 0;
  background: transparent; color: #fff;
  border-radius: 0; display: grid; place-items: center;
  appearance: none; -webkit-appearance: none; box-shadow: none;
}
.search__submit:hover { background: var(--color-primary-hover); }
.search__submit svg { width: 20px; height: 20px; display: block; }

.header__actions {
  display: flex; align-items: stretch; gap: 4px; flex-shrink: 0;
}
.icon-link {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  min-width: 64px; height: 42px; padding: 0 6px;
  color: var(--color-text); border-radius: 10px; border: 0; background: transparent;
  font-size: 12px; line-height: 1;
}
.icon-link:hover { background: var(--color-bg); color: var(--color-text); }
.icon-link svg { width: 22px; height: 22px; display: block; }
.icon-link__badge {
  position: absolute; top: 0; right: 10px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--color-accent); color: #fff;
  border-radius: 999px; font-size: 10px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
  line-height: 1;
}
.icon-link__badge.is-on { display: flex; }

.thematic {
  background: #fff; border-bottom: 1px solid var(--color-border);
}
.thematic__row {
  display: flex; align-items: center; gap: 18px;
  height: 40px; overflow-x: auto; scrollbar-width: none;
}
.thematic__row::-webkit-scrollbar { display: none; }
.thematic a {
  color: var(--color-text); font-size: 14px; white-space: nowrap; font-weight: 500;
}
.thematic a:hover { color: var(--color-primary); }
.thematic a.is-active { color: var(--color-primary); }

/* Search dropdown */
.suggest {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover);
  overflow: hidden; z-index: 90; padding: 8px 0; max-height: min(70vh, 560px); overflow-y: auto;
}
.search.is-open .suggest { display: block; }
.suggest__label {
  padding: 8px 16px 4px; font-size: 12px; color: var(--color-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
}
.suggest__item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; color: var(--color-text); width: 100%;
  border: 0; background: transparent; text-align: left;
}
.suggest__item:hover, .suggest__item.is-active { background: var(--color-bg); }
.suggest__item svg, .suggest__thumb { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; color: var(--color-muted); }
.suggest__item small { color: var(--color-muted); margin-left: auto; font-size: 12px; }
.suggest__prod { font-weight: 500; }
.suggest__empty { padding: 20px 16px; color: var(--color-text-secondary); }

/* Mega menu */
.mega-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0, 26, 52, .32); z-index: 70;
}
.mega-backdrop.is-open { display: block; }
.mega {
  display: none; position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(var(--header-h) + 8px); width: min(1472px, calc(100% - 48px));
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover);
  z-index: 85; overflow: hidden;
}
.mega.is-open { display: grid; grid-template-columns: 260px 1fr 280px; min-height: 420px; }
.mega__cats { background: #F7F8FA; padding: 12px 8px; border-right: 1px solid var(--color-border); }
.mega__cat {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 10px 12px; border: 0; background: transparent;
  border-radius: 10px; text-align: left; font-weight: 500;
}
.mega__cat:hover, .mega__cat.is-active { background: #fff; color: var(--color-primary); }
.mega__sub { padding: 20px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; align-content: start; }
.mega__sub a { color: var(--color-text); padding: 6px 0; font-size: 14px; }
.mega__sub a:hover { color: var(--color-primary); }
.mega__sub h3 { font-size: 16px; margin-bottom: 8px; grid-column: 1 / -1; }
.mega__aside { padding: 16px; border-left: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 10px; }
.promo-mini {
  display: block; border-radius: 12px; padding: 16px; color: #fff;
  background: linear-gradient(135deg, #005BFF, #3D8BFF); min-height: 88px;
}
.promo-mini:hover { color: #fff; }
.promo-mini strong { display: block; font-size: 15px; margin-bottom: 4px; }
.promo-mini span { font-size: 12px; opacity: .9; }
.promo-mini--dark { background: linear-gradient(135deg, #1B2430, #3A4654); }

/* Mobile header */
.m-header { display: none; }
.m-header__row {
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; gap: 8px;
}
.m-header .search { height: 40px; margin-bottom: 8px; }

/* Bottom nav */
.bottom-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff; border-top: 1px solid var(--color-border);
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
}
.bottom-nav__in {
  display: grid; grid-template-columns: repeat(5, 1fr); height: var(--bottom-nav-h);
}
.bottom-nav a, .bottom-nav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--color-text-secondary); font-size: 11px; border: 0; background: transparent;
}
.bottom-nav a.is-active, .bottom-nav a:hover { color: var(--color-primary); }
.bottom-nav svg { width: 22px; height: 22px; }

body.has-bottom-nav { padding-bottom: calc(var(--bottom-nav-h) + 8px); }

/* Catalog drawer mobile */
.drawer {
  position: fixed; inset: 0; z-index: 100; display: none;
}
.drawer.is-open { display: block; }
.drawer__bg { position: absolute; inset: 0; background: rgba(0, 26, 52, .4); }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(100%, 420px);
  background: #fff; overflow: auto; padding: 16px 16px 32px;
}
.drawer--right .drawer__panel { left: auto; right: 0; }
.drawer--sheet .drawer__panel {
  top: auto; left: 0; right: 0; width: 100%; max-height: 86vh;
  border-radius: 16px 16px 0 0; padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; font-weight: 700; font-size: 18px;
}
.drawer__close {
  width: 36px; height: 36px; border: 0; background: var(--color-bg); border-radius: 999px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 16px; border-radius: 10px; border: 0;
  font-weight: 700; font-size: 16px; background: var(--color-primary); color: #fff;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--color-primary-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--block { width: 100%; }
.btn--lg { height: 50px; font-size: 16px; border-radius: 12px; }
.btn--ghost {
  background: var(--color-primary-soft); color: var(--color-primary);
}
.btn--ghost:hover { background: #d9e6ff; color: var(--color-primary); }
.btn--light { background: var(--color-bg); color: var(--color-text); }
.btn--light:hover { background: #e6e8eb; color: var(--color-text); }
.btn--danger { background: #fff; color: var(--color-accent); border: 1px solid var(--color-border); }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::after {
  content: ""; width: 16px; height: 16px; border: 2px solid #fff; border-right-color: transparent;
  border-radius: 50%; animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Product card — Ozon density */
.pcard {
  position: relative; background: #fff; border-radius: var(--radius-card);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.pcard__media {
  position: relative; display: block; aspect-ratio: 1 / 1;
  background: #F4F5F7; overflow: hidden; border-radius: 12px;
}
.pcard__photo { display: block; width: 100%; height: 100%; }
.pcard__media .vis, .pcard__media img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .25s;
}
.pcard:hover .pcard__media .vis,
.pcard:hover .pcard__media img { transform: scale(1.02); }
.pcard__print {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); pointer-events: none;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 8px;
}
.pcard__print b { font-size: 18px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.pcard__print span { font-size: 12px; font-weight: 700; background: rgba(255,255,255,.92); color: var(--color-text); text-shadow: none; padding: 3px 7px; border-radius: 6px; }
.pcard__stamp {
  position: absolute; top: 46%; left: 50%; z-index: 2; pointer-events: none;
  transform: translate(-50%, -50%);
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.95); text-shadow: 0 2px 12px rgba(0,0,0,.4);
  white-space: nowrap;
}
.pcard__badge {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  background: var(--color-accent); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 6px; border-radius: 6px;
}
.pcard__badge--new { background: var(--color-primary); }
.pcard__badge--hit { background: #7B5CFA; }
.fav {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 32px; height: 32px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--color-muted);
  display: grid; place-items: center;
}
.fav:hover { color: var(--color-accent); }
.fav.is-on { color: var(--color-accent); }
.fav.is-on svg { fill: currentColor; }
.fav svg { width: 18px; height: 18px; }
.pcard__body { padding: 8px 4px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.price__now { font-size: 20px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.price__now--sale { color: var(--color-accent); }
.price__old { font-size: 13px; color: var(--color-muted); text-decoration: line-through; }
.price__off { font-size: 13px; font-weight: 700; color: var(--color-accent); }
.pcard__title {
  color: var(--color-text); font-size: 14px; line-height: 18px; font-weight: 400;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 36px;
}
.pcard__title:hover { color: var(--color-primary); }
.pcard__meta { font-size: 12px; color: var(--color-text-secondary); display: flex; align-items: center; gap: 4px; }
.pcard__meta .star { color: var(--color-star); font-size: 13px; }
.pcard__cta {
  margin-top: auto; height: 32px; border-radius: 8px; font-size: 14px; font-weight: 600;
}
.pcard__quick {
  display: none; position: absolute; left: 50%; top: 50%; z-index: 4;
  transform: translate(-50%, -50%);
  width: auto; max-width: calc(100% - 24px); height: 40px; padding: 0 16px;
  background: #fff; color: var(--color-primary);
  border: 2px solid var(--color-primary); border-radius: 8px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.pcard__quick:hover {
  background: #fff; color: var(--color-primary); border-color: var(--color-primary-hover);
}
.pcard__quick:active { transform: translate(-50%, -50%); }
.pcard:hover .pcard__print,
.pcard:hover .pcard__stamp { opacity: 0; }
.pcard:hover .pcard__quick,
.pcard:focus-within .pcard__quick { display: inline-flex; align-items: center; justify-content: center; }

.grid-products {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
@media (min-width: 1600px) { .grid-products { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1199px) { .grid-products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .grid-products { grid-template-columns: repeat(2, 1fr); gap: 6px; } }

.grid-products--home { grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (min-width: 1600px) { .grid-products--home { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 1199px) { .grid-products--home { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 991px) { .grid-products--home { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .grid-products--home { grid-template-columns: repeat(2, 1fr); } }

/* Visual textures */
.vis { width: 100%; height: 100%; position: relative; overflow: hidden; }
.vis::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(180deg, transparent 62%, rgba(0,0,0,.06));
  pointer-events: none;
}
.vis--white-marble {
  background:
    radial-gradient(ellipse 80% 50% at 18% 22%, #ffffff 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 78% 70%, #e8e2da 0%, transparent 46%),
    linear-gradient(125deg, #f7f4f0 0%, #e4ddd4 42%, #f3efe9 70%, #d9d1c7 100%);
}
.vis--white-marble::before {
  content: ""; position: absolute; inset: 0; opacity: .55;
  background:
    radial-gradient(ellipse 2px 80px at 30% 40%, #c9c2b8, transparent),
    radial-gradient(ellipse 1px 120px at 62% 20%, #b7aea3, transparent),
    radial-gradient(ellipse 1.5px 90px at 80% 60%, #cfc6bb, transparent);
  transform: rotate(12deg);
}
.vis--grey-marble {
  background:
    radial-gradient(ellipse 70% 50% at 20% 30%, #d8dce2 0%, transparent 50%),
    linear-gradient(140deg, #c5c9d0, #9aa1ab 40%, #d2d6dc 70%, #8b929c);
}
.vis--grey-marble::before {
  content: ""; position: absolute; inset: -20%; opacity: .5;
  background: repeating-linear-gradient(118deg, transparent 0 18px, rgba(255,255,255,.25) 18px 20px);
}
.vis--black-marble {
  background:
    radial-gradient(ellipse 50% 40% at 70% 30%, #3a3a40 0%, transparent 50%),
    linear-gradient(140deg, #1a1a1e, #0e0e10 40%, #2a2a30 80%);
}
.vis--black-marble::before {
  content: ""; position: absolute; inset: 0; opacity: .4;
  background:
    radial-gradient(ellipse 1px 140px at 40% 30%, #d9d4cc, transparent),
    radial-gradient(ellipse 1px 100px at 65% 60%, #cfc8bc, transparent);
  transform: rotate(18deg);
}
.vis--gold-marble {
  background:
    radial-gradient(ellipse 60% 40% at 30% 40%, #f3ead8 0%, transparent 50%),
    linear-gradient(135deg, #f6f1e8, #e8dcc4 45%, #c9a56a 70%, #efe6d4);
}
.vis--gold-marble::before {
  content: ""; position: absolute; inset: 0; opacity: .7;
  background:
    radial-gradient(ellipse 2px 160px at 28% 35%, #c9a227, transparent),
    radial-gradient(ellipse 1px 120px at 55% 55%, #e0c36a, transparent),
    radial-gradient(ellipse 1.5px 90px at 72% 25%, #b8860b, transparent);
  transform: rotate(-14deg);
}
.vis--onyx {
  background:
    radial-gradient(circle at 30% 40%, #f3d7a4, transparent 40%),
    radial-gradient(circle at 70% 60%, #e8b86d, transparent 42%),
    linear-gradient(160deg, #f6e4c2, #c9893e 50%, #8a4b18);
}
.vis--travertine {
  background:
    repeating-linear-gradient(180deg, #efe4d2 0 6px, #e4d5bc 6px 8px),
    linear-gradient(#eadcc4, #d7c4a4);
}
.vis--concrete {
  background:
    radial-gradient(circle at 20% 30%, #c5c5c5 0, transparent 28%),
    radial-gradient(circle at 80% 70%, #b0b0b0 0, transparent 30%),
    linear-gradient(145deg, #cfcfcf, #9a9a9a);
}
.vis--brick-white {
  background-color: #efece8;
  background-image:
    linear-gradient(#d7d2cb 1px, transparent 1px),
    linear-gradient(90deg, #d7d2cb 1px, transparent 1px);
  background-size: 48px 24px;
  background-position: 0 0, 24px 12px;
}
.vis--brick-grey {
  background-color: #8d8f93;
  background-image:
    linear-gradient(#6f7176 1px, transparent 1px),
    linear-gradient(90deg, #6f7176 1px, transparent 1px);
  background-size: 48px 24px;
}
.vis--brick-red {
  background-color: #a24b3a;
  background-image:
    linear-gradient(#7c3528 1px, transparent 1px),
    linear-gradient(90deg, #7c3528 1px, transparent 1px);
  background-size: 52px 26px;
}
.vis--brick-old {
  background-color: #b56a4a;
  background-image:
    linear-gradient(#8c4a32 2px, transparent 2px),
    linear-gradient(90deg, #8c4a32 2px, transparent 2px);
  background-size: 56px 28px;
}
.vis--slate {
  background: linear-gradient(160deg, #5c6570, #2f3640 40%, #6a7380 80%);
}
.vis--wood {
  background: repeating-linear-gradient(90deg, #c9a077 0 8px, #b48962 8px 16px, #d0ab86 16px 22px);
}
.vis--blue-marble {
  background: linear-gradient(140deg, #d7e4ef, #8eacc4 40%, #e8f1f7 70%, #6f92ad);
}
.vis--green-marble {
  background: linear-gradient(140deg, #d5e6d8, #6f9a78 45%, #e7f0e8 75%, #4f7a58);
}
.vis--glue { background: linear-gradient(180deg, #f4efe6, #c9b496); }
.vis--grout { background: linear-gradient(180deg, #ececec, #b8b8b8); }
.vis--tools { background: linear-gradient(135deg, #2b3340, #5c6b7a); }

/* Home */
.page { padding: 16px 0 48px; }
.cat-tiles {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin: 8px 0 24px;
}
.cat-tile {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; color: var(--color-text);
  display: flex; flex-direction: column;
}
.cat-tile:hover { color: var(--color-text); box-shadow: var(--shadow-card); }
.cat-tile__img { height: 92px; }
.cat-tile__name { padding: 10px 12px 12px; font-weight: 600; font-size: 13px; }
.section { margin: 8px 0 28px; }
.section__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; gap: 12px;
}
.section__head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.section__head a { font-size: 14px; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 8px 12px 8px 8px;
  color: var(--color-text); font-weight: 500; font-size: 13px;
  border: 1px solid var(--color-border);
}
.chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.chip__sw { width: 22px; height: 22px; border-radius: 999px; border: 1px solid rgba(0,0,0,.08); }

.howto {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.howto a {
  background: #fff; border-radius: var(--radius-lg); padding: 16px;
  color: var(--color-text); min-height: 120px;
}
.howto a:hover { color: var(--color-text); box-shadow: var(--shadow-card); }
.howto h3 { font-size: 16px; margin: 8px 0 6px; }
.howto p { font-size: 13px; color: var(--color-text-secondary); }
.howto__n {
  width: 28px; height: 28px; border-radius: 8px; background: var(--color-primary-soft);
  color: var(--color-primary); display: grid; place-items: center; font-weight: 800; font-size: 13px;
}

.calc-banner {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center;
  background: #fff; border-radius: var(--radius-xl); padding: 28px;
}
.calc-banner h2 { font-size: 24px; margin-bottom: 8px; }
.calc-banner p { color: var(--color-text-secondary); margin-bottom: 16px; }

.articles-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.acard {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; color: var(--color-text);
  display: flex; flex-direction: column;
}
.acard:hover { color: var(--color-text); box-shadow: var(--shadow-card); }
.acard__img { height: 140px; }
.acard__body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.acard__cat { font-size: 12px; color: var(--color-primary); font-weight: 600; }
.acard h3 { font-size: 16px; line-height: 1.3; }
.acard p { font-size: 13px; color: var(--color-text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acard__meta { font-size: 12px; color: var(--color-muted); margin-top: auto; }

.seo-block {
  background: #fff; border-radius: var(--radius-lg); padding: 24px;
  color: var(--color-text-secondary); font-size: 14px;
}
.seo-block h2 { color: var(--color-text); font-size: 22px; margin-bottom: 10px; }
.seo-block p + p { margin-top: 10px; }
.seo-block.is-clamp { max-height: 140px; overflow: hidden; position: relative; }
.seo-block.is-clamp::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background: linear-gradient(transparent, #fff);
}
.more-link { margin-top: 8px; font-weight: 600; background: none; border: 0; color: var(--color-primary); padding: 0; }

.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: #fff; border-radius: 12px; overflow: hidden; }
.faq-item summary {
  padding: 14px 16px; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--color-muted); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 16px 14px; color: var(--color-text-secondary); }

/* Catalog layout */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--color-text-secondary); margin-bottom: 10px; }
.crumbs a { color: var(--color-text-secondary); }
.crumbs span { color: var(--color-muted); }
.page-title { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.page-count { color: var(--color-text-secondary); font-size: 14px; margin: 6px 0 10px; }
.seo-intro { color: var(--color-text-secondary); max-width: 920px; margin-bottom: 16px; }
.seo-intro[hidden] + .more-link { display: none; }

.catalog {
  display: grid; grid-template-columns: var(--sidebar) 1fr; gap: 24px; align-items: start;
}
.filters {
  background: #fff; border-radius: var(--radius-lg); padding: 8px 12px 16px;
  position: sticky; top: 64px;
}
.filter { border-bottom: 1px solid var(--color-border); padding: 8px 0; }
.filter:last-child { border-bottom: 0; }
.filter summary {
  list-style: none; cursor: pointer; font-weight: 700; font-size: 14px;
  display: flex; justify-content: space-between; padding: 8px 0;
}
.filter summary::-webkit-details-marker { display: none; }
.filter summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--color-muted); border-bottom: 2px solid var(--color-muted); transform: rotate(45deg); margin-top: -4px; }
.filter[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.filter__body { padding: 4px 0 10px; display: flex; flex-direction: column; gap: 8px; }
.filter label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.filter input[type="checkbox"], .filter input[type="radio"] { width: 16px; height: 16px; accent-color: var(--color-primary); }
.filter .muted { color: var(--color-muted); margin-left: auto; font-size: 12px; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-row input {
  height: 36px; border: 1px solid var(--color-border); border-radius: 8px; padding: 0 10px; width: 100%;
}
.range { width: 100%; accent-color: var(--color-primary); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 22px; height: 22px; border-radius: 999px; border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d0d4d9; cursor: pointer; padding: 0;
}
.swatch.is-on { box-shadow: 0 0 0 2px var(--color-primary); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.switch { position: relative; width: 36px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0; background: #d5dae0; border-radius: 999px; transition: .15s;
}
.switch span::before {
  content: ""; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px;
  background: #fff; border-radius: 50%; transition: .15s;
}
.switch input:checked + span { background: var(--color-primary); }
.switch input:checked + span::before { transform: translateX(16px); }

.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.achip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--color-border); border-radius: 999px;
  padding: 4px 8px 4px 10px; font-size: 13px;
}
.achip button { border: 0; background: transparent; color: var(--color-muted); width: 18px; height: 18px; }
.sort {
  height: 32px; border: 0; background: transparent;
  border-radius: 8px; padding: 0 4px; min-width: 180px; font-weight: 600; color: var(--color-text);
}
.m-filter-btn { display: none; }

.pagination {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 24px 0 8px;
}
.pagination a, .pagination span {
  min-width: 40px; height: 40px; display: grid; place-items: center;
  background: #fff; border-radius: 10px; color: var(--color-text); font-weight: 600;
}
.pagination a.is-current, .pagination span.is-current { background: var(--color-primary); color: #fff; }

/* Product page */
.product-top {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.78fr);
  gap: 20px; min-width: 0;
  background: #fff; border-radius: var(--radius-lg); padding: 20px;
  margin-bottom: 16px; align-items: start;
}
.gallery { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; min-width: 0; }
.thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow-y: auto; }
.thumbs button {
  width: 64px; height: 64px; border-radius: 8px; border: 2px solid transparent;
  padding: 0; overflow: hidden; background: #ECEFF3;
}
.thumbs button.is-on { border-color: var(--color-primary); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage {
  position: relative; aspect-ratio: 1; background: #ECEFF3; border-radius: 12px; overflow: hidden;
}
.stage .vis, .stage img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.stage__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 999px; background: #fff;
  box-shadow: var(--shadow-card); display: grid; place-items: center;
}
.stage__nav--prev { left: 8px; }
.stage__nav--next { right: 8px; }
.stage .fav { top: 12px; right: 12px; width: 40px; height: 40px; }
.tabs-media { display: flex; gap: 8px; margin-top: 10px; grid-column: 2; }
.tabs-media button {
  height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--color-border);
  background: #fff; font-size: 12px; font-weight: 600;
}
.tabs-media button.is-on { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-soft); }

.pinfo { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sku { font-size: 12px; color: var(--color-muted); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px; font-weight: 600; background: var(--color-bg); border-radius: 6px; padding: 4px 8px;
}
.tag--blue { background: var(--color-primary-soft); color: var(--color-primary); }
.pinfo h1 { font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
.rating-line { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.rating-line a { font-weight: 600; }
.variants h3 { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--color-text-secondary); }
.vrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.vopt {
  width: 44px; height: 44px; border-radius: 8px; border: 2px solid transparent;
  padding: 0; overflow: hidden; box-shadow: 0 0 0 1px var(--color-border);
}
.vopt.is-on { border-color: var(--color-primary); }
.vopt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vchip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--color-border);
  background: #fff; font-weight: 600; font-size: 13px; line-height: 1; text-align: center;
}
.vchip.is-on { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-soft); }
.benefits { display: flex; flex-direction: column; gap: 8px; }
.benefits li { display: flex; gap: 8px; font-size: 14px; }
.benefits svg { color: var(--color-success); flex-shrink: 0; margin-top: 2px; }
.ozon-note {
  background: #F4F7FB; border-radius: 12px; padding: 12px; font-size: 13px; color: var(--color-text-secondary);
}
.ozon-note strong { color: var(--color-text); display: block; margin-bottom: 6px; }
.ozon-note li { margin: 4px 0; }

.buy {
  position: sticky; top: 72px; min-width: 0; max-width: 100%;
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 18px;
  box-shadow: 0 2px 16px rgba(0, 26, 52, .06);
}
.buy .price__now { font-size: 28px; }
.buy__checked { font-size: 12px; color: var(--color-muted); margin: 4px 0 12px; }
.buy__warn { font-size: 13px; color: #b36b00; background: #FFF6E5; padding: 8px 10px; border-radius: 8px; margin-bottom: 10px; }
.buy__hint { font-size: 12px; color: var(--color-text-secondary); text-align: center; margin: 8px 0 12px; }
.buy__row { display: flex; gap: 8px; margin-top: 8px; }
.buy__row .btn { flex: 1; min-width: 0; }
.buy .btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.buy [data-fav].is-on { color: var(--color-accent); }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 10px; height: 40px;
}
.qty button { width: 36px; border: 0; background: transparent; font-size: 18px; height: 100%; }
.qty input { width: 40px; border: 0; text-align: center; }

.carousel { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 1199px) { .carousel { grid-template-columns: repeat(4, 1fr); } }

.white-card { background: #fff; border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; }
.white-card h2 { font-size: 22px; margin-bottom: 14px; }
.prose { font-size: 16px; line-height: 1.6; color: var(--color-text); }
.prose p + p, .prose h3 { margin-top: 14px; }
.prose h3 { font-size: 18px; }
.prose ul, .prose ol { padding-left: 18px; margin: 10px 0; }
.prose li { margin: 6px 0; }
.prose a { font-weight: 600; }

.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--color-border); font-weight: 400; }
.specs th { color: var(--color-text-secondary); width: 42%; font-weight: 400; }

.steps { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.step__n {
  width: 36px; height: 36px; border-radius: 10px; background: var(--color-primary-soft);
  color: var(--color-primary); display: grid; place-items: center; font-weight: 800;
}
.warn-box { background: #FFF6E5; border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-top: 12px; }

.calc {
  display: grid; grid-template-columns: 1fr 280px; gap: 24px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select {
  height: 42px; border: 1px solid var(--color-border); border-radius: 10px; padding: 0 12px;
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.calc-result {
  background: var(--color-bg); border-radius: 12px; padding: 16px;
}
.calc-result strong { display: block; font-size: 22px; margin: 4px 0 12px; }

.interior-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.interior-grid .vis, .interior-grid img { min-height: 180px; border-radius: 12px; width: 100%; height: 100%; object-fit: cover; display: block; }
.interior-grid .vis:first-child, .interior-grid img:first-child { grid-row: span 2; min-height: 368px; }

.reviews-head { display: grid; grid-template-columns: 160px 1fr; gap: 24px; margin-bottom: 20px; }
.reviews-score { font-size: 48px; font-weight: 800; line-height: 1; }
.bar { display: grid; grid-template-columns: 24px 1fr 40px; gap: 8px; align-items: center; font-size: 13px; margin: 4px 0; }
.bar i { height: 8px; background: var(--color-bg); border-radius: 999px; display: block; overflow: hidden; }
.bar i b { display: block; height: 100%; background: var(--color-star); }
.review { padding: 14px 0; border-top: 1px solid var(--color-border); }
.review__top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.review__name { font-weight: 700; }
.review__date { color: var(--color-muted); font-size: 12px; }
.ask-form textarea {
  width: 100%; min-height: 90px; border: 1px solid var(--color-border); border-radius: 10px; padding: 10px 12px;
}
.qitem { padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.qitem b { display: block; margin-bottom: 4px; }

.promo-wide {
  border-radius: var(--radius-xl); overflow: hidden; min-height: 220px;
  display: flex; align-items: flex-end; padding: 36px;
  color: #fff; margin-bottom: 16px; position: relative;
  background:
    linear-gradient(180deg, rgba(0,26,52,.15) 0%, rgba(0,26,52,.72) 100%),
    radial-gradient(ellipse 80% 50% at 18% 22%, #ffffff 0%, transparent 50%),
    linear-gradient(125deg, #f7f4f0 0%, #e4ddd4 42%, #d9d1c7 100%);
}
.promo-wide h2 { font-size: 36px; font-weight: 800; letter-spacing: -.04em; margin-bottom: 6px; }
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0;
  bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  z-index: 55; background: #fff; border-top: 1px solid var(--color-border);
  padding: 8px 16px; gap: 12px; align-items: center;
}
.mobile-cta .price__now { font-size: 18px; }

/* Cart — как корзина маркетплейса */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.cart-box { background: #fff; border-radius: 16px; padding: 8px 16px 16px; }
.cart-item {
  display: grid; grid-template-columns: 20px 88px 1fr auto;
  gap: 12px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--color-border);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item .vis, .cart-item img { width: 88px; height: 88px; border-radius: 8px; object-fit: cover; display: block; }
.cart-item__title { color: var(--color-text); font-size: 14px; font-weight: 400; line-height: 1.35; }
.cart-item__title:hover { color: var(--color-primary); }
.cart-item__tools { display: flex; gap: 12px; margin-top: 10px; }
.cart-item__tools button, .cart-item__tools a { color: var(--color-muted); background: none; border: 0; padding: 0; font-size: 13px; }
.cart-item__tools button:hover, .cart-item__tools a:hover { color: var(--color-primary); }
.cart-item__side { text-align: right; min-width: 140px; }
.cart-item__side .price__now { font-size: 20px; }
.cart-sum { position: sticky; top: 72px; background: #fff; border-radius: 16px; padding: 20px; }
.cart-sum h2 { font-size: 18px; margin-bottom: 12px; }
.cart-sum .row { display: flex; justify-content: space-between; margin: 8px 0; font-size: 14px; }
.cart-sum .row--sale { color: var(--color-accent); }
.cart-sum .total { font-size: 24px; font-weight: 800; margin-top: 8px; }
.cart-tools { display: flex; gap: 16px; align-items: center; margin: 4px 0 8px; font-size: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--color-border); }

/* Compare */
.compare-wrap { overflow: auto; background: #fff; border-radius: 16px; }
.compare-table { min-width: 720px; width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 12px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; min-width: 180px;
}
.compare-table th:first-child, .compare-table td:first-child { position: sticky; left: 0; background: #fff; min-width: 160px; font-weight: 600; }
.diff-row { background: #FFF8F0; }

/* Article */
.article { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
.toc { position: sticky; top: 108px; background: #fff; border-radius: 16px; padding: 16px; }
.toc a { display: block; color: var(--color-text); padding: 6px 0; font-size: 13px; }
.lead { font-size: 18px; color: var(--color-text-secondary); margin: 12px 0 20px; }
.embed {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center;
  border: 1px solid var(--color-border); border-radius: 12px; padding: 12px; margin: 16px 0;
}
.embed .vis { width: 96px; height: 96px; border-radius: 10px; }
.hero-img { border-radius: 16px; overflow: hidden; height: 280px; margin-bottom: 20px; }

/* Footer */
.footer { background: #fff; border-top: 1px solid var(--color-border); padding: 36px 0 24px; margin-top: 24px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 24px; }
.footer h3 { font-size: 14px; margin-bottom: 10px; }
.footer a { display: block; color: var(--color-text-secondary); padding: 4px 0; font-size: 14px; }
.footer a:hover { color: var(--color-primary); }
.footer__copy {
  margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--color-border);
  font-size: 13px; color: var(--color-text-secondary);
}
.footer__copy p + p { margin-top: 6px; }

/* Modal / lightbox / quick view */
.modal {
  position: fixed; inset: 0; z-index: 120; display: none;
}
.modal.is-open { display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal__bg { position: absolute; inset: 0; background: rgba(0, 26, 52, .5); }
.modal__box {
  position: relative; width: min(920px, 100%); max-height: min(90vh, 760px);
  overflow-x: hidden; overflow-y: auto; min-width: 0;
  background: #fff; border-radius: 16px; padding: 24px 20px 20px;
}
.modal__close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border: 0; border-radius: 999px;
  background: #fff; color: var(--color-text); box-shadow: var(--shadow-card);
  display: grid; place-items: center;
}
.modal__close svg { width: 16px; height: 16px; }
.qv {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px;
  align-items: start;
}
.qv__media {
  aspect-ratio: 1; width: 100%; max-height: min(52vh, 460px);
  border-radius: 12px; overflow: hidden; background: #F4F5F7; min-width: 0;
}
.qv__media img, .qv__media .vis { width: 100%; height: 100%; object-fit: cover; display: block; }
.qv__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.qv__thumbs img, .qv__thumbs .vis {
  width: 56px; height: 56px; object-fit: cover; border-radius: 8px; display: block;
}
.qv__info { min-width: 0; }
.qv__info h2 { font-size: 20px; margin: 6px 0; overflow-wrap: anywhere; }
.lightbox .modal__box { background: #111; color: #fff; width: min(960px, 100%); padding: 12px; overflow: hidden; }
.lightbox .stage { background: #111; }
.lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; display: block; margin: 0 auto; }

.empty {
  background: #fff; border-radius: 16px; padding: 48px 24px; text-align: center;
}
.empty h2 { font-size: 22px; margin: 8px 0; }
.empty p { color: var(--color-text-secondary); margin-bottom: 16px; }

.skeleton { background: #fff; border-radius: 12px; overflow: hidden; }
.skeleton__img { aspect-ratio: 1; background: linear-gradient(90deg, #eee, #f6f6f6, #eee); background-size: 200% 100%; animation: shine 1.2s infinite; }
.skeleton__line { height: 12px; margin: 10px; border-radius: 6px; background: #eee; }
@keyframes shine { to { background-position: -200% 0; } }

/* Admin */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: #fff; }
.admin-side { background: #0E1621; color: #c9d4df; padding: 20px 12px; }
.admin-side a, .admin-side button {
  display: block; width: 100%; text-align: left; color: #c9d4df; padding: 8px 10px;
  border-radius: 8px; border: 0; background: transparent; font-size: 14px;
}
.admin-side a.is-on, .admin-side a:hover { background: #1A2533; color: #fff; }
.admin-main { padding: 24px; background: var(--color-bg); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border-radius: 12px; padding: 16px; }
.kpi b { display: block; font-size: 26px; margin-top: 4px; }
.table { width: 100%; background: #fff; border-radius: 12px; border-collapse: collapse; overflow: hidden; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--color-border); text-align: left; font-size: 13px; }
.ok { color: var(--color-success); }
.bad { color: var(--color-accent); }

/* Misc */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.linkish { background: none; border: 0; color: var(--color-primary); padding: 0; font-weight: 600; }

@media (max-width: 1199px) {
  .product-top { grid-template-columns: minmax(0, 1fr) minmax(0, 280px); }
  .gallery { grid-column: 1 / -1; grid-template-columns: 56px 1fr; }
  .pinfo { grid-column: 1; }
  .buy { grid-row: 2; }
  .cat-tiles { grid-template-columns: repeat(4, 1fr); }
  .howto, .articles-row { grid-template-columns: repeat(2, 1fr); }
  .calc, .article, .cart-layout { grid-template-columns: 1fr; }
  .buy, .cart-sum, .toc { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .mega { grid-template-columns: 220px 1fr; }
  .mega.is-open { display: grid; }
  .mega__aside { display: none; }
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .carousel { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters.is-drawer { display: block; position: static; }
  .m-filter-btn { display: inline-flex; }
  .header__actions .icon-link:nth-child(1) { display: none; }
  .calc-banner { grid-template-columns: 1fr; }
  .reviews-head, .qv { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .container { padding-inline: 12px; }
  .header { display: none; }
  .m-header { display: block; background: #fff; position: sticky; top: 0; z-index: 80; border-bottom: 1px solid var(--color-border); padding: 0 12px 8px; }
  .thematic { display: none; }
  .bottom-nav { display: block; }
  body { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
  .page-title { font-size: 24px; }
  .section__head h2 { font-size: 20px; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .product-top { grid-template-columns: 1fr; padding: 12px; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; overflow-x: auto; }
  .mobile-cta { display: flex; }
  .pcard__quick { display: none !important; }
  .cart-item { grid-template-columns: 20px 72px 1fr; }
  .cart-item__side { grid-column: 2 / -1; text-align: left; display: flex; align-items: center; justify-content: space-between; min-width: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .interior-grid { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .admin { grid-template-columns: 1fr; }
  .howto, .articles-row { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  .m-header, .bottom-nav, .mobile-cta { display: none !important; }
}
