:root,
[data-theme="light"] {
  --bg: #e8eef4;
  --panel: #ffffff;
  --ink: #1a2332;
  --mute: #5a6a7c;
  --line: #cfd8e4;
  --blue: #2b7de9;
  --blue-d: #1a5fb8;
  --blue-soft: #e8f1fc;
  --red: #c62828;
  --green: #1b7a3d;
  --amber: #b86e00;
  --soft: #f3f7fb;
  --soft-2: #f7fafc;
  --side-nest: #c8d6e5;
  --side-nest-hover: #b9cada;
  --side-nest-cnt: #aebfd2;
  --menu-bg: #f2f6fa;
  --hover: #eef5fb;
  --photo-bg: #dfe7f0;
  --cart-bg: #fff4e5;
  --cart-line: #ffd19a;
  --stock-bg: #e8f6ee;
  --stock-wait-bg: #fff4e0;
  --badge-bg: rgba(255, 255, 255, 0.95);
  --origin-bg: #132033;
  --util-bg: #1e2a3a;
  --util-ink: #b8c4d4;
  --footer-bg: #0f1724;
  --footer-ink: #d7e0ec;
  --footer-mute: #9aa8bc;
  --footer-line: #243247;
  --footer-btn: #1a2536;
  --footer-btn-line: #2a3a52;
  --shadow: 0 10px 28px rgba(20, 40, 70, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.25);
  --font: "Golos Text", "Segoe UI", sans-serif;
  --head: "Russo One", sans-serif;
  --radius: 14px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0d1520;
  --panel: #162232;
  --ink: #e8eef6;
  --mute: #9aabc0;
  --line: #2a3b50;
  --blue: #3d9ad6;
  --blue-d: #5aafdf;
  --blue-soft: #1a3348;
  --red: #ff6b6b;
  --green: #4caf78;
  --amber: #e0a84a;
  --soft: #1a2838;
  --soft-2: #132030;
  --side-nest: #080e16;
  --side-nest-hover: #121c2a;
  --side-nest-cnt: #152030;
  --menu-bg: #121c2a;
  --hover: #1e3448;
  --photo-bg: #1e2c3c;
  --cart-bg: #2a2418;
  --cart-line: #6b5428;
  --stock-bg: #1a3228;
  --stock-wait-bg: #322818;
  --badge-bg: rgba(22, 34, 50, 0.92);
  --origin-bg: #0a121c;
  --util-bg: #080e16;
  --util-ink: #8fa0b5;
  --footer-bg: #080e16;
  --footer-ink: #d7e0ec;
  --footer-mute: #8fa0b5;
  --footer-line: #1c2a3c;
  --footer-btn: #152030;
  --footer-btn-line: #2a3b50;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light dark; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.45;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.site-main { flex: 1 0 auto; min-width: 0; }
.footer { flex-shrink: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1240px, calc(100% - 24px)); margin-inline: auto; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  will-change: transform;
}
.theme-toggle:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 18px rgba(11, 95, 154, 0.12);
}
.theme-toggle:active { transform: scale(0.97); }
.theme-switch {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3c96b 0%, #f0a93a 45%, #d98a1a 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: background 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-theme="dark"] .theme-switch {
  background: linear-gradient(135deg, #1a2740 0%, #243756 50%, #0f1a2c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.theme-orb {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
  transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.theme-orb-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.theme-orb-moon {
  opacity: 0.4;
  transform: scale(0.88) rotate(-12deg);
}
[data-theme="dark"] .theme-orb-sun {
  opacity: 0.35;
  transform: scale(0.88) rotate(16deg);
}
[data-theme="dark"] .theme-orb-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.theme-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8e8, #ffe3a3 55%, #f0c35a);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.55s ease;
  z-index: 2;
  will-change: transform;
}
[data-theme="dark"] .theme-thumb {
  transform: translateX(24px);
  background: radial-gradient(circle at 35% 30%, #f4f7fb, #c9d7ea 50%, #8fa8c4);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.theme-toggle .label-light { display: none; }
.theme-toggle .label-dark { display: inline; }
[data-theme="dark"] .theme-toggle .label-light { display: inline; }
[data-theme="dark"] .theme-toggle .label-dark { display: none; }
.head-theme {
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
}
.head-theme:hover { border-color: var(--blue); color: var(--blue); }
.head-mob-actions .head-theme {
  padding: 6px;
  min-width: 42px;
  min-height: 42px;
  justify-content: center;
  border-radius: 12px;
}
.head-mob-actions .head-theme .label-dark,
.head-mob-actions .head-theme .label-light { display: none !important; }

/* During theme wipe: freeze page color fades so only the circle runs */
html.theme-switching,
html.theme-switching *:not(.theme-switch):not(.theme-thumb):not(.theme-orb):not(.theme-reveal) {
  transition: none !important;
}

/* Circular theme wipe via View Transitions */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) {
  z-index: 9999;
  animation: theme-circle-in var(--theme-duration, 650ms) cubic-bezier(0.22, 1, 0.36, 1) both;
}
::view-transition-group(root) {
  animation-duration: var(--theme-duration, 650ms);
}
@keyframes theme-circle-in {
  from { clip-path: circle(0px at var(--theme-x, 50%) var(--theme-y, 40%)); }
  to { clip-path: circle(var(--theme-r, 150vmax) at var(--theme-x, 50%) var(--theme-y, 40%)); }
}

.theme-reveal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
  background: #0d1520;
  clip-path: circle(0px at var(--theme-x, 50%) var(--theme-y, 40%));
  transition: clip-path var(--theme-duration, 650ms) cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
  opacity: 1;
  will-change: clip-path, opacity;
}
.theme-reveal[data-to="light"] { background: #e8eef4; }
.theme-reveal.is-on {
  clip-path: circle(var(--theme-r, 150vmax) at var(--theme-x, 50%) var(--theme-y, 40%));
}
.theme-reveal.is-fade { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .theme-toggle,
  .theme-switch,
  .theme-orb,
  .theme-thumb,
  .theme-reveal { transition: none !important; animation: none !important; }
  ::view-transition-new(root) { animation: none !important; }
}

.util { background: var(--util-bg); color: var(--util-ink); font-size: 12px; }
.util-in { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; flex-wrap: wrap; align-items: center; }
.util-end { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.util-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.util a { color: #fff; text-decoration: none; }
.util a:hover { text-decoration: underline; }
.util-cny,
.util-fx {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.32);
  line-height: 1.2;
}
.util-fx-item { display: inline; }
.util-fx-sep { opacity: .7; font-weight: 500; }
[data-theme="dark"] .util-cny,
[data-theme="dark"] .util-fx {
  color: #f3f7fc;
  background: rgba(96, 165, 250, .28);
  border-color: rgba(147, 197, 253, .55);
}

.head { background: var(--panel); border-bottom: 3px solid var(--blue); position: sticky; top: 0; z-index: 40; }
.head-in {
  display: grid; grid-template-columns: minmax(220px, 320px) minmax(280px, 1fr) auto;
  gap: 14px; align-items: center; padding: 10px 0;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--head); font-size: 1.2rem; color: var(--ink);
  line-height: 1; text-decoration: none !important; min-width: 0;
}
.logo-img {
  height: 56px; width: auto; max-width: 280px; object-fit: contain; object-position: left center; display: block;
}
.logo-swap {
  display: grid;
  align-items: center;
}
.logo-swap .logo-img {
  grid-area: 1 / 1;
}
.logo-swap-mark { display: none; }
.logo-mark-img {
  height: 44px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
  object-position: center;
}
.logo-for-dark { display: none !important; }
[data-theme="dark"] .logo-for-light { display: none !important; }
[data-theme="dark"] .logo-for-dark { display: block !important; }
.logo-text { display: none; }
.menu-label-short { display: none; }
.logo small {
  display: block; font-family: var(--font); font-size: 11px; color: var(--mute);
  font-weight: 500; margin-top: 3px;
}
.phone-2 { font-size: 14px !important; font-weight: 600 !important; color: var(--ink) !important; opacity: 0.9; }
.max-btn,
.soc-btn.max {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff !important;
  border: 2px solid var(--blue);
  border-radius: 10px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none !important;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.max-btn:hover,
.soc-btn.max:hover {
  background: var(--blue-d);
  border-color: var(--blue-d);
  color: #fff !important;
}
[data-theme="dark"] .max-btn,
[data-theme="dark"] .soc-btn.max {
  background: #3d9ad6;
  border-color: #7ec4ef;
  color: #0a121c !important;
  box-shadow: 0 0 0 1px rgba(126, 196, 239, 0.45), 0 0 14px rgba(61, 154, 214, 0.35);
}
[data-theme="dark"] .max-btn:hover,
[data-theme="dark"] .soc-btn.max:hover {
  background: #5aafdf;
  border-color: #b6e0f8;
  color: #061018 !important;
}
.soc-btn.max { min-width: 40px; min-height: 40px; }
.home-mark-swap { display: grid; }
.home-mark-swap .home-mark { grid-area: 1 / 1; }
.home-mark {
  display: block; width: min(420px, 88vw); height: auto; margin: 0 0 16px;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.35));
}
/* Hero always sits on dark overlay — prefer light-on-dark mark */
.home-hero .logo-for-light { display: none !important; }
.home-hero .logo-for-dark { display: block !important; }
.search-wrap { position: relative; }
.search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 10px;
  overflow: visible;
  background: transparent;
  transition: box-shadow 0.2s ease;
}
.search:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 24%, transparent);
}
.search select,
.search input {
  border: 0;
  outline: 0;
  margin: 0;
  padding: 12px;
  background: var(--panel);
  color: var(--ink);
  border-radius: 0;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}
.search input {
  min-width: 0;
  border: 2px solid var(--blue);
  border-right: 0;
  border-radius: 10px 0 0 10px;
}
.search select {
  border-right: 1px solid var(--line);
  background: var(--soft);
  color: var(--mute);
}
.search button {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 2px solid var(--blue) !important;
  border-left: 0 !important;
  border-radius: 0 10px 10px 0 !important;
  padding: 12px 18px;
  background-color: var(--blue);
  background-image: none !important;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
  line-height: 1.2;
  box-shadow: none !important;
  outline: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.search button::before,
.search button::after { content: none !important; }
.search button::-moz-focus-inner { border: 0; padding: 0; }
.search button:hover {
  background: var(--blue-d);
  border-color: var(--blue-d) !important;
}
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); max-height: 420px; overflow: auto; z-index: 50;
}
.suggest-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--line); text-align: left;
  width: 100%; background: var(--panel); border-left: 0; border-right: 0; border-top: 0; color: inherit;
}
.suggest-item:hover, .suggest-item.active { background: var(--hover); }
.suggest-item img {
  width: 64px;
  height: auto;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  max-height: 100%;
  padding: 4px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: var(--photo-bg);
}
.suggest-item strong { display: block; font-size: 13px; margin-bottom: 2px; }
.suggest-item span { color: var(--mute); font-size: 12px; }
.suggest-item .price { font-weight: 700; white-space: nowrap; }
.suggest-item .price.price-ask {
  white-space: normal;
  text-align: right;
  max-width: 11ch;
  font-size: 12px;
  line-height: 1.2;
}
.suggest-empty { padding: 14px; color: var(--mute); }

