/* Тема mskmetalls — обвязка блоков, которых нет в бандле прототипа:
   pdoMenu-списки, мобильное меню, оффканвас-каталог (разметка старой темы),
   модалки старой темы (fancybox), выбор города (cityFields), поиск/корзина в шапке.
   Палитра — переменные из бандла прототипа (--cat-*). */

/* ===== Базовый скролл темы: тонкий, серый, без скруглений — везде, где есть прокрутка,
   включая полосу страницы. Дорожка прозрачная: цвет подложки даёт сам блок. ===== */
* { scrollbar-width: thin; scrollbar-color: var(--tone-gray-200b) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--tone-gray-200b); }
::-webkit-scrollbar-thumb:hover { background: var(--tone-gray-300); }
::-webkit-scrollbar-corner { background: transparent; }


/* ==== pdoMenu-списки в новой разметке ==== */
.site-information-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}
.site-information-nav li { display: inline-block; }
.site-information-nav a { white-space: nowrap; }

.footer-menu-list ul { list-style: none; margin: 0; padding: 0; }
.footer-menu-list li { margin: 0 0 10px; }
.footer-menu-list li:last-child { margin-bottom: 0; }

/* ==== мобильное меню (в прототипе строится React) ==== */
/* Высота по контенту: панель раскрывается из-под строки с бургером (--msk-menu-top
   ставит msk-theme.js по факту) и не занимает весь экран; длинное меню — скролл внутри панели. */
.site-mobile-navigation { display: none; }
.site-mobile-navigation.is-open {
    display: block;
    position: fixed;
    z-index: 120;
    top: var(--msk-menu-top, 88px);
    left: 0;
    right: 0;
    bottom: auto;
    background: var(--tone-white);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - var(--msk-menu-top, 88px));
    max-height: calc(100dvh - var(--msk-menu-top, 88px));
    padding: 4px 20px 28px;
    border-top: 1px solid var(--tone-line);
    box-shadow: 0 24px 44px rgba(32, 34, 32, .18);
}
.site-mobile-navigation__inner { max-width: 640px; margin: 0 auto; }
.site-mobile-navigation__inner .mob__menu { list-style: none; margin: 0; padding: 0; }
.site-mobile-navigation__inner .mob__menu a {
    padding: 12px 0;
    font-weight: 600;
    font-size: 18px;
    color: var(--cat-ink, var(--tone-ink-strong));
    text-decoration: none;
    border-bottom: 1px solid var(--cat-line, var(--tone-line));
}
.site-mobile-navigation__contacts {
    margin-top: 20px;
    color: var(--cat-muted, var(--tone-muted));
    font-size: 14px;
    display: grid;
    gap: 8px;
}
.site-mobile-navigation__contacts a {
    color: var(--cat-ink, var(--tone-ink-strong));
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
}
.site-mobile-navigation__contacts p { margin: 0; }
body.no-scroll { overflow: hidden; }

/* ==== оффканвас-каталог (разметка старой темы) ==== */
.menu-overlay { position: fixed; inset: 0; z-index: 110; background: rgba(32, 34, 32, .55); }
.menu-overlay.hidden { display: none; }
.menu-overlay.visible { display: block; }
.offcanvas-menu {
    position: fixed;
    z-index: 115;
    top: 0; right: 0; bottom: 0;
    width: min(420px, 92vw);
    background: var(--cat-surface, var(--tone-surface));
    box-shadow: -12px 0 32px rgba(0, 0, 0, .18);
    overflow: auto;
}
.offcanvas-menu.hidden { display: none; }
.offcanvas-inner { padding: 20px 22px 40px; }
.offcanvas-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.offcanvas-header h2 { margin: 0; font-size: 22px; color: var(--cat-ink, var(--tone-ink-strong)); }
.close-button { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--cat-ink, var(--tone-ink-strong)); }
.offcanvas-menu ul { list-style: none; margin: 0; padding: 0; }
.offcanvas-menu li { margin: 0; }
.offcanvas-menu li a {
    display: block;
    padding: 9px 0;
    color: var(--cat-ink, var(--tone-ink-strong));
    text-decoration: none;
    border-bottom: 1px solid var(--cat-line, var(--tone-line));
}
.offcanvas-menu li.level-2 a { padding-left: 16px; color: var(--tone-gray-700); }
.offcanvas-menu li.level-3 a { padding-left: 32px; color: var(--cat-muted, var(--tone-muted)); }
.submenu-toggle { cursor: pointer; }

/* ==== модалки форм (структура дизайна .modal-layer > .modal-box) ====
   Базовые стили .modal-layer/.modal-box/.eyebrow/.modal-intro/.inquiry-form — в бандле прототипа.
   Здесь только управление видимостью: React в прототипе монтирует модалку в DOM, у нас она статична. */
.modal-layer { display: none; }
.modal-layer.open { display: flex; }
.modal-box:focus { outline: none; }

/* ==== cookie-баннер (стили в бандле, здесь видимость) ==== */
.cookie-banner { display: none; }
.cookie-banner.visible { display: flex; }

/* ==== выбор города (cityfields) ==== */
.organization-city {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    padding: 0;
}
.cf-modal, .cf-confirm-modal { display: none; position: fixed; z-index: 130; inset: 0; background: rgba(32, 34, 32, .55); }
.cf-modal.open, .cf-confirm-modal.open { display: block; }
.cf-confirm-modal.open { display: flex; align-items: center; justify-content: center; }
.cf-confirm-modal .cf-confirm { display: block; }
.cf-modal-dialog {
    max-width: 520px;
    margin: 8vh auto;
    background: var(--tone-white);
    border-radius: 14px;
    padding: 20px 22px;
    max-height: 80vh;
    overflow: auto;
}
.cf-confirm-modal > div { background: var(--tone-white); border-radius: 14px; padding: 18px 20px; max-width: 420px; }
.cf-btn-close { border: 0; background: none; font-size: 26px; line-height: 1; float: right; cursor: pointer; }
.cf-modal-title, .cf-city-label { margin: 0; font-size: 20px; color: var(--cat-ink, var(--tone-ink-strong)); }
.cf-modal-body { margin-top: 14px; }
.cf-cities { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cf-cities .region h4 {
    margin: 4px 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--cat-muted, var(--tone-muted));
    text-transform: uppercase;
    letter-spacing: .04em;
    flex-basis: 100%;
}
.cf-cities-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
.cf-cities-list a {
    display: block;
    padding: 8px 10px;
    border: 1px solid var(--cat-line, var(--tone-line));
    border-radius: 10px;
    color: var(--cat-ink, var(--tone-ink-strong));
    text-decoration: none;
}
.cf-cities-list a:hover { border-color: var(--cat-orange, var(--tone-orange-450)); }
.modal__buttons { display: flex; gap: 10px; }
.cf-btn-default {
    border: 1px solid var(--cat-line, var(--tone-line));
    border-radius: 10px;
    padding: 10px 16px;
    color: var(--cat-ink, var(--tone-ink-strong));
    text-decoration: none;
}
.cf-btn-primary {
    background: var(--cat-orange, var(--tone-orange-450));
    color: var(--tone-white);
    border-radius: 10px;
    padding: 10px 16px;
    text-decoration: none;
}

