/* Bundle shop.css ← templates/one/css */
/* Generated: 2026-08-03T11:47:59+03:00 */

/* --- 01-typography.css --- */
/* ==========================================================================
   01-typography.css — типографика (шрифты, заголовки, текст, ссылки, иконки)
   ========================================================================== */

:root {
  --c-primary: #00adef;
  --c-primary-d: #0095d1;
  --c-info: #2563eb;
  --c-info-d: #1d4ed8;
  --c-success: #10b981;
  --c-danger: #ef4444;
  --c-warning: #f59e0b;
  --c-accent: #f76300;
  --c-accent-d: #c54f00;
  --c-teal: #009ba8;
  --c-gray-50: #f9fafb;
  --c-gray-200: #e5e7eb;
  --c-gray-300: #d1d5db;
  --c-gray-400: #9ca3af;
  --c-gray-500: #6b7280;
  --c-gray-600: #1f2937;
  --c-gray-700: #374151;
  --c-gray-800: #1f2937;
  --c-gray-900: #111827;
  --c-text: var(--c-gray-800);
  --c-bg: #ffffff;

  /* Три размера: default | small | bold (иконки, текст, inline-элементы) */
  --size-default: 1rem;
  --size-small: 0.875rem;
  --size-bold: 2rem;
  --radius-full: 9999px;
}

/* База */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
    Ubuntu, Cantarell, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Заголовки */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 1.5rem 0 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-gray-900);
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

/* Абзацы и inline */
p {
  margin: 0 0 1rem;
  color: var(--c-gray-900);
}

small,
.small {
  font-size: var(--size-small);
}

strong,
b {
  font-weight: 700;
}

em,
i:not([class*="icon-"]) {
  font-style: italic;
}

u,
.text-underline {
  text-decoration: underline;
}

s,
del,
.text-line-through {
  text-decoration: line-through;
}

mark {
  background-color: #fef08a;
  color: inherit;
}

hr {
  border: 0;
  border-top: 1px solid var(--c-gray-200);
  margin: 2rem 0;
}

/* Метки — текст на цветной плашке (badge), размер как у окружающего текста */
.label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15em 0.45em;
  font-size: inherit;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-full);
  white-space: nowrap;
  vertical-align: baseline;
  background: var(--c-gray-200);
  color: var(--c-gray-800);
}

.label-circle {
  width: 1.5em;
  height: 1.5em;
  padding: 0;
  border-radius: 50%;
  min-width: 1.5em;
  line-height: 1;
}