.head-right { text-align: right; font-size: 12px; color: var(--mute); display: grid; justify-items: end; gap: 7px; }
.phone { display: block; font-size: 17px; font-weight: 700; color: var(--ink); text-decoration: none !important; }
.head-contacts {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--mute);
}
.head-contacts > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.head-contacts > div { display: flex; align-items: center; gap: 10px; }
.head-phone {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
}
.head-phone:hover { color: var(--blue); }
.head-phone-menu { position: relative; }
.head-phone-mobile {
  display: none;
  min-width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
}
.head-phone-mobile > span:first-child { font-size: 18px; }
.head-phone-popover {
  position: absolute;
  z-index: 70;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  min-width: 218px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: left;
}
.head-phone-popover[hidden] { display: none; }
.head-phone-popover strong {
  display: block;
  margin-bottom: 7px;
  color: var(--mute);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.head-phone-popover a {
  display: block;
  min-height: 44px;
  padding: 11px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none !important;
}
.head-phone-popover a:hover,
.head-phone-popover a:focus-visible {
  background: var(--hover);
  color: var(--blue);
}
.hours { display: block; margin: 2px 0 4px; }
.wa { display: inline-block; margin-right: 8px; font-weight: 600; }
.head-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.cart {
  display: inline-flex; align-items: center; background: var(--cart-bg); border: 1px solid var(--cart-line);
  padding: 5px 10px; border-radius: 8px; color: var(--ink); font-weight: 700; text-decoration: none !important;
}
.cart-count {
  margin-left: 0.5em;
  color: var(--blue);
  font-weight: 700;
}

.menu { background: var(--menu-bg); border-bottom: 1px solid var(--line); }
.menu-in {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.menu-in::-webkit-scrollbar { height: 3px; }
.menu-in::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.menu a {
  padding: 11px 14px; color: var(--ink); font-weight: 600; font-size: 13px;
  border-right: 1px solid var(--line); white-space: nowrap; text-decoration: none !important;
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.menu a:hover, .menu a.on { background: var(--panel); color: var(--blue); }

.layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 16px;
  margin-top: 18px; margin-bottom: 40px; align-items: start;
}
.catalog-page .main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
}
.side {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  position: sticky; top: 92px;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
}
.side-title {
  background: linear-gradient(135deg, var(--blue) 0%, #0b5f9a 100%);
  color: #fff; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em; padding: 14px 16px;
  flex-shrink: 0;
}
.cat-nav {
  overflow-y: auto;
  flex: 1;
  overscroll-behavior: contain;
}
.cat-section {
  border-bottom: 1px solid var(--line);
}
.cat-section:last-of-type { border-bottom: 0; }
.cat-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  background: color-mix(in srgb, var(--blue-soft) 55%, var(--panel));
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.cat-section-secondary .cat-section-head {
  background: color-mix(in srgb, var(--soft) 55%, var(--panel));
}
.cat-section.is-current .cat-section-head {
  background: var(--blue-soft);
}
.cat-section-heading {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 12px 8px 12px 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none !important;
}
.cat-section-secondary .cat-section-heading {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.cat-section-heading:hover { color: var(--ink); }
.cat-section.is-current .cat-section-heading { color: var(--blue); }
.cat-section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 64px;
  min-height: 44px;
  padding: 8px 14px 8px 8px;
  border: 0;
  background: transparent;
  color: var(--mute);
  cursor: pointer;
}
.cat-section-toggle:hover,
.cat-section-toggle:focus-visible {
  background: color-mix(in srgb, var(--soft) 70%, transparent);
  color: var(--blue);
  outline: 0;
}
.cat-section-toggle .cnt {
  background: var(--soft);
  color: var(--mute);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.cat-section.is-open .cat-section-toggle .cnt,
.cat-section.is-current .cat-section-toggle .cnt {
  background: var(--hover);
  color: var(--blue);
}
.section-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--mute);
  border-bottom: 2px solid var(--mute);
  transform: rotate(-45deg);
  transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.28, 1), border-color 0.2s ease;
  margin-top: -2px;
  flex-shrink: 0;
}
.cat-section.is-open .section-chevron,
.cat-section-toggle:focus-visible .section-chevron {
  transform: rotate(45deg);
  border-color: var(--blue);
}
.cat-section-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.22, 0.8, 0.28, 1);
}
.cat-section-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 0.8, 0.28, 1);
}
.cat-section.is-open .cat-section-body {
  grid-template-rows: 1fr;
}
.cat-section.is-open .cat-section-inner {
  opacity: 1;
  transform: translateY(0);
}
.cat-section-empty {
  padding: 12px 16px 14px;
  color: var(--mute);
  font-size: 12px;
}
.side-hint {
  padding: 12px 16px 14px;
  color: var(--mute);
  font-size: 12px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--panel);
}
.side-empty {
  padding: 18px 16px 20px;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.45;
}
.cat-brand {
  border-bottom: 1px solid var(--line);
}
.cat-section .cat-brand:last-child { border-bottom: 0; }
.cat-brand:last-child { border-bottom: 0; }
.catalog-section-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.catalog-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 0;
}
.catalog-section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.catalog-section-head h2 a {
  color: inherit;
  text-decoration: none !important;
}
.catalog-section-head h2 a:hover { color: var(--blue); }
.catalog-section-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none !important;
  white-space: nowrap;
}
.catalog-section-all:hover { text-decoration: underline !important; }
.catalog-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.catalog-category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none !important;
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.catalog-category-card:hover {
  border-color: var(--blue);
  background: var(--hover);
  color: var(--blue);
  transform: translateY(-1px);
}
.catalog-category-name { min-width: 0; overflow-wrap: anywhere; }
.brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}
.brand-btn, .motor-btn {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: 11px 14px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; align-items: center;
  color: var(--ink); text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.25s ease;
}
.brand-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 60px;
  justify-content: flex-end;
  padding: 8px 14px 8px 8px;
  border: 0;
  background: transparent;
  color: var(--mute);
  cursor: pointer;
}
.brand-toggle:hover,
.brand-toggle:focus-visible { background: var(--soft); color: var(--blue); outline: 0; }
.brand-count-only { align-self: center; margin-right: 14px; }
.brand-btn:hover, .motor-btn:hover { background: var(--soft); }
.brand-btn.on, .motor-btn.on { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.brand-btn-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-btn-logo {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
  border-radius: 5px;
  padding: 2px;
  background: #fff;
}
.brand-btn-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.brand-btn .cnt, .brand-toggle .cnt, .brand-count-only, .motor-btn .cnt {
  background: var(--soft); color: var(--mute); font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.brand-btn.on .cnt, .brand-toggle[aria-expanded="true"] .cnt, .motor-btn.on .cnt { background: var(--hover); color: var(--blue); }
.cat-brand.is-open .brand-toggle .cnt { transform: scale(1.05); }
.brand-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--mute);
  border-bottom: 2px solid var(--mute);
  transform: rotate(-45deg);
  transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.28, 1), border-color 0.2s ease;
  margin-top: -2px;
}
.cat-brand.is-open .brand-chevron,
.brand-toggle:focus-visible .brand-chevron {
  transform: rotate(45deg);
  border-color: var(--blue);
}
.motors-inline {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.22, 0.8, 0.28, 1);
  background: var(--side-nest);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 8%, transparent);
}
.motors-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 0.8, 0.28, 1);
}
.cat-brand.is-open .motors-inline {
  grid-template-rows: 1fr;
}
.cat-brand.is-open .motors-inner {
  opacity: 1;
  transform: translateY(0);
}
.motors-inline .motor-btn {
  padding: 9px 14px 9px 26px;
  font-size: 13px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  position: relative;
  background: transparent;
  color: var(--ink);
}
.motors-inline .motor-btn .cnt {
  background: var(--side-nest-cnt);
  color: color-mix(in srgb, var(--ink) 72%, var(--mute));
}
.motors-inline .motor-btn:hover {
  background: var(--side-nest-hover);
  padding-left: 30px;
}
.motors-inline .motor-btn.on {
  background: var(--blue-soft);
  color: var(--blue);
}
.motors-inline .motor-btn.on .cnt {
  background: var(--hover);
  color: var(--blue);
}
.motors-inline .motor-btn::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mute);
  transform: translateY(-50%);
  opacity: 0.55;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.motors-inline .motor-btn:hover::before,
.motors-inline .motor-btn.on::before {
  background: var(--blue);
  opacity: 1;
}

.main { min-width: 0; }

/* Breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 8px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(15, 40, 70, 0.04));
}
.crumb-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--mute);
  text-decoration: none !important;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
  max-width: 100%;
}
a.crumb-item:hover {
  background: var(--soft);
  color: var(--blue);
}
.crumb-item.is-current {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 750;
}
.crumb-ico {
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
  opacity: 0.85;
}
.crumb-ico::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 4px;
  border-top: 1.5px solid currentColor;
  box-shadow: 0 3px 0 currentColor;
}
.crumb-sep {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--mute);
  border-bottom: 1.5px solid var(--mute);
  transform: rotate(-45deg);
  opacity: 0.45;
  flex-shrink: 0;
  margin: 0 2px;
}

.crumb { color: var(--mute); font-size: 12px; margin-bottom: 8px; }
.crumb a { color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  .motors-inline,
  .motors-inner,
  .brand-chevron,
  .section-chevron,
  .cat-section-body,
  .cat-section-inner,
  .brand-btn,
  .motor-btn,
  .brand-btn .cnt {
    transition: none !important;
  }
  .motors-inner,
  .cat-section-inner {
    transform: none !important;
  }
}

.toolbar {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: start;
  box-shadow: var(--shadow);
}
.toolbar-title-row { display: flex; align-items: center; gap: 12px; }
.catalog-brand-header-logo {
  width: 64px;
  height: 44px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  padding: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.catalog-brand-header-logo img { width: 100%; height: 100%; object-fit: contain; }
.toolbar h1 { font-size: 22px; line-height: 1.2; margin-bottom: 4px; }
.sub { color: var(--mute); max-width: 60ch; }
.view-tog { display: flex; gap: 6px; flex-shrink: 0; }
.view-tog button {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 7px 12px; border-radius: 8px; cursor: pointer; font-weight: 600;
}
.view-tog button.on, .view-tog button:hover { border-color: var(--blue); color: var(--blue); background: var(--hover); }

.motors-panel {
  background: color-mix(in srgb, var(--soft-2) 78%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--line) 70%, var(--blue));
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: 16px; margin-bottom: 12px;
}
.motors-panel h2 { font-size: 15px; margin-bottom: 12px; color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em; }
.motors { display: flex; flex-wrap: wrap; gap: 8px; }
.motors .motor-chip {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; font-weight: 600;
}
.motors .motor-chip.on, .motors .motor-chip:hover { border-color: var(--blue); background: var(--hover); color: var(--blue); }

.catalog-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.catalog-brand-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 72px;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none !important;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.catalog-brand-card.no-logo { grid-template-columns: minmax(0, 1fr) auto; }
.catalog-brand-logo {
  width: 56px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.catalog-brand-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.catalog-brand-card:hover {
  border-color: var(--blue);
  background: var(--hover);
  color: var(--blue);
  transform: translateY(-1px);
}
.catalog-brand-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
.catalog-brand-count {
  flex-shrink: 0;
  background: var(--soft);
  color: var(--mute);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.catalog-brand-card:hover .catalog-brand-count { background: var(--blue-soft); color: var(--blue); }

.catalog-motor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}
.catalog-motor-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 72%, var(--soft));
  color: var(--ink);
  text-decoration: none !important;
  font-weight: 600;
}
.catalog-motor-item:hover { border-color: var(--blue); background: var(--hover); color: var(--blue); }
.catalog-motor-photo,
.motor-chip-photo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--soft);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.motor-chip-photo { width: 36px; height: 36px; border-radius: 6px; }
.catalog-motor-photo img,
.motor-chip-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.catalog-motor-ph,
.motor-chip-ph {
  font-size: 11px;
  font-weight: 700;
  color: var(--mute);
  letter-spacing: .04em;
}
.catalog-motor-name { flex: 1; min-width: 0; }
.catalog-motor-item .cnt {
  background: var(--soft);
  color: var(--mute);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
  margin-left: auto;
}
.motor-chip.has-photo,
.motor-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.motor-chip-text { white-space: nowrap; }

.hide-desktop { display: none; }

.chip {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 999px;
  padding: 7px 12px; cursor: pointer; font-weight: 600; font-size: 13px;
}
.chip.on, .chip:hover { border-color: var(--blue); color: var(--blue); background: var(--hover); }

.cards {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.cards.list { grid-template-columns: 1fr; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  text-align: left; width: 100%; color: inherit;
}
.card-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  color: inherit;
  text-decoration: none !important;
  cursor: pointer;
}
.cards.list .card { flex-direction: row; align-items: stretch; min-height: 160px; }
.card:hover { box-shadow: var(--shadow); border-color: var(--blue); transform: translateY(-2px); }
.card-photo {
  position: relative; aspect-ratio: 4 / 3; background: var(--photo-bg);
  overflow: hidden;
  touch-action: pan-y;
}
.card-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 6px;
  object-fit: contain;
  object-position: center;
  background: var(--photo-bg);
  display: block;
}
.cards.list .card-photo { width: 200px; flex-shrink: 0; aspect-ratio: auto; min-height: 160px; }
.badge-mfr {
  position: absolute; left: 10px; bottom: 10px;
  background: var(--badge-bg); border: 1px solid var(--line);
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em; padding: 4px 8px; border-radius: 6px; color: var(--mute);
}
.badge-stock {
  position: absolute; top: 10px; right: 10px;
  background: var(--stock-bg); color: var(--green); font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: 6px;
}
.badge-stock.wait { background: var(--stock-wait-bg); color: var(--amber); }
.card-body { padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-body h3 { font-size: 15px; line-height: 1.25; }
.art { font-size: 12px; color: var(--mute); }
.art b { color: var(--ink); font-family: ui-monospace, Consolas, monospace; }
.card-qty { font-size: 12px; color: var(--mute); }
.card-qty b { color: var(--ink); font-weight: 700; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: var(--soft); color: var(--mute); font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px;
}
.tag-mfr {
  color: var(--ink);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 70%, var(--soft));
  font-weight: 700;
}
.desc { color: var(--mute); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding: 0 12px 14px; }
.price { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.price-ask {
  font-weight: 700;
  letter-spacing: 0;
  color: var(--amber);
  font-size: 0.92em;
  line-height: 1.25;
  max-width: 18ch;
}
.product-buy-price.price-ask,
.price.lg.price-ask {
  max-width: none;
  font-size: 1.05em;
}
.btn {
  border: 0; background: var(--blue); color: #fff; font-weight: 700;
  padding: 10px 14px; border-radius: 10px; cursor: pointer;
}
.btn:hover { background: var(--blue-d); }
.btn.ghost { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn.sm { padding: 8px 12px; font-size: 13px; }
.card .btn.sm {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-buy {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}
.cart-buy-add { margin: 0; }
.cart-buy-btn { white-space: nowrap; }
/* Author display rules beat the UA [hidden] stylesheet — force hide. */
.cart-buy-add[hidden],
.qty-stepper[hidden],
.cart-buy-fallback[hidden] {
  display: none !important;
}
.product-actions .cart-buy { width: 100%; }
.product-actions .cart-buy-add,
.product-actions .cart-buy-btn { width: 100%; }
.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
  min-height: 40px;
}
.qty-stepper-form { margin: 0; display: flex; }
.qty-stepper-btn {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  cursor: pointer;
}
.qty-stepper-btn:hover:not(:disabled) { background: var(--soft); color: var(--blue); }
.qty-stepper-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-stepper-val {
  min-width: 2.2ch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.cart-buy--sm .qty-stepper { min-height: 40px; border-radius: 8px; }
.cart-buy--sm .qty-stepper-btn { min-width: 36px; min-height: 40px; font-size: 16px; }
.product-actions .qty-stepper {
  width: 100%;
  min-height: 48px;
}
.product-actions .qty-stepper-btn {
  flex: 1;
  min-height: 48px;
}
.product-actions .qty-stepper-val {
  min-width: 3rem;
  font-size: 1.05rem;
}
.cart-buy.is-busy { opacity: 0.65; pointer-events: none; }
.card-scrubber-indicator {
  position: absolute;
  z-index: 3;
  left: 8px;
  right: 8px;
  bottom: 7px;
  display: flex;
  gap: 3px;
  pointer-events: none;
}
.card-scrubber-indicator i {
  height: 3px;
  flex: 1;
  max-width: 32px;
  border-radius: 999px;
  background: rgba(34, 48, 65, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
}
.card-scrubber-indicator i.is-active { background: var(--blue); }
.card-scrubber-indicator i.is-broken { opacity: 0.25; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 8px;
  padding: 10px 0 4px;
}
.pager-meta {
  color: var(--mute);
  font-size: 14px;
}

.empty {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 48px 28px; text-align: center; color: var(--mute);
  box-shadow: var(--shadow);
}
.empty b { color: var(--ink); }
.empty .btn { margin-top: 14px; display: inline-flex; }
.empty-guest {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 280px;
  align-content: center;
}
.empty-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
  font-size: 26px; margin-bottom: 4px;
}
.empty-title {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
}
.empty-text {
  max-width: 36em;
  margin: 0;
  line-height: 1.5;
  font-size: 15px;
}
.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}
.empty-actions .btn {
  margin-top: 0;
  text-decoration: none !important;
}

.order-items { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.order-items li { margin-bottom: 4px; }

.about-hero {
  position: relative;
  min-height: min(42vh, 360px);
  display: grid;
  align-items: end;
  background: linear-gradient(135deg, #0b1a2e 0%, #1a3a5c 45%, #2b7de9 140%);
  color: #fff;
}
.about-hero-in { position: relative; z-index: 1; padding: 40px 0 32px; max-width: 720px; }
.about-hero h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; color: #fff; }
.about-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-panel-head h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}
.about-panel-head p {
  margin: 0;
  color: var(--mute);
  font-size: 14px;
}
.about-delivery {
  color: var(--mute);
  margin: 0;
  line-height: 1.55;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.about-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.req-stack {
  display: grid;
  gap: 12px;
}
.req-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft-2);
  overflow: hidden;
}
.req-card-title {
  margin: 0;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  border-bottom: 1px solid var(--line);
}
.req-list {
  margin: 0;
  padding: 4px 0;
}
.req-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 8px 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.req-row:last-child { border-bottom: 0; }
.req-row dt {
  margin: 0;
  color: var(--mute);
  font-size: 12px;
  font-weight: 600;
  padding-top: 2px;
}
.req-row dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.req-mono {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  word-break: break-all;
}
.req-links {
  display: grid !important;
  gap: 4px;
}
.req-links a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.req-links a:hover { text-decoration: underline; }
.req-copy {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--mute);
  border-radius: 8px;
  padding: 4px 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.req-copy:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.req-copy.is-ok {
  border-color: var(--green);
  color: var(--green);
}

.contacts {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; margin-bottom: 24px;
}
.contacts h2 { font-size: 22px; margin-bottom: 6px; }
.contacts > p { color: var(--mute); margin-bottom: 14px; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.contact-grid a {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  color: var(--ink); text-decoration: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  background: var(--panel);
}
.contact-grid a:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.contact-grid small { display: block; color: var(--mute); font-size: 11px; margin-bottom: 4px; }
.contact-grid strong { font-size: 14px; }

.footer { background: var(--footer-bg); color: var(--footer-mute); padding: 48px 0 120px; margin-top: 8px; }
.footer a { color: var(--footer-ink); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 28px 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--footer-line);
}
.footer-logo {
  font-family: var(--head); font-size: 1.6rem; color: #fff !important;
  display: inline-block; margin-bottom: 10px; letter-spacing: 0.02em;
}
.footer-logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(260px, 80vw);
  object-fit: contain;
  object-position: left center;
}
.footer-brand p,
.footer-about {
  max-width: 42ch;
  line-height: 1.5;
  margin-bottom: 18px;
  font-size: 14px;
}
.footer-legal {
  display: grid;
  gap: 4px;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--footer-mute);
  opacity: 0.9;
}
.footer-legal span { font-size: inherit; }
.soc { display: flex; flex-wrap: wrap; gap: 10px; }
.soc-btn {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--footer-btn); border: 1px solid var(--footer-btn-line);
  color: #e8eef7 !important; transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.soc-btn svg { width: 20px; height: 20px; }