/* ==== поиск и корзина в шапке ==== */
.site-search { position: relative; }
.site-search .msearch-form { display: contents; }
.site-search .mse-input { width: 100%; box-sizing: border-box; padding: 0; border: 0; }
.site-search .site-search-submit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    padding: 0;
    color: var(--cat-muted, var(--tone-muted));
    font-size: 18px;
    line-height: 1;
}
.msMiniCart.site-cart-wrap { display: contents; }
.msMiniCart .not_empty { display: none; }
.msMiniCart.full .empty { display: none; }
.msMiniCart.full .not_empty { display: block; }
/* саджест поиска: ограничен по высоте, список прокручивается */
.mse-autocomplete { max-height: 320px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }

/* ==== Главная: номера карточек каталога (счётчик вместо [[+idx]]) ==== */
.category-grid { counter-reset: ccard; }
.category-card { counter-increment: ccard; }
.category-meta > span::before { content: counter(ccard, decimal-leading-zero); }

/* ==== Главная: в свёрнутом виде показываем первые 8 карточек, раскрытие по .catalog-expand ==== */
.category-grid:not(.is-expanded) .category-card:nth-child(n+9) { display: none; }
.catalog-expand svg { transition: transform 0.2s ease; }
.catalog-expand svg.rotate { transform: rotate(180deg); }

/* ==== Карточка товара: свёрстано по дизайну (шаги 1-7, 11.11.2026) ==== */

/* Выбранная карточка модификации: ms3v.js ставит класс active,
   в бандле дизайна состояние описано как [aria-pressed=true] — дублируем его декларации */
.product-modifications .product-modifications__card.active{border-color:var(--pv-orange);background:var(--tone-orange-50c);box-shadow:inset 0 0 0 1px var(--pv-orange)}

/* карточка — div (не button, чтобы не ловить сабмит формы ms3) */
.product-modifications__card{cursor:pointer}

/* статус «под заказ» в строке меты карточки модификации (наш реальный статус,
   в дизайне на этом месте была демо-плашка «Пример цены») */
.product-modifications__card .msk-badge{font-size:12px;line-height:1;padding:4px 7px;border:1px solid var(--pv-border,var(--tone-line));border-radius:4px;color:var(--pv-muted,var(--tone-muted))}

/* бейдж «В корзине: N шт.» — его вкарардчивает ms3v.js в карточку варианта */
.product-modifications__card .ms3-variant-cart-badge{display:inline-block;font-size:12px;line-height:1;padding:4px 7px;border-radius:4px;background:var(--pv-orange);color:var(--tone-white)}

/* лайтбокс фото карточки (.product-photo) */
.photo-lightbox{position:fixed;inset:0;z-index:1000;background:rgba(17,17,17,.78);display:flex;align-items:center;justify-content:center;padding:24px}
.photo-lightbox .modal-box{position:relative;background:var(--tone-white);padding:0;max-width:min(900px,92vw);line-height:0}
.photo-lightbox .modal-box img{max-width:100%;max-height:86vh;width:auto;height:auto}
.photo-lightbox .modal-close{position:absolute;top:-14px;right:-14px;width:36px;height:36px;border:none;border-radius:50%;background:var(--tone-gray-900);color:var(--tone-white);font-size:20px;line-height:1;cursor:pointer}

/* Контент внутри «Полных условий» (details.pi-disclosure > .pi-source-text).
   Бандл дизайна стилизует только свои демо-обёртки (pi-original-warning,
   pi-carrier-list / pi-payment-options); наши ресурсы 1365/1370 отдают
   голые blockquote и ul — дублируем декларации дизайна для этих тегов. */
.product-information .pi-source-text blockquote{padding:16px 18px;margin:0 0 20px;background:var(--tone-orange-50c);border-left:2px solid var(--tone-orange-450c);color:var(--tone-steel-650c)}
.product-information .pi-source-text blockquote p{margin:0}
.product-information .pi-source-text blockquote p+p{margin-top:12px}
.product-information .pi-source-text ul{margin:16px 0;padding-left:24px;list-style:disc}
.product-information .pi-source-text ul>li{padding-left:3px;margin-block:6px}
.product-information .pi-source-text ul>li::marker{color:var(--tone-orange-600e)}
.product-information .pi-source-text ol{margin:16px 0;padding-left:24px;list-style:decimal}
.product-information .pi-source-text ol>li{padding-left:3px;margin-block:6px}
.product-information .pi-source-text ol>li::marker{color:var(--tone-orange-600e)}
/* Заголовки и таблицы внутри content карточки: бандл даёт pi-source-text только межабзацный
   отступ; сброс дизайна обнуляет margin у h2/h3, таблицы без рамок — ячейки слипаются.
   Иерархия: внутренние h2 меньше заголовка секции «Описание» (как category-info-richtext). */
.product-information .pi-source-text h2{margin:26px 0 12px;font-size:24px;font-weight:500;letter-spacing:-.3px;line-height:1.3}
.product-information .pi-source-text h3{margin:22px 0 10px;font-size:20px;font-weight:500;line-height:1.35}
.product-information .pi-source-text h2:first-child,.product-information .pi-source-text h3:first-child{margin-top:0}
.product-information .pi-source-text table{width:100%;margin:18px 0 22px;border-collapse:collapse;text-align:left;font-size:14px;line-height:1.5}
.product-information .pi-source-text th,.product-information .pi-source-text td{padding:9px 12px;border:1px solid var(--tone-line);vertical-align:top}
.product-information .pi-source-text th{background:var(--tone-surface);font-weight:600;text-align:left}

/* Галочка выбранной модификации: бандл красит круг только по aria-pressed,
   ms3v.js ставит класс active — дублируем. У невыбранных галочка скрыта (в бандле
   круг прозрачный, галочка белая — на белой карточке не видна намеренно). */
.product-modifications .product-modifications__card.active .product-modifications__check{background:var(--pv-orange)}
.product-modifications .product-modifications__card:not(.active) .product-modifications__check{visibility:hidden}

/* Футер: у ссылок-иконок мессенджеров убрана рамка .social-links a (33×33)
   из бандла — она рассчитана на span-заглушки макета; у нас реальные ссылки
   с брендовыми svg 44×44, рамка выглядела квадратиками на тёмном фоне. */
.footer .social-links a.messenger-mark{border:0;width:auto;height:auto}

/* Текстовая страница (msk.text.page): та же цитата и маркеры списков, что в «Условиях
   заказа» карточки (блок выше про .pi-source-text) — панель текста у нас .category-info-richtext,
   бандл дизайна для blockquote правил не даёт, маркер красит в --cat-orange (ярче, чем в карточке). */
.category-info-richtext blockquote{padding:16px 18px;margin:20px 0;background:var(--tone-orange-50c);border-left:2px solid var(--tone-orange-450c);color:var(--tone-steel-650c)}
.category-info-richtext blockquote p{margin:0}
.category-info-richtext blockquote p+p{margin-top:12px}
/* бандл дизайна глобально сбрасывает маркеры (ol,ul,menu{list-style:none}) —
   возвращаем их в текстовой панели: точка карточки var(--tone-orange-600e), у нумерованных — цифры */
.category-info-richtext ul{list-style:disc}
.category-info-richtext ol{list-style:decimal}
.category-info-richtext ul>li{padding-left:3px;margin-block:6px}
.category-info-richtext ul>li::marker{color:var(--tone-orange-600e)}
.category-info-richtext ol>li{padding-left:3px;margin-block:6px}
.category-info-richtext ol>li::marker{color:var(--tone-orange-600e)}

