/* ===========================================================================
 * Первый блок главной каталога — четыре раскладки.
 *
 * Палитра, скругления и шрифт живут в переменных: набор кладётся в сайт и
 * подхватывает его фирменный цвет, ничего не переписывая. Значения ниже —
 * значения по умолчанию, близкие к макету.
 *
 * Правило раскладок: на десктопе категории идут рядами по шесть (плитки) или
 * по четыре (карточки), на планшете — по три и по две, на телефоне — по две.
 * Ниже 480 px плитки остаются по две: в один столбец список получается
 * длинным, и до полосы доверия никто не доходит.
 * ========================================================================= */

.ch-scope {
    --ch-brand: #1f63d6;
    --ch-brand-dark: #1a55ba;
    /* Текст на фирменном цвете. В палитрах дизайн-системы он свой у каждой
       темы: у «Дерзкого» кнопка жёлтая, и белые буквы на ней не читаются. */
    --ch-on-brand: #fff;
    --ch-tint: #eef4fe;
    --ch-tint-2: #f6f9ff;
    --ch-ink: #101828;
    --ch-ink-2: #475467;
    --ch-muted: #667487;
    --ch-line: #e3eaf6;
    --ch-surface: #fff;
    --ch-r: 14px;
    --ch-r-sm: 10px;
    --ch-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    --ch-font: "Onest", "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

    background: var(--ch-surface);
    color: var(--ch-ink);
    font-family: var(--ch-font);
    font-size: 16px;
    line-height: 1.45;
}
.ch-scope *, .ch-scope *::before, .ch-scope *::after { box-sizing: border-box; }
body.ch-scope { margin: 0; }
.ch-wrap { width: min(1280px, 100%); margin-inline: auto; padding-inline: clamp(16px, 3vw, 32px); }
.ch-scope a { color: inherit; text-decoration: none; }
/* Всё, что нажимается, — с «рукой»: у <button> и <summary> браузер по
   умолчанию ставит стрелку. :where — нулевая специфичность, любое своё
   правило блока (cursor: default у неактивного) важнее. */
:where(.ch-scope) :where(button, [role="button"], summary, select):not(:where(:disabled)) { cursor: pointer; }
.ch-scope h1, .ch-scope h2 { margin: 0; letter-spacing: -.02em; line-height: 1.12; }
.ci { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ci-sm { width: 16px; height: 16px; }
.ci-cat { width: 30px; height: 30px; stroke-width: 1.5; }

/* ---------- Шапка ---------------------------------------------------------
 * Логотип и «Каталог» слева: кнопка каталога — главный вход в товары, поэтому
 * она единственная залита цветом. Действия справа значками с подписями. */
.ch-header { position: relative; z-index: 40; border-bottom: 1px solid var(--ch-line); background: var(--ch-surface); }
.ch-header-in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.ch-logo { font-weight: 800; font-size: 17px; letter-spacing: .04em; }
.ch-burger { display: none; width: 40px; height: 40px; padding: 0; align-items: center; justify-content: center;
    border: 1px solid var(--ch-line); border-radius: var(--ch-r-sm); background: var(--ch-surface); color: var(--ch-ink); cursor: pointer; }
.ch-scope .ch-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px;
    border: 0; border-radius: var(--ch-r-sm); background: var(--ch-brand); color: var(--ch-on-brand, #fff); cursor: pointer;
    font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.ch-scope .ch-btn:hover { background: var(--ch-brand-dark); }
.ch-btn-catalog { padding-inline: 16px; }
.ch-btn-wide { width: 100%; }
.ch-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--ch-ink-2); }
.ch-nav a:hover { color: var(--ch-brand); }

/* Меню «Каталог»: панель во всю ширину под шапкой, колонка на раздел.
   .ch-cmenu тянется на всю высоту шапки — путь курсора от кнопки к панели
   не выходит из него, и меню не захлопывается на полпути. Открытие — с
   короткой задержкой, чтобы не мигало от курсора, проходящего мимо. */
.ch-cmenu { display: flex; align-items: center; align-self: stretch; }
.ch-cmenu-caret { transform: rotate(90deg); transition: transform .15s; opacity: .8; }
.ch-cmenu-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
    border-top: 1px solid var(--ch-line); border-bottom: 1px solid var(--ch-line); background: var(--ch-surface);
    box-shadow: 0 24px 48px -24px rgba(16, 24, 40, .3);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .14s ease, transform .14s ease, visibility 0s linear .14s; }
.ch-cmenu.has-menu:hover .ch-cmenu-panel, .ch-cmenu.has-menu:focus-within .ch-cmenu-panel {
    visibility: visible; opacity: 1; transform: none; transition-delay: .08s, .08s, .08s; }
.ch-cmenu.has-menu:hover .ch-cmenu-caret, .ch-cmenu.has-menu:focus-within .ch-cmenu-caret { transform: rotate(-90deg); }
.ch-cmenu.has-menu.is-closed .ch-cmenu-panel { visibility: hidden; opacity: 0; transition: none; }
.ch-cmenu.has-menu.is-closed .ch-cmenu-caret { transform: rotate(90deg); }
.ch-cmenu-in { display: grid; gap: 20px; padding-block: 24px 26px; }
.ch-cmenu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px 32px;
    max-height: min(68vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
.ch-cmenu-root { display: flex; align-items: center; gap: 12px; color: var(--ch-ink); }
.ch-cmenu-ic { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px;
    border-radius: var(--ch-r-sm); background: var(--ch-tint); color: var(--ch-brand-ink); }
.ch-cmenu-name { display: grid; gap: 2px; min-width: 0; }
.ch-cmenu-name b { font-size: 15px; font-weight: 700; line-height: 1.25; }
.ch-cmenu-name small { font-size: 12.5px; color: var(--ch-muted); }
.ch-cmenu-root:hover b { color: var(--ch-brand-ink); }
.ch-cmenu-kids { display: grid; gap: 8px; margin: 12px 0 0; padding: 0 0 0 52px; list-style: none; font-size: 14px; color: var(--ch-ink-2); }
.ch-cmenu-kids a:hover { color: var(--ch-brand-ink); }
.ch-cmenu-more { font-weight: 600; color: var(--ch-brand-ink); }
.ch-cmenu-all { justify-self: start; display: inline-flex; align-items: center; gap: 6px;
    padding-top: 16px; border-top: 1px solid var(--ch-line); width: 100%;
    font-size: 14px; font-weight: 600; color: var(--ch-brand-ink); }
.ch-mcats { display: none; }
@media (prefers-reduced-motion: reduce) {
    .ch-cmenu-panel, .ch-cmenu-caret { transition: none; }
}
.ch-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.ch-action { display: inline-grid; justify-items: center; gap: 3px; font-size: 11px; color: var(--ch-ink-2); }
.ch-action:hover { color: var(--ch-brand); }

/* ---------- Общее в первом блоке ---------- */
.ch-hero { padding-block: clamp(26px, 3.4vw, 44px) clamp(30px, 4vw, 52px); }
.ch-eyebrow { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ch-muted); }
.ch-hero h1 { font-size: clamp(26px, 1.4rem + 1.6vw, 40px); font-weight: 800; }
.ch-sub { margin: 10px 0 0; max-width: 62ch; font-size: 15.5px; color: var(--ch-ink-2); }
.ch-h2 { font-size: clamp(17px, 1rem + .4vw, 21px); font-weight: 800; margin: 0; }
.ch-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 26px 0 14px; }
.ch-scope .ch-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ch-brand); white-space: nowrap; }
.ch-scope .ch-link:hover { color: var(--ch-brand-dark); }

/* Заголовок с рисунком: текст слева, сцена справа. Рисунок необязателен —
   убрали, и колонка текста занимает всю ширину. */
.ch-head-art { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.ch-head-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 3vw, 40px); align-items: end; }
.ch-head-text { min-width: 0; }
.ch-head-art .ch-search { margin-top: 20px; }
.ch-art-box { display: flex; justify-content: center; }
.ch-art { width: 100%; max-width: 340px; height: auto; }
.ch-art .a-fill { fill: var(--ch-tint); stroke: var(--ch-brand); stroke-width: 1.6; }
/* Светлая часть рисунка — поверхность темы, а не белый: на тёмной палитре
   («Дерзкий», ночная тема) белые пятна выжигали весь первый экран. */
.ch-art .a-soft { fill: var(--ch-surface); stroke: var(--ch-brand); stroke-width: 1.2; opacity: .75; }
.ch-art .a-line { stroke: var(--ch-brand); stroke-width: 1.6; stroke-linecap: round; }
.ch-art .a-shadow { fill: var(--ch-tint); opacity: .7; }

/* ---------- Поиск ---------------------------------------------------------
 * Поле с кнопкой внутри: на любой ширине это один элемент, а не «поле и
 * где-то рядом кнопка». */
.ch-search { position: relative; display: flex; align-items: center; gap: 8px;
    padding: 6px 6px 6px 14px; border: 1px solid var(--ch-line); border-radius: 12px; background: var(--ch-surface); }
.ch-search:focus-within { border-color: var(--ch-brand); box-shadow: 0 0 0 4px var(--ch-tint); }
.ch-search-ic { display: inline-flex; color: var(--ch-muted); }
.ch-search input {
    flex: 1; min-width: 0; padding: 10px 0; border: 0; background: none; outline: none;
    font: inherit; font-size: 15px; color: var(--ch-ink);
}
.ch-search input::placeholder { color: var(--ch-muted); }
.ch-search .ch-btn { padding-inline: 22px; }
.ch-search-lg { margin-top: 22px; padding: 8px 8px 8px 18px; border-radius: 14px; }
.ch-search-lg input { padding-block: 13px; font-size: 16px; }
.ch-head-split .ch-search { margin-bottom: 4px; }

/* Подсказки остаются в ширине поля, в том числе на телефоне. */
.ch-search.is-suggest-open { z-index: 45; }
.ch-suggest { position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 50;
    max-height: min(420px, 55vh); overflow-y: auto; overscroll-behavior: contain;
    padding: 6px; border: 1px solid var(--ch-line); border-radius: var(--ch-r);
    background: var(--ch-surface); box-shadow: 0 12px 32px rgba(16, 24, 40, .16); }
.ch-suggest[hidden] { display: none; }
.ch-suggest-item { display: flex; align-items: center; gap: 12px; padding: 10px;
    border-radius: var(--ch-r-sm); text-align: left; }
.ch-suggest-item:hover, .ch-suggest-item[aria-selected="true"] { background: var(--ch-tint); }
.ch-suggest-img, .ch-suggest-icon { width: 48px; height: 48px; flex: 0 0 48px;
    border-radius: var(--ch-r-sm); background: var(--ch-tint-2); object-fit: contain; }
.ch-suggest-icon { display: grid; place-items: center; color: var(--ch-brand); font-size: 22px; }
.ch-suggest-copy { min-width: 0; }
.ch-suggest-copy b { display: block; color: var(--ch-ink); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.ch-suggest-copy small { display: block; margin-top: 3px; color: var(--ch-muted); font-size: 12px; overflow-wrap: anywhere; }
.ch-suggest mark { background: var(--ch-tint); color: var(--ch-brand); font-weight: 700; }
.ch-suggest-all { color: var(--ch-brand); font-size: 14px; font-weight: 600; border-top: 1px solid var(--ch-line); border-radius: 0; }
.ch-suggest-message { padding: 12px 10px; color: var(--ch-muted); font-size: 14px; }
.ch-search-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; }

/* ---------- Полоса доверия ---------- */
.ch-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
    list-style: none; margin: clamp(22px, 3vw, 34px) 0 0; padding: 0; }
.ch-trust li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ch-ink-2); }
.ch-trust b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ch-ink); }
.ch-trust-ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    flex: 0 0 auto; border-radius: var(--ch-r-sm); background: var(--ch-tint); color: var(--ch-brand); }

/* ---------- Категории ---------- */
.ch-cats { display: grid; gap: 14px; }
.ch-cats-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ch-cats-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; }
.ch-cat { display: grid; gap: 10px; padding: 16px 14px; border: 1px solid var(--ch-line); border-radius: var(--ch-r);
    background: var(--ch-surface); transition: border-color .12s, box-shadow .12s, transform .12s; }
.ch-cat:hover { border-color: var(--ch-brand); box-shadow: 0 6px 20px rgba(31, 99, 214, .10); transform: translateY(-2px); }
.ch-cat-ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
    border-radius: 12px; background: var(--ch-tint); color: var(--ch-brand); }
.ch-cat-tile { justify-items: center; text-align: center; }
.ch-cat-tile .ch-cat-text b { font-size: 13.5px; font-weight: 600; }
.ch-cat-card { padding: 18px; }
.ch-cat-card .ch-cat-text { display: grid; gap: 4px; }
.ch-cat-card .ch-cat-text b { font-size: 15px; font-weight: 700; }
.ch-cat-card .ch-cat-text span { font-size: 13px; color: var(--ch-muted); }
.ch-cats-more { margin-top: 16px; display: none; }

/* ---------- Быстрые переходы ---------- */
.ch-quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.ch-quick-item { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px;
    border: 1px solid var(--ch-line); border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ch-ink); }
.ch-quick-item .ci { color: var(--ch-brand); }
.ch-quick-item:hover { border-color: var(--ch-brand); background: var(--ch-tint-2); }
.ch-quick + .ch-row { margin-top: 26px; }
.ch-search + .ch-h2, .ch-head-art + .ch-h2, .ch-head-split + .ch-h2,
.ch-trust + .ch-h2 { margin-top: clamp(22px, 3vw, 32px); }

/* ---------- Лента категорий по интересам ---------- */
.ch-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ch-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--ch-line);
    border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.ch-pill .ci-cat { width: 18px; height: 18px; color: var(--ch-brand); }
.ch-pill:hover { border-color: var(--ch-brand); background: var(--ch-tint-2); }

/* ---------- Подборки ---------- */
.ch-sets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ch-set { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center;
    padding: 18px; border: 1px solid var(--ch-line); border-radius: var(--ch-r); background: var(--ch-tint-2); }
.ch-set:hover { border-color: var(--ch-brand); }
.ch-set-text { display: grid; gap: 6px; }
.ch-set-text b { font-size: 15.5px; font-weight: 700; }
.ch-set-text > span { font-size: 13px; color: var(--ch-ink-2); }
.ch-set-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ch-brand); }
.ch-set-art { display: flex; align-items: center; }
.ch-art-sm { width: 108px; }

/* ---------- Планшет ---------- */
@media (max-width: 1100px) {
    .ch-nav { display: none; }
    .ch-actions { gap: 16px; }
    .ch-action-t { display: none; }
    .ch-cats-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ch-cats-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ch-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ch-sets { grid-template-columns: 1fr; }
    .ch-head-split { grid-template-columns: 1fr; align-items: start; }
    .ch-head-art { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); }
    .ch-art { max-width: 260px; }
}

/* ---------- Телефон -------------------------------------------------------
 * Mobile first по смыслу: поиск и категории — первое, что видно; рисунок
 * уменьшается и встаёт рядом с заголовком, а не занимает экран; разделы
 * уезжают под бургер. */
@media (max-width: 700px) {
    .ch-burger { display: inline-flex; }
    .ch-header-in { gap: 10px; min-height: 60px; }
    /* Логотип остаётся на месте: «Каталог», поиск и вход уехали в нижнюю
       панель (ch_tabbar), и в строку свободно встают бургер, логотип,
       избранное и корзина — ровно как в макете телефона. */
    .ch-scope .ch-btn-catalog { display: none; }
    .ch-action[data-role="search"], .ch-action[data-role="login"] { display: none; }
    .ch-actions { gap: 18px; }
    .ch-action .ci { width: 22px; height: 22px; }
    .ch-header.is-open .ch-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0;
        width: 100%; order: 9; padding: 6px 0 12px; }
    .ch-header.is-open .ch-nav a { padding: 11px 2px; border-top: 1px solid var(--ch-line); font-size: 15px; }
    .ch-cmenu { display: none; }
    .ch-header.is-open .ch-mcats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
        width: 100%; order: 8; padding: 10px 0 4px; }
    .ch-mcats a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px;
        border-radius: var(--ch-r-sm); background: var(--ch-tint-2); font-size: 14px; font-weight: 600; line-height: 1.2; }
    .ch-mcats a .ci { flex: 0 0 auto; color: var(--ch-brand-ink); }
    .ch-header-in { flex-wrap: wrap; }

    .ch-hero { padding-block: 18px 28px; }
    /* Рисунок встаёт рядом с заголовком, а подводка и поиск идут во всю
       ширину под ними. display: contents раскрывает колонку текста в ту же
       сетку — иначе поле поиска делит ширину с рисунком и от подсказки
       остаётся «Поиск тов». */
    .ch-head-art { display: grid; grid-template-columns: minmax(0, 1fr) 116px; column-gap: 12px; align-items: start; }
    .ch-head-art .ch-head-text { display: contents; }
    .ch-head-art .ch-head-top { grid-column: 1; grid-row: 1; }
    .ch-head-art .ch-art-box { grid-column: 2; grid-row: 1; width: 116px; margin: 0; }
    .ch-head-art .ch-sub { grid-column: 1 / -1; grid-row: 2; }
    .ch-head-art .ch-search { grid-column: 1 / -1; grid-row: 3; margin-top: 14px; }
    .ch-art { max-width: 116px; }
    .ch-hero h1 { font-size: clamp(22px, 5.4vw, 28px); }
    .ch-sub { font-size: 14px; }
    .ch-search input { font-size: 15px; }
    /* Кнопку «Найти» на телефоне убираем: она съедала половину поля, и от
       подсказки оставалось «Поиск тов». Запрос отправляется с клавиатуры. */
    .ch-search { padding: 4px 14px; }
    .ch-search .ch-btn { display: none; }
    .ch-search input { padding-block: 12px; }
    .ch-search-lg { padding: 4px 14px; }

    .ch-row { margin: 20px 0 12px; }
    .ch-cats { gap: 10px; }
    .ch-cats-tiles, .ch-cats-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ch-cat { padding: 14px 12px; }
    .ch-cat-tile { justify-items: start; text-align: left; }
    .ch-cat-ic { width: 44px; height: 44px; }
    .ch-cat-card .ch-cat-text span { display: none; }
    .ch-cats-more { display: block; }
    .ch-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ch-quick-item { justify-content: flex-start; }
    /* Полоса доверия — тремя короткими карточками в ряд: столбиком она
       отодвигала категории за край экрана. */
    .ch-trust { clear: both; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
    .ch-trust li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px;
        border: 1px solid var(--ch-line); border-radius: 12px; font-size: 11.5px; line-height: 1.25; }
    .ch-trust b { font-size: 12.5px; }
    /* Второй строкой пояснение не помещается: три карточки по 110 px рвут
       «по всей России» на четыре строки. Оставляем главное. */
    .ch-trust li > span > span { display: none; }
    .ch-trust-ic { width: 32px; height: 32px; }
    .ch-trust-ic .ci { width: 17px; height: 17px; }
    /* Лента интересов на телефоне листается вбок: восемь пилюль в столбик
       отодвинули бы подборки за край экрана. */
    .ch-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
        margin-inline: calc(-1 * clamp(16px, 3vw, 32px)); padding-inline: clamp(16px, 3vw, 32px); }
    .ch-pills::-webkit-scrollbar { display: none; }
    .ch-set { grid-template-columns: minmax(0, 1fr) auto; padding: 14px; }
    .ch-art-sm { width: 84px; }
}

/* ===========================================================================
 * СТРАНИЦА КАТЕГОРИИ — четыре раскладки.
 *
 * Страница сужает ассортимент, поэтому по вертикали всё выстроено так: путь →
 * название → подразделы → фильтры → сортировка и счётчик → товары. Ничего
 * рекламного между ними нет, длинный текст — под списком.
 *
 * Панель фильтров: на широком экране колонка слева (раскладки 2 и 4), на узком
 * — выдвижная. Открывается ссылкой на якорь (`:target`), закрывается крестиком
 * и нажатием мимо панели; скрипт для этого не нужен.
 * ========================================================================= */

/* Свои цвета страницы категории. Их три, и каждый проверен на читаемость во
   всех дизайн-системах: скидка (белым по красному), наличие (зелёным по
   карточке) и звезда рейтинга. Зелёный свой у светлой и тёмной темы —
   один на обе сливается либо с бумагой, либо с ночным фоном (его ставит
   inc/theme.php). */
.ch-scope { --ch-sale: #d13b26; --ch-on-sale: #fff; --ch-ok: #0f7a4d; --ch-star: #f0a422; }
.ci-xs { width: 14px; height: 14px; }
.ch-catpage { padding-block: 18px clamp(30px, 4vw, 52px); }

/* ---------- Путь по разделам ---------- */
.ch-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.ch-crumbs li { display: inline-flex; align-items: center; gap: 7px; }
.ch-scope .ch-crumbs a { color: var(--ch-muted); }
.ch-scope .ch-crumbs a:hover { color: var(--ch-brand); }
.ch-crumbs .ci-xs { opacity: .5; }
.ch-crumbs [aria-current] { color: var(--ch-ink-2); }

/* ---------- Название и счётчик ---------- */
.ch-catpage-head { margin-top: 12px; }
.ch-catpage-head-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.ch-catpage-head h1 { font-size: clamp(24px, 1.2rem + 1.3vw, 34px); font-weight: 800; }
.ch-catpage-head .ch-found { font-size: 14.5px; color: var(--ch-muted); }
.ch-catpage-head .ch-sub { margin-top: 6px; max-width: 86ch; font-size: 14.5px; }
/* Уплотнённая раскладка: название и счётчик одной строкой, пояснение снято —
   на странице сравнения каждая строка отодвигает товары вниз. */
.ch-catpage-head-inline .ch-sub { display: none; }

/* ---------- Подразделы ---------- */
.ch-subcats { margin-top: 16px; }
.ch-subcats-pill, .ch-subcats-line { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-scope .ch-subpill { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px;
    border: 1px solid var(--ch-line); border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.ch-subpill b { font-size: 12px; font-weight: 500; color: var(--ch-muted); }
.ch-scope .ch-subpill:hover { border-color: var(--ch-brand); color: var(--ch-brand); }
.ch-subcats-line { gap: 6px; margin-top: 10px; }
.ch-subcats-line .ch-subpill { padding: 6px 12px; font-size: 13px; }
.ch-subcats-card { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ch-scope .ch-subcat { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
    padding: 13px 14px; border: 1px solid var(--ch-line); border-radius: var(--ch-r); background: var(--ch-surface); }
.ch-scope .ch-subcat:hover { border-color: var(--ch-brand); box-shadow: 0 6px 18px rgba(16, 24, 40, .07); }
.ch-subcat b { font-size: 14.5px; font-weight: 600; }
.ch-subcat-n { font-size: 12.5px; color: var(--ch-muted); }
.ch-subcat-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto;
    border-radius: 12px; background: var(--ch-tint); color: var(--ch-brand); }
.ch-h2-sep { margin-top: 26px; }

/* ---------- Быстрый подбор ---------- */
.ch-qfilters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ch-scope .ch-qfilter { padding: 9px 15px; border: 1px solid var(--ch-line); border-radius: 999px;
    background: var(--ch-tint-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.ch-scope .ch-qfilter:hover { border-color: var(--ch-brand); color: var(--ch-brand); background: var(--ch-tint); }

/* ---------- Строка над товарами ---------- */
.ch-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
.ch-tools .ch-found { font-size: 14px; color: var(--ch-muted); }
.ch-tools-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ch-scope .ch-tool-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
    border: 1px solid var(--ch-line); border-radius: var(--ch-r-sm); background: var(--ch-surface);
    font-size: 14px; font-weight: 600; color: var(--ch-ink); }
.ch-scope .ch-tool-btn:hover { border-color: var(--ch-brand); color: var(--ch-brand); }
.ch-tool-btn b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--ch-brand); color: var(--ch-on-brand); font-size: 11.5px; }
/* Там, где фильтры стоят колонкой (раскладки 2 и 4), кнопка нужна только на
   узком экране: на широком панель и так на виду. */
.ch-catpage-v2 .ch-filters-btn, .ch-catpage-v4 .ch-filters-btn { display: none; }
.ch-views { display: inline-flex; border: 1px solid var(--ch-line); border-radius: var(--ch-r-sm); overflow: hidden; }
.ch-scope .ch-views a { display: inline-grid; place-items: center; width: 38px; height: 38px; color: var(--ch-muted); }
.ch-scope .ch-views a.active { background: var(--ch-tint); color: var(--ch-brand); }

/* ---------- Выпадающие списки (сортировка, полоса фильтров) ---------- */
.ch-drop { position: relative; }
.ch-drop > summary { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; list-style: none;
    border: 1px solid var(--ch-line); border-radius: var(--ch-r-sm); background: var(--ch-surface);
    font-size: 14px; color: var(--ch-ink-2); cursor: pointer; white-space: nowrap; }
.ch-drop > summary::-webkit-details-marker { display: none; }
.ch-drop > summary b { font-weight: 600; color: var(--ch-ink); }
.ch-drop > summary:hover { border-color: var(--ch-brand); }
.ch-drop[open] > summary { border-color: var(--ch-brand); }
.ch-drop > summary .ci-xs:last-child { transition: transform .15s; }
.ch-drop[open] > summary .ci-xs:last-child { transform: rotate(180deg); }
.ch-drop-body { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; min-width: 232px; padding: 8px;
    border: 1px solid var(--ch-line); border-radius: var(--ch-r); background: var(--ch-surface);
    box-shadow: 0 16px 40px rgba(16, 24, 40, .16); }
.ch-scope .ch-sort .ch-drop-body a { display: block; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--ch-ink-2); }
.ch-scope .ch-sort .ch-drop-body a:hover { background: var(--ch-tint-2); color: var(--ch-ink); }
.ch-scope .ch-sort .ch-drop-body a.active { color: var(--ch-brand); font-weight: 600; }
.ch-fbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ch-narrow-only { display: none; }
.ch-fdrop .ch-drop-body { right: auto; left: 0; min-width: 268px; padding: 12px 14px; }
.ch-fdrop .ch-fbody { padding-bottom: 0; }
.ch-fdrop-go { margin-top: 12px; }

/* ---------- Панель фильтров ------------------------------------------------
 * `side` — колонка слева на широком экране, `drawer` — всегда выдвижная.
 * Ниже 1100 px обе ведут себя одинаково: выезжают сбоку поверх страницы. */
.ch-side { padding: 4px 16px 16px; border: 1px solid var(--ch-line); border-radius: var(--ch-r); background: var(--ch-surface); }
.ch-side-side { position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow: auto; }
.ch-side-head { display: none; align-items: center; justify-content: space-between; gap: 12px;
    position: sticky; top: 0; z-index: 2; padding: 14px 0 10px; background: var(--ch-surface); border-bottom: 1px solid var(--ch-line); }
.ch-side-head b { font-size: 16px; }
.ch-scope .ch-side-close { display: inline-grid; place-items: center; width: 34px; height: 34px;
    border: 1px solid var(--ch-line); border-radius: var(--ch-r-sm); color: var(--ch-ink-2); }
.ch-side-scrim { display: none; }

.ch-side-drawer, .ch-side-drawer.ch-side { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0;
    width: min(360px, 92vw); border-radius: 0; border: 0; border-right: 1px solid var(--ch-line);
    padding: 0 18px 18px; overflow: auto; transform: translateX(-102%); transition: transform .22s ease; }
.ch-side-drawer .ch-side-head { display: flex; }
.ch-side-drawer:target { transform: none; box-shadow: 0 0 60px rgba(16, 24, 40, .22); }
.ch-side-drawer:target ~ .ch-side-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(16, 24, 40, .45); }

