/* СтройМир 2026-11-05: своя тема StroyMir — основа (шапка, меню, подвал, формы). Системный шрифт, без Bootstrap. */
/* Токены — те же значения у админки (sm-panel-7jqrx/view/stylesheet/stroymir-admin.css), меняются вместе (проверка — e2e/admin-theme.js).
   Тема (2026-11-09, владелец: «тёмная тема и переключатель, по умолчанию система сама решает»): html[data-theme=light|dark] — выбор (кнопка в верхней полосе,
   localStorage sm-theme — общий с админкой), без атрибута — как в системе. Цвета в правилах — только через var(--…); фото товаров — на --img (белом и в тёмной). */
:root {
  color-scheme: light;
  --brand: #006dff; --brand-d: #0057cc; --brand-l: #e8f1ff; --brand-l2: #d6e6ff; --btn: #006dff; --btn-h: #0057cc;
  --text: #1d2433; --muted: #5b6577; --line: #e3e7ee; --soft: #f4f6fa; --bg: #fff;
  --card: #fff; --field: #fff; --hover: #f7f9fc; --img: #fff;
  --ok: #1a7f37; --ok-l: #e9f6ee; --err: #c62828; --err-l: #fdecec; --warn: #b54708; --warn-l: #fff4e5; --dark: #151b26;
  --r: 10px; --wrap: 1240px; --shadow: 0 8px 28px rgba(21, 27, 38, .14);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: #5c9dff; --brand-d: #8ab8ff; --brand-l: rgba(92, 157, 255, .16); --brand-l2: rgba(92, 157, 255, .26); --btn: #2f78ee; --btn-h: #1f66db;
  --text: #e7eaf0; --muted: #9aa4b5; --line: #2b3544; --soft: #121822; --bg: #0e131b;
  --card: #18202b; --field: #121822; --hover: #1e2733; --img: #fff;
  --ok: #3fb96b; --ok-l: rgba(63, 185, 107, .14); --err: #ff6b6b; --err-l: rgba(255, 107, 107, .14); --warn: #f5a623; --warn-l: rgba(245, 166, 35, .14); --dark: #0a0e14;
  --shadow: 0 8px 28px rgba(0, 0, 0, .5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --brand: #5c9dff; --brand-d: #8ab8ff; --brand-l: rgba(92, 157, 255, .16); --brand-l2: rgba(92, 157, 255, .26); --btn: #2f78ee; --btn-h: #1f66db;
    --text: #e7eaf0; --muted: #9aa4b5; --line: #2b3544; --soft: #121822; --bg: #0e131b;
    --card: #18202b; --field: #121822; --hover: #1e2733; --img: #fff;
    --ok: #3fb96b; --ok-l: rgba(63, 185, 107, .14); --err: #ff6b6b; --err-l: rgba(255, 107, 107, .14); --warn: #f5a623; --warn-l: rgba(245, 166, 35, .14); --dark: #0a0e14;
    --shadow: 0 8px 28px rgba(0, 0, 0, .5);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--text); background: var(--bg); }
img, svg { vertical-align: middle; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-d); text-decoration: underline; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); }
h2 { font-size: 1.35rem; margin-top: 1.4em; }
h3 { font-size: 1.12rem; margin-top: 1.2em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }

.sm-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sm-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sm-i--s { width: 16px; height: 16px; }
.sm-skip { position: absolute; left: -9999px; }
.sm-skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--card); padding: 8px 12px; border-radius: var(--r); }

/* кнопки и поля */
.sm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r);
  background: var(--btn); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.sm-btn:hover { background: var(--btn-h); color: #fff; text-decoration: none; }
.sm-btn--wide { width: 100%; }
.sm-btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.sm-btn--ghost:hover { background: rgba(255, 255, 255, .08); color: inherit; }
.sm-btn[disabled] { opacity: .6; cursor: wait; }
.sm-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r); background: none; cursor: pointer; }
.sm-iconbtn:hover { background: var(--soft); }
.sm-field { display: block; margin: 0 0 12px; }
.sm-field span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.sm-field input, .sm-field textarea, .sm-sub__form input[type=email] { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); }
.sm-field input:focus, .sm-field textarea:focus, .sm-sub__form input:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px var(--brand-l); }
.sm-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 0 0 12px; }
.sm-check input { margin: 2px 0 0; width: 18px; height: 18px; flex: none; }
.sm-msg { margin: 8px 0 0; font-size: 14px; }
.sm-msg:empty { display: none; }
.sm-msg.is-ok { color: var(--ok); }
.sm-msg.is-err { color: var(--err); }
.is-invalid { border-color: var(--err) !important; }
.sm-check input.is-invalid { outline: 2px solid var(--err); outline-offset: 1px; }

