/* ==========================================================================
   Восход70 — дизайн-система сайта (токены + компоненты + шапка/футер/главная)
   Источник: дизайн-система «Восход70» (1b + первый экран варианта 1).
   Брейкпоинты: ≥1200 десктоп · 768–1199 планшет · <768 мобильный.
   ========================================================================== */

:root {
  --navy-900: #141b33;
  --navy-800: #1c2a54;
  --navy-700: #2c3960;
  --logo-navy: #07244b;
  --orange-500: #f28c28;
  --orange-700: #9c4c07;
  --peach-100: #ffe3c7;
  --surface: #ffffff;
  --surface-muted: #f2f4f8;
  --line: #e4e7ee;
  --line-strong: #767d96;
  --text-muted: #5b6380;
  --on-navy: #ffffff;
  --on-navy-muted: #c9cedd;
  --stock-in: #15803d;
  --stock-low: #c2410c;
  --stock-order: #5b6380;
  --focus-ring: #1c2a54;

  --font-display: Unbounded, "Arial Black", sans-serif;
  --font-sans: Onest, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(20, 27, 51, 0.06);
  --shadow-float: 0 16px 40px rgba(20, 27, 51, 0.14);

  --gutter: 40px;
  --container: 1600px; /* макс. ширина контента; шире — центрируем */
  --tabbar-h: 0px;
}
@media (min-width: 1440px) { :root { --gutter: 48px; } }
@media (max-width: 1199px) { :root { --gutter: 24px; } }
@media (max-width: 767px)  { :root { --gutter: 16px; --tabbar-h: 60px; } }

/* ---------- База ---------- */
body.vx-site { font-family: var(--font-sans); color: var(--navy-900); background: var(--surface); -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
.vx, .vx * { box-sizing: border-box; }
:where(.vx) :where(h1, h2, h3, h4, p, ul, ol) { margin: 0; }
:where(.vx) a { color: inherit; text-decoration: none; }
.vx :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.vx .on-navy :focus-visible, .vx.on-navy :focus-visible { outline-color: var(--orange-500); }
.vx-wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); box-sizing: content-box; }
/* Внутренние страницы на Tailwind — та же ширина и поля, что у шапки */
.vx-site .max-w-7xl { max-width: calc(var(--container) + 2 * var(--gutter)) !important; padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
.vx-display { font-family: var(--font-display); letter-spacing: -0.01em; }
.vx-muted { color: var(--text-muted); }
.on-navy .vx-muted, .vx-panel--navy .vx-muted { color: var(--on-navy-muted); }
.vx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vx-hide-mobile { }
@media (max-width: 767px) { .vx-hide-mobile { display: none !important; } }
@media (min-width: 768px) { .vx-only-mobile { display: none !important; } }

/* ---------- Eyebrow, заголовки секций ---------- */
.vx-eyebrow { font: 600 12px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-700); display: inline-flex; align-items: center; gap: 12px; }
.on-navy .vx-eyebrow { color: var(--orange-500); }
.vx-sec { padding-top: 96px; }
.vx-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.vx-h2 { font: 700 40px/44px var(--font-display); letter-spacing: -0.01em; margin-top: 8px; }
.vx-link-arrow { font: 600 14px/20px var(--font-sans); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
@media (max-width: 1199px) { .vx-sec { padding-top: 72px; } .vx-h2 { font-size: 32px; line-height: 36px; } }
@media (max-width: 767px)  { .vx-sec { padding-top: 48px; } .vx-h2 { font-size: 24px; line-height: 28px; } .vx-sec-head { margin-bottom: 16px; align-items: flex-end; gap: 12px; } .vx-sec-head > div { min-width: 0; } .vx-sec-head .vx-link-arrow { font-size: 13px; padding-bottom: 4px; } }

/* ---------- Кнопки ---------- */
.vx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: var(--radius-md); border: 1px solid transparent; font: 600 15px/20px var(--font-sans); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, filter .15s; text-decoration: none; }
.vx-btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.vx-btn--block { width: 100%; }
.vx-btn--primary { background: var(--navy-800); color: var(--on-navy); }
.vx-btn--primary:hover { background: var(--navy-900); }
.vx-btn--accent { background: var(--orange-500); color: var(--navy-900); }
.vx-btn--accent:hover { filter: brightness(.95); }
.vx-btn--outline { background: var(--surface); color: var(--navy-900); border-color: var(--line-strong); }
.vx-btn--outline:hover { border-color: var(--navy-800); }
.vx-btn--light { background: var(--surface); color: var(--navy-900); }
.vx-btn--ghost-navy { background: transparent; color: var(--on-navy); border-color: var(--on-navy-muted); }
.vx-btn--ghost-navy:hover { background: rgba(255,255,255,.08); }
.vx-btn:disabled, .vx-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.vx-btn i { font-size: 18px; line-height: 1; }
.vx-round { width: 40px; height: 40px; border-radius: var(--radius-pill); display: inline-grid; place-items: center; border: 1px solid var(--line-strong); background: var(--surface); color: var(--navy-900); cursor: pointer; flex: none; }
.vx-round--dark { background: var(--navy-800); border-color: var(--navy-800); color: var(--on-navy); }

/* ---------- Чипы, сегменты, бейджи, статус ---------- */
.vx-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); font: 500 13px/16px var(--font-sans); color: var(--navy-900); cursor: pointer; white-space: nowrap; flex: none; }
.vx-chip[aria-selected="true"], .vx-chip.is-active { background: var(--navy-800); border-color: var(--navy-800); color: var(--on-navy); }
.vx-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 767px) { .vx-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); } .vx-chips--scroll::-webkit-scrollbar { display: none; } }
.vx-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-sm); font: 600 12px/16px var(--font-sans); }
.vx-badge--hit, .vx-badge--sale { background: var(--orange-500); color: var(--navy-900); }
.vx-badge--new { background: var(--navy-800); color: var(--on-navy); }
.vx-stock { display: inline-flex; align-items: center; gap: 6px; font: 400 12px/16px var(--font-sans); }
.vx-stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.vx-stock--in_stock { color: var(--stock-in); }
.vx-stock--low_stock { color: var(--stock-low); }
.vx-stock--on_order, .vx-stock--out_of_stock { color: var(--stock-order); }

/* ---------- Панели, плитки, списки ---------- */
.vx-panel { border-radius: var(--radius-xl); padding: 32px; }
.vx-panel--navy { background: var(--navy-800); color: var(--on-navy); }
.vx-panel--peach { background: var(--peach-100); color: var(--navy-900); }
.vx-panel--white { background: var(--surface); color: var(--navy-900); }
.vx-tile { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 16px; background: var(--surface-muted); min-height: 140px; display: flex; flex-direction: column; gap: 4px; }
.vx-tile h3 { font: 600 18px/22px var(--font-display); }
.vx-tile p { font: 400 13px/18px var(--font-sans); color: var(--text-muted); }
.vx-tile--accent { background: var(--orange-500); }
.vx-tile--accent p { color: var(--navy-900); }
.vx-tile--navy { background: var(--navy-800); color: var(--on-navy); }
.vx-tile--navy p { color: var(--on-navy-muted); }
.vx-tile__img { position: absolute; right: 12px; bottom: 12px; width: 44%; aspect-ratio: 1; border-radius: var(--radius-md); background: var(--surface); object-fit: contain; }
.vx-rows { list-style: none; margin: 0; padding: 0; }
.vx-rows li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font: 400 15px/20px var(--font-sans); }
.vx-rows li:last-child { border-bottom: 0; }
.vx-rows .vx-rows__val { margin-left: auto; font-weight: 600; white-space: nowrap; }
.vx-check { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--orange-500); color: var(--navy-900); display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 0; padding: 0; cursor: pointer; }
.vx-check[aria-checked="false"] { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); color: transparent; }
.vx-stepper { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); }
.vx-stepper button { width: 36px; height: 36px; border: 0; border-radius: var(--radius-sm); background: var(--surface-muted); font: 600 18px/1 var(--font-sans); color: var(--navy-900); cursor: pointer; }
.vx-stepper input { width: 56px; text-align: center; border: 0; font: 700 16px/20px var(--font-sans); color: var(--navy-900); background: transparent; -moz-appearance: textfield; outline: none; }
.vx-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.vx-presets { display: flex; gap: 6px; }
.vx-presets button { height: 30px; min-width: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font: 600 12px/16px var(--font-sans); color: var(--navy-900); cursor: pointer; }
.vx-presets button[aria-pressed="true"] { background: var(--navy-800); color: var(--on-navy); border-color: var(--navy-800); }
.vx-steps { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; margin: 0; padding: 0; }
.vx-steps li { display: flex; align-items: center; gap: 10px; font: 500 14px/20px var(--font-sans); }
.vx-steps li span { width: 24px; height: 24px; border-radius: 50%; background: var(--orange-500); color: var(--navy-900); display: grid; place-items: center; font: 700 12px/1 var(--font-sans); flex: none; }