.ch-fgroup { border-bottom: 1px solid var(--ch-line); }
.ch-fgroup:last-of-type { border-bottom: 0; }
.ch-fgroup > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 13px 0; list-style: none; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.ch-fgroup > summary::-webkit-details-marker { display: none; }
.ch-fgroup > summary .ci-xs { color: var(--ch-muted); transition: transform .15s; }
.ch-fgroup[open] > summary .ci-xs { transform: rotate(180deg); }
.ch-fbody { display: grid; gap: 9px; padding-bottom: 14px; }
.ch-check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.ch-check input, .ch-cmp input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ch-box { display: grid; place-items: center; width: 18px; height: 18px; flex: 0 0 auto;
    border: 1.5px solid var(--ch-line); border-radius: 5px; background: var(--ch-surface); color: transparent; }
.ch-check input:checked + .ch-box, .ch-cmp input:checked + .ch-box { background: var(--ch-brand); border-color: var(--ch-brand); color: var(--ch-on-brand); }
.ch-check input:focus-visible + .ch-box, .ch-cmp input:focus-visible + .ch-box { border-color: var(--ch-brand); box-shadow: 0 0 0 3px var(--ch-tint); }
.ch-check-t { flex: 1; min-width: 0; }
.ch-check b { font-size: 12.5px; font-weight: 500; color: var(--ch-muted); }
.ch-frange { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ch-frange label { display: flex; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid var(--ch-line); border-radius: var(--ch-r-sm); }
.ch-frange label:focus-within { border-color: var(--ch-brand); }
.ch-frange span { font-size: 13px; color: var(--ch-muted); }
.ch-frange input { width: 100%; min-width: 0; padding: 0; border: 0; background: none; outline: none;
    font: inherit; font-size: 14px; color: var(--ch-ink); -moz-appearance: textfield; }
.ch-frange input::-webkit-outer-spin-button, .ch-frange input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ch-fpresets { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-fpreset { padding: 6px 11px; border: 1px solid var(--ch-line); border-radius: 999px; background: var(--ch-surface);
    font: inherit; font-size: 12.5px; color: var(--ch-ink-2); cursor: pointer; }
.ch-fpreset:hover { border-color: var(--ch-brand); color: var(--ch-brand); }
.ch-fmore { padding: 2px 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600;
    color: var(--ch-ink); text-align: left; cursor: pointer; text-decoration: underline;
    text-decoration-color: var(--ch-brand); text-underline-offset: 3px; }
.ch-fmore:hover { color: var(--ch-brand); }
.ch-side-foot { display: grid; gap: 10px; justify-items: center; margin-top: 16px; }
.ch-side-foot .ch-btn { width: 100%; }
.ch-scope .ch-fclear { font-size: 13.5px; color: var(--ch-muted); }
.ch-scope .ch-fclear:hover { color: var(--ch-brand); }

/* ---------- Выбранные фильтры ---------- */
.ch-applied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.ch-scope .ch-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
    background: var(--ch-tint); color: var(--ch-ink); font-size: 13px; font-weight: 600; }
.ch-chip .ci-xs { color: var(--ch-brand); }
.ch-scope .ch-chip:hover { background: var(--ch-brand); color: var(--ch-on-brand); }
.ch-scope .ch-chip:hover .ci-xs { color: inherit; }
.ch-scope .ch-chip-reset { font-size: 13px; color: var(--ch-muted); text-decoration: underline; text-underline-offset: 3px; }
.ch-scope .ch-chip-reset:hover { color: var(--ch-brand); }

/* ---------- Основная область ---------- */
.ch-catpage-body { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 18px; }
.ch-catpage-body-tight { grid-template-columns: 236px minmax(0, 1fr); gap: 18px; }
/* Колонка уже обычной: два поля цены в строку обрезают «249 990». */
.ch-catpage-body-tight .ch-frange { grid-template-columns: 1fr; }
.ch-catpage-main { min-width: 0; }
.ch-catpage-body .ch-tools { margin-top: 0; }

/* ---------- Товары ---------- */
.ch-goods-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
/* Рядом с колонкой фильтров места меньше — три в ряд, иначе карточка сжимается
   до нечитаемой. */
.ch-catpage-body .ch-goods-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ch-goods-rows { display: grid; gap: 12px; }
.ch-good { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px;
    border: 1px solid var(--ch-line); border-radius: var(--ch-r); background: var(--ch-surface);
    transition: border-color .12s, box-shadow .12s; }
.ch-good:hover { border-color: var(--ch-brand); box-shadow: 0 8px 24px rgba(16, 24, 40, .08); }
.ch-good-ph { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden;
    border-radius: var(--ch-r-sm); background: var(--ch-tint-2); }
.ch-art-good { width: 78%; max-width: none; height: auto; }
.ch-badge { position: absolute; left: 8px; top: 8px; padding: 4px 9px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .01em; }
.ch-badge-sale { background: var(--ch-sale); color: var(--ch-on-sale); }
.ch-badge-hit { background: var(--ch-brand); color: var(--ch-on-brand); }
.ch-badge-new { background: var(--ch-tint); color: var(--ch-ink); }
.ch-good-fav { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 32px; height: 32px;
    padding: 0; border: 1px solid var(--ch-line); border-radius: 50%; background: var(--ch-surface);
    color: var(--ch-muted); cursor: pointer; }
.ch-good-fav:hover { color: var(--ch-sale); border-color: var(--ch-sale); }
/* Уже в избранном (магазин): сердечко залито. */
.ch-good-fav.is-on { color: var(--ch-sale); border-color: var(--ch-sale); }
.ch-good-fav.is-on svg { fill: currentColor; }
/* Товар закончился: вместо кнопки покупки — спокойная надпись. */
.ch-btn.is-off, .ch-pmini-cart.is-off { background: transparent; color: var(--ch-muted); border: 1px dashed var(--ch-line);
    box-shadow: none; cursor: default; pointer-events: none; }
.ch-good-body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.ch-rate { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ch-muted); }
.ch-rate .ci-xs { color: var(--ch-star); }
.ch-rate b { font-weight: 700; color: var(--ch-ink); }
.ch-scope .ch-good-name { font-size: 14px; line-height: 1.3; color: var(--ch-ink); }
.ch-scope .ch-good-name:hover { color: var(--ch-brand); }
.ch-good-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.ch-price { display: grid; }
.ch-price b { font-size: 18px; font-weight: 800; white-space: nowrap; }
.ch-price s { font-size: 12.5px; color: var(--ch-muted); }
.ch-scope .ch-btn-buy { padding: 9px 14px; font-size: 13.5px; }
.ch-stock { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ch-ok); }
.ch-stock-order { color: var(--ch-muted); }
/* Магазин: мало осталось — тем же зелёным, но жирнее; закончился — тихо. */
.ch-stock-few { font-weight: 600; }
.ch-stock-out { color: var(--ch-muted); }
.ch-cmp { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ch-ink-2); cursor: pointer; }

/* Строка товара: слева рисунок, посередине название и характеристики, справа
   цена и кнопка. Характеристики стоят в одну линию — так соседние модели
   сравниваются глазами, без открытия карточек. */
.ch-good-row { flex-direction: row; display: grid; grid-template-columns: 132px minmax(0, 1fr) 208px;
    gap: 16px; align-items: center; padding: 12px 14px; }
.ch-good-row .ch-good-ph { width: 132px; }
.ch-good-row .ch-good-name { font-size: 15.5px; font-weight: 600; }
.ch-good-row .ch-good-body { gap: 6px; }
.ch-specs { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 2px 0 0; }
.ch-specs > div { display: flex; gap: 6px; font-size: 12.5px; }
.ch-specs dt { color: var(--ch-muted); }
.ch-specs dd { margin: 0; font-weight: 600; }
.ch-good-buy { display: grid; gap: 8px; justify-items: start; }
.ch-good-buy .ch-btn { width: 100%; }
.ch-good-row .ch-good-fav { top: 12px; right: 12px; }

/* ---------- Страницы ---------- */
.ch-pager { display: grid; justify-items: center; gap: 14px; margin-top: 24px; }
.ch-more { padding: 12px 26px; border: 1px solid var(--ch-line); border-radius: var(--ch-r-sm);
    background: var(--ch-surface); font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ch-ink); cursor: pointer; }
.ch-more:hover { border-color: var(--ch-brand); color: var(--ch-brand); }
.ch-pages { display: flex; gap: 6px; }
.ch-scope .ch-pages a { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px;
    border-radius: 9px; font-size: 14px; color: var(--ch-ink-2); }
.ch-scope .ch-pages a:hover { background: var(--ch-tint-2); }
.ch-scope .ch-pages a.active { background: var(--ch-brand); color: var(--ch-on-brand); font-weight: 700; }

/* ---------- Панель сравнения ---------- */
.ch-cmpbar { position: sticky; bottom: 14px; z-index: 20; display: flex; align-items: center; gap: 14px;
    width: fit-content; margin: 18px auto 0; padding: 9px 10px 9px 18px; border-radius: 999px;
    background: var(--ch-ink); color: var(--ch-surface); box-shadow: 0 14px 34px rgba(16, 24, 40, .24); }
.ch-cmpbar[hidden] { display: none; }
.ch-cmpbar-n { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.ch-cmpbar-clear { border: 0; background: none; font: inherit; font-size: 13px; color: inherit; opacity: .7; cursor: pointer; }
.ch-cmpbar-clear:hover { opacity: 1; }

/* ---------- Текст под товарами ---------- */
.ch-seo { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--ch-line); }
.ch-seo p { margin: 10px 0 0; max-width: 92ch; font-size: 14.5px; color: var(--ch-ink-2); }

/* ---------- Планшет ---------- */
@media (max-width: 1100px) {
    /* Колонка фильтров съела бы половину ширины — прячем её в выдвижную
       панель, кнопка «Фильтры» стоит первой в строке над товарами. */
    .ch-catpage-body, .ch-catpage-body-tight { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .ch-catpage-v2 .ch-filters-btn, .ch-catpage-v4 .ch-filters-btn { display: inline-flex; }
    .ch-side-side { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(360px, 92vw);
        max-height: none; border-radius: 0; border: 0; border-right: 1px solid var(--ch-line);
        padding: 0 18px 18px; overflow: auto; transform: translateX(-102%); transition: transform .22s ease; }
    .ch-side-side .ch-side-head { display: flex; }
    .ch-side-side:target { transform: none; box-shadow: 0 0 60px rgba(16, 24, 40, .22); }
    .ch-side-side:target ~ .ch-side-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(16, 24, 40, .45); }
    .ch-goods-grid, .ch-catpage-body .ch-goods-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ch-subcats-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ch-good-row { grid-template-columns: 116px minmax(0, 1fr) 190px; }
    .ch-good-row .ch-good-ph { width: 116px; }
}

/* ---------- Телефон ---------- */
@media (max-width: 700px) {
    .ch-catpage { padding-block: 14px 26px; }
    .ch-catpage-head { margin-top: 8px; }
    .ch-catpage-head-top { gap: 2px 10px; }
    .ch-catpage-head h1 { font-size: clamp(21px, 5.2vw, 27px); }
    .ch-catpage-head .ch-sub { font-size: 13.5px; }
    /* Подразделы листаются вбок: восемь ссылок в столбик отодвинули бы товары
       на второй экран. */
    .ch-subcats-pill, .ch-subcats-line { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
        margin-inline: calc(-1 * clamp(16px, 3vw, 32px)); padding-inline: clamp(16px, 3vw, 32px); }
    .ch-subcats-pill::-webkit-scrollbar, .ch-subcats-line::-webkit-scrollbar { display: none; }
    .ch-subcats-card { grid-template-columns: 1fr; gap: 8px; }
    .ch-subcat { padding: 10px 12px; gap: 10px; }
    .ch-subcat-ic { width: 38px; height: 38px; }
    .ch-subcat-ic .ci-cat { width: 22px; height: 22px; }
    .ch-fbar { gap: 8px; }
    .ch-tools { gap: 8px; margin: 14px 0 12px; }
    /* «Сортировка:» на кнопке не помещается вместе со значением — оставляем
       значок и само значение. */
    .ch-sort-label { display: none; }
    .ch-tools-right { width: 100%; margin-left: 0; }
    .ch-tools .ch-sort { flex: 1; min-width: 0; }
    .ch-tools .ch-sort > summary { width: 100%; }
    .ch-tools .ch-sort > summary b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ch-drop-body { min-width: 0; width: max(200px, 100%); }
    .ch-goods-grid, .ch-catpage-body .ch-goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ch-good { padding: 10px; gap: 8px; }
    .ch-good-foot { flex-direction: column; align-items: stretch; gap: 8px; }
    .ch-scope .ch-btn-buy { width: 100%; }
    .ch-price b { font-size: 16.5px; }
    /* Строка товара на телефоне складывается: рисунок и название сверху,
       цена с кнопкой — во всю ширину под ними. */
    .ch-good-row { grid-template-columns: 96px minmax(0, 1fr); gap: 10px 12px; padding: 10px; }
    .ch-good-row .ch-good-ph { width: 96px; }
    .ch-good-row .ch-good-name { font-size: 14px; }
    /* Цена и кнопка в одну строку, под ними наличие и сравнение: столбиком
       эта четвёрка занимала пол-экрана на каждый товар. */
    .ch-good-row .ch-good-buy { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "price btn" "stock cmp"; align-items: center; gap: 6px 10px; }
    .ch-good-row .ch-good-buy .ch-price { grid-area: price; }
    .ch-good-row .ch-good-buy .ch-btn { grid-area: btn; width: auto; }
    .ch-good-row .ch-good-buy .ch-stock { grid-area: stock; }
    .ch-good-row .ch-good-buy .ch-cmp { grid-area: cmp; justify-self: end; }
    /* Название уходило под кнопку «в избранное» и теряло пару букв. */
    .ch-good-row .ch-good-name { padding-right: 32px; }
    /* Третья характеристика в строке не помещается и рвёт её пополам. */
    .ch-specs > div:nth-child(n+3) { display: none; }
    .ch-seo { margin-top: 26px; }
    /* Нижняя панель стоит поверх страницы — панель сравнения поднимается над
       ней, иначе «Сравнить» оказывается под «Корзиной». */
    .ch-cmpbar { width: auto; padding: 9px 12px; gap: 10px; bottom: 78px; }
    .ch-cmpbar-clear { display: none; }
}


/* ===========================================================================
 * Нижняя панель телефона и баннер категории.
 * ========================================================================= */

/* ---------- Нижняя панель ------------------------------------------------
 * Пять входов, как в приложении магазина. Её нет нигде, кроме телефона:
 * на планшете и десктопе всё это стоит в шапке, и вторая панель была бы
 * повтором. */
.ch-tabbar { display: none; }
.ch-tab-ic, .ch-action-ic { position: relative; display: inline-flex; }
.ch-badge-n { position: absolute; top: -6px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px;
    display: inline-grid; place-items: center; border-radius: 999px; background: var(--ch-brand);
    color: var(--ch-on-brand); font-size: 10px; font-weight: 700; line-height: 1; }

/* ---------- Баннер категории ---------------------------------------------
 * Одна мысль про сам раздел и ссылка «как выбрать» — не презентация компании:
 * она отодвигала бы товары, за которыми пришли. */
.ch-cbanner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 18px;
    align-items: center; margin-top: 16px; padding: 18px 22px; border: 1px solid var(--ch-line);
    border-radius: var(--ch-r); background: var(--ch-tint-2); }
.ch-cbanner-text b { display: block; font-size: clamp(18px, 1rem + .6vw, 22px); font-weight: 800; letter-spacing: -.01em; }
.ch-cbanner-text p { margin: 8px 0 0; max-width: 64ch; font-size: 14.5px; color: var(--ch-ink-2); }
.ch-cbanner .ch-btn { margin-top: 14px; }
.ch-cbanner-art { display: flex; justify-content: flex-end; }
.ch-cbanner-art .ch-art-good { width: 100%; max-width: 240px; }
.ch-scope .ch-subcat.active { border-color: var(--ch-brand); background: var(--ch-tint); }

@media (max-width: 1100px) {
    .ch-cbanner { grid-template-columns: minmax(0, 1fr) minmax(0, 190px); padding: 16px 18px; }
}

@media (max-width: 700px) {
    .ch-tabbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
        display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 6px 2px calc(6px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--ch-line); background: var(--ch-surface); }
    .ch-scope .ch-tab { display: grid; justify-items: center; gap: 3px; padding: 4px 2px;
        font-size: 10.5px; line-height: 1.2; color: var(--ch-muted); }
    .ch-scope .ch-tab.active { color: var(--ch-brand); }
    .ch-tab .ci { width: 22px; height: 22px; }
    /* Панель стоит поверх страницы — оставляем ей место, иначе она закрывает
       последнюю строку товаров и подвал. */
    .ch-scope { padding-bottom: 70px; }

    .ch-cbanner { grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; padding: 14px; margin-top: 12px; }
    .ch-cbanner-text p { font-size: 13px; }
    .ch-cbanner .ch-btn { margin-top: 12px; }
    .ch-cbanner-art .ch-art-good { max-width: 96px; }

    /* Путь по разделам: текущую страницу не повторяем — её имя стоит
       заголовком строкой ниже; остальное листается вбок. */
    .ch-crumbs ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
        margin-inline: calc(-1 * clamp(16px, 3vw, 32px)); padding-inline: clamp(16px, 3vw, 32px); }
    .ch-crumbs ol::-webkit-scrollbar { display: none; }
    .ch-crumbs li { white-space: nowrap; }
    .ch-crumbs li:last-child { display: none; }

    /* Строка над товарами разбивается на две: сверху счётчик найденного и
       переключатель вида, снизу «Фильтры» и сортировка. Вчетвером в одну
       строку они не помещаются — сортировка обрезалась до «по популя…». */
    .ch-tools { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; align-items: center; }
    .ch-tools-right { display: contents; }
    .ch-tools .ch-found { grid-area: 1 / 1; }
    .ch-tools .ch-views { grid-area: 1 / 2; justify-self: end; }
    .ch-tools .ch-filters-btn { grid-area: 2 / 1; }
    .ch-tools .ch-sort { grid-area: 2 / 2; }
    /* «по популярности» обрезалось до «по популярнос…» — отдаём ему отступы. */
    .ch-tools .ch-sort > summary { gap: 6px; padding-inline: 11px; }
    /* В «Шаблоне» фильтры стоят полосой выше, кнопки в строке нет — сортировке
       незачем ютиться в правой половине. */
    .ch-catpage-v1 .ch-tools .ch-sort { grid-area: 2 / 1 / 3 / 3; }

    /* Полоса фильтров: первой «Фильтры» (открывает всю панель), за ней два
       самых нужных списка — больше в строку не помещается. Сам список
       раскрывается на всю ширину полосы, поэтому его больше ничем не режет. */
    /* Три кнопки в строку помещаются впритык — отдаём им отступы. */
    .ch-fbar { position: relative; flex-wrap: wrap; gap: 6px; }
    .ch-fbar .ch-tool-btn, .ch-fbar .ch-drop > summary { padding-inline: 11px; gap: 6px; }
    .ch-fbar .ch-fdrop-form:nth-of-type(n+3) { display: none; }
    .ch-wide-only { display: none; }
    .ch-narrow-only { display: inline; }
    .ch-scope .ch-fbar-all { order: -1; }
    .ch-fbar .ch-drop { position: static; }
    .ch-fbar .ch-drop-body { left: 0; right: 0; top: calc(100% + 6px); width: auto; min-width: 0; }

    /* Плитки подразделов: значок сверху, три в ряд — так на первом экране
       виден весь раздел, а не три первые ссылки. */
    .ch-subcats-card { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .ch-scope .ch-subcat { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center;
        gap: 6px; padding: 12px 6px; }
    .ch-subcat b { font-size: 11.5px; line-height: 1.2; }
    .ch-subcat-n { font-size: 11px; }
    .ch-subcat-ic { width: 40px; height: 40px; }
    .ch-subcat-ic .ci-cat { width: 24px; height: 24px; }

    /* Карточка товара: сначала название, потом оценка — по макету телефона. */
    .ch-goods-grid .ch-good-name { order: 1; }
    .ch-goods-grid .ch-rate { order: 2; }
    .ch-goods-grid .ch-good-foot { order: 3; }
    .ch-goods-grid .ch-stock { order: 4; }
    .ch-goods-grid .ch-cmp { order: 5; }
}