/* Формы нового дизайна (inquiry-form): кнопка неактивна, пока пользователь сам не проставил
   галочку согласия (включает msk-theme.js, см. там же); сообщения FormIt — в палитре дизайна. */
.inquiry-form .action:disabled{cursor:default;opacity:.65}
.inquiry-form .alert{margin:0;padding:12px 14px;font-size:13px;line-height:1.6}
.inquiry-form .alert-success{color:var(--tone-olive-700);background:var(--tone-surface);border-left:2px solid var(--tone-olive-550)}
.inquiry-form .alert-danger{color:var(--tone-red-600);background:var(--tone-orange-50c);border-left:2px solid var(--tone-orange-450c)}

/* ==== плавающая кнопка «наверх»: показ после прокрутки двух экранов (msk-theme.js) ==== */
.msk-float-rail{position:fixed;right:18px;bottom:18px;z-index:90;display:flex;flex-direction:column;align-items:center;gap:10px}

/* ==== компактная шапка (18.11.2026) ====
   Мессенджеров остался один (MAX): отдельная колонка «Мессенджеры» и строка «Режим работы»
   под сеткой контактов убраны. MAX встал в колонку контактов рядом с почтой,
   режим работы стал четвёртым столбцом сетки контактов. */
.organization-contacts { grid-template-columns: 0.95fr 1.3fr 1.05fr auto; }
.organization-direct-messengers { display: inline-flex; margin-left: 14px; vertical-align: middle; }
.organization-direct-messengers .messenger-mark > img { width: 26px; height: 26px; }
.organization-schedule .organization-label { display: flex; width: fit-content; align-items: center; gap: 7px; }
.organization-schedule .schedule-item { margin-top: 9px; font-size: 15px; line-height: 1.5; }
@media (max-width: 1200px) {
  .organization-contacts { grid-template-columns: 0.9fr 1.2fr 1.05fr; }
  .organization-schedule { grid-column: 1 / 3; grid-row: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; }
  .organization-schedule .organization-label { margin: 0; }
  .organization-schedule .schedule-item { margin-top: 0; }
}
@media (max-width: 1000px) {
  .organization-schedule { grid-column: 1; grid-row: 2; display: block; }
  .organization-schedule .organization-label { margin-bottom: 9px; }
  .organization-schedule .schedule-item { margin-top: 0; }
}
.msk-float-messengers{display:flex;flex-direction:column;gap:10px}
.msk-float-rail .messenger-mark{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:var(--tone-white);border:1px solid var(--tone-line);box-shadow:0 4px 14px rgba(17,17,17,.14);transition:border-color .2s ease,transform .2s ease}
.msk-float-rail a.messenger-mark:hover{border-color:var(--orange,var(--tone-orange));transform:translateY(-2px)}
.msk-float-rail a.messenger-mark:focus-visible{outline:2px solid var(--orange,var(--tone-orange));outline-offset:2px}
.msk-float-rail span.messenger-mark{cursor:default}
.msk-float-rail .messenger-mark>img{width:26px;height:26px}
.msk-to-top{width:46px;height:46px;border:none;border-radius:50%;background:var(--orange,var(--tone-orange));color:var(--tone-white);display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .25s ease,transform .25s ease,visibility .25s;box-shadow:0 4px 14px rgba(17,17,17,.18)}
.msk-to-top.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
.msk-to-top:hover{background:var(--tone-red-550)}
.msk-to-top:focus-visible{outline:2px solid var(--orange,var(--tone-orange));outline-offset:3px}
@media (max-width:640px){.msk-float-rail{right:12px;bottom:12px}.msk-to-top{width:42px;height:42px}.msk-float-rail .messenger-mark{width:42px;height:42px}}

/* Карта сайта (страница 1359): дерево pdoMenu со старым чанком menu — голые вложенные ul.
   Сброс бандла убирает отступы и маркеры — возвращаем индентацию уровней и подсветку ссылок. */
.category-info-richtext .site-map ul{padding-left:20px;margin-top:4px}
.category-info-richtext .site-map li{margin-block:4px}
.category-info-richtext .site-map a{color:inherit;text-decoration:none}
.category-info-richtext .site-map a:hover{color:var(--tone-red-550);text-decoration:underline;text-underline-offset:4px}

/* ==== услуги (шаблон 18): «Цена от» и «Фото работ» (TV service_price_from / service_works) ==== */
.msk-price-value{font-size:26px;font-weight:500;letter-spacing:-.3px;margin:0 0 10px}
.msk-price-value strong{color:var(--tone-red-550);font-weight:600}
.msk-works__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}
.msk-works__item{margin:0;min-width:0;border:1px solid var(--tone-line);background:var(--tone-white)}
.msk-works__item img{width:100%;aspect-ratio:3/2;object-fit:cover;display:block}
.msk-works__item figcaption{padding:10px 14px;color:var(--tone-steel-550);font-size:15px;line-height:1.5}

/* ==== страница контактов (msk.contacts, вариант 2) ==== */
.msk-contacts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}
.product-information .msk-contact-card{display:flex;align-items:flex-start;gap:14px;padding:22px;border:1px solid var(--tone-line);background:var(--tone-white)}
.msk-contact-card>svg{flex-shrink:0;color:var(--tone-orange-600e);margin-top:2px}
.product-information .msk-contact-card h3{margin:0 0 8px;font-size:15px;font-weight:600;color:var(--tone-steel-750b);letter-spacing:0}
.msk-contact-card p{margin:0;color:var(--tone-steel-750b);font-size:16px;line-height:1.6}
.msk-contact-card p a{color:inherit}
.msk-contact-card p a:hover{color:var(--tone-red-600b)}
.msk-contact-card .work-schedule{display:flex;flex-direction:column;align-items:flex-start;gap:7px;border-top:0;padding:0;margin-top:6px}
.msk-contact-card .work-schedule .schedule-item{font-size:14px}
.msk-contact-card .work-schedule .schedule-item>span{color:var(--tone-steel-550)}
.msk-contact-card .work-schedule .schedule-item>strong{color:var(--tone-steel-750b)}
.msk-contacts-messengers{display:flex;align-items:center;gap:16px;margin-top:18px}
.msk-map{border:1px solid var(--tone-line);background:var(--tone-white);line-height:0}
.msk-map iframe{width:100%;height:420px;border:0}
.msk-useful-list{list-style:disc;padding-left:22px;margin:0}
.msk-useful-list li{margin-block:6px;padding-left:3px}
.msk-useful-list li::marker{color:var(--tone-orange-600e)}
.msk-useful-list a{color:inherit}
.msk-useful-list a:hover{color:var(--tone-red-600b);text-decoration:underline;text-underline-offset:4px}

/* ==== перелинковка в текстах: ссылки должны быть видны (заказчица, 13.11.2026) ====
   Бандл дизайна задаёт a{color:inherit;text-decoration:none} — в текстовой панели
   (category-info-richtext: content текстовых страниц, 404/410, SEO-тексты категорий)
   ссылки выглядели как обычный текст. */