/* ==========================================================================
   ШАПКА
   ========================================================================== */
.vx-hdr { background: var(--surface); position: relative; z-index: 60; }
.vx-util { display: flex; gap: 20px; align-items: center; height: 36px; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.vx-util a:hover { color: var(--navy-900); }
.vx-util__city { display: inline-flex; gap: 4px; align-items: center; color: var(--navy-900); font-weight: 600; }
.vx-util nav { margin-left: auto; display: flex; gap: 20px; }
.vx-util__sep { width: 1px; height: 16px; background: var(--line); }
.vx-util__phone { color: var(--navy-900); font-weight: 700; }
.vx-hdr__main { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.vx-bar { display: flex; align-items: center; gap: 24px; height: 76px; }
.vx-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.vx-logo__mark { height: 40px; width: auto; }
.vx-logo__word { height: 17px; width: auto; display: block; }
.vx-logo small { display: block; font-size: 11px; line-height: 14px; color: var(--text-muted); margin-top: 4px; white-space: nowrap; }
.vx-burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; color: var(--navy-900); font-size: 24px; cursor: pointer; padding: 0; flex: none; }
.vx-catalog { position: relative; flex: none; }
.vx-catalog__btn { height: 44px; }
.vx-catalog__menu { display: none; position: absolute; top: 100%; left: 0; padding-top: 10px; z-index: 9999; }
.vx-catalog:hover .vx-catalog__menu, .vx-catalog:focus-within .vx-catalog__menu, .vx-catalog.is-open .vx-catalog__menu { display: block; }
/* Мегаменю: разделы слева, подкатегории справа вплотную (без щели — курсор не «срывается») */
.vx-mega { display: grid; grid-template-columns: 300px minmax(0, 1fr); width: min(1100px, calc(100vw - 2 * var(--gutter))); max-height: min(640px, calc(100vh - 140px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); overflow: hidden; }
.vx-mega__list { padding: 8px; border-right: 1px solid var(--line); overflow-y: auto; background: var(--surface); }
.vx-mega__item { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 8px 12px; border-radius: var(--radius-sm); font: 500 14px/18px var(--font-sans); color: var(--navy-900); }
.vx-mega__item i { color: var(--text-muted); flex: none; }
.vx-mega__item.is-active { background: var(--surface-muted); color: var(--navy-900); font-weight: 600; box-shadow: inset 3px 0 0 var(--orange-500); }
.vx-mega__item.is-active i { color: var(--navy-900); }
.vx-mega__item--all { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0; font-weight: 600; }
.vx-mega__panel { overflow-y: auto; padding: 20px 24px 24px; }
.vx-mega__pane { display: none; }
.vx-mega__pane.is-active { display: block; }
.vx-mega__title { display: inline-flex; align-items: center; gap: 6px; font: 700 20px/26px var(--font-display); color: var(--navy-900); margin-bottom: 16px; }
.vx-mega__title:hover { color: var(--orange-700); }
.vx-mega__cols { columns: 3 200px; column-gap: 28px; }
.vx-mega__group { break-inside: avoid; margin-bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
.vx-mega__sub { font: 600 14px/20px var(--font-sans); color: var(--navy-900); }
.vx-mega__leaf { font: 400 13px/19px var(--font-sans); color: var(--text-muted); }
.vx-mega__sub:hover, .vx-mega__leaf:hover { color: var(--orange-700); }
.vx-mega__empty { color: var(--text-muted); font-size: 14px; }
.vx-mega__empty a { color: var(--navy-900); text-decoration: underline; }
.vx-catalog__panel { width: 340px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); border: 1px solid var(--line); padding: 8px; }
.vx-catalog__list { max-height: 560px; overflow-y: auto; }
.vx-catalog__item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: var(--radius-sm); font: 500 14px/20px var(--font-sans); color: var(--navy-900); cursor: pointer; }
.vx-catalog__item:hover { background: var(--surface-muted); }
.vx-catalog__item i { color: var(--text-muted); }
.vx-catalog__all { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 12px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.vx-submenu { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); width: 300px; padding: 8px; }
.vx-submenu__title { padding: 8px 12px; font: 600 12px/16px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.vx-submenu .vx-catalog__item { font-weight: 400; }

.vx-search { position: relative; flex: 1; min-width: 0; }
.vx-search__box { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 6px 0 14px; border: 1.5px solid var(--navy-800); border-radius: var(--radius-md); background: var(--surface); }
.vx-search__box:focus-within { box-shadow: 0 0 0 3px var(--peach-100); }
.vx-search__box > i { color: var(--text-muted); font-size: 18px; }
.vx-search__input { flex: 1; min-width: 0; border: 0; outline: none; font: 400 15px/20px var(--font-sans); color: var(--navy-900); background: transparent; height: 100%; }
.vx-search__input::placeholder { color: var(--text-muted); }
.vx-search__btn { height: 36px !important; }
.vx-search__results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); max-height: 420px; overflow-y: auto; z-index: 70; }
.vx-search__results.hidden { display: none; }

.vx-icons { display: flex; gap: 22px; flex: none; }
.vx-icons a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; line-height: 16px; color: var(--navy-900); }
.vx-icons a:hover { color: var(--orange-700); }
.vx-icons i { font-size: 22px; line-height: 24px; }
.vx-cnt { position: absolute; top: -6px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--orange-500); color: var(--navy-900); font: 700 11px/18px var(--font-sans); text-align: center; transition: transform .2s; }
.vx-cnt.hidden { display: none; }
.vx-hdr__phone-m { display: none; }

@media (max-width: 1199px) {
  .vx-util nav a:nth-child(n+4) { display: none; }
  .vx-bar { gap: 16px; }
  .vx-logo small { display: none; }
  .vx-icons { gap: 16px; }
}
@media (max-width: 991px) {
  .vx-catalog { display: none; }
  .vx-burger { display: grid; place-items: center; margin-left: -8px; }
}
@media (max-width: 767px) {
  .vx-hdr { position: sticky; top: 0; box-shadow: 0 1px 0 var(--line); }
  .vx-util { display: none; }
  .vx-hdr__main { border: 0; }
  .vx-bar { height: auto; flex-wrap: wrap; gap: 8px 10px; padding-top: 8px; padding-bottom: 10px; }
  .vx-logo__mark { height: 32px; }
  .vx-logo__word { height: 14px; }
  .vx-icons { display: none; }
  .vx-hdr__phone-m { display: grid; place-items: center; margin-left: auto; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-muted); color: var(--navy-900); font-size: 20px; }
  .vx-search { flex-basis: 100%; order: 5; }
  .vx-search__box { height: 44px; }
  .vx-search__input { font-size: 16px; } /* без автозума в iOS */
}