/* ===========================================================================
 * ПОДВАЛ САЙТА — вариант 3, расширенный сервисный.
 *
 * Десктоп: полоса сервиса, контакты и четыре раздела открытыми, строка
 * шоурума с оплатой и доставкой, правовые ссылки и «Наверх».
 * Планшет: контакты с мессенджерами справа, «Каталог» и «Покупателям» двумя
 * столбцами, «Компания» и «Помощь» складками.
 * Телефон: складываются все разделы и блок «Контакты и шоурум».
 *
 * Складка — скрытая галочка и подпись `<label for>`: содержимое показывает
 * `:checked`. На ширинах, где раздел открыт всегда, галочки нет вовсе, а
 * подпись — просто заголовок.
 * ========================================================================= */

.ch-footer { margin-top: clamp(24px, 4vw, 48px); padding-block: clamp(20px, 3vw, 32px) 20px;
    border-top: 1px solid var(--ch-line); background: var(--ch-surface); font-size: 14px; }

/* ---------- Полоса сервиса ---------- */
.ch-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 14px 6px;
    list-style: none; border: 1px solid var(--ch-line); border-radius: var(--ch-r); background: var(--ch-tint-2); }
.ch-perks li { display: flex; align-items: center; gap: 12px; padding: 4px 16px; border-left: 1px solid var(--ch-line); }
.ch-perks li:first-child { border-left: 0; }
.ch-perk-ic { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto;
    border-radius: 12px; background: var(--ch-surface); color: var(--ch-brand); }
.ch-perk-t b { display: block; font-size: 14px; font-weight: 700; }
/* Пояснение стоит на подложке полосы, а не на бумаге: приглушённый цвет на
   ней в тёмных палитрах «Премиум» и «Деловой» давал 3.9 — берём второй по
   яркости текст. */
.ch-perk-t span { display: block; font-size: 12.5px; line-height: 1.3; color: var(--ch-ink-2); }

/* ---------- Контакты и разделы ---------- */
.ch-foot-main { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 30px; }
.ch-foot-logo { display: inline-block; font-size: 20px; }
.ch-foot-about p { margin: 8px 0 0; max-width: 34ch; color: var(--ch-ink-2); }
.ch-foot-contacts { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.ch-foot-contacts li { display: flex; align-items: flex-start; gap: 10px; }
.ch-foot-contacts .ci { margin-top: 1px; color: var(--ch-brand); }
.ch-scope .ch-foot-contacts a { font-weight: 700; color: var(--ch-ink); }
.ch-scope .ch-foot-contacts a:hover { color: var(--ch-brand); }
.ch-foot-contacts small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ch-muted); }
.ch-foot-nets { display: grid; gap: 14px; margin-top: 18px; }
.ch-foot-label { display: block; margin-bottom: 8px; font-size: 12.5px; color: var(--ch-muted); }
.ch-nets { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-scope .ch-net { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
    background: var(--ch-tint); color: var(--ch-ink); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.ch-scope .ch-net:hover { background: var(--ch-brand); color: var(--ch-on-brand); }

.ch-foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ch-fold-cb { display: none; }
.ch-fold-h { display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: 15px; font-weight: 800; pointer-events: none; }
.ch-fold-h .ci { display: none; color: var(--ch-muted); transition: transform .15s; }
.ch-fold-body { display: grid; gap: 9px; margin: 12px 0 0; padding: 0; list-style: none; }
.ch-scope .ch-fold-body a { color: var(--ch-ink-2); }
.ch-scope .ch-fold-body a:hover { color: var(--ch-brand); }

/* ---------- Шоурум, оплата, доставка ---------- */
.ch-foot-extra { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ch-line); }
/* На широком экране у блока хватает своих подзаголовков — подпись складки
   нужна только на телефоне. */
.ch-foot-extra > .ch-fold-h { display: none; }
.ch-foot-extra-in { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; margin: 0; }
.ch-showroom { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; padding: 16px 18px;
    border: 1px solid var(--ch-line); border-radius: var(--ch-r); background: var(--ch-tint-2); }
.ch-showroom > .ci { grid-row: 1 / span 3; color: var(--ch-brand); }
.ch-showroom b { font-size: 14.5px; }
.ch-showroom span { font-size: 13px; color: var(--ch-ink-2); }
.ch-scope .ch-route { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 8px;
    margin-top: 10px; padding: 9px 14px; border: 1px solid var(--ch-line); border-radius: var(--ch-r-sm);
    background: var(--ch-surface); font-size: 13.5px; font-weight: 600; color: var(--ch-ink); }
.ch-route .ci { color: var(--ch-brand); }
.ch-scope .ch-route:hover { border-color: var(--ch-brand); color: var(--ch-brand); }
.ch-marks { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-mark { padding: 7px 11px; border: 1px solid var(--ch-line); border-radius: 8px; background: var(--ch-surface);
    font-size: 12.5px; font-weight: 700; color: var(--ch-ink-2); white-space: nowrap; }

/* ---------- Низ ---------- */
.ch-foot-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 24px; padding-top: 16px;
    border-top: 1px solid var(--ch-line); font-size: 12.5px; color: var(--ch-muted); }
.ch-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ch-scope .ch-legal a { color: var(--ch-muted); }
.ch-scope .ch-legal a:hover { color: var(--ch-brand); }
.ch-scope .ch-top { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--ch-ink-2); }
.ch-top-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ch-line);
    border-radius: 50%; background: var(--ch-surface); color: var(--ch-brand); }
.ch-scope .ch-top:hover .ch-top-ic { border-color: var(--ch-brand); }

/* ---------- Планшет ---------- */
@media (max-width: 1100px) {
    .ch-perks li { flex-direction: column; justify-content: center; gap: 8px; padding: 4px 10px; text-align: center; }
    .ch-perk-t b { font-size: 13px; }
    .ch-perk-t span { font-size: 11.5px; }
    .ch-foot-main { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 24px; }
    /* Контакты слева, мессенджеры и соцсети справа — как на макете планшета. */
    .ch-foot-brand { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 32px; }
    .ch-foot-about { grid-column: 1; }
    .ch-foot-contacts { grid-column: 1; }
    .ch-foot-nets { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin-top: 0; }
    .ch-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
    /* «Компания» и «Помощь» — складками во всю ширину под двумя открытыми. */
    .ch-foot-cols .ch-fcol:nth-child(n+3) { grid-column: 1 / -1; }
    .ch-foot-cols .ch-fcol:nth-child(3) { margin-top: 20px; }
    .ch-foot-cols .ch-fcol:nth-child(n+3) .ch-fold-cb { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; }
    .ch-foot-cols .ch-fcol:nth-child(n+3) .ch-fold-h { padding: 14px 0; border-top: 1px solid var(--ch-line); pointer-events: auto; cursor: pointer; }
    .ch-foot-cols .ch-fcol:nth-child(n+3) .ch-fold-h .ci { display: inline-block; }
    .ch-foot-cols .ch-fcol:nth-child(n+3) .ch-fold-body { display: none; margin: 0 0 14px; }
    .ch-foot-cols .ch-fcol:nth-child(n+3) .ch-fold-cb:checked ~ .ch-fold-body { display: grid; }
    .ch-foot-cols .ch-fcol:nth-child(n+3) .ch-fold-cb:checked ~ .ch-fold-h .ci { transform: rotate(180deg); }
    .ch-foot-cols .ch-fcol:nth-child(n+3) .ch-fold-cb:focus-visible ~ .ch-fold-h { outline: 2px solid var(--ch-brand); outline-offset: 2px; }
    .ch-foot-cols .ch-fcol:last-child .ch-fold-h { border-bottom: 1px solid var(--ch-line); }
    .ch-foot-cols .ch-fcol:last-child .ch-fold-cb:checked ~ .ch-fold-h { border-bottom: 0; }
    .ch-foot-extra { margin-top: 22px; padding-top: 0; border-top: 0; }
    .ch-foot-extra-in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
    .ch-showroom { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) auto; }
    .ch-showroom > .ci { grid-row: 1 / span 3; }
    .ch-scope .ch-route { grid-column: 3; grid-row: 1 / span 3; align-self: center; margin-top: 0; }
    /* «Наверх» на планшете не нужен: макет планшета его не ставит, а страница
       листается одним движением. */
    .ch-scope .ch-top { display: none; }
}

/* ---------- Телефон ---------- */
@media (max-width: 700px) {
    .ch-footer { margin-top: 20px; padding-top: 16px; }
    /* Полоса сервиса — четыре значка с короткой подписью: пояснение в 90 px
       ширины рвётся на четыре строки. */
    .ch-perks { padding: 10px 2px; }
    .ch-perks li { gap: 6px; padding: 2px 4px; }
    .ch-perk-ic { width: 34px; height: 34px; border-radius: 10px; }
    .ch-perk-ic .ci { width: 18px; height: 18px; }
    .ch-perk-t b { font-size: 11px; font-weight: 600; line-height: 1.25; }
    .ch-perk-t span { display: none; }
    .ch-foot-main { gap: 16px; margin-top: 20px; }
    .ch-foot-brand { grid-template-columns: minmax(0, 1fr); }
    .ch-foot-nets { grid-column: 1; grid-row: auto; margin-top: 16px; }
    .ch-foot-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .ch-foot-cols .ch-fcol:nth-child(3) { margin-top: 0; }
    /* Складываются все разделы и блок «Контакты и шоурум». */
    .ch-fcol .ch-fold-cb { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; }
    .ch-fcol .ch-fold-h, .ch-foot-extra > .ch-fold-h { display: flex; padding: 14px 0; border-top: 1px solid var(--ch-line);
        pointer-events: auto; cursor: pointer; }
    .ch-fcol .ch-fold-h .ci { display: inline-block; }
    .ch-fcol .ch-fold-body { display: none; margin: 0 0 14px; }
    .ch-fcol .ch-fold-cb:checked ~ .ch-fold-body { display: grid; }
    .ch-fcol .ch-fold-cb:checked ~ .ch-fold-h .ci { transform: rotate(180deg); }
    .ch-fcol .ch-fold-cb:focus-visible ~ .ch-fold-h { outline: 2px solid var(--ch-brand); outline-offset: 2px; }
    .ch-foot-cols .ch-fcol:last-child .ch-fold-h { border-bottom: 0; }
    .ch-foot-extra { margin-top: 0; border-bottom: 1px solid var(--ch-line); }
    .ch-foot-extra-in { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .ch-showroom { grid-template-columns: auto minmax(0, 1fr); }
    .ch-scope .ch-route { grid-column: 2; grid-row: auto; margin-top: 8px; }
    .ch-foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 0; }
    .ch-legal { flex-direction: column; gap: 6px; }
}

/* ===========================================================================
 * ОКНО ВХОДА — три раскладки: 1 классическая, 2 с преимуществами аккаунта,
 * 3 email первым.
 *
 * Оверлей с якорем #ch-auth: без JS его показывает `:target`, со скриптом —
 * класс .is-open (открытие без перехода, Esc, фокус внутри окна). Кнопки
 * сервисов — в их фирменных цветах, но темнее исходных: белая подпись на
 * ярко-красном Яндекса и на синем VK читалась хуже 4.5:1.
 * На телефоне окно — шторка снизу во всю ширину, как в приложениях.
 * ========================================================================= */

.ch-scope { --ch-ya: #db2d16; --ch-ya-dark: #bf2410; --ch-vk: #006ce8; --ch-vk-dark: #0058c0; }
/* Фирменный цвет ТЕКСТОМ (ссылки, логотип, значки) и цвет ошибки — с долей
   цвета текста темы: на светлой палитре это темнее, на ночной — светлее.
   Чистый фирменный на ночном фоне «Природы» и «Уюта» давал 2:1. У ночной
   темы доля текста больше — её ставит inc/theme.php. */
.ch-scope { --ch-brand-ink: color-mix(in srgb, var(--ch-brand) 72%, var(--ch-ink));
    --ch-sale-ink: color-mix(in srgb, var(--ch-sale) 72%, var(--ch-ink)); }
.ch-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.ch-noscroll { overflow: hidden; }

.ch-auth { display: none; position: fixed; inset: 0; z-index: 80; align-items: flex-start; justify-content: center;
    padding: 24px 16px; overflow-y: auto; overscroll-behavior: contain; }
.ch-auth:target:not(.is-js), .ch-auth.is-open { display: flex; }
.ch-scope .ch-auth-scrim { position: fixed; inset: 0; background: rgba(16, 24, 40, .5); cursor: default; }
/* margin: auto, а не align-items: center — высокое окно на низком экране
   иначе обрезалось бы сверху без прокрутки. */
.ch-auth-box { position: relative; width: min(420px, 100%); margin: auto; padding: 36px 32px 26px;
    border-radius: calc(var(--ch-r) + 6px); background: var(--ch-surface); color: var(--ch-ink);
    box-shadow: 0 0 0 1px var(--ch-line), 0 24px 64px rgba(16, 24, 40, .24); outline: none; }
.ch-scope .ch-auth-x { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 50%; color: var(--ch-muted); }
.ch-scope .ch-auth-x:hover { background: var(--ch-tint-2); color: var(--ch-ink); }
.ch-auth :focus-visible { outline: 2px solid var(--ch-brand); outline-offset: 2px; }
.ch-auth .ch-auth-box:focus-visible { outline: none; }

.ch-auth-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; text-align: center; }
.ch-auth-sub { margin: 8px auto 22px; max-width: 34ch; font-size: 14.5px; color: var(--ch-ink-2); text-align: center;
    text-wrap: balance; }

/* ---------- Кнопки сервисов ---------- */
.ch-auth-provs { display: grid; gap: 12px; }
.ch-scope .ch-auth-prov { position: relative; display: flex; align-items: center; justify-content: center; min-height: 50px;
    padding: 10px 52px; border: 1px solid color-mix(in srgb, var(--ch-muted) 40%, var(--ch-line)); border-radius: var(--ch-r-sm);
    background: var(--ch-surface); color: var(--ch-ink); font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center;
    transition: background-color .12s, box-shadow .12s; }
.ch-scope .ch-auth-prov:hover { background: var(--ch-tint-2); }
.ch-auth-mark { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
    width: 30px; height: 30px; border-radius: 50%; background: var(--ch-tint); color: var(--ch-brand);
    font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.ch-scope .ch-auth-prov-yandex, .ch-scope .ch-auth-prov-vk { border-color: transparent; color: #fff;
    box-shadow: 0 6px 16px -8px rgba(16, 24, 40, .45); }
.ch-scope .ch-auth-prov-yandex { background: var(--ch-ya); }
.ch-scope .ch-auth-prov-yandex:hover { background: var(--ch-ya-dark); }
.ch-scope .ch-auth-prov-vk { background: var(--ch-vk); }
.ch-scope .ch-auth-prov-vk:hover { background: var(--ch-vk-dark); }
.ch-auth-prov-yandex .ch-auth-mark { background: #fff; color: var(--ch-ya); }
.ch-auth-prov-vk .ch-auth-mark { background: #fff; color: var(--ch-vk); font-size: 11.5px; letter-spacing: 0; }

.ch-auth-or { display: flex; align-items: center; gap: 12px; margin: 22px 0; font-size: 13.5px; color: var(--ch-muted); }
.ch-auth-or::before, .ch-auth-or::after { content: ""; flex: 1; height: 1px; background: var(--ch-line); }

/* ---------- Email и код ---------- */
.ch-auth-form { margin: 0; }
.ch-auth-field { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px;
    border: 1px solid color-mix(in srgb, var(--ch-muted) 40%, var(--ch-line)); border-radius: var(--ch-r-sm);
    background: var(--ch-surface); color: var(--ch-muted); cursor: text; }
.ch-auth-field:focus-within { border-color: var(--ch-brand); box-shadow: 0 0 0 4px var(--ch-tint); }
.ch-auth-field input { flex: 1; min-width: 0; padding: 12px 0; border: 0; background: none; outline: none;
    font: inherit; font-size: 15px; color: var(--ch-ink); }
.ch-auth-field input::placeholder { color: var(--ch-muted); opacity: 1; }
.ch-auth .ch-auth-field :focus-visible { outline: none; }
.ch-scope .ch-auth-send { min-height: 50px; margin-top: 12px; font-size: 15.5px; }
.ch-auth-hint { margin: 10px 0 0; font-size: 12.5px; color: var(--ch-muted); text-align: center; }
.ch-auth-err { margin: 10px 0 0; font-size: 13px; color: var(--ch-sale-ink); text-align: center; }
.ch-auth-err[hidden] { display: none; }
.ch-auth-codefield input { padding-block: 10px; text-align: center; font-size: 24px; font-weight: 700;
    letter-spacing: .38em; font-variant-numeric: tabular-nums; }
.ch-auth-codefield input::placeholder { letter-spacing: .3em; }
.ch-auth-again { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 16px; }
.ch-auth-textbtn { padding: 6px 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600;
    color: var(--ch-brand-ink); cursor: pointer; }
.ch-auth-textbtn:hover { color: var(--ch-ink); }
.ch-auth-textbtn:disabled { color: var(--ch-muted); font-weight: 500; cursor: default; }

.ch-auth-legal { margin: 24px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ch-muted); text-align: center; }
.ch-scope .ch-auth-legal a { color: var(--ch-brand-ink); text-decoration: underline; text-underline-offset: 2px;
    text-decoration-thickness: 1px; }
.ch-scope .ch-auth-legal a:hover { color: var(--ch-ink); }

.ch-auth-step[hidden] { display: none; }
[data-ch-auth-to] { display: block; overflow-wrap: anywhere; }
.ch-auth-done { text-align: center; }
.ch-auth-done-ic { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 14px;
    border-radius: 50%; background: color-mix(in srgb, var(--ch-ok) 14%, var(--ch-surface)); color: var(--ch-ok); }
.ch-auth-done-ic .ci { width: 30px; height: 30px; stroke-width: 2.2; }
.ch-auth-done .ch-auth-send { margin-top: 4px; }
.ch-scope .ch-auth-acc { display: flex; width: 100%; margin-top: 10px; }
/* Подсказка демо-входа — только в просмотре набора (auth.demo). */
.ch-auth-demo { margin: 16px 0 0; padding: 10px 14px; border: 1px dashed var(--ch-line-2); border-radius: var(--ch-r-sm);
    background: var(--ch-tint); font-size: 13.5px; line-height: 1.5; color: var(--ch-ink-2); text-align: center; }

/* ---------- Раскладка 2: преимущества слева ---------- */
.ch-auth-v2 .ch-auth-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(860px, 100%);
    padding: 0; overflow: hidden; }
.ch-auth-promo { display: flex; flex-direction: column; padding: 36px 32px 24px;
    background: linear-gradient(165deg, var(--ch-tint) 0%, var(--ch-tint-2) 70%); }
.ch-auth-logo { font-size: 18px; font-weight: 800; letter-spacing: .04em; color: var(--ch-brand-ink); }
.ch-auth-promo-t { display: block; margin: 20px 0 24px; max-width: 16ch; font-size: 26px; font-weight: 800;
    letter-spacing: -.02em; line-height: 1.15; }
.ch-auth-perks { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.ch-auth-perks li { display: flex; align-items: center; gap: 14px; }
.ch-auth-perks b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.ch-auth-perks li span span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ch-ink-2); }
.ch-auth-perk-ic { display: inline-grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
    background: var(--ch-surface); color: var(--ch-brand-ink); box-shadow: 0 4px 12px -6px rgba(16, 24, 40, .25); }
/* Рисунок и подпись рядом, а не подпись поверх рисунка: при длинной фразе
   заказчика она наезжала на пакет. */
.ch-auth-promo-art { display: flex; align-items: flex-end; gap: 6px; margin-top: auto; padding-top: 22px; }
.ch-art-auth { display: block; flex: 0 1 240px; min-width: 0; height: auto; }
.ch-auth-note { flex: 1 1 0; min-width: 9ch; margin-bottom: 26px; font-size: 16px; font-style: italic;
    font-weight: 600; line-height: 1.2; color: var(--ch-brand-ink); transform: rotate(-7deg); text-align: center; }
.ch-auth-v2 .ch-auth-main { padding: 40px 36px 28px; }
.ch-auth-v2 .ch-auth-title, .ch-auth-v2 [data-step="start"] .ch-auth-sub { text-align: left; }
.ch-auth-v2 [data-step="start"] .ch-auth-sub { margin-left: 0; }

/* ---------- Раскладка 3: email первым ---------- */
.ch-auth-v3 .ch-auth-provs { gap: 10px; }

/* ---------- На листе раскладок: карточка без оверлея ---------- */
.ch-auth-inline { display: block; position: static; padding: 0; overflow: visible; }
/* Страница входа сайта (без скрипта и по ссылке из письма): окно карточкой по центру. */
.ch-login-page { display: grid; justify-items: center; padding-block: clamp(24px, 5vw, 56px) clamp(40px, 7vw, 80px); }
.ch-login-page .ch-auth-inline { width: min(100%, 460px); }
.ch-auth-inline .ch-auth-box { margin: 0; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); border: 1px solid var(--ch-line); }

/* ---------- Телефон: шторка снизу ---------- */
@media (max-width: 700px) {
    .ch-auth:not(.ch-auth-inline) { padding: 24px 0 0; }
    .ch-auth:not(.ch-auth-inline) .ch-auth-box { width: 100%; margin: auto 0 0; padding: 30px 18px calc(20px + env(safe-area-inset-bottom, 0px));
        border-radius: calc(var(--ch-r) + 6px) calc(var(--ch-r) + 6px) 0 0; }
    /* Язычок сверху — знак шторки; закрывается она крестиком и нажатием выше. */
    .ch-auth:not(.ch-auth-inline) .ch-auth-box::before { content: ""; position: absolute; z-index: 3; top: 8px; left: 50%;
        width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--ch-line); }
    .ch-auth-inline .ch-auth-box { padding: 30px 18px 20px; }
    .ch-scope .ch-auth-x { top: 10px; right: 8px; }
    .ch-auth-title { font-size: 21px; }
    .ch-auth-sub { margin-bottom: 18px; font-size: 14px; }
    .ch-auth-or { margin: 18px 0; }
    .ch-auth-legal { margin-top: 18px; }

    /* Раскладка 2: преимущества — полосой над входом. Три значка с короткой
       подписью; пояснения и рисунок уходят, иначе до кнопок входа нужно
       листать полтора экрана. */
    .ch-auth-v2 .ch-auth-box, .ch-auth-v2:not(.ch-auth-inline) .ch-auth-box { grid-template-columns: minmax(0, 1fr); padding: 0; }
    .ch-auth-v2 .ch-auth-promo { padding: 26px 18px 16px; }
    .ch-auth-logo { font-size: 15px; }
    .ch-auth-promo-t { margin: 8px 0 14px; max-width: none; font-size: 18px; }
    .ch-auth-perks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .ch-auth-perks li { flex-direction: column; gap: 6px; text-align: center; }
    .ch-auth-perks b { font-size: 11.5px; font-weight: 600; }
    .ch-auth-perks li span span, .ch-auth-promo-art { display: none; }
    .ch-auth-perk-ic { width: 38px; height: 38px; }
    .ch-auth-perk-ic .ci { width: 18px; height: 18px; }
    .ch-auth-v2 .ch-auth-main { padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px)); }
}


/* ===========================================================================
 * КАРТОЧКА ТОВАРА — три раскладки: 1 классическая, 2 с акцентом на решение
 * о покупке, 3 визуальная.
 *
 * Галерея и вкладки работают без JS: скрытые переключатели, подписи и
 * `:checked` — правила ниже расписаны на восемь кадров и шесть вкладок.
 * Варианты товара — ссылки, «В корзину» — форма.
 * ========================================================================= */

/* Рамка полей и вариантов — заметнее обычной линии; «в наличии» зелёным
   ТЕКСТОМ на зелёной подложке — с долей цвета текста, иначе 4.4:1. */
.ch-scope { --ch-line-2: color-mix(in srgb, var(--ch-muted) 40%, var(--ch-line));
    --ch-ok-ink: color-mix(in srgb, var(--ch-ok) 80%, var(--ch-ink)); }
.ch-prod { padding-block: 18px clamp(30px, 4vw, 52px); }
.ch-h3 { margin: 0 0 10px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.ch-ptop { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px);
    align-items: start; margin-top: 16px; }