.soc-btn:hover { transform: translateY(-2px); border-color: transparent; color: #fff !important; }
.soc-btn:focus-visible {
  outline: 3px solid #7ec4ef;
  outline-offset: 3px;
}
.soc-btn.drom-text {
  width: auto;
  min-width: 64px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}
.soc-btn.wa:hover { background: #25d366; }
.soc-btn.tg:hover { background: #2aabee; }
.soc-btn.vk:hover { background: #0077ff; }
.soc-btn.avito:hover { background: #8f5ce8; }
.soc-btn.drom:hover { background: #e53935; }
.soc-btn.mail:hover { background: var(--blue); }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col h4 {
  color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px; font-weight: 700;
}
.footer-col a, .footer-col span { font-size: 14px; }
.footer-phone { font-size: 17px !important; font-weight: 700; color: #fff !important; }
.footer-bottom {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex-wrap: wrap;
  padding-top: 18px; margin-top: 8px; border-top: 1px solid var(--footer-line);
  font-size: 12px; width: 100%;
}
.footer-bottom-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  width: 100%;
}
.ym-informer {
  display: inline-flex; line-height: 0; opacity: 0.92;
}
.ym-informer img {
  display: block; width: 88px; height: 31px; border: 0;
}
.footer-disclaimer {
  display: block;
  margin: 0;
  max-width: 72rem;
  width: 100%;
  font-size: 12.5px;
  line-height: 1.5;
  color: #c8d4e4;
  opacity: 1;
}
.footer-note { opacity: 0.75; }

.modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 920px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 32px);
  margin: 0;
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}
.modal[open] { display: block; }
.modal::backdrop { background: rgba(12, 20, 32, 0.55); }
.modal-card {
  background: var(--panel); border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.product-grid { display: grid; grid-template-columns: 1.05fr 1fr; }
.product-photo {
  min-height: 360px; background: var(--photo-bg); position: relative;
}
.product-photo .badge-mfr { font-size: 12px; }
.product-info { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.product-info h2 { font-size: 24px; line-height: 1.2; }
.product-info .x {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; font-size: 22px; line-height: 1;
}
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 10px; font-size: 13px; margin: 6px 0; }
.kv span { color: var(--mute); }
.kv b { font-family: ui-monospace, Consolas, monospace; }
.product-desc { color: var(--mute); font-size: 14px; }
.product-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.legal-card { padding: 0; }
.legal-card header, .legal-card footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.legal-card footer { border-bottom: 0; border-top: 1px solid var(--line); justify-content: flex-end; }
.legal-body { padding: 16px 18px; color: var(--mute); max-height: min(70vh, 640px); overflow: auto; }
.legal-body h3 { color: var(--ink); margin: 14px 0 6px; font-size: 15px; }
.legal-body p { margin-bottom: 8px; }
.legal-body ul { margin: 6px 0 12px 18px; }
.legal-body li { margin-bottom: 4px; }
.legal-body a { color: var(--blue); }
.legal-card .x { border: 0; background: transparent; font-size: 24px; cursor: pointer; }

.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  max-width: 720px; margin-inline: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 14px 16px;
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
}
.cookie[hidden] { display: none !important; }
.cookie p { font-size: 13px; color: var(--mute); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* --- additions for Flask storefront --- */
.card { text-decoration: none !important; color: inherit; }
.brand-btn, .motor-btn { text-decoration: none !important; color: inherit; }
a.brand-btn, a.motor-btn { display: flex; }
.badge-mfr.watermark {
  background: var(--badge-bg); backdrop-filter: blur(2px);
  box-shadow: var(--shadow); font-size: 12px; letter-spacing: 0.08em;
}
.badge-condition {
  position: absolute; top: 12px; left: 12px;
  z-index: 3;
  background: var(--origin-bg); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: 6px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(8, 16, 28, 0.18);
}
/* Product gallery: condition badge top-left, enlarge hint bottom-right — clear opposite corners. */
.product-photo .badge-condition {
  top: 16px;
  left: 16px;
  right: auto;
  bottom: auto;
}
.filters.filter-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 4px;
}
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--blue) 0%, #0b5f9a 100%);
  color: #fff;
}
.filter-title {
  margin: 0;
  font-family: var(--head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}
.filter-reset {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.filter-reset:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
.filter-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 14px;
}
.filter-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.filter-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.filter-field--price {
  grid-column: 1 / -1;
}
.filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--mute);
  letter-spacing: 0.01em;
}
.filter-control {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--soft-2);
  color: var(--ink);
  line-height: 1.2;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.filter-control:hover {
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
  background: var(--panel);
}
.filter-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
  background: var(--panel);
}
.filter-select {
  appearance: none;
  padding-right: 36px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--mute) 50%),
    linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 2px),
    calc(100% - 12px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.filter-select:focus {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--blue) 50%),
    linear-gradient(135deg, var(--blue) 50%, transparent 50%);
}
.filter-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft-2);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.filter-price-row:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
  background: var(--panel);
}
.filter-price-cell {
  display: grid;
  gap: 4px;
  padding: 8px 10px 10px;
  min-width: 0;
}
.filter-price-hint {
  font-size: 11px;
  font-weight: 700;
  color: var(--mute);
  text-transform: lowercase;
}
.filter-price-cell .filter-control {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.filter-price-cell .filter-control:hover,
.filter-price-cell .filter-control:focus {
  border: 0;
  box-shadow: none;
  background: transparent;
}
.filter-price-sep {
  align-self: stretch;
  width: 1px;
  background: var(--line);
  margin: 10px 0;
}
.filter-actions {
  display: flex;
  justify-content: stretch;
}
.filter-apply {
  width: 100%;
  min-height: 44px;
  padding: 11px 16px;
  font-size: 14px;
  border-radius: 10px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--blue) 24%, transparent);
}
.filter-apply:hover {
  box-shadow: 0 10px 24px color-mix(in srgb, var(--blue) 30%, transparent);
}
.btn.sm { padding: 8px 12px; font-size: 13px; }
.product-page, .cart-page, .about-page, .doc-page { padding: 18px 0 40px; }
.product-page.is-content-protect {
  -webkit-user-select: none;
  user-select: none;
}
.product-page.is-content-protect input,
.product-page.is-content-protect textarea,
.product-page.is-content-protect button,
.product-page.is-content-protect a {
  -webkit-user-select: auto;
  user-select: auto;
}
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.product-gallery.is-empty .product-thumbs { display: none; }
.product-gallery.is-empty .photo-zoom-hint { display: none; }
.product-gallery.is-empty .product-photo-open {
  cursor: default;
  pointer-events: none;
}
.product-gallery.is-empty .product-photo-img,
.card-photo.is-empty .card-photo-img,
img.is-broken-photo {
  display: none !important;
}
.product-thumb[hidden] { display: none !important; }
.card-scrubber-indicator i.is-broken,
.card-scrubber-indicator i[hidden] { display: none; }
.product-photo.big {
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  max-height: min(70vh, 680px);
  background: var(--photo-bg);
  position: relative;
  overflow: hidden;
}
.product-photo-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.product-photo-open:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
/* Decorative overlays must not steal clicks from the enlarge control. */
.product-photo-open > * {
  pointer-events: none;
}
.product-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: clamp(14px, 2.2vw, 28px);
  object-fit: contain;
  object-position: center;
  background: var(--photo-bg);
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}
.photo-zoom-hint {
  position: absolute;
  top: auto;
  left: auto;
  right: 16px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 18, 28, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(8, 16, 28, 0.22);
  z-index: 3;
  pointer-events: none;
}

/* --- Product photo watermark (disabled — never show overlay) --- */
.photo-wm {
  display: none !important;
  pointer-events: none;
}

.product-thumbs {
  display: flex;
  gap: 12px;
  padding: 14px 14px 16px;
  overflow-x: auto;
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.product-thumb {
  flex: 0 0 84px;
  width: 84px;
  height: auto;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 10px;
  background: var(--photo-bg);
  cursor: pointer;
}
.product-thumb.is-active,
.product-thumb:focus-visible { border-color: var(--blue); outline: 0; }
.product-thumb img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 4px;
  object-fit: contain;
  object-position: center;
  background: var(--photo-bg);
}
.product-info-page {
  padding: 32px 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.product-buy-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.product-buy-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -2px;
}
.mfr-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line));
  background: color-mix(in srgb, var(--blue-soft) 55%, var(--panel));
  line-height: 1.25;
}
.mfr-chip--inline {
  padding: 2px 8px;
  vertical-align: baseline;
}
.mfr-chip-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--mute);
  letter-spacing: 0.01em;
}
.mfr-chip-value {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  word-break: break-word;
}
.product-meta-row--mfr dd {
  font-weight: 800;
}
.product-fits {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 88%, var(--bg));
}
.product-fits-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.product-fits-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.product-fits-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 0.92rem;
  line-height: 1.35;
}
.product-fits-label {
  color: var(--muted);
  font-weight: 600;
}
.product-fits-value {
  font-weight: 700;
  color: var(--ink);
}
.product-buy-title,
.product-info-page h1 {
  font-family: var(--font);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.product-buy-price,
.price.lg {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}
.product-info-page .product-stock {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border: 1px solid color-mix(in srgb, var(--green) 22%, transparent);
  background: var(--stock-bg);
  color: var(--green);
}
.product-info-page .product-stock.wait {
  border-color: color-mix(in srgb, var(--amber) 28%, transparent);
  background: var(--stock-wait-bg);
  color: var(--amber);
}
.product-stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}
.product-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  max-width: 28rem;
  min-width: 0;
}
.product-meta-row {
  display: grid;
  grid-template-columns: 8.75em minmax(0, 1fr);
  gap: 4px 12px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  min-width: 0;
}
.product-meta-row:nth-child(even) {
  padding-left: 0;
  padding-right: 0;
}
.product-meta-row--wide {
  grid-column: auto;
  padding-left: 0;
  padding-right: 0;
}
.product-meta-row:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}
.product-meta dt {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--mute);
  line-height: 1.35;
}
.product-meta dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.product-meta-row--wide dd {
  line-height: 1.4;
  letter-spacing: 0.005em;
}
.product-meta-sku {
  font-family: ui-monospace, Consolas, "Cascadia Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.product-info-page .product-desc {
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  opacity: 0.9;
}
.product-info-page .product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
  padding-top: 8px;
  align-items: stretch;
}
.product-info-page .product-actions .cart-buy {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  gap: 12px;
  justify-content: flex-start;
}
.product-info-page .product-actions .cart-buy-add,
.product-info-page .product-actions .cart-buy-btn {
  width: auto;
  min-width: 9.5rem;
}
.product-info-page .product-actions .qty-stepper {
  width: auto;
  min-width: 8.5rem;
  min-height: 48px;
  border-radius: 12px;
  background: var(--soft);
  border-color: color-mix(in srgb, var(--line) 70%, var(--ink) 30%);
}
.product-info-page .product-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 12px;
  white-space: nowrap;
}
.product-info-page .product-actions .product-actions-call,
.product-info-page .product-actions .product-actions-secondary {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  background: var(--soft);
  border: 1px solid color-mix(in srgb, var(--line) 65%, var(--ink) 35%);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--panel) 55%, transparent);
}
.product-info-page .product-actions .product-actions-call:hover,
.product-info-page .product-actions .product-actions-secondary:hover {
  background: var(--hover);
  border-color: color-mix(in srgb, var(--blue) 40%, var(--line));
  color: var(--ink);
  text-decoration: none;
}
.product-info-page .product-actions .product-actions-secondary {
  border-color: color-mix(in srgb, var(--blue) 28%, var(--line));
}
.product-info-page .product-actions .qty-stepper-btn {
  min-height: 48px;
  flex: 1;
  min-width: 2.5rem;
}
.product-actions-primary { width: 100%; }
.product-actions-secondary { width: auto; }
.similar-products { margin-top: 28px; }
.similar-products h2 { margin-bottom: 14px; font-size: 22px; }
.similar-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.similar-cards .card-photo { aspect-ratio: 1.25 / 1; }
.similar-cards .card-body h3 { font-size: 14px; }
.similar-cards .price { font-size: 18px; }