.category-info-richtext a{color:var(--cat-orange,var(--tone-orange-450));text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.category-info-richtext a:hover{color:var(--tone-red-550);text-decoration-color:var(--tone-red-550)}
.category-info-richtext a:focus-visible{outline:2px solid var(--cat-orange,var(--tone-orange-450));outline-offset:2px}

/* ==== Корзина: перевёрстана по стилю новой темы (вариант 1; 13.11 форма на всю ширину как на текстовых страницах — секция pi-terms + pi-term-panel бандла) ====
   Логика ms3 не менялась: чанки-копии msk.cart.page / msk.order.form / msk.getorder.page
   с контрактом 1:1 (#msCart, .ms3_form, data-ms3-qty, #msOrder, #ms3_order_cost).
   Степпер — класс .product-quantity из бандла дизайна. */
.msk-cart-list{display:grid;gap:12px}
.msk-cart-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:16px;align-items:center;padding:14px 18px;border:1px solid var(--cat-line,var(--tone-line));background:var(--tone-white)}
.msk-cart-item__name{font-size:15px;line-height:1.5;color:var(--cat-ink,var(--tone-ink-strong));min-width:0}
.msk-cart-item__name a{color:inherit}
.msk-cart-item__name a:hover{color:var(--cat-orange,var(--tone-orange-450))}
.msk-cart-item__qty .product-quantity{height:44px;border:1px solid var(--cat-line,var(--tone-line))}
.msk-cart-item__qty .product-quantity>button{width:42px;height:42px;font-size:16px;cursor:pointer;color:var(--cat-ink,var(--tone-ink-strong))}
.msk-cart-item__qty .product-quantity>input{font-size:15px;max-width:64px}
.msk-cart-item__price{text-align:right}
.msk-cart-item__cost{font-weight:600;font-size:16px;color:var(--cat-ink,var(--tone-ink-strong))}
.msk-cart-item__caption{display:block;font-size:12px;color:var(--cat-muted,var(--tone-muted))}
.msk-cart-remove{border:0;background:none;padding:0;cursor:pointer;font-size:13px;color:var(--cat-muted,var(--tone-muted));text-decoration:underline;text-underline-offset:3px}
.msk-cart-remove:hover{color:var(--tone-red-550)}
.msk-cart-back{margin-top:16px}
.msk-cart-empty{border:1px dashed var(--cat-line,var(--tone-line));background:var(--tone-white);padding:48px 28px;text-align:center}
.msk-cart-empty__title{margin:0;font-size:20px;font-weight:600;color:var(--cat-ink,var(--tone-ink-strong))}
.msk-cart-empty__text{margin:10px auto 22px;max-width:460px;color:var(--cat-muted,var(--tone-muted));font-size:14px}
.msk-btn-primary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;background:var(--orange,var(--tone-orange));color:var(--tone-white);border:0;border-radius:2px;font-size:12px;font-weight:600;cursor:pointer;text-decoration:none;transition:background .2s ease}
.msk-btn-primary:hover{background:var(--tone-red-550);color:var(--tone-white)}
.msk-btn-ghost{color:var(--cat-ink,var(--tone-ink-strong));font-size:13px;text-decoration:none;border-bottom:1px solid var(--cat-line,var(--tone-line));padding-bottom:3px}
.msk-btn-ghost:hover{color:var(--cat-orange,var(--tone-orange-450));border-color:var(--cat-orange,var(--tone-orange-450))}
.msk-order__count{margin:0;font-size:13px;color:var(--cat-muted,var(--tone-muted))}
.msk-order__total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:18px 0;padding:14px 0;border-top:1px solid var(--cat-line,var(--tone-line));border-bottom:1px solid var(--cat-line,var(--tone-line));font-size:14px;color:var(--cat-ink,var(--tone-ink-strong))}
.msk-order__cost{font-size:20px;font-weight:700}
.invalid-feedback{margin-top:5px;font-size:11px;color:var(--tone-red-550)}
.invalid-feedback:empty{display:none}
#payments,#deliveries{display:none}
.msk-getorder .msk-order__total{margin-top:20px}
.msk-getorder-section .msk-order__total{max-width:720px}
.msk-getorder__count{display:block;margin-top:4px;font-size:12px;color:var(--cat-muted,var(--tone-muted))}
.msk-getorder__pay{margin-top:18px}
@media (max-width:640px){
    .msk-cart-item{display:flex;flex-wrap:wrap;gap:10px 16px}
    .msk-cart-item__name{flex:1 1 100%}
    .msk-cart-item__price{text-align:left;flex:1 1 auto}
    .msk-cart-item__remove{margin-left:auto}
}

/* ==== гибриды (старое тело + новая шапка/подвал) ====
   Старый футер нёс классы mt/pt (верхний отступ), у футера новой темы его нет —
   распорку вставляют deploy-hybrid-*.php перед [[$msk.footer]]. */
.msk-hybrid-bottom{height:44px}

