/* ===========================================================================
 * Первый блок главной каталога — четыре раскладки.
 *
 * Палитра, скругления и шрифт живут в переменных: набор кладётся в сайт и
 * подхватывает его фирменный цвет, ничего не переписывая. Значения ниже —
 * значения по умолчанию, близкие к макету.
 *
 * Правило раскладок: на десктопе категории идут рядами по шесть (плитки) или
 * по четыре (карточки), на планшете — по три и по две, на телефоне — по две.
 * Ниже 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; }
.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 { 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-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-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-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: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 18px; }
    .ch-trust:has(> li:nth-child(4)) { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .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-badge-ok { background: color-mix(in srgb, var(--ch-ok) 14%, var(--ch-surface)); color: var(--ch-ok-ink, var(--ch-ok)); }
.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-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-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; }

/* ---------- Раскладка 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-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); }
/* Самовывоз по пунктам (INV-05): у каждого пункта — «можно забрать сегодня»
   или «под заказ, N дней» по остаткам точки для выбранного варианта. */
.ch-ppick { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--ch-line); border-radius: var(--ch-r-sm); }
.ch-ppick-t { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.ch-ppick-t .ci { color: var(--ch-brand-ink); }
.ch-ppick ul { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.ch-ppick li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 13.5px; }
.ch-ppick-name { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.ch-ppick-name small { font-size: 12.5px; color: var(--ch-muted); }
.ch-ppick-st { flex: 0 0 auto; max-width: 52%; font-weight: 600; text-align: right; }
.ch-ppick-today .ch-ppick-st { color: var(--ch-ok-ink, var(--ch-ok)); }
.ch-ppick-order .ch-ppick-st { color: var(--ch-ink-2); }
.ch-ppick-none .ch-ppick-st { color: var(--ch-muted); }
.ch-ppick .ch-link { margin-top: 10px; }
.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-full { max-height: none; }
.ch-pdesc-full::after { display: none; }
.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 h3 { margin: 20px 0 8px; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; color: var(--ch-ink); }
.ch-prose h4 { margin: 16px 0 6px; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ch-ink); }
.ch-prose > :first-child { margin-top: 0; }
.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%; }
}

/* ===========================================================================
 * Секции главной магазина (blocks/inc/home.php): категории с фото, подборка,
 * промо, преимущества, бренды, отзывы, вопросы, текст, контакты.
 *
 * Те же правила, что у первого блока: карточки по четыре на десктопе, по три
 * на планшете, по две на телефоне; переменные --ch-* — общие с набором.
 * ========================================================================= */

.ch-home { padding-top: clamp(30px, 4vw, 52px); }
.ch-home:last-of-type { padding-bottom: clamp(30px, 4vw, 52px); }
.ch-home .ch-home-head { margin: 0 0 18px; }
.ch-logo-img { display: block; width: auto; max-width: 180px; height: auto; max-height: 40px; }

/* ---------- Категории с фото ---------- */
.ch-hcats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ch-hcat { display: grid; grid-template-rows: auto 1fr; overflow: hidden; 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-hcat:hover { border-color: var(--ch-brand); box-shadow: 0 6px 20px rgba(31, 99, 214, .10); transform: translateY(-2px); }
.ch-hcat-ph { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ch-tint-2); }
.ch-hcat-ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.ch-hcat:hover .ch-hcat-ph img { transform: scale(1.03); }
.ch-hcat-ic { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px;
    border-radius: 16px; background: var(--ch-tint); color: var(--ch-brand); }
.ch-hcat-text { display: grid; align-content: start; gap: 4px; padding: 14px 16px 16px; }
.ch-hcat-text b { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.ch-hcat-text span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    font-size: 13px; line-height: 1.45; color: var(--ch-ink-2); }
.ch-hcat-text small { margin-top: 2px; font-size: 12.5px; color: var(--ch-muted); }

/* ---------- Промо ---------- */
.ch-hpromo { display: grid; align-items: center; gap: clamp(18px, 3vw, 36px); padding: clamp(22px, 3.5vw, 44px);
    border-radius: calc(var(--ch-r) + 6px); background: var(--ch-tint); }
