/* Новый вид каталога (эксперимент 04.12.2026). Только стили: разметка,
   фильтры, корзина, сравнение и страницы работают как раньше. Чтобы
   вернуть прежний вид — убрать подключение этого файла в page_inner.html. */

body.d .tovslist { font-family: var(--d-text); color: var(--d-ink); }

/* ---------- Описание раздела ---------- */
body.d .tovslist .rub_descr { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--d-muted); }

/* ---------- Фильтры: панель, строки «название | плашки» ---------- */
body.d .tovslist .producers,
body.d .tovslist .attribmenu { margin: 0; padding: 0; border: 0; background: var(--d-banner-bg, var(--d-soft)); }
body.d .tovslist .producers { padding: 14px 18px 6px; border-radius: 12px 12px 0 0; }
body.d .tovslist .attribmenu { padding: 0 18px 4px; }
body.d .tovslist .attribmenu .section_a,
body.d .tovslist .producers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
body.d .tovslist .attribmenu .section_a { padding: 8px 0; border-top: 1px solid rgba(11, 29, 107, .08); border-bottom: 0; }
body.d .tovslist .producers .title,
body.d .tovslist .attribmenu .section_a .title { flex: 0 0 190px; padding: 0; font-family: var(--d-head); font-weight: 700; font-size: 14px; color: var(--d-navy); }
body.d .tovslist .producers .section_p,
body.d .tovslist .attribmenu .section_a .section_av { padding: 0; white-space: nowrap; }
/* плашка-значение */
body.d .tovslist .producers .section_p a,
body.d .tovslist .attribmenu .section_a .section_av a,
body.d .tovslist .producers .section_p .nolink,
body.d .tovslist .attribmenu .section_a .section_av .nolink { display: inline-block; padding: 5px 12px; border: 1px solid var(--d-line); border-radius: 999px; background: #fff; font-size: var(--f-font, 13.5px); line-height: 1.2; color: var(--d-ink); text-decoration: none; transition: border-color .15s, color .15s; }
body.d .tovslist .producers .section_p a:hover,
body.d .tovslist .attribmenu .section_a .section_av a:hover { border-color: var(--d-accent); color: var(--d-accent); }
/* нет товаров с таким значением — бледная, без рамки */
body.d .tovslist .producers .section_p .nolink,
body.d .tovslist .attribmenu .section_a .section_av .nolink { border-color: transparent; background: transparent; color: #98a2b8; }
/* выбранное значение — залитая плашка с крестиком */
body.d .tovslist .producers .section_p .b_active,
body.d .tovslist .attribmenu .section_a .section_av .b_active { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--d-accent); font-size: var(--f-font, 13.5px); font-weight: 500; line-height: 1.2; color: #fff; }
body.d .tovslist .producers .section_p a.active_unsel,
body.d .tovslist .attribmenu .section_a .section_av a.active_unsel { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .25); font-size: 0; color: #fff; }
body.d .tovslist .producers .section_p a.active_unsel::before,
body.d .tovslist .attribmenu .section_a .section_av a.active_unsel::before { content: "×"; font-size: 15px; line-height: 1; }

/* цена и «в наличии» — последняя строка панели */
body.d .tovslist .pricerange { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; padding: 12px 18px 16px; border-top: 1px solid rgba(11, 29, 107, .08); border-radius: 0 0 12px 12px; background: var(--d-banner-bg, var(--d-soft)); font-size: 14px; }
body.d .tovslist .pricerange form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
body.d .tovslist .pricerange .title { flex: 0 0 190px; font-family: var(--d-head); font-weight: 700; font-size: 14px; color: var(--d-navy); }
body.d .tovslist .pricerange .inp_price { width: 92px; height: 34px; padding: 0 10px; border: 1px solid var(--d-line); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; text-align: left; }
body.d .tovslist .pricerange .inp_price:focus { border-color: var(--d-accent); outline: none; }
body.d .tovslist .pricerange .inp_submit { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: var(--d-accent); cursor: pointer; }
body.d .tovslist .pricerange .inp_submit img { width: 18px; height: 18px; }
body.d .tovslist .filter_ostatki { margin-left: auto; }
/* «В наличии» — тумблер: выключен — белая плашка, серый ползунок слева;
   включён — плашка цвета акцента, белый ползунок с галочкой справа. */
body.d .tovslist .filter_ostatki a.f-stock { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 8px; border: 1px solid var(--d-line); border-radius: 999px; background: #fff; color: var(--d-ink); font-size: 14px; font-weight: 500; line-height: 1.2; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
body.d .tovslist .filter_ostatki a.f-stock:hover { border-color: var(--d-accent); }
body.d .tovslist .filter_ostatki .f-stock__sw { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: #c9cfdb; transition: background .15s; }
body.d .tovslist .filter_ostatki .f-stock__sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: left .15s; }
body.d .tovslist .filter_ostatki .f-stock__txt { padding: 0; border: 0; font-size: inherit; vertical-align: baseline; }
body.d .tovslist .filter_ostatki a.f-stock.is-on { border-color: var(--d-accent); background: var(--d-accent); color: #fff; }
body.d .tovslist .filter_ostatki a.f-stock.is-on .f-stock__sw { background: rgba(255, 255, 255, .35); }
body.d .tovslist .filter_ostatki a.f-stock.is-on .f-stock__sw::after { left: 16px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231414ec' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
body.d .tovslist .filter_sbros { margin: -4px 0 14px; }
body.d .tovslist .filter_sbros a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--d-muted); text-decoration: none; }
body.d .tovslist .filter_sbros a:hover { color: var(--d-accent); }
body.d .tovslist .filter_sbros img { width: 12px; height: 12px; opacity: .7; }

/* ---------- Сортировка и вид ---------- */
body.d .tovslist .topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 18px; padding: 0; border: 0; }
body.d .tovslist .topline .topline_left,
body.d .tovslist .topline .topline_right { display: flex; align-items: center; gap: 14px; width: auto; }
body.d .tovslist .topline .sortirovka,
body.d .tovslist .topline .perpage,
body.d .tovslist .topline .catalog_view { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--d-muted); }
body.d .tovslist .topline .sortirovka span { margin: 0; }
body.d .tovslist .topline .sortirovka span a,
body.d .tovslist .topline .sortirovka span b { display: inline-block; padding: 6px 12px; border-radius: 8px; font-size: 14px; text-decoration: none; }
body.d .tovslist .topline .sortirovka span a { color: var(--d-ink); }
body.d .tovslist .topline .sortirovka span a:hover { background: var(--d-soft); color: var(--d-accent); }
body.d .tovslist .topline .sortirovka span b { background: var(--d-navy); font-weight: 500; color: #fff; }
body.d .tovslist .topline select { height: 34px; padding: 0 28px 0 10px; border: 1px solid var(--d-line); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; color: var(--d-ink); }

/* ---------- Карточки товаров ---------- */
body.d .tovslist { --card-gap: 14px; }
body.d .tovslist:has(> .section) { display: flex; flex-wrap: wrap; gap: 0 var(--card-gap); }
body.d .tovslist > :not(.section) { flex: 0 0 100%; }
body.d .tovslist .section { position: relative; display: flex; flex-direction: column; width: calc((100% - 2 * var(--card-gap)) / 3); height: auto; margin: 0 0 var(--card-gap); padding: 14px 16px 14px; border: 1px solid var(--d-line); border-radius: 12px; background: #fff; box-sizing: border-box; transition: box-shadow .15s, border-color .15s, transform .15s; }
body.d .tovslist .section:hover { border-color: #b9c8ea; box-shadow: 0 8px 24px rgba(11, 29, 107, .10); transform: translateY(-2px); }
body.d .tovslist .section .img,
body.d .tovslist .section .img > div { display: flex; align-items: center; justify-content: center; height: 190px; }
body.d .tovslist .section .img img { max-width: 100%; max-height: 190px; width: auto; height: auto; }
body.d .tovslist .section .name { order: 1; min-height: 0; margin: 12px 0 0; padding: 0; text-align: left; }
body.d .tovslist .section .name a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--d-head); font-weight: 500; font-size: 15px; line-height: 1.35; color: var(--d-ink); }
body.d .tovslist .section .name a:hover { color: var(--d-accent); }
/* мета: наличие, производитель, артикул, мощность, сравнение */
body.d .tovslist .section .sklad,
body.d .tovslist .section .nosklad { order: 2; display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 0; font-size: 13px; text-align: left; }
body.d .tovslist .section .sklad { color: #138a3e; }
body.d .tovslist .section .nosklad { color: var(--d-muted); }
body.d .tovslist .section .sklad::before,
body.d .tovslist .section .nosklad::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
body.d .tovslist .section .producer_artikul,
body.d .tovslist .section .moshnost,
body.d .tovslist .section .razmer { order: 3; padding: 2px 0 0; font-size: 13px; color: var(--d-muted); text-align: left; }
body.d .tovslist .section .producer { font-size: 13px; font-weight: 500; color: var(--d-muted); }
body.d .tovslist .section .artikul { font-size: 13px; color: #8a93a8; }
/* цена и кнопка — внизу карточки */
body.d .tovslist .section .price_basket { order: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: auto 0 0; padding: 14px 0 0; border: 0; background: none; }
body.d .tovslist .section .price_basket .price_wr,
body.d .tovslist .section .price_basket .basket_wr { display: block; width: auto; text-align: left; }
body.d .tovslist .section .price { font-family: var(--d-head); font-weight: 700; font-size: 21px; color: var(--d-ink); white-space: nowrap; }
/* товар без цены: только кнопка «Запросить цену», по центру */
body.d .tovslist .section .price_basket.price_request { justify-content: center; }
body.d .tovslist .section .price_basket.price_request .basket_wr { text-align: center; }   /* телефон: там колонка */
body.d .tovslist .section .price_old { margin: 0; font-size: 13px; color: #98a2b8; }
body.d .tovslist .section .basket { display: block; width: auto; }
body.d .tovslist .section .basket .basket_add { padding: 0; border: 0; background: none; }
body.d .tovslist .section .basket .basket_add_tov,
body.d .tovslist .section .basket .basket_add a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 8px; background: var(--d-blue); color: #fff; font-family: var(--d-head); font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
body.d .tovslist .section .basket .basket_add_tov:hover { filter: brightness(1.08); }
body.d .tovslist .section .basket_text { color: #fff; }
/* нет на складе — «Заказать» контурной кнопкой */
body.d .tovslist .section:has(.nosklad) .basket .basket_add_tov { border: 2px solid var(--d-accent); background: #fff; color: var(--d-accent); }
body.d .tovslist .section:has(.nosklad) .basket_text { color: var(--d-accent); }
body.d .tovslist .section .sravnenie { order: 4; margin: 6px 0 0; padding: 0; text-align: left; }
body.d .tovslist .section .sravnenie .sravnenie_add,
body.d .tovslist .section .sravnenie_text { padding: 0; border: 0; background: none; font-size: 13px; color: var(--d-accent); text-decoration: none; border-bottom: 1px dashed currentColor; cursor: pointer; }
/* скидка и стикеры */
body.d .tovslist .section .skidka { order: 4; margin: 6px 0 0; font-size: 12.5px; font-weight: 700; color: #d92d20; text-align: left; }
body.d .tovslist .section .stickers { top: 10px; right: 10px; z-index: 1; }
body.d .tovslist .section .stickers > div > div { padding: 4px 9px; border: 0 !important; border-radius: 999px; font-size: 12px; font-weight: 700; }

/* ---------- Страницы ---------- */
body.d .tovslist .catalog_pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 24px; padding: 0; font-size: 15px; }
body.d .tovslist .catalog_pages a,
body.d .tovslist .catalog_pages b { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; margin: 0; padding: 0 8px; border: 1px solid var(--d-line); border-radius: 8px; background: #fff; color: var(--d-ink); text-decoration: none; box-sizing: border-box; }
body.d .tovslist .catalog_pages a:hover { border-color: var(--d-accent); color: var(--d-accent); }
body.d .tovslist .catalog_pages b { border-color: var(--d-navy); background: var(--d-navy); color: #fff; }

/* ---------- Планшет и телефон ---------- */
@media (max-width: 1000px) {
    body.d .tovslist .section { width: calc((100% - var(--card-gap)) / 2); }
}
@media (max-width: 760px) {
    body.d .tovslist .producers .title,
    body.d .tovslist .attribmenu .section_a .title,
    body.d .tovslist .pricerange .title { flex-basis: 100%; }
    body.d .tovslist { --card-gap: 10px; }
    body.d .tovslist .section { padding: 10px; }
    body.d .tovslist .section .img, body.d .tovslist .section .img > div { height: 140px; }
    body.d .tovslist .section .img img { max-height: 140px; }
    body.d .tovslist .section .price_basket { flex-direction: column; align-items: stretch; gap: 8px; }
    body.d .tovslist .section .basket .basket_add_tov,
    body.d .tovslist .section .basket .basket_add a { width: 100%; justify-content: center; box-sizing: border-box; }
    body.d .tovslist .section .price { font-size: 18px; }    body.d .tovslist .filter_ostatki { margin-left: 0; }
}

/* ---------- Поправки ---------- */
/* значения фильтра переносятся под значения, а не под название */
body.d .tovslist .producers,
body.d .tovslist .attribmenu .section_a { position: relative; }
body.d .tovslist .producers { padding-left: 218px; }
body.d .tovslist .attribmenu .section_a { padding-left: 200px; }
body.d .tovslist .producers .title { position: absolute; left: 18px; top: 19px; }
body.d .tovslist .attribmenu .section_a .title { position: absolute; left: 0; top: 13px; width: 190px; }
/* «К сравнению» — пунктир только под словами */
body.d .tovslist .section .sravnenie .sravnenie_add { display: inline; border: 0; }
body.d .tovslist .section .sravnenie_add_tov { display: inline; }
/* «Сбросить фильтры» без старой рамки */
body.d .tovslist .filter_sbros, body.d .tovslist .filter_sbros a { border: 0 !important; background: none !important; padding: 0 !important; }
@media (max-width: 760px) {
    body.d .tovslist .producers { padding-left: 14px; }
    body.d .tovslist .attribmenu .section_a { padding-left: 0; }
    body.d .tovslist .producers .title,
    body.d .tovslist .attribmenu .section_a .title { position: static; width: auto; }
}
/* длинные названия фильтров («По способу сжигания топлива:») переносятся,
   а не наезжают на значения */
body.d .tovslist .producers .title,
body.d .tovslist .attribmenu .section_a .title { width: 180px; white-space: normal; line-height: 1.25; }
body.d .tovslist .attribmenu .section_a .title { top: 50%; transform: translateY(-50%); }
body.d .tovslist .attribmenu .section_a { min-height: 34px; }
@media (max-width: 760px) {
    body.d .tovslist .attribmenu .section_a .title { transform: none; }
}

/* =====================================================================
   Карточка товара (div.tov) — в том же стиле. Только стили.
   Раскладка: фото слева, справа — блок цены и таблица свойств; ниже на
   всю ширину описание, характеристики, отзывы, «Смотрите также».
   ===================================================================== */
body.d .tov { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); column-gap: 26px; align-items: start; color: var(--d-ink); }
body.d .tov > * { grid-column: 1 / -1; }
body.d .tov > .imgs { grid-column: 1; }
body.d .tov > .main { grid-column: 2; }
body.d .tov h2 { margin: 34px 0 14px !important; padding: 0; border: 0 !important; }
body.d .tov > .descr { margin: -6px 0 18px; padding: 0; font-size: 16px; line-height: 1.5; color: var(--d-muted); }

/* --- фото --- */
body.d .tov .imgs { display: block; width: auto; margin: 0; padding: 18px; border: 1px solid var(--d-line); border-radius: 14px; background: #fff; box-sizing: border-box; }
body.d .tov .imgs .img_main { display: flex; align-items: center; justify-content: center; min-height: 340px; padding: 0; }
body.d .tov .imgs .img_main img { max-width: 100%; max-height: 380px; width: auto; height: auto; }
body.d .tov .imgs .img_add { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 0; padding: 0; border: 0; }
body.d .tov .imgs .img_add > div { margin: 0; }
body.d .tov .imgs .img_add > div > div { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 4px; border: 1px solid var(--d-line); border-radius: 8px; background: #fff; box-sizing: border-box; }
body.d .tov .imgs .img_add > div > div:hover { border-color: var(--d-accent); }
body.d .tov .imgs .img_add > div > div img { max-width: 100%; max-height: 54px; }
body.d .tov .imgs .certificate { margin: 14px 0 0; padding: 0; text-align: center; }
body.d .tov .imgs .certificate > div { display: inline-block; padding: 0; border: 0; background: none; }
body.d .tov .imgs .certificate > div a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--d-line); border-radius: 999px; font-size: 14px; color: var(--d-ink); text-decoration: none; }
body.d .tov .imgs .certificate > div a:hover { border-color: var(--d-accent); color: var(--d-accent); }
body.d .tov .imgs .certificate > div img { width: 18px; height: auto; margin: 0; }
body.d .tov .imgs .certificate > div span { font-size: 14px; }

/* --- правая часть: сначала цена, потом свойства --- */
body.d .tov .main { display: flex; flex-direction: column; gap: 14px; width: auto; margin: 0; padding: 0; }
body.d .tov .main .summary { order: -1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 16px; margin: 0; padding: 20px 22px; border: 0; border-radius: 14px; background: var(--d-banner-bg, var(--d-soft)); text-align: left; box-sizing: border-box; }
body.d .tov .summary .price { grid-column: 1; margin: 0; padding: 0; font-family: var(--d-head); font-weight: 700; color: var(--d-ink); }
body.d .tov .summary .price .number { font-size: 36px; line-height: 1; }
body.d .tov .summary .price .rub { font-size: 20px; color: var(--d-muted); }
body.d .tov .summary .basket_click1 { grid-column: 2; margin: 0; padding: 0; }
body.d .tov .summary .basket { margin: 0; padding: 0; }
body.d .tov .summary .basket_add { padding: 0; border: 0; background: none; }
body.d .tov .summary .basket_add_tov,
body.d .tov .summary .basket_add a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px; border: 0; border-radius: 10px; background: var(--d-blue); color: #fff; font-family: var(--d-head); font-weight: 700; font-size: 18px; text-decoration: none; cursor: pointer; white-space: nowrap; }
body.d .tov .summary .basket_add_tov:hover { filter: brightness(1.08); }
body.d .tov .summary .basket_add_tov img { filter: brightness(0) invert(1); width: 20px; height: auto; }
body.d .tov .summary .basket_text { color: #fff; font-size: 18px; }
/* телефон, звонок, доставка, сравнение — под ценой */
body.d .tov .summary .phone,
body.d .tov .summary .callback,
body.d .tov .summary .slinks,
body.d .tov .summary .sr_otl { grid-column: 1 / -1; margin: 0; padding: 0; text-align: left; font-size: 14px; }
body.d .tov .summary .phone { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(11, 29, 107, .10); font-family: var(--d-head); font-weight: 700; font-size: 18px; }
body.d .tov .summary .phone img { width: 18px; height: auto; }
body.d .tov .summary .callback,
body.d .tov .summary .slinks,
body.d .tov .summary .sr_otl { display: inline-flex; }
body.d .tov .summary .slinks { gap: 16px; }
body.d .tov .summary .slinks > div { margin: 0; padding: 0; }
body.d .tov .summary a { color: var(--d-accent); }
body.d .tov .summary .sravnenie_add,
body.d .tov .summary .sravnenie_add_tov { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--d-accent); cursor: pointer; }
body.d .tov .summary .sravnenie_add_tov img { width: 16px; height: auto; }
body.d .tov .summary .sravnenie_add_tov span { border-bottom: 1px dashed currentColor; }
/* свойства: производитель, серия, артикул */
body.d .tov .info_main { margin: 0; padding: 18px 22px; border: 1px solid var(--d-line); border-radius: 14px; background: #fff; text-align: left; }
body.d .tov .info_main .title { margin: 0 0 10px; padding: 0; font-family: var(--d-head); font-weight: 700; font-size: 17px; text-align: left; color: var(--d-navy); }
body.d .tov .info_main .table { display: table; width: 100%; margin: 0; border-collapse: collapse; }
body.d .tov .info_main .tr { display: table-row; background: none !important; }
body.d .tov .info_main .td { display: table-cell; padding: 7px 0; border-bottom: 1px solid #e8edf6; font-size: 15px; color: var(--d-ink); background: none !important; }
body.d .tov .info_main .tr:last-child .td { border-bottom: 0; }
body.d .tov .info_main .td:first-child { width: 40%; color: var(--d-muted); }
body.d .tov .info_main .nal_utochn { margin: 12px 0 0; padding: 8px 12px; border-radius: 8px; background: #fff4e5; font-size: 14px; font-weight: 500; text-align: left; color: #8a4b00; }
body.d .tov .info_main .reviews_lnk { margin: 10px 0 0; padding: 0; text-align: left; }
body.d .tov .info_main .reviews_lnk a { font-size: 14px; color: var(--d-accent); }

/* --- описание --- */
body.d .tov > .content { font-size: 15px; line-height: 1.6; }
body.d .tov > .content p, body.d .tov > .content li { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
body.d .tov > .content ul { padding-left: 22px; }
body.d .tov > .content li { margin: 0 0 4px; }

/* --- характеристики: таблица с полосками --- */
body.d .tov .svva .m_section { max-width: 760px; border: 1px solid var(--d-line); border-radius: 12px; overflow: hidden; background: #fff; }
body.d .tov .svva .section { display: flex; margin: 0; padding: 0; border: 0; }
body.d .tov .svva .section:nth-child(even) { background: #f4f7fc; }
body.d .tov .svva .h_name,
body.d .tov .svva .h_value { width: auto; padding: 10px 18px; border: 0 !important; font-size: 15px; }
body.d .tov .svva .h_name { flex: 0 0 48%; color: var(--d-muted); }
body.d .tov .svva .h_value { flex: 1; font-weight: 500; color: var(--d-ink); }

/* --- отзывы --- */
body.d .tov .comments { font-size: 15px; }
body.d .tov .comments_form_link span { display: inline-flex; align-items: center; height: 40px; margin-top: 8px; padding: 0 18px; border: 2px solid var(--d-accent); border-radius: 8px; color: var(--d-accent); font-family: var(--d-head); font-weight: 700; cursor: pointer; text-decoration: none; }
body.d .tov .comments_form_link span:hover { background: var(--d-accent); color: #fff; }
body.d .tov .comment_form input[type="text"], body.d .tov .comment_form textarea { box-sizing: border-box; max-width: 100%; padding: 8px 10px; border: 1px solid var(--d-line); border-radius: 8px; font: inherit; }
body.d .tov .comment_form input.button, body.d .tov .comment_form input[type="submit"] { height: 42px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--d-blue); color: #fff; font-family: var(--d-head); font-weight: 700; font-size: 15px; cursor: pointer; }

/* --- «Смотрите также»: карточки в ряд --- */
body.d .tov .linked { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
body.d .tov .linked > h2 { grid-column: 1 / -1; margin-bottom: 0 !important; }
body.d .tov .lnkd_section { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 14px; border: 1px solid var(--d-line); border-radius: 12px; background: #fff; }
body.d .tov .lnkd_section:hover { border-color: #b9c8ea; box-shadow: 0 8px 24px rgba(11, 29, 107, .10); }
body.d .tov .lnkd_section > div { display: block; width: auto; margin: 0; padding: 0; border: 0; text-align: left; }
body.d .tov .lnkd_section > .lnkd_img { display: flex; align-items: center; justify-content: center; height: 120px; }
body.d .tov .lnkd_img img { max-width: 100%; max-height: 120px; }
body.d .tov .lnkd_name a { font-family: var(--d-head); font-weight: 500; font-size: 15px; line-height: 1.35; color: var(--d-ink); text-decoration: none; }
body.d .tov .lnkd_name a:hover { color: var(--d-accent); }
body.d .tov .lnkd_name .artikul { font-size: 12.5px; color: #8a93a8; font-weight: 400; }
body.d .tov .lnkd_section > .lnkd_price { margin-top: auto; font-family: var(--d-head); font-weight: 700; font-size: 19px; color: var(--d-ink); }
body.d .tov .lnkd_basket .basket_add_tov { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 38px; border: 0; border-radius: 8px; background: var(--d-blue); color: #fff; font-family: var(--d-head); font-weight: 700; font-size: 14px; cursor: pointer; box-sizing: border-box; }
body.d .tov .lnkd_basket .basket_text { color: #fff; font-size: 14px; }

/* --- «Котлы с такой же мощностью» и ссылки внизу --- */
body.d .tov .takie { margin: 22px 0 0; }
body.d .tov .takie_link span { display: inline-flex; align-items: center; height: 40px; padding: 0 36px 0 18px; border: 1px solid var(--d-line); border-radius: 999px; background: #fff url("/img/design/chevron.svg") no-repeat right 14px center / 12px; color: var(--d-ink); font-size: 15px; text-decoration: none; cursor: pointer; }
body.d .tov .takie_link span:hover { border-color: var(--d-accent); color: var(--d-accent); }
body.d .tov .table_takie .td { padding: 8px 0; border-bottom: 1px solid #e8edf6; font-size: 15px; }
body.d .tov .addlinks { margin: 20px 0 0; font-size: 14px; color: var(--d-muted); }

@media (max-width: 1000px) {
    body.d .tov { grid-template-columns: 1fr; }
    body.d .tov > .imgs, body.d .tov > .main { grid-column: 1; }
    body.d .tov > .main { margin-top: 16px; }
}
@media (max-width: 760px) {
    body.d .tov .imgs .img_main { min-height: 220px; }
    body.d .tov .imgs .img_main img { max-height: 260px; }
    body.d .tov .main .summary { grid-template-columns: 1fr; padding: 16px; }
    body.d .tov .summary .basket_click1 { grid-column: 1; }
    body.d .tov .summary .basket_add_tov { width: 100%; box-sizing: border-box; }
    body.d .tov .summary .price .number { font-size: 30px; }
    body.d .tov .svva .h_name { flex-basis: 50%; }
    body.d .tov .svva .h_name, body.d .tov .svva .h_value { padding: 9px 12px; font-size: 14px; }
    body.d .tov .linked { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* --- снять старые фиксированные ширины и подложки (_catalog.css) --- */
body.d .tov .main .summary,
body.d .tov .main .info_main { width: auto; }
body.d .tov .summary .price { white-space: nowrap; }
body.d .tov .summary .basket_click1 .basket { width: auto; margin: 0; }
body.d .tov .summary .basket_click1 .basket .basket_add { padding: 0; border: 0; border-radius: 0; background: none; }
body.d .tov .info_main .table .tr:nth-child(odd) { background: none; }
body.d .tov .svva .m_section { display: block; width: auto; padding: 0; }
body.d .tov .svva .section .h_name,
body.d .tov .svva .section .h_value { display: block; width: auto; text-align: left; }
body.d .tov .linked .lnkd_section .lnkd_img,
body.d .tov .linked .lnkd_section .lnkd_name { width: auto; padding: 0; }
body.d .tov .linked .lnkd_section .lnkd_img { display: flex; }
body.d .tov .linked .linked_basket .linked_basket_add { padding: 0; border: 0; border-radius: 0; background: none; }
body.d .tov .lnkd_price,
body.d .tov .lnkd_basket { width: auto !important; }
body.d .tov .summary .price { text-align: left !important; }
body.d .tov .summary .basket_text { font-size: 17px !important; font-weight: 700; }
body.d .tov .summary .callback a,
body.d .tov .summary .slinks a,
body.d .tov .summary .sravnenie_add_tov span { font-size: 14px !important; }
body.d .tov .summary .phone span { font-size: 18px !important; }
body.d .tov .lnkd_basket .basket_text { font-size: 14px !important; }
body.d .tov .lnkd_name a { white-space: normal; }

/* =====================================================================
   Корень каталога (/catalog/, div.mainrubs): карточки разделов.
   ===================================================================== */
body.d .d-main .mainrubs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 6px 0 24px; }
body.d .d-main .mainrubs .section { position: relative; display: flex; flex-direction: column; width: auto; height: auto; min-height: 210px; margin: 0; padding: 18px 18px 16px; border: 1px solid var(--d-line); border-radius: 14px; background: #fff; box-sizing: border-box; transition: box-shadow .15s, border-color .15s, transform .15s; }
body.d .d-main .mainrubs .section:hover { border-color: #b9c8ea; box-shadow: 0 8px 24px rgba(11, 29, 107, .10); transform: translateY(-2px); }
/* картинка раздела — крупно сверху по центру, на мягком фоне */
body.d .d-main .mainrubs .section > a:first-child { order: -1; display: flex; align-items: center; justify-content: center; height: 120px; margin: -4px -4px 12px; border-radius: 10px; background: var(--d-banner-bg, var(--d-soft)); }
body.d .d-main .mainrubs .section .rub_img { float: none; max-width: 70%; max-height: 96px; margin: 0; padding: 0; mix-blend-mode: multiply; }
body.d .d-main .mainrubs .section .rub_name { margin: 0 0 10px; }
body.d .d-main .mainrubs .section .rub_name a { font-family: var(--d-head); font-weight: 700; font-size: 19px; line-height: 1.25; color: var(--d-navy); text-decoration: none; }
body.d .d-main .mainrubs .section .rub_name a:hover { color: var(--d-accent); }
/* производители — маленькие плашки */
body.d .d-main .mainrubs .section .prod { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
body.d .d-main .mainrubs .section .prod span { padding: 0; }
body.d .d-main .mainrubs .section .prod span a { display: inline-block; padding: 3px 9px; border: 1px solid var(--d-line); border-radius: 999px; background: #fff; font-size: 12.5px; line-height: 1.3; color: var(--d-ink); text-decoration: none; }
body.d .d-main .mainrubs .section .prod span a:hover { border-color: var(--d-accent); color: var(--d-accent); }
/* «Распродажа» — с оранжевым акцентом */
body.d .d-main .mainrubs .section:has(a[href="/catalog/sale/"]) > a:first-child { background: #fbf0e6; }
body.d .d-main .mainrubs .section:has(a[href="/catalog/sale/"]) .rub_name a { color: #b8622c; }
@media (max-width: 1000px) {
    body.d .d-main .mainrubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    body.d .d-main .mainrubs { gap: 10px; }
    body.d .d-main .mainrubs .section { min-height: 0; padding: 12px; }
    body.d .d-main .mainrubs .section > a:first-child { height: 90px; }
    body.d .d-main .mainrubs .section .rub_img { max-height: 70px; }
    body.d .d-main .mainrubs .section .rub_name a { font-size: 16px; }
    body.d .d-main .mainrubs .section .prod span a { font-size: 12px; padding: 2px 7px; }
}

/* --- отзывы: плашка «Отзывов пока нет» + кнопка (перебиваем _catalog.css) --- */
body.d .tov h2 { margin: 30px 0 12px !important; }
body.d .tov .comments { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 20px; border-radius: 12px; background: var(--d-banner-bg, var(--d-soft)); font-size: 15px; color: var(--d-ink); }
body.d .tov .comments > div:first-child:not(.comment_section):not(.comment_form) { font-size: 16px; color: var(--d-muted); }
body.d .tov .comments .comment_form { padding: 0; }
body.d .tov .comments .comment_form .comments_form_link { padding: 0; font-size: 15px; }
body.d .tov .comments .comment_form .comments_form_link span { display: inline-flex; align-items: center; height: 42px; margin: 0; padding: 0 20px; border: 0; border-radius: 8px; background: var(--d-blue); color: #fff; font-family: var(--d-head); font-weight: 700; font-size: 15px; cursor: pointer; }
body.d .tov .comments .comment_form .comments_form_link span:hover { filter: brightness(1.08); }
/* открытая форма отзыва и уже опубликованные отзывы — на всю ширину */
body.d .tov .comments .comment_form:has(.comments_form_content[style*="block"]) { flex-basis: 100%; }
body.d .tov .comments .comment_section { flex-basis: 100%; padding: 12px 0; border-bottom: 1px solid rgba(11, 29, 107, .10); }
body.d .tov .comments .comment_form .comments_form_content #comment_form_name,
body.d .tov .comments .comment_form .comments_form_content #comment_form_content { display: block; width: 100%; max-width: none; padding: 9px 12px; font-size: 15px; }
body.d .tov .comments .comment_form .comments_form_content #comment_form_content { height: 130px; resize: vertical; }

/* --- «Ещё в разделе:» — плашки --- */
body.d .tov .addlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 0; font-size: 14px; color: var(--d-muted); }
body.d .tov .addlinks a { display: inline-block; padding: 5px 12px; border: 1px solid var(--d-line); border-radius: 999px; background: #fff; color: var(--d-ink); text-decoration: none; }
body.d .tov .addlinks a:hover { border-color: var(--d-accent); color: var(--d-accent); }

/* --- «Вы недавно смотрели» — карточки --- */
body.d .watched_list { margin: 36px 0 10px; }
body.d .watched_list__title { margin: 0 0 12px; font-family: var(--d-head); font-weight: 700; font-size: 22px; color: var(--d-navy); }
body.d .watched_list__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
body.d a.watched_list__item { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--d-line); border-radius: 12px; background: #fff; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
body.d a.watched_list__item:hover { border-color: #b9c8ea; box-shadow: 0 8px 24px rgba(11, 29, 107, .10); }
body.d .watched_list__img { display: flex; align-items: center; justify-content: center; height: 90px; }
body.d .watched_list__img img { max-width: 100%; max-height: 90px; }
body.d .watched_list__name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.35; color: var(--d-ink); }
body.d a.watched_list__item:hover .watched_list__name { color: var(--d-accent); }
@media (max-width: 760px) {
    body.d .watched_list__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* старые отступы вокруг отзывов и «Ещё в разделе» */
body.d .tov .comments { margin: 0 !important; }
body.d .tov .addlinks { margin: 20px 0 0 !important; padding: 0 !important; min-height: 0; height: auto; }

/* спасибо за отзыв — плашка вместо окошка */
body.d .tov .comments_thanks { margin: 0 0 12px; padding: 12px 18px; border-radius: 10px; background: #e7f6ec; font-size: 15px; font-weight: 500; color: #146c34; }
/* капча в форме отзыва: поле шире, ответ видно */
body.d .tov .comment_form .captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.d .tov .comment_form input.inp_captcha,
body.d .tov .comment_form .captcha input[type="text"] { width: 80px !important; height: 38px; padding: 0 10px; border: 1px solid var(--d-line); border-radius: 8px; background: #fff; font: inherit; font-size: 18px; text-align: center; box-sizing: border-box; }

/* строка «Серии <производитель>» (появляется, когда выбран производитель) —
   в той же панели и в том же виде, что остальные фильтры */
body.d .tovslist .series { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 8px 18px 8px 218px; min-height: 34px; border: 0; border-top: 1px solid rgba(11, 29, 107, .08); background: var(--d-banner-bg, var(--d-soft)); line-height: 1.2; }
body.d .tovslist .series .title { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 180px; padding: 0; white-space: normal; line-height: 1.25; font-family: var(--d-head); font-weight: 700; font-size: 14px; color: var(--d-navy); }
body.d .tovslist .series .section_ps { padding: 0; white-space: nowrap; }
body.d .tovslist .series .section_ps a,
body.d .tovslist .series .section_ps .nolink { display: inline-block; padding: 5px 12px; border: 1px solid var(--d-line); border-radius: 999px; background: #fff; font-size: var(--f-font, 13.5px); line-height: 1.2; color: var(--d-ink); text-decoration: none; }
body.d .tovslist .series .section_ps a:hover { border-color: var(--d-accent); color: var(--d-accent); }
body.d .tovslist .series .section_ps .nolink { border-color: transparent; background: transparent; color: #98a2b8; }
body.d .tovslist .series .section_ps .b_active { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--d-accent); font-size: var(--f-font, 13.5px); font-weight: 500; line-height: 1.2; color: #fff; }
body.d .tovslist .series .section_ps a.active_unsel { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .25); font-size: 0; color: #fff; }
body.d .tovslist .series .section_ps a.active_unsel::before { content: "×"; font-size: 15px; line-height: 1; }
@media (max-width: 760px) {
    body.d .tovslist .series { padding-left: 14px; }
    body.d .tovslist .series .title { position: static; transform: none; width: auto; flex-basis: 100%; }
}

/* карточка видео: справа значок просмотра, а не «скачать» */
body.d a.d-file-link.d-file-link--video { background-image: url("/img/design/svc/play-circle.svg"); background-size: 24px; }

/* =====================================================================
   Виды фильтров (настройка модуля «Каталог» → «Вид фильтров»).
   Класс у .tovslist: --full (как было), --compact, --collapsed, --dropdown.
   Скрипт js/d_catalog.js добавляет кнопки «Ещё фильтры», «Фильтры» и
   выпадающие списки; без скрипта всё видно, как в «Компактном».
   ===================================================================== */

/* ---------- Компактный (и основа для «Свёрнутого») ---------- */
body.d .tovslist--compact .producers,
body.d .tovslist--collapsed .producers { padding: 10px 14px 4px 158px; }
body.d .tovslist--compact .attribmenu,
body.d .tovslist--collapsed .attribmenu { padding: 0 14px 2px; }
body.d .tovslist--compact .attribmenu .section_a,
body.d .tovslist--collapsed .attribmenu .section_a { padding: 5px 0 5px 144px; min-height: 0; gap: 4px; }
body.d .tovslist--compact .series,
body.d .tovslist--collapsed .series { padding: 5px 14px 5px 158px; min-height: 0; gap: 4px; }
body.d .tovslist--compact .producers,
body.d .tovslist--collapsed .producers { gap: 4px; }
body.d .tovslist--compact .producers .title,
body.d .tovslist--collapsed .producers .title,
body.d .tovslist--compact .series .title,
body.d .tovslist--collapsed .series .title { left: 14px; width: 136px; font-size: 13px; }
body.d .tovslist--compact .producers .title,
body.d .tovslist--collapsed .producers .title { top: 15px; }
body.d .tovslist--compact .attribmenu .section_a .title,
body.d .tovslist--collapsed .attribmenu .section_a .title { width: 136px; font-size: 13px; }
body.d .tovslist--compact .tovslist__chip,
body.d .tovslist--compact .producers .section_p a, body.d .tovslist--compact .producers .section_p .nolink,
body.d .tovslist--compact .attribmenu .section_av a, body.d .tovslist--compact .attribmenu .section_av .nolink,
body.d .tovslist--compact .series .section_ps a, body.d .tovslist--compact .series .section_ps .nolink,
body.d .tovslist--collapsed .producers .section_p a, body.d .tovslist--collapsed .producers .section_p .nolink,
body.d .tovslist--collapsed .attribmenu .section_av a, body.d .tovslist--collapsed .attribmenu .section_av .nolink,
body.d .tovslist--collapsed .series .section_ps a, body.d .tovslist--collapsed .series .section_ps .nolink { padding: 3px 9px; font-size: var(--f-font, 13px); }
body.d .tovslist--compact .b_active,
body.d .tovslist--collapsed .b_active { padding: 3px 5px 3px 9px !important; font-size: var(--f-font, 13px) !important; }
body.d .tovslist--compact .pricerange,
body.d .tovslist--collapsed .pricerange { padding: 8px 14px 10px; margin-bottom: 10px; }
body.d .tovslist--compact .pricerange .title,
body.d .tovslist--collapsed .pricerange .title { flex-basis: 136px; font-size: 13px; }
body.d .tovslist--compact .pricerange .inp_price,
body.d .tovslist--collapsed .pricerange .inp_price { height: 30px; width: 84px; }
body.d .tovslist--compact .pricerange .inp_submit,
body.d .tovslist--collapsed .pricerange .inp_submit { width: 30px; height: 30px; }
/* строки, где выбрать нечего (все значения бледные и ничего не выбрано), не показываем */
body.d .tovslist--compact .attribmenu .section_a:not(:has(.section_av a)):not(:has(.b_active)),
body.d .tovslist--collapsed .attribmenu .section_a:not(:has(.section_av a)):not(:has(.b_active)),
body.d .tovslist--dropdown .attribmenu .section_a:not(:has(.section_av a)):not(:has(.b_active)) { display: none; }
/* бледные значения в плотных видах прячем — остаются только доступные */
body.d .tovslist--compact .section_av > .nolink, body.d .tovslist--compact .section_p > .nolink,
body.d .tovslist--collapsed .section_av > .nolink, body.d .tovslist--collapsed .section_p > .nolink { display: none !important; }

/* ---------- Свёрнутый: «Ещё фильтры» ---------- */
body.d .tovslist--collapsed .attribmenu .section_a.f-more { display: none; }
body.d .tovslist--collapsed.f-open .attribmenu .section_a.f-more { display: flex; }
body.d .tovslist .f-toggle { margin: 0; padding: 4px 14px 10px 158px; background: var(--d-banner-bg, var(--d-soft)); }
body.d .tovslist .f-toggle span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--d-accent); border-bottom: 1px dashed currentColor; cursor: pointer; }

/* ---------- Кнопки-списки ---------- */
body.d .tovslist--dropdown .f-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
body.d .tovslist--dropdown .f-dd { position: relative; display: block; margin: 0; padding: 0 !important; min-height: 0; border: 0; background: none; }
body.d .tovslist--dropdown .f-dd > .title { position: static !important; transform: none !important; display: inline-flex; align-items: center; gap: 8px; width: auto !important; height: 38px; padding: 0 34px 0 14px !important; border: 1px solid var(--d-line); border-radius: 10px; background: #fff url("/img/design/chevron.svg") no-repeat right 12px center / 11px; font-family: var(--d-head); font-weight: 500 !important; font-size: 14px !important; color: var(--d-ink) !important; white-space: nowrap !important; cursor: pointer; user-select: none; }
body.d .tovslist--dropdown .f-dd > .title:hover { border-color: var(--d-accent); }
body.d .tovslist--dropdown .f-dd.has-active > .title { border-color: var(--d-accent); background-color: #eef0fe; color: var(--d-accent) !important; }
body.d .tovslist--dropdown .f-dd.is-open > .title { border-color: var(--d-accent); }
body.d .tovslist--dropdown .f-pop { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; flex-wrap: wrap; gap: 6px; width: max-content; max-width: min(520px, 86vw); padding: 12px; border: 1px solid var(--d-line); border-radius: 12px; background: #fff; box-shadow: 0 12px 32px rgba(11, 29, 107, .16); }
body.d .tovslist--dropdown .f-dd.is-open .f-pop { display: flex; }
body.d .tovslist--dropdown .f-pop > span { padding: 0; }
body.d .tovslist--dropdown .f-pop a, body.d .tovslist--dropdown .f-pop .nolink { display: inline-block; padding: 5px 11px; border: 1px solid var(--d-line); border-radius: 999px; background: #fff; font-size: var(--f-font, 13.5px); color: var(--d-ink); text-decoration: none; }
body.d .tovslist--dropdown .f-pop .nolink { display: none; }
body.d .tovslist--dropdown .f-pop a:hover { border-color: var(--d-accent); color: var(--d-accent); }
/* панель и строки в этом виде — без общей подложки */
body.d .tovslist--dropdown .producers.f-dd, body.d .tovslist--dropdown .series.f-dd { border-radius: 0; }
body.d .tovslist--dropdown .attribmenu.f-done { display: contents; }
body.d .tovslist--dropdown .pricerange { border-radius: 12px; border-top: 0; padding: 10px 14px; }
/* мобильная кнопка «Фильтры» (Свёрнутый и Кнопки-списки) */
body.d .tovslist .f-mobile { display: none; }
@media (max-width: 760px) {
    body.d .tovslist--compact .producers, body.d .tovslist--collapsed .producers,
    body.d .tovslist--compact .series, body.d .tovslist--collapsed .series { padding-left: 14px; }
    body.d .tovslist--compact .attribmenu .section_a, body.d .tovslist--collapsed .attribmenu .section_a { padding-left: 0; }
    body.d .tovslist .f-toggle { padding-left: 14px; }
    body.d .tovslist .f-mobile { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; margin: 0 0 12px; border: 1px solid var(--d-line); border-radius: 10px; background: #fff; font-family: var(--d-head); font-weight: 700; font-size: 15px; color: var(--d-navy); cursor: pointer; }
    body.d .tovslist .f-mobile b { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--d-accent); font-size: 12px; color: #fff; }
    body.d .tovslist.f-has-mobile:not(.f-mobile-open) .producers,
    body.d .tovslist.f-has-mobile:not(.f-mobile-open) .series,
    body.d .tovslist.f-has-mobile:not(.f-mobile-open) .attribmenu,
    body.d .tovslist.f-has-mobile:not(.f-mobile-open) .f-toggle,
    body.d .tovslist.f-has-mobile:not(.f-mobile-open) .f-bar,
    body.d .tovslist.f-has-mobile:not(.f-mobile-open) .pricerange,
    body.d .tovslist.f-has-mobile:not(.f-mobile-open) .filter_sbros { display: none !important; }
    body.d .tovslist--dropdown .f-pop { position: static; width: auto; max-width: none; margin-top: 6px; box-shadow: none; }
    body.d .tovslist--dropdown .f-dd { flex: 1 1 100%; }
    body.d .tovslist--dropdown .f-dd > .title { width: 100% !important; justify-content: space-between; }
}
body.d .tovslist--dropdown .f-dd > .title { background-image: url("/img/design/chevron-down.svg") !important; background-size: 12px !important; }
body.d .tovslist--dropdown .f-dd.is-open > .title { background-image: url("/img/design/chevron-down.svg") !important; }
body.d .tovslist--dropdown .pricerange .title { flex-basis: auto; margin-right: 4px; }

/* ---------- SEO-текст раздела (настройка «SEO-текст раздела») ----------
   Мелко и плотно во всех вариантах; целиком остаётся в разметке. */
body.d .tovslist .rub_descr { margin: 0 0 14px; padding: 0; font-size: 13px; line-height: 1.45; color: #6b7487; text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
/* две строки и «Подробнее» (кнопку добавляет js/d_catalog.js) */
body.d .tovslist--descr-clamp .rub_descr:not(.is-open) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-height: 2.9em; padding: 0 !important; margin-bottom: 2px; }
body.d .tovslist .rub_descr_more { margin: 0 0 14px; }
body.d .tovslist .rub_descr_more span { font-size: 13px; color: var(--d-accent); border-bottom: 1px dashed currentColor; cursor: pointer; }
/* под списком товаров */
body.d .tovslist--descr-bottom .rub_descr { order: 100; margin: 18px 0 10px; }

/* длинный текст — по ширине, с переносами (договорённость с Dmitry) */
body.d .tovslist .rub_content, body.d .tovslist .rub_content p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }

/* ===== Корзина (04.12.2026, «две колонки» — решение Dmitry): fns/basket.php basket_show() ===== */
body.d .d-basket { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; margin: 8px 0 30px; font-family: var(--d-text); color: var(--d-ink); }
body.d .d-basket__aside { position: sticky; top: 16px; }

/* товары */
body.d .d-basket-items { border: 1px solid var(--d-line); border-radius: 12px; background: #fff; }
body.d .d-basket-item { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto 28px; grid-template-areas: "img info info del" "img qty sum ."; gap: 10px 16px; align-items: center; padding: 16px 18px; border-top: 1px solid var(--d-line); }
body.d .d-basket-item__img { grid-area: img; align-self: start; }
body.d .d-basket-item__info { grid-area: info; }
body.d .d-basket-item .d-qty { grid-area: qty; justify-self: start; }
body.d .d-basket-item__sum { grid-area: sum; }
body.d .d-basket-item__del { grid-area: del; align-self: start; }
body.d .d-basket-item:first-child { border-top: 0; }
body.d .d-basket-item__img { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 8px; background: #f4f7fc; overflow: hidden; }
body.d .d-basket-item__img img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
body.d .d-basket-item__noimg { width: 40px; height: 40px; border-radius: 6px; background: var(--d-soft); }
body.d .d-basket-item__name { display: block; color: var(--d-ink); font-weight: 500; font-size: 15.5px; line-height: 1.35; text-decoration: none; }
body.d .d-basket-item__name:hover { color: var(--d-accent); }
body.d .d-basket-item__meta { margin-top: 4px; font-size: 13px; color: var(--d-muted); }
body.d .d-basket-item__note { display: inline-block; margin: 6px 6px 0 0; padding: 2px 8px; border-radius: 6px; background: #e8f5e9; color: #2e6b32; font-size: 12.5px; }
body.d .d-basket-item__sum { text-align: right; white-space: nowrap; }
body.d .d-basket-item__sum b { display: block; font-size: 17px; font-weight: 700; }
body.d .d-basket-item__sum small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--d-muted); }
body.d .d-basket-item__del { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: #8a93a6; font-size: 22px; line-height: 1; text-decoration: none; }
body.d .d-basket-item__del:hover { background: #fdecea; color: #c62828; }

/* количество */
body.d .d-qty { display: inline-flex; align-items: center; border: 1px solid var(--d-line); border-radius: 8px; overflow: hidden; }
body.d .d-qty__btn { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: var(--d-accent); font-size: 20px; line-height: 1; text-decoration: none; }
body.d a.d-qty__btn:hover { background: var(--d-soft); }
body.d .d-qty__btn.is-off { color: #c4cad6; }
body.d .d-qty__n { min-width: 34px; text-align: center; font-weight: 500; }

/* шаги оформления */
body.d .d-basket-step { margin-top: 18px; padding: 18px 20px 20px; border: 1px solid var(--d-line); border-radius: 12px; background: #fff; scroll-margin-top: 16px; }
body.d .d-basket-step__h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px !important; font-family: var(--d-head); font-size: 19px !important; font-weight: 700; color: var(--d-navy); }
body.d .d-basket-step__n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--d-blue); color: #fff; font-size: 15px; }
body.d .d-basket-step--done .d-basket-step__n { background: #2e7d32; }
body.d .d-basket-step--wait { background: #fafbfd; }
body.d .d-basket-step--wait .d-basket-step__h { color: #8a93a6; }
body.d .d-basket-step--wait .d-basket-step__n { background: #c4cad6; }
body.d .d-basket-step__wait { margin: 0; color: var(--d-muted); font-size: 14px; }

body.d .d-basket-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
body.d .d-basket-opt { position: relative; display: block; padding: 12px 14px 12px 40px; border: 1px solid var(--d-line); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
body.d .d-basket-opt:hover { border-color: var(--d-accent); }
body.d .d-basket-opt input { position: absolute; left: 14px; top: 14px; margin: 0; accent-color: var(--d-accent); width: 16px; height: 16px; }
body.d .d-basket-opt.is-on { border-color: var(--d-accent); background: var(--d-soft); box-shadow: 0 0 0 1px var(--d-accent) inset; }
body.d .d-basket-opt__t { display: block; font-weight: 500; font-size: 15px; line-height: 1.3; }
body.d .d-basket-opt__d { display: block; margin-top: 3px; font-size: 13px; color: var(--d-muted); }
body.d .d-basket-opts.is-busy { opacity: .55; pointer-events: none; }

/* форма */
body.d .d-basket-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
body.d .d-basket-form__wide { grid-column: 1 / -1; }
body.d .d-basket-step .section { margin: 0 0 14px; }
body.d .d-basket-step .section label { display: block; margin: 0 0 5px; font-size: 14px; font-weight: 500; }
body.d .d-basket-step .section .req { color: #c62828; }
body.d .d-basket-step .section input, body.d .d-basket-step .section textarea { display: block; box-sizing: border-box; width: 100%; padding: 9px 12px; border: 1px solid var(--d-line); border-radius: 8px; background: #fff; font: inherit; font-size: 15px; color: var(--d-ink); resize: vertical; }
body.d .d-basket-step .section input:focus, body.d .d-basket-step .section textarea:focus { outline: none; border-color: var(--d-accent); box-shadow: 0 0 0 3px rgba(20, 20, 236, .12); }
body.d .d-basket-step .d-form__agree { display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 14px; font-size: 13.5px; cursor: pointer; }
body.d .d-basket-step .d-form__agree input { margin: 3px 0 0; accent-color: var(--d-accent); }
body.d .d-basket-step .d-form__agree a { color: var(--d-accent); }
body.d #basketform_error .error { margin: 0 0 12px; color: #c62828; font-weight: 500; }
body.d .d-basket-submit { height: 48px; padding: 0 32px; border: 0; border-radius: 8px; background: var(--d-blue); color: #fff; font-family: var(--d-head); font-size: 17px; font-weight: 700; cursor: pointer; }
body.d .d-basket-submit:hover { filter: brightness(1.08); }
body.d .d-basket-submit:disabled { opacity: .5; cursor: default; }

/* «Итого» */
body.d .d-basket-sum { padding: 18px 20px 20px; border: 1px solid var(--d-line); border-radius: 12px; background: #fff; }
body.d .d-basket-sum__h { margin: 0 0 12px; font-family: var(--d-head); font-size: 19px; font-weight: 700; color: var(--d-navy); }
body.d .d-basket-sum__row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14.5px; }
body.d .d-basket-sum__row span:first-child { color: var(--d-muted); }
body.d .d-basket-sum__row span:last-child { text-align: right; white-space: nowrap; }
body.d .d-basket-sum__row--disc span:last-child { color: #2e7d32; }
body.d .d-basket-sum__total { display: flex; justify-content: space-between; margin: 10px 0 16px; padding-top: 12px; border-top: 1px solid var(--d-line); font-size: 20px; font-weight: 700; }
body.d .d-basket-sum__go { width: 100%; justify-content: center; box-sizing: border-box; margin-top: 14px; }
body.d button.d-basket-sum__go { border: 0; cursor: pointer; }
body.d button.d-basket-sum__go:disabled { opacity: .45; cursor: default; }
body.d .d-basket-sum__note { margin: 12px 0 0; padding: 8px 10px; border-radius: 8px; background: #fbf0e6; color: #8a4b1c; font-size: 13px; line-height: 1.4; }
body.d .d-basket-sum__help { margin: 12px 0 0; font-size: 13px; color: var(--d-muted); text-align: center; }
body.d .d-basket-sum__help a { color: var(--d-accent); white-space: nowrap; }

body.d .d-basket-code label { display: block; margin: 0 0 6px; font-size: 13.5px; color: var(--d-muted); }
body.d .d-basket-code__row { display: flex; gap: 8px; }
body.d .d-basket-code__row input { flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--d-line); border-radius: 8px; font: inherit; font-size: 15px; }
body.d .d-basket-code__row button { height: 38px; padding: 0 14px; border: 1px solid var(--d-accent); border-radius: 8px; background: #fff; color: var(--d-accent); font: inherit; font-weight: 500; cursor: pointer; }
body.d .d-basket-code__err { margin-top: 6px; color: #c62828; font-size: 13px; }
body.d .d-basket-code.is-on { padding: 8px 10px; border-radius: 8px; background: #e8f5e9; font-size: 13.5px; line-height: 1.4; }
body.d .d-link { padding: 0; border: 0; background: none; color: var(--d-accent); font: inherit; text-decoration: underline; cursor: pointer; }

/* пустая корзина */
body.d .d-basket-empty { margin: 10px 0 30px; padding: 36px 24px; border: 1px dashed var(--d-line); border-radius: 12px; text-align: center; }
body.d .d-basket-empty__t { margin: 0 0 8px; font-family: var(--d-head); font-size: 22px; font-weight: 700; color: var(--d-navy); }
body.d .d-basket-empty a:not(.d-btn) { color: var(--d-accent); }

@media (max-width: 1000px) {
    body.d .d-basket { grid-template-columns: minmax(0, 1fr); }
    body.d .d-basket__aside { position: static; }
}
@media (max-width: 760px) {
    body.d .d-basket-item { grid-template-columns: 64px minmax(0, 1fr) auto 28px; gap: 10px 12px; padding: 14px; }
    body.d .d-basket-item__img { width: 64px; height: 64px; }
    body.d .d-basket-form { grid-template-columns: minmax(0, 1fr); }
    body.d .d-basket-step { padding: 16px 14px; }
    body.d .d-basket-submit { width: 100%; }
}