/* ===== Кокон: «Смежные позиции» и «См. также разделы» (13.11.2026) ===== */
.cocoon-related, .cocoon-hubs { margin: 0 0 8px; border-radius: 10px; }
.cocoon-related h3, .cocoon-hubs h3 { margin: 0 0 16px; padding: 0; font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--tone-steel-800); }
.cocoon-related .textblock, .cocoon-hubs .textblock { margin: 0; padding: 0; }
ul.cocoon-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
ul.cocoon-links li { margin: 0; padding: 0; list-style: none; }
ul.cocoon-links li::before { content: none; }
ul.cocoon-links a { display: inline-block; padding: 9px 18px; background: var(--tone-white); border: 1px solid var(--tone-gray-50); border-radius: 8px; color: var(--tone-steel-800); font-size: 15px; line-height: 1.35; text-decoration: none; transition: border-color .15s, color .15s; }
ul.cocoon-links a:hover, ul.cocoon-links a:focus { border-color: var(--tone-danger); color: var(--tone-danger); text-decoration: none; }
/* ===== Страница-список товаров (шаблон 25, 13.11.2026) ===== */
/* Заголовок категории: точка в акценте, строка обновления цен */
.category-heading h1.msk-cat-h1 .orange { color: var(--tone-danger); }
.category-heading p { color: var(--tone-steel-550); font-size: 15px; margin: 10px 0 0; }
.category-heading p a { color: var(--tone-steel-800); }
/* Тулбар результатов: счёт + сортировка + кнопка фильтров */
.category-results-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; }
.category-results-toolbar p { margin: 0; font-size: 15px; color: var(--tone-steel-800); }
.category-results-toolbar p strong { font-size: 18px; }
.cat-sorting { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.cat-sorting .cat-sorting__item { display: inline-block; padding: 7px 14px; border: 1px solid var(--tone-gray-50); border-radius: 8px; background: var(--tone-white); color: var(--tone-steel-550); font-size: 14px; text-decoration: none; }
.cat-sorting .cat-sorting__item.active { border-color: var(--tone-danger); color: var(--tone-danger); }
.category-results-toolbar .filter-toggle { display: none; padding: 7px 14px; border: 1px solid var(--tone-gray-50); border-radius: 8px; background: var(--tone-white); font-size: 14px; color: var(--tone-steel-800); }
/* Сортировка на мобильном — select вместо чипов (как в прототипе: чипы в строку не помещаются);
   десктоп — чипы, select скрыт. */
.cat-sorting-select { display: none; }
/* Карточка товара в списке: приводим к пропорциям макета */
.category-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cat-product-card { display: flex; flex-direction: column; background: var(--tone-white); border: 1px solid var(--tone-gray-50); border-radius: 12px; overflow: hidden; }
.cat-product-card-photo { aspect-ratio: 1 / 1; background: var(--tone-surface); }
.cat-product-card-photo a { display: block; height: 100%; }
.cat-product-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-product-card-body { padding: 14px 16px 6px; }
.cat-product-card-body h3 { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 600; }
.cat-product-card-body h3 a { color: var(--tone-steel-800); text-decoration: none; }
.cat-product-card-body h3 a:hover { color: var(--tone-danger); }
.cat-product-card-order { margin-top: auto; padding: 10px 16px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cat-price { font-size: 18px; font-weight: 700; color: var(--tone-steel-800); margin-right: auto; }
.cat-order-btn { display: inline-block; padding: 9px 18px; background: var(--tone-danger); color: var(--tone-white); border: 0; border-radius: 8px; font-size: 14px; cursor: pointer; text-decoration: none; }
.cat-order-btn:hover { background: var(--tone-red-650); color: var(--tone-white); }
/* Пагинация. Реальная разметка mFilter: div.mfilter-pagination > nav > ul.pagination > li.page-item > a/span.page-link —
   выравниваем в строку, пилюли в стиле темы (15.11.2026, вопрос заказчицы про мобильную пагинацию) */
.mfilter-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 22px 0 0; }
.mfilter-pagination a, .mfilter-pagination span { padding: 8px 13px; border: 1px solid var(--tone-gray-50); border-radius: 8px; font-size: 14px; color: var(--tone-steel-800); text-decoration: none; background: var(--tone-white); }
.mfilter-pagination a:hover { border-color: var(--tone-danger); color: var(--tone-danger); }
.mfilter-pagination ul.pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 0; padding: 0; list-style: none; }
.mfilter-pagination .page-item { margin: 0; background: none; border: 0; }
.mfilter-pagination .page-item .page-link { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 38px; height: 38px; padding: 0 12px; line-height: 1; }
.mfilter-pagination .page-item.active .page-link { border-color: var(--tone-danger); background: var(--tone-danger); color: var(--tone-white); font-weight: 600; }
.mfilter-pagination .page-item.disabled .page-link { color: var(--tone-steel-350b); opacity: .6; pointer-events: none; }
@media (max-width: 560px) {
  .mfilter-pagination { margin-top: 18px; }
  .mfilter-pagination ul.pagination { gap: 5px; }
  .mfilter-pagination .page-item .page-link { min-width: 34px; height: 34px; padding: 0 9px; font-size: 13px; }
  .mfilter-pagination a[title="Первая"], .mfilter-pagination a[title="Последняя"] { display: none; }
}
/* Фильтр (mf3.*) в новой теме */
.category-sidebar .filter, .category-sidebar [class*="mfilter"] { font-size: 14px; }
.msk-filter__close { display: none; }
.msk-filter__section { margin: 0 0 18px; }
.msk-filter__title { font-weight: 600; color: var(--tone-steel-800); margin: 0 0 8px; display: flex; align-items: baseline; gap: 6px; }
.msk-filter__count { color: var(--tone-danger); font-size: 12px; }
.msk-filter__checkboxes { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; }
.msk-filter__row { margin: 0; display: flex; align-items: flex-start; gap: 8px; }
.msk-filter__row input { margin: 2px 0 0; }
.msk-filter__row label { color: var(--tone-steel-700b); cursor: pointer; }
.msk-filter__row.disabled-row { opacity: .45; }
.msk-filter__categories ul { list-style: none; margin: 0; padding: 0; }
.msk-filter__categories ul ul { padding-left: 14px; }
.msk-filter__categories a { color: var(--tone-steel-700b); text-decoration: none; display: inline-block; padding: 3px 0; }
.msk-filter__categories a:hover { color: var(--tone-danger); }
.msk-filter__categories .active > a { color: var(--tone-danger); font-weight: 600; }
.msk-filter__price { margin-top: 12px; }
.msk-filter__price .action { width: 100%; }
.mse2_number_inputs { display: flex; gap: 8px; margin-top: 8px; }
.mse2_number_inputs .value { flex: 1; display: flex; align-items: center; gap: 6px; color: var(--tone-steel-550); font-size: 13px; }
.mse2_number_inputs input { width: 100%; padding: 7px 9px; border: 1px solid var(--tone-gray-50); border-radius: 8px; font-size: 13px; }
/* Блок «ЕСТЬ СПЕЦИФИКАЦИЯ?» */
.category-sidebar-help { margin-top: 22px; padding: 20px; background: var(--tone-surface); border: 1px solid var(--tone-gray-50); }
.category-sidebar-help p { margin: 8px 0 14px; color: var(--tone-steel-700b); font-size: 14px; }
.category-sidebar-help .action { width: 100%; color: var(--tone-white); } /* бандл красит .category-sidebar-help button в var(--tone-orange-350b) — гасим */
.category-sidebar-help .help-mail { display: block; margin-top: 12px; color: var(--tone-steel-550); font-size: 13px; text-decoration: none; }
/* SEO-текст — панель category-info (как текстовая страница); «Показать больше» */
.msk-seo-block .content_toggle { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--tone-steel-800); }
.category-info-richtext .content_toggle { display: inline-block; margin-top: 14px; color: var(--tone-danger); font-size: 14px; text-decoration: none; }
.category-info-richtext .content_toggle:hover { color: var(--tone-red-650); }
.category-info-richtext .msk-rich.msk-collapsed { max-height: 230px; overflow: hidden; }