.ch-ptitle { margin: 0; font-size: clamp(22px, 1.05rem + .9vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }

/* ---------- Оценка, метки, плашки ---------- */
.ch-prate { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-size: 13.5px; color: var(--ch-muted); }
.ch-prate b { margin-left: -8px; color: var(--ch-ink); font-weight: 700; }
.ch-scope .ch-prate a { color: var(--ch-brand-ink); }
.ch-scope .ch-prate a:hover { text-decoration: underline; }
.ch-psku { margin-left: auto; }
.ch-stars { display: inline-flex; gap: 1px; color: var(--ch-star); }
.ch-stars .ch-star-off { color: color-mix(in srgb, var(--ch-muted) 35%, var(--ch-line)); }
.ch-ptags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ch-tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.ch-tag-sale { background: var(--ch-sale); color: var(--ch-on-sale); }
.ch-tag-hit { background: var(--ch-tint); color: var(--ch-brand-ink); }
.ch-tag-ok { background: color-mix(in srgb, var(--ch-ok) 12%, var(--ch-surface)); color: var(--ch-ok-ink); }
.ch-pchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.ch-pchips li { padding: 5px 11px; border-radius: 8px; background: var(--ch-tint); color: var(--ch-brand-ink); font-size: 12.5px; font-weight: 600; }

/* ---------- Цена ---------- */
.ch-pprice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 18px; }
.ch-pprice b { font-size: clamp(28px, 1.3rem + 1vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; white-space: nowrap; }
.ch-pprice s { font-size: 17px; color: var(--ch-muted); white-space: nowrap; }
.ch-pbenefit { justify-self: start; padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 700;
    background: color-mix(in srgb, var(--ch-sale) 12%, var(--ch-surface)); color: var(--ch-sale-ink); }
.ch-pstock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13.5px; color: var(--ch-ink-2); }
.ch-pstock-in { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-weight: 600;
    background: color-mix(in srgb, var(--ch-ok) 12%, var(--ch-surface)); color: var(--ch-ok-ink); }
.ch-pinstall { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px;
    border-radius: var(--ch-r-sm); background: var(--ch-tint); }
.ch-pinstall b { display: block; font-size: 15px; color: var(--ch-brand-ink); }
.ch-pinstall span { font-size: 12.5px; color: var(--ch-ink-2); }
.ch-scope .ch-pinstall a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ch-brand-ink); white-space: nowrap; }

/* ---------- Варианты ---------- */
.ch-popts { display: grid; gap: 16px; margin-top: 20px; }
.ch-popt-t { margin-bottom: 8px; font-size: 14px; color: var(--ch-ink-2); }
.ch-popt-t b { color: var(--ch-ink); font-weight: 600; }
.ch-popt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-scope .ch-popt-i { display: inline-grid; place-items: center; min-width: 64px; min-height: 42px; padding: 8px 14px;
    border: 1px solid var(--ch-line-2); border-radius: var(--ch-r-sm); background: var(--ch-surface); color: var(--ch-ink); font-size: 14px; }
.ch-scope .ch-popt-i:hover { border-color: var(--ch-brand); }
.ch-scope .ch-popt-i.active { border-color: var(--ch-brand); box-shadow: inset 0 0 0 1px var(--ch-brand); background: var(--ch-tint-2); font-weight: 700; }
.ch-scope .ch-popt-sw .ch-popt-i { width: 64px; height: 64px; min-width: 0; padding: 4px; background: var(--ch-tint-2); }
.ch-popt-sw .ch-popt-i > svg, .ch-popt-sw .ch-popt-i > img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Покупка ---------- */
.ch-pbuy { display: grid; gap: 10px; margin-top: 20px; }
.ch-pqty { display: grid; justify-items: start; margin-bottom: 6px; }
.ch-qty { display: inline-flex; align-items: center; border: 1px solid var(--ch-line-2); border-radius: var(--ch-r-sm); overflow: hidden; }
.ch-qty button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; background: var(--ch-tint-2); color: var(--ch-ink); cursor: pointer; }
.ch-qty button:hover { background: var(--ch-tint); }
.ch-qty input { width: 52px; height: 42px; border: 0; background: var(--ch-surface); color: var(--ch-ink); text-align: center;
    font: inherit; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.ch-qty input::-webkit-inner-spin-button, .ch-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ch-scope .ch-pcart { min-height: 52px; font-size: 16px; }
.ch-scope .ch-btn-line { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px;
    border: 1.5px solid var(--ch-brand); border-radius: var(--ch-r-sm); background: var(--ch-surface); color: var(--ch-brand-ink);
    font-size: 15px; font-weight: 600; }
.ch-scope .ch-btn-line:hover { background: var(--ch-tint-2); }
.ch-pbuy :focus-visible, .ch-prod a:focus-visible, .ch-prod button:focus-visible { outline: 2px solid var(--ch-brand); outline-offset: 2px; }
.ch-pacts { display: flex; justify-content: center; font-size: 13.5px; }
.ch-scope .ch-pacts a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 16px; color: var(--ch-ink-2); }
.ch-scope .ch-pacts a:hover { color: var(--ch-brand-ink); }
.ch-pacts a + a { border-left: 1px solid var(--ch-line); }
.ch-pperks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; padding: 0;
    list-style: none; text-align: center; font-size: 12.5px; line-height: 1.35; color: var(--ch-ink-2); }
.ch-pperks li { display: grid; justify-items: center; align-content: start; gap: 6px; }
.ch-pperks b { display: block; font-weight: 600; color: var(--ch-ink); }
.ch-pperk-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ch-tint); color: var(--ch-brand-ink); }
.ch-pdel { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ch-pdel li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--ch-line); border-radius: var(--ch-r-sm); }
.ch-pdel-ic { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--ch-tint); color: var(--ch-brand-ink); }
.ch-pdel b { display: block; font-size: 14px; font-weight: 600; }
.ch-pdel span span { display: block; font-size: 12.5px; color: var(--ch-muted); }

/* ---------- Галерея ---------- */
.ch-gal { display: grid; gap: 12px; }
.ch-gal-side, .ch-gal-nav { grid-template-columns: 76px minmax(0, 1fr); align-items: start; }
.ch-gal-stage { position: relative; grid-column: 2; grid-row: 1; aspect-ratio: 1 / 1; overflow: hidden;
    border-radius: var(--ch-r); background: var(--ch-tint-2); }
.ch-gal-thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; }
.ch-scope .ch-gal-th { display: grid; place-items: center; flex: 0 0 auto; aspect-ratio: 1; padding: 4px; overflow: hidden;
    border: 1px solid var(--ch-line); border-radius: var(--ch-r-sm); background: var(--ch-tint-2); cursor: pointer; }
.ch-gal-th > svg, .ch-gal-th > img { width: 100%; height: 100%; object-fit: contain; }
.ch-gal-th:hover { border-color: var(--ch-brand); }
.ch-gal-more { font-size: 15px; font-weight: 700; color: var(--ch-ink-2); }
.ch-gal-slide { display: none; position: absolute; inset: 0; margin: 0; padding: 6%; }
.ch-gal-slide > svg, .ch-gal-slide > img { width: 100%; height: 100%; object-fit: contain; }
.ch-gal-r:nth-of-type(1):checked ~ .ch-gal-stage .ch-gal-slide:nth-of-type(1),
.ch-gal-r:nth-of-type(2):checked ~ .ch-gal-stage .ch-gal-slide:nth-of-type(2),
.ch-gal-r:nth-of-type(3):checked ~ .ch-gal-stage .ch-gal-slide:nth-of-type(3),
.ch-gal-r:nth-of-type(4):checked ~ .ch-gal-stage .ch-gal-slide:nth-of-type(4),
.ch-gal-r:nth-of-type(5):checked ~ .ch-gal-stage .ch-gal-slide:nth-of-type(5),
.ch-gal-r:nth-of-type(6):checked ~ .ch-gal-stage .ch-gal-slide:nth-of-type(6),
.ch-gal-r:nth-of-type(7):checked ~ .ch-gal-stage .ch-gal-slide:nth-of-type(7),
.ch-gal-r:nth-of-type(8):checked ~ .ch-gal-stage .ch-gal-slide:nth-of-type(8) { display: block; }
.ch-gal-r:nth-of-type(1):checked ~ .ch-gal-thumbs .ch-gal-th:nth-of-type(1),
.ch-gal-r:nth-of-type(2):checked ~ .ch-gal-thumbs .ch-gal-th:nth-of-type(2),
.ch-gal-r:nth-of-type(3):checked ~ .ch-gal-thumbs .ch-gal-th:nth-of-type(3),
.ch-gal-r:nth-of-type(4):checked ~ .ch-gal-thumbs .ch-gal-th:nth-of-type(4),
.ch-gal-r:nth-of-type(5):checked ~ .ch-gal-thumbs .ch-gal-th:nth-of-type(5),
.ch-gal-r:nth-of-type(6):checked ~ .ch-gal-thumbs .ch-gal-th:nth-of-type(6),
.ch-gal-r:nth-of-type(7):checked ~ .ch-gal-thumbs .ch-gal-th:nth-of-type(7),
.ch-gal-r:nth-of-type(8):checked ~ .ch-gal-thumbs .ch-gal-th:nth-of-type(8) { border-color: var(--ch-brand); box-shadow: inset 0 0 0 1px var(--ch-brand); }
.ch-gal-r:nth-of-type(1):focus-visible ~ .ch-gal-thumbs .ch-gal-th:nth-of-type(1),
.ch-gal-r:nth-of-type(2):focus-visible ~ .ch-gal-thumbs .ch-gal-th:nth-of-type(2),
.ch-gal-r:nth-of-type(3):focus-visible ~ .ch-gal-thumbs .ch-gal-th:nth-of-type(3),
.ch-gal-r:nth-of-type(4):focus-visible ~ .ch-gal-thumbs .ch-gal-th:nth-of-type(4),
.ch-gal-r:nth-of-type(5):focus-visible ~ .ch-gal-thumbs .ch-gal-th:nth-of-type(5),
.ch-gal-r:nth-of-type(6):focus-visible ~ .ch-gal-thumbs .ch-gal-th:nth-of-type(6),
.ch-gal-r:nth-of-type(7):focus-visible ~ .ch-gal-thumbs .ch-gal-th:nth-of-type(7),
.ch-gal-r:nth-of-type(8):focus-visible ~ .ch-gal-thumbs .ch-gal-th:nth-of-type(8) { outline: 2px solid var(--ch-brand); outline-offset: 2px; }
.ch-gal-arr { position: absolute; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px;
    border-radius: 50%; background: var(--ch-surface); color: var(--ch-ink); box-shadow: 0 4px 14px -6px rgba(16, 24, 40, .35); cursor: pointer; }
.ch-gal-arr:hover { color: var(--ch-brand-ink); }
.ch-gal-prev { left: 12px; }
.ch-gal-next { right: 12px; }
.ch-pmedia { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.ch-scope .ch-pmedia-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--ch-line);
    border-radius: 999px; background: var(--ch-surface); color: var(--ch-brand-ink); font-size: 13.5px; font-weight: 600; }
.ch-scope .ch-pmedia-btn:hover { border-color: var(--ch-brand); }

/* ---------- Главное о товаре, особенности ---------- */
.ch-pval { display: grid; place-items: center; flex: 0 0 auto; min-width: 64px; height: 52px; padding: 0 10px;
    border: 1px solid var(--ch-line); border-radius: var(--ch-r-sm); background: var(--ch-surface);
    font-size: 17px; font-weight: 800; color: var(--ch-ink); white-space: nowrap; }
.ch-pval-a { font-size: 22px; color: var(--ch-ok); background: color-mix(in srgb, var(--ch-ok) 8%, var(--ch-surface)); }
.ch-pval-ic { color: var(--ch-brand-ink); }
.ch-pval-ic .ci { width: 24px; height: 24px; }
.ch-pkeys { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.ch-pkeys li { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ch-ink-2); }
.ch-pkeys b { display: block; font-weight: 500; }
.ch-pkeys li span span { display: block; }
.ch-pfeats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.ch-pfeats li { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 16px 10px; text-align: center;
    border: 1px solid var(--ch-line); border-radius: var(--ch-r); background: var(--ch-tint-2); }
.ch-pfeats .ch-pval, .ch-pgrid .ch-pval, .ch-phero-feats .ch-pval { width: 46px; height: 46px; min-width: 0; padding: 0;
    border: 0; border-radius: 50%; background: var(--ch-tint); }
.ch-pfeats .ch-pval { background: var(--ch-surface); }
.ch-pfeats b { display: block; font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--ch-ink); }
.ch-pfeats li span span { display: block; margin-top: 3px; font-size: 12px; color: var(--ch-ink-2); }
.ch-pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0 0; padding: 0; list-style: none;
    border: 1px solid var(--ch-line); border-radius: var(--ch-r); }
.ch-pgrid li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-width: 0; }
.ch-pgrid li:nth-child(odd) { border-right: 1px solid var(--ch-line); }
.ch-pgrid li:nth-child(n+3) { border-top: 1px solid var(--ch-line); }
.ch-pgrid b { display: block; font-size: 15px; font-weight: 700; }
.ch-pgrid li span span { display: block; font-size: 12.5px; color: var(--ch-muted); }

/* ---------- Колонка покупки (раскладки 2 и 3) ---------- */
.ch-pbox { position: sticky; top: 16px; display: grid; gap: 14px; padding: 20px; border: 1px solid var(--ch-line);
    border-radius: calc(var(--ch-r) + 4px); background: var(--ch-surface); box-shadow: 0 12px 32px -20px rgba(16, 24, 40, .3); }
.ch-pbox > .ch-pprice, .ch-pbox > .ch-popts, .ch-pbox > .ch-pbuy, .ch-pbox > .ch-pperks { margin-top: 0; }
.ch-pbox-plain { position: static; padding: 0; border: 0; box-shadow: none; background: none; }
.ch-prod-v2 .ch-ptop { grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); margin-top: 12px; }
.ch-prod-v2 .ch-gal { margin-top: 16px; }

/* ---------- Разделы ниже ---------- */
.ch-psec { margin-top: clamp(28px, 4vw, 44px); }
.ch-phead { margin: 0 0 14px; }
.ch-ptabs { margin-top: clamp(28px, 4vw, 44px); }
.ch-ptab-list { display: flex; gap: 28px; border-bottom: 1px solid var(--ch-line); overflow-x: auto; scrollbar-width: none; }
.ch-ptab-list::-webkit-scrollbar { display: none; }
.ch-ptab { padding: 12px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14.5px; font-weight: 600;
    color: var(--ch-ink-2); white-space: nowrap; cursor: pointer; }
.ch-ptab:hover { color: var(--ch-ink); }
.ch-ptab-p { display: none; padding-top: 22px; }
.ch-ptab-r:nth-of-type(1):checked ~ .ch-ptab-list .ch-ptab:nth-of-type(1),
.ch-ptab-r:nth-of-type(2):checked ~ .ch-ptab-list .ch-ptab:nth-of-type(2),
.ch-ptab-r:nth-of-type(3):checked ~ .ch-ptab-list .ch-ptab:nth-of-type(3),
.ch-ptab-r:nth-of-type(4):checked ~ .ch-ptab-list .ch-ptab:nth-of-type(4),
.ch-ptab-r:nth-of-type(5):checked ~ .ch-ptab-list .ch-ptab:nth-of-type(5),
.ch-ptab-r:nth-of-type(6):checked ~ .ch-ptab-list .ch-ptab:nth-of-type(6) { color: var(--ch-brand-ink); border-color: var(--ch-brand); }
.ch-ptab-r:nth-of-type(1):checked ~ .ch-ptab-body .ch-ptab-p:nth-of-type(1),
.ch-ptab-r:nth-of-type(2):checked ~ .ch-ptab-body .ch-ptab-p:nth-of-type(2),
.ch-ptab-r:nth-of-type(3):checked ~ .ch-ptab-body .ch-ptab-p:nth-of-type(3),
.ch-ptab-r:nth-of-type(4):checked ~ .ch-ptab-body .ch-ptab-p:nth-of-type(4),
.ch-ptab-r:nth-of-type(5):checked ~ .ch-ptab-body .ch-ptab-p:nth-of-type(5),
.ch-ptab-r:nth-of-type(6):checked ~ .ch-ptab-body .ch-ptab-p:nth-of-type(6) { display: block; }
.ch-ptab-r:nth-of-type(1):focus-visible ~ .ch-ptab-list .ch-ptab:nth-of-type(1),
.ch-ptab-r:nth-of-type(2):focus-visible ~ .ch-ptab-list .ch-ptab:nth-of-type(2),
.ch-ptab-r:nth-of-type(3):focus-visible ~ .ch-ptab-list .ch-ptab:nth-of-type(3),
.ch-ptab-r:nth-of-type(4):focus-visible ~ .ch-ptab-list .ch-ptab:nth-of-type(4),
.ch-ptab-r:nth-of-type(5):focus-visible ~ .ch-ptab-list .ch-ptab:nth-of-type(5),
.ch-ptab-r:nth-of-type(6):focus-visible ~ .ch-ptab-list .ch-ptab:nth-of-type(6) { outline: 2px solid var(--ch-brand); outline-offset: 2px; }

.ch-pdesc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.ch-pdesc-text { position: relative; max-height: calc(3 * 1.6em); overflow: hidden; font-size: 14.5px; line-height: 1.6; color: var(--ch-ink-2); }
.ch-pdesc-text p { margin: 0 0 10px; }
.ch-pdesc-text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.6em;
    background: linear-gradient(to bottom, transparent, var(--ch-surface)); }
.ch-pdesc-cb:checked ~ .ch-pdesc-text { max-height: none; }
.ch-pdesc-cb:checked ~ .ch-pdesc-text::after { display: none; }
.ch-pdesc-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 600;
    color: var(--ch-brand-ink); cursor: pointer; }
.ch-pdesc-close { display: none; }
.ch-pdesc-cb:checked ~ .ch-pdesc-more .ch-pdesc-open { display: none; }
.ch-pdesc-cb:checked ~ .ch-pdesc-more .ch-pdesc-close { display: inline; }
.ch-pdesc-cb:checked ~ .ch-pdesc-more .ci { transform: rotate(180deg); }
.ch-pdesc-cb:focus-visible ~ .ch-pdesc-more { outline: 2px solid var(--ch-brand); outline-offset: 2px; }
.ch-pbrand { padding: 4px 0 4px 24px; border-left: 1px solid var(--ch-line); }
.ch-pbrand-n { display: block; margin-bottom: 14px; font-size: 22px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ch-brand-ink); }
.ch-pbrand ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ch-ink-2); }
.ch-pbrand li { display: flex; align-items: center; gap: 10px; }
.ch-pbrand .ci { color: var(--ch-brand-ink); }
.ch-pspecs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 40px; }
.ch-pspec-g h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.ch-pspec-g dl { margin: 0 0 18px; }
.ch-pspec-g dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 8px 0;
    border-bottom: 1px dashed var(--ch-line); font-size: 14px; }
.ch-pspec-g dt { color: var(--ch-muted); }
.ch-pspec-g dd { margin: 0; }

.ch-prevs-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.ch-prevs-wrap { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.ch-prsum { display: flex; align-items: center; gap: 20px; padding: 18px; border: 1px solid var(--ch-line); border-radius: var(--ch-r); }
.ch-prsum-n { display: grid; justify-items: center; gap: 6px; min-width: 116px; padding: 12px 10px; border-radius: var(--ch-r-sm); background: var(--ch-tint-2); }
.ch-prsum-n b { font-size: 34px; font-weight: 800; line-height: 1; }
.ch-prsum-n > span:last-child { font-size: 12.5px; color: var(--ch-ink-2); }
.ch-prsum-bars { flex: 1; display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--ch-muted); }
.ch-prsum-bars li { display: grid; grid-template-columns: 12px minmax(0, 1fr) 30px; align-items: center; gap: 10px; }
.ch-bar { height: 6px; overflow: hidden; border-radius: 6px; background: var(--ch-tint); }
.ch-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ch-brand); }
.ch-prevs { display: grid; gap: 12px; }
.ch-prev { display: grid; align-content: start; gap: 8px; padding: 16px 18px; border: 1px solid var(--ch-line); border-radius: var(--ch-r); background: var(--ch-surface); }
.ch-prev-top { display: flex; align-items: center; gap: 8px; }
.ch-prev-top b { padding: 1px 7px; border-radius: 6px; background: var(--ch-tint); font-size: 12px; }
.ch-prev p { margin: 0; font-size: 14px; color: var(--ch-ink-2); }
.ch-prev footer { font-size: 12.5px; color: var(--ch-muted); }
.ch-prevs-scroll { position: relative; min-width: 0; }
.ch-prevs-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px; height: 100%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ch-prevs-track::-webkit-scrollbar { display: none; }
.ch-prevs-track > * { scroll-snap-align: start; }
.ch-prevs-next { position: absolute; top: 50%; right: -14px; display: grid; place-items: center; width: 38px; height: 38px; margin-top: -19px;
    border: 1px solid var(--ch-line); border-radius: 50%; background: var(--ch-surface); color: var(--ch-ink);
    box-shadow: 0 4px 14px -6px rgba(16, 24, 40, .35); cursor: pointer; }
.ch-prevs-next[hidden] { display: none; }
.ch-pfaq { display: grid; gap: 8px; }
.ch-pfaq-i { border: 1px solid var(--ch-line); border-radius: var(--ch-r-sm); background: var(--ch-surface); }
.ch-pfaq-i summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px;
    font-size: 14.5px; font-weight: 500; list-style: none; cursor: pointer; }
.ch-pfaq-i summary::-webkit-details-marker { display: none; }
.ch-pfaq-i summary .ci { flex: 0 0 auto; color: var(--ch-ink-2); transition: transform .15s; }
.ch-pfaq-i[open] summary .ci { transform: rotate(45deg); }
.ch-pfaq-i summary:focus-visible { outline: 2px solid var(--ch-brand); outline-offset: 2px; border-radius: var(--ch-r-sm); }
.ch-pfaq-i p { margin: 0; padding: 0 16px 14px; font-size: 14px; color: var(--ch-ink-2); }

.ch-pminis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ch-pmini { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--ch-line);
    border-radius: var(--ch-r); background: var(--ch-surface); }
.ch-pmini:hover { border-color: var(--ch-brand); }
.ch-pmini-price { margin-top: 4px; font-size: 17px; font-weight: 800; }
.ch-pmini .ch-good-name { font-size: 13.5px; }
.ch-pmini-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.ch-pmini-cart { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: var(--ch-r-sm);
    background: var(--ch-tint); color: var(--ch-brand-ink); cursor: pointer; }
.ch-pmini-cart:hover { background: var(--ch-brand); color: var(--ch-on-brand); }

/* ---------- Раскладка 3: первый экран ---------- */
.ch-phero { padding-top: 14px; background: linear-gradient(180deg, var(--ch-tint-2) 0%, var(--ch-tint) 100%); }
.ch-gal-hero { position: relative; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 24px; margin-top: 6px; }
.ch-phero-text { grid-column: 1; grid-row: 1; align-self: center; padding: 20px 0 40px; }
.ch-gal-hero .ch-gal-stage { grid-column: 2; grid-row: 1; aspect-ratio: 520 / 400; border-radius: 0; background: none; }
.ch-gal-hero .ch-gal-slide { padding: 0; }
.ch-gal-hero .ch-gal-thumbs { grid-column: 1 / -1; grid-row: 2; flex-direction: row; justify-self: center; gap: 10px;
    padding: 10px 12px; border-radius: calc(var(--ch-r) + 2px) calc(var(--ch-r) + 2px) 0 0; background: var(--ch-surface);
    box-shadow: 0 -8px 24px -18px rgba(16, 24, 40, .35); }