/* ---------- Мобильное меню (drawer) ---------- */
.vx-drawer { position: fixed; inset: 0; z-index: 10000; visibility: hidden; }
.vx-drawer.is-open { visibility: visible; }
.vx-drawer__bg { position: absolute; inset: 0; background: rgba(20, 27, 51, .5); opacity: 0; transition: opacity .2s; }
.vx-drawer.is-open .vx-drawer__bg { opacity: 1; }
.vx-drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); background: var(--surface); transform: translateX(-100%); transition: transform .25s ease; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
.vx-drawer.is-open .vx-drawer__panel { transform: none; }
.vx-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.vx-drawer__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface-muted); font-size: 20px; color: var(--navy-900); cursor: pointer; }
.vx-drawer__sec { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.vx-drawer__title { padding: 4px 8px 8px; font: 600 12px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.vx-drawer a.vx-drawer__link { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 8px; border-radius: var(--radius-sm); font: 500 15px/20px var(--font-sans); }
.vx-drawer a.vx-drawer__link:active { background: var(--surface-muted); }
.vx-drawer a.vx-drawer__link i { color: var(--text-muted); }
.vx-drawer__contacts { padding: 16px; display: grid; gap: 6px; font-size: 14px; color: var(--text-muted); }
.vx-drawer__contacts b { font: 700 18px/24px var(--font-display); color: var(--navy-900); }
body.vx-lock { overflow: hidden; }

/* ---------- Нижняя панель (мобильный) ---------- */
.vx-tabbar { display: none; }
@media (max-width: 767px) {
  .vx-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--surface); border-top: 1px solid var(--line); }
  .vx-tabbar a, .vx-tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; font: 500 11px/14px var(--font-sans); color: var(--text-muted); padding: 0; cursor: pointer; }
  .vx-tabbar i { font-size: 22px; line-height: 24px; }
  .vx-tabbar .is-active { color: var(--navy-900); }
  .vx-tabbar .vx-cnt { top: 4px; right: calc(50% - 22px); }
}

/* ==========================================================================
   ГЛАВНАЯ — первый экран (вариант 1)
   ========================================================================== */
.vx-first { background: var(--surface-muted); padding: 20px 0 0; }
.vx-fs { display: grid; grid-template-columns: 272px minmax(0, 1fr) 272px; gap: 12px; height: 500px; }
@media (min-width: 1440px) { .vx-fs { grid-template-columns: 300px minmax(0, 1fr) 320px; height: 540px; } .vx-slide { padding: 56px; } .vx-slide__text { max-width: min(420px, 50%); } .vx-slide h1, .vx-slide h2 { font-size: 48px; line-height: 52px; } .vx-ring { width: 460px; height: 460px; right: -40px; } .vx-dots { left: 56px; } .vx-cats a { padding: 7px 12px; font-size: 14px; } .vx-side .vx-panel { padding: 24px; } .vx-side h3 { font-size: 22px; line-height: 28px; } }
.vx-cats { background: var(--surface); border-radius: var(--radius-lg); padding: 10px 8px; display: flex; flex-direction: column; overflow: hidden; }
.vx-cats__list { overflow-y: auto; scrollbar-width: thin; }
.vx-cats a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: var(--radius-sm); font: 500 13px/18px var(--font-sans); color: var(--navy-900); }
.vx-cats a:hover { background: var(--surface-muted); }
.vx-cats a i { color: var(--text-muted); font-size: 16px; }
.vx-cats a.vx-cats__all { margin-top: auto; border-top: 1px solid var(--line); border-radius: 0; padding-top: 12px; font-weight: 600; }
.vx-cats a.vx-cats__all i { color: var(--navy-900); }

.vx-slider { position: relative; overflow: hidden; background: var(--navy-800); color: var(--on-navy); border-radius: var(--radius-xl); touch-action: pan-y; }
.vx-slide { position: absolute; inset: 0; padding: 44px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.vx-slide.is-active { opacity: 1; visibility: visible; }
.vx-slide__text { position: relative; z-index: 1; max-width: min(340px, 52%); }
.vx-slide h1.is-long, .vx-slide h2.is-long { font-size: 32px !important; line-height: 36px !important; }
.vx-slide__pill { display: inline-flex; height: 26px; align-items: center; padding: 0 12px; border-radius: var(--radius-pill); background: var(--navy-700); font: 600 12px/16px var(--font-sans); }
.vx-slide h1, .vx-slide h2 { font: 700 40px/44px var(--font-display); letter-spacing: -0.01em; margin: 24px 0 18px; }
.vx-slide p { font-size: 15px; line-height: 22px; color: var(--on-navy-muted); }
.vx-slide__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.vx-ring { position: absolute; right: -70px; top: 50%; transform: translateY(-50%); width: 400px; height: 400px; border-radius: 50%; background: var(--orange-500); padding: 22px; }
.vx-ring__in { width: 100%; height: 100%; border-radius: 50%; background: var(--surface); overflow: hidden; display: grid; place-items: center; }
.vx-ring__in img { height: 92%; width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.vx-ring__in img.is-cover { height: 100%; object-fit: cover; mix-blend-mode: normal; }
.vx-dots { position: absolute; left: 44px; bottom: 32px; display: flex; gap: 6px; z-index: 2; }
.vx-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--on-navy-muted); opacity: .5; cursor: pointer; transition: width .2s; }
.vx-dots button[aria-selected="true"] { width: 24px; background: var(--on-navy); opacity: 1; }
.vx-arrows { position: absolute; right: 24px; bottom: 24px; display: flex; gap: 8px; z-index: 2; }
.vx-arrows .vx-round { border-color: var(--surface); }
.vx-side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.vx-side .vx-panel { padding: 20px; display: flex; flex-direction: column; }
.vx-side h3 { font: 600 20px/24px var(--font-display); margin: 8px 0 6px; }
.vx-side p { font-size: 13px; line-height: 18px; }
.vx-side .vx-btn, .vx-side .vx-link-arrow { margin-top: auto; }
.vx-side .vx-panel--white .vx-eyebrow { color: var(--text-muted); }

@media (max-width: 1199px) {
  .vx-fs { grid-template-columns: minmax(0, 1fr) 260px; height: 460px; }
  .vx-cats { display: none; }
  .vx-ring { width: 340px; height: 340px; right: -60px; }
}
@media (max-width: 767px) {
  .vx-first { padding-top: 12px; }
  .vx-fs { display: block; height: auto; }
  .vx-slider { height: 440px; border-radius: var(--radius-lg); }
  .vx-slide { padding: 24px 20px; display: flex; flex-direction: column; }
  .vx-slide__text { max-width: none; }
  .vx-slide h1.is-long, .vx-slide h2.is-long { font-size: 24px !important; line-height: 28px !important; }
  .vx-slide h1, .vx-slide h2 { font-size: 28px; line-height: 32px; margin: 16px 0 10px; }
  .vx-slide p { font-size: 14px; line-height: 20px; max-width: 280px; }
  .vx-slide__actions { flex-direction: column; align-items: flex-start; margin-top: auto; padding-bottom: 28px; position: relative; z-index: 1; }
  .vx-slide__actions .vx-btn { height: 44px; }
  .vx-ring { top: auto; transform: none; bottom: -44px; right: -48px; width: 210px; height: 210px; padding: 12px; }
  .vx-dots { left: 20px; bottom: 16px; }
  .vx-arrows { display: none; }
  .vx-side { display: flex; grid-template-rows: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 12px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); }
  .vx-side::-webkit-scrollbar { display: none; }
  .vx-side .vx-panel { flex: 0 0 82%; scroll-snap-align: start; min-height: 196px; }
}