/* Отступ перед футером и адаптив */
.msk-hybrid-bottom { height: 44px; }
@media (max-width: 1000px) {
    .category-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-results-toolbar .filter-toggle { display: inline-block; }
    .category-sidebar { display: none; margin: 0 0 18px; }
    .category-sidebar.msk-open { display: block; }
    .msk-filter__close { display: block; float: right; width: 26px; height: 26px; background: var(--tone-gray-50); border-radius: 50%; }
}
@media (max-width: 560px) {
    .category-product-grid { grid-template-columns: 1fr; }
    .cat-sorting { margin-left: 0; }
    /* тулбар: строка «счётчик … Фильтры», ниже — select сортировки */
    .category-results-toolbar .cat-sorting { display: none; }
    .category-results-toolbar .cat-sorting-select { display: block; order: 2; flex: 1 1 100%; font-size: 12px; color: var(--tone-steel-550); }
    .category-results-toolbar .cat-sorting-select select { display: block; margin-top: 5px; width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid var(--tone-gray-50); border-radius: 8px; background: var(--tone-white); font: inherit; font-size: 14px; color: var(--tone-steel-800); }
    .category-results-toolbar .filter-toggle { order: 1; margin-left: auto; flex-shrink: 0; }
}
/* ===== Полировка списка товаров (шаблон 25) — аудит CSS 13.11.2026 ===== */
/* Спейсеры старых чанков (cocoon, seo-блок) */
.push30 { height: 30px; }
.push40 { height: 40px; }
.push50 { height: 50px; }
/* Строка обновления цен в заголовке категории */
.category-heading .upd_date { color: var(--tone-danger); font-weight: 600; }
/* Счётчики значений в фильтре */
.mfilter-count { color: var(--tone-steel-400b); font-size: 11px; font-weight: 400; margin-left: 2px; }
/* Дерево категорий в сайдбаре: свёрнуто, шеврон, раскрытие по клику */
.msk-filter__categories .has-submenu > a { position: relative; padding-left: 18px; }
.msk-filter__categories .has-submenu > a::before { content: ""; position: absolute; left: 2px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--tone-steel-400b); border-bottom: 2px solid var(--tone-steel-400b); transform: translateY(-50%) rotate(-45deg); transition: transform .15s; }
.msk-filter__categories .has-submenu.msk-open > a::before { transform: translateY(-50%) rotate(45deg); }
.msk-filter__categories .has-submenu.msk-open > a { color: var(--tone-danger); }
.msk-filter__categories .has-submenu > ul { display: none; padding-left: 16px; }
.msk-filter__categories .has-submenu.msk-open > ul { display: block; }
/* Попап выбора города (cityfields): типографика, была только в screen.css */
.modal__title { font-size: 16px; font-weight: 700; letter-spacing: .25px; color: var(--tone-blue-900); line-height: 1.4; }
.modal__title span { color: var(--tone-danger); }
.modal__content { color: var(--tone-blue-900); margin-top: 7px; line-height: 1.4; }
.modal__content a { text-decoration: underline; }
.modal__content a:hover { color: var(--tone-danger); }
.cf-cities .region h4 { font-size: 12px; font-weight: 700; color: var(--tone-steel-400b); text-transform: uppercase; letter-spacing: .4px; margin: 0 0 6px; }
.cf-cities li:not(.region) a { display: inline-block; padding: 4px 0; color: var(--tone-steel-800); text-decoration: none; font-size: 14px; }
.cf-cities li:not(.region) a:hover { color: var(--tone-danger); }
/* ===== Блоки списка товаров: сквозной, доставка, услуги, плитки (13.11.2026) ===== */
.msk-cat-h2 { font-size: 26px; line-height: 1.25; font-weight: 700; color: var(--tone-steel-800); margin: 34px 0 18px; }
.msk-cat-h2 .orange { color: var(--tone-danger); }
.page-width.msk-cat-cocoon { margin-top: 34px; }
.msk-cat-cocoon .cocoon-related { margin: 0 0 8px; }
.msk-cat-cocoon .category-grid { margin-bottom: 26px; }
/* ===== Доделка списка товаров: H1, превью, воздух, карта (13.11.2026) ===== */
/* H1 страницы категории — компактнее бандловых 56–88px */
.category-heading h1 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; line-height: 1.15; margin: 12px 0 8px; }
.category-heading p { margin-top: 8px; }
/* Превью карточки товара — ниже */
.category-product-grid .cat-product-card-photo { aspect-ratio: 4 / 3; padding: 12px 10px; }
/* Воздух: панели и заголовки секций */
section.category-info.cat-page { margin-top: 14px; }
.cat-page .category-info-richtext { padding: 16px 20px; }
.cat-page .category-info-richtext .push30, .cat-page .category-info-richtext .push50 { height: 0; }
.msk-cat-h2 { margin: 16px 0 12px; font-size: 22px; }
.page-width.msk-cat-cocoon { margin-top: 16px; }
.buyer-questions.section-shell { margin-top: 14px; }
/* Карта Яндекса (section__regionMap, старый вывод 1:1) */
.msk-cat-regions { margin-top: 22px; }
.msk-cat-regions .msk-regions-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.msk-cat-regions .msk-regions-layout iframe, .msk-cat-regions .msk-regions-layout > * { max-width: 100%; }
.msk-cat-regions .region_block { min-width: 0; } /* правая колонка: заголовок + список + сроки одним блоком */
.msk-cat-regions h2 { font-size: 22px; line-height: 1.2; margin: 0 0 12px; color: var(--tone-steel-800); }
.msk-cat-regions .msk-regions-head { margin: 0 0 10px; font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--tone-steel-800); }
.msk-cat-regions .msk-regions-list { color: var(--tone-steel-700b); font-size: 14px; line-height: 1.55; background: var(--tone-surface); padding: 16px 18px; }
.msk-cat-regions .msk-regions-note { margin: 12px 0 0; color: var(--tone-steel-700b); font-size: 14px; line-height: 1.5; background: var(--tone-surface); border: 1px solid var(--tone-gray-50); border-left: 3px solid var(--tone-orange-450); padding: 12px 16px; }
/* fallback: данные cityfields неожиданной структуры — блок целиком, без деления */
.msk-cat-regions .msk-regions-content { color: var(--tone-steel-700b); font-size: 14px; line-height: 1.55; background: var(--tone-surface); padding: 14px 16px; }
@media (max-width: 900px) {
    .msk-cat-regions .msk-regions-layout { grid-template-columns: 1fr; }
}
/* ===== Правки по скриншоту: читаемость, воздух, компактная доставка, хабы-плитки ===== */
/* Заголовок в сайдбаре — читаемый (был светлым по светлому) */
.category-sidebar-help .eyebrow { color: var(--tone-danger); font-size: 11px; margin-bottom: 8px; }

/* Воздух — плотнее */
.category-layout { gap: 14px; }
.category-results-toolbar { margin: 0 0 12px; }
.category-product-grid { gap: 12px; }
section.category-info.cat-page { margin-top: 10px; }
.cat-page .category-info-richtext { padding: 14px 18px; }
.msk-cat-h2 { margin: 12px 0 10px; }
.page-width.msk-cat-cocoon, .msk-cat-regions { margin-top: 14px; }
.buyer-questions.section-shell { margin-top: 10px; }
/* Компактный список городов в доставке */
.msk-cat-regions .msk-regions-list { max-height: 340px; overflow: auto; padding: 14px 16px; }
.msk-cat-regions .msk-regions-list ul { columns: 2; column-gap: 22px; margin: 0; padding-left: 24px; list-style: disc; font-size: 13px; line-height: 1.45; }
.msk-cat-regions .msk-regions-list li { break-inside: avoid; padding-left: 3px; margin-block: 6px; }
.msk-cat-regions .msk-regions-layout { gap: 14px; }
/* Плитки хабов/смежных — плотнее */
.cocoon-hubs, .cocoon-related { margin: 0 0 6px; }
.category-grid { margin-bottom: 18px; }

/* ===== Воздух, маркеры городов, консультация с главной (14.11.2026) ===== */
/* Воздух: бандловый padding панелей 64/76px — компактно */
section.category-info.cat-page { padding: 14px 0 18px; margin-top: 0; }
.cat-page .category-info h2, .cat-page h2 { font-size: 20px; letter-spacing: -.3px; line-height: 1.25; margin: 0 0 10px; }
/* Маркеры городов — как в списках текстовой страницы */
.msk-cat-regions .msk-regions-list li::marker { color: var(--tone-orange-600e); }
/* Консультация с главной: форма поверх оранжевой секции */
.cat-consult .inquiry-form input, .cat-consult .inquiry-form textarea { width: 100%; padding: 11px 14px; border: 1px solid rgba(255,255,255,.45); border-radius: 8px; background: var(--tone-white); color: var(--tone-ink-strong); font-size: 14px; margin: 0 0 10px; }
.cat-consult .inquiry-form label { color: var(--tone-white); font-size: 13px; display: block; margin: 0 0 4px; }
.cat-consult .inquiry-form label.consent, .cat-consult .inquiry-form .consent { color: var(--tone-white); }
.cat-consult .inquiry-form label.consent a { color: var(--tone-white); text-decoration: underline; }
.cat-consult .inquiry-form button[type=submit], .cat-consult .inquiry-form .action { padding: 12px 22px; background: var(--tone-ink-strong); color: var(--tone-white); border: 0; border-radius: 8px; font-size: 14px; cursor: pointer; }
.cat-consult .inquiry-form button[type=submit]:hover { background: var(--tone-black); }
.cat-consult .consultation-form-card h3 { font-size: 20px; margin: 0 0 6px; }
.cat-consult .consultation-form-card p { margin: 0 0 12px; }
/* ===== Карточка товара в списке: копия плитки категории (category-card из бандла
   дизайна) под именами product_catalog_card*. Правила и порядок сохранены 1:1,
   поэтому каскад даёт тот же вид, что у плиток категорий. Плагинные классы
   (ms2_product, ms3_form, cat-price, cat-order-btn) в копию не входят. ===== */