body.lightbox-open { overflow: hidden; overscroll-behavior: none; touch-action: none; }
.photo-lightbox[hidden] { display: none; }
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: rgba(4, 9, 15, 0.94);
  padding:
    max(clamp(12px, 2vw, 24px), env(safe-area-inset-top))
    max(clamp(12px, 2vw, 24px), env(safe-area-inset-right))
    max(clamp(12px, 2vw, 24px), env(safe-area-inset-bottom))
    max(clamp(12px, 2vw, 24px), env(safe-area-inset-left));
}
.photo-lightbox-stage {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, calc(100vw - clamp(112px, 16vw, 220px)));
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - clamp(72px, 12vh, 104px));
  max-height: calc(100dvh - clamp(72px, 12dvh, 104px));
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.photo-lightbox-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - clamp(72px, 12vh, 104px));
  max-height: calc(100dvh - clamp(72px, 12dvh, 104px));
  object-fit: contain;
  object-position: center;
}
.photo-lightbox-close,
.photo-lightbox-nav {
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
}
.photo-lightbox-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 2;
  width: 46px;
  height: 46px;
  font-size: 30px;
}
.photo-lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 64px;
  font-size: 42px;
  transform: translateY(-50%);
}
.photo-lightbox-prev { left: max(12px, env(safe-area-inset-left)); }
.photo-lightbox-next { right: max(12px, env(safe-area-inset-right)); }
.photo-lightbox-count {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 3;
  transform: translateX(-50%);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 12px;
}
.order-form, .card-like { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 10px; margin-top: 16px; max-width: 640px; }
.order-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--mute); }
.order-form input, .order-form select, .order-form textarea { border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; color: var(--ink); background: var(--panel); }
.order-form .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 2px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
}
.order-form .check input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.05em;
  height: 1.05em;
  margin: 0.2em 0 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.order-form .check-text {
  flex: 1;
  min-width: 0;
}
.order-form .check a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.order-form .check a:hover {
  text-decoration-thickness: 2px;
}
.vin-page {
  max-width: 640px;
  margin: 0 auto;
  padding-top: 28px;
  padding-bottom: 48px;
  text-align: center;
}
.vin-page h1 { margin-bottom: 10px; }
.vin-page .sub { margin: 0 auto 8px; max-width: 36em; }
.vin-page .order-form {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  width: 100%;
}
.file-field {
  display: grid;
  gap: 6px;
  text-align: left;
}
.file-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
}
.file-drop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 0;
  padding: 22px 18px;
  border: 1.5px dashed var(--blue);
  border-radius: 14px;
  background: var(--blue-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.file-drop:hover,
.file-drop.is-drag {
  border-style: solid;
  background: var(--hover);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
}
.file-drop.is-ready {
  border-style: solid;
  border-color: var(--green);
  background: var(--stock-bg);
}
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
}
.file-drop-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 2px;
}
.file-drop-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}
.file-drop-hint {
  color: var(--mute);
  font-size: 12px;
  font-weight: 500;
}
.file-drop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}
.file-drop-name {
  margin-top: 4px;
  color: var(--mute);
  font-size: 12px;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-drop.is-ready .file-drop-name {
  color: var(--green);
}
.cart-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.table.goods { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); color: var(--ink); }
.table.goods th, .table.goods td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.table.goods input {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px;
  background: var(--panel); color: var(--ink);
}
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: stretch; padding: 24px 0; }
.about-photo { min-height: 360px; border-radius: 18px; background: var(--photo-bg) center/cover; }
.doc-page { padding: 18px 0 48px; max-width: 1100px; }
.doc-head { margin: 10px 0 18px; }
.doc-page h1 { margin: 0 0 8px; color: var(--ink); font-size: clamp(1.6rem, 3vw, 2rem); }
.doc-lead {
  margin: 0;
  color: var(--ink);
  opacity: 0.78;
  font-size: 16px;
  line-height: 1.45;
  max-width: 40em;
}
.doc-body {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  box-shadow: var(--shadow);
}
.doc-body-plain {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}
.doc-body h3 { color: var(--ink); margin: 18px 0 8px; font-size: 1.05rem; }
.doc-body p { margin: 0 0 12px; color: var(--ink); opacity: 0.88; }
.doc-body a { color: var(--blue); font-weight: 600; }
.doc-body strong, .doc-body b { color: var(--ink); font-weight: 800; }

.articles-page { padding: 18px 0 48px; }
.articles-head { margin-bottom: 22px; }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.article-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
}
.article-card-cover {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--cover) center/cover no-repeat, var(--panel-2, #e8edf3);
}
.article-card-cover-empty {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue) 18%, transparent), transparent 60%),
    var(--panel-2, #e8edf3);
}
.article-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
}
.article-card-body time {
  font-size: 12px;
  color: var(--mute);
}
.article-card-body strong {
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink);
}
.article-card-excerpt {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  opacity: 0.78;
}