/* ---------- Бенто категорий ---------- */
.vx-bento-band { background: linear-gradient(var(--surface-muted) 50%, var(--surface) 50%); padding-top: 12px; }
.vx-bento { background: var(--surface); padding: 8px; border-radius: var(--radius-xl); box-shadow: var(--shadow-float); display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; grid-template-rows: 184px 184px; gap: 8px; }
.vx-bento .vx-tile--big { grid-row: span 2; padding: 24px; }
@media (min-width: 1440px) { .vx-bento { grid-template-rows: 210px 210px; } .vx-kit-photo { min-height: 520px; } .vx-collage { grid-template-rows: 240px 240px; } }
.vx-bento .vx-tile--big h3 { font-size: 26px; line-height: 30px; }
.vx-bento .vx-tile--big .vx-tile__img { width: 46%; height: 56%; aspect-ratio: auto; right: 16px; bottom: 16px; }
.vx-bento .vx-tile h3 { max-width: 75%; }
.vx-bento .vx-tile--accent .vx-round { position: absolute; right: 16px; bottom: 16px; border: 0; }
.vx-bento .vx-tile--accent p { padding-right: 52px; }
.vx-bento .vx-tile:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.vx-more { margin-top: 16px; }
.vx-bento .vx-tile { min-height: 0; } /* высоту задаёт сетка, иначе плитки наезжают друг на друга */
/* Мало плиток (1–3 раздела): одна строка вместо сетки 2×N с пустыми ячейками */
.vx-bento--few { grid-template-columns: 1.6fr; grid-auto-columns: 1fr; grid-auto-flow: column; grid-template-rows: 220px; }
.vx-bento--few .vx-tile--big { grid-row: auto; }
@media (max-width: 1199px) {
  .vx-bento { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(3, 150px); }
  .vx-bento .vx-tile--big { grid-row: span 3; }
}
@media (max-width: 767px) {
  .vx-bento-band { background: none; padding-top: 24px; }
  .vx-bento { box-shadow: none; padding: 0; grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 112px; }
  .vx-bento--few { grid-auto-flow: row; grid-auto-columns: auto; }
  .vx-bento .vx-tile--big { grid-column: span 2; grid-row: auto; padding: 18px; }
  .vx-bento .vx-tile--big h3 { font-size: 20px; line-height: 24px; }
  .vx-bento .vx-tile--big .vx-tile__img { width: 34%; height: 84%; right: 12px; bottom: 10px; }
  .vx-bento .vx-tile { padding: 14px; }
  .vx-bento .vx-tile h3 { font-size: 15px; line-height: 19px; max-width: none; }
  .vx-bento .vx-tile p { font-size: 12px; line-height: 16px; }
  .vx-bento .vx-tile .vx-tile__img { width: 40%; right: 8px; bottom: 8px; }
}