.product_catalog_card {text-align:left;background:var(--tone-surface);border:1px solid var(--tone-gray-50);flex-direction:column;min-width:0;padding:18px 19px 20px;display:flex;position:relative}
.product_catalog_card:hover {background:var(--tone-gray-50);border-color:var(--tone-gray-150)}
.product_catalog_card-meta {color:var(--tone-gray-300);justify-content:space-between;align-items:center;display:flex}
.product_catalog_card-meta>span {font:9px IBM Plex Mono,monospace}
.product_catalog_card-meta>svg {color:var(--tone-muted)}
.product_catalog_card:hover .product_catalog_card-meta svg {color:var(--orange);transform:translate(2px,-2px)}
.product_catalog_card-image {justify-content:center;align-items:center;height:142px;margin:7px 0 19px;display:flex}
.product_catalog_card-image img {object-fit:contain;mix-blend-mode:multiply;width:82%;height:100%;max-height:100%}
.product_catalog_card:hover img {transform:translateY(-4px)}
.product_catalog_card-copy {margin-top:auto}
.product_catalog_card-copy h3 {letter-spacing:-.4px;font-size:14px;font-weight:500;line-height:1.35}
.product_catalog_card-copy>span {color:var(--tone-gray-400);margin-top:8px;font-size:9px;display:block}
@media (max-width:1150px) { .product_catalog_card-copy h3 {font-size:13px} }
@media (max-width:900px) { .product_catalog_card-image {height:125px} }
@media (max-width:640px) {
    .product_catalog_card {padding:13px 12px 16px}
    .product_catalog_card-meta>span {font-size:8px}
    .product_catalog_card-meta>svg {width:18px}
    .product_catalog_card-image {height:109px;margin-top:5px;margin-bottom:14px}
    .product_catalog_card-image img {width:90%}
    .product_catalog_card-copy h3 {letter-spacing:-.2px;font-size:11px;line-height:1.5}
    .product_catalog_card-copy>span {font-size:8px;line-height:1.4}
}
/* Базовые переопределения секции каталога из бандла — идут после media-блока,
   поэтому и здесь после него */
.product_catalog_card-meta>span {font-family:IBM Plex Mono,monospace;font-size:13px;line-height:1.5}
.product_catalog_card-copy {min-width:0}
.product_catalog_card-copy h3 {font-size:18px;line-height:1.4;letter-spacing:-.25px;white-space:normal;overflow-wrap:anywhere}
.product_catalog_card-copy>span {font-size:13px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
@media (max-width:640px) {
    .product_catalog_card {height:auto;min-height:0;padding:14px 12px 18px}
    .product_catalog_card-copy h3 {font-size:16px;line-height:1.45;letter-spacing:0}
    .product_catalog_card-copy>span {font-size:13px;line-height:1.5}
}
/* Вариант внутри сетки (в оригинале — .category-grid .category-card) */
.category-product-grid .product_catalog_card {display:flex;flex-direction:column;text-align:left;padding:0;height:auto;min-height:280px}
.product_catalog_card-link {display:block;padding:20px 20px 15px;flex:1}
.product_catalog_card-link .product_catalog_card-image {height:124px}
.product_catalog_card-pick {background:var(--tone-white);padding:13px 20px;display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid var(--tone-line);font-size:14px;font-weight:500;color:var(--tone-steel-650b)}
.product_catalog_card-pick:hover {background:var(--tone-surface);color:var(--tone-orange-600e)}
@media (max-width:640px) {
    .product_catalog_card-link {padding:15px 12px 12px}
    .product_catalog_card-link .product_catalog_card-image {height:92px}
    .product_catalog_card-pick {font-size:13px;padding:12px;gap:9px}
    .category-product-grid .product_catalog_card {min-height:245px}
}

/* Кнопка карточки товара — аналог .action из бандла (оранжевая CTA со стрелкой),
   своё имя, чтобы стиль не зависел от секционных переопределений .action */
.product_catalog_card-btn {background:var(--orange);color:var(--tone-white);border:1px solid var(--orange);justify-content:space-between;align-items:center;gap:26px;min-height:48px;padding:0 23px;font-size:12px;font-weight:500;display:inline-flex;cursor:pointer}
.product_catalog_card-btn:hover {background:var(--tone-orange-500);border-color:var(--tone-orange-500);color:var(--tone-white)}
.product_catalog_card-btn svg {flex-shrink:0}
.product_catalog_card-btn:hover svg {transform:translate(2px,-2px)}
/* Товар без цены в списке: «В корзину» + «Уточнить цену» (ghost) в одной строке,
   на узких карточках — перенос в два ряда (15.11.2026) */
.product_catalog_card-pick { flex-wrap: wrap; }
.product_catalog_card-btn.ghost { background: var(--tone-white); color: var(--tone-orange-500); border-color: var(--tone-gray-50); }
.product_catalog_card-btn.ghost:hover { background: var(--tone-white); border-color: var(--tone-orange-500); color: var(--tone-orange-500); }

/* Дерево каталога в модалке: «Открыть раздел» — flex + выравнивание стрелки по
   центру текста. В бандле у .group-link flex нет, а объявленный в media-правиле
   gap:12px без него не работал — теперь он действует (мобайл). */
.navigation-tree .group-link {display:flex;align-items:center}

/* ===== Блок «Услуги.» на странице каталога (14.11.2026; ред. 15.11 — выбран
   вариант «фото на всю карточку»: фото 210px cover фикс. высоты, белая плашка
   снизу, align-items:flex-start, без margin-top:auto) ===== */
.msk-services {
  --cat-ink: var(--tone-ink-strong);
  --cat-muted: var(--tone-muted);
  --cat-line: var(--tone-line);
  --cat-surface: var(--tone-surface);
  --cat-orange: var(--tone-orange-450);
  color: var(--cat-ink);
  background: var(--tone-white);
  font-size: 15px;
  line-height: 1.7;
  padding: 64px 0 76px;
  margin-top: 10px;
}
.msk-services .page-width { max-width: 1320px; }
.msk-services h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -1.4px;
}
.msk-services-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  display: grid;
}
.msk-services-card {
  text-align: left;
  background: var(--tone-white);
  border: 1px solid var(--tone-gray-50);
  flex-direction: column;
  min-width: 0;
  display: flex;
  position: relative;
  padding: 0;
  height: auto;
}
.msk-services-card-link {
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
}
.msk-services-card-image {
  height: 210px;
  margin: 0;
  background: var(--tone-surface);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.msk-services-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s;
}
.msk-services-card-copy {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: var(--tone-white);
  border-top: 1px solid var(--tone-gray-50);
  padding: 14px 16px;
  position: relative;
}
.msk-services-card-copy h3 {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.25px;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: anywhere;
}
.msk-services-card-copy svg {
  color: var(--tone-muted);
  flex-shrink: 0;
  transition: transform .2s, color .2s;
}
@media (hover: hover) {
  .msk-services-card:hover { border-color: var(--tone-gray-150); }
  .msk-services-card:hover .msk-services-card-image img { transform: scale(1.04); }
  .msk-services-card:hover .msk-services-card-copy svg { color: var(--tone-orange-450); transform: translate(2px, -2px); }
}
@media (max-width: 900px) {
  .msk-services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .msk-services-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .msk-services-card-image { height: 150px; }
  .msk-services-card-copy h3 { font-size: 15px; }
}
/* ===== ТЕСТ: варианты карточек услуг (14.11.2026, ред. 2) =====
   Модификаторы .v-* на .msk-services. На продакшен-страницах классов нет.
   B — строки; C — большое фото; D — фото на всю карточку. Тёмный (v-dark) убран. */