/* верхняя строка */
.sm-topbar { display: none; background: var(--soft); font-size: 13px; color: var(--muted); }
.sm-topbar__in { display: flex; align-items: center; gap: 20px; min-height: 36px; }
.sm-topbar__item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.sm-topbar__item .sm-i { width: 15px; height: 15px; }
a.sm-topbar__item:hover { color: var(--text); }
.sm-topbar__end { margin-left: auto; display: flex; align-items: center; gap: 20px; }
/* 2026-11-09: кнопка темы в верхней полосе и закладка «В панель» (вошедшим в админку) */
.sm-theme { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--muted); cursor: pointer; }
.sm-theme:hover { color: var(--brand); border-color: var(--brand); }
.sm-theme .sm-i { width: 16px; height: 16px; }
.sm-admtab { --tab-bg: var(--dark); --tab-fg: #fff; position: fixed; left: 0; top: 42%; z-index: 46; display: flex; flex-direction: column; overflow: hidden; border-radius: 0 10px 10px 0; background: var(--tab-bg); box-shadow: var(--shadow); }
:root[data-theme="dark"] .sm-admtab { --tab-bg: #e7eaf0; --tab-fg: #151b26; }   /* в тёмной — светлая, чтобы не сливалась (владелец 2026-11-09) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sm-admtab { --tab-bg: #e7eaf0; --tab-fg: #151b26; } }
.sm-admtab a { display: flex; align-items: center; gap: 8px; padding: 9px 12px 9px 10px; color: var(--tab-fg); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sm-admtab a + a { border-top: 1px solid rgba(128, 128, 128, .25); }
.sm-admtab a:hover { background: var(--btn); color: #fff; text-decoration: none; }
.sm-admtab .sm-i { width: 17px; height: 17px; flex: none; }
.sm-admtab span { max-width: 0; overflow: hidden; transition: max-width .2s ease; }
.sm-admtab:hover span, .sm-admtab a:focus-visible span { max-width: 160px; }
@media (hover: none) { .sm-admtab span { display: none; } }
.sm-lang { display: inline-flex; gap: 2px; }
.sm-lang a { padding: 2px 8px; border-radius: 6px; color: var(--muted); font-weight: 600; }
.sm-lang a[aria-current] { background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.sm-lang a:hover { text-decoration: none; color: var(--text); }
.sm-lang--big a { padding: 8px 16px; font-size: 15px; }

/* шапка */
.sm-header { position: sticky; top: 0; z-index: 30; background: var(--card); box-shadow: 0 1px 0 var(--line); }
.sm-header__in { display: grid; grid-template-columns: auto 1fr auto auto; grid-template-areas: "burger logo phone cart" "search search search search"; align-items: center; gap: 4px 6px; padding-top: 6px; padding-bottom: 8px; }
.sm-burger { grid-area: burger; margin-left: -8px; }
.sm-logo { grid-area: logo; display: inline-flex; flex-direction: column; line-height: 1.1; color: var(--text); text-decoration: none !important; }
.sm-logo__name { font-size: 24px; font-weight: 800; letter-spacing: -.5px; color: var(--text); }
.sm-logo__name b { color: var(--brand); font-weight: 800; }
.sm-logo__tag { display: none; font-size: 12px; color: var(--muted); }
.sm-logo--light .sm-logo__name, .sm-logo--light .sm-logo__tag { color: #fff; }
.sm-logo--light .sm-logo__tag { display: block; opacity: .7; }
.sm-search { grid-area: search; display: flex; position: relative; }
.sm-search__input { width: 100%; min-height: 44px; padding: 10px 52px 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--soft); -webkit-appearance: none; appearance: none; }
.sm-search__input:focus { border-color: var(--brand); background: var(--field); outline: 0; }
.sm-search__btn { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 44px; border: 0; border-radius: 8px; background: var(--btn); color: #fff; cursor: pointer; }
.sm-search__btn:hover { background: var(--btn-h); }
.sm-phone { grid-area: phone; }
.sm-cart { grid-area: cart; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; color: var(--text); text-decoration: none !important; }
.sm-cart__icon { position: relative; display: inline-flex; }
.sm-cart__icon .sm-i { width: 26px; height: 26px; }
.sm-cart__count { position: absolute; top: -6px; right: -9px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--btn); color: #fff; font-size: 12px; font-weight: 700; line-height: 19px; text-align: center; }
.sm-cart__total { display: none; font-weight: 600; white-space: nowrap; }

/* всплывающие блоки (телефоны) на details */
.sm-pop { position: relative; }
.sm-pop > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; list-style: none; cursor: pointer; border-radius: var(--r); font-weight: 600; white-space: nowrap; }
.sm-pop > summary::-webkit-details-marker { display: none; }
.sm-pop > summary:hover { background: var(--soft); }
.sm-phone__main, .sm-phone > summary .sm-i--s { display: none; }
.sm-pop__body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: 280px; padding: 16px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); display: grid; gap: 4px; font-size: 14px; }
.sm-pop__body b { margin-top: 6px; }
.sm-pop__body b:first-child { margin-top: 0; }
.sm-pop__phone { font-size: 17px; font-weight: 600; color: var(--text); }
.sm-pop__body .sm-btn { margin-top: 10px; }

/* меню каталога (компьютер) */
.sm-nav { display: none; }
.sm-catalog { position: static; }
.sm-catalog > summary { list-style: none; }
.sm-catalog > summary::-webkit-details-marker { display: none; }
/* 2026-11-06: каталог на компьютере — карточка по ширине сайта над затемнённой страницей: разделы слева, подразделы справа */
.sm-catalog[open]::after { content: ""; position: fixed; inset: 0; z-index: 34; background: rgba(21, 27, 38, .38); animation: sm-fade .12s ease-out; }
.sm-catalog[open] > summary { position: relative; z-index: 36; }
.sm-mega { position: absolute; left: 50%; top: calc(100% + 8px); z-index: 35; width: min(var(--wrap) - 32px, 100vw - 32px); max-height: calc(100vh - 170px); transform: translateX(-50%); overflow: hidden; display: flex; background: var(--card); border-radius: 14px; box-shadow: 0 18px 48px rgba(21, 27, 38, .24); animation: sm-rise .14s ease-out; }
.sm-mega__l1 { position: static; flex: none; width: 300px; margin: 0; padding: 12px 10px; list-style: none; overflow: auto; background: var(--soft); }
.sm-mega__l1 > li > a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.3; }
.sm-mega__l1 > li > a:hover { text-decoration: none; }
.sm-mega__l1 > li > a .sm-i { color: var(--muted); opacity: .6; }
.sm-mega__l1 > li.is-active > a { background: var(--card); color: var(--brand-d); box-shadow: 0 1px 3px rgba(21, 27, 38, .1); }
.sm-mega__l1 > li.is-active > a .sm-i { color: var(--brand); opacity: 1; }
.sm-mega__l2 { display: none; position: absolute; left: 300px; right: 0; top: 0; bottom: 0; padding: 22px 28px; overflow: auto; }
.sm-mega__l1 > li.is-active > .sm-mega__l2 { display: block; }
.sm-mega__title { display: inline-block; margin-bottom: 16px; font-size: 20px; font-weight: 700; color: var(--text); }
.sm-mega__title:hover { color: var(--brand); text-decoration: none; }
.sm-mega__l2 ul { list-style: none; margin: 0; padding: 0; columns: 3 200px; column-gap: 28px; }
.sm-mega__l2 li { break-inside: avoid; padding: 0 0 14px; }
.sm-mega__l2 li > a { font-size: 15px; font-weight: 600; color: var(--text); }
.sm-mega__l2 li > a:hover { color: var(--brand); text-decoration: none; }
.sm-mega__l3 { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; font-size: 13px; }
.sm-mega__l3 a { padding: 1px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); line-height: 1.6; }
.sm-mega__l3 a:hover { background: var(--brand-l); color: var(--brand-d); text-decoration: none; }
@keyframes sm-fade { from { opacity: 0; } }
@keyframes sm-rise { from { opacity: 0; transform: translate(-50%, -6px); } }
@media (prefers-reduced-motion: reduce) { .sm-catalog[open]::after, .sm-mega { animation: none; } }

/* мобильное меню */
.sm-drawer { margin: 0; padding: 0; width: min(88vw, 380px); max-width: none; height: 100%; max-height: none; border: 0; background: var(--card); color: var(--text); }
.sm-drawer::backdrop { background: rgba(21, 27, 38, .5); }
.sm-drawer[open] { display: flex; flex-direction: column; animation: sm-in .2s ease-out; }
@keyframes sm-in { from { transform: translateX(-100%); } }
.sm-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); }
.sm-drawer__body { flex: 1; overflow: auto; padding: 8px 16px 24px; }
.sm-drawer__label { margin: 16px 0 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sm-tree, .sm-tree ul { list-style: none; margin: 0; padding: 0; }
.sm-tree ul { padding-left: 14px; border-left: 2px solid var(--brand-l); margin: 2px 0 6px 4px; }
.sm-tree a, .sm-tree summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 6px 0; color: var(--text); cursor: pointer; list-style: none; }
.sm-tree summary::-webkit-details-marker { display: none; }
.sm-tree details[open] > summary { color: var(--brand-d); font-weight: 600; }
.sm-tree details[open] > summary .sm-i { transform: rotate(180deg); }
.sm-drawer__contacts { display: grid; gap: 6px; margin: 20px 0; padding: 16px; background: var(--soft); border-radius: var(--r); font-size: 14px; color: var(--muted); }
.sm-drawer__contacts a { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 17px; font-weight: 600; color: var(--text); }
.sm-drawer__contacts .sm-btn { margin: 6px 0; }

/* окно (обратный звонок) */
.sm-modal { width: min(92vw, 420px); padding: 0; border: 0; border-radius: 14px; box-shadow: var(--shadow); color: var(--text); }
.sm-modal::backdrop { background: rgba(21, 27, 38, .5); }
.sm-modal__form { padding: 8px 20px 20px; }
.sm-modal__head { display: flex; align-items: center; justify-content: space-between; margin: 0 -8px 4px 0; font-size: 19px; }
.sm-modal p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }

/* содержимое */
.sm-main { min-height: 50vh; padding: 16px 0 40px; }
.sm-crumbs { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0 0 12px; padding: 0; font-size: 14px; color: var(--muted); }
.sm-crumbs li + li::before { content: "›"; margin-right: 6px; color: #b3bac6; }
.sm-crumbs a { color: var(--muted); }
.sm-text { max-width: 820px; }
.sm-text p, .sm-text ul, .sm-text ol { margin: 0 0 1em; }
.sm-text ul, .sm-text ol { padding-left: 1.3em; }
.sm-text li { margin-bottom: .35em; }
.sm-text table { width: 100%; border-collapse: collapse; margin: 0 0 1em; display: block; overflow-x: auto; }
.sm-text td, .sm-text th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* подвал */
.sm-footer { background: var(--dark); color: #c4cad6; font-size: 15px; }
.sm-footer a { color: #e3e7ee; }
.sm-footer a:hover { color: #fff; }
.sm-sub { background: var(--btn-h); color: #fff; }
.sm-sub__in { display: grid; gap: 14px; padding-top: 28px; padding-bottom: 28px; }
.sm-sub__form { display: grid; gap: 10px; }
.sm-sub__form .sm-check, .sm-sub__form .sm-msg { margin: 0; }
.sm-sub__title { display: block; font-size: 19px; line-height: 1.3; }
.sm-sub p { margin: 4px 0 0; font-size: 14px; }
.sm-sub__row { display: flex; gap: 8px; }
.sm-sub__row input { flex: 1; min-width: 0; }
.sm-sub__form .sm-btn { background: var(--dark); }
.sm-sub__form .sm-btn:hover { background: #000; }
.sm-sub .sm-check a, .sm-sub .sm-check { color: #fff; }
.sm-sub .sm-check a { text-decoration: underline; }
.sm-sub .sm-msg.is-ok, .sm-sub .sm-msg.is-err { color: #fff; font-weight: 600; }
.sm-footer__grid { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 32px; }
.sm-footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sm-footer__title { display: block; margin-bottom: 12px; color: #fff; font-size: 16px; }
.sm-footer__brand p { display: flex; gap: 10px; margin: 14px 0 0; }
.sm-footer__brand .sm-i { margin-top: 2px; color: #8b95a7; }
.sm-footer__contacts { display: grid; gap: 8px; align-content: start; }
.sm-footer__contacts > a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.sm-footer__msgr { display: flex; gap: 16px; }
.sm-footer__msgr a { display: inline-flex; align-items: center; gap: 6px; }
.sm-footer__contacts .sm-btn { justify-self: start; margin-top: 6px; color: #fff; }
.sm-footer__bottom { border-top: 1px solid #2a3242; padding: 14px 0; font-size: 13px; color: #8b95a7; }

/* cookie */
.sm-cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; max-width: 640px; padding: 12px 16px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); font-size: 14px; }
.sm-cookie span { flex: 1 1 260px; }

@media (min-width: 600px) {
  .sm-logo__tag { display: block; }
  .sm-cart__total { display: inline; }
  .sm-footer__grid { grid-template-columns: 1fr 1fr; }
  .sm-sub__in { grid-template-columns: 1fr 1.2fr; align-items: center; }
}
@media (min-width: 992px) {
  html { scroll-padding-top: 80px; }
  .sm-topbar { display: block; }
  .sm-header { position: static; box-shadow: none; }
  .sm-header__in { grid-template-columns: auto 1fr auto auto; grid-template-areas: "logo search phone cart"; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
  .sm-burger { display: none; }
  .sm-logo__name { font-size: 28px; }
  .sm-phone__main, .sm-phone > summary .sm-i--s { display: inline; }
  .sm-phone > summary > .sm-i:first-child { color: var(--brand); }
  .sm-nav { display: block; position: sticky; top: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .sm-nav__in { display: flex; align-items: center; gap: 28px; min-height: 56px; }
  .sm-nav__in > a { color: var(--text); font-weight: 500; }
  .sm-nav__in > a:hover { color: var(--brand); text-decoration: none; }
  .sm-catalog > summary { min-width: 220px; justify-content: flex-start; }
  .sm-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .sm-main { padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { .sm-drawer[open] { animation: none; } }

/* товар */
.sm-muted { color: var(--muted); }
.sm-note { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.sm-pgrid { display: grid; gap: 20px; }
.sm-gallery { position: relative; min-width: 0; }
.sm-gallery__main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r); background: var(--img); box-shadow: inset 0 0 0 1px var(--line); }
.sm-gallery__main::-webkit-scrollbar { display: none; }
.sm-gallery__slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; cursor: zoom-in; }
.sm-gallery__slide img { width: 100%; height: 100%; object-fit: contain; }
.sm-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.sm-gallery__thumbs button { flex: none; width: 64px; height: 64px; padding: 2px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--img); cursor: pointer; }
.sm-gallery__thumbs button[aria-current] { border-color: var(--brand); }
.sm-gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.sm-badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.sm-badge { padding: 2px 8px; border-radius: 6px; background: var(--btn); color: #fff; font-size: 12px; font-weight: 700; }
.sm-badge--sale, .sm-badge--special { background: #e5484d; }
.sm-badge--bestseller, .sm-badge--popular { background: #f59e0b; }
.sm-buy { min-width: 0; }
.sm-buy__title { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); }
.sm-buy__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -4px 0 14px; font-size: 14px; color: var(--muted); }
.sm-buy__meta b { color: var(--text); font-weight: 600; }
.sm-stars { color: #c9ced8; letter-spacing: 1px; white-space: nowrap; }
.sm-stars .on { color: #f5a623; }
.sm-stars small { color: var(--muted); letter-spacing: 0; }
.sm-stars--s { font-size: 13px; }
.sm-buy__box { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.sm-buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.sm-price { font-size: 30px; font-weight: 800; line-height: 1.1; }
.sm-price.is-sale { color: #d92d20; }
.sm-price-old { color: var(--muted); font-size: 17px; }
.sm-unit { color: var(--muted); font-size: 15px; }
.sm-stock { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 14px; font-size: 14px; font-weight: 600; }
.sm-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sm-stock.is-in { color: var(--ok); }
.sm-stock.is-out { color: #b54708; }
.sm-discounts { margin: 0 0 12px; padding-left: 1.2em; font-size: 14px; }
.sm-buy__form { display: flex; flex-wrap: wrap; gap: 10px; }
.sm-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--field); overflow: hidden; }
.sm-qty button { width: 42px; height: 46px; border: 0; background: none; color: var(--text); font-size: 20px; cursor: pointer; transition: background .15s, color .15s; }
.sm-qty button:hover { background: var(--hover); color: var(--brand); }
.sm-qty button:focus-visible, .sm-qty input:focus-visible { outline: 2px solid var(--brand); outline-offset: -3px; border-radius: 8px; }
.sm-qty input { width: 64px; height: 46px; border: 0; background: transparent; color: var(--text); text-align: center; font-weight: 700; -moz-appearance: textfield; }
.sm-qty input:focus { outline: 0; }
.sm-qty:focus-within { border-color: var(--brand); }
.sm-qty input::-webkit-inner-spin-button, .sm-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sm-qty__unit { padding: 0 14px 0 6px; color: var(--muted); font-size: 14px; }   /* правка владельца 2026-11-13: «шт» не прилипает к «+» */
.sm-btn--cart { flex: 1 1 180px; min-height: 48px; font-size: 17px; }
.sm-btn--soft { background: var(--brand-l); color: var(--brand-d); }
.sm-btn--soft:hover { background: var(--brand-l2); color: var(--brand-d); }
.sm-btn--ghost.sm-btn--dark { color: var(--text); }
.sm-oneclick { margin-top: 12px; }
.sm-oneclick > summary { display: inline-block; cursor: pointer; color: var(--brand); font-weight: 600; list-style: none; }
.sm-oneclick > summary::-webkit-details-marker { display: none; }
.sm-oneclick form { margin-top: 10px; }
.sm-oneclick p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.sm-oneclick__row { display: flex; gap: 8px; }
.sm-oneclick__row input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); }
.sm-ship { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.sm-ship li { display: flex; gap: 8px; align-items: flex-start; }
.sm-ship .sm-i { width: 18px; height: 18px; color: var(--brand); }
.sm-calc { margin: 0 0 14px; padding: 14px; border-radius: var(--r); background: var(--soft); }
.sm-calc__title { display: block; margin-bottom: 8px; }
.sm-calc .sm-field input, .sm-calc select { background: var(--card); color: var(--text); }   /* поля светлее блока — и в тёмной */
.sm-calc__row { display: flex; gap: 10px; }
.sm-calc__row .sm-field { margin: 0; flex: 1; }
.sm-calc__row select { width: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); }
.sm-calc__hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.sm-calc__out p { margin: 10px 0 8px; }
.sm-keyspecs { margin-top: 18px; }
.sm-keyspecs dl { margin: 8px 0; display: grid; gap: 4px; }
.sm-keyspecs dl div { display: flex; gap: 8px; font-size: 14px; }
.sm-keyspecs dt { color: var(--muted); }
.sm-keyspecs dt::after { content: ":"; }
.sm-keyspecs dd { margin: 0; font-weight: 600; }
.sm-ptabs { display: flex; gap: 6px; overflow-x: auto; margin: 28px 0 0; padding: 0 0 2px; border-bottom: 1px solid var(--line); }
.sm-ptabs a { flex: none; padding: 10px 14px; color: var(--text); font-weight: 600; border-bottom: 2px solid transparent; }
.sm-ptabs a:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }
.sm-psec { padding-top: 8px; }
.sm-psec > h2 { margin-top: 1.2em; }
.sm-specs { width: 100%; max-width: 820px; border-collapse: collapse; font-size: 15px; }
.sm-specs th, .sm-specs td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.sm-specs th { width: 45%; color: var(--muted); font-weight: 400; }
.sm-specs tr:nth-child(odd) { background: var(--soft); }
.sm-review { max-width: 820px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sm-review header { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 14px; color: var(--muted); }
.sm-review header b { color: var(--text); font-size: 15px; }
.sm-review p { margin: 6px 0 0; }
.sm-review-write { margin-top: 16px; max-width: 620px; }
.sm-review-write > summary { list-style: none; color: var(--brand); }
.sm-review-write > summary::-webkit-details-marker { display: none; }
#form-review { display: block; margin-top: 14px; }
#form-review small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.sm-rate { display: block; margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.sm-rate legend { margin-bottom: 2px; padding: 0; font-size: 14px; color: var(--muted); }
.sm-rate__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.sm-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sm-rate label { font-size: 30px; line-height: 1; color: #c9ced8; cursor: pointer; }
.sm-rate input:checked ~ label, .sm-rate label:hover, .sm-rate label:hover ~ label { color: #f5a623; }
.sm-rate input:focus-visible + label { outline: 2px solid var(--brand); }
.sm-rate.is-invalid label { color: #f1b4b4; }

/* карточки */
.sm-cards { display: grid; gap: 12px; }
.sm-cards--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sm-cards--row { grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
.sm-cards--row > * { scroll-snap-align: start; }
.sm-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.sm-card__img { position: relative; display: block; aspect-ratio: 1; }
.sm-card__img img { width: 100%; height: 100%; object-fit: contain; }
.sm-card__name { color: var(--text); font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sm-card__price { margin-top: auto; font-size: 15px; }
.sm-card__price b { font-size: 17px; }
.sm-card__price .is-sale { color: #d92d20; }
.sm-card__price s { color: var(--muted); font-size: 13px; }
.sm-card__stock { font-size: 13px; color: #b54708; }
.sm-card__btn { min-height: 40px; padding: 0 10px; font-size: 14px; }
.sm-card__btn .sm-i { width: 18px; height: 18px; }
.sm-cards--mini { grid-auto-flow: column; grid-auto-columns: 150px; grid-template-columns: none; overflow-x: auto; }
.sm-cards--mini .sm-card__btn { display: none; }

/* окна товара */
.sm-added__name { color: var(--text) !important; font-weight: 600; }
.sm-added__btns { display: grid; gap: 8px; }
.sm-added__btns .sm-btn--ghost { color: var(--text); }
.sm-added__more { margin: 16px 0 8px !important; font-weight: 700; color: var(--text) !important; }
.sm-zoom { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 12, 16, .94); }
.sm-zoom[open] { display: flex; align-items: center; justify-content: center; }
.sm-zoom img { max-width: 96vw; max-height: 92vh; object-fit: contain; background: var(--img); border-radius: 6px; }
.sm-zoom .sm-iconbtn { position: absolute; color: #fff; background: rgba(255, 255, 255, .12); }
.sm-zoom .sm-iconbtn:hover { background: rgba(255, 255, 255, .24); }
.sm-zoom__close { top: 12px; right: 12px; }
.sm-zoom__prev { left: 12px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.sm-zoom__next { right: 12px; top: 50%; transform: translateY(-50%); }
.sm-stickybuy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--card); box-shadow: 0 -4px 18px rgba(21, 27, 38, .12); }
.sm-stickybuy__price { font-size: 19px; font-weight: 800; }
.sm-stickybuy__price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.sm-stickybuy .sm-btn--cart { flex: 0 1 auto; }
@media (min-width: 600px) {
  .sm-cards--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm-cards--row { grid-auto-columns: 30%; }
}
@media (min-width: 992px) {
  .sm-pgrid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .sm-gallery { position: sticky; top: 76px; }
  .sm-buy__box { padding: 20px; }
  .sm-cards--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm-cards--row { grid-auto-columns: calc((100% - 48px) / 5); }
  .sm-stickybuy { display: none !important; }
  .sm-ptabs { position: sticky; top: 56px; z-index: 20; background: var(--card); }
}
.sm-toast { position: fixed; left: 50%; bottom: 84px; z-index: 60; transform: translateX(-50%); max-width: min(92vw, 520px); padding: 12px 16px; border-radius: var(--r); background: var(--dark); color: #fff; font-size: 14px; box-shadow: var(--shadow); }
.sm-toast a { color: #9cc3ff; }
.sm-toast.is-err { background: #b42318; }

/* поиск: кнопка по центру, живые подсказки */
.sm-search__btn { display: flex; align-items: center; justify-content: center; padding: 0; }
.sm-live { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; max-height: min(70vh, 540px); overflow: auto; padding: 6px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.sm-live__item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: var(--text); text-decoration: none !important; }
.sm-live__item:hover, .sm-live__item:focus { background: var(--soft); color: var(--text); outline: 0; }
.sm-live__item img { flex: none; width: 48px; height: 48px; object-fit: contain; }
.sm-live__name { flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; }
.sm-live__name small, .sm-live__price small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.sm-live__price { flex: none; text-align: right; font-size: 14px; white-space: nowrap; }
.sm-live__price s { display: block; color: var(--muted); font-size: 12px; }
.sm-live__price .is-sale { color: #d92d20; }
.sm-live__all { width: 100%; margin-top: 4px; padding: 10px; border: 0; border-radius: 8px; background: var(--brand-l); color: var(--brand-d); font-weight: 600; cursor: pointer; }
.sm-live__all:focus { outline: 2px solid var(--brand); }
.sm-live__empty { margin: 0; padding: 12px; color: var(--muted); font-size: 14px; }
.sm-live__noimg { flex: none; width: 48px; height: 48px; border-radius: 6px; background: var(--soft); }
.sm-tabs.is-js > .sm-psec { display: none; }
.sm-tabs.is-js > .sm-psec.is-active { display: block; }
.sm-tabs.is-js > .sm-psec > h2:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sm-tabs.is-js > .sm-psec { padding-top: 20px; }
.sm-ptabs a[aria-selected="true"] { color: var(--brand-d); border-color: var(--brand); }

/* каталог */
.sm-listing h1 { margin-bottom: 14px; }
.sm-subcats { display: flex; gap: 10px; overflow-x: auto; margin: 0 0 18px; padding-bottom: 4px; scrollbar-width: thin; }
.sm-subcat { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 132px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font-size: 14px; line-height: 1.25; text-align: center; text-decoration: none !important; }
.sm-subcat:hover { border-color: var(--brand); color: var(--brand-d); }
.sm-subcat img { width: 88px; height: 88px; object-fit: contain; }
.sm-listing__grid { display: grid; gap: 20px; }
.sm-listing__main { min-width: 0; }
.sm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 14px; }
.sm-toolbar__count { color: var(--muted); font-size: 14px; flex: 1 1 100%; order: 3; }
.sm-toolbar__sel { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sm-toolbar__sel select { min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); color: var(--text); font-size: 14px; }
.sm-filter-btn { min-height: 40px; }
.sm-empty { padding: 24px 0; color: var(--muted); }
.sm-pagination { margin: 24px 0 8px; }
.sm-pagination .pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.sm-pagination .pagination a, .sm-pagination .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r); color: var(--text); text-decoration: none; }
.sm-pagination .pagination a:hover { border-color: var(--brand); color: var(--brand); }
.sm-pagination .pagination .active span { background: var(--btn); border-color: var(--brand); color: #fff; font-weight: 700; }
.sm-cattext { margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--line); }
.sm-cattext.is-collapsed { max-height: 260px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.sm-more { margin: 6px 0 0; padding: 8px 0; border: 0; background: none; color: var(--brand); font-weight: 600; cursor: pointer; }
.sm-fpages { margin: 0 0 16px; }
.sm-fpages ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 4px 0 0; padding: 0; }
.sm-fpages li a { display: inline-block; padding: 4px 12px; border-radius: 16px; background: var(--soft); color: var(--text); font-size: 14px; }
.sm-fpages li.is-on a { background: var(--btn); color: #fff; }
.sm-brandhead { display: flex; align-items: center; gap: 16px; }
.sm-brandhead img { object-fit: contain; }
.sm-letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.sm-letters a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-weight: 600; }
.sm-brands h2 { margin: 18px 0 10px; }
.sm-brands__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sm-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-align: center; }
.sm-brand img { width: 120px; height: 60px; object-fit: contain; }
.sm-searchpage { display: grid; gap: 4px 12px; margin: 0 0 20px; padding: 16px; border-radius: 14px; background: var(--soft); }
.sm-searchpage select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); }
.sm-searchpage .sm-btn { justify-self: start; }
@media (min-width: 768px) {
  .sm-searchpage { grid-template-columns: 2fr 1.3fr; align-items: end; }
  .sm-searchpage .sm-check, .sm-searchpage .sm-btn { grid-column: span 1; }
}
@media (min-width: 992px) {
  .sm-listing__grid.has-side { grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
  .sm-filter-btn { display: none; }
  .sm-toolbar__count { flex: 1 1 auto; order: 0; }
  .sm-listing__grid.has-side .sm-cards--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm-listing__side #column-left { width: auto; max-width: none; padding: 0; flex: none; }
}
@media (min-width: 1200px) { .sm-listing__grid.has-side .sm-cards--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* каталог на телефоне: кнопка «Фільтри» (шторка своего фильтра); сортировка в одну строку */
@media (max-width: 991px) {
  .sm-toolbar { flex-wrap: nowrap; gap: 8px; }
  .sm-toolbar__sel span, .sm-toolbar__limit { display: none; }
  .sm-toolbar__sel { flex: 1; min-width: 0; }
  .sm-toolbar__sel select { width: 100%; min-height: 44px; }
  .sm-filter-btn { flex: none; min-height: 44px; }
  .sm-toolbar__count { display: none; }
}
@media (max-width: 991px) { .sm-listing__grid { gap: 0; } }

/* 2026-11-09: свой фильтр раздела (sm_filter.twig, data-smf в stroymir.js): колонка слева, на телефоне — шторка снизу */
.smf { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--text); font-size: 14px; }
.smf__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; }
.smf__head b { font-size: 16px; }
.smf__reset { margin-left: auto; color: var(--brand); font-weight: 600; }
.smf__close { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--soft); color: var(--text); cursor: pointer; }
.smf__reset + .smf__close { margin-left: 0; }
.smf__body { padding: 0 16px 8px; }
.smf__g { border-top: 1px solid var(--line); }
.smf__g > summary { display: flex; align-items: center; gap: 8px; padding: 12px 0; font-weight: 600; cursor: pointer; list-style: none; }
.smf__g > summary::-webkit-details-marker { display: none; }
.smf__g > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.smf__g[open] > summary::after { transform: rotate(-135deg); }
.smf__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.smf__list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 2px; }
.smf__list:not(.is-all) > .smf__extra { display: none; }
.smf__opt { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 6px; margin: 0 -6px; border-radius: 8px; cursor: pointer; line-height: 1.25; }
.smf__opt:hover { background: var(--hover); }
.smf__opt input { margin: 0; }
.smf__opt span { flex: 1; min-width: 0; }
.smf__opt em { flex: none; min-width: 26px; padding: 1px 7px; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 12px; font-style: normal; text-align: center; }
.smf__opt.is-off { color: var(--muted); cursor: default; opacity: .55; }
.smf__opt.is-off:hover { background: none; }
.smf__stock { margin: 0 -6px 6px; font-weight: 600; }
.smf__sw { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sw, var(--soft)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.smf__sw--wood { background: repeating-linear-gradient(100deg, #b98a57 0 3px, #9a6c3f 3px 5px, #c99b66 5px 9px); }
.smf__sw--stone { background: radial-gradient(circle at 30% 35%, #f1f1ef 0 18%, transparent 19%), radial-gradient(circle at 70% 65%, #b9bcc0 0 14%, transparent 15%), linear-gradient(135deg, #d9dadc, #9fa3a8); }
.smf__sw--pattern { background: conic-gradient(from 45deg, #e8e8e8 0 25%, #b8c4d6 0 50%, #e8e8e8 0 75%, #b8c4d6 0) 0 0 / 8px 8px; }
.smf__opt input:checked ~ .smf__sw { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--brand); }
.smf__list--tone .smf__opt { position: relative; }
.smf__list--tone .smf__opt input { position: absolute; left: 6px; width: 22px; height: 22px; opacity: 0; }   /* выбор — обводкой кружка, галочка — для клавиатуры и экранного диктора */
.smf__list--tone .smf__opt input:focus-visible ~ .smf__sw { outline: 2px solid var(--brand); outline-offset: 3px; }
.smf__list--tone .smf__opt input:checked ~ span { font-weight: 600; }
.smf__toggle { margin: -4px 0 10px; padding: 4px 0; border: 0; background: none; color: var(--brand); font-weight: 600; cursor: pointer; }
.smf__find { width: 100%; min-height: 38px; margin: 0 0 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--text); }
.smf__range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.smf__range label { display: flex; align-items: center; gap: 6px; padding: 0 10px; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--muted); }
.smf__range input { width: 100%; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; outline: none; -moz-appearance: textfield; }
.smf__range input::-webkit-inner-spin-button, .smf__range input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.smf__range label:focus-within { border-color: var(--brand); }
.smf__foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.smf__show { width: 100%; }
.smf.is-js .smf__foot { display: none; }
.smf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.smf-chips__n { color: var(--muted); font-size: 14px; margin-right: 4px; }
.smf-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 8px 4px 12px; border: 0; border-radius: 17px; background: var(--brand-l); color: var(--text); font-size: 14px; cursor: pointer; }
.smf-chip .sm-i { width: 16px; height: 16px; color: var(--muted); }
.smf-chip:hover .sm-i { color: var(--err); }
.smf-chips__reset { color: var(--brand); font-size: 14px; font-weight: 600; }
.sm-filter-btn b { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 6px; border-radius: 10px; background: var(--btn); color: #fff; font-size: 12px; }
[data-smf-main].is-loading { opacity: .5; pointer-events: none; transition: opacity .15s; }
@media (min-width: 992px) {
  .smf-side { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; border-radius: 14px; scrollbar-width: thin; }
}
@media (max-width: 991px) {
  .smf-side { position: fixed; inset: auto 0 0 0; z-index: 60; max-height: 88vh; transform: translateY(105%); transition: transform .25s ease; }
  .smf-side .smf { max-height: 88vh; border-radius: 16px 16px 0 0; border-width: 1px 0 0; box-shadow: var(--shadow); }
  .smf-side .smf__body { flex: 1; overflow: auto; overscroll-behavior: contain; }
  .smf-side .smf__close { display: inline-flex; align-items: center; justify-content: center; }
  .smf.is-js .smf__foot { display: block; }
  .smf-open .smf-side { transform: none; }
  .smf-open::after { content: ""; position: fixed; inset: 0; z-index: 59; background: rgba(10, 14, 20, .45); }
  .smf__opt { min-height: 44px; }
}

/* 2026-11-09: фирменные галочки и радиокнопки (владелец: «галочки везде фирменные», «и на сайте свои под тему») — цвета из токенов, светлая и тёмная */
input[type="checkbox"], input[type="radio"] { -webkit-appearance: none; appearance: none; flex: none; display: inline-block; width: 18px; height: 18px; vertical-align: -4px; border: 1.5px solid var(--muted); border-radius: 5px; background: var(--field) center / 12px 12px no-repeat; cursor: pointer; transition: background-color .12s, border-color .12s, box-shadow .12s; }
input[type="radio"] { border-radius: 50%; background-size: 100% 100%; }
input[type="checkbox"]:checked, input[type="checkbox"]:indeterminate { border-color: var(--btn); background-color: var(--btn); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.3 4.9 8.7 9.6 3.4' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
input[type="checkbox"]:indeterminate { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6h6' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
input[type="radio"]:checked { border-color: var(--btn); background-image: radial-gradient(circle, var(--btn) 0 36%, transparent 40%); }
input[type="checkbox"]:hover:not(:disabled), input[type="radio"]:hover:not(:disabled) { border-color: var(--btn); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: .45; cursor: default; }
.sm-sub input[type="checkbox"] { border-color: #fff; background-color: #fff; }   /* на синей полосе подписки — белая, отметка синяя */
.sm-sub input[type="checkbox"]:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.3 4.9 8.7 9.6 3.4' fill='none' stroke='%23006dff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sm-sub input[type="checkbox"]:focus-visible { outline-color: #fff; }

/* доступность: ссылки в тексте подчёркнуты (не только цветом) */
.sm-text a, .sm-buy__meta a, .sm-check a, .sm-cookie a { text-decoration: underline; text-underline-offset: 2px; }

/* главная */
.sm-home { padding-top: 4px; }
.sm-homesec { margin: 28px 0 0; }
.sm-homesec__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); }
.sm-homesec__more { font-size: 15px; font-weight: 600; }
.sm-benefits { display: grid; gap: 10px; list-style: none; margin: 8px 0 0; padding: 0; }
.sm-benefit { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.sm-benefit__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); color: var(--brand); }
.sm-benefit__icon .sm-i { width: 22px; height: 22px; }
.sm-benefit b { display: block; font-size: 15px; }
.sm-benefit small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.sm-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sm-wall__tile { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--soft); text-decoration: none !important; }
.sm-wall__tile img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.sm-wall__tile:hover img { transform: scale(1.04); }
.sm-wall__title { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; height: 52px; padding: 0 8px; background: rgba(0, 87, 204, .78); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.25; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.sm-wall__children { display: none; list-style: none; margin: 8px 2px 0; padding: 0; font-size: 14px; }
.sm-wall__children li { margin-bottom: 3px; }
.sm-wall__children a { color: var(--muted); }
.sm-wall__children a:hover { color: var(--brand); }
.sm-cards--home { grid-auto-columns: 46%; }
.sm-hreviews { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
.sm-hreview { scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.sm-hreview__product { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.3; }
.sm-hreview__product img { flex: none; width: 60px; height: 62px; object-fit: contain; }
.sm-hreview p { margin: 0; font-size: 14px; }
.sm-hreview footer { margin-top: auto; color: var(--muted); font-size: 13px; }
.sm-hreview footer b { color: var(--text); }
.sm-hometext { margin-top: 36px; padding-top: 8px; border-top: 1px solid var(--line); }
.sm-hometext h1 { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.75rem); }
@media (min-width: 600px) {
  .sm-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm-cards--home { grid-auto-columns: 30%; }
  .sm-hreviews { grid-auto-columns: 46%; }
}
@media (min-width: 992px) {
  .sm-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .sm-wall__title { height: 65px; font-size: 15px; padding: 0 12px; }
  .sm-wall__children { display: block; }
  .sm-cards--home { grid-auto-columns: calc((100% - 48px) / 5); }
  .sm-hreviews { grid-auto-columns: calc((100% - 36px) / 4); }
}
.sm-hreview p { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 599px) {
  .sm-benefits { gap: 6px; }
  .sm-benefit { padding: 8px 12px; }
  .sm-benefit small { display: none; }
  .sm-benefit__icon { width: 36px; height: 36px; }
}
@media (min-width: 1200px) { .sm-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* контакты, карта сайта, блог, отзывы о магазине, успех */
.sm-contact__grid, .sm-sitemap__grid { display: grid; gap: 20px; }
.sm-contact__info { display: grid; gap: 16px; align-content: start; }
.sm-contact__card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.sm-contact__card h2 { margin: 0 0 12px; font-size: 1.2rem; }
.sm-contact__card > p { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; }
.sm-contact__card > p .sm-i { margin-top: 2px; color: var(--brand); }
.sm-contact__card > p a { color: var(--text); font-weight: 600; }
.sm-contact__msgr { gap: 8px !important; flex-wrap: wrap; }
.sm-contact__map iframe { display: block; width: 100%; height: 320px; border: 0; border-radius: 14px; }
.sm-alert { padding: 10px 14px; border-radius: var(--r); background: var(--err-l); color: var(--err); }
.sm-ferr { display: block; margin-top: 4px; color: var(--err); font-size: 13px; }
.sm-sitemap ul { list-style: none; margin: 0; padding: 0; }
.sm-sitemap ul ul { padding-left: 16px; margin: 4px 0 8px; border-left: 2px solid var(--brand-l); }
.sm-sitemap li { margin: 4px 0; }
.sm-posts { display: grid; gap: 18px; }
.sm-post { display: flex; flex-direction: column; gap: 8px; }
.sm-post__img { display: block; overflow: hidden; border-radius: 12px; background: var(--soft); }
.sm-post__img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.sm-post__title { margin: 0; font-size: 1.1rem; }
.sm-post__title a { color: var(--text); }
.sm-post__text { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sm-post__date { color: var(--muted); font-size: 13px; }
.sm-article__body { max-width: 820px; }
.sm-article__img { display: block; width: 100%; height: auto; margin: 0 0 18px; border-radius: 14px; }
.sm-sreviews__top { display: grid; gap: 16px; align-items: center; margin: 0 0 20px; padding: 18px; border-radius: 14px; background: var(--soft); }
.sm-sreviews__score { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sm-sreviews__score b { font-size: 40px; line-height: 1; }
.sm-sreviews__score .sm-stars { font-size: 22px; }
.sm-sreviews__score small { flex-basis: 100%; color: var(--muted); }
.sm-sreviews__subj { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.sm-sreviews__subj li { display: flex; justify-content: space-between; gap: 10px; }
.sm-sreviews__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-sreviews__chip { padding: 1px 8px; border-radius: 10px; background: var(--soft); font-size: 12px; }
.sm-review__answer { padding: 8px 12px; border-left: 3px solid var(--brand); background: var(--soft); }
.sm-sreview-form { max-width: 620px; }
@media (min-width: 768px) {
  .sm-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-sitemap__grid { grid-template-columns: 2fr 1fr; }
  .sm-sreviews__top { grid-template-columns: auto 1fr auto; }
}
@media (min-width: 992px) {
  .sm-contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .sm-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* кабинет, корзина */
.sm-ok { padding: 10px 14px; border-radius: var(--r); background: var(--ok-l); color: var(--ok); }
.sm-acc__grid { display: grid; gap: 20px; }
.sm-accnav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.sm-accnav a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r); background: var(--soft); color: var(--text); font-size: 14px; text-decoration: none !important; }
.sm-accnav a[aria-current] { background: var(--btn); color: #fff; }
.sm-accnav .sm-i { width: 18px; height: 18px; }
.sm-acc__main { min-width: 0; }
.sm-acc__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.sm-acc__tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); font-weight: 600; text-decoration: none !important; }
.sm-acc__tile:hover { border-color: var(--brand); color: var(--brand-d); }
.sm-acc__tile .sm-i { width: 26px; height: 26px; color: var(--brand); }
.sm-accform { max-width: 520px; }
.sm-accform__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sm-field select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); }
.sm-radios { margin: 0 0 12px; padding: 0; border: 0; }
.sm-radios legend { margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.sm-radios .sm-check { display: inline-flex; margin-right: 16px; }
.sm-addrs { display: grid; gap: 12px; margin: 0 0 16px; }
.sm-addr { padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.sm-addr address { font-style: normal; margin: 6px 0 10px; }
.sm-tablewrap { overflow-x: auto; margin: 0 0 16px; }
.sm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sm-table th, .sm-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.sm-table th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.sm-table .sm-btn { min-height: 36px; padding: 0 12px; font-size: 14px; }
.sm-orderhead p { margin: 0 0 6px; }
.sm-cartlist { display: grid; gap: 0; margin: 0 0 12px; border-top: 1px solid var(--line); }
.sm-cartrow { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "img name del" "img qty total"; align-items: center; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sm-cartrow__img { grid-area: img; }
.sm-cartrow__img img { width: 64px; height: 64px; object-fit: contain; }
.sm-cartrow__name { grid-area: name; font-size: 15px; }
.sm-cartrow__name a { color: var(--text); font-weight: 600; }
.sm-cartrow__name small { display: block; }
.sm-cartrow .sm-qty { grid-area: qty; justify-self: start; }
.sm-cartrow__total { grid-area: total; justify-self: end; }
.sm-cartrow .sm-iconbtn { grid-area: del; justify-self: end; }
.sm-qty--s input { width: 84px; height: 40px; text-align: center; border: 0; background: transparent; color: var(--text); }
.sm-carttotals { max-width: 420px; margin: 0 0 16px auto; }
.sm-carttotals p { display: flex; justify-content: space-between; margin: 0 0 6px; }
@media (min-width: 768px) {
  .sm-acc__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm-addrs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-cartrow { grid-template-columns: 80px 1fr auto auto 44px; grid-template-areas: "img name qty total del"; }
  .sm-cartrow__img img { width: 80px; height: 80px; }
}
@media (min-width: 992px) {
  .sm-acc__grid { grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
  .sm-acc__main:only-child { grid-column: 1 / -1; }   /* правка владельца 2026-11-13: страницы гостя (вход, «Забули пароль?») без меню кабинета — не в узкой колонке меню */
  .sm-accnav { flex-direction: column; overflow: visible; }
}

/* One Page Checkout (оформление, вход, регистрация, «Замовлення прийнято») на теме: его шаблоны — с классами Bootstrap/UltraStore, здесь их минимум */
.sm .flex-container { max-width: var(--wrap); margin: 0 auto; padding: 16px 16px 40px; }
.sm .flex-container .row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.sm .flex-container .row > [class*="col-"], .sm .flex-container .form-row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; padding: 0 10px; }
.sm .flex-container .form-row { display: flex; flex-wrap: wrap; margin: 0 -6px; }
.sm .flex-container .form-row > [class*="col-"] { padding: 0 6px; }
.sm .flex-container .us-main-shop-title { margin: 0 0 16px; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); font-weight: 700; line-height: 1.25; }
.sm .flex-container .us-content { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.sm .flex-container .form-group { margin-bottom: 14px; }
.sm .flex-container label { display: inline-block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.sm .flex-container .required > label::after, .sm .flex-container label.required::after { content: " *"; color: var(--err); }
.sm .flex-container .form-control { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); font: inherit; }
.sm .flex-container .form-control:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px var(--brand-l); }
.sm .flex-container .form-control.is-invalid { border-color: var(--err); }
.sm .flex-container .invalid-feedback { display: none; margin-top: 4px; color: var(--err); font-size: 13px; }
.sm .flex-container .is-invalid ~ .invalid-feedback, .sm .flex-container .invalid-feedback.d-block { display: block; }
.sm .flex-container .form-text, .sm .flex-container .text-muted { color: var(--muted); }
.sm .flex-container .custom-control { position: relative; display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.sm .flex-container .custom-control-input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; }
.sm .flex-container .custom-control-label { margin: 0; font-weight: 400; }
.sm .flex-container .us-module-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 0; border-radius: var(--r); background: var(--btn); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; }
.sm .flex-container .us-module-btn:hover { background: var(--btn-h); color: #fff; text-decoration: none; }
.sm .flex-container .us-module-btn-green { background: var(--ok); }
.sm .flex-container .us-module-btn-green:hover { background: #136c2e; }
.sm .flex-container .alert { padding: 10px 14px; border-radius: var(--r); }
.sm .flex-container .alert-success { background: var(--ok-l); color: var(--ok); }
.sm .flex-container .mb-0 { margin-bottom: 0 !important; }
.sm .flex-container .mb-3 { margin-bottom: 1rem !important; }
.sm .flex-container .mt-2 { margin-top: .5rem !important; }
.sm .flex-container .mt-3 { margin-top: 1rem !important; }
.sm .flex-container .d-block { display: block !important; }
.sm .flex-container .d-inline-block { display: inline-block !important; }
.sm .flex-container .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sm .flex-container .fa-eye, .sm .flex-container .fa-trash-alt { display: inline-block; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--sm-ico) center / contain no-repeat; mask: var(--sm-ico) center / contain no-repeat; vertical-align: middle; }
.sm .flex-container .fa-eye { --sm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.sm .flex-container .fa-trash-alt { --sm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14'/%3E%3C/svg%3E"); }
@media (min-width: 768px) {
  .sm .flex-container .row > .col-md-5 { flex-basis: 41.66%; max-width: 41.66%; }
  .sm .flex-container .row > .col-md-6, .sm .flex-container .form-row > .col-md-6 { flex-basis: 50%; max-width: 50%; }
  .sm .flex-container .row > .col-md-7 { flex-basis: 58.33%; max-width: 58.33%; }
}
@media (min-width: 992px) {
  .sm .flex-container .row > .col-lg-5 { flex-basis: 41.66%; max-width: 41.66%; }
  .sm .flex-container .row > .col-lg-6 { flex-basis: 50%; max-width: 50%; }
  .sm .flex-container .row > .col-lg-7 { flex-basis: 58.33%; max-width: 58.33%; }
  .sm .flex-container .order-lg-last { order: 99; }
}
.sm .flex-container .order-first { order: -1; }
.sm .flex-container .breadcrumb, .sm .flex-container .us-breadcrumb { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0 0 12px; padding: 0; background: none; font-size: 14px; color: var(--muted); }
.sm .flex-container .breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #b3bac6; }
.sm .flex-container .breadcrumb a { color: var(--muted); }
.sm-cart { gap: 14px; }
.sm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 2026-11-06, подвал: разделы разворачиваются на телефоне; в HTML открыты, сворачивает js */
.sm-footer__sec > summary { list-style: none; font-weight: 700; }
.sm-footer__sec > summary::-webkit-details-marker { display: none; }
.sm-footer__sec > summary .sm-i { display: none; }
@media (min-width: 600px) { .sm-footer__sec > summary { pointer-events: none; } }
@media (max-width: 599px) {
  .sm-footer__grid { gap: 0; }
  .sm-footer__brand { padding-bottom: 20px; }
  .sm-footer__sec { border-top: 1px solid #2a3242; }
  .sm-footer__sec > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: 0; cursor: pointer; }
  .sm-footer__sec > summary .sm-i { display: block; transition: transform .15s; }
  .sm-footer__sec[open] > summary .sm-i { transform: rotate(180deg); }
  .sm-footer__sec ul { padding-bottom: 14px; }
  .sm-footer__contacts { padding-top: 20px; border-top: 1px solid #2a3242; }
}
/* горизонтальные ленты товаров и отзывов — до краёв экрана; первая карточка на линии текста */
@media (max-width: 991px) {
  .sm-cards--row, .sm-hreviews { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; }
}

/* СтройМир 2026-11-09: окно консультанта (js/consultant.js) — кнопка справа внизу, панель (на компьютере перетаскивается и меняет размер); на телефоне — во весь экран */
.sm-cs__fab { position: fixed; right: 16px; bottom: 16px; z-index: 44; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--btn); color: #fff; font-weight: 600; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s; }
.sm-cs__fab:hover { background: var(--btn-h); transform: translateY(-1px); }
.sm-cs__fab .sm-i { width: 22px; height: 22px; }
.sm-cs__panel { position: fixed; right: 16px; bottom: 16px; z-index: 55; display: flex; flex-direction: column; width: min(440px, calc(100vw - 32px)); height: min(700px, calc(100vh - 32px)); background: var(--card); border-radius: 14px; box-shadow: 0 18px 50px rgba(21, 27, 38, .24); overflow: hidden; animation: sm-cs-in .18s ease-out; }
@keyframes sm-cs-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.sm-cs__panel.is-drag { user-select: none; box-shadow: 0 24px 60px rgba(21, 27, 38, .32); }
.sm-cs__head { display: flex; align-items: center; gap: 4px; padding: 12px 10px 12px 16px; background: var(--btn); color: #fff; cursor: grab; touch-action: none; }
.sm-cs__panel.is-drag .sm-cs__head { cursor: grabbing; }
.sm-cs__ht { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sm-cs__ht small { opacity: .85; font-size: 12px; }
.sm-cs__icon { position: relative; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 9px; background: transparent; color: inherit; cursor: pointer; }
.sm-cs__head .sm-cs__icon:hover { background: rgba(255, 255, 255, .16); }
.sm-cs__badge { position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #ffb020; color: #151b26; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }
.sm-cs__tray { max-height: 46%; overflow-y: auto; padding: 10px 14px 12px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 6px 12px rgba(21, 27, 38, .06); animation: sm-cs-in .15s ease-out; }
.sm-cs__plist { list-style: none; margin: 0 0 10px; padding: 0; }
.sm-cs__plist li { display: grid; grid-template-columns: 1fr 64px 28px; grid-template-areas: "n q x" "p q x"; align-items: center; gap: 0 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.sm-cs__pname { grid-area: n; font-size: 14px; line-height: 1.3; }
.sm-cs__pprice { grid-area: p; font-size: 12.5px; color: var(--muted); }
.sm-cs__pqty { grid-area: q; width: 64px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.sm-cs__px { grid-area: x; width: 28px; height: 28px; border: 0; border-radius: 7px; background: var(--soft); color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.sm-cs__px:hover { color: var(--err); }
.sm-cs__all { width: 100%; }
.sm-cs__empty { margin: 0; color: var(--muted); font-size: 14px; }
.sm-cs__log { flex: 1; overflow-y: auto; padding: 14px; background: var(--soft); display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.sm-cs__msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 15px; line-height: 1.45; word-wrap: break-word; animation: sm-cs-msg .2s ease-out; }
@keyframes sm-cs-msg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sm-cs__msg--me { align-self: flex-end; background: var(--btn); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.sm-cs__msg--bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; max-width: 100%; }
.sm-cs__file { font-size: 13px; opacity: .9; margin-bottom: 4px; }
.sm-cs__text p { margin: 0 0 .45em; }
.sm-cs__text p:last-child, .sm-cs__text ul:last-child { margin-bottom: 0; }
.sm-cs__text ul { margin: 0 0 .45em; padding-left: 1.2em; }
.sm-cs__sub { margin: 10px 0 2px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
/* «пишет»: бегущие точки и шаг ответа, который плавно меняется */
.sm-cs__typing { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.sm-cs__dots { display: inline-flex; gap: 4px; }
.sm-cs__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--btn); opacity: .35; animation: sm-cs-dot 1.1s ease-in-out infinite; }
.sm-cs__dots i:nth-child(2) { animation-delay: .15s; }
.sm-cs__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes sm-cs-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-5px); opacity: 1; } }
.sm-cs__st { font-size: 14px; background: linear-gradient(90deg, var(--muted) 30%, var(--brand) 50%, var(--muted) 70%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sm-cs-shine 2.2s linear infinite; }
.sm-cs__st.is-in { animation: sm-cs-shine 2.2s linear infinite, sm-cs-msg .25s ease-out; }
@keyframes sm-cs-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sm-cs__cards { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 8px; overflow-x: auto; margin: 8px -4px 0; padding: 0 4px 4px; }
.sm-cs__cards .sm-card { font-size: 13px; }
.sm-cs__cards .sm-card__img img { width: 100%; height: auto; }
.sm-cs__mgr { margin-top: 10px; padding: 10px; border-radius: var(--r); background: var(--soft); }
.sm-cs__mgr-t { margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.sm-cs__mgr-b { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }   /* узко (телефон) — кнопки друг под другом во всю ширину */
.sm-cs__mgr-b .sm-btn { width: 100%; min-height: 44px; padding: 6px 10px; font-size: 14px; justify-content: center; text-align: center; line-height: 1.2; }
.sm-cs__mgr-b .sm-btn--ghost { background: var(--card); gap: 8px; }
.sm-cs__mgr-b .sm-i { width: 18px; height: 18px; flex: none; }
.sm-cs__mgr-call { display: flex; flex-direction: column; align-items: flex-start; }
.sm-cs__mgr-call small { font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.sm-cs__mgr-b .sm-btn.is-done { opacity: .55; }
/* 2026-11-09: форма «Передзвоніть мені» в плашке менеджера и карточка заказа из чата */
.sm-cs__cb { margin-top: 10px; }
.sm-cs__f { margin-bottom: 8px; }
.sm-cs__f span { font-size: 13px; margin-bottom: 2px; }
.sm-cs__f input { min-height: 42px; padding: 8px 10px; font-size: 15px; }
.sm-cs__f input.is-invalid { border-color: var(--err); }
.sm-cs__agree { font-size: 13px; margin-bottom: 8px; }
.sm-cs__note2 { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.sm-cs__note2 a, .sm-cs__agree a { text-decoration: underline; }
.sm-cs__cb .sm-msg, .sm-cs__order-f .sm-msg { margin-top: 6px; font-size: 13.5px; }
.sm-cs__order { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: 0 1px 0 rgba(21, 27, 38, .03); }
.sm-cs__order-t { margin-bottom: 8px; font-weight: 700; }
.sm-cs__order-l { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.sm-cs__order-l li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n s" "q s"; column-gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.sm-cs__order-l li:first-child { border-top: 0; padding-top: 0; }
.sm-cs__order-n { grid-area: n; line-height: 1.35; }
.sm-cs__order-q { grid-area: q; font-size: 13px; color: var(--muted); }
.sm-cs__order-l b { grid-area: s; align-self: center; white-space: nowrap; }
.sm-cs__order-sum { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 8px; padding-top: 8px; border-top: 2px solid var(--line); font-size: 15px; }
.sm-cs__order-sum b { font-size: 17px; }
.sm-cs__order-m { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0 0 10px; font-size: 13.5px; }
.sm-cs__order-m dt { color: var(--muted); }
.sm-cs__order-m dd { margin: 0; }
.sm-cs__order-f { padding-top: 10px; border-top: 1px solid var(--line); }
.sm-cs__order-ok { padding: 10px 12px; border-radius: 8px; background: var(--ok-l); color: var(--ok); font-weight: 600; font-size: 14px; }
.sm-cs__retry { padding: 6px 12px; min-height: 36px; font-size: 14px; }
.sm-cs__retry { margin-top: 8px; }
.sm-cs__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; }
.sm-cs__chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--brand); font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.sm-cs__chip:hover { border-color: var(--brand); background: var(--brand-l); }
.sm-cs__att { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 12px 0; padding: 6px 6px 6px 10px; border-radius: 10px; background: var(--brand-l); font-size: 13px; }
.sm-cs__form { position: relative; display: flex; align-items: flex-end; gap: 6px; padding: 10px 12px; }
.sm-cs__clip { color: var(--muted); }
.sm-cs__clip:hover { color: var(--brand); background: var(--soft); }
.sm-cs__form textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.sm-cs__form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-l); }
.sm-cs__form textarea:placeholder-shown { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* подсказка — одной строкой с многоточием, а не обрезанной второй */
.sm-cs__send { width: 44px; height: 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.sm-cs__count { position: absolute; right: 64px; bottom: -4px; font-size: 11px; color: var(--muted); }
.sm-cs__foot { padding: 0 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.sm-cs__foot small { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.sm-cs__checkout { align-self: flex-start; font-weight: 600; font-size: 14px; }
.sm-cs__grip { position: absolute; right: 2px; bottom: 2px; width: 16px; height: 16px; cursor: nwse-resize; touch-action: none; background: linear-gradient(135deg, transparent 50%, var(--line) 50%, var(--line) 60%, transparent 60%, transparent 70%, var(--line) 70%, var(--line) 80%, transparent 80%); }
.sm-cs-open .sm-cs__fab { display: none; }
@media (max-width: 599px) {
  .sm-cs__fab span { display: none; }
  .sm-cs__fab { padding: 14px; }
  .sm-cs__panel { inset: 0; right: 0; bottom: 0; width: 100vw; height: 100%; border-radius: 0; animation: none; }
  .sm-cs__head { cursor: default; }
  .sm-cs__grip { display: none; }
  .sm-cs-open, .sm-cs-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .sm-cs__panel, .sm-cs__msg, .sm-cs__dots i, .sm-cs__st { animation: none !important; } .sm-cs__st { color: var(--muted); background: none; } }

/* пункт меню текущего раздела (aria-current, Theme::NAV): шапка — цвет и полоса по низу полосы меню (у залитой кнопки «Каталог» — светлая полоса внутри),
   шторка — фон, подвал — подчёркивание */
.sm-tree a[aria-current] { margin: 0 -8px; padding: 6px 8px; border-radius: 8px; background: var(--brand-l); color: var(--brand-d); font-weight: 600; }
.sm-footer a[aria-current] { color: #fff; font-weight: 600; text-decoration: underline 2px var(--brand); text-underline-offset: 4px; }
@media (min-width: 992px) {
  .sm-nav__in > a { align-self: stretch; display: flex; align-items: center; }
  .sm-nav__in > a[aria-current], .sm-catalog > summary[aria-current] { position: relative; }
  .sm-nav__in > a[aria-current] { color: var(--brand-d); }
  .sm-nav__in > a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
  .sm-catalog > summary[aria-current]::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 6px; height: 3px; border-radius: 3px; background: currentColor; }
}

/* стили карточек и сортировки — только внутри .sm-sreviews (страница отзывов о магазине): сортировка ссылками, отзыв — карточкой со средней оценкой и темами */
.sm-sreviews__sort { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.sm-sreviews__sort a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font-size: 14px; }
.sm-sreviews__sort a:hover { border-color: var(--brand); color: var(--brand-d); text-decoration: none; }
.sm-sreviews__sort a[aria-current] { border-color: var(--brand); background: var(--brand-l); color: var(--brand-d); font-weight: 600; }
.sm-sreviews .sm-review { margin: 0 0 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.sm-sreviews .sm-review header { justify-content: space-between; }
.sm-sreviews .sm-review p { margin-top: 10px; }
.sm-review__score { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; font-size: 14px; }
.sm-review__score .sm-stars { font-size: 18px; }
.sm-review__score > b { margin-right: 4px; font-size: 15px; }
.sm-review__none { margin-right: 4px; color: var(--muted); font-style: italic; }
.sm-sreviews .sm-review .sm-sreviews__chip, .sm-sreviews .sm-review__answer { background: var(--card); }