.ch-gal-hero .ch-gal-th { width: 64px; }
.ch-scope .ch-gal-video { background: var(--ch-brand); color: var(--ch-on-brand); border-color: var(--ch-brand); }
.ch-gal-video .ci { width: 26px; height: 26px; }
.ch-phero-brand { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ch-ink-2); }
.ch-phero-hook { margin: 0; font-size: clamp(28px, 1.1rem + 2vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.ch-phero-lead { margin: 12px 0 0; max-width: 34ch; font-size: 16px; color: var(--ch-ink-2); }
.ch-phero-feats { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.ch-phero-feats li { display: grid; justify-items: center; gap: 8px; width: 104px; text-align: center; }
.ch-phero-feats .ch-pval { background: var(--ch-surface); }
.ch-phero-feats b { font-size: 12.5px; font-weight: 600; line-height: 1.25; color: var(--ch-ink); }
.ch-phero-note { position: absolute; top: 12%; right: 1%; max-width: 9ch; font-size: clamp(18px, .8rem + 1vw, 26px);
    font-style: italic; font-weight: 600; line-height: 1.15; color: var(--ch-brand-ink); transform: rotate(-8deg); pointer-events: none; z-index: 2; }
.ch-prod-v3 .ch-ptop { margin-top: 24px; }
.ch-ppromos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 4vw, 44px); }
.ch-ppromo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 190px); align-items: center; gap: 12px; min-height: 180px;
    padding: 22px 24px; overflow: hidden; border-radius: calc(var(--ch-r) + 4px); background: var(--ch-tint); }
.ch-ppromo b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.ch-ppromo p { margin: 8px 0 0; max-width: 32ch; font-size: 14px; color: var(--ch-ink-2); }
.ch-scope .ch-ppromo-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 9px 16px;
    border-radius: var(--ch-r-sm); background: #fff; color: #101828; font-size: 14px; font-weight: 600; }
.ch-ppromo-art { width: 100%; height: auto; }
/* Тёмный баннер тёмный в любой теме — это приём оформления, а не палитра. */
.ch-ppromo-dark { background: linear-gradient(135deg, #1b2431 0%, #2f3c50 100%); color: #fff; }
.ch-ppromo-dark p { color: rgba(255, 255, 255, .84); }
.ch-ppromo-dark .ch-ppromo-art { color: #cfe0ff; }

/* ---------- Рисунки товара ------------------------------------------------
 * Корпус — поверхность темы с фирменным контуром, как у остальных рисунков
 * набора; уплотнитель дверцы, экран и «графит» — свои тёмные тона: они
 * тёмные и у настоящей машины. */
.ch-art .p-body { fill: var(--ch-surface); stroke: var(--ch-brand); stroke-width: 2; }
.ch-art .p-graphite { fill: #3a414d; stroke: #232833; stroke-width: 2; }
.ch-art .p-seam { stroke: #232833; stroke-width: 2; }
.ch-art .p-gasket { fill: none; stroke: #2a303b; }
.ch-art .p-glass, .ch-art .p-drum { fill: var(--ch-tint-2); stroke: var(--ch-brand); stroke-width: 1.6; }
.ch-art .p-dot { fill: var(--ch-brand); opacity: .35; }
.ch-art .p-screen { fill: #1f2530; }
.ch-art .p-digits { stroke: #8fbcff; stroke-width: 3; stroke-linecap: round; fill: none; }
.ch-art .p-glint { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; opacity: .75; }
.ch-art .p-glint-sm { stroke: var(--ch-brand); stroke-width: 2.5; stroke-linecap: round; }
.ch-art .p-wall-line { stroke: var(--ch-brand); stroke-width: 1; opacity: .14; }
.ch-pshot { width: 100%; height: auto; max-width: none; }

/* ---------- Полоса покупки (телефон) ---------- */
.ch-pbar { display: none; }

/* ---------- Планшет ---------- */
@media (max-width: 1100px) {
    .ch-gal-side, .ch-gal-nav { grid-template-columns: 64px minmax(0, 1fr); }
    .ch-prod-v2 .ch-ptop { grid-template-columns: minmax(0, 1fr) minmax(300px, .92fr); }
    .ch-pfeats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ch-pdesc-wrap { grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; }
    .ch-prevs-wrap { grid-template-columns: minmax(0, 1fr); }
    .ch-gal-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ch-phero-note { display: none; }
    .ch-ppromo { grid-template-columns: minmax(0, 1fr) minmax(0, 130px); padding: 18px; }
    .ch-pperks { gap: 6px; font-size: 12px; }
    /* Сетка два на два: значок над текстом — рядом «Энергоэффективность» в
       половину колонки не помещалась. */
    .ch-pgrid li { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- Телефон ---------- */
@media (max-width: 700px) {
    .ch-prod { padding-top: 12px; }
    .ch-ptop, .ch-prod-v2 .ch-ptop { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    /* Классическая раскладка: фото, сразу за ним название, цена и покупка,
       главное о товаре — ниже. */
    .ch-prod-v1 .ch-pmedia-col { display: contents; }
    .ch-prod-v1 .ch-gal { order: 1; }
    .ch-prod-v1 .ch-pinfo { order: 2; }
    .ch-prod-v1 .ch-pkeys { order: 3; margin-top: 0; }
    .ch-ptitle { font-size: 22px; }
    .ch-gal-side, .ch-gal-nav { grid-template-columns: minmax(0, 1fr); }
    .ch-gal-stage { grid-column: 1; }
    .ch-gal-thumbs { grid-column: 1; grid-row: 2; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
    .ch-gal-thumbs::-webkit-scrollbar { display: none; }
    .ch-gal-side .ch-gal-th, .ch-gal-nav .ch-gal-th { width: 56px; }
    .ch-gal-arr { width: 36px; height: 36px; margin-top: -18px; }
    /* Главное о товаре — два столбца, значение над подписью: рядом подпись
       «Класс энергоэффективности» в пол-экрана не помещалась. */
    .ch-pkeys { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
    .ch-pkeys li { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12.5px; }
    .ch-pval { min-width: 52px; height: 46px; font-size: 15px; }
    .ch-pprice b { font-size: 28px; }
    .ch-psku { margin-left: 0; }
    .ch-pbox { position: static; }
    .ch-pbox:not(.ch-pbox-plain) { padding: 16px; }
    .ch-pfeats li { padding: 12px 8px; }
    .ch-prevs-row { grid-template-columns: minmax(0, 1fr); }
    .ch-prsum { gap: 14px; padding: 14px; }
    .ch-prsum-n { min-width: 96px; }
    .ch-prevs-next { right: 6px; }
    .ch-pdesc-wrap { grid-template-columns: minmax(0, 1fr); }
    .ch-pbrand { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--ch-line); }
    .ch-pspecs { grid-template-columns: minmax(0, 1fr); }
    /* Похожие — лентой вбок, как в приложениях магазинов. */
    .ch-pminis { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; overflow-x: auto;
        scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * clamp(16px, 3vw, 32px));
        padding-inline: clamp(16px, 3vw, 32px); scroll-padding-inline: clamp(16px, 3vw, 32px); }
    .ch-pminis::-webkit-scrollbar { display: none; }
    .ch-pmini { scroll-snap-align: start; }
    /* Визуальная раскладка: сначала сцена и миниатюры, потом слова о товаре. */
    .ch-gal-hero { grid-template-columns: minmax(0, 1fr); }
    .ch-gal-hero .ch-gal-stage { grid-column: 1; grid-row: 1; }
    .ch-gal-hero .ch-gal-thumbs { grid-column: 1; grid-row: 2; justify-self: stretch; max-width: 100%; }
    .ch-gal-hero .ch-gal-th { width: 52px; }
    .ch-phero-text { grid-column: 1; grid-row: 3; padding: 18px 0 24px; }
    .ch-phero-feats { gap: 8px; }
    .ch-phero-feats li { width: auto; flex: 1; }
    .ch-pgrid li { padding: 12px; }
    .ch-pgrid .ch-pval { width: 38px; height: 38px; }
    .ch-ppromos { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .ch-ppromo { min-height: 0; grid-template-columns: minmax(0, 1fr) 110px; }
    .ch-ppromo b { font-size: 18px; }
    /* Цена и «В корзину» — полосой над нижней панелью, пока сама форма
       покупки за экраном (прячет скрипт). */
    .ch-pbar { position: fixed; z-index: 49; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom, 0px));
        display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px;
        border-top: 1px solid var(--ch-line); background: var(--ch-surface); box-shadow: 0 -8px 20px -14px rgba(16, 24, 40, .35);
        transition: transform .2s, opacity .2s; }
    .ch-pbar.is-hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }
    .ch-pbar .ch-pprice { margin: 0; gap: 2px 8px; }
    .ch-pbar .ch-pprice b { font-size: 20px; }
    .ch-pbar .ch-pprice s { font-size: 13px; }
    .ch-prod:has(.ch-pbar) { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
    .ch-pbar, .ch-pfaq-i summary .ci { transition: none; }
}

/* ===========================================================================
 * СТАНДАРТНЫЕ СТРАНИЦЫ — контакты, правовые документы, уведомление о cookie.
 * ========================================================================= */

.ch-page-h1 { margin: 10px 0 0; font-size: clamp(26px, 1.3rem + 1.2vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.ch-page-lead { margin: 10px 0 0; max-width: 62ch; font-size: 16px; color: var(--ch-ink-2); }

/* ---------- Контакты ---------- */
.ch-cpage { padding-block: 18px clamp(30px, 4vw, 52px); }
.ch-cgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 36px); align-items: start; margin-top: 24px; }
.ch-clist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ch-clist li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid var(--ch-line); border-radius: var(--ch-r); background: var(--ch-surface); }
.ch-cic { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--ch-tint); color: var(--ch-brand-ink); }
.ch-clist small, .ch-cmsg small { display: block; font-size: 12.5px; color: var(--ch-muted); }
.ch-scope .ch-cval { display: block; margin-top: 2px; font-size: 16px; font-weight: 700; color: var(--ch-ink); }
.ch-scope a.ch-cval:hover { color: var(--ch-brand-ink); }
.ch-cnote { display: block; margin-top: 3px; font-size: 13px; color: var(--ch-ink-2); }
.ch-cmsg { margin-top: 18px; }
.ch-cmsg > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ch-scope .ch-cmsg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--ch-line-2);
    border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ch-ink); }
.ch-scope .ch-cmsg-btn:hover { border-color: var(--ch-brand); color: var(--ch-brand-ink); }
.ch-cmap-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ch-cmap-head b { font-size: 16px; }
.ch-map { position: relative; height: 440px; overflow: hidden; border: 1px solid var(--ch-line); border-radius: var(--ch-r); background: var(--ch-tint-2); }
.ch-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Под картой — ссылка на неё же: не загрузился iframe (блокировщик, нет
   сети) — на месте карты не пустота, а «Открыть в Яндекс Картах». */
.ch-scope .ch-map-fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: var(--ch-brand-ink); }
.ch-map-fallback .ci { width: 32px; height: 32px; }
.ch-cbottom { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 36px); margin-top: clamp(24px, 3vw, 36px); align-items: start; }
.ch-ccard { padding: 20px; border: 1px solid var(--ch-line); border-radius: var(--ch-r); background: var(--ch-surface); }
.ch-creq { display: grid; gap: 0; margin: 0; }
.ch-creq div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--ch-line); font-size: 14px; }
.ch-creq div:last-child { border-bottom: 0; }
.ch-creq dt { color: var(--ch-muted); }
.ch-creq dd { margin: 0; overflow-wrap: anywhere; }
.ch-cform { display: grid; gap: 12px; }
.ch-cform .ch-h3 { margin: 0; }
.ch-cform .ch-cnote { margin: -6px 0 0; }
.ch-cform-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ch-cform label:not(.ch-check) { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ch-ink-2); }
.ch-cform input:not([type=checkbox]), .ch-cform textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--ch-line-2); border-radius: var(--ch-r-sm);
    background: var(--ch-surface); color: var(--ch-ink); font: inherit; font-size: 15px; font-weight: 400; }
.ch-cform input:focus, .ch-cform textarea:focus { outline: none; border-color: var(--ch-brand); box-shadow: 0 0 0 4px var(--ch-tint); }
.ch-cform textarea { resize: vertical; min-height: 88px; }
.ch-cconsent { position: relative; align-items: flex-start; font-size: 13px; color: var(--ch-ink-2); }
.ch-cconsent .ch-box { margin-top: 1px; }
.ch-scope .ch-cconsent a { color: var(--ch-brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.ch-cform .ch-btn { justify-self: start; min-height: 46px; padding-inline: 28px; }

/* ---------- Правовые документы ---------- */
.ch-lpage { padding-block: 18px clamp(30px, 4vw, 52px); }
.ch-lgrid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 16px; }
.ch-lnav { position: sticky; top: 16px; padding: 16px; border: 1px solid var(--ch-line); border-radius: var(--ch-r); background: var(--ch-tint-2); }
.ch-lnav-t { display: block; margin: 0 0 10px 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ch-ink-2); }
.ch-lnav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ch-scope .ch-lnav a { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: var(--ch-r-sm); font-size: 14px; line-height: 1.3; color: var(--ch-ink-2); }
.ch-lnav a .ci { margin-top: 1px; color: var(--ch-muted); }
.ch-scope .ch-lnav a:hover { background: var(--ch-surface); color: var(--ch-ink); }
.ch-scope .ch-lnav a.active { background: var(--ch-surface); color: var(--ch-brand-ink); font-weight: 700; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.ch-lnav a.active .ci { color: var(--ch-brand-ink); }
.ch-ldoc .ch-page-h1 { margin-top: 0; }
.ch-ldate { margin: 8px 0 0; font-size: 14px; color: var(--ch-muted); }
.ch-prose { max-width: 76ch; margin-top: 18px; font-size: 15px; line-height: 1.65; color: var(--ch-ink-2); }
.ch-prose h2 { margin: 28px 0 10px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; color: var(--ch-ink); }
.ch-prose p { margin: 0 0 12px; }
.ch-prose ul { margin: 0 0 12px; padding-left: 22px; }
.ch-prose li { margin-bottom: 6px; }
.ch-prose b { color: var(--ch-ink); }
.ch-scope .ch-prose a { color: var(--ch-brand-ink); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

/* ---------- Уведомление о cookie ---------- */
.ch-cookie { position: fixed; z-index: 70; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 14px;
    width: min(520px, calc(100vw - 40px)); padding: 14px 16px; border: 1px solid var(--ch-line); border-radius: var(--ch-r);
    background: var(--ch-surface); color: var(--ch-ink); box-shadow: 0 16px 40px -18px rgba(16, 24, 40, .4); }
.ch-cookie[hidden] { display: none; }
.ch-cookie-ic { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--ch-tint); color: var(--ch-brand-ink); }
.ch-cookie p { flex: 1; margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ch-ink-2); }
.ch-scope .ch-cookie a { color: var(--ch-brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.ch-scope .ch-cookie .ch-btn { flex: 0 0 auto; padding: 10px 18px; }
.ch-cookie :focus-visible { outline: 2px solid var(--ch-brand); outline-offset: 2px; }

@media (max-width: 1100px) {
    .ch-cgrid, .ch-cbottom { grid-template-columns: minmax(0, 1fr); }
    .ch-map { height: 380px; }
    .ch-lgrid { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .ch-cpage, .ch-lpage { padding-top: 12px; }
    .ch-clist li { padding: 12px; gap: 12px; }
    .ch-cic { width: 40px; height: 40px; }
    .ch-map { height: 300px; }
    .ch-cmap-head { flex-wrap: wrap; }
    .ch-cform-row { grid-template-columns: minmax(0, 1fr); }
    .ch-cform .ch-btn { justify-self: stretch; }
    .ch-creq div { grid-template-columns: 90px minmax(0, 1fr); }
    /* Документы — лентой над текстом: колонка сбоку съела бы треть экрана. */
    .ch-lgrid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .ch-lnav { position: static; padding: 0; border: 0; background: none; }
    .ch-lnav-t { display: none; }
    .ch-lnav ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
        margin-inline: calc(-1 * clamp(16px, 3vw, 32px)); padding-inline: clamp(16px, 3vw, 32px); }
    .ch-lnav ul::-webkit-scrollbar { display: none; }
    .ch-scope .ch-lnav a { white-space: nowrap; padding: 8px 12px; border: 1px solid var(--ch-line); border-radius: 999px; font-size: 13px; }
    .ch-lnav a .ci { display: none; }
    .ch-scope .ch-lnav a.active { border-color: var(--ch-brand); background: var(--ch-tint-2); }
    .ch-prose { font-size: 14.5px; }
    .ch-prose h2 { font-size: 17px; margin-top: 22px; }
    /* Уведомление — над нижней панелью во всю ширину. */
    .ch-cookie { left: 12px; right: 12px; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); width: auto; flex-wrap: wrap; gap: 10px 12px; }
    .ch-cookie p { flex: 1 1 calc(100% - 56px); font-size: 13px; }
    .ch-scope .ch-cookie .ch-btn { flex: 1 1 100%; }
}

/* ===========================================================================
 * КОРЗИНА — три раскладки: 1 классическая, 2 компактная таблицей, 3 с
 * рекомендациями. Сверху шаги оформления; итоги в раскладках 1 и 3 — липкая
 * колонка справа. На телефоне товары карточками, итоги ниже, над нижней
 * панелью — полоса «Итого + Перейти к доставке».
 * ========================================================================= */

.ch-cart { padding-block: 14px clamp(30px, 4vw, 52px); }
.ch-cform-core { display: contents; }

/* ---------- Шаги оформления ---------- */
.ch-steps { display: flex; align-items: center; justify-content: center; margin: 6px 0 18px; padding: 0; list-style: none; }
.ch-step { display: flex; align-items: center; font-size: 14px; color: var(--ch-ink-2); }
.ch-step + .ch-step::before { content: ""; width: clamp(24px, 6vw, 80px); height: 1px; margin: 0 14px; background: var(--ch-line-2); }
.ch-scope .ch-step-in { display: flex; align-items: center; gap: 10px; color: inherit; }
.ch-step-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ch-tint);
    color: var(--ch-ink-2); font-size: 14px; font-weight: 700; }
.ch-step.is-now .ch-step-n { background: var(--ch-brand); color: var(--ch-on-brand); }
.ch-step.is-now { color: var(--ch-brand-ink); font-weight: 600; }
.ch-step.is-done .ch-step-n { color: var(--ch-brand-ink); }

.ch-chead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.ch-chead .ch-page-h1 { margin: 0; }
.ch-ccount { margin-left: 6px; font-size: .5em; font-weight: 500; letter-spacing: 0; color: var(--ch-muted); }

/* ---------- Товары ---------- */
.ch-cgrid2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(16px, 2.4vw, 28px); align-items: start; margin-top: 16px; }
.ch-citems-card { border: 1px solid var(--ch-line); border-radius: var(--ch-r); background: var(--ch-surface); }
.ch-citem { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; grid-template-areas: "ph info info" "ph price price" "ph qty acts";
    gap: 10px 18px; align-items: center; padding: 18px; }
.ch-citems .ch-citem + .ch-citem { border-top: 1px solid var(--ch-line); }
.ch-citem.is-leaving { opacity: 0; transform: translateX(12px); transition: opacity .18s, transform .18s; }
.ch-scope .ch-citem-ph { grid-area: ph; align-self: start; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden;
    border-radius: var(--ch-r-sm); background: var(--ch-tint-2); }
.ch-citem-ph .ch-art-good { width: 92%; }
.ch-citem-ph img { width: 100%; height: 100%; object-fit: contain; }
.ch-citem-info { grid-area: info; display: grid; gap: 4px; min-width: 0; }
.ch-scope .ch-citem-name { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ch-ink); }
.ch-scope .ch-citem-name:hover { color: var(--ch-brand-ink); }
.ch-citem-specs { font-size: 13px; color: var(--ch-muted); }
.ch-citem-price { grid-area: price; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ch-citem-price b { font-size: 18px; font-weight: 800; white-space: nowrap; }
.ch-citem-price s { font-size: 13px; color: var(--ch-muted); white-space: nowrap; }
.ch-citem-each { flex-basis: 100%; font-size: 12.5px; color: var(--ch-muted); }
.ch-citem-each[hidden] { display: none; }
.ch-citem-qty { grid-area: qty; justify-self: start; }
.ch-citem-acts { grid-area: acts; display: flex; gap: 2px; }
.ch-scope .ch-iconbtn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--ch-r-sm);
    background: none; color: var(--ch-ink-2); cursor: pointer; }
.ch-scope .ch-iconbtn:hover { background: var(--ch-tint-2); color: var(--ch-brand-ink); }
.ch-scope .ch-iconbtn[data-ch-remove]:hover { color: var(--ch-sale-ink); }
.ch-cart :focus-visible { outline: 2px solid var(--ch-brand); outline-offset: 2px; }

.ch-cfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.ch-scope .ch-ccontinue { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--ch-r-sm);
    background: var(--ch-tint); color: var(--ch-brand-ink); font-size: 14.5px; font-weight: 600; }
.ch-scope .ch-ccontinue:hover { background: color-mix(in srgb, var(--ch-brand) 18%, var(--ch-surface)); }
.ch-cclear { display: inline-flex; align-items: center; gap: 8px; padding: 8px 4px; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: 14px; color: var(--ch-ink-2); }
.ch-cclear:hover { color: var(--ch-sale-ink); }

/* ---------- Итоги ---------- */
.ch-cside { position: sticky; top: 16px; display: grid; gap: 14px; }
.ch-csum { padding: 20px; border: 1px solid var(--ch-line); border-radius: calc(var(--ch-r) + 2px); background: var(--ch-surface);
    box-shadow: 0 12px 32px -22px rgba(16, 24, 40, .3); }
.ch-scope .ch-csum-t { margin: 0 0 14px; font-size: 18px; font-weight: 800; }
.ch-csum-rows { display: grid; gap: 10px; margin: 0; }
.ch-csum-rows > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ch-csum-rows > div[hidden] { display: none; }
.ch-csum-rows dt { color: var(--ch-ink-2); }
.ch-csum-rows dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.ch-csum-rows .ch-minus { color: var(--ch-sale-ink); }
.ch-csum-rows .ch-csum-note { max-width: 17ch; font-size: 13px; font-weight: 400; color: var(--ch-muted); white-space: normal; }
.ch-csum-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 16px 0; padding-top: 16px; border-top: 1px solid var(--ch-line); }
.ch-csum-total span { font-size: 17px; font-weight: 700; }
.ch-csum-total b { font-size: 26px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.ch-cpromo { margin: 0 0 14px; }
.ch-cpromo-t { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.ch-cpromo-in { display: flex; overflow: hidden; border: 1px solid var(--ch-line-2); border-radius: var(--ch-r-sm); background: var(--ch-surface); }
.ch-cpromo-in:focus-within { border-color: var(--ch-brand); box-shadow: 0 0 0 4px var(--ch-tint); }
.ch-cpromo-in input { flex: 1; width: 100%; min-width: 0; padding: 11px 12px; border: 0; background: none; outline: none; font: inherit; font-size: 14px;
    color: var(--ch-ink); text-transform: uppercase; }
.ch-cpromo-in input::placeholder { color: var(--ch-muted); text-transform: none; opacity: 1; }
.ch-cpromo-go { display: grid; place-items: center; width: 46px; border: 0; background: var(--ch-tint-2); color: var(--ch-ink-2); cursor: pointer; }
.ch-cpromo-go:hover { background: var(--ch-tint); color: var(--ch-brand-ink); }
.ch-cpromo-msg { margin: 6px 0 0; font-size: 12.5px; }
.ch-cpromo-msg[hidden] { display: none; }
.ch-cpromo-msg.is-ok { color: var(--ch-ok-ink); }
.ch-cpromo-msg.is-err { color: var(--ch-sale-ink); }
/* Принятый промокод: код, что даёт, «Убрать». */
.ch-cpromo-cur { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ch-cpromo-x { margin-left: auto; padding: 0; border: 0; background: none; color: var(--ch-muted); font: inherit;
    text-decoration: underline; cursor: pointer; }
.ch-cpromo-x:hover { color: var(--ch-ink); }
.ch-scope .ch-ccheckout { min-height: 52px; gap: 10px; font-size: 16px; }
.ch-csum-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 12.5px; color: var(--ch-muted); }
.ch-cinfo { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: var(--ch-r); background: var(--ch-tint); }
.ch-cinfo-ic { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--ch-surface); color: var(--ch-brand-ink); }
.ch-cinfo > div { flex: 1; min-width: 0; }
.ch-cinfo b { display: block; font-size: 14.5px; }
.ch-cinfo > div > span { display: block; margin-top: 2px; font-size: 13px; color: var(--ch-ink-2); }
.ch-cfree { display: grid; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--ch-ink-2); }
.ch-cfree .ch-bar { background: var(--ch-surface); }
.ch-cfree .ch-bar i { transition: width .25s; }