.msk-services.v-rows .msk-services-grid {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--tone-line);
}
.msk-services.v-rows .msk-services-card {
  background: var(--tone-white);
  border: 0;
  border-bottom: 1px solid var(--tone-line);
  padding: 0;
  min-height: 0;
  display: block;
}
.msk-services.v-rows .msk-services-card-link {
  display: grid;
  grid-template-columns: 44px 112px minmax(0, 1fr) 28px;
  gap: 18px;
  align-items: center;
  padding: 16px 10px;
}
.msk-services.v-rows .msk-svc-row-num {
  font: 10px/1.5 IBM Plex Mono, monospace;
  letter-spacing: 1.15px;
  color: var(--tone-gray-300);
}
.msk-services.v-rows .msk-services-card-image {
  width: 112px;
  height: 72px;
  margin: 0;
  background: var(--tone-surface);
}
.msk-services.v-rows .msk-services-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.msk-services.v-rows .msk-services-card-copy h3 {
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.25px;
  font-weight: 500;
}
.msk-services.v-rows .msk-services-card-copy p {
  margin: 6px 0 0;
  color: var(--tone-muted);
  font-size: 13px;
  line-height: 1.5;
}
.msk-services.v-rows .msk-svc-row-arrow {
  color: var(--tone-muted);
  justify-self: end;
  transition: transform .2s, color .2s;
}
@media (hover: hover) {
  .msk-services.v-rows .msk-services-card:hover { background: var(--tone-surface); }
  .msk-services.v-rows .msk-services-card:hover .msk-svc-row-arrow { color: var(--tone-orange-450); transform: translate(2px, -2px); }
  .msk-services.v-rows .msk-services-card:hover .msk-services-card-copy h3 { color: var(--tone-orange-600e); }
}
@media (max-width: 900px) {
  .msk-services.v-rows .msk-services-card-link { grid-template-columns: 36px 88px minmax(0, 1fr) 24px; gap: 12px; padding: 12px 6px; }
  .msk-services.v-rows .msk-services-card-image { width: 88px; height: 60px; }
  .msk-services.v-rows .msk-services-card-copy h3 { font-size: 16px; }
  .msk-services.v-rows .msk-services-card-copy p { font-size: 12px; }
}

/* C — большое фото: плитка, где фото — главный элемент */
.msk-services.v-photo .msk-services-card { padding: 0; min-height: 0; background: var(--tone-white); }
.msk-services.v-photo .msk-services-card-link { display: flex; flex-direction: column; padding: 0; }
.msk-services.v-photo .msk-services-card-image {
  height: 210px;
  margin: 0;
  background: var(--tone-surface);
}
.msk-services.v-photo .msk-services-card-image img { width: 88%; transition: transform .25s; }
.msk-services.v-photo .msk-services-card-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 16px;
}
.msk-services.v-photo .msk-services-card-copy h3 {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.25px;
  font-weight: 500;
}
.msk-services.v-photo .msk-svc-photo-arrow {
  color: var(--tone-muted);
  flex-shrink: 0;
  transition: transform .2s, color .2s;
}
@media (hover: hover) {
  .msk-services.v-photo .msk-services-card:hover { border-color: var(--tone-gray-150); }
  .msk-services.v-photo .msk-services-card:hover .msk-services-card-image img { transform: scale(1.05); }
  .msk-services.v-photo .msk-services-card:hover .msk-svc-photo-arrow { color: var(--tone-orange-450); transform: translate(2px, -2px); }
}
@media (max-width: 640px) {
  .msk-services.v-photo .msk-services-card-image { height: 150px; }
  .msk-services.v-photo .msk-services-card-copy h3 { font-size: 15px; }
}


/* ==== Модалка городов (cityFields) в дизайне темы (15.11.2026) ====
   Хуки плагина сохранены (#cfModal/var(--tone-olive-150)onfirm/var(--tone-olive-150)ities, cf-action/cf-target,
   cf-show/cf-hide). Стили плагина не отключали: старые страницы (шаблон 7/14)
   ещё рендерят прежнюю модалку. Новая разметка классов плагина не использует. */
.modal-layer.cf-show { display: flex; }
.modal-layer.cf-hide { display: none; }
var(--tone-olive-150)ity { position: relative; }
/* var(--tone-olive-150)onfirm — сосед var(--tone-olive-150)ity внутри .organization-location: якорь поповера — колонка города, не страница */
.organization-location { position: relative; }
.msk-city-confirm {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 60;
  width: max-content;
  max-width: min(320px, calc(100vw - 32px));
  background: var(--tone-white);
  border: 1px solid var(--tone-gray-50);
  border-radius: 3px;
  box-shadow: 0 12px 32px rgba(22,26,29,.14);
  padding: 16px 18px;
}
.msk-city-confirm.cf-show { display: block; }
.msk-city-confirm-title { color: var(--tone-ink-strong); font-size: 14px; line-height: 1.45; }
.msk-city-confirm-actions { display: flex; gap: 8px; margin-top: 12px; }
.msk-city-confirm-btn {
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  border: 1px solid var(--tone-gray-150);
  background: var(--tone-white);
  color: var(--tone-steel-650b);
  padding: 8px 12px;
  border-radius: 3px;
}
.msk-city-confirm-btn:hover { border-color: var(--orange); color: var(--tone-orange-600e); }
.msk-city-confirm-btn.primary { border-color: var(--orange); background: var(--orange); color: var(--tone-white); }
.msk-city-confirm-btn.primary:hover { background: var(--tone-orange-500); border-color: var(--tone-orange-500); color: var(--tone-white); }
.msk-cities .eyebrow { text-transform: uppercase; }
.msk-cities-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 24px;
}
.msk-cities-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  color: var(--tone-steel-650b);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
}
.msk-cities-list li a svg { flex-shrink: 0; color: var(--tone-muted); }
.msk-cities-list li a:hover { color: var(--orange); }
.msk-cities-list li a:hover svg.lucide-arrow-up-right { transform: translate(2px, -2px); }
.msk-cities-list li.is-current a { color: var(--orange); }
.msk-cities-list li.is-current a svg { color: var(--orange); }
@media (max-width: 640px) {
  .msk-cities-list { grid-template-columns: 1fr; }
  .msk-city-confirm { left: 8px; }
}