.article-page { padding: 18px 0 48px; max-width: 860px; }
.article-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 4px 0 14px;
  font-size: 13px;
  color: var(--mute);
}
.article-crumbs a { color: var(--blue); text-decoration: none; font-weight: 600; }
.article-date {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--mute);
}
.article-cover {
  margin: 0 0 18px;
  border-radius: 16px;
  aspect-ratio: 21 / 9;
  background: var(--cover) center/cover no-repeat, var(--panel-2, #e8edf3);
  border: 1px solid var(--line);
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.article-back { margin-top: 22px; }
.article-back a { color: var(--blue); font-weight: 600; text-decoration: none; }

@media (max-width: 980px) {
  .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; }
  .article-cover { aspect-ratio: 16 / 9; }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  min-height: 100%;
  border-top: 4px solid var(--blue);
}
.info-card-pay { border-top-color: #2b7de9; }
.info-card-ship { border-top-color: #1b7a3d; }
.info-card-pickup { border-top-color: #b86e00; }
.info-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  background: var(--blue-soft);
  color: var(--blue);
}
.info-card-ship .info-card-icon { background: var(--stock-bg); color: var(--green); }
.info-card-pickup .info-card-icon { background: var(--stock-wait-bg); color: var(--amber); }
.info-card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--ink);
}
.info-card > p {
  margin: 0;
  color: var(--ink);
  opacity: 0.8;
  font-size: 14px;
  line-height: 1.45;
}
.info-points {
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  flex: 1;
}
.info-points li {
  position: relative;
  padding: 10px 12px 10px 34px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}
.info-points li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent);
}
.info-card-ship .info-points li::before { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent); }
.info-card-pickup .info-points li::before { background: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 22%, transparent); }
.info-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff !important;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none !important;
  text-align: center;
}
.info-card-cta:hover { background: var(--blue-d); }
.info-card-ship .info-card-cta { background: var(--green); }
.info-card-ship .info-card-cta:hover { filter: brightness(1.08); }
.info-card-pickup .info-card-cta { background: var(--amber); color: #1a1200 !important; }
.info-card-pickup .info-card-cta:hover { filter: brightness(1.06); }

@media (max-width: 980px) {
  .info-grid { grid-template-columns: 1fr; }
}
.flashes { margin-top: 10px; }
.flash { padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; background: var(--hover); color: var(--ink); }
.flash.error { background: #fdecea; color: var(--red); }
.flash.ok { background: #e7f7ee; color: var(--green); }
[data-theme="dark"] .flash.error { background: #3a1c1c; }
[data-theme="dark"] .flash.ok { background: #1a3228; }
.ok-box { text-align: left; }
.ok-box h1 { margin-bottom: 10px; }
.head-mob-actions {
  display: none;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.cart-mob { display: none; }
.crumb a { color: var(--blue); }
.suggest a.suggest-item { text-decoration: none; color: inherit; }

/* ——— Responsive storefront ——— */
@media (min-width: 1600px) {
  .wrap { width: min(1680px, calc(100% - 40px)); }
}

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .similar-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr; gap: 22px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .util-links { display: none; }
  .util-in { padding: 6px 0; }
  .util-end { gap: 8px; }
  .util-addr {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(100%, calc(100% - 110px));
    font-size: 11px;
    line-height: 1.3;
  }

  .head-in {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo actions"
      "search search";
    gap: 10px;
    align-items: center;
  }
  .logo {
    grid-area: logo;
    min-width: 0;
    max-width: 100%;
    width: max-content;
    justify-self: start;
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
  .logo-img { height: 52px; max-width: min(220px, 48vw); }
  .search-wrap { grid-area: search; width: 100%; min-width: 0; }
  .head-right { display: none; }
  .head-phone-mobile { display: inline-flex; }
  .head-mob-actions {
    display: flex;
    grid-area: actions;
    justify-self: end;
    align-self: center;
  }
  .cart-mob {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    flex-shrink: 0;
  }
  .head-mob-actions .head-theme {
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
  }

  .menu a {
    padding: 12px 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .layout { grid-template-columns: 1fr; }
  .side { display: none; }
  .hide-mobile { display: none; }
  .hide-desktop { display: inline; }
  .motors-chips { display: none; }
  .catalog-motor-list { display: flex; flex-direction: column; gap: 8px; }
  .catalog-brand-grid { grid-template-columns: 1fr; }

  .product-layout,
  .about-grid,
  .product-grid,
  .footer-top { grid-template-columns: 1fr; }
  .product-layout { gap: 18px; }
  .similar-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .cards.list .card { flex-direction: column; }
  .cards.list .card-photo { width: 100%; aspect-ratio: 1.4; min-height: 0; }

  .cookie {
    flex-direction: column;
    align-items: stretch;
    bottom: 10px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .view-tog { align-self: flex-start; }

  .table.goods {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .suggest-item {
    grid-template-columns: 52px 1fr;
  }
  .suggest-item .price {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 768px) {
  .head { position: static; }
  .wrap { width: min(1240px, calc(100% - 16px)); }
  /* Keep a slim util strip when FX rates are on; hide empty bar otherwise */
  .util:not(.util-has-fx) { display: none; }
  .util.util-has-fx .util-addr,
  .util.util-has-fx .util-links { display: none; }
  .util.util-has-fx .util-in {
    justify-content: flex-end;
    padding: 5px 0;
  }
  .util.util-has-fx .util-fx { font-size: 12px; }
  .menu a { padding: 12px 12px; font-size: 13px; }
  .menu-label-full { display: none; }
  .menu-label-short { display: inline; }
  .footer { padding: 28px 0 96px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }
  .footer-brand {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--footer-line);
  }
  .footer-about {
    margin-bottom: 20px;
    line-height: 1.55;
  }
  .soc {
    flex-wrap: wrap;
    gap: 10px;
  }
  .footer-col {
    padding: 20px 0;
    border-bottom: 1px solid var(--footer-line);
    gap: 0;
  }
  .footer-col h4 {
    margin: 0 0 10px;
  }
  .footer-col > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 2px 0;
    line-height: 1.35;
  }
  .footer-col > span {
    display: block;
    padding: 10px 0 0;
    line-height: 1.5;
  }
  .footer-contacts > a[href^="mailto:"] {
    overflow-wrap: anywhere;
  }
  .footer-phone {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .footer-contacts .footer-legal {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--footer-line);
    gap: 6px;
  }
  .footer-bottom {
    margin-top: 4px;
    padding-top: 20px;
    border-top: 1px solid var(--footer-line);
    justify-content: center;
    text-align: center;
  }
  .footer-bottom-row {
    justify-content: center;
  }
  .product-photo.big { min-height: 0; aspect-ratio: 4 / 3; }
  .product-info-page { padding: 22px 18px 20px; }
  .product-buy-head {
    gap: 12px;
    padding-bottom: 18px;
  }
  .product-buy-title,
  .product-info-page h1 { font-size: 1.3rem; }
  .product-buy-price,
  .price.lg { font-size: 1.5rem; }
  .product-meta {
    grid-template-columns: 1fr;
    margin-top: 14px;
    max-width: none;
  }
  .product-meta-row,
  .product-meta-row:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
  }
  .product-meta-row {
    grid-template-columns: 8em minmax(0, 1fr);
    padding: 6px 0;
    gap: 4px 10px;
  }
  .product-thumbs {
    gap: 10px;
    padding: 12px;
  }
  .product-thumb {
    flex: 0 0 76px;
    width: 76px;
  }
  .product-photo .badge-condition {
    top: 14px;
    left: 14px;
  }
  .photo-zoom-hint {
    right: 14px;
    bottom: 14px;
    padding: 7px 12px;
  }
  .product-info-page .product-desc {
    margin-top: 20px;
    padding-top: 18px;
  }
  .product-info-page .product-actions {
    margin-top: 32px;
    gap: 12px;
  }
  .product-info-page .product-actions .cart-buy {
    flex: 1 1 100%;
    max-width: none;
  }
  .product-info-page .product-actions .cart-buy-add,
  .product-info-page .product-actions .cart-buy-btn,
  .product-info-page .product-actions .qty-stepper {
    width: 100%;
  }
  .product-info-page .product-actions .product-actions-call,
  .product-info-page .product-actions .product-actions-secondary {
    flex: 1 1 calc(50% - 6px);
    white-space: normal;
  }
  .filters.filter-panel .filter-fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .filters.filter-panel .filter-body {
    padding: 12px 14px 14px;
    gap: 12px;
  }
  .filters.filter-panel .filter-control,
  .filters.filter-panel .filter-apply {
    min-height: 44px;
  }
  .order-form, .card-like { max-width: none; padding: 14px; }
  .cart-actions .btn { flex: 1; min-width: 140px; justify-content: center; }
  .photo-lightbox {
    padding:
      max(10px, env(safe-area-inset-top))
      max(4px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom))
      max(4px, env(safe-area-inset-left));
  }
  .photo-lightbox-nav { width: 42px; height: 56px; font-size: 36px; }
}

@media (max-width: 760px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .cards,
  .contact-grid { grid-template-columns: 1fr; }
  .product-meta-row,
  .product-meta-row:nth-child(even) {
    grid-template-columns: 7.5em minmax(0, 1fr);
    gap: 4px 10px;
    padding: 6px 0;
  }
  .product-meta dt {
    font-size: 13px;
  }
  .product-meta dd {
    font-size: 14px;
  }
  .product-info-page { padding: 20px 16px 18px; }
  .product-layout { gap: 14px; }

  .search select { display: none; }
  .search input { padding: 12px 10px; min-height: 44px; }
  .search button {
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 0 10px 10px 0 !important;
  }

  /* Compact mark logo — full header wordmark is too wide for actions row */
  .logo-swap-full { display: none; }
  .logo-swap-mark { display: grid; }
  .logo-mark-img { height: 44px; max-width: 52px; }
  .logo { font-size: 1.35rem; gap: 0; }

  .head-in { gap: 8px; padding: 8px 0; }
  .head-mob-actions { gap: 6px; }

  .cart-mob {
    padding: 8px 10px;
    font-size: 13px;
  }

  .toolbar h1 { font-size: 18px; }
  .price { font-size: 18px; }

  .card-body { padding: 12px; }
  .card-body h3 { font-size: 15px; }
  .similar-cards { grid-template-columns: 1fr; }

  .filters.filter-panel .filter-head {
    padding: 12px 14px;
  }

  .cookie-actions {
    flex-direction: column;
  }
  .cookie-actions .btn { width: 100%; }

  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv span { font-size: 11px; }
  .req-row { grid-template-columns: 1fr; gap: 4px; }

  .suggest-item {
    grid-template-columns: 48px 1fr;
    gap: 8px;
    padding: 8px;
  }
  .suggest-item img { width: 48px; height: auto; aspect-ratio: 4 / 3; }

  .about-photo { min-height: 220px; }
  .doc-body { padding: 14px; }
  .footer-brand p,
  .footer-about { max-width: none; }
}

@media (max-width: 380px) {
  .logo { font-size: 1.2rem; }
  .logo small { font-size: 10px; }
  .logo-mark-img { height: 40px; max-width: 46px; }
  .head-phone-mobile > span:last-child { display: none; }
  .head-phone-mobile { width: 44px; padding: 0; }
  .cart-mob {
    padding: 8px 9px;
    font-size: 12px;
  }
  .head-mob-actions { gap: 5px; }
  .cards { gap: 10px; }
}

/* ——— Home page ——— */
.home-hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(8, 14, 22, 0.35) 0%, rgba(8, 14, 22, 0.72) 55%, rgba(8, 14, 22, 0.88) 100%),
    var(--hero-img) center/cover no-repeat,
    linear-gradient(135deg, #0c1a2a, #16324a);
  color: #eef3f8;
  overflow: hidden;
}
.home-hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 80%, rgba(11, 95, 154, 0.28), transparent 60%),
    linear-gradient(90deg, rgba(8, 14, 22, 0.55), transparent 55%);
  pointer-events: none;
  z-index: 1;
}
.hero-anim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
/* ——— Variant A: brand assembly (gear+bolt+wrench → apex) ——— */
.hero-anim-a {
  display: block;
  opacity: 1;
  padding: 0;
}
.hero-assemble {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-assemble-photo {
  position: absolute;
  inset: -4%;
  background: center/cover no-repeat;
  filter: saturate(0.78) contrast(1.06) brightness(0.9);
  animation: ha-ken 26s ease-in-out infinite alternate;
  opacity: 0.5;
}
.hero-assemble-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 14, 22, 0.86) 0%, rgba(8, 14, 22, 0.4) 42%, rgba(8, 14, 22, 0.24) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.58));
}
.hero-assemble-hud {
  position: absolute;
  right: clamp(0px, 2vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  width: min(58vw, 640px);
  height: auto;
  max-height: 92%;
  opacity: 0.95;
  pointer-events: none;
}
.ha-peak {
  transform-origin: 360px 260px;
  animation: ha-peak-pulse 5.5s ease-in-out infinite;
}
.ha-part {
  transform-box: fill-box;
  transform-origin: center;
}
.ha-gear {
  animation: ha-assemble-gear 5.5s cubic-bezier(0.22, 0.82, 0.28, 1) infinite;
}
.ha-bolt {
  animation: ha-assemble-bolt 5.5s cubic-bezier(0.22, 0.82, 0.28, 1) infinite;
}
.ha-wrench {
  animation: ha-assemble-wrench 5.5s cubic-bezier(0.22, 0.82, 0.28, 1) infinite;
}
.ha-lock {
  opacity: 0;
  transform-origin: 360px 385px;
  animation: ha-lock 5.5s ease-in-out infinite;
}
@keyframes ha-ken {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1%, 0.8%, 0); }
}
@keyframes ha-peak-pulse {
  0%, 12% { opacity: 0.35; }
  28%, 62% { opacity: 1; }
  78% { opacity: 0.85; }
  92%, 100% { opacity: 0.35; }
}
@keyframes ha-assemble-gear {
  0% { transform: translate(-78px, 32px) rotate(-32deg) scale(0.7); opacity: 0; }
  12% { opacity: 1; }
  26%, 60% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  74% { opacity: 1; }
  90%, 100% { transform: translate(-78px, 32px) rotate(-32deg) scale(0.7); opacity: 0; }
}
@keyframes ha-assemble-bolt {
  0% { transform: translate(0, -72px) scale(0.68); opacity: 0; }
  14% { opacity: 1; }
  28%, 60% { transform: translate(0, 0) scale(1); opacity: 1; }
  74% { opacity: 1; }
  90%, 100% { transform: translate(0, -72px) scale(0.68); opacity: 0; }
}
@keyframes ha-assemble-wrench {
  0% { transform: translate(78px, 32px) rotate(32deg) scale(0.7); opacity: 0; }
  16% { opacity: 1; }
  30%, 60% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  74% { opacity: 1; }
  90%, 100% { transform: translate(78px, 32px) rotate(32deg) scale(0.7); opacity: 0; }
}
@keyframes ha-lock {
  0%, 32% { opacity: 0; transform: scale(0.92); }
  40%, 64% { opacity: 1; transform: scale(1); }
  76%, 100% { opacity: 0; transform: scale(0.96); }
}