.ch-hpromo-photo { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
.ch-hpromo-text { display: grid; justify-items: start; gap: 12px; max-width: 560px; }
.ch-hpromo-text .ch-eyebrow { margin: 0; }
.ch-hpromo-text .ch-h2 { font-size: clamp(20px, 1rem + 1vw, 28px); }
.ch-hpromo-text p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ch-ink-2); }
.ch-hpromo-text .ch-btn { margin-top: 6px; }
.ch-hpromo-ph { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--ch-r); background: var(--ch-surface); }
.ch-hpromo-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Преимущества ---------- */
.ch-hbenefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ch-hbenefits li { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--ch-line);
    border-radius: var(--ch-r); background: var(--ch-tint-2); }
.ch-hbenefit-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 auto;
    border-radius: var(--ch-r-sm); background: var(--ch-surface); color: var(--ch-brand); box-shadow: var(--ch-shadow); }
.ch-hbenefits b { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ch-ink); }
.ch-hbenefits li > span:last-child > span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--ch-ink-2); }

/* ---------- Бренды ---------- */
.ch-hbrands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ch-hbrand { display: grid; place-items: center; align-content: center; gap: 4px; min-height: 88px; padding: 14px;
    border: 1px solid var(--ch-line); border-radius: var(--ch-r); background: var(--ch-surface); text-align: center;
    transition: border-color .12s, background .12s; }
.ch-hbrand:hover { border-color: var(--ch-brand); background: var(--ch-tint-2); }
.ch-hbrand img { display: block; max-width: 100%; max-height: 40px; object-fit: contain; }
.ch-hbrand b { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.ch-hbrand small { font-size: 12px; color: var(--ch-muted); }

/* ---------- Отзывы ---------- */
.ch-hreviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.ch-hreviews .ch-prev { grid-template-rows: auto 1fr auto; }
.ch-hreviews .ch-prev p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 6; -webkit-box-orient: vertical; line-height: 1.55; }
.ch-hreview-product { display: block; margin-top: 4px; font-weight: 600; color: var(--ch-brand-ink, var(--ch-brand)); }
.ch-hreview-product:hover { text-decoration: underline; }

/* ---------- Вопросы, текст, контакты ---------- */
.ch-hfaq { max-width: 920px; }
.ch-htext { max-width: 920px; }
.ch-htext .ch-prose { margin-top: 12px; }
.ch-hcontacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ch-hcontacts > :only-child { grid-column: 1 / -1; }
.ch-hcontacts-rows:only-child { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Планшет ---------- */
@media (max-width: 1100px) {
    .ch-hcats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ch-hbrands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ch-hreviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ch-hpromo-photo { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
}

/* ---------- Телефон ---------- */
@media (max-width: 700px) {
    .ch-home { padding-top: 28px; }
    .ch-home .ch-home-head { margin-bottom: 14px; }
    .ch-hcats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ch-hcat-text { padding: 10px 12px 12px; }
    .ch-hcat-text b { font-size: 14px; }
    .ch-hcat-text span { display: none; }
    .ch-hcat-ic { width: 52px; height: 52px; border-radius: 12px; }
    .ch-hpromo, .ch-hpromo-photo { grid-template-columns: minmax(0, 1fr); padding: 20px; }
    .ch-hpromo-ph { order: -1; }
    .ch-scope .ch-hpromo .ch-btn { justify-self: stretch; justify-content: center; }
    .ch-hbenefits { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .ch-hbenefits li { padding: 14px; }
    .ch-hbrands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ch-hbrand { min-height: 72px; }
    /* Отзывы — лентой: по одной карточке, соседняя выглядывает справа. */
    .ch-hreviews { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 85%; overflow-x: auto;
        scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px;
        margin-inline: calc(-1 * clamp(16px, 3vw, 32px)); padding-inline: clamp(16px, 3vw, 32px); }
    .ch-hreviews::-webkit-scrollbar { display: none; }
    .ch-hreviews > * { scroll-snap-align: start; }
    .ch-hcontacts { grid-template-columns: minmax(0, 1fr); }
}
