/* ХозМир — бренд 2026: палитра маскота (синий дом + лайм) */
:root {
  --hz-blue: #0A52C4;
  --hz-blue-hover: #003A9E;
  --hz-blue-light: #2E6AD4;
  --hz-navy: #0B1F4D;
  --hz-lime: #A0DA2E;
  --hz-lime-hover: #87C321;
  --hz-lime-light: #C6F565;
  --hz-lime-soft: #EAF7D6;
  --hz-blue-soft: #E8F0FD;
  --bg: #F3F6FA;
  --card: #ffffff;
  --text: #0F1B3D;
  --muted: #4A5878;
  --line: #E3E9F2;
  --line-2: #CBD5E3;
  --yellow: #A0DA2E;
  --yellow-2: #87C321;
  --orange: #0A52C4;
  --orange-2: #003A9E;
  --green: #2F7A1F;
  --green-soft: #EAF7D6;
  --warn: #A15C00;
  --warn-soft: #FFF3E0;
  --bad: #C62828;
  --forest: #0A52C4;
  --ink: #0F1B3D;
  --deep: #0A52C4;
  --rose: #2E6AD4;
  --lilac: #6F86B8;
  --cream: #EEF3FB;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(11, 31, 77, .07);
  --shadow-md: 0 10px 28px rgba(11, 31, 77, .12);
  --header-h: 72px;
  --font: Inter, "Segoe UI", system-ui, sans-serif;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img, svg { display: block; }
.sr-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex-shrink: 0; color: currentColor; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* ── Top ── */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 36px;
}
.topbar a:hover { color: var(--text); }
.topbar .phone { margin-left: auto; color: var(--text); font-weight: 600; }
.topbar .city {
  color: var(--text);
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.topbar .city:hover { color: var(--orange); }

/* ── Header ── */
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cream);
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.logo-mark .icon { width: 22px; height: 22px; }
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--cream);
  flex-shrink: 0;
}
.logo b { font-size: 18px; letter-spacing: -.03em; line-height: 1; }
.logo small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }

.btn-catalog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: #0F1B3D;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-catalog:hover { background: var(--yellow-2); }
.btn-catalog.open { background: var(--deep); color: #fff; }

.search {
  flex: 1;
  min-width: 0;
  position: relative;
}
.search input {
  width: 100%;
  height: 44px;
  border: 2px solid var(--deep);
  border-radius: 8px;
  padding: 0 48px 0 42px;
  background: #fff;
}
.search input:focus { outline: none; border-color: var(--orange); }
.search > button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: var(--yellow);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.search-drop {
  display: none;
  position: absolute;
  left: 0; right: 0; top: calc(100% + 6px);
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 50;
}
.search-drop.open { display: block; }
.search-drop button {
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 10px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.search-drop button:hover { background: var(--bg); }
.search-drop small { color: var(--muted); }

.head-act {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.head-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 64px;
  height: 52px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  background: none;
  border: 0;
  cursor: pointer;
}
.head-link:hover { background: var(--bg); }
.head-link .icon { width: 22px; height: 22px; }
.head-cart { position: relative; border-radius: 8px; }
.head-cart.has-items {
  animation: cart-pulse 1.55s ease-in-out infinite;
}
@keyframes cart-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(160, 218, 46, .55); }
  55% { box-shadow: 0 0 0 10px rgba(160, 218, 46, 0); }
}
.head-cart .badge-num {
  position: absolute;
  top: 4px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ── Mega ── */
.mega {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.mega.open { display: block; }
.mega .wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 380px;
}
.mega-cats { border-right: 1px solid var(--line); padding: 10px 0; }
.mega-cats button {
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 500;
}
.mega-cats button:hover,
.mega-cats button.active { background: var(--bg); font-weight: 700; }
.mega-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 24px;
  padding: 18px 24px;
}
.mega-cols h4 { font-size: 14px; margin-bottom: 8px; }
.mega-cols a {
  display: block;
  color: var(--muted);
  padding: 4px 0;
}
.mega-cols a:hover { color: var(--orange); }