.label-primary { background: var(--c-primary); color: #fff; }
.label-success { background: var(--c-success); color: #fff; }
.label-danger { background: var(--c-danger); color: #fff; }
.label-warning { background: var(--c-warning); color: #fff; }
.label-accent { background: var(--c-accent); color: #fff; }
.label-teal { background: var(--c-teal); color: #fff; }
.label-gray { background: var(--c-gray-600); color: #fff; }
.label-info { background: var(--c-info); color: #fff; }

/* Цвет из БД (роли пользователей): style="--label-bg:#hex" */
.label--custom {
  background: var(--label-bg, var(--c-gray-200));
  color: #fff;
}

/* Списки в контенте */
ul,
ol {
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.25rem;
}

.list-unstyled {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Код */
pre {
  margin: 0 0 1rem;
  display: block;
  width: 100%;
  overflow-x: auto;
  background-color: var(--c-gray-200);
  border-radius: 3px;
  box-sizing: border-box;
}

pre code {
  display: block;
  padding: 1rem;
  background: transparent;
  border: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
}

code {
  font-family: Consolas, Courier, monospace;
  font-size: 0.75rem;
  color: var(--c-gray-800);
}

.inline-code,
p code,
li code {
  padding: 0 3px;
  border-radius: 3px;
  background-color: var(--c-gray-200);
  font-size: 0.875em;
}

/* Ссылки */
a {
  color: var(--c-gray-800);
  text-decoration: none;
}

a:hover {
  color: var(--c-gray-900);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

.text-decoration-none {
  text-decoration: none !important;
}

/* Выравнивание */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* Цвета текста */
.text-muted { color: var(--c-gray-500) !important; }
.text-primary { color: var(--c-primary) !important; }
.text-success { color: var(--c-success) !important; }
.text-danger { color: var(--c-danger) !important; }
.text-warning { color: var(--c-warning) !important; }
.text-info { color: var(--c-info) !important; }
.text-accent { color: var(--c-accent) !important; }
.text-teal { color: var(--c-teal) !important; }
.text-white { color: #fff !important; }
.text-gray-400 { color: var(--c-gray-400) !important; }
.text-gray-600 { color: var(--c-gray-600) !important; }
.text-gray-800 { color: var(--c-gray-800) !important; }
.text-on-dark { color: #fff !important; }
.text-on-light { color: var(--c-gray-900) !important; }

/* Начертание */
.font-light { font-weight: 300 !important; }
.font-normal { font-weight: 400 !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }

/* Размеры: default (body) | .small | .bold */
.bold {
  font-size: var(--size-bold);
  line-height: 1.2;
}

/* Алиасы для существующей разметки админки */
.text-sm { font-size: var(--size-small) !important; }
.text-xl { font-size: var(--size-bold) !important; }

/* Fontello — иконочный шрифт */
@font-face {
  font-family: 'fontello';
  src: url('../../fonts/fontello.eot?88450644');
  src: url('../../fonts/fontello.eot?88450644#iefix') format('embedded-opentype'),
       url('../../fonts/fontello.woff2?88450644') format('woff2'),
       url('../../fonts/fontello.woff?88450644') format('woff'),
       url('../../fonts/fontello.ttf?88450644') format('truetype'),
       url('../../fonts/fontello.svg?88450644#fontello') format('svg');
  font-weight: normal;
  font-style: normal;
}

[class^="icon-"]:before,
[class*=" icon-"]:before {
  font-family: "fontello";
  font-style: normal;
  font-weight: normal;
  speak: never;
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: 0.2em;
  margin-left: 0.2em;
  text-align: center;
  font-variant: normal;
  text-transform: none;
  line-height: 1em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Размеры иконок: default (1em) | .small | .bold */
[class^="icon-"],
[class*=" icon-"] {
  font-size: 1em;
  line-height: 1;
}

[class^="icon-"].small,
[class*=" icon-"].small {
  font-size: var(--size-small);
}

[class^="icon-"].bold,
[class*=" icon-"].bold {
  font-size: var(--size-bold);
}

.icon-home:before { content: '\e800'; }
.icon-search-1:before { content: '\e802'; }
.icon-basket:before { content: '\e807'; }
.icon-heart:before { content: '\e809'; }
.icon-users:before { content: '\e80d'; }
.icon-credit-card:before { content: '\e80f'; }
.icon-truck:before { content: '\e811'; }
.icon-star:before { content: '\e813'; }
.icon-star-empty-1:before { content: '\e817'; }
.icon-database-1:before { content: '\e81a'; }
.icon-doc:before { content: '\e81e'; }
.icon-clipboard:before { content: '\e81f'; }
.icon-wrench:before { content: '\e820'; }
.icon-chart-bar:before { content: '\e822'; }
.icon-link:before { content: '\e823'; }
.icon-cog:before { content: '\e824'; }
.icon-cog-alt:before { content: '\e825'; }
.icon-bell:before { content: '\e827'; }
.icon-lock:before { content: '\e829'; }
.icon-lock-open:before { content: '\e82a'; }
.icon-globe-1:before { content: '\e82e'; }
.icon-phone:before { content: '\e82f'; }
.icon-location:before { content: '\e831'; }
.icon-clock-1:before { content: '\e834'; }
.icon-down-dir:before { content: '\e835'; }
.icon-up-dir:before { content: '\e836'; }
.icon-left-dir:before { content: '\e837'; }
.icon-right-dir:before { content: '\e838'; }
.icon-down-open:before { content: '\e839'; }
.icon-left-open:before { content: '\e83a'; }
.icon-right-open:before { content: '\e83b'; }
.icon-up-open:before { content: '\e83c'; }
.icon-heart-empty:before { content: '\e83d'; }
.icon-th:before { content: '\e83e'; }
.icon-tools:before { content: '\e840'; }
.icon-pencil:before { content: '\e841'; }
.icon-trash-empty:before { content: '\e843'; }
.icon-tag:before { content: '\e844'; }
.icon-tags:before { content: '\e845'; }
.icon-picture:before { content: '\e846'; }
.icon-eye:before { content: '\e848'; }
.icon-play:before { content: '\e849'; }
.icon-mail:before { content: '\e84a'; }
.icon-attach:before { content: '\e84b'; }
.icon-back:before { content: '\e84c'; }
.icon-cancel-1:before { content: '\e84d'; }
.icon-print:before { content: '\e84e'; }
.icon-pin:before { content: '\e852'; }
.icon-menu:before { content: '\f0c9'; }
.icon-doc-text:before { content: '\f0f6'; }
.icon-youtube-play:before { content: '\f16a'; }
.icon-instagram:before { content: '\f16d'; }
.icon-cubes:before { content: '\f1b3'; }
.icon-database:before { content: '\f1c0'; }
.icon-paper-plane-empty:before { content: '\f1d9'; }
.icon-sliders:before { content: '\f1de'; }
.icon-bus:before { content: '\f207'; }
.icon-user-circle:before { content: '\f2bd'; }
.icon-user-circle-o:before { content: '\f2be'; }
.icon-telegram:before { content: '\f2c6'; }
.icon-facebook-squared:before { content: '\f308'; }


/* --- 02-layout.css --- */
/* ==========================================================================
   02-layout.css — скелет страницы (header, main, footer, stick, .grid, cookie)
   ========================================================================== */

:root {
  /* Брейкпоинты — docs/LAYOUT.md */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1440px;
  --bp-2xl: 1920px; /* опционально, по умолчанию не меняет --page-max */

  --page-max: 1432px;
  --gutter: 1rem;
  --gap: 1rem;
  --stick-width: 200px;
  --stick-width-collapsed: 3.5rem;
  --auth-width: 400px;
  --header-side: 240px;
  --header-logo-max: 200px;
}

@media (min-width: 480px) {
  :root {
    --gap: 1.125rem;
  }
}

/* --------------------------------------------------------------------------
   Страница: notice → header → nav → main → footer
   -------------------------------------------------------------------------- */

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-height: 100vh;
  margin: 0;
}

.store-notice {
  background: #fff3cd;
  color: #664d03;
  padding: 0.625rem var(--gutter);
  text-align: center;
  font-size: 0.95rem;
  border-bottom: 1px solid #ffc107;
}

.container {
  box-sizing: border-box;
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Site shell — общая 3-колоночная сетка: шапка и .site-nav (≥1024: 240|1fr|240)
   -------------------------------------------------------------------------- */

.site-shell,
.site-header__inner,
.site-nav__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  overflow: visible;
}

@media (min-width: 1024px) {
  .site-shell,
  .site-header__inner,
  .site-nav__inner {
    grid-template-columns: var(--header-side) minmax(0, 1fr) var(--header-side);
  }

  .site-header__logo,
  .site-header__dropdown {
    flex-shrink: 0;
  }
}

.site-shell > *,
.site-header__inner > *,
.site-nav__inner > * {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Header (верх сайта)
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--c-gray-600);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  padding-block: 0.5rem;
  color: #fff;
  overflow: visible;
}

.site-header__logo,
.site-header__menu,
.site-header__dropdown {
  min-width: 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.site-logo img {
  display: block;
  width: auto;
  max-width: var(--header-logo-max);
  height: auto;
  max-height: 3rem;
}

.site-header__dropdown {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.site-header__tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.375rem;
  overflow: visible;
}

.site-header__menu {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 2.5rem;
}

.site-header__burger {
  display: inline-flex;
  color: #fff;
  background: var(--c-gray-800);
  border-color: rgb(255 255 255 / 0.2);
}

.site-header__burger:hover {
  background: var(--c-gray-700);
  color: #fff;
}

/* .btn-circle задаёт display:inline-flex — нужна большая специфичность */
@media (min-width: 768px) {
  .site-header__menu > .site-header__burger.btn-circle {
    display: none;
  }
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1150;
  background: rgb(17 24 39 / 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

body.mobile-nav-open {
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Nav — полоса каталог / поиск / действия (виджеты позже)
   -------------------------------------------------------------------------- */

.site-nav {
  background: var(--c-gray-900);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  padding-block: 0.5rem;
  color: #fff;
}

.site-nav:empty {
  display: none;
}

.site-nav:has(.site-nav__catalog:empty):has(.site-nav__search:empty):has(.site-nav__actions:empty) {
  display: none;
}

/* Как site-header: та же 3-колоночная .site-shell на всех ширинах; без стека в 1 колонку */

.site-nav__catalog {
  width: 100%;
}

.site-nav__catalog .dropdown__panel {
  left: 0;
  right: auto;
  min-width: 14rem;
  max-height: min(24rem, 70vh);
  overflow-y: auto;
}

.site-nav__search form {
  width: 100%;
}

.site-nav__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.site-nav__cart-btn {
  justify-content: center;
  font-weight: 600;
}

.site-nav__cart-label {
  display: none;
}

/* ≥ lg (1024px): подпись «Корзина», кнопка на всю колонку (снимаем .btn-circle) */
@media (min-width: 1024px) {
  .site-nav__cart-btn {
    flex: 1;
    min-width: 0;
  }

  .site-nav__cart-btn.btn-circle {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: var(--btn-height);
    padding: 0 var(--btn-padding-x);
    border-radius: var(--btn-radius);
    font-size: var(--btn-font-size);
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    flex: 1;
  }

  .site-nav__cart-label {
    display: inline;
  }
}

@media (max-width: 1023px) {
  .site-nav__cart-btn {
    flex: 0 0 auto;
  }
}

.site-nav a:not(.dropdown__link) {
  text-decoration: none;
  color: inherit;
}

.site-header .site-nav-wrap {
  border-bottom: none;
  padding-block: 0;
}

/* Обратная совместимость: виджет mainmenu */
.site-nav-wrap {
  border-bottom: 1px solid var(--c-gray-200, #e5e7eb);
  padding-block: 0.5rem;
}

.site-nav-wrap:empty {
  display: none;
}

.site-nav-wrap a {
  text-decoration: none;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Stick — админ-меню (только eno): fixed overlay, не смещает main
   -------------------------------------------------------------------------- */

.site-stick {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1100;
  width: var(--stick-width);
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid var(--c-gray-200, #e5e7eb);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, width 0.25s ease, box-shadow 0.25s ease;
}

.site-stick:empty {
  display: none;
}

body.stick-hidden .site-stick {
  transform: translateX(-100%);
}

/* Состояние из stick-boot.js (на <html>, без мерцания до components.js) */
html.stick-mode-hidden .site-stick {
  transform: translateX(-100%);
}

html.stick-mode-rail .site-stick {
  width: var(--stick-width-collapsed);
}

html.stick-mode-pinned .site-stick {
  width: var(--stick-width);
}

/* Hover-flyout: rail → полное меню (только desktop + мышь) */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  html.stick-mode-rail .site-stick:hover,
  html.stick-mode-rail .site-stick:focus-within {
    width: var(--stick-width);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
    z-index: 1110;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-stick {
    transition: none;
  }
}

.site-stick.is-collapsed {
  width: var(--stick-width-collapsed);
}

.site-stick.is-expanded {
  width: var(--stick-width);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

.site-stick__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
  padding: 0.35rem;
  border-bottom: 1px solid var(--c-gray-200, #e5e7eb);
}

.site-stick.is-collapsed .site-stick__toolbar {
  flex-direction: column;
  align-items: center;
}

html.stick-mode-rail .site-stick__toolbar {
  flex-direction: column;
  align-items: center;
}

.site-stick__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--c-accent, #f76300);
  cursor: pointer;
}

.site-stick__btn:hover,
.site-stick__btn:focus-visible {
  background: var(--c-gray-50, #f9fafb);
  color: var(--c-accent-d, #c54f00);
}

.site-stick-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.stick-expanded .site-stick-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-stick-toggle {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1200;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 0 999px 999px 0;
  background: var(--c-gray-200, #e5e7eb);
  color: var(--c-gray-800, #1f2937);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.site-stick-toggle:hover,
.site-stick-toggle:focus-visible {
  background: var(--c-gray-300, #d1d5db);
}

.site-stick-toggle[hidden] {
  display: none !important;
}

html.stick-mode-hidden .site-stick-toggle:not([hidden]) {
  display: inline-flex;
}

@media (max-width: 767px) {
  html.stick-mode-hidden .site-stick {
    transform: translateX(-100%);
  }

  html.stick-mode-rail .site-stick:not(.is-expanded) {
    width: var(--stick-width-collapsed);
  }
}

@media print {
  .site-stick,
  .site-stick-toggle,
  .site-stick-backdrop {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Main — контент; section/article добавляют модули
   -------------------------------------------------------------------------- */

.site-main {
  flex: 1 0 auto;
  min-width: 0;
  padding-block: var(--gap);
}

.site-main > .container {
  min-width: 0;
}

.site-main > .container > :last-child {
  margin-bottom: 0;
}

article,
section {
  min-width: 0;
}

.grid {
  /* 5 колонок в .container при --page-max: (W − 2×gutter − 4×gap) / 5 — как v2 каталог */
  --grid-min: calc((var(--page-max) - 2 * var(--gutter) - 4 * var(--gap)) / 5);
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--grid-min)), 1fr));
}

/* Фиксированное число колонок: .grid--2 … .grid--6 (равные доли)
   Брейкпоинты = --bp-sm (480px), --bp-lg (1024px) — docs/LAYOUT.md § «Поведение .grid--2» */
.grid--2,
.grid--3,
.grid--4,
.grid--6 {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}

.grid--2 > *,
.grid--3 > *,
.grid--4 > *,
.grid--6 > *,
.site-footer__col {
  min-width: 0;
}

.grid__full {
  grid-column: 1 / -1;
}

/* Половина строки: 2 из 4 или 3 из 6 */
.grid--4 > .grid__half {
  grid-column: 1 / -1;
}

.grid--6 > .grid__half {
  grid-column: 1 / -1;
}

/* Три четверти строки в .grid--4 (3 поля + 1 поле) */
.grid--4 > .grid__span-3 {
  grid-column: 1 / -1;
}

@media (min-width: 480px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3,
  .grid--4,
  .grid--6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 > .grid__half {
    grid-column: span 2;
  }

  .grid--6 > .grid__half {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid--6 {
    grid-template-columns: repeat(6, 1fr);
  }

  .grid--4 > .grid__half {
    grid-column: span 2;
  }

  .grid--6 > .grid__half {
    grid-column: span 3;
  }

  .grid--4 > .grid__span-3 {
    grid-column: span 3;
  }

  .grid--4 > .grid__aside {
    padding-left: var(--gap);
    border-left: 1px solid var(--c-gray-200, #e5e7eb);
  }
}

/* --------------------------------------------------------------------------
   Карточка товара: галерея 60% + блок покупки 40% (6fr 4fr от 1024px)
   -------------------------------------------------------------------------- */

.product-layout {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}

.product-layout > * {
  min-width: 0;
}

.product-layout__buy {
  box-sizing: border-box;
  padding: 1rem;
  background: var(--c-white, #fff);
  border: 1px solid var(--c-gray-200, #e5e7eb);
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.06);
}

@media (min-width: 1024px) {
  .product-layout {
    grid-template-columns: 6fr 4fr;
  }

  .product-layout__buy {
    display: flex;
    flex-direction: column;
  }

  /* Один внутренний блок (product.html); не на каждый прямой потомок — иначе ломает демо с несколькими узлами */
  .product-layout__buy > :only-child {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }

  .product-layout__benefits {
    margin-top: auto;
  }
}

/* Строка «количество + купить» — всегда в одну линию (не .grid--4) */
.product-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--gap);
  margin-top: 1rem;
}

.product-actions__qty {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
}

.product-actions__qty .qty-stepper {
  min-width: 7.5rem;
}

.product-actions__qty .input {
  width: 100%;
}

.product-actions__submit {
  flex: 1 1 auto;
  min-width: 0;
}

.product-actions--compact {
  margin-top: 0;
  align-items: center;
  flex-wrap: wrap;
}

.product-actions--compact .product-actions__qty .qty-stepper {
  height: var(--btn-height);
}

.product-actions--compact .product-actions__qty .qty-stepper__btn {
  flex: 0 0 1.875rem;
  width: 1.875rem;
  font-size: 1.125rem;
}

.product-actions--compact .product-actions__submit .form-check {
  align-items: center;
}

.product-actions--compact .product-actions__submit .form-check input[type="checkbox"] {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Авторизация — узкая колонка по центру (login, register, forgot, reset)
   -------------------------------------------------------------------------- */

.layout-auth,
.auth-form {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--auth-width);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Footer — прижат к низу через flex на body + flex:1 у main
   -------------------------------------------------------------------------- */

.site-footer {
  flex-shrink: 0;
  background: var(--c-gray-800);
  border-top: 1px solid rgb(255 255 255 / 0.08);
  padding-block: 1.5rem;
  color: var(--c-gray-300);
}

.site-footer__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.site-footer__copy {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: var(--c-gray-400);
}

/* --------------------------------------------------------------------------
   Cookie-баннер (слот {*cookie_consent*}, SysCookieConsentWidgetModule)
   -------------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--c-white, #fff);
  border-top: 1px solid var(--c-gray-200, #e5e7eb);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.1);
  padding: 0.75rem 0;
}

.cookie-banner--static {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  box-shadow: none;
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__message {
  flex: 1 1 14rem;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--c-gray-700, #374151);
}

.cookie-banner__privacy {
  color: var(--c-accent, #f76300);
  text-decoration: underline;
}

.cookie-banner__privacy:hover {
  color: var(--c-accent-d, #c54f00);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Видимость (mobile first)
   -------------------------------------------------------------------------- */

.d-none { display: none !important; }

@media (min-width: 480px) {
  .d-sm-none { display: none !important; }
  .d-sm-block { display: block !important; }
  .d-sm-flex { display: flex !important; }
}

@media (min-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
  .d-md-flex { display: flex !important; }
}

@media (min-width: 1024px) {
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
  .d-lg-flex { display: flex !important; }
}

@media (min-width: 1440px) {
  .d-xl-none { display: none !important; }
  .d-xl-block { display: block !important; }
  .d-xl-flex { display: flex !important; }
}


/* --- 03-menu.css --- */
/* ==========================================================================
   03-menu.css — навигация: nav > ul > li (горизонталь / вертикаль)
   Брейкпоинты шапки: --bp-md (768px), --bp-lg (1024px) — см. 02-layout.css
   ========================================================================== */

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0;
  padding: 0;
}

/* Главное меню под шапкой */
.site-header .site-nav-wrap nav a,
.site-header .site-nav-wrap nav li > span {
  color: rgb(255 255 255 / 0.9);
  text-decoration: none;
}

.site-header .site-nav-wrap nav a:hover {
  color: #fff;
}

.site-nav-wrap nav > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.site-header__menu .site-nav-wrap nav > ul {
  justify-content: center;
}

/* Иконки пунктов шапки — только от lg (1024px) */
.site-header__menu .site-nav-wrap nav .menu-item-icon {
  display: none;
}

/* < md (≤767px): бургер + панель слева */
@media (max-width: 767px) {
  .site-header__menu .site-nav-wrap {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1200;
    width: min(20rem, 88vw);
    margin: 0;
    padding: 1rem;
    padding-top: 4rem;
    border: 0;
    border-right: 1px solid var(--c-gray-200, #e5e7eb);
    background: #fff;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    visibility: hidden;
  }

  body.mobile-nav-open .site-header__menu .site-nav-wrap {
    transform: translateX(0);
    visibility: visible;
  }

  .site-header__menu .site-nav-wrap nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .site-header__menu .site-nav-wrap nav > ul > li > a,
  .site-header__menu .site-nav-wrap nav > ul > li > span {
    display: block;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-sm, 4px);
    color: var(--c-gray-800);
  }

  .site-header__menu .site-nav-wrap nav > ul > li > a:hover {
    color: var(--c-gray-900);
  }

  .site-header__menu .site-nav-wrap nav > ul > li.active > a,
  .site-header__menu .site-nav-wrap nav a.active,
  .site-header__menu .site-nav-wrap nav a[aria-current='page'] {
    color: var(--c-primary);
  }
}

/* md–lg (768–1023px): строка меню без иконок, без бургера */
@media (min-width: 768px) {
  .site-header__menu .site-nav-wrap {
    position: static;
    width: 100%;
    border-bottom: none;
    padding-block: 0;
    transform: none;
    visibility: visible;
    overflow: visible;
  }

  .site-header__menu .site-nav-wrap nav > ul {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }

  .site-header__menu .site-nav-wrap nav > ul > li > a,
  .site-header__menu .site-nav-wrap nav > ul > li > span {
    display: inline;
    padding: 0;
  }
}

/* ≥ lg (1024px): иконки перед текстом пункта */
@media (min-width: 1024px) {
  .site-header__menu .site-nav-wrap nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .site-header__menu .site-nav-wrap nav .menu-item-icon {
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
  }
}

.site-nav-wrap nav li ul {
  margin-top: 0.25rem;
  padding-left: 1rem;
}

/* Админ-меню в site-stick (шаблон eno, слот {*left*}) */
.site-stick nav.vertical {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.site-stick .vertical {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.site-stick .vertical ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.site-stick .vertical > ul > li {
  margin: 0;
  padding: 0;
  width: 100%;
  position: relative;
}

.site-stick .vertical .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 1rem;
  color: var(--c-gray-800, #1f2937);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-bottom: 1px solid var(--c-gray-200, #e5e7eb);
  box-sizing: border-box;
}

.site-stick .vertical .nav-link:hover {
  background: var(--c-gray-50, #f9fafb);
  color: var(--c-accent-d, #c54f00);
  text-decoration: none;
}

.site-stick .vertical .nav-link.active,
.site-stick .vertical .nav-link[aria-current="page"],
.site-stick .vertical li.active > .nav-link {
  color: var(--c-accent, #f76300);
  font-weight: 600;
  background: var(--c-gray-100, #f3f4f6);
}

.site-stick .vertical .nav-link i {
  color: var(--c-gray-600, #4b5563);
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.site-stick .vertical .nav-link:hover i,
.site-stick .vertical li.active > .nav-link i {
  color: var(--c-accent-d, #c54f00);
}

.site-stick .vertical .nav-label {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-stick .vertical > ul > li.has-submenu .nav-link .menu-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: auto;
  color: var(--c-gray-400, #9ca3af);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.site-stick .vertical > ul > li.has-submenu.open .nav-link .menu-arrow {
  transform: rotate(180deg);
  color: var(--c-accent-d, #c54f00);
}

.site-stick .vertical > ul > li > ul.submenu {
  display: none;
  margin: 0;
  padding: 0.35rem 0 0.35rem 1.25rem;
  list-style: none;
  background: var(--c-gray-50, #f9fafb);
  border-left: 2px solid var(--c-gray-200, #e5e7eb);
}

.site-stick .vertical > ul > li.has-submenu.open > ul.submenu {
  display: flex;
  flex-direction: column;
}

.site-stick .vertical > ul > li > ul.submenu .nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-bottom-color: var(--c-gray-100, #f3f4f6);
}

.site-stick.is-collapsed .nav-label,
.site-stick.is-collapsed .menu-arrow,
.site-stick.is-collapsed .submenu,
html.stick-mode-rail .site-stick .nav-label,
html.stick-mode-rail .site-stick .menu-arrow,
html.stick-mode-rail .site-stick .submenu {
  display: none !important;
}

.site-stick.is-collapsed .vertical .nav-link,
html.stick-mode-rail .site-stick .vertical .nav-link {
  justify-content: center;
  padding-inline: 0.5rem;
}

.site-stick.is-collapsed .vertical .nav-link i,
html.stick-mode-rail .site-stick .vertical .nav-link i {
  margin: 0;
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  html.stick-mode-rail .site-stick:hover .nav-label,
  html.stick-mode-rail .site-stick:focus-within .nav-label {
    display: block !important;
  }

  html.stick-mode-rail .site-stick:hover .menu-arrow,
  html.stick-mode-rail .site-stick:focus-within .menu-arrow {
    display: inline-flex !important;
  }

  html.stick-mode-rail .site-stick:hover li.has-submenu.open > ul.submenu,
  html.stick-mode-rail .site-stick:focus-within li.has-submenu.open > ul.submenu {
    display: flex !important;
    flex-direction: column;
  }

  html.stick-mode-rail .site-stick:hover .vertical .nav-link,
  html.stick-mode-rail .site-stick:focus-within .vertical .nav-link {
    justify-content: flex-start;
    padding-inline: 1rem;
  }
}

/* legacy: простой nav без .vertical */
.site-stick nav:not(.vertical) > ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-stick nav:not(.vertical) li ul {
  margin-top: 0.25rem;
  padding-left: 1rem;
}

/* Счётчик в пункте меню — inline после текста (IndicatorCollector) */
nav a .badge,
nav span .badge {
  margin-left: 0.35em;
  vertical-align: middle;
}

/* Активный пункт (components.js: highlightCurrentPage) */
nav li.active > a,
nav a.active,
nav a[aria-current='page'] {
  font-weight: 600;
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* В тёмной шапке — выше специфичность, чем у .site-header .site-nav-wrap nav a */
.site-header .site-nav-wrap nav li.active > a,
.site-header .site-nav-wrap nav a.active,
.site-header .site-nav-wrap nav a[aria-current='page'] {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}


/* --- 04-buttons.css --- */
/* ==========================================================================
   04-buttons.css — кнопки, группы, выравнивание с полями, переключатель языка
   Имена классов: Bootstrap-совместимые (.btn, .btn-primary) + BEM для lang-switch
   ========================================================================== */

:root {
  --c-white: #fff;
  --btn-height: 2.375rem;
  --btn-cta-height: 3.375rem; /* 54px — «Купить», «В каталог» */
  --btn-shine-duration: 5s;
  --btn-padding-x: 1.2rem;
  --btn-font-size: 0.8125rem;
  --btn-radius: 0;
  --btn-radius-rounded: 0.5rem;
}

/* --------------------------------------------------------------------------
   Базовая кнопка
   -------------------------------------------------------------------------- */

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--btn-height);
  padding: 0 var(--btn-padding-x);
  font-family: inherit;
  font-size: var(--btn-font-size);
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--c-gray-900);
  background: var(--c-gray-200);
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
}

a.btn {
  color: var(--c-gray-900);
}

a.btn:hover,
a.btn:focus {
  text-decoration: none;
}

button:hover,
.btn:hover {
  background: var(--c-gray-300, #d1d5db);
}

button:active,
.btn:active {
  background: var(--c-gray-400);
}

button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

button:disabled,
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Варианты (палитра проекта, без расширения)
   -------------------------------------------------------------------------- */

.btn-primary {
  background: var(--c-primary);
  color: var(--c-white);
}

a.btn-primary {
  color: var(--c-white);
}

.btn-primary:hover {
  background: var(--c-primary-d);
}

.btn-secondary {
  background: var(--c-gray-200);
  color: var(--c-gray-800);
  border-color: var(--c-gray-300, #d1d5db);
}

a.btn-secondary {
  color: var(--c-gray-800);
}

.btn-secondary:hover {
  background: var(--c-gray-300, #d1d5db);
}

.btn-success {
  background: var(--c-success);
  color: var(--c-white);
}

a.btn-success {
  color: var(--c-white);
}

.btn-danger {
  background: var(--c-danger);
  color: var(--c-white);
}

a.btn-danger {
  color: var(--c-white);
}

.btn-warning {
  background: var(--c-warning);
  color: var(--c-white);
}

a.btn-warning {
  color: var(--c-white);
}

.btn-accent {
  background: var(--c-accent);
  color: var(--c-white);
}

a.btn-accent {
  color: var(--c-white);
}

.btn-accent:hover {
  background: var(--c-accent-d);
}

a.btn-accent:hover {
  color: var(--c-white);
}

/* CTA — крупная кнопка действия (карточка товара, ссылки в каталог) */
.btn-cta {
  min-height: var(--btn-cta-height);
  height: var(--btn-cta-height);
  padding-inline: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Блик по кнопке (каталог в шапке и др.) — цикл --btn-shine-duration (5s) */
.btn-shine {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-shine::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 300% 100%;
  background-repeat: no-repeat;
  background-position: -300% 0;
  animation: btn-shine var(--btn-shine-duration, 5s) linear infinite;
  z-index: 1;
  pointer-events: none;
}

.btn-shine > * {
  position: relative;
  z-index: 2;
}

@keyframes btn-shine {
  0% {
    background-position: -300% 0;
  }

  33.33% {
    background-position: 100% 0;
  }

  33.34%,
  100% {
    background-position: -300% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-shine::before {
    animation: none;
  }
}

/* Outline — для переключателей периода и вторичных действий */
.btn-outline-primary {
  background: transparent;
  color: var(--c-primary);
  border: 1px solid var(--c-primary);
}

a.btn-outline-primary {
  color: var(--c-primary);
}

.btn-outline-primary:hover {
  background: var(--c-primary);
  color: var(--c-white);
}

.btn-outline-secondary {
  background: transparent;
  color: var(--c-gray-700);
  border: 1px solid var(--c-gray-300, #d1d5db);
}

a.btn-outline-secondary {
  color: var(--c-gray-700);
}

.btn-outline-secondary:hover {
  background: var(--c-gray-200);
}

.btn-outline-accent {
  background: transparent;
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
}

a.btn-outline-accent {
  color: var(--c-accent);
}

.btn-outline-accent:hover {
  background: var(--c-accent);
  color: var(--c-white);
}

a.btn-outline-accent:hover {
  color: var(--c-white);
}

/* Кнопка-ссылка (таблицы, inline-действия) */
.btn-link {
  min-height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--c-primary);
  font-weight: inherit;
  text-decoration: underline;
}

.btn-link:hover {
  color: var(--c-primary-d);
  background: transparent;
}

/* --------------------------------------------------------------------------
   Размер и форма
   -------------------------------------------------------------------------- */

.btn-block,
.btn-full {
  width: 100%;
}

.btn-rounded {
  border-radius: var(--btn-radius-rounded);
}

.btn-circle,
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--btn-height);
  min-width: var(--btn-height);
  height: var(--btn-height);
  min-height: var(--btn-height);
  padding: 0;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  box-sizing: border-box;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Группы
   -------------------------------------------------------------------------- */

.btn-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Кнопки отправки формы — прижаты к правому краю (админка) */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Кнопка в колонке сетки — на одной линии с полями (под label) */
.grid--2 > .form-actions,
.grid--3 > .form-actions,
.grid--4 > .form-actions,
.grid--6 > .form-actions {
  align-self: end;
}

/* --------------------------------------------------------------------------
   Поле + кнопка (label снаружи ряда)
   -------------------------------------------------------------------------- */

.input-btn-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.input-btn-row > input,
.input-btn-row > select,
.input-btn-row > textarea {
  flex: 1;
  min-width: 0;
  min-height: var(--btn-height);
}

.input-btn-row > input[type="file"] {
  width: auto;
}

.input-btn-row > .btn {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Поиск: иконка внутри поля (справа)
   -------------------------------------------------------------------------- */

.search-field {
  position: relative;
  display: block;
  width: 100%;
}

.search-field > input {
  width: 100%;
  min-height: var(--btn-height);
  padding-right: var(--btn-height);
  box-sizing: border-box;
}

.search-field__btn {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--btn-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-gray-500);
  cursor: pointer;
  line-height: 1;
}

.search-field__btn:hover {
  color: var(--c-primary);
}

.search-field__btn:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: -2px;
}

/* --------------------------------------------------------------------------
   Бейдж — счётчик (.badge) на кнопке (.btn-badge) или inline (меню)
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25em;
  padding: 0.15em 0.45em;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  border-radius: var(--radius-full, 9999px);
  vertical-align: middle;
  box-sizing: border-box;
}

.badge-primary { background: var(--c-primary); color: var(--c-white); }
.badge-secondary { background: var(--c-gray-600); color: var(--c-white); }
.badge-success { background: var(--c-success); color: var(--c-white); }
.badge-warning { background: var(--c-warning); color: var(--c-white); }
.badge-danger { background: var(--c-danger); color: var(--c-white); }
.badge-info { background: var(--c-info); color: var(--c-white); }

/* Угол кнопки — модификатор на родителе */
.btn-badge {
  position: relative;
  overflow: visible;
}

.btn-badge > .badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.3em;
  font-size: 0.625rem;
  line-height: 1.125rem;
  transform: translate(40%, -40%);
  border: 2px solid var(--c-white);
  pointer-events: none;
}

.btn-primary.btn-badge > .badge,
.btn-success.btn-badge > .badge,
.btn-danger.btn-badge > .badge,
.btn-warning.btn-badge > .badge,
.btn-accent.btn-badge > .badge {
  border-color: transparent;
}

.btn-circle.btn-badge > .badge {
  transform: translate(25%, -25%);
}

/* --------------------------------------------------------------------------
   Переключатель языка (SysSwitchModule: .lang-switch, .lang-switch--active)
   -------------------------------------------------------------------------- */

.lang-switcher {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.375rem;
}

.lang-switch {
  text-decoration: none;
  color: var(--c-gray-700);
  background: var(--c-gray-200);
}

a.lang-switch:hover {
  text-decoration: none;
  background: var(--c-gray-300, #d1d5db);
  color: var(--c-gray-800);
}

.lang-switch--active {
  background: var(--c-primary);
  color: var(--c-white);
  cursor: default;
}

/* На тёмном фоне шапки — модификатор контекста (03-menu / layout) */
.site-header .lang-switcher .lang-switch,
.lang-switcher--on-dark .lang-switch {
  background: var(--c-gray-800);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.site-header .lang-switcher a.lang-switch:hover,
.lang-switcher--on-dark a.lang-switch:hover {
  background: var(--c-gray-700);
  color: #fff;
}

.site-header .lang-switcher .lang-switch--active,
.lang-switcher--on-dark .lang-switch--active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Дропдаун — кнопка-триггер (.dropdown__toggle)
   data-dropdown + data-dropdown-toggle; панель — 07-components.css
   -------------------------------------------------------------------------- */

.dropdown__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--c-gray-700);
  background: var(--c-gray-200);
  border: 1px solid transparent;
  border-radius: 0.25rem;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dropdown__toggle--pill {
  width: auto;
  min-width: unset;
  height: var(--btn-height, 2.375rem);
  min-height: var(--btn-height, 2.375rem);
  padding: 0 0.75rem;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  gap: 0.35rem;
}

.dropdown__toggle--pill .icon-phone {
  font-size: 0.875rem;
}

.dropdown__toggle--pill .icon-down-open {
  font-size: 0.625rem;
  margin-left: 0.1rem;
}

.dropdown__toggle:hover {
  background: var(--c-gray-300, #d1d5db);
  color: var(--c-gray-800);
}

.dropdown__toggle .icon-down-open {
  font-size: 0.75rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.dropdown.is-open .dropdown__toggle .icon-down-open {
  transform: rotate(180deg);
}

.site-header .dropdown__toggle {
  color: rgba(255, 255, 255, 0.9);
  background: var(--c-gray-800);
  border-color: rgb(255 255 255 / 0.2);
}

.site-header .dropdown__toggle--pill {
  color: rgba(255, 255, 255, 0.9);
  background: var(--c-gray-800);
  border: 1px solid rgb(255 255 255 / 0.2);
}

.site-header .dropdown.is-open .dropdown__toggle--pill {
  background: var(--c-gray-700);
  color: #fff;
}

.site-header .dropdown__toggle:hover,
.site-header .dropdown__toggle--pill:hover {
  background: var(--c-gray-700);
  color: #fff;
}

@media (max-width: 1023px) {
  .dropdown__toggle--pill .dropdown__toggle-text {
    display: none;
  }

  .dropdown__toggle--pill {
    width: var(--btn-height, 2.375rem);
    min-width: var(--btn-height, 2.375rem);
    padding: 0;
    border-radius: var(--radius-full, 9999px);
  }

  .dropdown__toggle--pill .icon-down-open {
    display: none;
  }
}

/* Каталог в .site-nav — accent-кнопка; панель — общие .dropdown__link */
.dropdown__toggle--catalog {
  width: 100%;
  height: var(--btn-height);
  min-height: var(--btn-height);
  padding: 0 var(--btn-padding-x);
  gap: 0.5rem;
  font-size: var(--btn-font-size);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: normal;
  text-transform: none;
  color: var(--c-white);
  background: var(--c-accent);
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
}

.dropdown__toggle--catalog:hover,
.site-nav .dropdown.is-open .dropdown__toggle--catalog {
  background: var(--c-accent-d);
  color: var(--c-white);
}

.dropdown__toggle--catalog .icon-down-open {
  font-size: 0.625rem;
}

@media (max-width: 767px) {
  .dropdown__toggle--catalog {
    width: var(--btn-height);
    min-width: var(--btn-height);
    max-width: var(--btn-height);
    padding: 0;
    border-radius: var(--radius-full);
  }

  .dropdown__toggle--catalog .dropdown__toggle-text,
  .dropdown__toggle--catalog .icon-down-open {
    display: none;
  }
}


/* --- 05-forms.css --- */
/* ==========================================================================
   05-forms.css — таблицы, изображения в таблицах и превью (поля — 06-fields.css)
   Демо: demo/tables.html
   ========================================================================== */

:root {
  --c-gray-100: #f3f4f6;
  --c-white: #fff;
}

/* --------------------------------------------------------------------------
   Горизонтальный скролл, если таблица шире блока
   -------------------------------------------------------------------------- */

.tableCloth {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

.tableCloth > table,
.tableCloth > .table {
  width: max-content;
  min-width: 100%;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Таблица — стили по умолчанию для table / .table
   -------------------------------------------------------------------------- */

table,
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background-color: var(--c-white);
  border: 1px solid var(--c-gray-600);
  font-size: 0.875rem;
}

table thead,
.table thead {
  background-color: var(--c-gray-100);
}

table th,
table td,
.table th,
.table td {
  padding: 0.75rem;
  text-align: left;
  vertical-align: middle;
  border: 1px solid var(--c-gray-600);
  color: var(--c-gray-700);
}

table th,
.table th {
  font-weight: 600;
  color: var(--c-gray-900);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Полосатые строки */
table tbody tr:nth-of-type(odd),
.table tbody tr:nth-of-type(odd),
.table-striped tbody tr:nth-of-type(odd) {
  background-color: var(--c-gray-50);
}

table tbody tr:nth-of-type(even),
.table tbody tr:nth-of-type(even),
.table-striped tbody tr:nth-of-type(even) {
  background-color: var(--c-white);
}

/* Наведение */
table tbody tr:hover,
.table tbody tr:hover,
.table-hover tbody tr:hover {
  background-color: var(--c-gray-100);
}

/* Компактная таблица (модули админки) */
.table-sm th,
.table-sm td {
  padding: 0.5rem;
  font-size: 0.8125rem;
}

.table .text-end,
table .text-end {
  text-align: right;
}

/* Ячейки списков заказов и админ-таблиц */
.table-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--c-gray-500);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.table-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.table-actions .btn-circle {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  font-size: 0.875rem;
}

.table-actions form {
  display: inline-flex;
  margin: 0;
}

/* Фиксированная ширина колонок таблицы */
.th-w-60 { width: 60px; }
.th-w-80 { width: 80px; }
.th-w-100 { width: 100px; }
.th-w-120 { width: 120px; }
.th-w-150 { width: 150px; }
.th-w-160 { width: 160px; }
.th-w-220 { width: 220px; }

/* --------------------------------------------------------------------------
   Изображения (img-*, превью в ячейках таблиц) — demo/tables.html §4
   -------------------------------------------------------------------------- */

.img-fluid,
.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

.img-aspect {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--c-gray-200);
  border-radius: 0.5rem;
}

.img-aspect > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-16-9 {
  aspect-ratio: 16 / 9;
}

.img-4-3 {
  aspect-ratio: 4 / 3;
}

.img-1-1 {
  aspect-ratio: 1 / 1;
}

.img-rounded {
  border-radius: 0.5rem;
}

.img-circle {
  border-radius: 50%;
}

.img-thumbnail {
  display: inline-block;
  max-width: 100%;
  height: auto;
  padding: 0.25rem;
  background: #fff;
  border: 1px solid var(--c-gray-300);
  border-radius: 0.375rem;
}

.img-aspect-circle {
  width: 100%;
  max-width: 12.5rem;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-full, 9999px);
  overflow: hidden;
  background: var(--c-gray-200);
}

.img-aspect-circle > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.table-thumb-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  max-width: 13.75rem;
  margin: 0 auto;
}

.table-thumb {
  display: block;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 0.25rem;
  object-fit: cover;
  background: var(--c-gray-200);
}

/* --------------------------------------------------------------------------
   Админка: вкладка изображений товара — .image-upload-card
   -------------------------------------------------------------------------- */

.image-upload-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-self: start;
  height: auto;
  padding: 0.75rem;
  background: var(--c-white, #fff);
  border: 1px solid var(--c-gray-200, #e5e7eb);
}

.image-upload-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9rem;
  padding: 0.25rem;
  background: var(--c-gray-50, #f9fafb);
  border: 1px solid var(--c-gray-200, #e5e7eb);
}

.image-upload-card__media img {
  display: block;
  max-width: 100%;
  max-height: 11rem;
  object-fit: contain;
}

.image-upload-card .form-group {
  max-width: none;
}

/* --------------------------------------------------------------------------
   Галерея товара — .product-gallery (JS: assets/js/product-gallery.js, только страница товара)
   -------------------------------------------------------------------------- */

.product-gallery {
  --product-gallery-thumb-size: 5rem;
  --product-gallery-thumb-gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  contain: layout;
}

.product-gallery-main {
  position: relative;
  margin: 0 0 1rem;
  cursor: zoom-in;
}

.product-gallery-main .img-aspect {
  position: relative;
  overflow: hidden;
}

.product-gallery-main img {
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .product-gallery-main:hover img {
    transform: scale(1.02);
  }
}

.product-gallery-thumbs {
  position: relative;
  padding: 1rem 0;
}

.product-gallery-thumbs-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--product-gallery-thumb-size);
  gap: var(--product-gallery-thumb-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding: 0.5rem 1rem;
  margin: 0;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--c-gray-300) transparent;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 1rem;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.product-gallery-thumbs-list > li {
  min-width: 0;
  scroll-snap-align: start;
}

.product-gallery-thumbs-list::-webkit-scrollbar {
  height: 6px;
}

.product-gallery-thumbs-list::-webkit-scrollbar-track {
  background: transparent;
}

.product-gallery-thumbs-list::-webkit-scrollbar-thumb {
  background: var(--c-gray-300);
  border-radius: 3px;
}

.product-gallery-thumbs-list::-webkit-scrollbar-thumb:hover {
  background: var(--c-gray-400);
}

.product-gallery-thumb-item {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius-sm, 4px);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.product-gallery-thumb-item:hover {
  opacity: 1;
  border-color: var(--c-gray-300);
}

.product-gallery-thumb-item:focus {
  outline: none;
}

.product-gallery-thumb-item:focus-visible {
  opacity: 1;
  border-color: var(--c-accent, #e85d04);
  box-shadow: 0 0 0 2px rgba(232, 93, 4, 0.25);
}

.product-gallery-thumb-item.active {
  opacity: 1;
  border-color: var(--c-accent-d, #c54f00);
}

.product-gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.product-gallery-thumb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: #fff;
  border: 1px solid var(--c-gray-300);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.product-gallery-thumb-btn.show {
  display: flex;
}

.product-gallery-thumb-btn:hover:not(:disabled) {
  background: var(--c-accent-d, #c54f00);
  border-color: var(--c-accent-d, #c54f00);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-gallery-thumb-btn:active:not(:disabled) {
  transform: translateY(-50%) scale(0.95);
}

.product-gallery-thumb-btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.product-gallery-thumb-btn i {
  font-size: 0.875rem;
  color: var(--c-gray-700);
  transition: color 0.2s ease;
}

.product-gallery-thumb-btn:hover:not(:disabled) i {
  color: #fff;
}

.product-gallery-thumb-btn-prev {
  left: 0.25rem;
}

.product-gallery-thumb-btn-next {
  right: 0.25rem;
}

.product-image-modal .modal-container {
  width: auto;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
}

.product-image-modal .modal-content {
  position: relative;
  background: transparent;
  box-shadow: none;
  padding: 0;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 0;
}

.product-image-modal .modal-close,
.product-image-modal-nav {
  position: absolute;
  z-index: 20;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--c-accent);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.product-image-modal .modal-close:hover,
.product-image-modal-nav:hover:not(:disabled) {
  background: transparent;
  color: var(--c-accent-d);
  transform: none;
  box-shadow: none;
}

.product-image-modal .modal-close {
  top: 1rem;
  right: 1rem;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  border-radius: 0;
}

.product-image-modal-nav {
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-modal-nav:hover:not(:disabled) {
  transform: translateY(-50%);
}

.product-image-modal-nav:active:not(:disabled) {
  opacity: 0.85;
  transform: translateY(-50%);
}

.product-image-modal-nav-prev {
  left: 1rem;
}

.product-image-modal-nav-next {
  right: 1rem;
}

.product-image-modal-nav:disabled,
.product-image-modal-nav.hidden {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.product-image-modal .modal-header {
  display: none;
}

.product-image-modal .modal-body {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 0.5rem;
  flex: 1 1 auto;
  overflow: hidden;
  min-height: 0;
}

.product-image-modal__img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 767.98px) {
  .product-gallery {
    --product-gallery-thumb-size: 4.375rem;
    --product-gallery-thumb-gap: 0.5rem;
  }

  .product-gallery-thumb-btn {
    display: none !important;
  }

  .product-gallery-thumbs {
    padding: 0.5rem 0;
  }

  .product-gallery-thumbs-list {
    padding: 0.5rem;
    scroll-padding-inline: 0.5rem;
  }

  .product-image-modal .modal-container {
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
  }

  .product-image-modal .modal-content {
    border-radius: 0;
    max-height: 100vh;
  }

  .product-image-modal .modal-body {
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-gallery-main img,
  .product-gallery-thumb-item,
  .product-gallery-thumb-btn,
  .product-image-modal-nav,
  .product-image-modal .modal-close {
    transition: none;
  }

  .product-gallery-main:hover img {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Формы — блок добавим при выносе из 04-admin-forms.css
   -------------------------------------------------------------------------- */


/* --- 06-fields.css --- */
/* ==========================================================================
   06-fields.css — поля ввода, метки, чекбоксы (one + eno)
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea,
select,
.input,
.select,
.textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0.4375rem 0.6875rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  font-family: inherit;
  color: var(--c-gray-800);
  background-color: #fff;
  border: 1px solid var(--c-gray-300);
  border-radius: 0;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
select:focus,
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input:disabled,
select:disabled,
textarea:disabled,
.input:disabled,
.select:disabled,
.textarea:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: var(--c-gray-50);
}

input[readonly],
textarea[readonly] {
  background: var(--c-gray-50);
}

/* Высота как у .btn-cta (54px) — поле количества на карточке товара */
.input--cta,
input.input--cta[type="number"] {
  height: var(--btn-cta-height);
  min-height: var(--btn-cta-height);
  padding-block: 0;
  text-align: center;
}

/* Степпер количества (− input +) — карточка товара, корзина */
.qty-stepper {
  display: flex;
  align-items: stretch;
  height: var(--btn-cta-height);
  border: 1px solid var(--c-gray-300);
  background: #fff;
  box-sizing: border-box;
}

.qty-stepper__btn {
  flex: 0 0 2.25rem;
  width: 2.25rem;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  color: var(--c-gray-800);
  background: var(--c-gray-50);
  border: none;
  cursor: pointer;
  user-select: none;
}

.qty-stepper__btn:hover:not(:disabled) {
  background: var(--c-gray-200);
}

.qty-stepper__btn:active:not(:disabled) {
  background: var(--c-gray-300);
}

.qty-stepper__btn:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: -2px;
  z-index: 1;
}

.qty-stepper__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty-stepper__input {
  flex: 1 1 auto;
  min-width: 2.25rem;
  width: 2.5rem;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-left: 1px solid var(--c-gray-300);
  border-right: 1px solid var(--c-gray-300);
  border-radius: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-stepper__input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.25);
}

textarea,
.textarea {
  min-height: 120px;
  resize: vertical;
}

.textarea--compact,
.textarea.textarea--compact {
  min-height: 4.5rem;
}

select,
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234b5563' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Узкий select — пагинация, счётчик строк (не на всю ширину .form-group) */
select.select--compact,
.select--compact {
  display: inline-block;
  width: auto;
  min-width: 3.25rem;
  padding: 0.3125rem 2rem 0.3125rem 0.5rem;
  background-position: right 0.5rem center;
  background-size: 14px 10px;
  vertical-align: middle;
}

input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: 0.8125rem;
  color: var(--c-gray-800);
}

input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-family: inherit;
  color: var(--c-gray-800);
  background: var(--c-gray-100, #f3f4f6);
  border: 1px solid var(--c-gray-300);
  border-radius: 0;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
  background: var(--c-gray-200);
}

/* Выбор цвета — нативный input[type="color"] */
input[type="color"],
.input-color {
  display: block;
  width: var(--btn-height, 2.375rem);
  min-width: var(--btn-height, 2.375rem);
  height: var(--btn-height, 2.375rem);
  padding: 0.25rem;
  border: 1px solid var(--c-gray-300);
  border-radius: 0;
  background-color: #fff;
  cursor: pointer;
  box-sizing: border-box;
}

input[type="color"]:focus,
.input-color:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgb(0 173 239 / 0.2);
}

input[type="color"]:disabled,
.input-color:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 2px;
}

input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgb(0 0 0 / 0.12);
  border-radius: 2px;
}

input[type="color"]::-moz-color-swatch {
  border: 1px solid rgb(0 0 0 / 0.12);
  border-radius: 2px;
}

/* Кнопка выбора цвета + поле HEX */
.color-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 18.75rem;
}

.color-field input[type="color"],
.color-field .input-color {
  flex-shrink: 0;
}

.color-field .input,
.color-field input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.form-group {
  margin-bottom: 1.25rem;
  max-width: 18.75rem; /* 300px — узкие поля ввода по умолчанию */
}

/* textarea всегда на всю ширину блока */
.form-group:has(textarea) {
  max-width: none;
}

.form-group--full,
.form-group.w-expand {
  max-width: none;
}

/* в сетке поле заполняет колонку */
.grid--2 > .form-group,
.grid--3 > .form-group,
.grid--4 > .form-group,
.grid--6 > .form-group {
  max-width: none;
}

.grid--4 > .grid__span-3 .form-group {
  max-width: none;
}

.form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  color: var(--c-gray-700);
  font-size: 0.95rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9375rem;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: auto;
  margin: 0.25rem 0 0;
  flex-shrink: 0;
}

.form-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9375rem;
}

.form-switch input[type="checkbox"] {
  width: 2.5rem;
  height: 1.25rem;
  margin: 0;
  appearance: none;
  background-color: var(--c-gray-300);
  border: 1px solid var(--c-gray-400);
  border-radius: 9999px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
  background-position: left center;
  transition: background-position 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.form-switch input[type="checkbox"]:checked {
  background-color: var(--c-primary);
  border-color: var(--c-primary);
  background-position: right center;
}

.auth-form__notice {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  border: 1px solid var(--c-gray-300);
  background: var(--c-gray-50);
}

.auth-form__notice--error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fca5a5;
}

/* Поля на всю ширину колонки авторизации (--auth-width), не 300px .form-group */
.auth-form .form-group {
  max-width: none;
}

.auth-form__submit {
  margin-top: 1rem;
}

.auth-form__footer {
  margin-top: 1rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Summernote (SysMaterialsModule, AdminEditBlogModule)
   -------------------------------------------------------------------------- */

.note-editor.note-frame {
  border-color: var(--c-gray-300);
  border-radius: 0;
}

.note-editor .note-toolbar {
  background: var(--c-gray-50);
  border-bottom-color: var(--c-gray-300);
}

.note-editor .note-statusbar {
  border-top-color: var(--c-gray-300);
}

.note-editor .note-editing-area .note-editable {
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--c-gray-800);
}


/* --- 07-components.css --- */
/* ==========================================================================
   07-components.css — пагинация, крошки, табы, read-more, scroll-strip,
   аккордеон, модалки, «наверх», карточки блога и каталога (.blog-card, .product-card)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Хлебные крошки (SysBreadcrumbsWidgetModule, .breadcrumbs--scroll),
   -------------------------------------------------------------------------- */

.breadcrumbs {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--c-gray-600, #4b5563);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.breadcrumbs li + li::before {
  content: '/';
  color: var(--c-gray-400, #9ca3af);
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
  color: var(--c-info);
}

.breadcrumbs [aria-current='page'] {
  color: var(--c-gray-800, #1f2937);
}

/* Одна строка + горизонтальный скролл на узком экране (v2 .breadcrumb-scroll).
   Не переносить — не съедает высоту над h1/ценой на карточке товара. */
.breadcrumbs--scroll {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 767.98px) {
  .breadcrumbs--scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding-bottom: 0.25rem;
    box-sizing: border-box;
  }

  .breadcrumbs--scroll::-webkit-scrollbar {
    height: 4px;
  }

  .breadcrumbs--scroll::-webkit-scrollbar-track {
    background: transparent;
  }

  .breadcrumbs--scroll::-webkit-scrollbar-thumb {
    background: var(--c-gray-300, #d1d5db);
    border-radius: 2px;
  }

  .breadcrumbs--scroll ol {
    flex-wrap: nowrap;
    width: max-content;
    max-width: none;
  }

  .breadcrumbs--scroll li {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .breadcrumbs--scroll a,
  .breadcrumbs--scroll [aria-current='page'] {
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   Пагинация (.pagination + .page-item / .page-link из v2)
   -------------------------------------------------------------------------- */

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.pagination > li,
.page-item {
  margin: 0;
  padding: 0;
}

.pagination > li > a,
.pagination > li > span,
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.375rem;
  min-height: 2.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  color: var(--c-gray-700);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--c-gray-300);
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pagination .page-link [class^='icon-'],
.pagination > li > a [class^='icon-'],
.pagination > li > span [class^='icon-'] {
  font-size: 1rem;
  line-height: 1;
}

.pagination > li > a:hover,
.page-link:hover {
  color: var(--c-primary);
  background: var(--c-gray-50);
  border-color: var(--c-primary);
  text-decoration: none;
}

.pagination > li > a:focus-visible,
.page-link:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

.pagination > li.active > a,
.pagination > li.active > span,
.page-item.active .page-link {
  color: #fff;
  background: var(--c-gray-800);
  border-color: var(--c-gray-800);
  cursor: default;
  pointer-events: none;
}

.pagination > li.disabled > a,
.pagination > li.disabled > span,
.page-item.disabled .page-link {
  color: var(--c-gray-400);
  background: var(--c-gray-100);
  border-color: var(--c-gray-300);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.65;
}

/* Пагинация + узкий select «строк на странице» */
.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.pagination-bar .pagination {
  margin: 0;
}

.pagination-bar__per-page {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--c-gray-600);
}

.pagination-bar__per-page label {
  margin: 0;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Вкладки
   -------------------------------------------------------------------------- */

.tabs-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid var(--c-gray-200);
  gap: 0;
  overflow-x: auto;
}

.tabs-nav li {
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.tabs-nav a {
  display: block;
  padding: 0.875rem 1.5rem;
  color: var(--c-gray-600);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.tabs-nav a:hover {
  color: var(--c-accent);
  background: var(--c-gray-50);
}

.tabs-nav a[aria-selected='true'],
.tabs-nav a.active {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

.tabs-content {
  padding: 1.5rem 0;
}

.tabs-panel {
  display: none;
}

.tabs-panel[aria-hidden='false'],
.tabs-panel.active {
  display: block;
}

.tabs-panel[aria-hidden='true'] {
  display: none;
}

/* --------------------------------------------------------------------------
   Read more — сворачивание длинного текста (line-clamp + кнопка)
   Разметка: [data-read-more] > [data-read-more-content].text-clamp-6 + [data-read-more-toggle]
   Полный HTML в DOM; clamp только на клиенте (< 1024px). SEO: контент не обрезается на сервере.
   -------------------------------------------------------------------------- */

.read-more {
  position: relative;
}

.read-more.is-clamped .text-clamp-6 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .read-more.is-clamped .text-clamp-6 {
    -webkit-line-clamp: 4;
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .read-more.is-clamped .text-clamp-6 {
    -webkit-line-clamp: 6;
  }
}

.read-more.is-clamped::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.25rem;
  height: 2.5rem;
  background: linear-gradient(to bottom, transparent, var(--c-bg, #fff));
  pointer-events: none;
}

.read-more.is-expanded::after {
  display: none;
}

.read-more__toggle {
  display: block;
  width: 100%;
  margin: 0.5rem 0 0;
  padding: 0.375rem 0;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--c-accent);
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
}

.read-more__toggle:hover {
  color: var(--c-accent-d);
}

.read-more__toggle:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

.read-more__toggle[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   Scroll-strip — горизонтальная лента (карточки, чипы, кнопки)
   Стрелки: --cards — прозрачные иконки; --auto — drop-shadow по контуру иконки
   Разметка: [data-scroll-strip] > [data-scroll-strip-prev] + [data-scroll-strip-track] + [data-scroll-strip-next]
   Модификаторы: .scroll-strip--cards (фикс. ширина), .scroll-strip--auto (max-content)
   -------------------------------------------------------------------------- */

.scroll-strip {
  --scroll-strip-item-width: 13.75rem;
  --scroll-strip-gap: var(--gap, 1rem);
  position: relative;
}

.scroll-strip__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--scroll-strip-item-width);
  gap: var(--scroll-strip-gap);
  margin: 0;
  padding: 0 0 0.25rem;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scroll-strip__track::-webkit-scrollbar {
  display: none;
}

.scroll-strip--auto .scroll-strip__track,
.scroll-strip__track.scroll-strip__track--auto {
  grid-auto-columns: max-content;
}

.scroll-strip__item {
  scroll-snap-align: start;
  min-width: 0;
}

.scroll-strip__item > .product-card {
  height: 100%;
}

.scroll-strip__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--c-accent);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.scroll-strip__btn:hover:not(:disabled) {
  color: var(--c-accent-d);
}

/* Чипы/кнопки — тень по контуру иконки, без подложки */
.scroll-strip--auto .scroll-strip__btn {
  filter: drop-shadow(0 1px 1px rgb(255 255 255 / 0.85)) drop-shadow(0 2px 4px rgb(0 0 0 / 0.18));
  transition: color 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.scroll-strip--auto .scroll-strip__btn:hover:not(:disabled) {
  filter: drop-shadow(0 1px 2px rgb(255 255 255 / 0.9)) drop-shadow(0 3px 6px rgb(0 0 0 / 0.22));
}

.scroll-strip__btn:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

.scroll-strip__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.scroll-strip__btn[hidden] {
  display: none;
}

.scroll-strip__btn--prev {
  left: 0;
}

.scroll-strip__btn--next {
  right: 0;
}

/* --------------------------------------------------------------------------
   Аккордеон (<details class="accordion-item">)
   -------------------------------------------------------------------------- */

.accordion {
  border: 1px solid var(--c-gray-200);
}

.accordion-item {
  border-bottom: 1px solid var(--c-gray-200);
}

.accordion-item:last-child {
  border-bottom: 0;
}

.accordion-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--c-gray-900);
  cursor: pointer;
  list-style: none;
  background: var(--c-gray-50);
  user-select: none;
}

.accordion-item > summary::-webkit-details-marker {
  display: none;
}

.accordion-item > summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--c-gray-500);
  line-height: 1;
}

.accordion-item[open] > summary::after {
  content: '−';
}

.accordion-item > summary:hover {
  background: var(--c-gray-100, #f3f4f6);
}

.accordion__body {
  padding: 1rem;
  font-size: 0.9375rem;
  color: var(--c-gray-800);
  background: #fff;
}

/* --------------------------------------------------------------------------
   Модальные окна
   -------------------------------------------------------------------------- */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 32rem;
  z-index: 1;
}

.modal-content {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-gray-200);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--c-gray-200);
  flex-shrink: 0;
}

.modal-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--c-gray-900);
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  min-height: 2rem;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--c-gray-500);
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--c-gray-100);
  color: var(--c-gray-900);
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1 1 auto;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--c-gray-200);
  flex-shrink: 0;
}

.modal-lg .modal-container {
  max-width: 44rem;
}

body.modal-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Всплывающие уведомления (toast) — «Товар додано до кошика» и др.
   Компактнее v2: левая полоска вместо рамки, меньше отступы.
   -------------------------------------------------------------------------- */

.notifications {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: min(20rem, calc(100vw - 1.5rem));
  pointer-events: none;
}

.notification {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.5rem 0.5rem 0.625rem;
  background: var(--c-white, #fff);
  border: 1px solid var(--c-gray-200, #e5e7eb);
  border-left: 3px solid var(--c-accent, #f76300);
  border-radius: var(--radius-md, 0.375rem);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  pointer-events: auto;
  animation: notification-slide-in 0.2s ease-out;
}

.notification p {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--c-gray-800, #1f2937);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.notification--success {
  border-left-color: var(--c-success, #10b981);
}

.notification--error {
  border-left-color: var(--c-danger, #ef4444);
}

.notification--info {
  border-left-color: var(--c-gray-400, #9ca3af);
}

.notification-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin: -0.125rem -0.125rem 0 0;
  padding: 0;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--c-gray-500, #6b7280);
  background: none;
  border: none;
  cursor: pointer;
}

.notification-close:hover,
.notification-close:focus-visible {
  color: var(--c-gray-900, #111827);
}

.notification.is-leaving {
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

@keyframes notification-slide-in {
  from {
    transform: translateX(0.75rem);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Кнопка «Наверх»
   -------------------------------------------------------------------------- */

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--btn-height, 2.375rem);
  min-width: var(--btn-height, 2.375rem);
  height: var(--btn-height, 2.375rem);
  min-height: var(--btn-height, 2.375rem);
  padding: 0;
  color: var(--c-white, #fff);
  background: var(--c-primary);
  border: 1px solid transparent;
  border-radius: var(--radius-full, 9999px);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.back-to-top:hover {
  background: var(--c-primary-d);
  color: var(--c-white, #fff);
  text-decoration: none;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top i {
  font-size: 1rem;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Дропдаун (контакты в шапке, каталог в .site-nav) — demo/components.html
   data-dropdown + data-dropdown-toggle + data-dropdown-panel
   Кнопка-триггер — 04-buttons.css (.dropdown__toggle)
   -------------------------------------------------------------------------- */

.dropdown {
  position: relative;
  flex-shrink: 0;
}

.dropdown__panel {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1050;
  min-width: 13.75rem;
  margin: 0.5rem 0 0;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--c-gray-200);
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.35rem);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.dropdown.is-open .dropdown__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: var(--c-gray-800);
  text-decoration: none;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown__link:hover {
  background: var(--c-gray-50);
  color: var(--c-info);
  text-decoration: none;
}

.dropdown__link i {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
  color: var(--c-gray-500);
}

.dropdown__link:hover i {
  color: var(--c-info);
}

.dropdown__meta {
  margin: 0;
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--c-gray-600);
}

.dropdown__meta strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--c-gray-800);
}

/* --------------------------------------------------------------------------
   Карточки блога (FrontendBlogModule, .grid--3)
   -------------------------------------------------------------------------- */

.blog-list__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.blog-list__title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--c-gray-900);
  flex-shrink: 0;
}

.blog-list__empty {
  margin: 0;
  color: var(--c-gray-600);
}

.blog-list__header .blog-categories {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
}

.blog-categories .scroll-strip__item > .btn,
.blog-categories .scroll-strip__item > a.btn,
.blog-categories .scroll-strip__item > span.btn {
  white-space: nowrap;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--c-gray-200);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.1);
}

.blog-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-gray-100, #f3f4f6);
}

.blog-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.125rem 1.125rem;
}

.blog-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.blog-card__title a:hover {
  color: var(--c-info);
}

.blog-card__date {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--c-gray-500);
}

.blog-card__excerpt {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--c-gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Карточка товара в каталоге (листинг, лента, поиск)
   Замена v2 .product-card — меньше вложенности, BEM как у .blog-card
   -------------------------------------------------------------------------- */

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--c-gray-200);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.1);
}

.product-card__title {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  background: var(--c-gray-200, #e5e7eb);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
}

.product-card__title a:hover {
  color: var(--c-info);
}

.product-card__media {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card__media:hover {
  text-decoration: none;
}

.product-card__badge,
.product-card__label {
  position: absolute;
  top: 0.5rem;
  z-index: 1;
}

.product-card__badge {
  right: 0.5rem;
}

.product-card__label {
  left: 0.5rem;
}

.product-card--unavailable .product-card__media img {
  opacity: 0.55;
}

.product-card .img-aspect {
  border-radius: 0;
}

.product-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.875rem 1rem 1rem;
}

.product-card__desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--c-gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--c-gray-200);
}

.product-card__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.25rem 0.5rem;
  margin-bottom: 0.75rem;
}

.product-card__price-old {
  font-size: 0.875rem;
  color: var(--c-gray-500);
  text-decoration: line-through;
}

.product-card__price {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-accent);
}

.product-card__actions {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.product-card__actions .btn {
  border-radius: 0;
}

.product-card__actions .product-card__btn {
  flex: 1 1 auto;
  min-width: 0;
}

.product-card__actions .btn-circle {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Личный кабинет покупателя (/cabinet) — каркас и секции форм
   -------------------------------------------------------------------------- */

.user-cabinet .page-block {
  margin-bottom: 1.5rem;
}

.user-cabinet .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.user-cabinet .page-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--c-gray-900);
}

.user-cabinet__section {
  margin-bottom: 2rem;
}

.user-cabinet__section h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

