/* =====================================================================
   Новый дизайн komfort-eco.ru — рамка сайта (шапка, меню, левая колонка,
   подвал) и блоки главной. Подключается ПОСЛЕ styles.css: содержимое
   страниц (каталог, карточка товара, корзина) остаётся на старых стилях,
   здесь только то, что вокруг него.
   ===================================================================== */

@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: local("Roboto"), url("/fonts/roboto-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: local("Roboto"), url("/fonts/roboto-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: local("Roboto"), url("/fonts/roboto-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: local("Roboto"), url("/fonts/roboto-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: local("Roboto"), url("/fonts/roboto-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: local("Roboto"), url("/fonts/roboto-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --d-navy: #0b1d6b;       /* заголовки */
    --d-bar: #0c2a66;        /* меню и подвал */
    --d-blue: #1565e0;       /* сплошные кнопки */
    --d-accent: #1414ec;     /* ссылки, телефоны, значки, контурные кнопки (сине-фиолетовый, по макету) */
    --d-ink: #1c2333;        /* основной текст */
    --d-muted: #4a5468;
    --d-line: #cfd9ec;
    --d-soft: #e6eefc;       /* светлые плашки */
    --d-head: "Roboto", "Segoe UI", Arial, sans-serif;
    --d-text: "Roboto", "Segoe UI", Arial, sans-serif;
}

body.d { background: #fff; color: var(--d-ink); font-family: var(--d-text); font-size: 15px; }
body.d a { color: var(--d-accent); }
.d-ico { display: inline-block; width: 20px; height: 20px; vertical-align: middle; flex: none; }
.d-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.d-wrap *, .d-wrap *::before, .d-wrap *::after { box-sizing: border-box; }

/* ---------------- Шапка ---------------- */
.d-header { background: #fff; }
.d-header__in { display: grid; grid-template-columns: 200px minmax(0, 1.25fr) minmax(0, 1fr) 220px; align-items: center; padding: 10px 0; }
.d-header__in > * { padding: 0 18px; }
.d-header__in > * + * { border-left: 1px solid var(--d-line); }
.d-logo { padding-left: 0; }
.d-logo img { display: block; max-width: 180px; height: auto; }

.d-contacts { font-size: 14px; line-height: 1.45; color: var(--d-ink); }
.d-contacts a { color: inherit; text-decoration: none; }
.d-contacts__main { font-family: var(--d-head); font-weight: 700; font-size: 17px; color: var(--d-ink); }
.d-contacts__serv { font-family: var(--d-head); font-weight: 700; font-size: 16px; }
.d-contacts__mail a { color: var(--d-accent); }
.d-contacts__mail a.callback { text-decoration: underline; }
.d-sep { margin: 0 8px; color: var(--d-muted); }
/* «График работы (шапка)» из настроек — таблица; показываем строкой */
.d-contacts__hours .clock, .d-contacts__hours .tr, .d-contacts__hours .td { display: inline; padding: 0; float: none; font-size: 13px; color: var(--d-ink); font-weight: normal; }
.d-contacts__hours .tr + .tr::before { content: ", "; }
.d-contacts__hours .time { font-weight: 600; }

/* Публикация 57 «Официальный дистрибьютор» — заголовки h3 */
.d-distr { font-size: 13px; line-height: 1.35; color: var(--d-ink); }
.d-distr h3, .d-distr p { margin: 0; font-size: 13px; font-weight: normal; text-align: left !important; color: var(--d-ink); }
.d-distr h3:first-child, .d-distr strong { font-family: var(--d-head); font-weight: 700; font-size: 14px; }
.d-distr .section_p, .d-distr .b_active { font: inherit; color: inherit; }

.d-account { display: grid; gap: 4px; font-size: 14px; }
.d-account a { text-decoration: none; }
.d-account__opt, .d-account__auth { display: flex; align-items: center; gap: 8px; color: var(--d-accent); }
.d-account__auth .opt_toplinks { padding: 0; font-size: 14px; color: var(--d-muted); }
.d-account__auth .opt_toplinks a { color: var(--d-accent); }
.d-cart { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; height: 40px; border-radius: 8px; background: var(--d-blue); color: #fff !important; font-family: var(--d-head); font-weight: 700; font-size: 16px; }
.d-cart:hover { background: #0f56c4; }
.d-cart .d-ico { width: 22px; height: 22px; }
.d-cart__sum { font-size: 12px; color: var(--d-muted); text-align: center; }
.d-cart__sum:empty { display: none; }
/* у элемента ещё класс basket_main (для скрипта корзины) — снимаем старое оформление */
body.d .d-account .basket_main { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font-size: 13px; color: var(--d-ink); }
body.d .d-account .basket_main a { color: var(--d-accent); text-decoration: none; }

/* ---------------- Верхнее меню (out_topmenu) ---------------- */
.d-nav { background: var(--d-bar); }
body.d .d-nav .topmenu { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
body.d .d-nav .topmenu > ul { display: flex; justify-content: center; flex-wrap: wrap; text-align: left; }
body.d .d-nav .topmenu > ul > li { position: relative; height: auto; margin: 0; padding: 0; text-transform: none; }
body.d .d-nav .topmenu > ul > li + li::before { content: ""; position: absolute; left: 0; top: 50%; height: 16px; margin-top: -8px; border-left: 1px solid rgba(255,255,255,.45); }
body.d .d-nav .topmenu > ul > li > a { display: flex; align-items: center; gap: 6px; padding: 12px 22px; color: #fff; font-family: var(--d-head); font-weight: 500; font-size: 15px; text-transform: none; }
body.d .d-nav .topmenu > ul > li > a > b { color: #fff; font-weight: 700; box-shadow: inset 0 -3px 0 #5aa2ff; padding-bottom: 4px; }
body.d .d-nav .topmenu > ul > li:has(ul) > a::after { content: ""; width: 12px; height: 12px; background: url("/img/design/caret-white.svg") no-repeat center / contain; }
body.d .d-nav .topmenu > ul > li > ul { display: none; top: 100%; left: 0; min-width: 260px; padding: 6px; background: #fff; border-radius: 0 0 8px 8px; box-shadow: 0 14px 30px -12px rgba(10, 25, 70, .45); }
body.d .d-nav .topmenu > ul > li:hover > ul, body.d .d-nav .topmenu > ul > li:focus-within > ul { display: block; }
body.d .d-nav .topmenu > ul > li > ul > li { padding: 0; border: 0; background: none; }
body.d .d-nav .topmenu > ul > li > ul > li a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--d-ink); font-size: 14px; }
body.d .d-nav .topmenu > ul > li > ul > li a:hover { background: var(--d-soft); color: var(--d-accent); }
body.d .d-nav .topmenu .mob_topmenu_lnk { display: none; }
/* «Документация», «Компания»: на компьютере mobile.js снимает с них ссылку
   (class="desktop_nolink"), в пункте остаётся голый текст */
body.d .d-nav .topmenu > ul > li:not(:has(> a)) { padding: 12px 38px 12px 22px; color: #fff; font-family: var(--d-head); font-weight: 500; font-size: 15px; white-space: nowrap; cursor: default; background: url("/img/design/caret-white.svg") no-repeat right 18px center / 12px; }

/* ---------------- Тело страницы ---------------- */
.d-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; padding-top: 20px; padding-bottom: 40px; }
.d-aside { align-self: start; border: 1px solid var(--d-line); border-radius: 10px; padding: 10px; background: #fff; }
.d-main { min-width: 0; }

.d-search { display: flex; height: 40px; margin-bottom: 8px; border: 1px solid var(--d-line); border-radius: 8px; overflow: hidden; background: #fff; }
.d-search:focus-within { border-color: var(--d-accent); }
.d-search input { flex: 1; min-width: 0; border: 0; padding: 0 10px; font: inherit; font-size: 14px; color: var(--d-ink); background: transparent; outline: none; }
.d-search button { flex: none; width: 40px; border: 0; background: transparent; cursor: pointer; }

/* Меню каталога (out_catmenu) */
body.d .d-aside .catmenu { margin: 6px 0 0; }
body.d .d-aside .catmenu > ul { margin: 0; padding: 0; list-style: none; }
body.d .d-aside .catmenu > ul > li { padding: 0; margin: 0; background: none; border-top: 1px solid #e3e9f4; }
body.d .d-aside .catmenu > ul > li > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 4px; color: var(--d-ink); font-family: var(--d-head); font-weight: 700; font-size: 14.5px; line-height: 1.25; text-decoration: none; }
body.d .d-aside .catmenu > ul > li > a::after { content: ""; flex: none; width: 14px; height: 14px; background: url("/img/design/chevron.svg") no-repeat center / contain; }
body.d .d-aside .catmenu > ul > li > a:hover { color: var(--d-accent); }
body.d .d-aside .catmenu > ul > li > ul { margin: 0 0 8px; padding: 0 0 0 10px; list-style: none; font-size: 13.5px; }
body.d .d-aside .catmenu > ul > li > ul a { display: block; padding: 3px 0; color: var(--d-muted); text-decoration: none; }
body.d .d-aside .catmenu .mob_catmenu_lnk { display: none; }

/* Заголовки содержимого */
body.d .d-main h1:not(.kbanner__title) { margin: 0 0 18px; font-family: var(--d-head); font-weight: 700; font-size: 32px; line-height: 1.15; color: var(--d-navy); }
.d-h2, body.d .d-main h2 { margin: 30px 0 14px; font-family: var(--d-head); font-weight: 700; font-size: 28px; line-height: 1.2; color: var(--d-navy); }
body.d .kbanner, body.d .kslider { font-family: var(--d-text); }
body.d .kbanner__title { font-family: var(--d-head); }
body.d .kbanner__btn { font-family: var(--d-head); }

/* ---------------- Популярные разделы ---------------- */
.d-popular .d-h2 { margin-top: 0; margin-bottom: 12px; }
.d-popular__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.d-popular__item { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 10px 12px; border: 1px solid var(--d-line); border-radius: 10px; background: #fff; text-decoration: none; transition: box-shadow .15s, transform .15s, border-color .15s; }
.d-popular__item:hover { border-color: #a9bde6; box-shadow: 0 12px 26px -16px rgba(10, 30, 90, .45); transform: translateY(-2px); }
.d-popular__pic { display: flex; align-items: center; justify-content: center; width: 100%; height: 115px; }
.d-popular__pic img { max-width: 100%; max-height: 115px; width: auto; height: auto; }
.d-popular__name { font-family: var(--d-head); font-weight: 700; font-size: 17px; line-height: 1.2; color: var(--d-ink); text-align: center; }

/* ---------------- Блоки текста главной (HTML публикации) ---------------- */
.d-strip { display: flex; align-items: center; gap: 22px; margin: 20px 0 28px; padding: 14px 22px; border-radius: 10px; background: var(--d-banner-bg, var(--d-soft)); }
.d-strip__ico { flex: none; width: 48px; height: 48px; }
.d-strip__text { flex: 1; min-width: 0; padding-left: 22px; border-left: 2px solid #b8cbee; }
.d-strip__title { margin: 0; font-family: var(--d-head); font-weight: 700; font-size: 22px; color: var(--d-navy); }
.d-strip__sub { margin: 2px 0 0; font-size: 16px; color: var(--d-ink); }
.d-btn-outline { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border: 2px solid var(--d-accent); border-radius: 8px; background: #fff; color: var(--d-accent) !important; font-family: var(--d-head); font-weight: 700; font-size: 16px; text-decoration: none !important; }
.d-btn-outline:hover { background: var(--d-accent); color: #fff !important; }
.d-strip, .d-strip *, .d-btn-outline { box-sizing: border-box; }
/* Полоса переходит в вид «для телефона» только на узком экране: при 600-760
   (планшет, окно редактора в админке) ей хватает места в строку. */
@media (max-width: 600px) {
    .d-strip { flex-wrap: wrap; gap: 14px; padding: 16px; }
    .d-strip__text { padding-left: 0; border-left: 0; flex-basis: calc(100% - 70px); }
    .d-btn-outline { width: 100%; justify-content: center; }
}
.d-about p { margin: 0 0 14px; font-size: 17px; line-height: 1.6; color: var(--d-ink); text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
/* ---------------- Блоки для текста страниц ----------------
   Пишутся в тексте публикации (редактор в админке) обычным HTML с этими
   классами. Редактор подключает design.css, поэтому там блоки выглядят так
   же, как на сайте. Ссылки внутри — с селектором из двух классов, чтобы
   перебить общее «body.d a». Картинки, вставленные через редактор (у них
   бывают свои width/height в style), подгоняются под блок !important. */
.d-svc, .d-svc *, .d-perks, .d-perks *, .d-panel, .d-panel *, .d-cards, .d-cards *, .d-gallery, .d-gallery *, .d-contact, .d-contact * { box-sizing: border-box; }
.d-svc img, .d-perks img, .d-card > img, .d-btn img, .d-msg img, .d-video img, .d-gallery img { border: 0 !important; outline: 0; float: none; }

/* Плитки-ссылки на услуги: две колонки, значок, название, стрелка */
.d-svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin: 0 0 14px; }
.d-svc a.d-svc__item { display: flex; align-items: center; gap: 16px; min-height: 58px; padding: 8px 40px 8px 18px; border: 1px solid var(--d-line); border-radius: 10px; background: #fff url("/img/design/chevron.svg") no-repeat right 16px center / 14px; color: var(--d-ink); font-family: var(--d-head); font-weight: 700; font-size: 18px; line-height: 1.2; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.d-svc a.d-svc__item:hover { border-color: var(--d-accent); box-shadow: 0 4px 14px rgba(20, 20, 236, .12); color: var(--d-accent); }
.d-svc a.d-svc__item img { flex: none; width: 36px !important; height: 36px !important; margin: 0 !important; }

/* Полоса преимуществ под плитками */
.d-perks { display: flex; flex-wrap: wrap; margin: 0 0 22px; padding: 6px 0; border-radius: 10px; background: var(--d-banner-bg, var(--d-soft)); }
.d-perks p { flex: 1 1 260px; display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0; padding: 6px 18px; font-family: var(--d-head); font-weight: 500; font-size: 17px; color: var(--d-navy); }
.d-perks p + p { border-left: 1px solid #9fb6e3; }
.d-perks img { flex: none; width: 34px !important; height: 34px !important; margin: 0 !important; }

/* Плашка с заголовком и кнопкой справа, внутри — белый блок */
.d-panel { margin: 0 0 26px; padding: 14px 14px 16px; border-radius: 12px; background: var(--d-banner-bg, var(--d-soft)); }
.d-panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 4px 6px 12px; }
.d-panel__head > h2 { margin: 0 !important; }
.d-panel__body { padding: 16px 20px; border-radius: 10px; background: rgba(255, 255, 255, .75); }
.d-panel .d-cards { margin: 0; }
.d-panel .d-card { border: 0; padding: 4px 8px; background: none; }
.d-panel .d-card + .d-card { border-left: 1px solid var(--d-line); border-radius: 0; padding-left: 24px; }

/* Карточки в две колонки (значок необязателен) */
.d-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.d-card { position: relative; padding: 14px 16px; border: 1px solid var(--d-line); border-radius: 10px; background: #fff; font-size: 16px; line-height: 1.45; color: var(--d-ink); }
.d-card > img { float: left; width: 40px !important; height: 40px !important; margin: 2px 16px 6px 0 !important; }
.d-card p { margin: 0 0 4px; }
.d-card p:last-child { margin-bottom: 0; }
.d-card .d-card__title { margin: 0 0 6px; font-family: var(--d-head); font-weight: 700; font-size: 21px; line-height: 1.2; color: var(--d-navy); }
.d-card > img ~ p { margin-left: 56px; }

/* На странице с плитками услуг автоматический список подстраниц под текстом
   (out_subrubs, «» Ремонт котлов…») повторял бы плитки — прячем. */
.d-main:has(.d-svc) .submenu { display: none; }

/* Список с галочками */
.d-checks { margin: 0 0 22px; padding: 0; list-style: none; }
.d-panel .d-checks { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--d-line); }
.d-checks li { margin: 0 0 6px; padding: 0 0 0 34px; background: url("/img/design/svc/check.svg") no-repeat 2px 1px / 20px; font-size: 16px; line-height: 1.45; color: var(--d-ink); list-style: none; }

/* Галерея картинок (отзывы, сертификаты): любые загруженные картинки
   ложатся в одинаковые рамки целиком, по клику — увеличение (fancybox). */
.d-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 0 0 22px; }
.d-gallery > a, .d-gallery > img { display: flex; align-items: center; justify-content: center; height: 230px; padding: 10px; border-radius: 10px; background: #e9edf3; overflow: hidden; }
.d-gallery img { display: block; max-width: 100% !important; max-height: 100% !important; width: auto !important; height: auto !important; margin: 0 !important; border: 0 !important; float: none !important; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.d-gallery > a:hover { background: #dde4ee; }

/* Вводный текст страницы — крупнее обычного */
.d-text p, body.d .d-main .d-text p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: var(--d-ink); text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.d-text { margin: 0 0 18px; }

/* Плитки в одну колонку (крупные) */
.d-svc.d-svc--one { grid-template-columns: 1fr; }
.d-svc--one a.d-svc__item { min-height: 70px; font-size: 20px; }
.d-svc--one a.d-svc__item img { width: 44px !important; height: 44px !important; margin: 0 10px 0 4px !important; }

/* Строки «значок | заголовок и текст» */
.d-rows { margin: 0 0 22px; }
.d-row { display: flex; align-items: center; margin: 0 0 10px; padding: 16px 20px; border: 1px solid var(--d-line); border-radius: 10px; background: #fff; box-sizing: border-box; }
.d-row > img { flex: none; width: 52px !important; height: 52px !important; margin: 0 24px 0 4px !important; border: 0 !important; float: none !important; }
.d-row__body { flex: 1; min-width: 0; padding-left: 24px; border-left: 1px solid var(--d-line); }
.d-row__body p { margin: 0 0 6px; font-size: 16px; line-height: 1.5; color: var(--d-ink); }
.d-row__body p:last-child { margin-bottom: 0; }
.d-row .d-row__title { margin: 0 0 4px; font-family: var(--d-head); font-weight: 700; font-size: 20px; line-height: 1.25; color: var(--d-navy); }
.d-row .d-row__big { margin: 0 0 2px; font-family: var(--d-head); font-weight: 700; font-size: 34px; line-height: 1.15; color: var(--d-navy); }
/* вариант: заголовок слева, текст справа */
.d-row--split > .d-row__title { flex: 0 0 210px; margin: 0 24px 0 0; font-size: 19px; }
.d-row__links a + a { margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--d-line); }
/* строка внутри плашки — без своей рамки */
.d-panel__body.d-row { margin: 0; border: 0; }
/* строка-плашка (консультация и т. п.) */
.d-row.d-row--soft { border: 0; background: var(--d-banner-bg, var(--d-soft)); }
.d-row--soft .d-row__body { border-left-color: #9fb6e3; }

/* Таблица цен. Строка-подзаголовок группы: <tr class="d-table__group"><th colspan="2">…</th></tr>.
   Последний столбец — цена, по правому краю. */
table.d-table { width: 100% !important; margin: 0 0 16px; border: 1px solid var(--d-line); border-collapse: separate; border-spacing: 0; border-radius: 10px; overflow: hidden; background: #fff; }
.d-table th, .d-table td { padding: 11px 18px; border: 0; border-bottom: 1px solid #e3e9f4; background: none; text-align: left; vertical-align: middle; font-size: 16px; line-height: 1.4; color: var(--d-ink); }
.d-table tr:last-child > * { border-bottom: 0; }
.d-table thead th, .d-table tr.d-table__head > * { background: var(--d-banner-bg, var(--d-soft)); font-family: var(--d-head); font-weight: 700; font-size: 17px; color: var(--d-navy); }
.d-table tr.d-table__group > * { background: #f4f7fc; font-family: var(--d-head); font-weight: 700; font-size: 16px; color: var(--d-navy); }
.d-table td:last-child, .d-table thead th:last-child, .d-table tr.d-table__head > :last-child { width: 1%; white-space: nowrap; text-align: right; font-weight: 700; border-left: 1px solid #e3e9f4; }
.d-table tr.d-table__group > :last-child { border-left: 0; text-align: left; white-space: normal; }
/* три столбца и больше: цены по центру */
.d-table--cols td:not(:first-child), .d-table--cols th:not(:first-child) { width: 22%; text-align: center; border-left: 1px solid #e3e9f4; white-space: nowrap; }
.d-table--cols td:first-child { font-weight: 500; }
.d-table--cols td:not(:first-child) { font-weight: 700; }
.d-table p { margin: 0; }

/* Примечание с «i» */
.d-note { display: flex; align-items: center; gap: 16px; margin: 0 0 24px !important; padding: 12px 20px; border-radius: 10px; background: var(--d-banner-bg, var(--d-soft)); font-size: 16px; line-height: 1.45; color: var(--d-ink); }
.d-note img { flex: none; width: 28px !important; height: 28px !important; margin: 0 !important; border: 0 !important; float: none !important; }

/* Значки-преимущества в ряд, по центру */
.d-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; }
.d-feats p { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0; padding: 6px 16px; text-align: center; font-size: 17px; line-height: 1.3; color: var(--d-ink); }
.d-feats p + p { border-left: 1px solid var(--d-line); }
.d-feats img { width: 48px !important; height: 48px !important; margin: 0 !important; border: 0 !important; float: none !important; }

/* Карточки в три колонки (шаги) */
.d-cards.d-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d-cards--3 .d-card .d-card__title { font-size: 18px; }
.d-cards--3 .d-card > img { width: 36px !important; height: 36px !important; margin-right: 12px !important; }
.d-cards--3 .d-card > img ~ p { margin-left: 0; }
.d-cards--3 .d-card > img + .d-card__title { min-height: 44px; margin-left: 48px; }
.d-cards--3 .d-card p:not(.d-card__title) { font-size: 15px; }

/* Видео: карточки с картинкой */
.d-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.d-videos a.d-video { display: flex; align-items: center; gap: 18px; padding: 12px; border: 1px solid var(--d-line); border-radius: 10px; background: #fff; color: var(--d-accent); font-family: var(--d-head); font-weight: 500; font-size: 19px; line-height: 1.25; text-decoration: underline; }
.d-videos a.d-video:hover { border-color: var(--d-accent); }
.d-video img { flex: none; width: 46% !important; height: auto !important; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 !important; border: 0 !important; border-radius: 8px; background: #ddd; }
.d-video span { position: relative; }
/* Видео и ссылки списком */
.d-links { margin: 0 0 24px; border: 1px solid var(--d-line); border-radius: 10px; background: #fff; }
.d-links p { margin: 0; }
.d-links p + p { border-top: 1px solid #e3e9f4; }
.d-links a { display: flex; align-items: center; gap: 16px; padding: 12px 44px 12px 18px; background: url("/img/design/chevron.svg") no-repeat right 16px center / 14px; font-family: var(--d-head); font-weight: 500; font-size: 18px; color: var(--d-accent); }
.d-links img { flex: none; width: 34px !important; height: 34px !important; margin: 0 !important; border: 0 !important; float: none !important; }

/* Фото: одинаковые кадры, по клику — увеличение */
.d-gallery.d-gallery--photo > a, .d-gallery.d-gallery--photo > img { height: 200px; padding: 0; background: #e9edf3; }
.d-gallery--photo img { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: cover; object-position: center top; border-radius: 0; box-shadow: none; }

/* Документы и сертификаты: картинка документа + кнопка */
.d-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 0 0 24px; }
.d-docs a { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 14px 18px; border: 1px solid var(--d-line); border-radius: 10px; background: #fff; text-decoration: none !important; }
.d-docs a:hover { border-color: var(--d-accent); box-shadow: 0 4px 14px rgba(20, 20, 236, .12); }
.d-docs img { display: block; height: 220px !important; width: auto !important; max-width: 100% !important; object-fit: contain; margin: 0 !important; border: 0 !important; float: none !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.d-docs span { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border: 2px solid var(--d-accent); border-radius: 8px; color: var(--d-accent); font-family: var(--d-head); font-weight: 700; font-size: 16px; }
.d-docs a:hover span { background: var(--d-accent); color: #fff; }

/* Кнопки действий в ряд */
.d-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 6px 0 24px !important; }
.d-actions a.d-btn { height: 52px; padding: 0 26px; font-size: 20px; }
.d-actions a:not(.d-btn) { font-size: 18px; }

@media (max-width: 760px) {
    .d-row { align-items: flex-start; padding: 14px; }
    .d-row > img { width: 40px !important; height: 40px !important; margin: 2px 14px 0 0 !important; }
    .d-row__body { padding-left: 14px; }
    .d-row--split { flex-wrap: wrap; }
    .d-row--split > .d-row__title { flex: 1 1 calc(100% - 60px); margin: 0; align-self: center; }
    .d-row--split > .d-row__body { flex-basis: 100%; margin-top: 8px; padding-left: 0; border-left: 0; }
    .d-row .d-row__big { font-size: 28px; }
    .d-table th, .d-table td { padding: 9px 10px; font-size: 14px; }
    .d-table--cols td:not(:first-child), .d-table--cols th:not(:first-child) { white-space: normal; }
    .d-feats { grid-template-columns: 1fr; }
    .d-feats p + p { border-left: 0; border-top: 1px solid var(--d-line); }
    .d-feats p { padding: 10px 0; }
    .d-cards.d-cards--3, .d-videos { grid-template-columns: 1fr; }
    .d-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .d-docs img { height: 160px !important; }
    .d-actions a.d-btn { width: 100%; justify-content: center; }
}


/* Файл для скачивания: значок типа, название, «PDF, 2,4 МБ · скачать» */
.d-file { margin: 0 0 24px !important; }
.d-file a { display: inline-grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; max-width: 100%; padding: 12px 22px 12px 14px; border: 1px solid var(--d-line); border-radius: 10px; background: #fff url("/img/design/svc/download.svg") no-repeat right 16px center / 22px; padding-right: 54px; text-decoration: none !important; box-sizing: border-box; }
.d-file a:hover { border-color: var(--d-accent); box-shadow: 0 4px 14px rgba(20, 20, 236, .12); }
.d-file img { grid-row: 1 / 3; width: 40px !important; height: 48px !important; margin: 0 !important; border: 0 !important; float: none !important; }
.d-file__name { font-family: var(--d-head); font-weight: 700; font-size: 18px; line-height: 1.25; color: var(--d-accent); }
.d-file__meta { font-size: 14px; color: var(--d-muted); }
.d-row__body .d-file { margin: 8px 0 0 !important; }

/* Плашка-раздел: цена справа в заголовке, обычный текст в теле */
.d-panel .d-panel__price { margin: 0; font-family: var(--d-head); font-weight: 700; font-size: 22px; color: var(--d-accent); white-space: nowrap; }
.d-panel__body > p { margin: 0 0 10px; font-size: 16px; line-height: 1.55; color: var(--d-ink); }
.d-panel__body > p:last-child, .d-panel__body > ul:last-child { margin-bottom: 0; }
.d-panel__body > .d-note { margin: 14px 0 0 !important; background: #fff4e5; }
.d-panel { scroll-margin-top: 12px; }
/* подзаголовок внутри блока («Способы оплаты») */
.d-sub, .d-panel__body > p.d-sub { margin: 14px 0 6px; font-family: var(--d-head); font-weight: 700; font-size: 16px; color: var(--d-navy); }
.d-panel .d-sub + .d-checks { margin: 0; padding: 0; border-top: 0; }
/* список с галочками внутри карточки */
.d-card .d-checks { margin: 8px 0 0; }
.d-card > img ~ .d-checks { margin-left: 56px; }
.d-card .d-checks li { font-size: 15px; }
.d-note > span { display: block; }

/* Ссылка на документ в тексте (d_file_links в fns/design.php) — та же
   карточка, что .d-file: значок типа, название, «PDF, 2,4 МБ · скачать». */
body.d a.d-file-link, a.d-file-link { display: inline-grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; max-width: 100%; margin: 6px 0; padding: 12px 54px 12px 14px; border: 1px solid var(--d-line); border-radius: 10px; background: #fff url("/img/design/svc/download.svg") no-repeat right 16px center / 22px; text-decoration: none !important; vertical-align: middle; box-sizing: border-box; }
a.d-file-link:hover { border-color: var(--d-accent); box-shadow: 0 4px 14px rgba(20, 20, 236, .12); }
a.d-file-link img { grid-row: 1 / 3; width: 40px !important; height: 48px !important; margin: 0 !important; border: 0 !important; float: none !important; }
a.d-file-link .d-file__name { font-family: var(--d-head); font-weight: 700; font-size: 17px; line-height: 1.25; color: var(--d-accent); text-align: left; }
a.d-file-link .d-file__meta { font-size: 14px; font-weight: 400; color: var(--d-muted); text-align: left; }
a.d-file-link--video { background-image: url("/img/design/svc/play-circle.svg"); background-size: 24px; }

/* Полоса «Связаться»: заголовок | кнопки | почта */
.d-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin: 30px 0 10px; padding: 14px 22px; border-radius: 10px; background: var(--d-banner-bg, var(--d-soft)); }
.d-contact > p { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 0 22px; }
.d-contact > p + p { border-left: 1px solid #9fb6e3; }
.d-contact > p:first-child { padding-left: 0; }
.d-contact .d-contact__title { font-family: var(--d-head); font-weight: 700; font-size: 21px; color: var(--d-navy); }
.d-contact a { font-family: var(--d-head); font-weight: 500; font-size: 19px; color: var(--d-accent); text-decoration: none; }
.d-contact a.d-btn, .d-btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 8px; background: var(--d-blue); color: #fff !important; font-family: var(--d-head); font-weight: 700; font-size: 18px; text-decoration: none !important; white-space: nowrap; }
.d-btn:hover { filter: brightness(1.08); }
.d-btn img { width: 22px !important; height: 22px !important; margin: 0 !important; }
.d-contact a.d-msg, .d-msg { display: inline-flex; flex: none; line-height: 0; transition: transform .15s; }
.d-msg:hover { transform: scale(1.06); }
.d-msg img { width: 44px !important; height: 44px !important; margin: 0 !important; }

@media (max-width: 760px) {
    .d-svc, .d-cards { grid-template-columns: 1fr; }
    .d-svc a.d-svc__item { font-size: 17px; }
    .d-perks p + p { border-left: 0; }
    .d-perks p { justify-content: flex-start; }
    .d-panel__body { padding: 12px; }
    .d-panel .d-card + .d-card { border-left: 0; border-top: 1px solid var(--d-line); padding: 12px 8px 4px; }
    .d-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .d-gallery > a, .d-gallery > img { height: 200px; }
    .d-contact { padding: 14px 16px; }
    .d-contact > p { width: 100%; padding: 0; border-left: 0 !important; }
    .d-contact a.d-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------------- Хлебные крошки (на всех страницах) ----------------
   Ссылки — без подчёркивания, стрелки бледные, текущая страница —
   оранжевая в лёгкой плашке (просьба Dmitry). */
body.d .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 14px; padding: 0; font-family: var(--d-text); font-size: 13.5px; line-height: 1.4; color: #a3acc0; }
body.d .breadcrumbs a { font-size: 13.5px; color: var(--d-muted); text-decoration: none; }
body.d .breadcrumbs a:hover { color: var(--d-accent); text-decoration: underline; }
body.d .breadcrumbs > span { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #fbf0e6; font-weight: 500; color: #b8622c; }

/* ---------------- Подвал ---------------- */
.d-footer { margin-top: 20px; background: var(--d-bar); color: #fff; }
.d-footer { text-align: center; }
.d-footer__in { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 0; padding-top: 18px; padding-bottom: 10px; }
.d-footer__brand { padding-right: 22px; font-family: var(--d-head); font-weight: 700; font-size: 20px; }
body.d .d-footer .bottommenu { display: flex; flex-wrap: wrap; justify-content: center; padding: 0; }
body.d .d-footer .bottommenu a { margin: 0; padding: 2px 22px; border-left: 1px solid rgba(255,255,255,.5); color: #fff; font-size: 14px; text-decoration: none; }
body.d .d-footer .bottommenu a:hover { text-decoration: underline; }
.d-footer__contacts { padding-bottom: 8px; font-size: 14px; line-height: 1.5; color: #fff; }
body.d .d-footer__contacts .btm_contacts { color: #fff; }
body.d .d-footer__contacts .bold { font-weight: 700; }
body.d .d-footer__contacts a { color: #fff; }
body.d .d-footer__contacts span[style] { color: #ff8a8a !important; }
.d-footer__copy { padding-bottom: 16px; font-size: 12px; color: rgba(255,255,255,.65); }

/* ---------------- Планшет ---------------- */
@media (max-width: 1100px) {
    .d-header__in { grid-template-columns: 180px minmax(0, 1fr) 210px; }
    .d-distr { display: none; }
    .d-popular__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body.d .d-nav .topmenu > ul > li > a { padding: 12px 14px; }
}

/* ---------------- Телефон ---------------- */
@media (max-width: 760px) {
    .d-wrap { padding: 0 14px; }
    .d-header__in { grid-template-columns: 1fr; gap: 10px; justify-items: center; text-align: center; }
    .d-header__in > * { padding: 0; border: 0 !important; }
    .d-logo img { max-width: 160px; }
    .d-contacts__main { font-size: 16px; }
    .d-contacts__hours { display: none; }
    .d-account { width: 100%; grid-template-columns: 1fr 1fr; align-items: center; }
    .d-account__opt, .d-account__auth { justify-content: center; }
    .d-cart, .d-cart__sum { grid-column: 1 / -1; }

    body.d .d-nav .topmenu .mob_topmenu_lnk, body.d .d-aside .catmenu .mob_catmenu_lnk { display: block; padding: 12px 4px; font-family: var(--d-head); font-weight: 700; font-size: 16px; cursor: pointer; }
    body.d .d-nav .topmenu .mob_topmenu_lnk { color: #fff; }
    body.d .d-nav .topmenu > ul { display: none; flex-direction: column; padding-bottom: 8px; }
    body.d .d-nav .topmenu > ul > li + li::before { display: none; }
    body.d .d-nav .topmenu > ul > li > a { padding: 9px 4px; }
    body.d .d-nav .topmenu > ul > li > ul { position: static; display: block; min-width: 0; padding: 0 0 6px 14px; background: transparent; box-shadow: none; }
    body.d .d-nav .topmenu > ul > li > ul > li a { color: #dbe6ff; padding: 5px 0; }
    body.d .d-nav .topmenu > ul > li:has(ul) > a::after { display: none; }

    .d-body { grid-template-columns: 1fr; gap: 14px; padding-top: 12px; }
    body.d .d-aside .catmenu > ul { display: none; }
    body.d .d-aside .catmenu .mob_catmenu_lnk { color: var(--d-navy); background: none; border-top: 1px solid #e3e9f4; text-transform: uppercase; }
    body.d .d-aside .catmenu .mob_catmenu_lnk > div { padding: 0; }
    body.d .d-nav .topmenu .mob_topmenu_lnk { padding-left: 0; text-transform: uppercase; }

    body.d .d-main h1:not(.kbanner__title) { font-size: 25px; }
    .d-h2, body.d .d-main h2 { font-size: 23px; margin-top: 24px; }
    .d-popular__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .d-popular__pic { height: 110px; }
    .d-popular__pic img { max-height: 110px; }
    .d-popular__name { font-size: 15px; }
    .d-contact { flex-direction: column; align-items: flex-start; }
    .d-contact > * { padding: 0; border: 0 !important; }
    .d-footer__brand { width: 100%; }
    body.d .d-footer .bottommenu a { padding: 4px 14px 4px 0; border: 0; }
}

/* ---------------- Плашка о cookie (inc/cookbanner.inc) ---------------- */
.d-cookie { position: fixed; z-index: 50; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 16px; max-width: 460px; padding: 14px 16px 14px 20px; border-radius: 14px; background: var(--d-banner-bg, #e3ebfb); color: var(--d-navy); box-shadow: 0 14px 34px -12px rgba(11, 29, 107, .45); font-family: var(--d-text); }
.d-cookie[hidden] { display: none; }
.d-cookie__text { margin: 0; font-size: 14px; line-height: 1.45; color: var(--d-navy); }
.d-cookie__text a { color: var(--d-accent); }
.d-cookie__btn { flex: none; height: 40px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--d-blue); color: #fff; font-family: var(--d-head); font-weight: 700; font-size: 15px; cursor: pointer; }
.d-cookie__btn:hover { background: #0f56c4; }
@media (max-width: 600px) {
    .d-cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
    .d-cookie__btn { width: 100%; }
}

/* Яндекс.Метрика (модуль tag_phone.js, «скрытие номеров» в настройках
   счётчика) режет номер на <small style="opacity:…">, и хвост номера
   бледнеет до наведения. Номера должны быть видны целиком — гасим эффект. */
small[style*="opacity"] { opacity: 1 !important; }

/* ===== Инструкции (Документация → Инструкции): разделы, карточки марок,
   плашки-ссылки на PDF. Разметка — в тексте страницы, правится в редакторе. ===== */
.d-man__intro { margin: 0 0 14px !important; font-size: 16px; line-height: 1.5; color: var(--d-muted); }
.d-man__nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px !important; }
.d-man__nav a { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border: 1px solid var(--d-line); border-radius: 999px; background: #fff; font-family: var(--d-head); font-weight: 500; font-size: 15px; color: var(--d-ink) !important; text-decoration: none !important; }
.d-man__nav a:hover { border-color: var(--d-accent); color: var(--d-accent) !important; }
.d-man h2 { scroll-margin-top: 12px; }
.d-man__grid { columns: 2 360px; column-gap: 18px; margin: 0 0 8px; }
.d-man__brand { break-inside: avoid; margin: 0 0 18px; padding: 16px 18px 14px; border: 1px solid var(--d-line); border-radius: 12px; background: #fff; }
.d-man__brand h3 { margin: 0 0 12px !important; padding: 0 0 10px; border-bottom: 1px solid #e3e9f4; font-family: var(--d-head); font-weight: 700; font-size: 19px; line-height: 1.2; color: var(--d-navy); }
.d-man__sub { margin: 12px 0 6px !important; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--d-muted); }
.d-man__docs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px !important; }
.d-man__docs a { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px 3px 26px; border: 1px solid #dde5f3; border-radius: 6px; background: #f5f8fd url("/img/design/svc/file-pdf.svg") no-repeat 7px center / 13px; font-size: 13.5px; line-height: 1.25; color: var(--d-ink) !important; text-decoration: none !important; }
.d-man__docs a:hover { border-color: var(--d-accent); background-color: #fff; color: var(--d-accent) !important; }
.d-man__more { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 2px !important; }
.d-man__more a { padding-right: 16px; background: url("/img/design/chevron.svg") no-repeat right center / 10px; font-weight: 600; font-size: 14.5px; color: var(--d-accent) !important; }
.d-man > .d-note { margin-top: 10px !important; }
@media (max-width: 760px) {
    .d-man__grid { columns: 1; }
    .d-man__brand { padding: 14px 14px 12px; }
}
.d-man__docs a[href$=".xlsx"], .d-man__docs a[href$=".xls"] { background-image: url("/img/design/svc/file-xls.svg"); }
.d-man__docs a[href$=".docx"], .d-man__docs a[href$=".doc"] { background-image: url("/img/design/svc/file-doc.svg"); }
.d-man > .d-note:first-of-type { margin: 0 0 22px !important; }
.d-man .d-note p { margin: 0 !important; }
.d-man a[href^="tel:"] { white-space: nowrap; }

/* ===== FAQ (Документация → FAQ): разметку выводит fns/faq.php ===== */
.d-faq { margin: 4px 0 0; }
.d-faq__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 20px; }
a.d-faq__ask { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 8px; background: var(--d-accent); color: #fff !important; font-family: var(--d-head); font-weight: 700; font-size: 16px; text-decoration: none !important; }
a.d-faq__ask:hover { background: var(--d-navy); }
.d-faq__bar-note { font-size: 14px; color: var(--d-muted); }
.d-faq__rubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 0 0 24px; }
a.d-faq__rub { display: flex; flex-direction: column; gap: 6px; padding: 18px 44px 18px 18px; border: 1px solid var(--d-line); border-radius: 12px; background: #fff url("/img/design/chevron.svg") no-repeat right 18px center / 12px; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
a.d-faq__rub:hover { border-color: var(--d-accent); box-shadow: 0 4px 14px rgba(20, 20, 236, .12); }
.d-faq__rub-name { font-family: var(--d-head); font-weight: 700; font-size: 18px; line-height: 1.25; color: var(--d-navy); }
.d-faq__rub-cnt { font-size: 14px; color: var(--d-muted); }
.d-faq__nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.d-faq__nav a, .d-faq__nav span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--d-line); border-radius: 999px; background: #fff; font-size: 14.5px; color: var(--d-ink) !important; text-decoration: none !important; }
.d-faq__nav a:hover { border-color: var(--d-accent); color: var(--d-accent) !important; }
.d-faq__nav .is-cur { border-color: var(--d-accent); background: var(--d-accent); color: #fff !important; font-weight: 500; }
.d-faq__list { border: 1px solid var(--d-line); border-radius: 12px; background: #fff; overflow: hidden; margin: 0 0 20px; }
.d-faq__item + .d-faq__item { border-top: 1px solid #e3e9f4; }
.d-faq__item > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 15px 52px 15px 20px; list-style: none; cursor: pointer; position: relative; }
.d-faq__item > summary::-webkit-details-marker { display: none; }
.d-faq__item > summary::after { content: ""; position: absolute; top: 50%; right: 20px; width: 14px; height: 14px; margin-top: -7px; background: url("/img/design/chevron-down.svg") no-repeat center / 14px; transition: transform .15s; }
.d-faq__item[open] > summary::after { transform: rotate(180deg); }
.d-faq__item > summary:hover .d-faq__q { color: var(--d-accent); }
.d-faq__q { flex: 1 1 320px; font-family: var(--d-head); font-weight: 600; font-size: 16px; line-height: 1.4; color: var(--d-navy); }
.d-faq__who { font-size: 13px; color: var(--d-muted); }
.d-faq__item[open] > summary { background: var(--d-soft); }
.d-faq__a { padding: 14px 20px 18px; font-size: 15.5px; line-height: 1.55; color: var(--d-ink); text-align: justify; hyphens: auto; }
.d-faq__a p { margin: 0 0 10px; }
.d-faq__a p:last-child { margin-bottom: 0; }
.d-faq__a img { max-width: 100%; height: auto; }
.d-faq__pages { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; }
.d-faq__pages a, .d-faq__pages b { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid var(--d-line); border-radius: 8px; background: #fff; font-size: 15px; color: var(--d-ink) !important; text-decoration: none !important; box-sizing: border-box; }
.d-faq__pages b { border-color: var(--d-accent); background: var(--d-accent); color: #fff !important; }
.d-faq__single { padding: 18px 20px; border: 1px solid var(--d-line); border-radius: 12px; background: #fff; margin: 0 0 18px; }
.d-faq__single .d-faq__a { padding: 0; }
.d-faq__single .d-faq__who { margin: 0 0 10px !important; }
.d-faq__back a { padding-left: 18px; background: url("/img/design/chevron.svg") no-repeat left center / 10px; font-weight: 600; }
.d-faq__back a { background-image: none; }
.d-faq__back a::before { content: "← "; }
.d-faq__empty { color: var(--d-muted); }
@media (max-width: 760px) {
    .d-faq__item > summary { padding: 13px 44px 13px 14px; }
    .d-faq__a { padding: 12px 14px 16px; text-align: left; }
}

/* ===== Формы на страницах (.d-form) — тот же вид, что у всплывающих окон
   (css/d_win.css): белая карточка, подписи над полями, поля в рамке,
   синяя кнопка. Сейчас: форма отзыва в карточке товара. ===== */
body.d .d-form { box-sizing: border-box; max-width: 620px; margin: 6px 0 0; padding: 20px 22px 22px; border: 1px solid var(--d-line); border-radius: 12px; background: #fff; }
body.d .d-form__title { margin: 0 0 6px; font-family: var(--d-head); font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--d-navy); }
body.d .d-form__lead { margin: 0 0 16px !important; font-size: 14.5px; line-height: 1.45; color: var(--d-muted); }
body.d .d-form .section { margin: 0 0 14px; padding: 0; }
body.d .d-form .section label { display: block; margin: 0 0 5px; font-size: 14px; font-weight: 500; color: var(--d-ink); }
body.d .d-form .section label .req { margin: 0 0 0 2px; color: #c62828; }
body.d .d-form .section input[type="text"], body.d .d-form .section textarea { display: block; box-sizing: border-box; width: 100%; border: 1px solid var(--d-line); border-radius: 8px; background: #fff; font: inherit; color: var(--d-ink); }
body.d .d-form .section input:focus, body.d .d-form .section textarea:focus { outline: none; border-color: var(--d-accent); box-shadow: 0 0 0 3px rgba(20, 20, 236, .12); }
body.d .d-form__agree { display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 14px; font-size: 13.5px; font-weight: 400; cursor: pointer; }
body.d .d-form__agree input { margin: 3px 0 0; accent-color: var(--d-accent); }
body.d .d-form__agree a { color: var(--d-accent); }
body.d .d-form__captcha { margin: 0 0 16px; }
body.d .d-form .captcha { display: block !important; margin: 0; padding: 0; }
body.d .d-form .captcha > div { display: block; padding: 0; border: 0; background: none; }
body.d .d-form .captcha div label { display: block; margin: 0 0 6px; font-style: normal; font-size: 14px; font-weight: 500; color: var(--d-ink); }
body.d .d-form .captcha div div { display: flex; align-items: center; gap: 10px; }
body.d .d-form input[type="submit"] { height: 44px; padding: 0 26px; font-size: 16px; }
body.d .d-form input[type="submit"]:disabled { opacity: .5; cursor: default; }

/* ===== Статьи (Документация → Статьи), разметка — fns/articles.php ===== */
.d-arts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 4px 0 24px; }
a.d-arts__item { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--d-line); border-radius: 12px; background: #fff; text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.d-arts__item:hover { border-color: #a9bde6; box-shadow: 0 12px 26px -16px rgba(10, 30, 90, .45); transform: translateY(-2px); }
.d-arts__img { display: flex; align-items: center; justify-content: center; height: 180px; padding: 12px; background: #f5f8fd; border-bottom: 1px solid #e3e9f4; box-sizing: border-box; }
.d-arts__img img { display: block; max-width: 100%; max-height: 100%; width: auto !important; height: auto !important; object-fit: contain; margin: 0 !important; border: 0 !important; }
.d-arts__img--none { background: #f5f8fd url("/img/design/svc/doc.svg") no-repeat center / 56px; opacity: 1; }
.d-arts__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.d-arts__name { font-family: var(--d-head); font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--d-navy); }
a.d-arts__item:hover .d-arts__name { color: var(--d-accent); }
.d-arts__descr { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.45; color: var(--d-muted); }
.d-arts__more { margin-top: auto; padding-top: 4px; font-weight: 600; font-size: 14px; color: var(--d-accent); }
.d-arts__more::after { content: " →"; }
.d-arts--more { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.d-arts--more .d-arts__img { height: 120px; }
.d-arts--more .d-arts__name { font-size: 15px; }
.d-arts--more .d-arts__img--none { background-size: 40px; }
.d-pages { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; }
.d-pages a, .d-pages b, .d-pages .dots { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid var(--d-line); border-radius: 8px; background: #fff; font-size: 15px; color: var(--d-ink) !important; text-decoration: none !important; box-sizing: border-box; }
.d-pages a:hover { border-color: var(--d-accent); color: var(--d-accent) !important; }
.d-pages b { border-color: var(--d-accent); background: var(--d-accent); color: #fff !important; }
.d-pages .dots { border: 0; background: none; }
.d-article .content { font-size: 16px; line-height: 1.6; }
.d-article .content img { max-width: 100%; height: auto; }
.d-back a::before { content: "← "; }
.d-back a { font-weight: 600; }
/* комментарии — как отзывы в карточке товара */
.d-comments { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 20px; padding: 16px 20px; border-radius: 12px; background: var(--d-banner-bg, var(--d-soft)); font-size: 15px; }
.d-comments__empty { font-size: 16px; color: var(--d-muted); }
.d-comments .comment_section { flex-basis: 100%; padding: 12px 0; border-bottom: 1px solid rgba(11, 29, 107, .10); }
.d-comments .comment_name { margin: 0 0 4px; font-weight: 700; color: var(--d-navy); }
.d-comments .comment_dt { margin-left: 8px; font-weight: 400; font-size: 13px; color: var(--d-muted); }
.d-comments .comment_form { padding: 0; }
.d-comments .comment_form:has(.comments_form_content[style*="block"]) { flex-basis: 100%; }
.d-comments .comments_form_link span { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 8px; background: var(--d-blue); color: #fff; font-family: var(--d-head); font-weight: 700; font-size: 15px; cursor: pointer; }
.d-comments .comments_form_link span:hover { filter: brightness(1.08); }
.d-comments .comments_form_content { display: none; }
.d-comments .comments_form_content #comment_form_name, .d-comments .comments_form_content #comment_form_content { padding: 9px 12px; font-size: 15px; }
.d-comments .comments_form_content #comment_form_content { height: 130px; resize: vertical; }
.d-comments .comment_form input.button { height: 44px; padding: 0 26px; border: 0; border-radius: 8px; background: var(--d-blue); color: #fff; font-family: var(--d-head); font-weight: 700; font-size: 16px; cursor: pointer; }
.d-comments .comment_form .captcha input[type="text"] { width: 80px !important; height: 38px; padding: 0 10px; border: 1px solid var(--d-line); border-radius: 8px; font: inherit; font-size: 18px; text-align: center; box-sizing: border-box; }
body.d .comments_thanks { margin: 0 0 12px; padding: 12px 18px; border-radius: 10px; background: #e7f6ec; font-size: 15px; font-weight: 500; color: #146c34; }
@media (max-width: 1100px) { .d-arts--more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .d-arts { grid-template-columns: 1fr; } .d-arts__img { height: 160px; } }

/* ===== Фото и видео (Документация → Фото и видео) ===== */
.d-video small { display: block; margin-top: 4px; font-family: var(--d-text); font-weight: 400; font-size: 13.5px; color: var(--d-muted); text-decoration: none; }
.d-media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 4px 0 24px; }
a.d-media__item { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--d-line); border-radius: 12px; background: #fff; text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.d-media__item:hover { border-color: #a9bde6; box-shadow: 0 12px 26px -16px rgba(10, 30, 90, .45); transform: translateY(-2px); }
.d-media__img { position: relative; display: block; aspect-ratio: 16 / 9; background: #e9edf3; overflow: hidden; }
.d-media__img img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; border: 0 !important; }
.d-media__img::after { content: ""; position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(11, 29, 107, .72) url("/img/design/svc/play-circle.svg") no-repeat center / 0; }
.d-media__img::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: 1; margin: -10px 0 0 -6px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
a.d-media__item[href*="foto"] .d-media__img::after, a.d-media__item[href*="foto"] .d-media__img::before { display: none; }
.d-media__badge { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: rgba(11, 29, 107, .82); font-size: 13px; font-weight: 500; color: #fff; }
.d-media__name { padding: 14px 16px 4px; font-family: var(--d-head); font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--d-navy); }
a.d-media__item:hover .d-media__name { color: var(--d-accent); }
.d-media__lead { padding: 0 16px 16px; font-size: 14px; line-height: 1.45; color: var(--d-muted); }
@media (max-width: 1100px) { .d-media { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .d-media { grid-template-columns: 1fr; } }

/* ===== Компания (О компании) и Контакты ===== */
.d-text .d-about__logo { display: block; width: 208px !important; height: auto !important; margin: 0 0 4px !important; border: 0 !important; float: none !important; }
.d-brands { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
a.d-brands__item { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--d-line); border-radius: 999px; background: #fff; font-family: var(--d-head); font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--d-navy) !important; text-decoration: none !important; }
a.d-brands__item:hover { border-color: var(--d-accent); color: var(--d-accent) !important; }
a.d-brands__item--dist { border-color: #b9c2f7; background: #f0f2ff; }
a.d-brands__item--dist::before, .d-brands__dot { content: ""; display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--d-accent); }
.d-brands__legend { display: flex; align-items: baseline; gap: 8px; margin: 0 0 24px !important; font-size: 14px; color: var(--d-muted); }
.d-quote { margin: 8px 0 26px; padding: 20px 26px; border-left: 4px solid var(--d-accent); border-radius: 0 12px 12px 0; background: var(--d-banner-bg, var(--d-soft)); }
.d-quote p { margin: 0 !important; font-family: var(--d-head); font-weight: 500; font-size: 19px; line-height: 1.45; color: var(--d-navy); font-style: italic; }
.d-gallery--captions > a { position: relative; }
.d-gallery--captions > a > span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 9px; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); font-size: 14px; font-weight: 500; color: #fff; text-align: left; }
.d-gallery.d-gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.d-gallery.d-gallery--photo.d-gallery--2 > a { height: 300px; }
.d-about__req { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 20px !important; font-size: 14.5px; color: var(--d-muted); }
.d-about__req img { width: 46px !important; height: auto !important; margin: 0 !important; border: 1px solid var(--d-line) !important; border-radius: 4px; }
.d-contacts-page .d-card p { font-size: 15.5px; }
.d-contacts-page .d-card a { color: var(--d-accent); text-decoration: none; }
.d-contacts-page .d-card a:hover { text-decoration: underline; }
.d-contacts-page .d-big a { font-family: var(--d-head); font-weight: 700; font-size: 22px; color: var(--d-navy); }
.d-contacts-page__msg { display: flex; align-items: center; gap: 8px; margin-top: 8px !important; }
.d-contacts-page__msg img { width: 30px !important; height: 30px !important; }
.d-steps { margin: 6px 0 0; padding-left: 22px; }
.d-steps li { margin: 0 0 6px; font-size: 16px; line-height: 1.5; }
.d-map { margin: 0 0 22px; overflow: hidden; border: 1px solid var(--d-line); border-radius: 12px; line-height: 0; min-height: 420px; background: #e9edf3; }
.d-map > ymaps, .d-map iframe { width: 100% !important; }
@media (max-width: 760px) {
    .d-gallery.d-gallery--2 { grid-template-columns: 1fr; }
    .d-quote p { font-size: 17px; }
}
.d-perks.d-perks--4 p { flex: 1 1 0; min-width: 170px; font-size: 16px; padding: 6px 14px; }
.d-gallery.d-gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d-gallery.d-gallery--photo.d-gallery--3 > a { height: 230px; }
@media (max-width: 900px) { .d-perks.d-perks--4 p { flex-basis: 45%; } .d-perks.d-perks--4 p + p { border-left: 0; } }
@media (max-width: 600px) { .d-gallery.d-gallery--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Плашка бренда — раскрывающееся меню разделов каталога (fns/design.php d_brand_menus) */
.d-brand { position: relative; display: inline-block; }
.d-brand > summary { list-style: none; cursor: pointer; }
.d-brand > summary::-webkit-details-marker { display: none; }
.d-brand > summary.d-brands__item { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 16px; border: 1px solid var(--d-line); border-radius: 999px; background: #fff; font-family: var(--d-head); font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--d-navy); }
.d-brand > summary.d-brands__item--dist { border-color: #b9c2f7; background: #f0f2ff; }
.d-brand > summary.d-brands__item--dist::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--d-accent); }
.d-brand > summary::after { content: ""; width: 10px; height: 10px; background: url("/img/design/chevron-down.svg") no-repeat center / 10px; transition: transform .15s; }
.d-brand[open] > summary::after { transform: rotate(180deg); }
.d-brand > summary:hover, .d-brand[open] > summary { border-color: var(--d-accent); color: var(--d-accent); }
.d-brand__menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 250px; padding: 6px; border: 1px solid var(--d-line); border-radius: 10px; background: #fff; box-shadow: 0 14px 30px -12px rgba(10, 30, 90, .35); }
.d-brand__head { padding: 6px 10px 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--d-muted); }
.d-brand__menu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 10px; border-radius: 6px; font-size: 15px; color: var(--d-ink) !important; text-decoration: none !important; }
.d-brand__menu a:hover { background: var(--d-soft); color: var(--d-accent) !important; }
.d-brand__cnt { font-size: 13px; color: var(--d-muted); }
span.d-brands__item.d-brands__item--empty { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px dashed var(--d-line); border-radius: 999px; font-family: var(--d-head); font-weight: 700; font-size: 15px; color: var(--d-muted); }

/* ===== Оптовый отдел (fns/wholesale.php, публикации 60 и 61) ===== */
body.d .d-form.d-ws__login { max-width: 560px; margin: 8px 0 24px; }
body.d .d-form .section input[type="password"], body.d .d-form .section input[type="email"], body.d .d-form .section input[type="tel"] { 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); }
body.d .d-form .section input[type="text"] { padding: 9px 12px; font-size: 15px; }
body.d .d-form input.button { height: 44px; padding: 0 26px; border: 0; border-radius: 8px; background: var(--d-blue); color: #fff; font-family: var(--d-head); font-weight: 700; font-size: 16px; cursor: pointer; }
body.d .d-form input.button:hover { filter: brightness(1.08); }
body.d .d-form input.button:disabled { opacity: .5; cursor: default; }
.d-ws__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.d-ws__links { font-size: 14.5px; color: var(--d-muted); }
.d-ws__err { margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; background: #fdecec; color: #a11; font-size: 14.5px; }
.d-ws__captcha { margin: 0 0 16px; }
.d-ws__hello { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 20px; padding: 16px 20px; border-radius: 12px; background: var(--d-banner-bg, var(--d-soft)); }
.d-ws__hello p { margin: 0; font-size: 16px; }
.d-ws__hello .d-ws__hello-title { margin: 0 0 4px; font-family: var(--d-head); font-weight: 700; font-size: 20px; color: var(--d-navy); }
.d-ws__prices { margin-top: 8px; }
body.d .d-ws__login { scroll-margin-top: 16px; }
