/* Swiss-Trade: hide dead demo leftovers of the Intec Universe template.
   These are broken on the LIVE Bitrix site too (verified 2026-07-04).
   Hidden via CSS instead of deleted so the mirror HTML stays intact. */

/* Home "Статьи" widget: keep the block, hide only the demo lamp tile
   (6517/LT6 V1679 — leftover from the template's furniture demo) */
.c-articles-template-1 [class*="intec-grid-item"]:has(a[href^="/napolnye-svetilniki-torshery"]) { display: none !important; }

/* Its header description is demo text about "спецтехника" — not our shop */
.c-articles-template-1 .widget-description-container { display: none !important; }

/* "Все статьи" button links to /blog/ which 404s on the live site */
.c-articles-template-1 .widget-all-container { display: none !important; }

/* Menu: "Публикации" stays visible (mirrors the live menu). "Статьи наши" and
   "Наши статьи" are hidden — dead links that 404 on the live site too. */
.menu-submenu-item:has(> a[href="/company/stati/"]),
.menu-submenu-item:has(> a[href="/company/stati-nashi/"]),
.menu-item.menu-item-level-1:has(a[href="/company/stati/"]),
.menu-item.menu-item-level-1:has(a[href="/company/stati-nashi/"]),
a[href="/company/stati/"],
a[href="/company/stati-nashi/"] { display: none !important; }

/* Compare is broken on the live site itself (compare.php is 404) — hide the
   compare buttons and the header compare counter entirely. */
[data-compare-action],
[data-role="panel.compare"] { display: none !important; }

/* Out-of-stock cards ("Заказать"): no quantity stepper — one wide button that
   fills the card, mirroring the live site. */
.catalog-section-item[data-st-buy="order"] .catalog-section-item-counter { display: none !important; }
.catalog-section-item[data-st-buy="order"] .catalog-section-item-purchase {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}
.catalog-section-item[data-st-buy="order"] .catalog-section-item-purchase-buttons,
.catalog-section-item[data-st-buy="order"] .catalog-section-item-purchase-button { width: 100% !important; }
.catalog-section-item[data-st-buy="order"] .catalog-section-item-purchase-container-wrapper { display: block !important; }