/* ---------- Раскладка 2: таблица ---------- */
.ch-ctable { margin-top: 16px; overflow: hidden; border: 1px solid var(--ch-line); border-radius: var(--ch-r); background: var(--ch-surface); }
.ch-ctable-head, .ch-cart-v2 .ch-citem { grid-template-columns: 76px minmax(0, 1fr) 150px 150px 92px; }
.ch-ctable-head { display: grid; gap: 18px; padding: 12px 18px; background: var(--ch-tint-2); font-size: 13px; font-weight: 600; color: var(--ch-ink-2); }
.ch-ctable-head span:first-child { grid-column: 1 / 3; }
.ch-cart-v2 .ch-citem { grid-template-areas: "ph info qty price acts"; padding: 14px 18px; }
.ch-cart-v2 .ch-citem-ph { align-self: center; }
.ch-cart-v2 .ch-citem-price { flex-direction: column; align-items: flex-start; gap: 2px; }
.ch-cart-v2 .ch-citem-price .ch-tag { order: 3; margin-top: 4px; }
.ch-cart-v2 .ch-citem-each { order: 4; }
.ch-cart-v2 .ch-citem-acts { justify-content: flex-end; }
.ch-cpromo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 14px 0 0; padding: 14px 18px;
    border-radius: var(--ch-r); background: var(--ch-tint-2); }
.ch-cpromo-bar .ch-cpromo-t { margin: 0; font-weight: 700; }
.ch-cpromo-bar .ch-cpromo-in { flex: 1 1 320px; min-width: 0; gap: 10px; overflow: visible; border: 0; background: none; }
.ch-cpromo-bar .ch-cpromo-in:focus-within { box-shadow: none; }
.ch-cpromo-bar input { border: 1px solid var(--ch-line-2); border-radius: var(--ch-r-sm); background: var(--ch-surface); }
.ch-cpromo-bar input:focus { border-color: var(--ch-brand); box-shadow: 0 0 0 4px var(--ch-tint); }
.ch-cpromo-bar .ch-cpromo-msg { flex-basis: 100%; margin: 0; }
.ch-csum-wide { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: center; margin-top: 14px; box-shadow: none; }
.ch-csum-end { display: grid; gap: 6px; padding-left: 24px; border-left: 1px solid var(--ch-line); }
.ch-csum-label { font-size: 15px; font-weight: 700; }
.ch-csum-big { font-size: 30px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.ch-csum-end .ch-ccheckout { margin-top: 8px; }
.ch-cfoot-wide .ch-ccontinue { flex: 1; justify-content: center; }

/* ---------- Раскладка 3: рекомендации ---------- */
.ch-crecs-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ch-crec { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--ch-line); border-radius: var(--ch-r); background: var(--ch-surface); }
.ch-scope .ch-crec-name { min-height: 2.6em; font-size: 13px; line-height: 1.3; color: var(--ch-ink); }
.ch-crec-price { font-size: 16px; font-weight: 800; }
.ch-crec form { margin-top: auto; }
.ch-scope .ch-crec .ch-btn { min-height: 40px; }
.ch-crec .ch-btn.is-added { background: var(--ch-ok-ink); }
.ch-crec-added[hidden] { display: none; }

/* ---------- Пустая корзина ---------- */
.ch-cempty { display: grid; justify-items: center; gap: 10px; margin-top: 16px; padding: 48px 20px; text-align: center;
    border: 1px dashed var(--ch-line-2); border-radius: var(--ch-r); }
.ch-cempty[hidden], .ch-cbody[hidden] { display: none; }
.ch-cempty-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ch-tint); color: var(--ch-brand-ink); }
.ch-cempty-ic .ci { width: 28px; height: 28px; }
.ch-cempty h2 { margin: 6px 0 0; font-size: 20px; font-weight: 800; }
.ch-cempty p { margin: 0 0 8px; max-width: 44ch; font-size: 14.5px; color: var(--ch-ink-2); }

/* Полоса итогов на телефоне — те же стили, что у полосы покупки товара. */
.ch-cbar-sum { display: grid; }
.ch-cbar-sum > span { font-size: 12.5px; color: var(--ch-ink-2); }
.ch-cbar-sum b { font-size: 20px; font-weight: 800; }
.ch-cbar[hidden] { display: none !important; }

@media (max-width: 1100px) {
    .ch-cgrid2 { grid-template-columns: minmax(0, 1fr) 300px; }
    .ch-crecs-row { gap: 8px; }
    .ch-crec { padding: 8px; }
    .ch-scope .ch-crec-name { font-size: 12.5px; }
    .ch-ctable-head, .ch-cart-v2 .ch-citem { grid-template-columns: 64px minmax(0, 1fr) 128px 118px 84px; gap: 14px; }
    .ch-citem { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 8px 14px; padding: 16px; }
    .ch-csum-wide { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 700px) {
    .ch-cart { padding-top: 8px; }
    .ch-steps { margin-bottom: 14px; }
    .ch-step { font-size: 12.5px; }
    .ch-step + .ch-step::before { width: 18px; margin: 0 8px; }
    .ch-scope .ch-step-in { gap: 6px; }
    .ch-step-n { width: 26px; height: 26px; font-size: 12.5px; }
    .ch-cgrid2 { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 12px; }
    .ch-cside { position: static; }
    /* Строка товара — карточка: фото, название и цена рядом, количество и
       действия строкой ниже во всю ширину. */
    .ch-citem, .ch-cart-v2 .ch-citem { grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "ph info info" "ph price price" "qty qty acts";
        gap: 8px 12px; padding: 14px; }
    .ch-cart-v2 .ch-citem-ph { align-self: start; }
    .ch-cart-v2 .ch-citem-price { flex-direction: row; align-items: center; gap: 4px 8px; }
    .ch-cart-v2 .ch-citem-price .ch-tag { order: 0; margin-top: 0; }
    .ch-ctable-head { display: none; }
    .ch-citem-price b { font-size: 17px; }
    .ch-citem-qty { margin-top: 4px; }
    .ch-citem-acts { margin-top: 4px; }
    .ch-cfoot { flex-direction: column-reverse; align-items: stretch; }
    .ch-scope .ch-ccontinue { justify-content: center; }
    .ch-cclear { justify-content: center; }
    .ch-csum { padding: 16px; }
    .ch-csum-wide { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .ch-csum-end { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--ch-line); }
    .ch-csum-big { font-size: 26px; }
    .ch-cpromo-bar { padding: 14px; }
    .ch-cpromo-bar .ch-cpromo-in { flex-basis: 100%; }
    /* Рекомендации — лентой вбок, как похожие товары в карточке. */
    .ch-crecs-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; gap: 10px; overflow-x: auto;
        scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * clamp(16px, 3vw, 32px));
        padding-inline: clamp(16px, 3vw, 32px); scroll-padding-inline: clamp(16px, 3vw, 32px); }
    .ch-crecs-row::-webkit-scrollbar { display: none; }
    .ch-crec { scroll-snap-align: start; }
    .ch-cart:has(.ch-pbar) { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
    .ch-citem.is-leaving, .ch-cfree .ch-bar i { transition: none; }
}
.ch-crec .ch-btn.is-added > .ci:first-child { display: none; }
.ch-badge-n[hidden] { display: none; }

/* ===========================================================================
 * КАБИНЕТ ПОКУПАТЕЛЯ — меню слева, раздел справа. На планшете меню уже, на
 * телефоне — карточка покупателя и меню лентой вбок над разделом.
 * ========================================================================= */

.ch-scope { --ch-warn: #b56a00; --ch-warn-ink: color-mix(in srgb, var(--ch-warn) 72%, var(--ch-ink)); }
.ch-acc { padding-block: 20px clamp(30px, 4vw, 52px); }
.ch-acc-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }

/* ---------- Меню ---------- */
.ch-acc-side { position: sticky; top: 16px; display: grid; gap: 12px; padding: 16px; border: 1px solid var(--ch-line);
    border-radius: calc(var(--ch-r) + 2px); background: var(--ch-surface); }
.ch-acc-user { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; border-bottom: 1px solid var(--ch-line); }
.ch-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
    background: var(--ch-brand); color: var(--ch-on-brand); font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.ch-acc-user > span:last-child { display: grid; min-width: 0; }
.ch-acc-user b { font-size: 15px; }
.ch-acc-user b + span { overflow: hidden; font-size: 13px; color: var(--ch-muted); text-overflow: ellipsis; white-space: nowrap; }
.ch-acc-nav { display: grid; gap: 2px; }
.ch-scope .ch-acc-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--ch-r-sm);
    font-size: 14.5px; color: var(--ch-ink-2); }
.ch-acc-nav a .ci { color: var(--ch-muted); }
.ch-scope .ch-acc-nav a:hover { background: var(--ch-tint-2); color: var(--ch-ink); }
.ch-scope .ch-acc-nav a.active { background: var(--ch-tint); color: var(--ch-brand-ink); font-weight: 700; }
.ch-acc-nav a.active .ci { color: var(--ch-brand-ink); }
.ch-acc-nav span { flex: 1; }
.ch-acc-nav em { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--ch-tint-2); font-size: 12px; font-style: normal;
    font-weight: 700; text-align: center; color: var(--ch-ink-2); }
.ch-acc-nav a.active em { background: var(--ch-surface); color: var(--ch-brand-ink); }
.ch-acc-logout { margin: 0; padding-top: 8px; border-top: 1px solid var(--ch-line); }
.ch-acc-logout button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--ch-r-sm);
    background: none; cursor: pointer; font: inherit; font-size: 14.5px; color: var(--ch-ink-2); }
.ch-acc-logout button:hover { background: var(--ch-tint-2); color: var(--ch-sale-ink); }

/* ---------- Общее в разделах ---------- */
.ch-acc-main { min-width: 0; }
.ch-acc-head { margin-bottom: 18px; }
.ch-acc-head .ch-page-h1 { margin: 0; }
.ch-acc-head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.ch-acc-head-row .ch-acc-sub { flex-basis: 100%; }
.ch-acc-sub { margin: 6px 0 0; font-size: 14.5px; color: var(--ch-ink-2); }
.ch-acard { padding: 20px; border: 1px solid var(--ch-line); border-radius: calc(var(--ch-r) + 2px); background: var(--ch-surface); }
.ch-acard + .ch-acard { margin-top: 14px; }
.ch-scope .ch-acard-t { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 800; }
.ch-acard-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ch-status { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ch-status.is-new { background: var(--ch-tint); color: var(--ch-brand-ink); }
.ch-status.is-work { background: color-mix(in srgb, var(--ch-warn) 14%, var(--ch-surface)); color: var(--ch-warn-ink); }
.ch-status.is-way { background: var(--ch-tint); color: var(--ch-brand-ink); }
.ch-status.is-ok { background: color-mix(in srgb, var(--ch-ok) 12%, var(--ch-surface)); color: var(--ch-ok-ink); }
.ch-status.is-off { background: var(--ch-tint-2); color: var(--ch-ink-2); }
.ch-acc-eta { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--ch-ink); }
.ch-acc-eta.is-off { font-weight: 400; color: var(--ch-ink-2); }
.ch-acc-empty { padding: 28px; border: 1px dashed var(--ch-line-2); border-radius: var(--ch-r); text-align: center; color: var(--ch-ink-2); }
.ch-scope .ch-acc-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--ch-brand-ink); }
.ch-scope .ch-acc-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; font-size: 14px; color: var(--ch-brand-ink); }

/* ---------- Трекер заказа ---------- */
.ch-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0 4px; padding: 0; list-style: none; }
.ch-track li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; }
.ch-track li + li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 3px; margin-right: 14px;
    border-radius: 3px; background: var(--ch-line); z-index: 0; }
.ch-track li.is-done + li::before, .ch-track li.is-done + li.is-now::before { background: var(--ch-brand); }
.ch-track-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    border: 3px solid var(--ch-line); background: var(--ch-surface); color: var(--ch-on-brand); }
.ch-track li.is-done .ch-track-dot { border-color: var(--ch-brand); background: var(--ch-brand); }
.ch-track li.is-now .ch-track-dot { border-color: var(--ch-brand); box-shadow: 0 0 0 5px var(--ch-tint); }
.ch-track li.is-now .ch-track-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ch-brand); }
.ch-track-t { display: grid; gap: 2px; font-size: 13px; }
.ch-track-t b { font-weight: 600; color: var(--ch-ink); }
.ch-track li.is-next .ch-track-t b { font-weight: 500; color: var(--ch-ink-2); }
.ch-track-t span { font-size: 12px; color: var(--ch-muted); }
.ch-track.is-off li.is-done .ch-track-dot { border-color: var(--ch-muted); background: var(--ch-muted); color: var(--ch-surface); }

/* ---------- Обзор ---------- */
.ch-acc-over { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.ch-acc-over > .ch-acard + .ch-acard { margin-top: 0; }
.ch-acc-live-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ch-line); }
.ch-bonus { background: linear-gradient(150deg, var(--ch-tint) 0%, var(--ch-tint-2) 100%); }
.ch-bonus-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ch-bonus-lvl { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--ch-surface);
    font-size: 12.5px; font-weight: 700; color: var(--ch-ink-2); }
.ch-bonus-lvl .ci { color: var(--ch-star); }
.ch-bonus-sum { margin: 16px 0 0; font-size: 15px; color: var(--ch-ink-2); }
.ch-bonus-sum b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--ch-ink); }
.ch-bonus-note { margin: 4px 0 0; font-size: 13px; color: var(--ch-ink-2); }
.ch-bonus-next { display: grid; gap: 6px; margin-top: 16px; font-size: 12.5px; color: var(--ch-ink-2); }
.ch-bonus-next .ch-bar { background: var(--ch-surface); }

/* ---------- Заказы ---------- */
.ch-othumbs { display: flex; gap: 6px; }
.ch-othumb { display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: var(--ch-r-sm); background: var(--ch-tint-2); }
.ch-othumb .ch-art-good { width: 92%; }
.ch-othumb-more { font-size: 13px; font-weight: 700; color: var(--ch-ink-2); }
.ch-olist { display: grid; gap: 12px; }
.ch-olist-compact { gap: 0; border: 1px solid var(--ch-line); border-radius: calc(var(--ch-r) + 2px); background: var(--ch-surface); }
.ch-scope .ch-orow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto 20px; align-items: center; gap: 14px; padding: 12px 16px; color: var(--ch-ink); }
.ch-orow + .ch-orow { border-top: 1px solid var(--ch-line); }
.ch-scope .ch-orow:hover { background: var(--ch-tint-2); }
.ch-orow .ch-othumb { width: 44px; height: 44px; }
.ch-orow-t { display: grid; }
.ch-orow-t span { font-size: 13px; color: var(--ch-muted); }
.ch-orow-sum { white-space: nowrap; }
.ch-orow > .ci { color: var(--ch-muted); }
.ch-acc-tabs { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.ch-acc-tabs::-webkit-scrollbar { display: none; }
.ch-scope .ch-acc-tabs a { padding: 8px 14px; border: 1px solid var(--ch-line); border-radius: 999px; font-size: 14px; white-space: nowrap; color: var(--ch-ink-2); }
.ch-scope .ch-acc-tabs a:hover { border-color: var(--ch-brand); }
.ch-scope .ch-acc-tabs a.active { border-color: var(--ch-brand); background: var(--ch-brand); color: var(--ch-on-brand); font-weight: 600; }
.ch-ocard { padding: 18px 20px; border: 1px solid var(--ch-line); border-radius: calc(var(--ch-r) + 2px); background: var(--ch-surface); }
.ch-ocard.is-active { border-color: color-mix(in srgb, var(--ch-brand) 35%, var(--ch-line)); }
.ch-ocard-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ch-scope .ch-ocard-head a { font-size: 16px; color: var(--ch-ink); }
.ch-ocard-date { font-size: 13.5px; color: var(--ch-muted); }
.ch-ocard-head .ch-status { margin-left: auto; }
.ch-ocard-body { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 14px; }
.ch-ocard-info { display: grid; gap: 2px; font-size: 13.5px; color: var(--ch-ink-2); }
.ch-ocard-info b { font-size: 18px; color: var(--ch-ink); }
.ch-ocard-eta { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--ch-ink); font-weight: 600; }
.ch-ocard-eta.is-off { font-weight: 400; color: var(--ch-ink-2); }
.ch-ocard-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ch-line); }
.ch-ocard-foot form { margin: 0; }
.ch-scope .ch-ocard-foot .ch-btn, .ch-scope .ch-ocard-foot .ch-btn-line { min-height: 42px; padding: 9px 16px; font-size: 14px; }

/* ---------- Заказ подробно ---------- */
.ch-odetail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; margin-top: 14px; }
.ch-odetail-side { display: grid; gap: 14px; }
.ch-odetail-side .ch-acard + .ch-acard { margin-top: 0; }
.ch-oline { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 0; }
.ch-oline + .ch-oline { border-top: 1px solid var(--ch-line); }
.ch-olines .ch-acard-t { margin-bottom: 4px; }
/* Картинка — та же, что в корзине, но без её области сетки (grid-area: ph):
   в строке заказа своя сетка, и чужая область уводила картинку вниз. */
.ch-scope .ch-oline .ch-citem-ph { grid-area: auto; align-self: center; width: 64px; }
.ch-oline-t { display: grid; gap: 2px; min-width: 0; }
.ch-scope .ch-oline-t a { font-weight: 600; color: var(--ch-ink); }
.ch-oline-t span, .ch-oline-q { font-size: 13px; color: var(--ch-muted); }
.ch-oline b { white-space: nowrap; }
.ch-kv { display: grid; gap: 8px; margin: 12px 0 0; }
.ch-kv div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.ch-kv dt { color: var(--ch-muted); }
.ch-kv dd { margin: 0; }
.ch-odetail-side .ch-csum-rows { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ch-line); }
.ch-odetail-side .ch-csum-total { margin-bottom: 0; }
.ch-acc-bonus { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 13px; color: var(--ch-ok-ink); font-weight: 600; }
.ch-odetail-acts { display: grid; gap: 8px; }
.ch-odetail-acts form { margin: 0; }
.ch-acc-pay { margin: 14px 0 0; }

/* ---------- Адреса ---------- */
.ch-addrs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ch-addrs .ch-acard + .ch-acard { margin-top: 0; }
.ch-addr.is-default { border-color: color-mix(in srgb, var(--ch-brand) 40%, var(--ch-line)); }
.ch-addr-t { margin: 12px 0 0; font-size: 15px; }
.ch-addr-note { margin: 4px 0 0; font-size: 13px; color: var(--ch-ink-2); }
.ch-addr-acts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ch-line); }
.ch-addr-acts form { margin: 0; }
.ch-scope .ch-addr-acts a, .ch-addr-acts button { padding: 4px 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 13.5px;
    font-weight: 600; color: var(--ch-brand-ink); }
.ch-addr-acts button.is-danger { color: var(--ch-ink-2); }
.ch-addr-acts button.is-danger:hover { color: var(--ch-sale-ink); }
.ch-scope .ch-addr-add { display: grid; place-content: center; justify-items: center; gap: 8px; min-height: 160px; border: 1.5px dashed var(--ch-line-2);
    border-radius: calc(var(--ch-r) + 2px); font-weight: 600; color: var(--ch-brand-ink); }
.ch-scope .ch-addr-add:hover { border-color: var(--ch-brand); background: var(--ch-tint-2); }

/* ---------- Профиль ---------- */
.ch-prof { display: grid; gap: 16px; }
.ch-prof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ch-field-wide { grid-column: 1 / -1; }
/* Фото товара в заказе (сайт магазина): вписать в ту же клетку, что рисунок. */
.ch-othumb img, .ch-oline .ch-citem-ph img, .ch-adm-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ch-field { display: grid; align-content: start; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ch-ink-2); }
.ch-field input { width: 100%; padding: 11px 13px; border: 1px solid var(--ch-line-2); border-radius: var(--ch-r-sm); background: var(--ch-surface);
    color: var(--ch-ink); font: inherit; font-size: 15px; font-weight: 400; }