/* ---------- Карточка товара ---------- */
.vx-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1199px) { .vx-grid4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .vx-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.vx-product { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 8px 16px; min-width: 0; }
.vx-product__media { position: relative; aspect-ratio: 1 / 1.05; border-radius: var(--radius-md); background: var(--surface-muted); overflow: hidden; display: grid; place-items: center; }
.vx-product__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.vx-product__media .ri-image-line { font-size: 40px; color: var(--line-strong); }
.vx-product__badge { position: absolute; top: 8px; left: 8px; }
.vx-product__fav { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center; color: var(--navy-900); cursor: pointer; z-index: 1; }
.vx-product__fav i { font-size: 16px; }
.vx-product__fav .text-red-500 { color: #dc2626; }
.vx-product__cart { position: absolute; right: 8px; bottom: 8px; box-shadow: var(--shadow-card); }
.vx-product__body { padding: 0 8px; display: flex; flex-direction: column; gap: 4px; }
.vx-product__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.vx-product__price b { font: 700 20px/24px var(--font-sans); white-space: nowrap; }
.vx-product__price s { font-size: 13px; color: var(--text-muted); }
.vx-product__opt { font: 400 12px/16px var(--font-sans); color: var(--text-muted); }
.vx-product__name { font: 400 14px/20px var(--font-sans); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vx-product__name:hover { color: var(--orange-700); }
.vx-product__cart-m { display: none; }
@media (max-width: 767px) {
  .vx-product { padding: 6px 6px 10px; gap: 6px; }
  .vx-product__body { padding: 0 4px; gap: 3px; }
  .vx-product__price b { font-size: 16px; line-height: 20px; }
  .vx-product__name { font-size: 13px; line-height: 18px; }
  .vx-product__cart { display: none; }
  .vx-product__cart-m { display: flex; margin: 6px 4px 0; height: 36px; font-size: 13px; padding: 0 10px; }
  .vx-product .vx-stock span { display: none; }
}

/* ---------- Сезон ---------- */
.vx-season { display: grid; grid-template-columns: 3fr 1fr; gap: 12px; }
.vx-season > *, .vx-kit-grid > *, .vx-branding > *, .vx-fs > * { min-width: 0; }
.vx-season__num { font: 700 96px/96px var(--font-display); letter-spacing: -0.02em; margin: 8px 0 4px; }
.vx-season h3 { font: 600 18px/22px var(--font-display); }
.vx-season__minis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.vx-mini { background: var(--navy-700); border-radius: var(--radius-md); padding: 6px 6px 12px; display: flex; flex-direction: column; min-width: 0; }
.vx-mini img, .vx-mini .vx-mini__ph { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--surface); border-radius: var(--radius-sm); }
.vx-mini p { font-size: 12px; line-height: 16px; margin: 8px 4px 6px; color: var(--on-navy-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vx-mini b { margin: auto 4px 0; font-size: 15px; }
.vx-summer { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.vx-summer__sun { position: absolute; right: -90px; top: -60px; width: 280px; height: 280px; border-radius: 50%; background: var(--orange-500); }
.vx-summer > *:not(.vx-summer__sun) { position: relative; }
.vx-summer__num { font: 700 72px/80px var(--font-display); }
@media (max-width: 1199px) { .vx-season { grid-template-columns: 1fr; } .vx-summer { min-height: 200px; } .vx-season__minis { grid-template-columns: repeat(4, minmax(150px, 1fr)); overflow-x: auto; } }
@media (max-width: 767px) {
  .vx-season .vx-panel { padding: 20px; border-radius: var(--radius-lg); }
  .vx-season__num { font-size: 64px; line-height: 68px; }
  .vx-season__minis { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 20px -20px 0; padding: 0 20px; }
  .vx-season__minis::-webkit-scrollbar { display: none; }
  .vx-mini { flex: 0 0 46%; scroll-snap-align: start; }
  .vx-summer { min-height: 170px; }
  .vx-summer__num { font-size: 52px; line-height: 60px; }
  .vx-summer__sun { width: 200px; height: 200px; right: -60px; top: -50px; }
}

/* ---------- Комплекты ---------- */
.vx-kits { background: var(--surface-muted); margin-top: 96px; padding: 80px 0; }
.vx-kit-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px; }
.vx-kit-photo { position: relative; border-radius: var(--radius-xl); background: #dfe3ec; overflow: hidden; min-height: 470px; }
.vx-kit-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.vx-kit-tag { position: absolute; left: 16px; bottom: 16px; background: var(--surface); border-radius: var(--radius-md); padding: 10px 14px; }
.vx-kit-tag b { font: 600 15px/20px var(--font-display); }
.vx-kit-tag p { font-size: 12px; line-height: 16px; }
.vx-kit { padding: 24px; display: flex; flex-direction: column; height: 100%; }
.vx-kit__head { display: flex; justify-content: space-between; gap: 12px; }
.vx-kit__head p:first-child { font: 600 18px/22px var(--font-display); }
.vx-kit__foot { display: flex; gap: 24px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 16px; margin-top: auto; }
.vx-kit__total { margin-left: auto; text-align: right; }
.vx-kit__total [data-total] { font: 700 32px/36px var(--font-display); white-space: nowrap; }
.vx-kit__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
@media (max-width: 1199px) { .vx-kits { margin-top: 72px; padding: 64px 0; } .vx-kit-grid { grid-template-columns: 1fr; } .vx-kit-photo { display: none; } }
@media (max-width: 767px) {
  .vx-kits { margin-top: 48px; padding: 40px 0; }
  .vx-kits .vx-sec-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .vx-kit { padding: 16px; border-radius: var(--radius-lg); }
  .vx-kit .vx-rows li { font-size: 14px; padding: 10px 0; }
  .vx-kit__foot { flex-direction: column; align-items: stretch; gap: 16px; }
  .vx-kit__total { margin-left: 0; text-align: left; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
  .vx-kit__total [data-total] { font-size: 26px; line-height: 30px; }
  .vx-kit__actions { grid-template-columns: 1fr; }
}

/* ---------- Брендирование ---------- */
.vx-branding { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.vx-collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 210px 210px; gap: 8px; }
.vx-collage > div { border-radius: var(--radius-lg); background: var(--surface-muted); overflow: hidden; }
.vx-collage img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.vx-collage__tall { grid-row: span 2; }
.vx-collage__days { background: var(--orange-500) !important; padding: 20px; display: flex; flex-direction: column; }
.vx-collage__days b { font: 700 48px/52px var(--font-display); }
.vx-collage__days span { margin-top: auto; font-size: 13px; line-height: 18px; }
.vx-branding .vx-rows b { font-weight: 600; }
.vx-branding .vx-rows .vx-rows__val { font-weight: 400; font-size: 13px; color: var(--text-muted); }
@media (max-width: 1199px) { .vx-branding { gap: 40px; } .vx-collage { grid-template-rows: 170px 170px; } .vx-collage__days b { font-size: 36px; line-height: 40px; } }
@media (max-width: 767px) {
  .vx-branding { grid-template-columns: 1fr; gap: 24px; }
  .vx-collage { grid-template-rows: 130px 130px; }
  .vx-collage__days { padding: 14px; }
  .vx-collage__days b { font-size: 28px; line-height: 32px; }
  .vx-collage__days span { font-size: 12px; line-height: 16px; }
  .vx-branding .vx-steps { flex-direction: column; }
  .vx-branding__actions { flex-direction: column; }
  .vx-branding__actions .vx-btn { width: 100%; }
}

/* ---------- Бренды ---------- */
.vx-brands { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.vx-brand { height: 64px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font: 700 15px/1 var(--font-display); color: var(--text-muted); letter-spacing: -0.01em; transition: color .15s, border-color .15s; padding: 0 8px; text-align: center; }
.vx-brand:hover { color: var(--navy-900); border-color: var(--navy-800); }
.vx-brand img { max-height: 32px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .15s, opacity .15s; }
.vx-brand:hover img { filter: none; opacity: 1; }
.vx-kit-row__link { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.vx-kit-row__qty { color: var(--text-muted); font-size: 13px; margin-left: 4px; white-space: nowrap; }
.vx-kit-row__size { display: inline-block; margin-left: 6px; font-size: 11px; color: var(--orange-700); white-space: nowrap; }
@media (max-width: 1199px) { .vx-brands { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) { .vx-brands { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); } .vx-brands::-webkit-scrollbar { display: none; } .vx-brand { flex: 0 0 132px; height: 56px; font-size: 14px; } }

/* ==========================================================================
   ФУТЕР
   ========================================================================== */
.vx-foot { position: relative; overflow: hidden; background: var(--navy-800); color: var(--on-navy); margin-top: 96px; padding: 56px 0 24px; }
.vx-foot__circle { position: absolute; right: -140px; bottom: -260px; width: 560px; height: 560px; border-radius: 50%; background: var(--navy-700); }
.vx-foot__grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 32px; }
.vx-foot nav, .vx-foot__col { display: grid; gap: 10px; font-size: 13px; line-height: 18px; align-content: start; }
.vx-foot nav b, .vx-foot__col > b:first-child { font-size: 13px; }
.vx-foot nav a, .vx-foot__m { color: var(--on-navy-muted); }
.vx-foot nav a:hover, .vx-foot a.vx-foot__m:hover { color: var(--on-navy); }
.vx-foot__phone { font: 700 20px/26px var(--font-display); }
.vx-foot__about { font-size: 13px; line-height: 18px; margin: 16px 0 20px; max-width: 260px; color: var(--on-navy-muted); }
.vx-foot__social { display: flex; gap: 8px; margin-top: 16px; }
.vx-foot__social a { width: 36px; height: 36px; border-radius: 50%; background: var(--navy-700); display: grid; place-items: center; font-size: 18px; }
.vx-foot__bottom { position: relative; display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--navy-700); font-size: 12px; color: var(--on-navy-muted); }
.vx-foot__bottom a:first-of-type { margin-left: auto; }
@media (max-width: 1199px) { .vx-foot { margin-top: 72px; } .vx-foot__grid { grid-template-columns: 1fr 1fr 1fr; } .vx-foot__brand { grid-column: 1 / -1; } }
@media (max-width: 767px) {
  .vx-foot { margin-top: 48px; padding: 36px 0 20px; }
  .vx-foot__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .vx-foot__contacts { grid-column: 1 / -1; order: -1; }
  .vx-foot__brand { order: -2; }
  .vx-foot__circle { width: 360px; height: 360px; right: -160px; bottom: -180px; }
  .vx-foot__bottom { flex-direction: column; gap: 8px; }
  .vx-foot__bottom a:first-of-type { margin-left: 0; }
}

/* ---------- Узкий планшет 768–991 ---------- */
@media (min-width: 768px) and (max-width: 991px) {
  .vx-util > span:nth-child(2), .vx-util nav, .vx-util__sep { display: none; }
  .vx-util__phone { margin-left: auto; }
  .vx-fs { grid-template-columns: 1fr; height: auto; }
  .vx-slider { height: 420px; }
  .vx-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .vx-side .vx-panel { min-height: 200px; }
  .vx-branding { grid-template-columns: 1fr; gap: 32px; }
  .vx-collage { grid-template-rows: 200px 200px; }
  .vx-icons a { font-size: 11px; }
}

@media (max-width: 374px) {
  .vx-ring { width: 160px; height: 160px; right: -50px; bottom: -40px; padding: 10px; }
  .vx-slide h1, .vx-slide h2 { font-size: 24px; line-height: 28px; }
  .vx-slide__actions .vx-btn { padding: 0 18px; }
}

/* ==========================================================================
   СТРАНИЦА ТОВАРА — выбор размеров
   ПК: таблица в потоке, фото закреплено (lg:sticky в шаблоне).
   Мобильный: кнопка «Выбрать размер» → шторка снизу со списком вариантов.
   ========================================================================== */
.vx-size-btn { display: none; }
.vx-sheet__bg, .vx-sheet__head { display: none; }
.v-stock-m { display: none; }

@media (max-width: 767px) {
  .vx-size-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 8px 16px; border: 0; border-radius: var(--radius-md); background: var(--navy-800); color: var(--on-navy); text-align: left; cursor: pointer; font-family: var(--font-sans); }
  .vx-size-btn b { display: block; font-size: 16px; line-height: 20px; font-weight: 600; }
  .vx-size-btn small { display: block; font-size: 12px; line-height: 16px; color: var(--on-navy-muted); }
  .vx-size-btn i { font-size: 22px; }
  .vx-size-btn.has-items small { color: var(--orange-500); font-weight: 600; }

  .vx-sheet { position: fixed; inset: 0; z-index: 10001; visibility: hidden; }
  .vx-sheet.is-open { visibility: visible; }
  .vx-sheet__bg { display: block; position: absolute; inset: 0; background: rgba(20, 27, 51, .5); opacity: 0; transition: opacity .2s; }
  .vx-sheet.is-open .vx-sheet__bg { opacity: 1; }
  .vx-sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; background: var(--surface); border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform .25s ease; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .vx-sheet.is-open .vx-sheet__panel { transform: none; }
  .vx-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); font-family: var(--font-sans); }
  .vx-sheet__head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line); }
  .vx-sheet__head b { font-size: 16px; line-height: 20px; }
  .vx-sheet__head button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-muted); font-size: 20px; color: var(--navy-900); flex: none; }
  .vx-sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px; }
  .vx-sheet__foot { margin: 0 !important; border-radius: 0 !important; border-width: 1px 0 0 !important; padding: 12px 16px !important; }
  .vx-sheet__foot > div { margin-bottom: 10px !important; }
  .vx-sheet__foot #totalPrice { font-size: 20px; line-height: 24px; }

  /* таблица → компактный список */
  .vx-vtable, .vx-vtable tbody { display: block; border: 0 !important; }
  .vx-vtable thead { display: none; }
  .vx-vtable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "size qty" "price qty"; align-items: center; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .vx-vtable td { border: 0 !important; padding: 0 !important; text-align: left !important; }
  .vx-vtable .v-size { grid-area: size; }
  .vx-vtable .v-size .font-medium { font-size: 15px; font-weight: 600; }
  .vx-vtable .v-price { grid-area: price; display: flex; align-items: baseline; gap: 8px; }
  .vx-vtable .v-price .font-bold { font-size: 14px; }
  .vx-vtable .v-stock { display: none; }
  .vx-vtable .v-qty { grid-area: qty; }
  .vx-vtable .v-qty button { width: 40px !important; height: 40px !important; border-radius: var(--radius-sm) !important; }
  .v-stock-m { display: block; font-size: 12px; line-height: 16px; color: var(--text-muted); margin-top: 2px; }
  .v-stock-m .v-in { color: var(--stock-in); }
}