/* ── Cats ── */
.cats {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.cats .wrap {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  height: 46px;
  align-items: center;
}
.cats a {
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 13px;
}
.cats a:hover, .cats a.active { background: #E8F0FD; }

/* ── Layout ── */
.page { padding: 18px 0 48px; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.crumbs a:hover { color: var(--text); }
.page-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}
.page-title h1 { font-size: 28px; letter-spacing: -.03em; }
.page-title span { color: var(--muted); }

.catalog {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.filters {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 12px);
  z-index: 20;
  max-height: calc(100vh - var(--header-h) - 24px);
  overflow: auto;
}
.filters h3 { font-size: 15px; margin-bottom: 12px; }
.filter-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.filter-cats a {
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 13px;
}
.filter-cats a:hover, .filter-cats a.active { background: #E8F0FD; }
.filter-group { padding: 12px 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group b { display: block; margin-bottom: 8px; font-size: 13px; }
.filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  color: #2A3655;
}
.price-row { display: flex; gap: 8px; }
.price-row input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 0 8px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.toolbar select {
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  margin-left: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* ── Card ── */
.card {
  background: var(--card);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: box-shadow .15s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-img {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  background: #F3F6FA;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  color: #8A96B0;
  overflow: hidden;
}
.card-img .icon { width: 56px; height: 56px; }
.card-img img,
.line-img img,
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.card-badges {
  position: absolute;
  left: 8px;
  top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  line-height: 1.1;
}
.tag-sale { background: var(--hz-lime); color: var(--ink); }
.tag-new { background: var(--hz-blue-soft); color: #0A3F9E; }
.tag-hit { background: var(--hz-blue); color: #fff; }
.sku { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.avail { font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.avail.ok { color: var(--green); }
.avail.warn { color: var(--warn); }
.avail.bad { color: var(--bad); }
.card h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .meta {
  color: var(--muted);
  font-size: 12px;
  margin: 6px 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.unit { color: var(--muted); font-size: 12px; }
.price-box { margin-top: auto; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.price { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.price em { font-style: normal; font-size: 14px; font-weight: 700; }
.your { color: var(--green); font-size: 12px; font-weight: 600; margin-top: 2px; }

.buy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}
.qty {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.qty.open { display: grid; }
.qty button {
  border: 0;
  background: #F3F6FA;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.qty [data-plus],
.qty [data-line-plus] {
  background: var(--orange);
  color: #fff;
}
.qty [data-plus]:hover,
.qty [data-line-plus]:hover { background: var(--orange-2); }
.qty input {
  border: 0;
  text-align: center;
  width: 100%;
  background: #fff;
}

/* ── Cart / zakupka ── */
.zak {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}
.zak-side { display: grid; gap: 16px; align-content: start; }
.cart-hist-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.cart-hist-head h2 { margin-bottom: 0; }
.cart-hist-tools { display: flex; gap: 6px; flex-shrink: 0; }
.cart-hist-tools .btn { height: 34px; padding: 0 10px; }
.cart-hist-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  max-height: min(58vh, 640px);
  overflow: auto;
}
.hist-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #ffffff;
}
.hist-item.is-latest { border-color: #BFD3F6; background: #F2F7FF; }
.hist-item.is-undone { opacity: .45; }
.hist-item time { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }
.hist-item b { display: block; margin: 2px 0 4px; font-size: 13px; line-height: 1.3; }
.hist-item .hist-meta { color: var(--muted); font-size: 12px; }
.hist-item .hist-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 2px;
}
.hist-item button {
  margin-top: 8px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: #E8F0FD;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.hist-item button:hover { background: #DCE7FB; }
.hist-empty, .cart-empty {
  color: var(--muted);
  text-align: center;
  padding: 28px 12px;
  line-height: 1.45;
}
.panel {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.panel h2 { font-size: 18px; margin-bottom: 6px; }
.panel .sub { color: var(--muted); margin-bottom: 14px; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tabs button {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tabs button.active { background: var(--deep); color: #fff; border-color: var(--deep); }
.pane { display: none; }
.pane.active { display: block; }
.pane textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: ui-monospace, Consolas, monospace;
  resize: vertical;
}
.drop {
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  padding: 28px 12px;
  text-align: center;
  color: var(--muted);
}
.drop .icon { margin: 0 auto 8px; }
.actions { display: flex; gap: 8px; margin-top: 12px; }
.btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-dark { background: var(--deep); color: #fff; }
.btn-ghost { background: #fff; border: 1px solid var(--line-2); }
.btn-orange { background: var(--orange); color: #fff; width: 100%; justify-content: center; }

.line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 132px 90px 32px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.line:last-child { border-bottom: 0; }
.line-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--bg);
  display: grid;
  place-items: center;
  color: #8A96B0;
  position: relative;
  overflow: hidden;
}
.line b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.line small { color: var(--muted); }
.line .sum { font-weight: 800; text-align: right; }
.icon-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.totals { display: flex; justify-content: space-between; padding: 7px 0; color: var(--muted); }
.totals b { color: var(--text); }
.grand { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 16px; }
.grand b { font-size: 22px; }

.repeat li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.repeat li:last-child { border-bottom: 0; }
.repeat small { color: var(--muted); display: block; }

/* ── Footer ── */
.footer {
  background: var(--deep);
  color: #C9D4EA;
  padding: 36px 0 20px;
  font-size: 13px;
}
.footer .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer h4 { color: #fff; margin-bottom: 10px; }
.footer a { display: block; padding: 3px 0; color: #8A96B0; }
.footer a:hover { color: #fff; }
.legal {
  width: min(var(--max), calc(100% - 40px));
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #8FA0C4;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zak { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .catalog { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header .wrap { height: auto; padding: 10px 0; flex-wrap: wrap; }
  .search { order: 5; flex-basis: 100%; }
  .logo small, .head-link span { display: none; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  body:not(.page-zakupka) .line { grid-template-columns: 52px 1fr; }
  body:not(.page-zakupka) .line .qty,
  body:not(.page-zakupka) .line .sum,
  body:not(.page-zakupka) .line .icon-btn { display: none; }
  .filters {
    top: 8px;
    z-index: 25;
    max-height: 42vh;
  }
}


/* ── B2B zakupka UX ── */
.search-scan {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}
.search-scan .icon { width: 20px; height: 20px; }

.qty-wrap {
  display: grid;
  gap: 4px;
}
.qty-hint, [data-pack-hint] {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  min-height: 14px;
  line-height: 1.2;
}
.card .qty-wrap { margin-top: 0; }
.buy .qty-wrap .qty.open { display: grid; }

.stock-note {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  background: var(--warn-soft);
  color: var(--warn);
}
.stock-note.ok {
  background: var(--green-soft);
  color: var(--green);
}
.stock-note a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.stock-note a:hover { color: var(--orange); }

.line {
  align-items: start;
  padding-top: 14px;
  padding-bottom: 14px;
}
.line > .qty-wrap { align-self: center; }
.line > .sum { align-self: center; }
.line > .icon-btn { align-self: center; }
.line-body { min-width: 0; }
.line-body .stock-note { margin-top: 8px; }

.repeat-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  margin-bottom: 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0A52C4 0%, #2E6AD4 100%);
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s;
}
.repeat-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.repeat-cta .icon { width: 28px; height: 28px; color: var(--yellow); }
.repeat-cta strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.repeat-cta small {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 500;
}
.repeat-cta .cta-go {
  margin-left: auto;
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--yellow);
  color: #0F1B3D;
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
}
.repeat-cta.is-done {
  background: var(--green);
}
.repeat-cta.is-done .cta-go { background: #fff; }

.repeat-toast {
  margin: -8px 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
}

.totals-clean .totals { padding: 8px 0; }
.totals-clean .grand { margin-top: 4px; }
.totals-clean .actions { margin-top: 14px; }

.head-link.is-primary span { font-weight: 700; }
.nav-catalog-link {
  margin-left: auto;
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
}
.nav-catalog-link:hover { color: var(--orange); }
.page-title .to-catalog {
  margin-left: auto;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.page-title .to-catalog:hover { border-color: var(--deep); }

@media (max-width: 860px) {
  .repeat-cta { flex-wrap: wrap; }
  .repeat-cta .cta-go { margin-left: 0; width: 100%; }
  body:not(.page-zakupka) .line .qty-wrap { display: none; }
}


/* ── page-zakupka: clean chrome ── */
.page-zakupka .cats { display: none; }
.page-zakupka .mega { display: none !important; }
/* .page-zakupka .topbar скрыт был ранее — ТЗ п.11: единая шапка */
.page-zakupka a.btn-catalog { text-decoration: none; }

/* btn-catalog as link */
a.btn-catalog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: #0F1B3D;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
a.btn-catalog:hover { background: var(--yellow-2); color: #0F1B3D; }

.cart-lines:empty::before {
  content: "Корзина пуста — добавьте товары или повторите последний заказ";
  display: block;
  padding: 20px 0;
  color: var(--muted);
  font-size: 13px;
}

/* ── Order confirmation ── */
.page-order .cats,
.page-order .mega { display: none !important; }
.order-confirm {
  max-width: 520px;
  margin: 32px auto;
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.order-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
}
.order-check .icon { width: 32px; height: 32px; }
.order-confirm h1 {
  font-size: 28px;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}
.order-no {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 8px;
}
.order-no strong { color: var(--text); font-size: 18px; }
.order-lead {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 14px;
}
.order-facts {
  text-align: left;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin-bottom: 24px;
}
.order-facts .totals { padding: 8px 0; }
.order-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-actions .btn { width: 100%; justify-content: center; text-decoration: none; }
.order-actions .btn-ghost { border: 1px solid var(--line-2); }

/* ── Demo polish v3: zakupka mobile — beat hide + fix fixed ── */
/* overflow-x:hidden on html breaks position:fixed in WebKit/Blink */
html:has(body.page-zakupka) {
  overflow-x: clip;
}
body.page-zakupka {
  overflow-x: clip;
}

.page-zakupka .repeat-cta { min-height: 64px; }
.page-zakupka .repeat-cta strong { font-size: 17px; line-height: 1.25; }
.page-zakupka .repeat-cta small { line-height: 1.35; margin-top: 4px; }
.page-zakupka .repeat-cta .cta-go { min-width: 72px; height: 40px; font-size: 14px; }
.page-zakupka .totals-clean .totals.grand {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 12px;
  font-size: 15px;
  color: var(--text);
}
.page-zakupka .totals-clean .totals.grand b {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.page-zakupka .totals-clean .btn-orange {
  height: 48px;
  font-size: 16px;
  border-radius: 10px;
}
.page-zakupka .line-body b { white-space: normal; line-height: 1.3; }

/* Unique to zakupka cart — do not depend on body class alone */
@media (max-width: 960px) {
  .page-zakupka .wrap { width: min(var(--max), calc(100% - 24px)); }
  .page-zakupka main.page { padding-bottom: 170px !important; }
  .page-zakupka .page-title { flex-wrap: wrap; align-items: flex-start; gap: 8px 10px; }
  .page-zakupka .page-title h1 { font-size: 24px; width: 100%; }
  .page-zakupka .page-title .to-catalog { margin-left: 0; }
  .page-zakupka .repeat-cta { gap: 12px; padding: 14px 16px; align-items: flex-start; }
  .page-zakupka .repeat-cta .icon { width: 30px; height: 30px; margin-top: 2px; }
  .page-zakupka .repeat-cta .cta-go { height: 44px; width: 100%; margin-left: 0; border-radius: 10px; }

  #cart-lines .line,
  .page-zakupka #cart-lines .line {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) 28px !important;
    grid-template-areas:
      "img body del"
      "img qty sum" !important;
    column-gap: 10px !important;
    row-gap: 8px !important;
    align-items: center !important;
    padding: 14px 0 !important;
  }
  #cart-lines .line > .line-img { grid-area: img !important; align-self: start; width: 48px !important; height: 48px !important; }
  #cart-lines .line > .line-body { grid-area: body !important; min-width: 0 !important; }
  #cart-lines .line > .line-body b { white-space: normal !important; font-size: 14px !important; overflow: visible !important; text-overflow: unset !important; }
  #cart-lines .line > .qty-wrap {
    grid-area: qty !important;
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    justify-self: start !important;
  }
  #cart-lines .line .qty,
  #cart-lines .line .qty.open,
  #cart-lines .line > .qty-wrap > .qty {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 128px !important;
    height: 40px !important;
    overflow: visible !important;
  }
  #cart-lines .line > .sum {
    grid-area: sum !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    justify-self: end !important;
    font-size: 15px !important;
    font-weight: 800 !important;
  }
  #cart-lines .line > .icon-btn {
    grid-area: del !important;
    display: grid !important;
    visibility: visible !important;
    align-self: start !important;
  }

  /* Viewport-fixed checkout; left/right 0 + width 100vw avoids containing-block quirks */
  .page-zakupka aside.panel.totals-clean {
    position: fixed !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    z-index: 1000 !important;
    border-radius: 16px 16px 0 0 !important;
    box-shadow: 0 -10px 28px rgba(16, 24, 40, .18) !important;
    padding: 12px 16px max(14px, env(safe-area-inset-bottom)) !important;
    transform: none !important;
    inset: auto 0 0 0 !important;
  }
  .page-zakupka aside.totals-clean h2 { font-size: 15px; margin-bottom: 2px; }
  .page-zakupka aside.totals-clean .totals:not(.grand) { display: none !important; }
  .page-zakupka aside.totals-clean .totals.grand {
    border-top: 0 !important;
    margin: 0 !important;
    padding: 4px 0 8px !important;
  }
  .page-zakupka aside.totals-clean .actions { margin-top: 4px !important; }
  .page-zakupka .panel { padding: 16px; }
  .page-zakupka .tabs { flex-wrap: wrap; }
  .page-zakupka .tabs button { flex: 1 1 auto; min-height: 40px; justify-content: center; }
  .page-zakupka .cart-hist { margin-bottom: 8px; }
  .page-zakupka .cart-hist-list { max-height: none; }
}

/* ── Popups, pager, catalog extras ── */
body.modal-open { overflow: hidden; }
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.modal-root[hidden] { display: none !important; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, .48);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 32px));
  max-height: min(88vh, 860px);
  overflow: auto;
  margin: 6vh auto 0;
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-md);
}
.modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--bg);
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.modal-x:hover { color: var(--text); background: #E3E9F2; }
.modal-card h2 { font-size: 24px; letter-spacing: -.03em; margin-bottom: 12px; padding-right: 36px; }
.modal-body p { margin: 0 0 12px; color: #2A3655; }
.modal-list { margin: 0 0 14px 18px; color: #2A3655; }
.modal-list li { padding: 3px 0; }
.modal-note { color: var(--muted); font-size: 13px; }
.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.fact-grid > div {
  background: var(--bg);
  border-radius: 10px;
  padding: 12px;
}
.fact-grid b { display: block; margin-bottom: 4px; }
.fact-grid span { color: var(--muted); font-size: 13px; }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.lead-form { display: grid; gap: 10px; margin: 14px 0; }
.lead-form label { display: grid; gap: 4px; font-weight: 600; font-size: 13px; }
.lead-form input {
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 0 10px;
  font-weight: 500;
}
.lead-ok { background: var(--green-soft); color: var(--green); padding: 12px; border-radius: 8px; font-weight: 600; }
.product-pop { display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
.product-pop .card-img { aspect-ratio: 1; margin: 0; }
.product-pop .price { margin: 8px 0; }
.card-open {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
  padding: 0;
}
.card-open h3 { font-size: 14px; font-weight: 600; line-height: 1.35; min-height: 38px; }
.empty-cat { padding: 28px 8px; color: var(--muted); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pager button {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}
.pager button.active { background: var(--deep); color: #fff; border-color: var(--deep); }
.search-empty { padding: 12px; color: var(--muted); }
.drop.is-over { border-color: var(--orange); background: #EAF2FF; }
.drop { cursor: pointer; }
.checkout-error {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 14px;
}
.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.linkish:hover { color: var(--orange); }
.filters .btn-ghost { width: 100%; justify-content: center; margin-top: 8px; }

@media (max-width: 720px) {
  .fact-grid, .product-pop { grid-template-columns: 1fr; }
  .modal-card { margin-top: 4vh; padding: 22px 16px 16px; }
}


/* ── Home banners ── */
body.page-home .home-cats,
body.page-home .home-block { display: none !important; }
body.page-catalog .home-view { display: none !important; }
body.page-home .crumbs { display: none; }
body.page-home .banners {
  min-height: 0;
  grid-template-columns: 1.4fr 0.6fr 0.6fr;
  grid-template-rows: auto;
  margin-bottom: 16px;
}
body.page-home .banner-hero { grid-row: auto; min-height: 168px; }
body.page-home .hero-slide { min-height: 168px; padding: 20px 24px 40px; }
body.page-home .hero-slide h1 { font-size: 22px; }
body.page-home .banner-side { min-height: 0; }

.banners {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.7fr);
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
  min-height: 340px;
}
.banner-hero {
  grid-row: 1 / span 2;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #0A52C4 0%, #2E6AD4 55%, #003A9E 100%);
  color: #fff;
  min-height: 340px;
}
.hero-slide {
  display: none;
  padding: 36px 40px;
  height: 100%;
  min-height: 340px;
  flex-direction: column;
  justify-content: center;
}
.hero-slide.is-on { display: flex; }
.hero-kicker {
  color: var(--yellow);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero-slide h1 {
  font-size: 34px;
  letter-spacing: -.03em;
  line-height: 1.15;
  max-width: 16ch;
  margin-bottom: 12px;
}
.hero-slide p {
  color: rgba(255,255,255,.78);
  max-width: 42ch;
  margin-bottom: 22px;
  font-size: 15px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,.1); }
.hero-dots {
  position: absolute;
  left: 40px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  border: 0;
  background: rgba(255,255,255,.35);
  cursor: pointer;
}
.hero-dots button.active { background: var(--yellow); width: 22px; }
.banner-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px;
  border-radius: 16px;
  min-height: 164px;
}
.banner-side small { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.banner-side b { font-size: 20px; letter-spacing: -.03em; line-height: 1.2; }
.banner-side span { font-weight: 700; font-size: 13px; }
.banner-sale { background: var(--yellow); color: var(--ink); }
.banner-sale:hover { background: var(--yellow-2); }
.banner-ship { background: #fff; box-shadow: var(--shadow); }
.banner-ship:hover { box-shadow: var(--shadow-md); }
.home-cats {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}
.home-cats a {
  background: #fff;
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  box-shadow: var(--shadow);
  display: grid;
  justify-items: center;
  gap: 8px;
}
.home-cats a:hover { box-shadow: var(--shadow-md); color: var(--orange); }
.home-cats .icon { width: 28px; height: 28px; color: var(--forest); }
.home-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.home-head h2 { font-size: 22px; letter-spacing: -.03em; }
.home-head a { font-weight: 700; color: var(--muted); }
.home-head a:hover { color: var(--orange); }
.home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 960px) {
  body.page-home .banners,
  .banners { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; }
  .banner-hero, .hero-slide { min-height: 280px; }
  .hero-slide { padding: 24px 20px 48px; }
  .hero-slide h1 { font-size: 26px; }
  .hero-dots { left: 20px; }
  .home-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .home-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ── Agent ── */
.page-agent .topbar { display: none; }
.agent-login { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 24px 0 48px; }
.agent-login[hidden],
.agent-app[hidden],
.page-agent.is-in .agent-login { display: none !important; }
.agent-card { width: min(440px, 100%); }
.agent-card h1 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 6px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 42px; }
.pw-eye {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.pw-eye:hover { color: var(--text); background: var(--bg); }
.pw-eye .icon { width: 18px; height: 18px; }
.pw-eye [data-eye-off] { display: none !important; }
.pw-eye.is-shown [data-eye-on] { display: none !important; }
.pw-eye.is-shown [data-eye-off] { display: block !important; }
.agent-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.agent-chat {
  min-height: 280px;
  max-height: 380px;
  overflow: auto;
  background: var(--bg);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.agent-msg { max-width: 92%; padding: 8px 12px; border-radius: 10px; white-space: pre-wrap; line-height: 1.4; }
.agent-msg-user { align-self: flex-end; background: var(--deep); color: #fff; }
.agent-msg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.agent-ask { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.agent-ask input {
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 0 12px;
}
.agent-hints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.agent-hints button {
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}
.agent-hints button:hover { color: var(--text); border-color: var(--deep); }
.page-agent textarea[data-list] {
  width: 100%;
  min-height: 180px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 10px 12px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
}
.agent-drop { margin-top: 12px; }
.agent-table-wrap { overflow: auto; }
.agent-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.agent-table th, .agent-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.agent-table th { color: var(--muted); font-weight: 600; }
.agent-st { display: inline-block; border-radius: 999px; padding: 2px 8px; font-weight: 700; font-size: 12px; }
.agent-st-exact { background: var(--green-soft); color: var(--green); }
.agent-st-similar { background: var(--warn-soft); color: var(--warn); }
.agent-st-missing { background: #fee2e2; color: #991b1b; }
.agent-alts { display: grid; gap: 4px; margin-top: 6px; }
.agent-alt {
  background: none;
  border: 0;
  padding: 0;
  color: var(--orange);
  cursor: pointer;
  text-align: left;
  font-weight: 600;
}
.agent-alt:hover { text-decoration: underline; }
.btn-sm { height: 32px; padding: 0 10px; font-size: 12px; }
.page-agent .muted { color: var(--muted); }
.topbar a.agent-link { color: var(--muted); }
.topbar a.agent-link:hover { color: var(--text); }
@media (max-width: 960px) {
  .agent-grid { grid-template-columns: 1fr; }
  .page-agent .actions { flex-wrap: wrap; }
}

/* ── v21: stepper-only cart, start at 0; views, info/product, compact home ── */
.search-drop a.search-hit {
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: inherit;
}
.search-drop a.search-hit:hover { background: var(--bg); }
.search-drop a.search-hit small { color: var(--muted); }

.view-switch {
  display: flex;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}
.view-switch button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.view-switch button:hover { color: var(--text); background: var(--cream); }
.view-switch button.active { background: var(--forest); color: #fff; }
.view-switch .icon { width: 18px; height: 18px; }

body[data-cat-view="hybrid"] .catalog .grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
body[data-cat-view="hybrid"] .catalog .card { padding: 8px; }
body[data-cat-view="hybrid"] .catalog .card-img { margin-bottom: 6px; }
body[data-cat-view="hybrid"] .catalog .card-img .icon { width: 40px; height: 40px; }
body[data-cat-view="hybrid"] .catalog .card h3 { font-size: 13px; min-height: 0; }
body[data-cat-view="hybrid"] .catalog .price { font-size: 18px; }
body[data-cat-view="hybrid"] .catalog .unit,
body[data-cat-view="hybrid"] .catalog .your { display: none; }

body[data-cat-view="list"] .catalog .grid {
  grid-template-columns: 1fr;
  gap: 8px;
}
body[data-cat-view="list"] .catalog .card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 132px;
  grid-template-areas: "open price buy";
  align-items: center;
  gap: 10px 16px;
  padding: 10px 14px;
}
body[data-cat-view="list"] .catalog .card-open {
  grid-area: open;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
body[data-cat-view="list"] .catalog .card-img {
  width: 92px;
  height: 92px;
  aspect-ratio: auto;
  margin: 0;
}
body[data-cat-view="list"] .catalog .card-img .icon { width: 36px; height: 36px; }
body[data-cat-view="list"] .catalog .card-info { min-width: 0; }
body[data-cat-view="list"] .catalog .card h3 { min-height: 0; }
body[data-cat-view="list"] .catalog .meta { display: none; }
body[data-cat-view="list"] .catalog .price-box { grid-area: price; margin: 0; }
body[data-cat-view="list"] .catalog .buy { grid-area: buy; margin: 0; }
body[data-cat-view="list"] .catalog .stock-note { display: none; }

.page-home .home-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.page-home .home-grid .card { padding: 8px; }
.page-home .home-grid .card-img {
  aspect-ratio: auto;
  height: 84px;
  margin-bottom: 6px;
}
.page-home .home-grid .card-img .icon { width: 32px; height: 32px; }
.page-home .home-grid .card h3 { font-size: 13px; min-height: 0; -webkit-line-clamp: 2; }
.page-home .home-grid .price { font-size: 16px; }
.page-home .home-grid .unit,
.page-home .home-grid .your,
.page-home .home-grid .avail,
.page-home .home-grid .sku { display: none; }
.page-home .home-grid .meta { margin: 4px 0 6px; }
.page-home .home-grid .qty { height: 34px; }
.page-home .home-grid .qty-hint { display: none; }

a.line-img { color: inherit; }
a.line-img:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.line-name { color: inherit; display: block; }
.line-name:hover b { color: var(--orange); }

.page-info .mega,
.page-info .cats { display: none !important; }
.info-article {
  max-width: 760px;
  background: var(--card);
  border-radius: 16px;
  padding: 32px 36px 40px;
  box-shadow: var(--shadow);
}
.info-article h1 {
  font-size: 32px;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}
.info-body p { margin: 0 0 12px; color: #3A4766; }
.info-body a { color: var(--orange); font-weight: 600; }
.info-body a:hover { text-decoration: underline; }
.info-body .modal-list { margin: 0 0 14px 18px; color: #3A4766; }
.info-body .modal-list li { padding: 3px 0; }
.info-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.page-product .mega { display: none !important; }
.product-layout {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 28px;
  background: var(--card);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.product-photo { aspect-ratio: 1; margin: 0; min-height: 240px; }
.product-photo .icon { width: 88px; height: 88px; }
.product-main h1 {
  font-size: 28px;
  letter-spacing: -.03em;
  margin: 6px 0 10px;
}
.product-meta { color: var(--muted); margin: 8px 0 12px; }
.product-buy {
  max-width: 220px;
  margin-top: 18px;
}
.product-buy .btn-ghost { justify-content: center; height: 40px; }

.topbar .city {
  text-decoration: none;
}
.btn-catalog, a.btn-catalog { color: var(--ink); }
a.btn-catalog:hover { color: var(--ink); }

@media (max-width: 1100px) {
  body[data-cat-view="hybrid"] .catalog .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-home .home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  body[data-cat-view="hybrid"] .catalog .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-cat-view="list"] .catalog .card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "open"
      "price"
      "buy";
  }
  body[data-cat-view="list"] .catalog .card-open {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  body[data-cat-view="list"] .catalog .card-img {
    width: 72px;
    height: 72px;
  }
  .product-layout { grid-template-columns: 1fr; }
  .info-article { padding: 22px 18px 28px; }
  .page-home .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body[data-cat-view="hybrid"] .catalog .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ═══════════ ХозМир · бренд 2026 (маскот: синий дом + лайм) ═══════════ */
:focus-visible { outline: 3px solid rgba(160, 218, 46, .9); outline-offset: 2px; }
a:hover { transition: color .15s; }

/* Топбар и шапка */
.topbar { background: var(--hz-navy); border-bottom: 0; color: #C9D4EA; }
.topbar a:hover { color: #fff; }
.topbar .phone, .topbar .city { color: #fff; }
.topbar .city:hover { color: var(--hz-lime-light); }
.header { box-shadow: 0 1px 0 var(--line); border-bottom: 0; }
.logo-img { background: transparent; border-radius: 0; object-fit: contain; width: 44px; height: 44px; }
.logo b { color: var(--hz-blue); font-weight: 800; }
.btn-catalog, a.btn-catalog { background: var(--hz-blue); color: #fff; border-radius: 12px; }
.btn-catalog:hover, a.btn-catalog:hover { background: var(--hz-blue-hover); color: #fff; }
.btn-catalog.open { background: var(--hz-navy); }
.search input { border: 2px solid var(--hz-blue); border-radius: 12px; }
.search input:focus { border-color: var(--hz-blue); box-shadow: 0 0 0 4px rgba(160, 218, 46, .35); }
.search > button { background: var(--hz-lime); color: var(--text); border-radius: 9px; }
.search > button:hover { background: var(--hz-lime-hover); }
.head-link:hover { background: var(--hz-blue-soft); color: var(--hz-blue); }
.head-cart .badge-num { background: var(--hz-lime); color: var(--text); font-weight: 800; }
.cats a:hover, .cats a.active { background: var(--hz-blue-soft); color: var(--hz-blue); }
.mega-cols a:hover { color: var(--hz-blue); }

/* Кнопки */
.btn { border-radius: 10px; transition: background .15s, border-color .15s, color .15s; }
.btn-orange { background: var(--hz-lime); color: var(--text); }
.btn-orange:hover { background: var(--hz-lime-hover); }
.btn-dark:hover { background: var(--hz-blue-hover); }
.btn-ghost:hover { border-color: var(--hz-blue); color: var(--hz-blue); }
.qty { border-radius: 10px; }
.qty [data-plus],
.qty [data-line-plus] { background: var(--hz-lime); color: var(--text); font-weight: 800; }
.qty [data-plus]:hover,
.qty [data-line-plus]:hover { background: var(--hz-lime-hover); }
.qty button:not([data-plus]):not([data-line-plus]):hover { background: var(--hz-blue-soft); }
.tabs button.active, .pager button.active { background: var(--hz-blue); border-color: var(--hz-blue); }

/* Карточки и формы */
.card, .filters, .info-article, .product-layout { border-radius: 16px; }
.card { border: 1px solid transparent; transition: box-shadow .15s, border-color .15s; }
.card:hover { border-color: #D5E1F5; }
.card-img { border-radius: 12px; }
.tag { border-radius: 999px; padding: 3px 8px; }
.price { color: var(--text); }
.filter-cats a:hover, .filter-cats a.active { color: var(--hz-blue); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--hz-blue); }
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus, textarea:focus { outline: none; border-color: var(--hz-blue); box-shadow: 0 0 0 3px rgba(10, 82, 196, .15); }
.info-body a, .linkish { color: var(--hz-blue); }
.repeat-cta .cta-go { background: var(--hz-lime); color: var(--text); }
.repeat-cta .icon { color: var(--hz-lime-light); }

/* Главный экран с маскотом */
.banner-hero {
  background:
    radial-gradient(circle at 82% 30%, rgba(160, 218, 46, .22) 0, rgba(160, 218, 46, 0) 42%),
    linear-gradient(135deg, #0A52C4 0%, #2E6AD4 55%, #003A9E 100%);
  border-radius: 20px;
}
.banner-hero::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -90px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  pointer-events: none;
}
.hero-slide { position: relative; z-index: 2; padding-right: 300px; }
.hero-kicker { color: var(--hz-lime-light); }
.hero-dots { z-index: 3; }
.hero-dots button.active { background: var(--hz-lime); }
.hero-actions .btn { width: auto; padding: 0 20px; height: 44px; border-radius: 12px; }
.hero-actions .btn-orange { box-shadow: 0 6px 18px rgba(160, 218, 46, .35); }
.hero-mascot {
  position: absolute;
  right: 18px;
  bottom: 0;
  z-index: 1;
  height: calc(100% - 16px);
  max-height: 300px;
  width: auto;
  filter: drop-shadow(0 14px 22px rgba(0, 20, 70, .35));
  pointer-events: none;
}
body.page-home .banner-hero { min-height: 300px; }
body.page-home .hero-slide { min-height: 300px; padding: 28px 300px 48px 32px; }
body.page-home .hero-slide h1 { font-size: 30px; }
.banner-side { border-radius: 20px; }
/* «Акции» — мягкий светло-лаймовый баннер (не кричит рядом с синим героем) */
.banner-sale {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F2FBE3 0%, #E3F5C4 100%);
  border: 1px solid #D3EDA6;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: background .15s, box-shadow .15s, border-color .15s;
}
.banner-sale:hover { background: linear-gradient(135deg, #EDF9DA 0%, #DDF2B5 100%); border-color: #C3E58A; box-shadow: var(--shadow-md); }
.banner-sale small { color: #3F6B00; }
.banner-sale b { color: var(--text); position: relative; z-index: 1; }
.banner-sale span {
  align-self: flex-start;
  color: var(--hz-blue);
  padding-bottom: 2px;
  box-shadow: inset 0 -3px 0 var(--hz-lime);
  position: relative; z-index: 1;
}
.banner-sale:hover span { color: var(--hz-blue-hover); }
.banner-sale::before,
.banner-sale::after {
  content: "";
  position: absolute;
  background: var(--hz-lime);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  pointer-events: none;
}
.banner-sale::before { width: 34px; height: 34px; right: 18px; top: 16px; opacity: .9; }
.banner-sale::after { width: 18px; height: 18px; right: 52px; top: 46px; opacity: .65; }
.banner-ship small { color: var(--hz-blue); }
.banner-ship span { color: var(--hz-blue); }
.home-cats a { border-radius: 14px; }
.home-cats a:hover { color: var(--hz-blue); }

/* Пустые состояния — маленький маскот */
.cart-empty::before,
.empty-cat::before {
  content: "";
  display: block;
  width: 96px;
  height: 104px;
  margin: 8px auto 12px;
  background: url("images/brand/mascot-front-sm.webp") center / contain no-repeat;
}
.cart-empty, .empty-cat { text-align: center; }

/* Подвал */
.footer { background: var(--hz-navy); color: #C9D4EA; position: relative; }
.footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--hz-blue) 0%, var(--hz-lime) 100%);
}
.footer a { color: #B4C3E2; }
.footer a:hover { color: var(--hz-lime-light); }
.legal { border-top-color: rgba(255, 255, 255, .12); color: #8FA0C4; }

/* Адаптив */
@media (max-width: 1100px) {
  body.page-home .hero-slide { padding-right: 240px; }
  .hero-mascot { max-height: 250px; }
}
@media (max-width: 960px) {
  .hero-slide, body.page-home .hero-slide { padding: 22px 20px 52px; padding-right: 150px; min-height: 280px; }
  .hero-mascot { max-height: 200px; height: auto; width: 160px; right: 6px; }
  body.page-home .banner-hero { min-height: 280px; }
}
@media (max-width: 640px) {
  .topbar .wrap { gap: 14px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .topbar .wrap::-webkit-scrollbar { display: none; }
  .topbar .tb-price { display: none; }
  .hero-slide, body.page-home .hero-slide { padding: 20px 18px 132px; min-height: 0; }
  body.page-home .hero-slide h1, .hero-slide h1 { font-size: 24px; max-width: 14ch; }
  .hero-slide p { max-width: none; }
  .hero-mascot { width: 128px; max-height: 150px; right: 10px; bottom: 6px; }
  .hero-actions { max-width: calc(100% - 120px); }
  .hero-actions .btn { padding: 0 16px; }
  .hero-dots { bottom: 16px; }
}
@media (max-width: 960px) {
  .banner-sale::before { top: auto; bottom: 14px; right: 16px; width: 28px; height: 28px; }
  .banner-sale::after { top: auto; bottom: 16px; right: 52px; width: 14px; height: 14px; }
}

/* ===== Каталог Союзпластик (staging 2026-10-09): фото 4:3, плейсхолдер, мега-меню по дереву 1С, пагинация ===== */
.card-img, .product-photo { aspect-ratio: 4 / 3; background: #fff; }
.card-img img, .line-img img, .product-photo img { object-fit: contain; }
.page-home .home-grid .card-img { aspect-ratio: 4 / 3; height: auto; }
.product-photo { min-height: 0; }
.ph-photo {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px;
  background: linear-gradient(135deg, #EEF4FF 0%, #F6FBEA 100%); color: var(--hz-blue); font-weight: 700; font-size: 12px;
}
.ph-photo[hidden] { display: none; }
.ph-photo img { position: static !important; width: 38% !important; height: auto !important; max-width: 120px; opacity: .9; object-fit: contain; }
.ph-photo span { letter-spacing: .02em; opacity: .75; }
.line-img .ph-photo span { display: none; }
.sku .code { opacity: .7; }
.grid.is-loading { opacity: .45; pointer-events: none; transition: opacity .15s; }

/* мега-меню */
.mega { position: absolute; left: 0; right: 0; z-index: 60; }
.mega .wrap { grid-template-columns: 290px 1fr; min-height: 420px; max-height: min(78vh, 680px); }
.mega-cats { overflow-y: auto; }
.mega-cats button { display: flex; justify-content: space-between; gap: 8px; padding: 8px 16px; font-size: 14px; }
.mega-cats button small, .mega-cols small, .filter-cats small { color: var(--muted); font-weight: 500; font-size: 11px; }
.mega-cats button.active { color: var(--hz-blue); box-shadow: inset 3px 0 0 var(--hz-blue); }
.mega-cols { overflow-y: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; }
.mega-head { grid-column: 1 / -1; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.mega-head a { color: var(--hz-blue); }
.mega-col { break-inside: avoid; margin-bottom: 10px; }
.mega-cols a.mega-h { color: var(--ink); font-weight: 700; font-size: 14px; }
.mega-cols .mega-col a:not(.mega-h) { padding: 2px 0 2px 10px; font-size: 13px; }
.header { position: relative; }
@media (max-width: 860px) {
  .mega { position: fixed; top: 0; bottom: 0; overflow-y: auto; }
  .mega .wrap { grid-template-columns: 1fr; max-height: none; min-height: 100%; }
  .mega-cats { border-right: 0; border-bottom: 1px solid var(--line); max-height: 42vh; }
  .mega-cols { grid-template-columns: 1fr; }
  body.mega-open { overflow: hidden; }
}
.cats a.cats-hit { color: var(--hz-blue); }

/* плитки разделов на главной */
.home-cats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.home-cats a { padding: 10px 10px 12px; align-content: start; font-size: 13px; line-height: 1.25; }
.home-cats a img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: #F3F6FA; }
.home-cats a small { color: var(--muted); font-weight: 500; font-size: 11px; }
@media (max-width: 960px) { .home-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .home-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* фильтр-разделы */
.filter-cats { max-height: 420px; overflow-y: auto; }
.filter-cats a { display: flex; justify-content: space-between; gap: 6px; }
.filter-cats a.fc-up { color: var(--muted); font-size: 12px; }
.filter-cats a.fc-kid { padding-left: 18px; }
.brand-list { max-height: 260px; overflow-y: auto; }

/* пагинация */
.pager button[disabled] { opacity: .35; cursor: default; }
.pager-gap { align-self: center; color: var(--muted); padding: 0 2px; }

/* подсказки поиска */
.search-drop a.search-hit { display: flex; gap: 10px; align-items: center; }
.search-drop a.search-hit img, .search-drop .sh-ph { width: 48px; height: 36px; object-fit: contain; border-radius: 6px; background: #F3F6FA; flex: none; }
.search-drop a.search-hit small { display: block; }
.search-drop a.search-all { display: block; padding: 10px 14px; font-weight: 700; color: var(--hz-blue); border-top: 1px solid var(--line); }

/* карточка товара */
.product-layout { grid-template-columns: minmax(280px, 560px) 1fr; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs button { width: 84px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; cursor: pointer; }
.gallery-thumbs button.active { border-color: var(--hz-blue); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin-top: 20px; font-size: 14px; }
.product-facts dt { color: var(--muted); }
.product-meta a { color: var(--hz-blue); }
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; padding: 14px; } .product-main h1 { font-size: 22px; } }

/* --- staging fixes v27 --- */
body.page-home .home-view .home-cats { display: grid !important; }
body.page-home .home-view .home-block { display: block !important; margin-bottom: 26px; }
.filter-cats { flex-direction: column; flex-wrap: nowrap; }
.filter-cats a { white-space: normal; }
.mega .wrap { height: min(78vh, 680px); overflow: hidden; }
.mega-cats, .mega-cols { min-height: 0; overflow-y: auto; }
.mega-cols { display: block; columns: 3 220px; column-gap: 28px; }
.mega-head { column-span: all; }
.mega-col { display: inline-block; width: 100%; break-inside: avoid; }
.mega-top { display: none; }
.filters-toggle { all: unset; cursor: default; }
.filters-toggle span { display: none; }
@media (max-width: 860px) {
  .mega .wrap { display: block; height: auto; overflow: visible; }
  .mega-cats { max-height: none; overflow: visible; }
  .mega-cols { columns: 1; }
  .mega-top { display: flex; position: sticky; top: 0; z-index: 2; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--hz-blue); color: #fff; font-size: 17px; }
  .mega-top button { background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; padding: 4px 8px; cursor: pointer; }
  .filters-toggle { cursor: pointer; display: flex; justify-content: space-between; width: 100%; }
  .filters-toggle span { display: inline; }
  .filters .filter-group:not(:first-of-type), .filters [data-reset-filters] { display: none; }
  .filters.open .filter-group, .filters.open [data-reset-filters] { display: block; }
  .filters { max-height: none; }
  .filter-cats { max-height: 210px; }
}
/* компактные плитки разделов */
.home-cats { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.home-cats a { padding: 6px 6px 8px; font-size: 12px; gap: 4px; }
.home-cats a img { border-radius: 8px; }
@media (max-width: 1100px) { .home-cats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .home-cats { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 30%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .home-cats a { scroll-snap-align: start; }
}
.home-cats a img { height: auto; object-fit: contain; background: #fff; }

/* ═══ ТЗ клиента 2026-10 ═══ */
/* п.9/12 верхняя синяя лента */
.topbar .phone { margin-left: auto; }
.topbar .tb-mail, .topbar .tb-login { color: #fff; }
.topbar .tb-login { background: var(--hz-blue); padding: 4px 12px; border-radius: 999px; font-weight: 600; }
.topbar .tb-login:hover { background: var(--hz-blue-hover); color: #fff; }
.topbar .tb-price { color: var(--hz-lime-light); font-weight: 600; }
/* п.2 плотнее строки фильтров */
.filters .filter-cats a { padding: 5px 10px; line-height: 1.25; }
.filters label { padding: 2px 0; line-height: 1.25; }
.filter-group { padding: 10px 0; }
/* п.6 дерево разделов в фильтре: верхний уровень всегда виден, прокрутка */
.filter-cats.fc-tree { flex-direction: column; flex-wrap: nowrap; max-height: 380px; overflow-y: auto; overscroll-behavior: contain; }
.filter-cats.fc-tree a { white-space: normal; display: flex; justify-content: space-between; gap: 8px; }
.filter-cats.fc-tree a small { color: var(--muted); font-weight: 500; }
.filter-cats .fc-l1 { padding-left: 22px; font-weight: 500; }
.filter-cats .fc-l2 { padding-left: 34px; font-weight: 500; font-size: 12px; }
.filter-cats .fc-open { color: var(--hz-blue); }
.brand-list { max-height: 220px; overflow-y: auto; }
/* п.7 светофор */
.avail.ok { color: #2F7A1F; }
.avail.warn { color: #E07800; }
.avail.bad { color: #8B1E2D; }
/* п.5/8 карточка: строки на одном уровне, компактнее */
.card .card-img { aspect-ratio: 4 / 3; margin-bottom: 8px; }
.card .sku { min-height: 32px; line-height: 16px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 2px; }
.card .avail { min-height: 16px; line-height: 16px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card h3, .card-open h3 { min-height: 38px; }
.card .meta { margin: 4px 0 4px; }
.card .stock-slot { min-height: 22px; margin-bottom: 4px; }
.card .stock-slot .stock-note { display: inline-block; margin: 0; padding: 2px 8px; font-size: 12px; line-height: 18px; background: #F7E9EB; color: #8B1E2D; border-radius: 6px; }
.card .price-box { margin-top: auto; margin-bottom: 8px; }
.card .price { font-size: 20px; }
.qty-hint { min-height: 14px; }
/* п.17 центральный баннер — фиксированная высота для всех слайдов */
.banner-hero { height: 340px; min-height: 0 !important; touch-action: pan-y; user-select: none; }
.banner-hero .hero-slide { height: 100%; min-height: 0 !important; }
body.page-home .banner-hero { height: 340px; }
/* п.18/19 боковые баннеры в цветах сайта */
.banner-show { background: linear-gradient(135deg, #EAF7D6 0%, #D9F0B0 100%); border: 1px solid #CDE8A0; color: var(--hz-navy); }
.banner-show small { color: #3E6B0A; }
.banner-show b { font-size: 26px; color: var(--hz-navy); }
.banner-show .bs-sub { font-weight: 700; font-size: 13px; margin-top: 6px; }
.banner-show .bs-phones { display: flex; flex-direction: column; gap: 2px; font-weight: 700; font-size: 15px; }
.banner-show .bs-phones a { color: var(--hz-blue); }
.banner-show .bs-phones a:hover { color: var(--hz-blue-hover); }
.banner-info { background: var(--hz-navy); color: #fff; box-shadow: var(--shadow); justify-content: flex-start; gap: 10px; }
.banner-info b { color: #fff; font-size: 18px; }
.banner-info ul { list-style: none; display: grid; gap: 4px; font-size: 13px; color: #DCE6F7; }
.banner-info li::before { content: "✓"; color: var(--hz-lime); font-weight: 800; margin-right: 8px; }
.banner-info:hover { box-shadow: var(--shadow-md); }
/* п.1 вкладки Хиты / Акции / Новинки на главной */
.home-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.home-tabs .ht-tab { border: 1px solid var(--line-2); background: #fff; color: var(--hz-navy); font-weight: 800; font-size: 18px; padding: 6px 16px; border-radius: 999px; cursor: pointer; }
.home-tabs .ht-tab:hover { border-color: var(--hz-blue); color: var(--hz-blue); }
.home-tabs .ht-tab.is-on { background: var(--hz-blue); border-color: var(--hz-blue); color: #fff; }
.home-tabs [data-home-all] { margin-left: auto; }
/* п.14/15/20 инфо-страницы */
.contacts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.contacts-grid h3, .info-body h3 { font-size: 16px; margin: 16px 0 6px; color: var(--hz-navy); }
.contacts-grid h3:first-child { margin-top: 0; }
.map-box { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); min-height: 380px; }
.map-box iframe { width: 100%; height: 420px; border: 0; display: block; }
.dash-list { list-style: none; display: grid; gap: 4px; margin: 6px 0 12px; }
.dash-list li::before { content: "— "; color: var(--hz-blue); }
.disc-table { border-collapse: collapse; margin: 8px 0 16px; min-width: 320px; }
.disc-table th, .disc-table td { border: 1px solid var(--line); padding: 8px 14px; text-align: left; }
.disc-table th { background: var(--hz-blue); color: #fff; }
.disc-table tr:nth-child(even) td { background: #F3F6FA; }
.disc-table td:last-child { font-weight: 700; color: var(--hz-blue); }
.login-box { background: #EAF7D6; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.login-box .btn { width: auto; height: 36px; padding: 0 14px; }
.product-desc { margin-top: 16px; }
.product-desc p { color: var(--muted); line-height: 1.5; }
@media (max-width: 960px) {
  .banner-hero, body.page-home .banner-hero { height: 300px; }
  .contacts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .banner-hero, body.page-home .banner-hero { height: 400px; }
  .banner-hero .hero-slide, body.page-home .banner-hero .hero-slide { justify-content: flex-start; padding-bottom: 120px; }
  .banner-hero .hero-slide p { font-size: 14px; margin-bottom: 14px; }
  .topbar .phone { order: -1; margin-left: 0; }
  .topbar .tb-mail { display: none; }
  .home-tabs .ht-tab { font-size: 15px; padding: 5px 12px; }
  .home-tabs [data-home-all] { margin-left: 0; }
  .card .card-img { aspect-ratio: 1; }
}
.info-article:has(.contacts-grid) { max-width: none; width: 100%; }