.ch-field input:focus { outline: none; border-color: var(--ch-brand); box-shadow: 0 0 0 4px var(--ch-tint); }
.ch-field small { font-size: 12px; font-weight: 400; color: var(--ch-muted); }
.ch-prof-sub { margin-top: 6px !important; }
.ch-switches { display: grid; gap: 4px; }
.ch-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; cursor: pointer; }
.ch-switch + .ch-switch { border-top: 1px solid var(--ch-line); }
.ch-switch-t { display: grid; gap: 2px; }
.ch-switch-t b { font-size: 14.5px; font-weight: 600; }
.ch-switch-t span { font-size: 13px; color: var(--ch-ink-2); }
.ch-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ch-switch-ui { position: relative; flex: 0 0 auto; width: 44px; height: 26px; border-radius: 999px; background: var(--ch-line-2); transition: background .15s; }
.ch-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .3); transition: transform .15s; }
.ch-switch input:checked + .ch-switch-ui { background: var(--ch-brand); }
.ch-switch input:checked + .ch-switch-ui::after { transform: translateX(18px); }
.ch-switch input:focus-visible + .ch-switch-ui { outline: 2px solid var(--ch-brand); outline-offset: 2px; }
.ch-prof > .ch-btn { justify-self: start; min-height: 46px; padding-inline: 28px; }
.ch-linked { display: grid; gap: 0; margin-top: 8px; }
.ch-linked-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.ch-linked-row + .ch-linked-row { border-top: 1px solid var(--ch-line); }
.ch-linked-row form { margin: 0 0 0 auto; }
.ch-linked-mark { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; font-weight: 800; color: #fff; }
.ch-linked-mark.is-yandex { background: var(--ch-ya); }
.ch-linked-mark.is-vk { background: var(--ch-vk); font-size: 12px; }
.ch-linked-t { display: grid; gap: 2px; }
.ch-linked-t span { font-size: 13px; color: var(--ch-ink-2); }
.ch-scope .ch-linked-row .ch-btn, .ch-scope .ch-linked-row .ch-btn-line { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.ch-danger { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.ch-danger > span { display: grid; gap: 2px; }
.ch-danger > span span { font-size: 13px; color: var(--ch-ink-2); }
.ch-scope .ch-danger a { font-size: 14px; font-weight: 600; color: var(--ch-sale-ink); }

@media (max-width: 1100px) {
    .ch-acc-grid { grid-template-columns: 220px minmax(0, 1fr); }
    .ch-acc-side { padding: 12px; }
    .ch-scope .ch-acc-nav a { gap: 10px; padding: 9px 10px; font-size: 14px; }
    .ch-acc-over { grid-template-columns: minmax(0, 1fr); }
    .ch-odetail { grid-template-columns: minmax(0, 1fr); }
    .ch-odetail-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ch-odetail-acts { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .ch-addrs { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
    .ch-acc { padding-top: 12px; }
    /* Меню — карточка покупателя и лента разделов над разделом. */
    .ch-acc-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .ch-acc-side { position: static; gap: 10px; padding: 0; border: 0; background: none; }
    .ch-acc-user { padding: 0 0 4px; border: 0; }
    .ch-acc-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * clamp(16px, 3vw, 32px));
        padding-inline: clamp(16px, 3vw, 32px); }
    .ch-acc-nav::-webkit-scrollbar { display: none; }
    .ch-scope .ch-acc-nav a { flex: 0 0 auto; gap: 8px; padding: 8px 12px; border: 1px solid var(--ch-line); border-radius: 999px; font-size: 13.5px; white-space: nowrap; }
    .ch-acc-nav a .ci { width: 18px; height: 18px; }
    .ch-scope .ch-acc-nav a.active { border-color: var(--ch-brand); }
    .ch-acc-logout { display: none; }
    .ch-acard { padding: 16px; }
    .ch-track { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 14px; }
    /* Трекер — столбиком: подписи с датами в строку не помещаются. */
    .ch-track li { grid-template-columns: 28px minmax(0, 1fr); justify-items: start; align-items: center; gap: 12px; padding: 6px 0; text-align: left; }
    .ch-track li + li::before { top: -12px; right: auto; left: 12px; width: 3px; height: 24px; margin: 0; }
    .ch-scope .ch-orow { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
    .ch-orow .ch-status { grid-column: 2; grid-row: 2; justify-self: start; }
    .ch-orow-sum { grid-column: 3; grid-row: 1 / 3; }
    .ch-orow > .ci { display: none; }
    .ch-orow .ch-othumbs { grid-row: 1 / 3; }
    .ch-orow .ch-othumb:nth-child(n+2) { display: none; }
    .ch-ocard { padding: 14px; }
    .ch-ocard-head .ch-status { margin-left: 0; }
    .ch-ocard-foot > * { flex: 1 1 100%; }
    .ch-scope .ch-ocard-foot .ch-btn, .ch-scope .ch-ocard-foot .ch-btn-line { width: 100%; }
    .ch-odetail-side { grid-template-columns: minmax(0, 1fr); }
    .ch-oline { grid-template-columns: 56px minmax(0, 1fr) auto; }
    .ch-scope .ch-oline .ch-citem-ph { width: 56px; }
    .ch-oline-q { grid-column: 2; }
    .ch-oline b { grid-column: 3; grid-row: 1 / 3; }
    .ch-prof-grid { grid-template-columns: minmax(0, 1fr); }
    .ch-prof > .ch-btn { justify-self: stretch; }
    .ch-linked-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .ch-switch-ui, .ch-switch-ui::after { transition: none; }
}

/* =====================================================================
   ПАНЕЛЬ МАГАЗИНА (ch_admin): вход, сводка, заказы, заказ, товары,
   покупатели. Страница целиком — без шапки и подвала магазина. Фон
   на шаг темнее карточек, чтобы карточки читались без теней.
   ===================================================================== */
.ch-scope { --ch-adm-bg: color-mix(in srgb, var(--ch-ink) 4%, var(--ch-surface)); --ch-adm-side: 248px; --ch-mark: var(--ch-brand); }
body.ch-adm-page { background: var(--ch-adm-bg); }
.ch-adm { display: grid; grid-template-columns: var(--ch-adm-side) minmax(0, 1fr); min-height: 100vh;
    /* Колонка меню тянется фоном до низа длинной страницы: само меню липкое
       и высотой в экран. */
    background: linear-gradient(to right, var(--ch-surface) calc(var(--ch-adm-side) - 1px), var(--ch-line) 0 var(--ch-adm-side), var(--ch-adm-bg) 0); }
.ch-adm-menu-cb { display: none; }

/* ---------- Меню слева ---------- */
.ch-adm-side { position: sticky; top: 0; z-index: 30; display: flex; flex-direction: column; gap: 14px; height: 100vh; padding: 18px 14px;
    border-right: 1px solid var(--ch-line); background: var(--ch-surface); overflow-y: auto; }
.ch-adm-side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px 6px; }
.ch-adm-brand { display: grid; gap: 1px; min-width: 0; }
.ch-adm-logo { font-size: 19px; font-weight: 800; letter-spacing: .02em; color: var(--ch-ink); }
.ch-adm-brand-t { font-size: 12.5px; font-weight: 600; color: var(--ch-muted); white-space: nowrap; }
.ch-adm-close { display: none; }
.ch-adm-nav { display: grid; gap: 2px; }
.ch-scope .ch-adm-nav a, .ch-scope .ch-adm-side-a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0;
    border-radius: var(--ch-r-sm); background: none; color: var(--ch-ink-2); font: inherit; font-size: 15px; font-weight: 500; text-align: left; cursor: pointer; }
.ch-scope .ch-adm-nav a:hover, .ch-scope .ch-adm-side-a:hover { background: var(--ch-tint-2); color: var(--ch-ink); }
.ch-scope .ch-adm-nav a.active { background: var(--ch-tint); color: var(--ch-brand-ink); font-weight: 700; }
.ch-adm-nav a .ci, .ch-adm-side-a .ci { color: var(--ch-muted); }
.ch-adm-nav a.active .ci { color: var(--ch-brand-ink); }
.ch-adm-nav a > span { flex: 1; min-width: 0; }
.ch-adm-nav em { min-width: 22px; padding: 2px 7px; border-radius: 999px; font-size: 12px; font-style: normal; font-weight: 700; text-align: center; }
.ch-adm-nav em.is-brand { background: var(--ch-brand); color: var(--ch-on-brand); }
.ch-adm-nav em.is-warn { background: color-mix(in srgb, var(--ch-warn) 16%, var(--ch-surface)); color: var(--ch-warn-ink); }
.ch-adm-side-foot { display: grid; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--ch-line); }
.ch-adm-side-foot form { margin: 0; }
.ch-adm-me { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.ch-adm-me .ch-avatar, .ch-adm-top-ava, .ch-adm-who .ch-avatar { width: 38px; height: 38px; font-size: 14px; }
.ch-adm-me-t { display: grid; min-width: 0; }
.ch-adm-me-t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-adm-me-t span { font-size: 12.5px; color: var(--ch-muted); }
.ch-adm-scrim { display: none; }

/* ---------- Верхняя строка ---------- */
.ch-adm-main { display: flex; flex-direction: column; min-width: 0; }
.ch-adm-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px clamp(16px, 3vw, 32px);
    border-bottom: 1px solid var(--ch-line); background: var(--ch-surface); }
.ch-adm-burger, .ch-adm-top-logo { display: none; }
.ch-adm-topsearch { flex: 1; max-width: 460px; margin: 0; }
.ch-adm-topsearch label, .ch-adm-find-f { display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--ch-line-2); border-radius: 999px;
    background: var(--ch-surface); color: var(--ch-muted); }
.ch-adm-topsearch label:focus-within, .ch-adm-find-f:focus-within { border-color: var(--ch-brand); box-shadow: 0 0 0 4px var(--ch-tint); }
.ch-adm-topsearch input, .ch-adm-find-f input { flex: 1; min-width: 0; height: 40px; border: 0; outline: none; background: none; color: var(--ch-ink); font: inherit; font-size: 14.5px; }
.ch-adm-bell { position: relative; display: grid; place-items: center; width: 42px; height: 42px; margin-left: auto; border-radius: 50%; color: var(--ch-ink-2); }
.ch-scope .ch-adm-bell:hover { background: var(--ch-tint-2); }
.ch-adm-bell .ch-badge-n { top: 3px; right: 1px; }
.ch-adm-top-ava { font-size: 13px; }

/* ---------- Содержимое ---------- */
.ch-adm-body { width: 100%; max-width: 1360px; padding: clamp(18px, 2.4vw, 32px) clamp(16px, 3vw, 32px) 48px; }
.ch-adm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 20px; }
.ch-adm-head-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ch-adm-head-acts form { margin: 0; }
.ch-scope .ch-adm-h1 { margin: 0; font-size: clamp(24px, 2.3vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.ch-adm-h1-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ch-scope .ch-adm-h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.ch-adm-sub { display: block; margin: 4px 0 0; font-size: 13px; color: var(--ch-muted); }
/* Прямо на фоне страницы (он на шаг темнее карточки) приглушённый цвет
   не дотягивал до 4.5:1 — там текст вторым цветом. */
p.ch-adm-sub { font-size: 14px; color: var(--ch-ink-2); }
.ch-adm-sec { margin-top: 28px; }
.ch-adm-sec:first-of-type { margin-top: 0; }
.ch-adm-sec > .ch-adm-h2 { margin-bottom: 12px; }
.ch-adm-sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.ch-adm-sec-head-l { justify-content: flex-start; }
.ch-scope .ch-adm-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ch-brand-ink); }
.ch-scope .ch-adm-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ch-adm-card { padding: 20px; border: 1px solid var(--ch-line); border-radius: var(--ch-r); background: var(--ch-surface); }
.ch-scope .ch-adm-card-t { margin: 0 0 14px; font-size: 16px; font-weight: 700; }
.ch-scope .ch-btn-line .ci, .ch-scope .ch-btn .ci { margin-right: 6px; }
.ch-adm-head .ch-btn, .ch-adm-head .ch-btn-line { min-height: 44px; padding: 9px 18px; font-size: 14.5px; }

/* Требуют внимания */
.ch-adm-attn { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ch-scope .ch-adm-attn-card { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--ch-line); border-radius: var(--ch-r);
    background: var(--ch-surface); color: var(--ch-ink); }
.ch-scope .ch-adm-attn-card:hover { border-color: var(--ch-brand); }
.ch-adm-attn-card > .ci:last-child { margin-left: auto; color: var(--ch-muted); }
.ch-adm-attn-ic { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: var(--ch-tint); color: var(--ch-brand-ink); }
.ch-adm-attn-card.is-warn .ch-adm-attn-ic { background: color-mix(in srgb, var(--ch-warn) 14%, var(--ch-surface)); color: var(--ch-warn-ink); }
.ch-adm-attn-t { font-size: 14px; line-height: 1.35; }
.ch-adm-attn-t b { font-size: 20px; font-weight: 800; }
.ch-adm-attn-t span { display: block; color: var(--ch-muted); }

/* Период — сегменты одной строкой над показателями */
.ch-adm-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--ch-line); border-radius: 999px; background: var(--ch-surface); }
.ch-scope .ch-adm-seg a { padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ch-ink-2); white-space: nowrap; }
.ch-scope .ch-adm-seg a:hover { background: var(--ch-tint-2); }
.ch-scope .ch-adm-seg a.active { background: var(--ch-ink); color: var(--ch-surface); }

/* Показатели: крупное значение пропорциональными цифрами, изменение со
   стрелкой и знаком — не одним цветом. */
.ch-adm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ch-adm-kpi { padding: 16px 18px; border: 1px solid var(--ch-line); border-radius: var(--ch-r); background: var(--ch-surface); }
.ch-adm-kpi p { margin: 0; }
.ch-adm-kpi-l { font-size: 13.5px; font-weight: 600; color: var(--ch-ink-2); }
.ch-adm-kpi-v { margin-top: 6px !important; font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.ch-adm-delta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 6px !important; font-size: 12.5px; }
.ch-adm-delta b { font-weight: 700; }
.ch-adm-delta span { color: var(--ch-muted); }
.ch-adm-delta.is-good { color: var(--ch-ok-ink); }
.ch-adm-delta.is-bad { color: var(--ch-sale-ink); }
.ch-adm-sales { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; margin-top: 12px; align-items: start; }

/* График: столбцы до 24 px со скруглением только у вершины, 2 px воздуха
   между соседями, сплошная тонкая сетка. Высота — у области рисования, ось
   дат ниже неё: подписи не обрезаются и карточка не прокручивается. */
.ch-adm-chart { margin: 0; }
.ch-adm-plot { position: relative; height: 240px; margin: 18px 0 0 58px; }
.ch-adm-grid span { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--ch-line); }
.ch-adm-grid span:first-child { border-top-color: var(--ch-line-2); }
.ch-adm-grid i { position: absolute; right: calc(100% + 10px); top: -.7em; font-size: 12px; font-style: normal; color: var(--ch-muted);
    white-space: nowrap; font-variant-numeric: tabular-nums; }
.ch-adm-bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.ch-adm-bars li { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; border-radius: 6px 6px 0 0; outline: none; }
.ch-adm-bar { display: block; width: min(24px, calc(100% - 2px)); height: var(--h); border-radius: 4px 4px 0 0; background: var(--ch-mark); }
.ch-adm-bars li:hover, .ch-adm-bars li.is-hot { background: color-mix(in srgb, var(--ch-ink) 6%, transparent); }
.ch-adm-bars li:focus-visible .ch-adm-bar { box-shadow: 0 0 0 2px var(--ch-surface), 0 0 0 4px var(--ch-ink); }
.ch-adm-bar-v { position: absolute; bottom: calc(var(--h) + 6px); left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700;
    color: var(--ch-ink-2); white-space: nowrap; }
.ch-adm-xaxis { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin: 8px 0 0 58px; font-size: 12px; color: var(--ch-muted); }
.ch-adm-xaxis span { grid-row: 1; justify-self: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ch-adm-tip { position: absolute; z-index: 3; min-width: 150px; padding: 8px 12px; border: 1px solid var(--ch-line-2); border-radius: 10px;
    background: var(--ch-surface); box-shadow: 0 10px 28px rgba(16, 24, 40, .14); font-size: 12.5px; color: var(--ch-muted);
    transform: translate(-50%, calc(-100% - 10px)); pointer-events: none; white-space: nowrap; }
.ch-adm-tip b { display: block; font-size: 16px; font-weight: 800; color: var(--ch-ink); }
.ch-adm-tip[hidden] { display: none; }
.ch-adm-tview { margin-top: 16px; }
.ch-adm-tview summary { display: inline-flex; font-size: 13.5px; font-weight: 600; color: var(--ch-brand-ink); cursor: pointer; }
.ch-adm-tview[open] summary { margin-bottom: 10px; }
.ch-adm-scroll { max-height: 320px; overflow: auto; border: 1px solid var(--ch-line); border-radius: var(--ch-r-sm); }
.ch-adm-table-plain td, .ch-adm-table-plain th[scope="row"] { font-variant-numeric: tabular-nums; }
.ch-adm-table-plain td { text-align: right; }

/* Лучшие товары: полоса — доля от первого места, дорожка — светлый шаг того же цвета */
.ch-adm-best ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ch-adm-best li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; }
.ch-adm-thumb { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--ch-tint-2); overflow: hidden; }
.ch-adm-thumb .ch-art-good { width: 92%; }
.ch-adm-best li > .ch-adm-thumb { grid-row: 1 / 3; }
.ch-adm-best-t { display: grid; min-width: 0; }
.ch-adm-best-t b { display: -webkit-box; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.3;
    -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ch-adm-best-t span { font-size: 12.5px; color: var(--ch-muted); }
.ch-adm-best-sum { font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ch-adm-meter { grid-column: 2 / -1; height: 6px; border-radius: 3px; background: var(--ch-tint); overflow: hidden; }
.ch-adm-meter i { display: block; height: 100%; border-radius: 3px; background: var(--ch-mark); }

/* ---------- Таблицы ---------- */
.ch-adm-tcard { padding: 0; overflow-x: auto; }
.ch-adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ch-adm-table th { padding: 11px 16px; border-bottom: 1px solid var(--ch-line); background: color-mix(in srgb, var(--ch-ink) 2.5%, var(--ch-surface));
    font-size: 12.5px; font-weight: 600; color: var(--ch-ink-2); text-align: left; white-space: nowrap; }
.ch-adm-table th[scope="row"] { background: none; font-size: 13.5px; font-weight: 500; color: var(--ch-ink); }
.ch-adm-table td { padding: 12px 16px; border-bottom: 1px solid var(--ch-line); vertical-align: middle; }
.ch-adm-table tbody tr:last-child td, .ch-adm-table tbody tr:last-child th { border-bottom: 0; }
.ch-adm-table-cards tbody tr:hover { background: var(--ch-tint-2); }
.ch-scope .ch-adm-table .ch-adm-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ch-adm-name { display: block; font-weight: 600; }
.ch-adm-cell { display: block; }
.ch-scope .ch-adm-ono { display: block; font-weight: 700; color: var(--ch-brand-ink); white-space: nowrap; }
.ch-scope .ch-adm-ono:hover { text-decoration: underline; text-underline-offset: 3px; }
.ch-adm-table .ch-othumbs { flex-wrap: nowrap; }
.ch-adm-table .ch-othumb { width: 36px; height: 36px; }
.ch-adm-go { width: 44px; }
.ch-scope .ch-adm-go a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--ch-muted); }
.ch-scope .ch-adm-go a:hover { background: var(--ch-tint); color: var(--ch-brand-ink); }
.ch-adm-prod { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.ch-adm-table s.ch-adm-sub { text-decoration: line-through; }
.ch-adm-count { margin: 12px 2px 0; font-size: 13px; color: var(--ch-ink-2); }
.ch-adm-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ch-scope .ch-adm-who { display: flex; align-items: center; gap: 10px; color: var(--ch-ink); }
.ch-scope a.ch-adm-who:hover .ch-adm-name { color: var(--ch-brand-ink); }
.ch-adm-stock-n { display: block; font-variant-numeric: tabular-nums; }
.ch-adm-flag { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 12.5px; font-weight: 600; }
.ch-adm-flag.is-low { color: var(--ch-warn-ink); }
.ch-adm-flag.is-out { color: var(--ch-sale-ink); }
.ch-adm-table td form { margin: 0; }
.ch-adm-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; background: none; color: var(--ch-ink-2);
    font: inherit; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.ch-adm-toggle-ui { position: relative; width: 36px; height: 20px; border-radius: 999px; background: color-mix(in srgb, var(--ch-muted) 85%, var(--ch-surface)); transition: background .15s; }
.ch-adm-toggle-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ch-surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .25); transition: transform .15s; }
.ch-adm-toggle.is-on .ch-adm-toggle-ui { background: var(--ch-mark); }
.ch-adm-toggle.is-on .ch-adm-toggle-ui::after { transform: translateX(16px); }
.ch-adm-toggle:focus-visible { outline: 2px solid var(--ch-brand); outline-offset: 3px; border-radius: 6px; }

/* Вкладки, поиск, пустой результат */
.ch-adm-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ch-adm-tabs::-webkit-scrollbar { display: none; }
.ch-scope .ch-adm-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--ch-line); border-radius: 999px;
    background: var(--ch-surface); font-size: 14px; color: var(--ch-ink-2); white-space: nowrap; }
.ch-scope .ch-adm-tabs a:hover { border-color: var(--ch-brand); }
.ch-scope .ch-adm-tabs a.active { border-color: var(--ch-ink); background: var(--ch-ink); color: var(--ch-surface); }
.ch-adm-tabs em { font-size: 12.5px; font-style: normal; font-weight: 700; opacity: .8; }
.ch-adm-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 16px; }
.ch-adm-find { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; flex: 1; }
.ch-adm-filters.ch-adm-find { margin: 14px 0 16px; }
.ch-adm-find-f { flex: 1 1 260px; max-width: 460px; }
.ch-adm-find .ch-btn-line { min-height: 42px; padding: 8px 18px; font-size: 14px; }
.ch-adm-select select, .ch-adm-form select, .ch-adm-form textarea, .ch-adm-inline input {
    width: 100%; min-height: 42px; padding: 9px 13px; border: 1px solid var(--ch-line-2); border-radius: var(--ch-r-sm);
    background: var(--ch-surface); color: var(--ch-ink); font: inherit; font-size: 14.5px; font-weight: 400; }
.ch-adm-select select { width: auto; min-width: 200px; border-radius: 999px; }
.ch-adm-form textarea { resize: vertical; }
.ch-adm-select select:focus, .ch-adm-form select:focus, .ch-adm-form textarea:focus, .ch-adm-inline input:focus {
    outline: none; border-color: var(--ch-brand); box-shadow: 0 0 0 4px var(--ch-tint); }
.ch-adm-empty { display: grid; justify-items: center; gap: 8px; padding: 40px 20px; text-align: center; color: var(--ch-muted); }
.ch-adm-empty p { margin: 0; color: var(--ch-ink-2); }

/* ---------- Заказ подробно ---------- */
.ch-adm-odetail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ch-adm-ocol { display: grid; gap: 16px; }
.ch-adm-lines { margin: 0 -20px; width: calc(100% + 40px); }
.ch-adm-lines th:first-child, .ch-adm-lines td:first-child { padding-left: 20px; }
.ch-adm-lines th:last-child, .ch-adm-lines td:last-child { padding-right: 20px; }
.ch-adm-totals .ch-csum-rows { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--ch-line); }
.ch-adm-totals .ch-csum-total { margin-bottom: 0; }
.ch-adm-log { display: grid; margin: 0; padding: 0; list-style: none; }
.ch-adm-log li { position: relative; display: flex; gap: 14px; padding-bottom: 16px; }
.ch-adm-log li:last-child { padding-bottom: 0; }
.ch-adm-log li:not(:last-child)::before { content: ""; position: absolute; top: 16px; bottom: 0; left: 5px; width: 2px; background: var(--ch-line); }
.ch-adm-log-dot { flex: 0 0 auto; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--ch-line-2); box-shadow: 0 0 0 2px var(--ch-surface); }
.ch-adm-log li:first-child .ch-adm-log-dot { background: var(--ch-brand); }
.ch-adm-log-t { display: grid; gap: 2px; font-size: 14px; }
.ch-adm-log-t b { font-weight: 600; }
.ch-adm-log-t span { font-size: 12.5px; color: var(--ch-muted); }
.ch-adm-form { display: grid; gap: 12px; margin: 0; }
.ch-adm-form .ch-adm-card-t { margin-bottom: 0; }
.ch-adm-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; margin: 14px 0 0; }
.ch-adm-inline .ch-btn-line { min-height: 42px; padding: 8px 14px; font-size: 14px; }
.ch-scope .ch-adm-who + .ch-kv { margin-bottom: 12px; }
.ch-scope .ch-kv a { color: var(--ch-brand-ink); }
.ch-adm-quote { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid var(--ch-line-2); border-radius: 0 8px 8px 0; background: var(--ch-tint-2); font-size: 14px; }
.ch-adm-quote span { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--ch-ink-2); }
.ch-adm-danger { padding: 10px 6px; border: 0; background: none; color: var(--ch-sale-ink); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.ch-adm-danger:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Поля панели магазина (промокоды, доставка и оплата, остаток) — тот же вид,
   что у выпадающих списков панели. */
.ch-adm-form .ch-field input:is([type=text], [type=number], [type=date], [type=email], [type=tel]), .ch-adm-ship .ch-field input[type=text],
.ch-adm-ship .ch-field input[type=number], .ch-adm-ship .ch-field select, .ch-adm-stockf input {
    width: 100%; padding: 9px 11px; border: 1px solid var(--ch-line-2); border-radius: var(--ch-r-sm); background: var(--ch-surface);
    color: var(--ch-ink); font: inherit; font-size: 14px; }
.ch-adm-form input:focus, .ch-adm-ship input:focus, .ch-adm-ship select:focus, .ch-adm-stockf input:focus {
    outline: none; border-color: var(--ch-brand); box-shadow: 0 0 0 3px var(--ch-tint); }
.ch-adm-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .03em; }
.ch-adm-x { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: var(--ch-r-sm);
    background: none; color: var(--ch-muted); cursor: pointer; }
.ch-adm-x:hover { color: var(--ch-sale-ink); background: var(--ch-tint-2); }
.ch-adm-stockf { display: flex; align-items: center; gap: 6px; margin: 0; }
.ch-adm-stockf input { width: 86px; padding: 6px 8px; }
.ch-adm-stockf-go { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--ch-line-2);
    border-radius: var(--ch-r-sm); background: var(--ch-surface); color: var(--ch-ink-2); cursor: pointer; }
.ch-adm-stockf-go:hover { border-color: var(--ch-brand); color: var(--ch-brand-ink); }
.ch-adm-ship { display: grid; gap: 16px; }
.ch-adm-shiplist { display: grid; gap: 12px; margin-top: 12px; }
.ch-adm-shiprow { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr; gap: 10px; align-items: end; margin: 0; padding: 14px;
    border: 1px solid var(--ch-line); border-radius: var(--ch-r-sm); }
.ch-adm-shiprow.is-new { border-style: dashed; }
.ch-adm-f-note { grid-column: 1 / -2; }
.ch-adm-f-on { align-self: center; }
.ch-adm-payrow { grid-template-columns: 1.2fr 2fr auto; }
.ch-adm-payrow .ch-adm-f-note { grid-column: auto; }
.ch-adm-ship-foot { display: flex; justify-content: flex-end; }
@media (max-width: 900px) {
    .ch-adm-shiprow, .ch-adm-payrow { grid-template-columns: 1fr 1fr; }
    .ch-adm-f-title, .ch-adm-f-note { grid-column: 1 / -1; }
}