/* Кнопка «Редактировать в админке» (видна только админам) */
.vx-admin-edit { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px dashed var(--orange-700); color: var(--orange-700); font: 600 13px/16px var(--font-sans); background: #fff7ee; white-space: nowrap; }
.vx-admin-edit:hover { background: var(--peach-100); }
.vx-admin-edit i { font-size: 16px; }

@media (min-width: 768px) {
  .vx-vtable th, .vx-vtable td { white-space: nowrap; padding-left: 12px !important; padding-right: 12px !important; }
  .vx-vtable .v-qty > div { gap: 6px; }
  .vx-vtable .v-qty > div > * + * { margin-left: 0 !important; }
}
/* Поле количества в таблице размеров */
.vx-qty-input { width: 56px; height: 32px; text-align: center; border: 1px solid #d1d5db; border-radius: 6px; font: 600 15px/20px var(--font-sans); color: var(--navy-900); background: #fff; -moz-appearance: textfield; }
.vx-qty-input::-webkit-inner-spin-button, .vx-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.vx-qty-input:focus { outline: none; border-color: var(--navy-800); box-shadow: 0 0 0 3px var(--peach-100); }
.vx-qty-input:disabled { background: #f3f4f6; color: #9ca3af; }
@media (max-width: 767px) { .vx-qty-input { width: 52px; height: 40px; font-size: 16px; } }

/* Заголовок товара над закреплённым фото (ПК) */
.vx-sticky-title { display: none; }
@media (min-width: 1024px) {
  .vx-sticky-title { display: block; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .25s ease, opacity .2s ease, margin .25s ease; margin-bottom: 0; }
  .vx-sticky-title.is-visible { max-height: 96px; opacity: 1; margin-bottom: 12px; }
  .vx-sticky-title__name { font: 600 16px/22px var(--font-sans); color: var(--navy-900); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
  .vx-sticky-title__meta { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 0; }
  .vx-sticky-title__meta b { font: 700 18px/22px var(--font-sans); color: var(--navy-800); }
  .vx-sticky-title__meta span { font-size: 12px; color: var(--text-muted); }
}

/* ==========================================================================
   ВХОД И РЕГИСТРАЦИЯ
   ========================================================================== */
.vx-auth { background: var(--surface-muted); padding: 48px 0 64px; }
.vx-auth__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 16px; max-width: 1040px; margin: 0 auto; align-items: stretch; }
.vx-auth__grid--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); max-width: 1120px; align-items: start; }
.vx-auth__card { background: var(--surface); border-radius: var(--radius-xl); padding: 40px; }
.vx-auth__card h1 { font: 700 32px/36px var(--font-display); letter-spacing: -0.01em; margin: 8px 0 8px; }
.vx-auth__lead { color: var(--text-muted); font-size: 15px; line-height: 22px; margin-bottom: 28px !important; }
.vx-auth__aside { position: relative; overflow: hidden; background: var(--navy-800); color: var(--on-navy); border-radius: var(--radius-xl); padding: 40px; display: flex; flex-direction: column; min-height: 100%; }
.vx-auth__grid--wide .vx-auth__aside { position: sticky; top: 24px; min-height: 0; padding-bottom: 150px; }
.vx-auth__sun { position: absolute; right: -130px; bottom: -170px; width: 300px; height: 300px; border-radius: 50%; background: var(--orange-500); }
.vx-auth__orbit { position: absolute; right: -170px; bottom: -190px; width: 440px; height: 440px; border-radius: 50%; border: 1px solid var(--navy-700); }
.vx-auth__aside > *:not(.vx-auth__sun):not(.vx-auth__orbit) { position: relative; }
.vx-auth__aside h2 { font: 700 26px/30px var(--font-display); margin: 12px 0 20px; }
.vx-auth__perks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; max-width: 300px; }
.vx-auth__perks li { display: flex; gap: 12px; font-size: 14px; line-height: 20px; color: var(--on-navy-muted); }
.vx-auth__perks b { display: block; color: var(--on-navy); font-size: 15px; margin-bottom: 2px; }
.vx-auth__perks i { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy-700); display: grid; place-items: center; font-size: 18px; color: var(--orange-500); }
.vx-auth__alt { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.vx-auth__alt a { color: var(--navy-900); font-weight: 600; }
.vx-auth__alt a:hover { color: var(--orange-700); }

.vx-form { display: grid; gap: 16px; }
.vx-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vx-field label, .vx-label { display: block; font: 600 13px/18px var(--font-sans); color: var(--navy-900); margin-bottom: 6px; }
.vx-field label small, .vx-label small { font-weight: 400; color: var(--text-muted); }
.vx-input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); font: 400 15px/20px var(--font-sans); color: var(--navy-900); transition: border-color .15s, box-shadow .15s; }
textarea.vx-input { height: auto; padding: 12px 14px; resize: vertical; }
.vx-input::placeholder { color: #8a91a8; }
.vx-input:focus { outline: none; border-color: var(--navy-800); box-shadow: 0 0 0 3px var(--peach-100); }
.vx-input.is-invalid { border-color: #dc2626; }
.vx-field__err { margin-top: 4px; font-size: 13px; line-height: 18px; color: #b91c1c; }
.vx-field__hint { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.vx-pw { position: relative; }
.vx-pw .vx-input { padding-right: 48px; }
.vx-pw button { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-muted); font-size: 20px; cursor: pointer; }
.vx-pw button:hover { color: var(--navy-900); }
.vx-alert { padding: 12px 14px; border-radius: var(--radius-md); background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: 14px; line-height: 20px; }
.vx-alert b { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }

.vx-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-muted); border-radius: var(--radius-md); }
.vx-seg label { position: relative; cursor: pointer; }
.vx-seg input { position: absolute; opacity: 0; pointer-events: none; }
.vx-seg span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border-radius: var(--radius-sm); font: 600 14px/18px var(--font-sans); color: var(--text-muted); text-align: center; padding: 0 8px; }
.vx-seg input:checked + span { background: var(--surface); color: var(--navy-900); box-shadow: var(--shadow-card); }
.vx-seg input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.vx-legal { display: grid; gap: 16px; padding: 20px; border-radius: var(--radius-lg); background: #fff8f0; border: 1px solid var(--peach-100); }
.vx-legal.hidden { display: none; }
.vx-legal__title { font: 600 15px/20px var(--font-sans); display: flex; align-items: center; gap: 8px; }
.vx-legal__title i { color: var(--orange-700); }
.vx-inn { display: flex; gap: 8px; }
.vx-inn .vx-input { flex: 1; min-width: 0; }
.vx-inn .vx-btn { height: 48px; flex: none; }
.vx-form__sep { display: flex; align-items: center; gap: 12px; font: 600 12px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
.vx-form__sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.vx-form .vx-btn[type="submit"] { height: 52px; font-size: 16px; margin-top: 8px; }
.vx-form__legal-note { font-size: 12px; line-height: 16px; color: var(--text-muted); text-align: center; }

@media (max-width: 991px) {
  .vx-auth__grid, .vx-auth__grid--wide { grid-template-columns: 1fr; max-width: 560px; }
  .vx-auth__aside { min-height: 0; position: relative !important; top: auto !important; }
  .vx-auth__aside--hide-md { display: none; }
}
@media (max-width: 767px) {
  .vx-auth { padding: 16px 0 32px; background: var(--surface); }
  .vx-auth__card { padding: 4px 0 0; border-radius: 0; }
  .vx-auth__card h1 { font-size: 26px; line-height: 30px; }
  .vx-auth__lead { margin-bottom: 20px !important; }
  .vx-auth__aside { padding: 24px 20px; border-radius: var(--radius-lg); }
  .vx-auth__aside h2 { font-size: 20px; line-height: 24px; margin-bottom: 16px; }
  .vx-auth__perks { margin-bottom: 0; }
  .vx-auth__sun { width: 200px; height: 200px; right: -80px; bottom: -90px; }
  .vx-auth__orbit { display: none; }
  .vx-form__row { grid-template-columns: 1fr; }
  .vx-form__row--keep { grid-template-columns: 1fr 1fr; }
  .vx-input { font-size: 16px; } /* без автозума в iOS */
  .vx-legal { padding: 16px; }
}

/* ---------- Подсказки организаций DaData (выпадающий список) ---------- */
.vx-suggest-wrap { position: relative; }
.vx-suggest { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; right: 0; max-height: 360px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-float); font-family: var(--font-sans); }
.vx-suggest[hidden] { display: none; }
.vx-suggest__item { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.vx-suggest__item + .vx-suggest__item { margin-top: 2px; }
.vx-suggest__item:hover, .vx-suggest__item.is-active { background: var(--surface-muted); }
.vx-suggest__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 600 14px/20px var(--font-sans); color: var(--navy-900); }
.vx-suggest__line { display: flex; gap: 6px; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.vx-suggest__line i { flex: none; font-size: 14px; margin-top: 2px; }
.vx-suggest__meta { font-size: 12px; line-height: 16px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.vx-suggest__tag { display: inline-flex; height: 18px; align-items: center; padding: 0 6px; border-radius: 4px; background: var(--surface-muted); font: 600 11px/1 var(--font-sans); color: var(--text-muted); }
.vx-suggest__tag.is-bad { background: #fef2f2; color: #b91c1c; }
.vx-suggest__empty { padding: 12px; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.vx-field__hint.is-ok { color: var(--stock-in); }
.vx-field__hint.is-error { color: #b91c1c; }
@media (max-width: 767px) { .vx-suggest { max-height: 300px; } .vx-suggest__item { padding: 10px; } }

/* ==========================================================================
   СТАТИЧНЫЕ СТРАНИЦЫ (pages/page_detail.html)
   Текст страниц хранится в БД со своей вёрсткой на Tailwind — здесь подгоняем её под дизайн.
   ========================================================================== */
.vx-page__head { background: var(--surface-muted); padding: 28px 0 32px; }
.vx-page__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.vx-page__crumbs a:hover { color: var(--navy-900); }
.vx-page__crumbs span { color: var(--navy-900); }
.vx-page__head h1 { font: 700 36px/40px var(--font-display); letter-spacing: -0.01em; color: var(--navy-900); }
.vx-page__body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; padding-top: 40px; }
.vx-page.is-wide .vx-page__body { grid-template-columns: minmax(0, 1fr); }

/* текст страницы */
.vx-page-content { font-size: 16px; line-height: 26px; color: #374151; max-width: 860px; }
.vx-page.is-wide .vx-page-content { max-width: none; }
.vx-page-content > div[class*="max-w-"] { max-width: none !important; }
.vx-page-content h2:not([class]), .vx-page-content h3:not([class]),
.vx-page-content .font-bold.text-2xl, .vx-page-content .font-bold.text-3xl, .vx-page-content .font-bold.text-xl,
.vx-page-content .font-bold.text-lg, .vx-page-content .font-semibold.text-lg,
.vx-page-content h2, .vx-page-content h3 { font-family: var(--font-display); letter-spacing: -0.01em; color: var(--navy-900); }
.vx-page-content h2:not([class]) { font-size: 22px; line-height: 28px; font-weight: 700; margin: 36px 0 12px; }
.vx-page-content h3:not([class]) { font-size: 18px; line-height: 24px; font-weight: 600; margin: 24px 0 8px; }
.vx-page-content .font-bold.text-2xl { font-size: 24px; line-height: 30px; }
.vx-page-content .font-bold.text-3xl { font-size: 30px; line-height: 36px; }
.vx-page-content .text-primary { color: var(--navy-800); }
/* тёмные блоки внутри текста (bg-primary, text-white) — заголовки и акценты остаются светлыми */
.vx-page-content :is(.bg-primary, .bg-gray-900, .text-white) :is(h1, h2, h3, h4, p, strong, b, .font-bold, .font-semibold, .text-primary) { color: inherit !important; }
.vx-page-content p:not([class]), .vx-page-content ul:not([class]), .vx-page-content ol:not([class]) { margin: 0 0 12px; }
.vx-page-content ul:not([class]) { list-style: disc; padding-left: 22px; }
.vx-page-content ol:not([class]) { list-style: decimal; padding-left: 22px; }
.vx-page-content li:not([class]) { margin-bottom: 4px; }
.vx-page-content li::marker { color: var(--orange-500); }
.vx-page-content a:not([class]) { color: var(--navy-800); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.vx-page-content a:not([class]):hover { color: var(--orange-700); }
.vx-page-content strong, .vx-page-content b { color: var(--navy-900); font-weight: 600; }
.vx-page-content em { color: var(--text-muted); }
.vx-page-content [class*="rounded-xl"], .vx-page-content [class*="rounded-lg"] { border-radius: var(--radius-lg); }
.vx-page-content [class*="rounded-2xl"] { border-radius: var(--radius-xl); }
.vx-page-content .border { border-color: var(--line); }
.vx-page-content .bg-gray-50 { background: var(--surface-muted); }
.vx-page-content .bg-secondary, .vx-page-content .bg-orange-500 { color: var(--navy-900) !important; }
.vx-page-content .bg-secondary *, .vx-page-content .bg-orange-500 * { color: inherit; }
.vx-page-content a.bg-secondary, .vx-page-content a.bg-primary, .vx-page-content a.bg-white { border-radius: var(--radius-md); font-weight: 600; }
.vx-page-content table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.vx-page-content th, .vx-page-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.vx-page-content th { font-weight: 600; color: var(--navy-900); background: var(--surface-muted); }
.vx-page-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); }

/* боковая колонка */
.vx-page__aside { position: sticky; top: 24px; display: grid; gap: 16px; }
.vx-page__nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px; }
.vx-page__nav-title { padding: 8px 12px 6px; font: 600 12px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.vx-page__nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: var(--radius-sm); font: 500 15px/20px var(--font-sans); color: var(--navy-900); }
.vx-page__nav a:hover { background: var(--surface-muted); }
.vx-page__nav a i { color: var(--text-muted); }
.vx-page__nav a.is-current { background: var(--surface-muted); font-weight: 600; box-shadow: inset 3px 0 0 var(--orange-500); }
.vx-page__help { background: var(--navy-800); color: var(--on-navy); border-radius: var(--radius-lg); padding: 20px; display: grid; gap: 8px; }
.vx-page__help-text { font-size: 14px; line-height: 20px; color: var(--on-navy-muted); }
.vx-page__help-phone { font: 700 20px/26px var(--font-display); color: var(--on-navy); margin-top: 4px; }
.vx-page__help-link { font-size: 14px; color: var(--on-navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--on-navy-muted); word-break: break-all; }
.vx-page__help-hours { font-size: 13px; color: var(--on-navy-muted); }
.vx-page__help .vx-btn { margin-top: 8px; }

@media (max-width: 1199px) { .vx-page__body { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; } }
@media (max-width: 991px) {
  .vx-page__body { grid-template-columns: minmax(0, 1fr); }
  .vx-page__aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .vx-page__head { padding: 16px 0 20px; }
  .vx-page__head h1 { font-size: 26px; line-height: 30px; }
  .vx-page__body { padding-top: 24px; gap: 24px; }
  .vx-page-content { font-size: 15px; line-height: 24px; }
  .vx-page-content h2:not([class]) { font-size: 19px; line-height: 24px; margin-top: 28px; }
  .vx-page-content .font-bold.text-2xl { font-size: 20px; line-height: 26px; }
  .vx-page-content .font-bold.text-3xl { font-size: 24px; line-height: 28px; }
  .vx-page-content table { display: block; overflow-x: auto; }
  .vx-page__aside { grid-template-columns: 1fr; }
}

/* Уведомления — над нижней панелью на мобильном */
@media (max-width: 767px) { #notificationContainer { top: auto !important; bottom: calc(var(--tabbar-h) + 12px); right: 12px !important; left: 12px; } #notificationContainer > div { min-width: 0 !important; } }

/* ===== Каталог: карточки подкатегорий + фильтры в левой колонке ===== */
.vx-subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; margin-bottom: 28px; }
.vx-subcat { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--navy-900); transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.vx-subcat:hover { border-color: var(--line-strong); box-shadow: 0 6px 20px rgba(7,36,75,.08); transform: translateY(-2px); }
.vx-subcat__media { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: var(--radius-md); background: #f4f6fa; overflow: hidden; margin-bottom: 6px; }
.vx-subcat__media img { width: 100%; height: 100%; object-fit: contain; }
.vx-subcat__media i { font-size: 36px; color: #9aa1b5; }
.vx-subcat__name { font: 600 15px/20px var(--font-sans); overflow-wrap: anywhere; }
.vx-subcat__count { font: 400 13px/16px var(--font-sans); color: #6b7286; }
@media (max-width: 767px) {
  .vx-subcats { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 20px; padding: 2px var(--gutter) 4px; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
  .vx-subcats::-webkit-scrollbar { display: none; }
  .vx-subcat { flex: 0 0 132px; padding: 8px; scroll-snap-align: start; }
  .vx-subcat:hover { transform: none; }
  .vx-subcat__name { font-size: 14px; line-height: 18px; }
  .vx-cat-perpage { display: none !important; }
}

.vx-cat-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 24px; align-items: start; }
.vx-cat-main { min-width: 0; }
.vx-cat-side { position: sticky; top: 96px; max-height: calc(100vh - 112px); display: flex; flex-direction: column; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.vx-cat-side__head { display: none; }
.vx-cat-side__body { overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px 0; scrollbar-width: thin; }
.vx-cat-filters { display: flex; flex-direction: column; }
.vx-cat-side .filter-dropdown { position: static; border-bottom: 1px solid var(--line); padding: 4px 0 8px; }
.vx-cat-side .filter-dropdown-btn { width: 100%; justify-content: flex-start; background: none !important; border: 0 !important; padding: 10px 0 !important; font-weight: 600; color: var(--navy-900); }
.vx-cat-side .filter-dropdown-btn .dropdown-arrow { margin-left: auto !important; transform: rotate(180deg); }
.vx-cat-side .filter-dropdown.collapsed .dropdown-arrow { transform: none; }
.vx-cat-side .filter-dropdown-menu { position: static !important; width: auto !important; margin: 0 !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; background: none; z-index: auto; }
.vx-cat-side .filter-dropdown.collapsed .filter-dropdown-menu { display: none; }
.vx-cat-side .filter-dropdown-menu > .border-b { display: none; } /* заголовок секции дублирует кнопку */
.vx-cat-side .filter-dropdown-menu > div { padding-left: 0; padding-right: 0; }
.vx-cat-side .filter-dropdown-menu label { padding-left: 4px; padding-right: 4px; }
.vx-cat-side__actions { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 12px 0 14px; background: var(--surface, #fff); margin-top: 4px; }
.vx-cat-side__actions > button { flex: 1 1 auto; justify-content: center; white-space: nowrap; padding-left: 12px !important; padding-right: 12px !important; }
.vx-cat-side__actions > button > * + * { margin-left: 6px !important; }
.vx-cat-side #activeFiltersRow { padding: 0 0 12px; }
.vx-cat-filters-btn { display: none; }
.vx-cat-backdrop { display: none; }

@media (max-width: 1023px) {
  .vx-cat-layout { display: block; }
  .vx-cat-filters-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface, #fff); font: 600 14px/18px var(--font-sans); color: var(--navy-900); }
  .vx-cat-side { position: fixed; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); max-height: none; border-radius: 0; border: 0; z-index: 9101; transform: translateX(-100%); transition: transform .25s ease; }
  .vx-cat-side__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font: 700 18px/24px var(--font-sans); color: var(--navy-900); }
  .vx-cat-side__close { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; font-size: 22px; cursor: pointer; }
  .vx-cat-side__body { flex: 1; }
  .vx-cat-side__actions { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .filters-open .vx-cat-side { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  .filters-open .vx-cat-backdrop { display: block; position: fixed; inset: 0; background: rgba(7,20,40,.45); z-index: 9100; }
}

/* Гость: вместо «В корзину» — войти / зарегистрироваться */
.vx-login-buy { border: 1px solid var(--line); border-radius: var(--radius-md); background: #f6f8fc; padding: 14px 16px; }
.vx-login-buy p { display: flex; gap: 8px; margin: 0 0 12px; font: 400 14px/20px var(--font-sans); color: var(--navy-900); }
.vx-login-buy p i { color: #e08a2c; font-size: 18px; line-height: 20px; }
.vx-login-buy__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.vx-login-buy__btns .vx-btn { flex: 1 1 140px; height: 44px; }
.vx-login-buy--compact { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface, #fff); padding: 8px 12px; font: 600 13px/16px var(--font-sans); color: var(--navy-900); text-decoration: none; white-space: nowrap; }
.vx-login-buy--compact:hover { border-color: var(--navy-900); }

/* Сетка товаров в категории (рядом колонка фильтров): 3 → 2 на телефоне */
.vx-cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vx-cat-grid.is-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vx-cat-grid > .col-span-full { grid-column: 1 / -1; }
@media (max-width: 1199px) and (min-width: 1024px) { .vx-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .vx-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* Поиск: на телефоне категории — лентой плашек, а не столбиком карточек */
.vx-search-cats-m { display: none; }
@media (max-width: 767px) { .vx-search-cats-m { display: flex; } }

/* Описание товара (HTML из 1С/админки): списки и заголовки читаемыми */
.prose h2, .prose h3 { font: 700 17px/24px var(--font-sans); color: var(--navy-900); margin: 16px 0 8px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 10px; line-height: 1.55; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 20px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 4px 0; line-height: 1.5; }
.prose li::marker { color: var(--orange-500); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 14px; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }

/* Первый экран: разделы и их подкатегории */
.vx-cats a.vx-cats__root { font-weight: 700; }
.vx-cats a.vx-cats__root:not(:first-child) { margin-top: 6px; }
.vx-cats a.vx-cats__sub { padding-top: 3px; padding-bottom: 3px; padding-left: 20px; font-weight: 400; font-size: 13px; color: var(--text-muted, #5b6378); }
.vx-cats a.vx-cats__sub:hover { color: var(--navy-900); }