/* "Нет в наличии" marker: red dot + red text (stock states are green/grey). */
.catalog-section-item-quantity-icon[data-quantity-state="none"] { background: #c8102e !important; }
.catalog-section-item-quantity-value[data-quantity-state="none"],
.catalog-section-item-quantity-value[data-quantity-state="none"] span { color: #c8102e !important; }

/* Right-hand floating rail: keep cart, "отложенные" and the callback form;
   hide "личный кабинет" (замочек) and the catalog shortcut (иконка-график) —
   the first goes nowhere without accounts, the second duplicates the menu. */
.sale-basket-small-switches [data-tab="personal"],
.sale-basket-small-switches a.sale-basket-small-switch {
  display: none !important;
}
/* the shortcut is a link (the rest are switches), and its href differs between
   snapshots — /products on one page, /products/compare.php on another */

/* Top catalog bar: view switcher ("список/плитка") and "Сортировка" are removed
   by the owner's request (05.08.2026) — they came from the Bitrix snapshot and
   never worked here. The mobile "Фильтр" button lives in the same panel and
   MUST stay, so hide the two blocks, not the whole `.catalog-panel`. */
.catalog-panel-views,
.catalog-panel-sort,
[data-role="catalog.panel.viewMobilePopup"],
[data-role="catalog.panel.sortMobilePopup"] { display: none !important; }

/* ── Каталожный фильтр (свой, вместо вырезанного слепка Битрикса) ────────── */
.st-filter { border: 1px solid #ededed; border-radius: 8px; background: #fff; overflow: hidden; margin: 0 0 24px; }
.st-f-group { border-bottom: 1px solid #ededed; }
.st-f-group:first-child .st-f-head { padding-top: 18px; }
.st-f-head { padding: 15px 20px; font-size: 15px; font-weight: 400; color: #1a1a1a; cursor: pointer; display: flex; align-items: center; justify-content: space-between; user-select: none; }
.st-f-head i { width: 8px; height: 8px; border-right: 1.5px solid #b3b3b3; border-bottom: 1.5px solid #b3b3b3; transform: rotate(45deg); transition: transform .2s; margin-bottom: 3px; flex: none; }
.st-f-group[data-open="true"] .st-f-head i { transform: rotate(-135deg); margin-bottom: -3px; }
.st-f-body { display: none; padding: 0 20px 16px; }
.st-f-group[data-open="true"] .st-f-body { display: block; }

/* цена: поля + двойной ползунок под ними */
.st-f-price { display: flex; align-items: center; gap: 8px; }
.st-f-price input { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #e0e0e0; border-radius: 4px; font-size: 14px; font-weight: 400; color: #1a1a1a; }
.st-f-price span { color: #b3b3b3; }
.st-f-slider { position: relative; height: 26px; margin: 14px 2px 0; }
.st-f-slider-track, .st-f-slider-fill { position: absolute; top: 11px; height: 3px; border-radius: 2px; }
.st-f-slider-track { left: 0; right: 0; background: #e6e6e6; }
.st-f-slider-fill { background: #c8102e; }
/* сами ползунки прозрачны — видно только «бегунки» */
.st-f-slider input[type="range"] {
  position: absolute; left: 0; width: 100%; top: 0; height: 26px; margin: 0;
  background: none; -webkit-appearance: none; appearance: none; pointer-events: none;
}
.st-f-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: pointer;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  border: 2px solid #c8102e; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.st-f-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto; cursor: pointer;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  border: 2px solid #c8102e; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.st-f-slider input[type="range"]::-moz-range-track { background: none; }

/* варианты: подпись + счётчик товаров */
.st-f-opt { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 14px; font-weight: 400; color: #444; cursor: pointer; user-select: none; -webkit-user-select: none; }
.st-f-opt input { width: 16px; height: 16px; accent-color: #c8102e; flex: none; }
.st-f-opt span { flex: 1 1 auto; font-weight: 400; }
.st-f-count { flex: none; font-style: normal; font-size: 12px; color: #b3b3b3; }
.st-f-opt:hover { color: #c8102e; }
/* если текст в фильтре всё же выделят мышью — читаемый контраст */
.st-filter ::selection { background: #c8102e; color: #fff; }
.st-filter ::-moz-selection { background: #c8102e; color: #fff; }
/* Тема Intec красит любой <span> внутри отмеченного элемента тёмно-бордовым
   фоном (#920000) — правило прилетает из гигантского составного селектора
   темы, и подпись становилась тёмным текстом на тёмном фоне. Гасим фон явно. */
.st-filter .st-f-opt span { background: none !important; }
/* выбранный вариант выделяем цветом, без утолщения шрифта */
.st-f-opt:has(input:checked) { color: #c8102e; }
.st-f-opt:has(input:checked) .st-f-count { color: #c8102e; }

/* Дерево разделов в фильтре. Раньше вложенность передавалась пробелами в
   подписи, а HTML их схлопывает — список Nahrin выглядел «сплошником».
   Верхний уровень — заголовок группы, вложенные с отступом и линией слева. */
.st-f-opt.st-f-l1 { font-weight: 600; color: #222; padding-top: 10px; }
.st-f-opt.st-f-l1:first-child { padding-top: 6px; }
.st-f-opt.st-f-l2 { margin-left: 25px; padding: 4px 0; border-left: 1px solid #e6e6e6; padding-left: 12px; }
.st-f-opt.st-f-l2 + .st-f-opt.st-f-l1 { margin-top: 4px; }

.st-f-apply { display: block; width: 100%; padding: 14px 10px; border: 0; background: #c8102e; color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.st-f-apply:hover { background: #a80d26; }
.st-f-reset { display: block; padding: 13px 10px; text-align: center; font-size: 13px; color: #999; text-decoration: none; }
.st-f-reset:hover { color: #c8102e; }

/* Карточка каталога (только десктоп): ряд «счётчик + В корзину» занимает всю
   ширину карточки — в слепке кнопка сжималась (intec-grid-item-shrink-1) и
   висела узкой полоской у правого края. На планшете и мобиле у темы свой
   макет карточки, трогать его нельзя — там эти правила ломали цену. */
@media (min-width: 1101px) {
  .catalog-section-item-purchase-container,
  .catalog-section-item-purchase-container-wrapper { width: 100% !important; }
  /* у счётчика в теме задана ширина 100%, поэтому одного flex-basis мало —
     без явной ширины он съедал строку целиком и кнопке оставалось 0 px */
  .catalog-section-item[data-st-buy="cart"] .catalog-section-item-counter {
    flex: 0 0 auto !important;
    width: auto !important;
  }
  /* естественная ширина контрола 142 px (38 + 60 + 44) — если зажать её меньше,
     «+» вылезает за край и уезжает под кнопку */
  .catalog-section-item[data-st-buy="cart"] .catalog-section-item-counter [data-role="item.counter"] {
    width: auto !important;
  }
  /* поле количества в теме 60 px — сужаем, чтобы кнопке осталось больше места */
  .catalog-section-item[data-st-buy="cart"] .catalog-section-item-counter .intec-ui-part-input {
    width: 42px !important;
  }
  .catalog-section-item[data-st-buy="cart"] .catalog-section-item-purchase {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .catalog-section-item[data-st-buy="cart"] .catalog-section-item-purchase-desktop,
  .catalog-section-item[data-st-buy="cart"] .catalog-section-item-purchase-buttons,
  .catalog-section-item[data-st-buy="cart"] .catalog-section-item-purchase-button {
    width: 100% !important;
  }
}

/* ── «С этим товаром берут» на карточке товара ────────────────────────────── */
/* Карточки крупные: справа под ценой остаётся много пустого места, а мелкие
   плитки в нём терялись. Картинка 120 px, подпись крупнее, подсказка-стрелка. */
.st-cross { margin: 10px 0 0; }
.st-cross-head { font-size: 17px; font-weight: 600; color: #1a1a1a; margin: 0 0 14px; }
.st-cross-items { display: flex; flex-wrap: wrap; gap: 16px; }
.st-cross-item {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none;
  border: 1px solid #ededed; border-radius: 10px; padding: 20px 16px 18px;
  flex: 1 1 0; min-width: 0; transition: border-color .15s, box-shadow .15s; text-align: center;
}
.st-cross-item:hover { border-color: #c8102e; box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.st-cross-pic { flex: none; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
.st-cross-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.st-cross-title { font-size: 16px; font-weight: 600; color: #333; line-height: 1.35; }
.st-cross-item:hover .st-cross-title { color: #c8102e; }
.st-cross-item:after { content: 'Смотреть подборку →'; font-size: 13px; color: #9a9a9a; }
.st-cross-item:hover:after { color: #c8102e; }
@media (max-width: 560px) { .st-cross-item { min-width: 100%; } }

/* Красная строка: иконки «бургер» и «стрелка» у пункта «Продукция из Швейцарии»
   рисовались пустыми квадратами — шрифт Font Awesome (far) в слепке не
   подгружается, и глиф не находится. Сам пункт кликабелен и без них. */
.menu-item-text-icon-catalog,
.menu-item-text-icon-arrow { display: none !important; }

/* Заголовок раздела и его описание стояли вплотную друг к другу. */
h1#pagetitle, .catalog-title { margin-bottom: 18px !important; }
.catalog-description-top { margin-top: 4px !important; line-height: 1.65; }
.catalog-description-top p { margin: 0 0 14px; }
.catalog-description-top ul, .catalog-description-top ol { margin: 0 0 14px; }
.catalog-description-top li { margin-bottom: 6px; }

/* ── Переключатель-«бегунок» вместо галочки ───────────────────────────────────
   Согласия и подписки в разных формах рисовались по-разному: где-то системная
   галочка, где-то свой тумблер. Один класс на всех — вид одинаковый везде. */
input.st-switch {
  appearance: none; -webkit-appearance: none;
  /* !important — чужие формы задают `input{width:100%}`, и бегунок
     растягивался на всю строку, выдавливая подпись за край окна. */
  flex: none; width: 42px !important; height: 24px !important;
  min-width: 42px; max-width: 42px; margin: 0; padding: 0; border: 0;
  border-radius: 12px; background: #d3d3d3; position: relative; cursor: pointer;
  transition: background .2s; vertical-align: middle;
}
input.st-switch:checked { background: #c8102e; }
input.st-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: left .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
input.st-switch:checked::after { left: 21px; }
input.st-switch:focus-visible { outline: 2px solid #c8102e; outline-offset: 2px; }

/* Ряд «счётчик + В корзину» — во всю ширину карточки, до её краёв: у обёртки
   карточки padding 20px, гасим его отрицательными полями (только десктоп —
   на планшете и мобиле у темы свой макет, см. блок выше). */
@media (min-width: 1101px) {
  .catalog-section-item[data-st-buy] .catalog-section-item-purchase-container {
    margin-left: -20px !important;
    margin-right: -20px !important;
    width: calc(100% + 40px) !important;
  }
}

/* Подвал наезжал на содержимое личного кабинета: в слепке personal.html он
   оказался ВНЕ основного контейнера (.intec-template-layout), а у того из темы
   height:100% — поэтому подвал начинался ровно на высоте экрана, а длинный
   список заказов уходил под него. Высота по содержимому + min-height:100%
   сохраняет «прилипший к низу» подвал на коротких страницах. Проценты тут не
   годятся: при height:auto у родителя min-height в процентах не считается. */
body > .intec-template { height: auto !important; min-height: 100vh; }
body > .intec-template > .intec-template-layout { height: auto !important; min-height: 100vh; }

/* Оформление заказа на телефоне: таблица «Товары в заказе» шире экрана и
   обрезалась по правому краю. Убираем два столбца, без которых всё понятно
   (скидка видна по зачёркнутой цене, вес — в сводке «Общий вес»), а на самый
   узкий экран оставляем горизонтальную прокрутку. */
@media (max-width: 760px) {
  .st-co-table th:nth-child(2), .st-co-table td:nth-child(2),
  .st-co-table th:nth-child(4), .st-co-table td:nth-child(4) { display: none; }
  .st-co-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .st-co-table th, .st-co-table td { white-space: nowrap; }
  .st-co-table td:first-child, .st-co-table th:first-child { white-space: normal; min-width: 92px; }
  /* ужимаем, чтобы четыре оставшихся столбца влезли в 360 px без прокрутки */
  .st-co-table th, .st-co-table td { padding: 8px 4px !important; font-size: 12px !important; }
  /* счётчик количества занимал 120 px из 348 — ужимаем кнопки и поле */
  .st-co-table .st-co-qty { gap: 4px; }
  .st-co-table .st-co-qty-n { min-width: 30px; font-size: 12px; }
  .st-co-table .st-co-qty-btn { width: 22px; height: 22px; }
}

/* Выезжающая панель (корзина, избранное, звонок, вход) на телефоне: тема
   задаёт её размеры только для широкого экрана, поэтому панель открывалась
   нулевого размера — покупатель жал на корзину, и «ничего не происходило». */
@media (max-width: 900px) {
  .sale-basket-small-tab[data-active="true"] {
    position: fixed !important;
    top: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100% !important; max-width: 100% !important; height: 100% !important;
    z-index: 100001 !important;
    background: #fff !important;
    overflow-y: auto !important;
    box-shadow: none !important;
  }
  /* Внутренности панели свёрстаны под 550 px — на телефоне их надо распустить
     по ширине экрана, иначе кнопка «Оформить заказ» уезжает за край. */
  .sale-basket-small-tab[data-active="true"] .sale-basket-small-tab-wrapper,
  .sale-basket-small-tab[data-active="true"] .sale-basket-small-header,
  .sale-basket-small-tab[data-active="true"] .sale-basket-small-body,
  .sale-basket-small-tab[data-active="true"] .sale-basket-small-product,
  .sale-basket-small-tab[data-active="true"] .sale-basket-small-product-content,
  .sale-basket-small-tab[data-active="true"] .sale-basket-small-footer-wrap,
  .sale-basket-small-tab[data-active="true"] .sale-basket-small-footer {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .sale-basket-small-tab[data-active="true"] .intec-grid { max-width: 100% !important; }
  .sale-basket-small-tab[data-active="true"] .sale-basket-small-header .intec-grid,
  .sale-basket-small-tab[data-active="true"] .sale-basket-small-footer .intec-grid { width: 100% !important; }
}

/* Чекаут на телефоне: тема даёт секциям min-height:100% (растянуть колонку
   под сайдбар на десктопе). На узком экране сайдбара нет, секция доставки
   растягивалась на всю высоту формы и выталкивала блок с итогами и кнопкой
   «Оформить заказ» под подвал — кнопки просто не было видно. */
@media (max-width: 1100px) {
  .ns-bitrix.c-sale-order-ajax .bx-soa-section { min-height: 0 !important; }
}

/* Кнопки мессенджеров на телефоне висели по центру правого края и закрывали
   цены в корзине и кнопку «Рассчитать» у СДЭК. Уводим их в нижний угол и
   делаем чуть меньше — содержимое страницы важнее. */
/* Правила ниже нужны только пока кнопки НЕ перенесены в шапку (st-msg-header.js
   переносит их на экранах до 1100 px). Если перенос не удался — кнопки
   остаются в углу, как раньше, и покупатель их видит. */
@media (max-width: 700px) {
  .button_whatsapp:not(.st-msgh *), .button_telegram:not(.st-msgh *), .st-msg-btn:not(.st-msgh *) {
    width: 40px !important;
    height: 40px !important;
    right: 10px !important;
    left: auto !important;
    opacity: .92;
  }
  .st-msgh .button_whatsapp, .st-msgh .button_telegram, .st-msgh .st-msg-btn { right: auto !important; }
  .button_whatsapp:not(.st-msgh *) { bottom: 12px !important; }
  .button_telegram:not(.st-msgh *) { bottom: 60px !important; }
  .st-msg-btn:not(.st-msgh *)      { bottom: 108px !important; }
}

/* Таблица «Товары в заказе» на телефоне: шесть колонок не помещаются, название
   рвалось в столбик по одному слову, а зачёркнутая старая цена налезала на
   новую. На узком экране разворачиваем строку в карточку: название сверху,
   ниже цена и счётчик, справа сумма. Скидка и вес скрыты — скидку видно по
   зачёркнутой цене, вес есть в сводке заказа. */
@media (max-width: 700px) {
  .st-co-table thead { display: none; }
  .st-co-table, .st-co-table tbody, .st-co-table tr, .st-co-table td { display: block; width: auto; }
  .st-co-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 12px;
    padding: 14px 6px;
    border-bottom: 1px solid #f0f0f0;
  }
  .st-co-table td { padding: 0; border: 0; text-align: left; white-space: nowrap; }
  .st-co-table td:nth-child(1) { grid-column: 1 / -1; white-space: normal; }
  .st-co-table td:nth-child(2), .st-co-table td:nth-child(4) { display: none; }
  .st-co-table td:nth-child(3) { grid-column: 1; }
  .st-co-table td:nth-child(5) { grid-column: 2; grid-row: 2; justify-self: end; }
  .st-co-table td:nth-child(6) { grid-column: 2; grid-row: 3; justify-self: end; font-size: 15px; }
  .st-co-table td:nth-child(6)::before { content: 'Сумма: '; color: #888; font-weight: 400; font-size: 13px; }
  .st-co-table .st-co-item-name { gap: 10px; align-items: flex-start; }
  .st-co-table .st-co-item-name img { width: 52px; height: 52px; }
  .st-co-table .st-co-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .st-co-table .st-co-price-old { font-size: 12px; }
}

/* Кнопка после добавления в корзину. Скрипт вешает на неё тему
   `intec-cl-background-light` (красный фон), а у мобильного варианта кнопки
   класс `intec-cl-text` оставляет красный текст — надпись «Добавлено ✓»
   пропадала на своём же фоне. Задаём читаемую пару цветов явно. */
.catalog-section-item-purchase-button.intec-cl-background-light,
.catalog-element-purchase-button.intec-cl-background-light {
  background: #c8102e !important;
  border-color: #c8102e !important;
}
.catalog-section-item-purchase-button.intec-cl-background-light,
.catalog-section-item-purchase-button.intec-cl-background-light .intec-ui-part-content,
.catalog-element-purchase-button.intec-cl-background-light,
.catalog-element-purchase-button.intec-cl-background-light .intec-ui-part-content {
  color: #fff !important;
}

/* ── Настройки мобильной версии из админки (st-mobile.js ставит атрибуты) ── */
@media (max-width: 1100px) {
  /* нижняя панель со ссылками «Главная / Кабинет / Корзина / Избранные» */
  html[data-m-bottombar="off"] .c-panel-template-1 { display: none !important; }
  /* иконка корзины рядом с поиском в шапке */
  html[data-m-headercart="off"] .st-mcart-slot { display: none !important; }
  /* кнопки мессенджеров в правом нижнем углу */
  html[data-m-messengers="off"] .button_telegram,
  html[data-m-messengers="off"] .button_whatsapp,
  html[data-m-messengers="off"] .st-msg-btn { display: none !important; }
}

/* Фильтр в мобильном окне «Фильтр»: тот же блок, что в колонке, но во всю
   ширину окна и без своей рамки — рамку рисует само окно. */
.st-filter-mobile { height: 100%; display: flex; flex-direction: column; }
/* Своя шапка окна: у вырезанного слепка она была своя, крестик окна остался
   на месте (он абсолютный, в правом верхнем углу). */
.st-filter-mobile::before {
  content: 'Фильтр';
  display: block; padding: 18px 56px 16px 20px;
  font-size: 16px; font-weight: 700; color: #212324;
  border-bottom: 1px solid #ececec; flex: none;
}
.st-filter-mobile .st-filter { border: 0; border-radius: 0; margin: 0; flex: 1; display: flex; overflow: hidden; }
.st-filter-mobile .st-filter form { flex: 1; display: flex; flex-direction: column; overflow-y: auto; }
/* Кнопка всегда внизу окна: margin-top:auto — когда групп мало,
   sticky — когда список длинный и прокручивается. */
.st-filter-mobile .st-f-apply { position: sticky; bottom: 0; margin-top: auto; flex: none; }
.st-filter-mobile .st-f-reset { display: block; text-align: center; padding: 12px; }

/* Выезжающая корзина на телефоне: ссылка «Перейти в корзину» под кнопкой
   «Оформить заказ» дублирует и саму панель, и кнопку «Корзина» внизу экрана. */
@media (max-width: 1100px) {
  .st-fly-tocart { display: none !important; }
}

/* Картинки внутри текстовых страниц (рецепты, статьи, страницы «Компании»).
   В разметке Битрикса у них жёстко проставлены width/height оригинала: на
   узком экране ширина ужимается по max-width, а высота остаётся прежней — и
   фотография растягивается по вертикали. Высота должна считаться сама. */
.intec-template-layout-column-wrapper img[width][height],
.intec-template-layout-content .intec-content-wrapper img[width][height] {
  height: auto !important;
  max-width: 100%;
}

/* Текст статьи, публикации и новости: абзацы, подзаголовки, списки и фото,
   вставленные в редакторе админки. Тема Intec своих отступов таким блокам не
   даёт, и всё слипалось в сплошное полотно. */
.st-publication-body p,
.st-article-body p,
.st-news-body p { margin: 0 0 16px; }
.st-publication-body h2, .st-article-body h2, .st-news-body h2,
.st-publication-body h3, .st-article-body h3, .st-news-body h3 {
  margin: 28px 0 12px; font-size: 20px; line-height: 1.3; color: #212324; font-weight: 600;
}
.st-publication-body ul, .st-article-body ul, .st-news-body ul,
.st-publication-body ol, .st-article-body ol, .st-news-body ol { margin: 0 0 16px; padding-left: 22px; }
.st-publication-body li, .st-article-body li, .st-news-body li { margin: 0 0 8px; }
.st-publication-body img, .st-article-body img, .st-news-body img {
  max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0 18px;
}
.st-publication-body a, .st-article-body a, .st-news-body a { color: #c8102e; }

/* Метка «Акция» на карточке: у темы есть стили только для «Хит» и «Новинка»,
   поэтому своей метке задаём вид сами — красная, как акционный ценник. */
.widget-markers.widget-markers-sale {
  background: #c8102e !important;
  color: #fff !important;
}

/* Текст раздела («О бренде»). Свёрнут по умолчанию: товары должны начинаться
   сразу, а не после трёх абзацев истории марки. Текст при этом остаётся в
   разметке — он написан для поисковиков, и удалять его нельзя. */
.st-secdesc { margin: 0 0 24px; }
.st-secdesc-btn {
  border: 1px solid #c8102e; background: #fff; color: #c8102e;
  border-radius: 4px; padding: 10px 22px; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.st-secdesc-btn:hover { background: #c8102e; color: #fff; }
.st-secdesc-btn::after { content: ' ▾'; }
.st-secdesc[data-open="true"] .st-secdesc-btn::after { content: ' ▴'; }
.st-secdesc-body {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .35s ease, opacity .25s ease, margin .25s ease;
  margin: 0 !important;
}
.st-secdesc[data-open="true"] .st-secdesc-body {
  max-height: 2000px; opacity: 1; margin: 16px 0 0 !important;
}

/* Иконки соцсетей в подвале: включаются в админке (раздел «Мессенджеры»).
   Скрываем те, что выключены, — разметку не трогаем, чтобы вернуть можно было
   одной галочкой. */
html[data-soc-vk="off"] .widget-social-item:has([data-social-icon="VK"]),
html[data-soc-facebook="off"] .widget-social-item:has([data-social-icon="FACEBOOK"]),
html[data-soc-instagram="off"] .widget-social-item:has([data-social-icon="INSTAGRAM"]),
html[data-soc-whatsapp="off"] .widget-social-item:has([data-social-icon="WHATSAPP"]),
html[data-soc-telegram="off"] .widget-social-item:has([data-social-icon="TELEGRAM"]) {
  display: none !important;
}