/* ——— Variant B: industrial metal + CAD gears ——— */
.hero-anim-b {
  display: block;
  opacity: 1;
  padding: 0;
}
.hero-metal {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-metal-photo {
  position: absolute;
  inset: -4%;
  background: center/cover no-repeat;
  filter: saturate(0.8) contrast(1.08) brightness(0.92);
  animation: hb-ken 24s ease-in-out infinite alternate;
  opacity: 0.58;
}
.hero-metal-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 14, 22, 0.84) 0%, rgba(8, 14, 22, 0.38) 44%, rgba(8, 14, 22, 0.22) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.58));
}
.hero-metal-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(186, 230, 253, 0.06) 48%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(186, 230, 253, 0.05) 52%,
    transparent 65%
  );
  background-size: 220% 100%;
  animation: hb-metal-shine 7s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.hero-metal-hud {
  position: absolute;
  right: clamp(0px, 2vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  width: min(58vw, 640px);
  height: auto;
  max-height: 92%;
  opacity: 0.92;
  pointer-events: none;
}
.hb-gear {
  transform-box: fill-box;
  transform-origin: center;
}
.hb-gear-lg { animation: hb-spin-cw 28s linear infinite; }
.hb-gear-md { animation: hb-spin-ccw 18s linear infinite; }
.hb-gear-sm { animation: hb-spin-cw 12s linear infinite; }
.hb-spec {
  animation: hb-spec-pulse 4.5s ease-in-out infinite;
}
@keyframes hb-ken {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.11) translate3d(1.2%, -0.8%, 0); }
}
@keyframes hb-spin-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes hb-spin-ccw {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}
@keyframes hb-metal-shine {
  0% { background-position: 100% 0; opacity: 0.35; }
  45% { opacity: 0.9; }
  100% { background-position: -20% 0; opacity: 0.3; }
}
@keyframes hb-spec-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* ——— Variant C: industrial QC HUD (not cartoon) ——— */
.hero-anim-c {
  display: block;
  opacity: 1;
  padding: 0;
}
.hero-qc {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-qc-photo {
  position: absolute;
  inset: -4%;
  background: center/cover no-repeat;
  filter: saturate(0.85) contrast(1.05);
  animation: hc-ken 22s ease-in-out infinite alternate;
  opacity: 0.55;
}
.hero-qc-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 14, 22, 0.82) 0%, rgba(8, 14, 22, 0.35) 42%, rgba(8, 14, 22, 0.2) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.55));
}
.hero-qc-hud {
  position: absolute;
  right: clamp(0px, 2vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  width: min(58vw, 640px);
  height: auto;
  max-height: 92%;
  opacity: 0.95;
  pointer-events: none;
}
.hc-schematic {
  animation: hc-schematic-pulse 5s ease-in-out infinite;
}
.hc-beam,
.hc-beam-edge {
  animation: hc-beam-scan 3.8s ease-in-out infinite;
  transform-box: fill-box;
}
.hc-pass {
  animation: hc-pass-blink 3.8s ease-in-out infinite;
}
@keyframes hc-ken {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, 1%, 0); }
}
@keyframes hc-beam-scan {
  0% { transform: translateY(0); opacity: 0.35; }
  45% { opacity: 0.95; }
  100% { transform: translateY(210px); opacity: 0.25; }
}
@keyframes hc-schematic-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}
@keyframes hc-pass-blink {
  0%, 55% { opacity: 0.35; }
  65%, 85% { opacity: 1; }
  100% { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .ha-gear, .ha-bolt, .ha-wrench, .ha-peak, .ha-lock,
  .hero-assemble-photo,
  .hb-gear-lg, .hb-gear-md, .hb-gear-sm, .hb-spec,
  .hero-metal-photo, .hero-metal-shine,
  .hero-qc-photo, .hc-beam, .hc-beam-edge, .hc-schematic, .hc-pass { animation: none !important; }
  .ha-gear, .ha-bolt, .ha-wrench { transform: none !important; opacity: 1; }
  .ha-peak, .ha-lock { opacity: 0.95; transform: none; }
  .hero-assemble-photo, .hero-metal-photo, .hero-qc-photo { opacity: 0.5; transform: none; }
  .hero-metal-shine { opacity: 0.25; }
  .hc-pass { opacity: 0.9; }
  .hero-video-el { display: none; }
  .hero-video {
    background: center/cover no-repeat url("../video/hero-loop-poster.jpg");
  }
}

/* ——— Variant D: ambient video loop ——— */
.hero-anim-d {
  display: block;
  opacity: 1;
  padding: 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0a1018;
}
.hero-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(0.82) contrast(1.06) brightness(0.88);
}
.hero-video-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 14, 22, 0.88) 0%, rgba(8, 14, 22, 0.42) 40%, rgba(8, 14, 22, 0.28) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.62));
  pointer-events: none;
}
.hero-video-grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ——— Cinematic family E / F / G (no HUD) ——— */
.home-hero-cine .home-hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 14, 22, 0.72) 0%, rgba(8, 14, 22, 0.28) 48%, rgba(8, 14, 22, 0.18) 100%),
    linear-gradient(180deg, rgba(8, 14, 22, 0.15), rgba(8, 14, 22, 0.55));
}
.hero-anim-e,
.hero-anim-f,
.hero-anim-g {
  display: block;
  opacity: 1;
  padding: 0;
}
.hero-cine,
.hero-lumen,
.hero-bloom,
.hero-steel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-cine-photo {
  position: absolute;
  inset: -5%;
  background: center/cover no-repeat;
  animation: cine-ken 28s ease-in-out infinite alternate;
  opacity: 0.92;
}
.hero-cine-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* E — Lumen */
.hero-lumen-veil {
  background:
    linear-gradient(105deg, rgba(8, 14, 22, 0.78) 0%, rgba(8, 14, 22, 0.25) 45%, rgba(8, 14, 22, 0.35) 100%),
    radial-gradient(ellipse 55% 70% at 70% 30%, rgba(125, 211, 252, 0.12), transparent 65%);
}
.hero-lumen-beams {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.55;
}
.hero-lumen-beam {
  position: absolute;
  top: -10%;
  width: 14%;
  height: 130%;
  background: linear-gradient(
    180deg,
    rgba(186, 230, 253, 0.22) 0%,
    rgba(125, 211, 252, 0.08) 40%,
    transparent 85%
  );
  filter: blur(18px);
  transform-origin: top center;
  animation: lumen-beam 9s ease-in-out infinite alternate;
}
.hero-lumen-beam.b1 { left: 48%; transform: rotate(8deg); animation-delay: 0s; }
.hero-lumen-beam.b2 { left: 62%; width: 10%; transform: rotate(14deg); opacity: 0.7; animation-delay: -3s; }
.hero-lumen-beam.b3 { left: 74%; width: 8%; transform: rotate(18deg); opacity: 0.5; animation-delay: -5.5s; }
.hero-lumen-dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-lumen-dust i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(226, 232, 240, 0.75);
  box-shadow: 0 0 6px rgba(186, 230, 253, 0.55);
  animation: lumen-dust 14s linear infinite;
  opacity: 0;
}
.hero-lumen-dust i:nth-child(1)  { left: 52%; top: 80%; animation-delay: 0s; }
.hero-lumen-dust i:nth-child(2)  { left: 58%; top: 88%; animation-delay: -2s; width: 2px; height: 2px; }
.hero-lumen-dust i:nth-child(3)  { left: 64%; top: 92%; animation-delay: -4s; }
.hero-lumen-dust i:nth-child(4)  { left: 70%; top: 85%; animation-delay: -1s; width: 2px; height: 2px; }
.hero-lumen-dust i:nth-child(5)  { left: 76%; top: 90%; animation-delay: -6s; }
.hero-lumen-dust i:nth-child(6)  { left: 55%; top: 95%; animation-delay: -3s; width: 2px; height: 2px; }
.hero-lumen-dust i:nth-child(7)  { left: 68%; top: 78%; animation-delay: -7s; }
.hero-lumen-dust i:nth-child(8)  { left: 80%; top: 86%; animation-delay: -5s; width: 2px; height: 2px; }
.hero-lumen-dust i:nth-child(9)  { left: 60%; top: 82%; animation-delay: -8s; }
.hero-lumen-dust i:nth-child(10) { left: 72%; top: 94%; animation-delay: -9s; width: 2px; height: 2px; }
.hero-lumen-dust i:nth-child(11) { left: 50%; top: 88%; animation-delay: -10s; }
.hero-lumen-dust i:nth-child(12) { left: 66%; top: 96%; animation-delay: -11s; width: 2px; height: 2px; }

/* F — Apex bloom */
.hero-bloom-photo {
  filter: saturate(0.95) contrast(1.05);
  object-position: center 40%;
  background-position: center 42%;
}
.hero-bloom-veil {
  background:
    linear-gradient(90deg, rgba(8, 14, 22, 0.82) 0%, rgba(8, 14, 22, 0.35) 50%, rgba(8, 14, 22, 0.45) 100%),
    radial-gradient(ellipse 50% 55% at 58% 48%, rgba(56, 189, 248, 0.14), transparent 70%);
}
.hero-bloom-glow {
  position: absolute;
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  right: -8%;
  top: 50%;
  transform: translateY(-52%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.22) 0%, rgba(3, 105, 161, 0.08) 42%, transparent 68%);
  filter: blur(8px);
  animation: bloom-breathe 7s ease-in-out infinite;
  pointer-events: none;
}
.hero-bloom-ring {
  position: absolute;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(186, 230, 253, 0.18);
  box-shadow: 0 0 60px rgba(56, 189, 248, 0.12), inset 0 0 40px rgba(56, 189, 248, 0.06);
  animation: bloom-ring 8s ease-in-out infinite;
  pointer-events: none;
}

/* G — Steel ribbon */
.hero-steel-photo {
  filter: saturate(0.75) contrast(1.08) brightness(0.95);
}
.hero-steel-veil {
  background:
    linear-gradient(100deg, rgba(8, 14, 22, 0.8) 0%, rgba(8, 14, 22, 0.3) 48%, rgba(8, 14, 22, 0.4) 100%);
}
.hero-steel-sweep {
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.03) 46%,
    rgba(186, 230, 253, 0.14) 50%,
    rgba(255, 255, 255, 0.05) 54%,
    transparent 62%
  );
  animation: steel-sweep 8s ease-in-out infinite;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.hero-steel-edge {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 75% 40%, transparent 30%, rgba(8, 14, 22, 0.35) 100%);
  pointer-events: none;
}