/* ---------- Вход ---------- */
.ch-adm-login { display: grid; place-items: center; min-height: 100vh; padding: 32px 16px; background: var(--ch-adm-bg); }
.ch-adm-login-box { display: grid; gap: 14px; width: min(440px, 100%); padding: 32px 36px; border: 1px solid var(--ch-line); border-radius: calc(var(--ch-r) + 4px);
    background: var(--ch-surface); box-shadow: 0 18px 48px rgba(16, 24, 40, .08); }
.ch-scope .ch-adm-login-t { margin: 6px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.ch-adm-login-sub { margin: -8px 0 4px; font-size: 14.5px; color: var(--ch-ink-2); }
.ch-adm-login-form { display: grid; gap: 14px; margin: 0; }
.ch-adm-login-err { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--ch-r-sm);
    background: color-mix(in srgb, var(--ch-sale) 10%, var(--ch-surface)); color: var(--ch-sale-ink); font-size: 14px; }
.ch-adm-login-err[hidden] { display: none; }
.ch-adm-login-err .ci { margin-top: 2px; }
.ch-adm-pass { position: relative; display: block; }
.ch-adm-pass input { padding-right: 48px; }
.ch-adm-eye { position: absolute; top: 50%; right: 6px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px;
    background: none; color: var(--ch-muted); transform: translateY(-50%); cursor: pointer; }
.ch-adm-eye:hover, .ch-adm-eye[aria-pressed="true"] { background: var(--ch-tint-2); color: var(--ch-ink); }
.ch-adm-eye[hidden] { display: none; }
.ch-adm-login-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; font-size: 14px; }
.ch-adm-login-note { margin: 0; font-size: 12.5px; color: var(--ch-muted); text-align: center; }
.ch-adm-login-note .ci { margin-right: 4px; vertical-align: -2px; }
.ch-adm-login .ch-auth-demo { margin: 0; }
/* Пароль «demo-admin» не должен разрываться по дефису: строки ровняем. */
.ch-auth-demo, .ch-adm-login-note { text-wrap: balance; }
.ch-scope .ch-adm-back { display: inline-flex; align-items: center; justify-self: center; gap: 6px; font-size: 14px; color: var(--ch-ink-2); }
.ch-scope .ch-adm-back:hover { color: var(--ch-ink); }

/* ---------- Планшет: меню — колонка значков ---------- */
@media (max-width: 1100px) {
    .ch-scope { --ch-adm-side: 76px; }
    .ch-adm-side { align-items: center; padding: 16px 10px; }
    .ch-adm-side-top { padding: 0 0 6px; }
    .ch-adm-brand-t, .ch-adm-nav a > span, .ch-adm-side-a > span, .ch-adm-me-t { display: none; }
    .ch-adm-logo { font-size: 0; }
    .ch-adm-logo::first-letter { font-size: 20px; }
    .ch-adm-nav, .ch-adm-side-foot { width: 100%; justify-items: center; }
    .ch-scope .ch-adm-nav a, .ch-scope .ch-adm-side-a { position: relative; justify-content: center; width: 48px; height: 48px; padding: 0; }
    .ch-adm-nav em { position: absolute; top: 3px; right: 1px; min-width: 18px; padding: 1px 5px; font-size: 11px; }
    .ch-adm-me { padding: 4px 0; }
    .ch-adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ch-adm-sales, .ch-adm-odetail { grid-template-columns: minmax(0, 1fr); }
    .ch-adm-odetail > aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .ch-adm-c-items, .ch-adm-c-ship { display: none; }
    .ch-adm-attn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Телефон: меню выезжает, таблицы — карточками ---------- */
@media (max-width: 700px) {
    .ch-scope { --ch-adm-side: 0px; }
    .ch-adm { grid-template-columns: minmax(0, 1fr); }
    .ch-adm-side { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); align-items: stretch; padding: 16px 14px;
        box-shadow: 0 0 40px rgba(16, 24, 40, .2); transform: translateX(-105%); transition: transform .2s ease; }
    .ch-adm-menu-cb:checked ~ .ch-adm-side { transform: none; }
    .ch-adm-menu-cb:checked ~ .ch-adm-scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(16, 24, 40, .4); }
    .ch-adm-brand-t, .ch-adm-nav a > span, .ch-adm-side-a > span { display: block; }
    .ch-adm-me-t { display: grid; }
    .ch-adm-nav, .ch-adm-side-foot { justify-items: stretch; }
    .ch-adm-logo { font-size: 19px; }
    .ch-adm-logo::first-letter { font-size: inherit; }
    .ch-scope .ch-adm-nav a, .ch-scope .ch-adm-side-a { justify-content: flex-start; width: 100%; height: auto; padding: 11px 12px; }
    .ch-adm-nav em { position: static; }
    .ch-adm-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ch-ink-2); cursor: pointer; }
    .ch-adm-top { gap: 8px; min-height: 58px; padding: 8px 12px; }
    .ch-adm-burger { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--ch-line); cursor: pointer; }
    .ch-adm-top-logo { display: block; font-size: 18px; }
    .ch-adm-topsearch { display: none; }
    .ch-adm-body { padding: 18px 12px 40px; }
    .ch-adm-head { align-items: flex-start; }
    .ch-adm-head > .ch-btn, .ch-adm-head > .ch-btn-line { width: 100%; }
    .ch-adm-attn { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .ch-scope .ch-adm-attn-card { padding: 12px 14px; }
    .ch-adm-kpis { gap: 8px; }
    .ch-adm-kpi { padding: 12px 14px; }
    .ch-adm-delta span { flex-basis: 100%; }
    .ch-adm-card { padding: 16px; }
    .ch-adm-plot { height: 200px; margin-left: 46px; }
    .ch-adm-xaxis { margin-left: 46px; }
    .ch-adm-grid i { right: calc(100% + 6px); }
    .ch-adm-seg { width: 100%; }
    .ch-scope .ch-adm-seg a { flex: 1; text-align: center; }
    .ch-adm-find-f { max-width: none; flex-basis: 100%; }
    .ch-adm-find .ch-btn-line { flex: 1; }
    .ch-adm-select { flex: 1 1 100%; }
    .ch-adm-select select { width: 100%; }
    /* Заказ одной колонкой: товары, сразу за ними смена статуса — главное
       действие менеджера, потом покупатель, доставка, оплата, история. */
    .ch-adm-odetail { display: flex; flex-direction: column; align-items: stretch; }
    .ch-adm-ocol { display: contents; }
    .ch-adm-odetail .ch-adm-card { order: 3; }
    .ch-adm-odetail .ch-adm-ocol:first-child > .ch-adm-card:first-child { order: 1; }
    .ch-adm-odetail .ch-adm-form { order: 2; }
    .ch-adm-odetail .ch-adm-ocol:first-child > .ch-adm-card:last-child { order: 4; }

    /* Строка таблицы — карточка: первая ячейка во всю ширину, остальные
       по две в ряд с подписью столбца над значением, стрелка — в углу. */
    .ch-adm-table-cards thead { display: none; }
    .ch-adm-table-cards, .ch-adm-table-cards tbody { display: block; }
    .ch-adm-table-cards tr { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding: 14px 16px;
        border-bottom: 1px solid var(--ch-line); }
    .ch-adm-table-cards tbody tr:last-child { border-bottom: 0; }
    .ch-adm-table-cards td { display: block; padding: 0; border: 0; min-width: 0; }
    .ch-adm-table-cards td:first-child { grid-column: 1 / -1; padding-right: 40px; }
    .ch-adm-table-cards td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; margin-bottom: 3px; font-size: 12px; color: var(--ch-muted); }
    .ch-scope .ch-adm-table-cards .ch-adm-num { text-align: left; }
    .ch-adm-table-cards td.ch-adm-go { position: absolute; top: 10px; right: 10px; width: auto; }
    .ch-adm-table-cards .ch-adm-c-items, .ch-adm-table-cards .ch-adm-c-ship { display: block; }
    .ch-adm-table-cards .ch-adm-c-items { display: none; }
    .ch-adm-ctable td:nth-child(2) { grid-column: 1 / -1; }
    .ch-adm-table-cards td.ch-adm-c-empty { display: none; }
    /* Заказ карточкой: номер и статус, покупатель и сумма, оплата и
       доставка. Подписи не нужны — плашки и суммы понятны сами; вся
       карточка нажимается (ссылка номера растянута на неё). */
    .ch-adm-table-cards .ch-adm-orow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "no status" "buyer sum" "pay ship"; gap: 8px 12px; }
    .ch-adm-orow .ch-adm-c-no { grid-area: no; padding-right: 0; }
    .ch-adm-orow .ch-adm-c-status { grid-area: status; justify-self: end; }
    .ch-adm-orow .ch-adm-c-buyer { grid-area: buyer; }
    .ch-adm-orow .ch-adm-c-sum { grid-area: sum; align-self: start; }
    .ch-scope .ch-adm-table-cards .ch-adm-orow .ch-adm-c-sum { text-align: right; font-size: 15px; }
    .ch-adm-orow .ch-adm-c-pay { grid-area: pay; align-self: center; }
    .ch-adm-orow .ch-adm-c-ship { grid-area: ship; text-align: right; }
    .ch-adm-table-cards .ch-adm-orow td:not(.ch-adm-c-ship)::before { display: none; }
    .ch-adm-table-cards .ch-adm-orow td.ch-adm-go { display: none; }
    .ch-adm-orow .ch-adm-ono::after { content: ""; position: absolute; inset: 0; }
    .ch-adm-orow .ch-adm-c-ship::before { display: none !important; }
    .ch-adm-prod { min-width: 0; }
    .ch-adm-lines thead { display: none; }
    .ch-adm-lines, .ch-adm-lines tbody { display: block; }
    .ch-adm-lines tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--ch-line); }
    .ch-adm-lines td { padding: 0 !important; border: 0; }
    .ch-adm-lines td:first-child { grid-column: 1 / -1; }
    .ch-scope .ch-adm-lines .ch-adm-num { text-align: left; }
    .ch-adm-lines td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--ch-muted); }
    .ch-adm-lines { margin: 0 -16px; width: calc(100% + 32px); }
    .ch-adm-login { place-items: start center; padding: 16px 12px; }
    .ch-adm-login-box { padding: 24px 20px; }
}

/* ===========================================================================
 * Сайт-каталог на наборе: фото вместо рисунков, «В корзину» формой,
 * главная ниже первого экрана, текстовые страницы, формы, оформление заказа.
 * Те же переменные --ch-*: пресет платформы меняет и эти детали.
 * ========================================================================= */

/* Фото вместо рисунков набора. */
.ch-logo-img img { display: block; max-height: 40px; width: auto; max-width: 180px; }
.ch-art-box .ch-hero-img { display: block; width: 100%; max-width: 520px; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: var(--ch-r); background: var(--ch-tint); }
.ch-good-ph > img { width: 100%; height: 100%; object-fit: contain; }
.ch-cat-photo { overflow: hidden; }
.ch-cat-photo img { width: 100%; height: 100%; object-fit: cover; }
.ch-set-art img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--ch-r-sm); }
.ch-good-add { display: contents; }
.ch-price-text b { font-size: 15px; }
.ch-badge-demo { background: var(--ch-surface); color: var(--ch-ink-2); border: 1px solid var(--ch-line-2); }
.ch-pstock-order { display: inline-flex; align-items: center; gap: 6px; color: var(--ch-ink-2); font-weight: 600; }
.ch-scope a.ch-fpreset { text-decoration: none; }
.ch-btn-buy.is-added, .ch-pcart.is-added { background: var(--ch-ok); }

/* Пусто после фильтров или поиска. */
.ch-goods-empty { display: grid; justify-items: center; gap: 10px; padding: 48px 16px; text-align: center; color: var(--ch-ink-2);
    border: 1px dashed var(--ch-line-2); border-radius: var(--ch-r); }
.ch-goods-empty > .ci { width: 28px; height: 28px; color: var(--ch-muted); }
.ch-goods-empty p { margin: 0; max-width: 46ch; }
.ch-search-page { padding-top: 18px; }

/* Итог формы и подсказка «Товар в корзине». */
.ch-notice { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 12px 16px; border-radius: var(--ch-r-sm);
    font-size: 14.5px; background: color-mix(in srgb, var(--ch-ok) 12%, var(--ch-surface)); color: var(--ch-ink); }
.ch-notice.is-err { background: color-mix(in srgb, var(--ch-sale) 12%, var(--ch-surface)); }
.ch-notice .ci { flex: 0 0 auto; color: var(--ch-ok); }
.ch-notice.is-err .ci { color: var(--ch-sale); }
.ch-toast { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; align-items: center; gap: 14px;
    max-width: min(420px, calc(100vw - 32px)); padding: 13px 16px; border-radius: var(--ch-r); background: var(--ch-ink); color: var(--ch-surface);
    font-size: 14.5px; box-shadow: 0 16px 40px rgba(16, 24, 40, .22); transform: translateY(140%); opacity: 0;
    transition: transform .25s ease, opacity .25s ease; pointer-events: none; }
.ch-toast.is-on { transform: none; opacity: 1; pointer-events: auto; }
.ch-toast a { color: var(--ch-surface); font-weight: 700; white-space: nowrap; text-decoration: underline; }

/* Главная ниже первого экрана. */
.ch-hsec { padding-block: clamp(10px, 1.6vw, 22px); }
.ch-hsec:last-of-type { padding-bottom: clamp(28px, 4vw, 52px); }
.ch-hbens { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ch-hbens li { display: grid; align-content: start; gap: 8px; padding: 18px; border: 1px solid var(--ch-line); border-radius: var(--ch-r); background: var(--ch-surface); }
.ch-hbens b { font-size: 15.5px; }
.ch-hbens li > span:last-child { font-size: 14px; color: var(--ch-ink-2); }
.ch-hben-ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--ch-r-sm);
    background: var(--ch-tint); color: var(--ch-brand); }
.ch-habout { display: grid; gap: clamp(20px, 3vw, 44px); align-items: center; margin-top: 12px; padding: clamp(20px, 3vw, 36px);
    border-radius: var(--ch-r); background: var(--ch-tint-2); }
.ch-habout.has-img { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ch-habout-text p { margin: 12px 0 0; max-width: 64ch; font-size: 15px; line-height: 1.6; color: var(--ch-ink-2); }
.ch-habout-points { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14.5px; }
.ch-habout-points li { display: flex; align-items: center; gap: 8px; }
.ch-habout-points .ci { color: var(--ch-brand); }
.ch-habout-text .ch-btn { margin-top: 18px; }
.ch-habout-ph img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ch-r); background: var(--ch-tint); }
.ch-hsteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.ch-hsteps li { display: grid; align-content: start; gap: 8px; padding: 18px; border: 1px solid var(--ch-line); border-radius: var(--ch-r); }
.ch-hsteps li > span:last-child { font-size: 14px; color: var(--ch-ink-2); }
.ch-hstep-n { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
    background: var(--ch-brand); color: var(--ch-on-brand); font-weight: 800; font-size: 14px; }
.ch-hdocs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ch-hdocs a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; border: 1px solid var(--ch-line);
    border-radius: var(--ch-r-sm); color: var(--ch-ink); text-decoration: none; }
.ch-hdocs a:hover { border-color: var(--ch-brand); }
.ch-hdocs a > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 0; font-size: 14px; }
.ch-hdocs a > span:nth-child(2) > span { font-size: 13px; color: var(--ch-ink-2); }
.ch-hdocs a > .ci { flex: 0 0 auto; color: var(--ch-muted); }
.ch-hdoc-ic { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 38px; height: 38px;
    border-radius: var(--ch-r-sm); background: var(--ch-tint); color: var(--ch-brand); }
.ch-hpartners { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ch-hpartners li > * { display: grid; gap: 6px; height: 100%; padding: 16px; border: 1px solid var(--ch-line); border-radius: var(--ch-r-sm);
    color: var(--ch-ink); text-decoration: none; font-size: 14px; }
.ch-hpartners img { max-height: 36px; width: auto; }
.ch-hpartners span { color: var(--ch-ink-2); font-size: 13px; }
.ch-hreviews { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ch-hfaq { max-width: 860px; }
.ch-pfaq-i .ch-prose { margin: 0; padding: 0 16px 14px; font-size: 14px; }
.ch-hcta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: clamp(20px, 3vw, 32px);
    border-radius: var(--ch-r); background: var(--ch-brand); color: var(--ch-on-brand); }
.ch-hcta b { display: block; font-size: clamp(19px, 1rem + .8vw, 24px); font-weight: 800; }
.ch-hcta p { margin: 6px 0 0; max-width: 60ch; opacity: .9; }
.ch-scope .ch-hcta .ch-btn { background: var(--ch-surface); color: var(--ch-brand); }
.ch-hcontacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ch-hcontact { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--ch-line); border-radius: var(--ch-r-sm); }
.ch-hcontact > span:last-child { display: grid; gap: 2px; min-width: 0; font-size: 14.5px; }
.ch-hcontact a { color: var(--ch-ink); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.ch-hcontact-l, .ch-hcontact-n { font-size: 12.5px; color: var(--ch-muted); }

/* Текстовая страница и формы обращения. */
.ch-tpage { padding-block: 18px clamp(32px, 5vw, 64px); }
.ch-tpage-lead { margin-top: 8px; }
.ch-tpage-body { margin-top: 20px; }
.ch-prose h3 { margin: 22px 0 8px; font-size: 16.5px; font-weight: 800; color: var(--ch-ink); }
.ch-prose ol { margin: 0 0 12px; padding-left: 22px; }
.ch-prose a { color: var(--ch-brand); }
.ch-prose img { max-width: 100%; height: auto; border-radius: var(--ch-r-sm); }
.ch-prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--ch-r-sm); }
.ch-rform-sec { padding-block: 8px clamp(28px, 4vw, 48px); scroll-margin-top: 80px; }
.ch-rform { display: grid; gap: 12px; max-width: 760px; }
.ch-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ch-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ch-ink-2); }
.ch-field input, .ch-field textarea, .ch-field select { width: 100%; padding: 11px 13px; border: 1px solid var(--ch-line-2); border-radius: var(--ch-r-sm);
    background: var(--ch-surface); color: var(--ch-ink); font: inherit; font-size: 15px; font-weight: 400; }
.ch-field input:focus, .ch-field textarea:focus { outline: none; border-color: var(--ch-brand); box-shadow: 0 0 0 4px var(--ch-tint); }
.ch-field textarea { resize: vertical; min-height: 88px; }
.ch-rform .ch-btn { justify-self: start; min-height: 46px; padding-inline: 28px; }

/* Оформление заказа. */
.ch-checkout { padding-block: 18px clamp(32px, 5vw, 64px); }
.ch-checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; margin-top: 18px; }
.ch-checkout-main { display: grid; gap: 16px; }
.ch-checkout-main .ch-ccard { display: grid; gap: 12px; }
.ch-checkout-main .ch-h3 { margin: 0; }
.ch-ship { display: grid; gap: 8px; }
.ch-ship-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--ch-line-2);
    border-radius: var(--ch-r-sm); cursor: pointer; font-size: 15px; }
.ch-ship-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ch-ship-dot { flex: 0 0 auto; width: 20px; height: 20px; border: 2px solid var(--ch-line-2); border-radius: 50%; }
.ch-ship-opt:has(input:checked) { border-color: var(--ch-brand); background: var(--ch-tint-2); }
.ch-ship-opt input:checked + .ch-ship-dot { border: 6px solid var(--ch-brand); }
.ch-ship-opt input:focus-visible + .ch-ship-dot { box-shadow: 0 0 0 3px var(--ch-tint); }
/* Магазин: способ с подписью (срок, адрес пункта) и ценой справа. */
.ch-ship-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ch-ship-body b { font-weight: 600; }
.ch-ship-body small { font-size: 12.5px; color: var(--ch-muted); }
.ch-ship-price { flex: 0 0 auto; margin-left: auto; font-size: 14px; font-weight: 600; text-align: right; }
[data-ch-for-ship][hidden], [data-ch-for-pay][hidden] { display: none; }
@media (max-width: 520px) {
    .ch-ship-opt { flex-wrap: wrap; }
    .ch-ship-price { flex-basis: 100%; padding-left: 32px; text-align: left; font-weight: 500; }
}
.ch-checkout-side { position: sticky; top: 16px; display: grid; gap: 14px; }
.ch-checkout-side .ch-h3 { margin: 0; }
.ch-checkout-items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ch-checkout-items li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 14px; }
.ch-checkout-ph { width: 48px; height: 48px; border-radius: var(--ch-r-sm); overflow: hidden; background: var(--ch-tint-2); }
.ch-checkout-ph img { width: 100%; height: 100%; object-fit: contain; }
.ch-checkout-name small { color: var(--ch-muted); }
.ch-checkout-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--ch-line); }
.ch-checkout-total b { font-size: 22px; }
.ch-checkout-note { margin: 0; font-size: 13px; color: var(--ch-muted); }

/* Заказ принят и 404. */
.ch-done { padding-block: 18px clamp(40px, 6vw, 80px); }
.ch-done-card { display: grid; justify-items: center; gap: 10px; max-width: 620px; margin: 24px auto 0; padding: clamp(24px, 4vw, 44px); text-align: center; }
.ch-done-ic { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%;
    background: color-mix(in srgb, var(--ch-ok) 14%, var(--ch-surface)); color: var(--ch-ok); }
.ch-404 .ch-done-ic { background: var(--ch-tint); color: var(--ch-brand); }
.ch-done-ic .ci { width: 28px; height: 28px; }
.ch-done-card .ch-page-h1 { margin: 6px 0 0; }
.ch-done-n { margin: 0; font-size: 15px; }
.ch-done-card .ch-search { width: 100%; margin-top: 8px; }
.ch-done-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
/* Магазин: заказ на странице «принят» — состав, доставка, оплата, итог. */
.ch-done-order { display: grid; gap: 12px; width: min(100%, 480px); margin: 6px auto 0; text-align: left; }
.ch-done-order .ch-csum-rows dd { text-align: right; }

@media (max-width: 1100px) {
    .ch-checkout-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 860px) {
    .ch-habout.has-img { grid-template-columns: 1fr; }
    .ch-checkout-grid { grid-template-columns: 1fr; }
    .ch-checkout-side { position: static; }
}
@media (max-width: 700px) {
    .ch-toast { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: none; }
    .ch-art-box .ch-hero-img { max-width: none; aspect-ratio: 16 / 10; }
    .ch-hbens, .ch-hsteps { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ch-hbens li, .ch-hsteps li { padding: 14px; }
    .ch-hcta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .ch-hbens, .ch-hsteps { grid-template-columns: 1fr; }
}

/* Переносы строк в текстах из базы сайта. Владелец ставит их в визуальном
   редакторе (Enter), в базу они ложатся переводом строки — разметки там нет,
   а ch_e() печатает текст как есть. pre-line показывает перевод строки
   переносом и по-прежнему схлопывает пробелы. Заголовки и абзацы набора
   печатаются в одну строку (<h1><?= ch_e(…) ?></h1>), поэтому переносы из
   самой вёрстки сюда не попадают. Текст из редактора (.ch-prose) — уже HTML,
   его не трогаем. */
:where(h1, h2, h3, h4, h5, h6, p):not(.ch-prose *) { white-space: pre-line; }

/* Автор отзыва: круглое фото (или инициалы, пока фото нет) слева от имени.
   Фото — «Фото автора или логотип» в админке сайта. */
.ch-prev .ch-prev-by { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.ch-prev-ava {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
    display: grid; place-items: center; background: var(--ch-tint); color: var(--ch-brand-ink);
    font-size: 15px; font-weight: 700; letter-spacing: .02em;
}
.ch-prev-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-prev-who { display: grid; gap: 2px; min-width: 0; }
.ch-prev-who b { color: var(--ch-ink); font-size: 13.5px; font-weight: 600; }
.ch-prev-who small { font-size: 12.5px; color: var(--ch-muted); line-height: 1.35; }