@keyframes cine-ken {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.2%, 0.6%, 0); }
}
@keyframes lumen-beam {
  from { opacity: 0.35; filter: blur(18px); }
  to { opacity: 0.75; filter: blur(22px); }
}
@keyframes lumen-dust {
  0% { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; }
  12% { opacity: 0.85; }
  70% { opacity: 0.45; }
  100% { transform: translate3d(-40px, -280px, 0) scale(1); opacity: 0; }
}
@keyframes bloom-breathe {
  0%, 100% { opacity: 0.55; transform: translateY(-52%) scale(0.96); }
  50% { opacity: 1; transform: translateY(-52%) scale(1.06); }
}
@keyframes bloom-ring {
  0%, 100% { opacity: 0.35; transform: translateY(-50%) scale(0.94); }
  50% { opacity: 0.85; transform: translateY(-50%) scale(1.04); }
}
@keyframes steel-sweep {
  0% { transform: translateX(-18%); opacity: 0.35; }
  40% { opacity: 1; }
  100% { transform: translateX(22%); opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cine-photo,
  .hero-lumen-beam,
  .hero-lumen-dust i,
  .hero-bloom-glow,
  .hero-bloom-ring,
  .hero-steel-sweep { animation: none !important; }
  .hero-cine-photo { opacity: 0.88; transform: none; }
  .hero-bloom-glow, .hero-bloom-ring { opacity: 0.7; }
  .hero-steel-sweep { opacity: 0.35; transform: none; }
  .hero-lumen-dust { display: none; }
}

.home-hero-in {
  position: relative;
  z-index: 2;
  padding: 56px 0 48px;
  max-width: 720px;
  animation: home-rise 0.7s ease both;
}
.home-brand {
  font-family: var(--head);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 14px;
  color: #fff;
}
.home-title {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  max-width: 18ch;
  color: #fff;
}
.home-lead {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(232, 238, 246, 0.88);
  max-width: 48ch;
  margin-bottom: 22px;
}
.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.home-hero .home-cta-ghost,
.home-band .home-cta-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.home-hero .home-cta-ghost:hover,
.home-band .home-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

.home-section {
  padding: 48px 0 20px;
  animation: home-rise 0.65s ease both;
  animation-delay: 0.08s;
}
.home-section-alt {
  background: var(--soft);
  border-block: 1px solid var(--line);
  padding-bottom: 48px;
  margin-top: 28px;
}
.home-brands-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 18px;
}
.home-featured-cards {
  margin-top: 4px;
}
.home-featured-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.featured-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.featured-arrow {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel, var(--bg));
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.featured-arrow:hover:not(:disabled) {
  border-color: var(--accent, #3b82f6);
}
.featured-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.featured-carousel {
  margin-top: 8px;
  overflow: hidden;
}
.featured-empty {
  margin: 0;
  padding: 18px 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.featured-track {
  display: flex;
  gap: 16px;
  transition: transform 0.35s ease;
  will-change: transform;
}
.featured-slide {
  flex: 0 0 calc((100% - 80px) / 6);
  min-width: 0;
}
@media (max-width: 1200px) {
  .featured-slide { flex-basis: calc((100% - 48px) / 4); }
}
@media (max-width: 900px) {
  .featured-slide { flex-basis: calc((100% - 16px) / 2); }
  .home-featured-head { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .featured-slide { flex-basis: 85%; }
}
.home-brand-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  min-height: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-decoration: none !important;
  color: var(--ink);
  box-shadow: none;
  transition: transform 0.2s ease;
}
.home-brand-tile:hover,
.home-brand-tile:focus-visible {
  color: var(--ink);
  transform: translateY(-2px);
  outline: 0;
}
.home-brand-logo {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 18px 20px;
  box-sizing: border-box;
  border-radius: 12px;
  /* Soft off-white plate — readable for color logos on both themes */
  background: #e4eaf1;
  border: 1px solid color-mix(in srgb, #aeb9c8 50%, transparent);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
[data-theme="dark"] .home-brand-logo {
  background: #e4eaf1;
  border-color: rgba(255, 255, 255, 0.08);
}
.home-brand-tile:hover .home-brand-logo,
.home-brand-tile:focus-visible .home-brand-logo {
  border-color: color-mix(in srgb, var(--blue) 45%, #b8c4d2);
  box-shadow: 0 8px 20px rgba(8, 18, 32, 0.14);
}
.home-brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
}
.home-brand-wordmark,
.home-brand-initials {
  font-family: var(--head);
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-align: center;
  color: #1a2330;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 2px 4px;
}
.home-brand-name {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  color: color-mix(in srgb, var(--ink) 72%, var(--mute));
  letter-spacing: 0.01em;
}
.home-brand-tile:hover .home-brand-name,
.home-brand-tile:focus-visible .home-brand-name {
  color: var(--blue);
}
.home-section-head {
  margin-bottom: 22px;
  max-width: 54ch;
}
.home-section-head h2 {
  font-family: var(--head);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.home-section-head p {
  color: var(--mute);
  font-size: 15px;
  line-height: 1.5;
}

.home-map-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 28px;
}
.home-map-frame {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  min-height: 360px;
  background: var(--photo-bg);
  box-shadow: var(--shadow);
  position: relative;
}
.home-map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}
.map-lazy {
  display: grid;
  place-items: center;
}
.map-lazy.is-loaded {
  display: block;
}
.map-lazy iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  z-index: 1;
}
.map-lazy-ui {
  text-align: center;
  padding: 28px 20px;
  max-width: 360px;
  z-index: 0;
}
.map-lazy-title {
  font-family: var(--head);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.map-lazy-addr {
  color: var(--mute);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 10px;
}
.map-lazy-status {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.map-lazy-ext {
  display: inline-block;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
}
.about-grid .map-lazy,
.about-grid .home-map-frame {
  min-height: 100%;
  align-self: stretch;
}
.home-map-side {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-map-side h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mute);
  font-weight: 700;
}
.home-map-addr {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
.home-map-meta {
  display: grid;
  gap: 12px;
  margin: 4px 0 8px;
}
.home-map-meta dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mute);
  margin-bottom: 2px;
}
.home-map-meta dd {
  font-size: 14px;
  line-height: 1.4;
}
.home-map-side .btn {
  margin-top: auto;
  width: fit-content;
}

.home-contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
a.home-contact:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.home-contact {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: inherit;
  text-decoration: none !important;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 92px;
}
.home-contact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mute);
}
.home-contact strong {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}

.home-section-contacts {
  position: relative;
  padding: 56px 0 60px;
  margin-top: 8px;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, color-mix(in srgb, var(--blue) 18%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 100%, color-mix(in srgb, #1b7a3d 12%, transparent), transparent 50%),
    var(--soft);
  border-block: 1px solid var(--line);
}
.home-contacts-head {
  max-width: 42em;
  margin-bottom: 26px;
}
.contact-showcase {
  display: grid;
  gap: 16px;
}
.contact-phones,
.contact-channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.contact-channels {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.contact-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-left: 3px solid color-mix(in srgb, var(--blue) 42%, var(--line));
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--blue) 5%, var(--panel)), var(--panel) 42%);
  color: inherit;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(12, 24, 40, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 110px;
}
.contact-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--blue) 40%, var(--line));
  border-left-color: var(--blue);
}
.contact-tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 18%, transparent);
}
.contact-tile-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}
.contact-tile-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.contact-tile-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.contact-tile strong {
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--ink);
  word-break: break-word;
}
.contact-tile-action {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.contact-tile-phone {
  border-left-color: color-mix(in srgb, var(--blue) 55%, var(--line));
}
.contact-tile-phone .contact-tile-icon {
  background: color-mix(in srgb, var(--blue) 14%, var(--panel));
  color: var(--blue);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 22%, transparent);
}
.contact-tile-phone .contact-tile-action { color: var(--blue); }
.contact-tile-phone:hover {
  border-color: color-mix(in srgb, var(--blue) 38%, var(--line));
  border-left-color: var(--blue);
}

.contact-tile-max {
  border-left-color: color-mix(in srgb, #2b7de9 70%, var(--line));
}
.contact-tile-max .contact-tile-icon {
  background: color-mix(in srgb, #2b7de9 22%, var(--panel));
  color: #2b7de9;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #2b7de9 28%, transparent);
}
[data-theme="dark"] .contact-tile-max .contact-tile-icon {
  color: #6eb0ff;
  background: color-mix(in srgb, #2b7de9 28%, var(--panel));
}
.contact-tile-max .contact-tile-action { color: #2b7de9; }
[data-theme="dark"] .contact-tile-max .contact-tile-action { color: #6eb0ff; }

.contact-tile-mail {
  border-left-color: color-mix(in srgb, var(--blue) 48%, var(--line));
}
.contact-tile-mail .contact-tile-icon {
  background: color-mix(in srgb, var(--blue) 12%, var(--panel));
  color: var(--blue-d);
}
[data-theme="dark"] .contact-tile-mail .contact-tile-icon {
  color: var(--blue);
}

.contact-tile-drom {
  border-left-color: color-mix(in srgb, var(--green) 55%, var(--line));
}
.contact-tile-drom .contact-tile-icon {
  background: var(--stock-bg);
  color: var(--green);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 22%, transparent);
}
.contact-tile-drom .contact-tile-action { color: var(--green); }
.contact-tile-drom:hover {
  border-left-color: var(--green);
}

.contact-facts {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 14px;
}
.contact-fact {
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  align-content: start;
}
.contact-fact-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.contact-fact strong {
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 700;
}
.contact-fact-link {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.contact-fact-link:hover { text-decoration: underline; }
.contact-fact-cta {
  background: linear-gradient(160deg, color-mix(in srgb, var(--blue) 16%, var(--panel)), var(--panel));
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
}
.contact-fact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.contact-fact-actions .btn {
  text-decoration: none !important;
}

.home-reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 12px;
}
.home-review {
  margin: 0;
  padding: 20px 20px 18px;
  border-left: 3px solid var(--blue);
  background: var(--panel);
  border-radius: 0 14px 14px 0;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: home-rise 0.7s ease both;
}
.home-review:nth-child(2) { animation-delay: 0.1s; }
.home-review:nth-child(3) { animation-delay: 0.18s; }
.home-stars {
  color: var(--amber);
  letter-spacing: 0.08em;
  font-size: 14px;
  line-height: 1;
}
.home-review p {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}
.home-review footer {
  display: grid;
  gap: 2px;
}
.home-review footer strong {
  font-size: 14px;
}
.home-review footer span {
  font-size: 12px;
  color: var(--mute);
}

.home-band {
  margin: 36px 0 8px;
  background:
    radial-gradient(ellipse 60% 80% at 90% 20%, rgba(11, 95, 154, 0.35), transparent 55%),
    linear-gradient(135deg, #0f1c2c, #16324a 55%, #0c1a2a);
  color: #e8eef6;
  padding: 36px 0;
}
.home-band-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.home-band h2 {
  font-family: var(--head);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 8px;
}
.home-band p {
  color: rgba(232, 238, 246, 0.82);
  max-width: 48ch;
  font-size: 14px;
  line-height: 1.5;
}

@keyframes home-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-in,
  .home-section,
  .home-review { animation: none; }
}

@media (max-width: 1100px) {
  .home-brands-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .home-map-grid { grid-template-columns: 1fr; }
  .home-contacts { grid-template-columns: 1fr 1fr; }
  .contact-phones { grid-template-columns: 1fr; }
  .contact-channels { grid-template-columns: 1fr 1fr; }
  .contact-facts { grid-template-columns: 1fr; }
  .home-reviews { grid-template-columns: 1fr; }
  .home-hero { min-height: min(70vh, 620px); align-items: end; }
}

@media (max-width: 720px) {
  .home-brands-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .home-brand-logo { min-height: 64px; padding: 12px; }
}

@media (max-width: 560px) {
  .home-hero-in { padding: 40px 0 32px; }
  .home-section { padding: 36px 0 12px; }
  .home-contacts { grid-template-columns: 1fr; }
  .contact-channels { grid-template-columns: 1fr; }
  .home-map-frame,
  .home-map-frame iframe { min-height: 280px; }
  .home-brands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-band-in {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .home-band p { margin-inline: auto; }
  .home-band .home-cta {
    justify-content: center;
    width: 100%;
  }
  .home-cta .btn { width: 100%; text-align: center; }
}


