/* ============================================================
   Каталог и страница товара — /catalog, /catalog/<slug>, /catalog/compare.
   Подключается только на этих страницах (functions/catalog*.js).
   Токены — из styles.css: --ink, --paper, --yellow, --gold-ink, --r, --display.
   Без рамок «для красоты»: только заливки и мягкие тени.
   ============================================================ */

.page-catalog main { background: var(--paper); }
.page-catalog .container { width: min(calc(100% - 64px), 1320px); }

/* хлебные крошки */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; color: #8a908e; font-size: 12px; font-weight: 600; }
.crumbs a { color: #5d6463; transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--gold-ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.crumbs [aria-current] { color: var(--ink); }

.cat-head h1 em, .pd-section h2 em, .pd-consult h2 em, .cmp-head-sec h1 em { font-family: var(--display); font-style: normal; color: var(--gold-ink); }

/* ============================================================
   Список
   ============================================================ */
.cat-head { padding: 112px 0 6px; }
.cat-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.cat-head h1 { font-family: var(--display); font-size: clamp(36px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -.025em; }
.cat-lead { max-width: 660px; margin-top: 16px; color: #59605f; font-size: 16px; line-height: 1.6; }
.cat-pdf { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 16px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; box-shadow: 0 6px 20px rgba(16, 17, 17, .06); transition: background .2s var(--ease), color .2s var(--ease); }
.cat-pdf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat-pdf:hover { background: var(--ink); color: #fff; }

.cat-tabs { display: flex; gap: 8px; margin: 30px 0 0; padding: 4px 0 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; background: #fff; color: #3a4140; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease); }
.cat-tab span { color: #9aa09e; font-size: 11px; font-weight: 700; }
.cat-tab:hover { background: #fffaf0; color: var(--ink); }
.cat-tab.is-active { background: var(--ink); color: #fff; }
.cat-tab.is-active span { color: var(--yellow-soft); }

.cat-body { padding: 18px 0 120px; }
.cat-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 28px; align-items: start; }

/* фильтры */
.cat-filters { position: sticky; top: 96px; display: grid; gap: 22px; padding: 22px; border-radius: var(--r); background: #fff; }
.cat-filters-head { display: none; }
.cat-search { position: relative; display: block; }
.cat-search svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); fill: none; stroke: #8a908e; stroke-width: 1.7; stroke-linecap: round; pointer-events: none; }
.cat-search input { width: 100%; height: 44px; padding: 0 12px 0 38px; border: 0; border-radius: var(--r-sm); background: #f2f2ee; color: var(--ink); font: inherit; font-size: 13px; outline: none; transition: background .2s var(--ease), box-shadow .2s var(--ease); }
.cat-search input:focus { background: #fff; box-shadow: 0 0 0 2px var(--yellow); }
.cat-group { display: grid; gap: 4px; margin: 0; padding: 0; border: 0; min-width: 0; }
.cat-group legend { margin-bottom: 8px; padding: 0; color: #8a908e; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cat-group[hidden] { display: none; }
.cat-check { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 8px; margin: 0 -8px; border-radius: 8px; color: #2d3332; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .2s var(--ease); }
.cat-check:hover { background: #f5f5f1; }
.cat-check input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border-radius: 5px; background: #e9eae5; cursor: pointer; transition: background .2s var(--ease); }
.cat-check input:checked { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.4l3 3 6-6.6' fill='none' stroke='%23f0d28a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.cat-check input:focus-visible { box-shadow: 0 0 0 2px var(--yellow); }
.cat-check span { flex: 1; }
.cat-check em { color: #a0a6a4; font-size: 11px; font-style: normal; font-weight: 700; }
.cat-group-inline { grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px; }
.cat-group-inline legend { grid-column: 1 / -1; }
.cat-group-inline .cat-check { margin: 0; padding: 0 12px; min-height: 36px; border-radius: 999px; background: #f2f2ee; }
.cat-group-inline .cat-check:has(input:checked) { background: var(--ink); color: #fff; }
.cat-group-inline .cat-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cat-filters-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cat-reset { padding: 0; border: 0; background: none; color: #6b7270; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cat-reset:hover { color: var(--gold-ink); }
.cat-apply { display: none; }

/* панель над сеткой */
.cat-toolbar { display: flex; align-items: center; gap: 14px; min-height: 46px; margin-bottom: 14px; }
.cat-filter-btn { display: none; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.cat-filter-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cat-filter-btn em { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--yellow); color: var(--ink); font-size: 11px; font-style: normal; }
.cat-filter-btn em[hidden] { display: none; }
.cat-count { margin-right: auto; color: #6b7270; font-size: 13px; font-weight: 600; }
.cat-count b { color: var(--ink); }
.cat-sort { display: flex; align-items: center; gap: 10px; color: #8a908e; font-size: 12px; font-weight: 700; }
.cat-sort select { height: 42px; padding: 0 34px 0 14px; border: 0; border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23101111' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center / 12px no-repeat; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; appearance: none; -webkit-appearance: none; cursor: pointer; }

/* сетка */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 14px; }
.cat-sec { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; margin: 26px 0 2px; font-family: var(--display); font-size: 21px; letter-spacing: -.01em; }
.cat-sec:first-child { margin-top: 0; }
.cat-sec span { color: #a0a6a4; font-size: 13px; font-weight: 700; }
.cat-sec[hidden], .pcard[hidden] { display: none; }
.cat-none { padding: 54px 24px; border-radius: var(--r); background: #fff; text-align: center; color: #59605f; }
.cat-none p { margin-bottom: 14px; }
.cat-none[hidden] { display: none; }

.pcard { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: #fff; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(16, 17, 17, .35); }
.pcard-link { display: flex; flex-direction: column; flex: 1; color: var(--ink); }
.pcard-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #e9ebe5; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .55s var(--ease); }
.pcard-media .pm-b { position: absolute; inset: 0; opacity: 0; }
.pcard:hover .pm-b, .pcard-link:focus-visible .pm-b { opacity: 1; }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-media.is-shot { background: linear-gradient(160deg, #f3f3ef, #e3e3dd); }
.pcard-media .catalog-solid { display: block; width: 100%; height: 100%; }
.pcard-info { position: relative; display: flex; flex-direction: column; flex: 1; padding: 15px 18px 18px; }
.pcard-cat { color: #8a908e; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.pcard-info strong { margin-top: 5px; font-size: 16px; line-height: 1.28; }
.pcard-code { margin-top: 2px; color: #7a817f; font: 700 10.5px/1.4 Arial, sans-serif; letter-spacing: .06em; }
.pcard-spec { margin-top: 10px; color: #6b7270; font-size: 12px; line-height: 1.45; }
.pcard-price { margin-top: auto; padding-top: 14px; padding-right: 40px; color: #6b7270; font-size: 12px; }
.pcard-price b { color: var(--ink); font-family: var(--display); font-size: 17px; letter-spacing: -.01em; }
.price-req { color: #59605f; font-weight: 700; }
.pcard-compare { position: absolute; right: 12px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 0; height: 34px; min-width: 34px; padding: 0 9px; border: 0; border-radius: 999px; background: #f2f2ee; color: #3a4140; font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), gap .2s var(--ease); }
.pcard-compare i, .pd-compare i { position: relative; display: block; width: 16px; height: 14px; flex: none; }
.pcard-compare i::before, .pcard-compare i::after, .pd-compare i::before, .pd-compare i::after { content: ""; position: absolute; bottom: 0; width: 5px; border-radius: 2px; background: currentColor; }
.pcard-compare i::before, .pd-compare i::before { left: 2px; height: 9px; }
.pcard-compare i::after, .pd-compare i::after { right: 2px; height: 14px; }
.pcard-compare span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .25s var(--ease); }
.pcard:hover .pcard-compare span, .pcard-compare:focus-visible span, .pcard-compare[aria-pressed="true"] span { max-width: 120px; }
.pcard:hover .pcard-compare, .pcard-compare:focus-visible, .pcard-compare[aria-pressed="true"] { gap: 7px; }
.pcard-compare:hover { background: #ebebe5; }
.pcard-compare[aria-pressed="true"] { background: var(--ink); color: var(--yellow-soft); }

/* поднос сравнения */
.compare-tray { position: fixed; left: 50%; bottom: calc(var(--uh-dock-b, 24px) + var(--uh-dock-size, 56px) + 14px); z-index: 23; width: min(560px, calc(100% - 32px)); transform: translateX(-50%); animation: tray-in .35s var(--ease); }
.compare-tray[hidden] { display: none; }
@keyframes tray-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.compare-tray-in { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border-radius: 999px; background: rgba(16, 17, 17, .94); box-shadow: 0 18px 40px rgba(16, 17, 17, .3); backdrop-filter: blur(8px); }
.compare-thumbs { display: flex; flex: 1; gap: 6px; min-width: 0; overflow: hidden; }
.compare-thumbs a { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #2a3031; }
.compare-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.compare-clear { border: 0; background: none; color: rgba(255, 255, 255, .62); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.compare-clear:hover { color: #fff; }
.compare-go { min-height: 44px; border-radius: 999px; }
.compare-go span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 99px; background: var(--ink); color: var(--yellow-soft); font-size: 11px; }

/* ============================================================
   Страница товара
   ============================================================ */
.pd-hero { padding: 104px 0 64px; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(360px, .78fr); gap: 48px; align-items: start; }

/* галерея */
.pd-gallery { position: sticky; top: 96px; min-width: 0; }
.pd-stage { position: relative; aspect-ratio: 5 / 4; border-radius: var(--r); overflow: hidden; background: #e9ebe5; outline: none; }
.pd-stage:focus-visible { box-shadow: 0 0 0 2px var(--yellow); }
.pd-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.pd-slide.is-active { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.pd-slide > img { width: 100%; height: 100%; object-fit: cover; }
.pd-slide.is-facade > img { object-position: 50% 58%; }
.pd-slide.is-swatch > img { object-fit: cover; transform: scale(1.02); }
.pd-slide.is-panel > img, .pd-slide.is-photo > img { background: linear-gradient(160deg, #f3f3ef, #e3e3dd); }
.pd-slide figcaption { position: absolute; left: 16px; bottom: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #3a4140; font-size: 11.5px; font-weight: 700; }

/* панель в полный рост: лист в масштабе, повёрнут, видно торец */
.sheet-stage { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 95% at 50% 12%, #fbfbf8 0%, #eeeee8 52%, #dedfd8 100%); }
.sheet-stage::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 17%; background: linear-gradient(to bottom, rgba(16, 17, 17, 0), rgba(16, 17, 17, .045)); }
.sheet-wrap { position: relative; height: 78%; aspect-ratio: var(--w) / var(--h); margin: -2% 0 0 6%; perspective: 1500px; }
.sheet-wrap::after { content: ""; position: absolute; left: -6%; right: -14%; bottom: -4.5%; height: 7%; background: radial-gradient(closest-side, rgba(16, 17, 17, .3), rgba(16, 17, 17, 0)); filter: blur(2px); z-index: 0; }
.sheet { position: absolute; inset: 0; z-index: 1; transform: rotateY(-20deg); transform-origin: 35% 50%; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.pd-stage:hover .sheet { transform: rotateY(-12deg); }
.sheet-face { position: absolute; inset: 0; background: var(--tex, none) center / cover no-repeat, var(--hex, #d9d9d3); box-shadow: 0 30px 46px -26px rgba(16, 17, 17, .5); }
.sheet-face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(104deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, 0) 36%, rgba(0, 0, 0, 0) 64%, rgba(0, 0, 0, .14) 100%); }
.sheet.has-tex .sheet-face::after { background: linear-gradient(104deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 34%, rgba(0, 0, 0, 0) 66%, rgba(0, 0, 0, .16) 100%); }
.sheet-side { position: absolute; top: 0; left: 100%; width: var(--t, 8px); height: 100%; transform-origin: left center; transform: rotateY(90deg); background: linear-gradient(to right, #3a3330 0, #3a3330 12%, #141414 12%, #0d0d0d 88%, #2a2a2a 88%); transition: width .4s var(--ease); }
.sheet.is-acp .sheet-side { background: linear-gradient(to right, #c4c9cb 0 14%, #eeeeea 14% 86%, #b9bec0 86%); }
.dim { position: absolute; z-index: 2; color: #59605f; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.dim i { position: absolute; background: rgba(16, 17, 17, .32); }
.dim i::before, .dim i::after { content: ""; position: absolute; background: rgba(16, 17, 17, .45); }
.dim b { position: absolute; padding: 4px 6px; border-radius: 6px; background: rgba(245, 245, 241, .94); white-space: nowrap; }
.dim-h { top: 0; bottom: 0; right: calc(100% + 30px); width: 1px; }
.dim-h i { inset: 0; }
.dim-h i::before, .dim-h i::after { left: -5px; width: 11px; height: 1px; }
.dim-h i::before { top: 0; } .dim-h i::after { bottom: 0; }
.dim-h b { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
.dim-w { left: 0; right: 0; top: calc(100% + 26px); height: 1px; }
.dim-w i { inset: 0; }
.dim-w i::before, .dim-w i::after { top: -5px; width: 1px; height: 11px; }
.dim-w i::before { left: 0; } .dim-w i::after { right: 0; }
.dim-w b { left: 50%; top: 50%; transform: translate(-50%, -50%); }

.pd-nav { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; opacity: 0; transition: opacity .25s var(--ease), background .2s var(--ease); box-shadow: 0 8px 22px rgba(16, 17, 17, .14); }
.pd-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pd-nav.is-prev { left: 14px; } .pd-nav.is-next { right: 14px; }
.pd-stage:hover .pd-nav, .pd-nav:focus-visible { opacity: 1; }
.pd-nav:hover { background: #fff; }
.pd-count { position: absolute; right: 16px; bottom: 16px; z-index: 3; padding: 6px 11px; border-radius: 999px; background: rgba(16, 17, 17, .72); color: rgba(255, 255, 255, .8); font-size: 11.5px; font-weight: 700; }
.pd-count b { color: #fff; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumb { position: relative; flex: none; width: 88px; height: 66px; padding: 0; border: 0; border-radius: var(--r-sm); overflow: hidden; background: #e9ebe5; cursor: pointer; opacity: .58; transition: opacity .25s var(--ease), box-shadow .25s var(--ease); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { opacity: .9; }
.pd-thumb[aria-current="true"] { opacity: 1; box-shadow: inset 0 0 0 2px var(--yellow); }
.pd-thumb.is-sheet { display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #fbfbf8, #e3e3dd); }
.mini-sheet { display: block; width: 20px; height: 50px; background-size: cover; background-position: center; box-shadow: 3px 0 0 #161616, 0 6px 10px -4px rgba(16, 17, 17, .4); transform: perspective(200px) rotateY(-18deg); }

/* правая колонка */
.pd-info { min-width: 0; }
.pd-brandline { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
/* логотипы — 480×200 с большими полями: при высоте 28 px Samrat был 26 px шириной; берём 60 px и срезаем поля */
.pd-brand { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 4px; border-radius: var(--r-sm); background: #fff; overflow: hidden; }
.pd-brand img { width: auto; height: 60px; max-width: none; object-fit: contain; }
.pd-cat { color: #7a817f; font-size: 12px; font-weight: 700; text-align: right; }
.pd-info h1 { font-family: var(--display); font-size: clamp(34px, 3.4vw, 50px); line-height: 1.03; letter-spacing: -.025em; text-wrap: balance; }
.cat-head h1, .pd-section h2 { text-wrap: balance; }
.pd-code { margin-top: 8px; color: #7a817f; font: 700 12px/1.4 Arial, sans-serif; letter-spacing: .07em; }
.pd-descr { margin-top: 16px; color: #3f4645; font-size: 15px; line-height: 1.65; }
/* ключевые характеристики — тихим списком, без плашек */
.pd-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin: 24px 0 0; }
.pd-chips div { min-width: 0; }
.pd-chips dt { color: #8a908e; font-size: 12px; font-weight: 600; line-height: 1.35; }
.pd-chips dd { margin: 3px 0 0; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.35; }

/* ————— покупка: одна карточка, сверху вниз —————
   цена и валюта → наличие (с количеством) и код → вариант → одно главное действие
   → два равных вспомогательных (калькулятор, примерка). Остальное — тихими ссылками под карточкой. */
.pd-buy { margin-top: 28px; padding: 26px 26px 24px; border-radius: var(--r); background: #fff; }
.pd-price-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; }
.pd-price { margin: 0; color: #6b7270; font-family: var(--display); font-size: 15px; line-height: 1.1; }
.pd-price .money { color: var(--ink); font-size: 40px; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.pd-price small { color: #6b7270; font-size: 15px; }
.pd-price-req { margin: 0; color: var(--ink); font-family: var(--display); font-size: 26px; }
.pd-vat { margin: 6px 0 0; color: #8a908e; font-size: 12px; }
.pd-vat .rate-note::before { content: ' · '; }
.pd-status { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; }
.pd-stock { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pd-stock i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(215, 170, 69, .22); }
.pd-stock.is-order { color: #59605f; }
.pd-stock.is-order i { background: #c3c7c5; box-shadow: none; }
.pd-sku-line { margin: 0; color: #8a908e; font-size: 12px; font-weight: 600; }
.pd-sku-line b { color: #3a4140; font: 700 12px/1.4 Arial, sans-serif; letter-spacing: .02em; }
.pd-sku-line em { color: #59605f; font-style: normal; }
.pd-sku-line em::before { content: '· '; color: #b0b5b3; }

.pd-variants { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pd-variant { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--paper); color: #2d3332; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.pd-variant:hover { background: #ecebe3; }
.pd-variant[aria-checked="true"] { background: var(--ink); color: #fff; }
.pd-variant:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--yellow); }

.pd-ctas { display: grid; gap: 8px; margin-top: 22px; }
.pd-cta { width: 100%; min-height: 56px; border-radius: var(--r-sm); font-size: 14px; }
.pd-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pd-act { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; min-height: 50px; padding: 8px 14px; border: 0; border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; line-height: 1.25; text-align: center; cursor: pointer; transition: background .2s var(--ease); }
.pd-act:hover { background: #fbf3df; }
.pd-act:only-child { grid-column: 1 / -1; } /* товар без цены: калькулятора нет, примерка — на всю ширину */
.pd-act:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--yellow); }
.pd-act svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--gold-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* тихие ссылки: образец, сравнение, PDF, телефон */
.pd-links { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); align-items: center; gap: 2px 40px; margin-top: 16px; padding: 0 6px; }
.pd-link { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0; border: 0; background: none; color: #3a4140; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: color .2s var(--ease); }
.pd-link:hover { color: var(--gold-ink); }
.pd-link:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 4px; }
.pd-link svg { flex: none; width: 16px; height: 16px; fill: none; stroke: #8a908e; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s var(--ease); }
.pd-link:hover svg { stroke: currentColor; }
.pd-link.pd-compare i { width: 14px; height: 12px; color: #8a908e; transform: translateY(-1px); }
.pd-link.pd-compare i::before { height: 7px; } .pd-link.pd-compare i::after { height: 12px; }
.pd-link.pd-compare[aria-pressed="true"], .pd-link.pd-compare[aria-pressed="true"] i { color: var(--gold-ink); }
.pd-meta { display: grid; gap: 4px; margin: 12px 0 0; padding: 0 6px; list-style: none; color: #8a908e; font-size: 12.5px; line-height: 1.5; }
.pd-meta b { color: #3a4140; font-weight: 700; }

/* секции ниже */
.pd-section { padding: 88px 0; }
.pd-specs, .pd-app, .pd-similar { background: #fff; }
.pd-section h2 { font-family: var(--display); font-size: clamp(28px, 3vw, 42px); line-height: 1.08; letter-spacing: -.02em; }
.pd-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.pd-sec-head p { max-width: 420px; color: #6b7270; font-size: 15px; line-height: 1.6; }
.pd-specs-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; }
.pd-table { margin: 26px 0 0; }
.pd-table div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pd-table dt { color: #6b7270; font-size: 14px; }
.pd-table dd { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.45; }
.pd-prices { width: 100%; margin-top: 26px; border-collapse: collapse; font-size: 14px; }
.pd-prices th { padding: 0 0 10px; color: #8a908e; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.pd-prices td { padding: 13px 10px 13px 0; border-top: 1px solid var(--line); }
.pd-prices td:first-child { color: #7a817f; font: 700 11.5px/1.4 Arial, sans-serif; letter-spacing: .05em; }
.pd-prices td:last-child { text-align: right; white-space: nowrap; padding-right: 0; }
.pd-prices th:last-child { text-align: right; }
.pd-prices b { font-family: var(--display); font-size: 16px; }
.pd-small { margin-top: 10px; color: #8a908e; font-size: 12px; }
.pd-docs { margin-top: 34px; }
.pd-docs h3 { margin-bottom: 12px; font-size: 13px; color: #6b7270; }
.pd-docs a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--paper); transition: background .2s var(--ease); }
.pd-docs a:hover { background: #fffaf0; }
.pd-doc-ico { display: grid; place-items: center; flex: none; width: 42px; height: 48px; border-radius: 8px; background: var(--ink); color: var(--yellow-soft); font: 800 10px/1 Arial, sans-serif; letter-spacing: .06em; }
.pd-docs b { display: block; font-size: 14px; }
.pd-docs small { color: #8a908e; font-size: 12px; }
.pd-docs i { margin-left: auto; font-style: normal; font-weight: 800; }

.pd-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
/* шагов 4–6: без «сироты» во втором ряду — 4 и 5 в ряд, 6 — по три */
@media (min-width: 681px) {
  .pd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-steps:has(> li:nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 981px) {
  .pd-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pd-steps:has(> li:nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1181px) {
  .pd-steps:has(> li:nth-child(5)):not(:has(> li:nth-child(6))) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.pd-steps li { padding: 24px 22px; border-radius: var(--r); background: #fff; }
.pd-step-n { display: block; margin-bottom: 18px; color: var(--gold-ink); font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.pd-steps strong { display: block; font-size: 16px; line-height: 1.3; }
.pd-steps p { margin-top: 8px; color: #59605f; font-size: 14px; line-height: 1.6; }
.pd-install-link { margin-top: 26px; }

.pd-app-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; }
.pd-app-grid figure { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: #e9ebe5; }
.pd-app-grid figure:nth-child(2) { aspect-ratio: auto; }
.pd-app-grid img { width: 100%; height: 100%; object-fit: cover; }

.mcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pd-system { background: var(--paper); }
.pd-system .mcard { background: #fff; }
.pd-similar .mcard { background: var(--paper); }
.mcard { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; color: var(--ink); transition: transform .35s var(--ease); }
.mcard:hover { transform: translateY(-3px); }
.mcard-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e9ebe5; }
.mcard-media.is-shot { background: linear-gradient(160deg, #f3f3ef, #e3e3dd); }
.mcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.mcard:hover .mcard-media img { transform: scale(1.04); }
.mcard-info { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 16px; }
.mcard-info small { color: #8a908e; font-size: 10.5px; font-weight: 700; }
.mcard-info strong { font-size: 15px; line-height: 1.3; }
.mcard-price { margin-top: 8px; color: #6b7270; font-size: 12px; }
.mcard-price b { color: var(--ink); font-family: var(--display); font-size: 15px; }

.pd-consult { padding-top: 0; background: var(--paper); }
.pd-similar + .pd-consult, .pd-system + .pd-consult { padding-top: 88px; }
.pd-consult-box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: 44px 48px; border-radius: var(--r); background: var(--ink); color: #fff; }
.pd-consult-box h2 em { color: var(--yellow-soft); }
.pd-consult-box p { max-width: 620px; margin-top: 12px; color: rgba(255, 255, 255, .68); font-size: 15px; line-height: 1.6; }

/* полоса с ценой на телефоне */
.pd-bar { display: none; }

/* сравнение */
.cmp-head-sec { padding-bottom: 120px; }
.cmp-scroll { margin-top: 30px; overflow-x: auto; border-radius: var(--r); background: #fff; }
/* fixed: колонки товаров равной ширины — раньше широкая колонка раздувала свою картинку вдвое */
.cmp-table { width: 100%; min-width: calc(180px + var(--n) * 220px); border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.cmp-table th, .cmp-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: break-word; }
.cmp-table thead td:first-child, .cmp-table tbody th { width: 180px; }
.cmp-table tbody th { color: #6b7270; font-weight: 600; }
.cmp-table thead th { padding-top: 20px; }
.cmp-head { display: grid; gap: 4px; color: var(--ink); }
.cmp-pic { display: block; width: 100%; max-width: 300px; aspect-ratio: 4 / 3; margin-bottom: 8px; border-radius: var(--r-sm); overflow: hidden; background: #e9ebe5; }
.cmp-pic.is-shot { background: linear-gradient(160deg, #f3f3ef, #e3e3dd); }
.cmp-pic img { width: 100%; height: 100%; object-fit: cover; }
.cmp-head small { color: #8a908e; font: 700 10.5px/1.4 Arial, sans-serif; letter-spacing: .06em; }
.cmp-remove { margin-top: 8px; padding: 0; border: 0; background: none; color: #8a908e; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.cmp-remove:hover { color: var(--gold-ink); }
.cmp-table b { font-family: var(--display); }
.cat-none-text { margin-top: 30px; padding: 40px; border-radius: var(--r); background: #fff; color: #59605f; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1180px) {
  .pd-grid { grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); gap: 34px; }
  .mcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* узкая галерея (две колонки на ноутбуке): лист ниже и выше, чтобы размер по ширине не залезал под подпись слайда */
@media (min-width: 981px) and (max-width: 1180px) {
  .sheet-wrap { height: 66%; margin-top: -8%; }
}
@media (max-width: 980px) {
  /* minmax(0, …): иначе ширина колонки = min-content панели сортировки, и на телефоне страница уезжала вбок (448 px при 390) */
  .cat-layout { grid-template-columns: minmax(0, 1fr); }
  .cat-filter-btn { display: inline-flex; }
  .cat-filters { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 45; max-height: 86dvh; overflow-y: auto; padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-radius: var(--r) var(--r) 0 0; box-shadow: 0 -20px 50px rgba(16, 17, 17, .25); transform: translateY(105%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }
  .cat-filters.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .cat-filters-head { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
  .cat-filters-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f2f2ee; font-size: 22px; line-height: 1; cursor: pointer; }
  .cat-apply { display: inline-flex; min-height: 48px; border-radius: var(--r-sm); }
  .cat-scrim { position: fixed; inset: 0; z-index: 44; background: rgba(16, 17, 17, .42); backdrop-filter: blur(3px); }
  .cat-scrim[hidden] { display: none; }
  .cat-search input { font-size: 16px; }

  .pd-grid { grid-template-columns: 1fr; gap: 26px; }
  .pd-gallery { position: static; }
  .pd-specs-grid { grid-template-columns: 1fr; gap: 44px; }
  .pd-bar { display: block; position: fixed; left: 12px; right: 12px; bottom: calc(var(--uh-dock-b, 16px) + var(--uh-dock-size, 52px) + 10px); z-index: 22; transform: translateY(150%); opacity: 0; transition: transform .35s var(--ease), opacity .35s var(--ease); pointer-events: none; }
  .pd-bar.is-on { transform: none; opacity: 1; pointer-events: auto; }
  .pd-bar-in { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: var(--r); background: rgba(255, 255, 255, .97); box-shadow: 0 16px 40px rgba(16, 17, 17, .22); }
  .pd-bar-name { display: grid; flex: 1; min-width: 0; font-size: 12px; font-weight: 700; color: #59605f; }
  .pd-bar-name b { color: var(--ink); font-family: var(--display); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pd-bar .button { min-height: 46px; border-radius: var(--r-sm); }
  body.uh-ai-open .pd-bar, body.nav-open .pd-bar { display: none; }
}
@media (max-width: 680px) {
  .page-catalog .container { width: min(calc(100% - 32px), 1320px); }
  .cat-head { padding: 88px 0 0; }
  /* узкий телефон: длинное слово заголовка («սերտիֆիկատներ») — целиком в строке */
  .cat-head h1 { font-size: clamp(28px, 9vw, 36px); }
  .cat-head-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cat-lead { font-size: 15px; }
  .cat-pdf { min-height: 44px; }
  .cat-tabs { margin: 22px -16px 0; padding: 4px 16px 10px; }
  .cat-sort span { display: none; }
  /* фильтры + сортировка в первой строке, счётчик — второй строкой: select на телефоне 16 px и не влезал рядом */
  .cat-toolbar { flex-wrap: wrap; row-gap: 8px; }
  .cat-count { order: 3; flex-basis: 100%; margin: 0; font-size: 12px; }
  .cat-sort { min-width: 0; margin-left: auto; }
  .cat-sort select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-sec { font-size: 18px; margin-top: 18px; }
  .pcard-info { padding: 12px 12px 14px; }
  .pcard-info strong { font-size: 14px; }
  .pcard-spec { font-size: 11px; }
  .pcard-price { padding-right: 36px; font-size: 11px; }
  .pcard-price b { font-size: 15px; }
  .pcard-compare { right: 8px; bottom: 10px; height: 30px; min-width: 30px; padding: 0 7px; }
  .pcard-compare span { display: none; }
  .compare-tray-in { gap: 8px; }
  .compare-clear { display: none; }

  .pd-hero { padding: 84px 0 40px; }
  .pd-stage { aspect-ratio: 1 / 1.02; margin: 0 -16px; border-radius: 0; }
  .pd-thumbs { margin-top: 8px; }
  .pd-thumb { width: 70px; height: 54px; }
  .pd-nav { opacity: 1; width: 38px; height: 38px; margin-top: -19px; }
  .pd-nav.is-prev { left: 10px; } .pd-nav.is-next { right: 10px; }
  .sheet-wrap { height: 68%; margin-top: -8%; }
  .pd-sheet-slide figcaption { left: 10px; bottom: 10px; padding: 5px 10px; font-size: 10.5px; }
  .dim { font-size: 10px; }
  .dim-h { right: calc(100% + 22px); }
  .pd-info h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .pd-section { padding: 64px 0; }
  .pd-sec-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
  .pd-table div { grid-template-columns: 1fr; gap: 3px; }
  .pd-app-grid { grid-template-columns: 1fr; }
  .pd-app-grid figure:nth-child(2) { aspect-ratio: 4 / 3; }
  .mcards { gap: 10px; }
  .mcard-info { padding: 11px 12px 13px; }
  .mcard-info strong { font-size: 13.5px; }
  .pd-consult-box { grid-template-columns: 1fr; padding: 30px 24px; gap: 22px; }
  .pd-similar + .pd-consult, .pd-system + .pd-consult { padding-top: 64px; }
  .cmp-table thead td:first-child, .cmp-table tbody th { width: 130px; }
  .cmp-table { min-width: calc(130px + var(--n) * 200px); }
}
@media (prefers-reduced-motion: reduce) {
  .sheet, .pd-slide, .pcard, .pcard-media img, .mcard, .mcard-media img { transition: none !important; }
  .compare-tray { animation: none; }
}

/* ============================================================
   Без цен (просьба клиента, 2026-10-13): низ карточки — «დეტალურად»,
   на странице товара — код варианта; понятное удаление из сравнения.
   ============================================================ */
.pcard-more { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 12.5px; font-weight: 800; transition: color .25s var(--ease); }
.pcard-more i { font-style: normal; }
.pcard:hover .pcard-more, .mcard:hover .pcard-more { color: var(--gold-ink); }
.pcard-compare[aria-pressed="true"] span, .pcard:hover .pcard-compare[aria-pressed="true"] span { max-width: 190px; }
.pcard-compare[aria-pressed="true"] i::before, .pcard-compare[aria-pressed="true"] i::after { background: var(--yellow-soft); }
.compare-thumb { position: relative; flex: none; }
.compare-thumb a { display: block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #2a3031; }
.compare-x { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font: 700 14px/1 Arial, sans-serif; cursor: pointer; box-shadow: 0 2px 6px rgba(16, 17, 17, .3); }
.compare-x:hover { background: var(--yellow); }
.compare-thumbs { padding-top: 5px; }
@media (max-width: 680px) {
  .compare-clear { display: inline; font-size: 11px; }
}
.compare-thumbs { overflow: visible; gap: 12px; }
/* телефон: сетка не шире экрана (раньше панель инструментов распирала страницу до 448px) */
@media (max-width: 980px) {
  .cat-layout { grid-template-columns: minmax(0, 1fr); }
  .cat-toolbar { flex-wrap: wrap; row-gap: 10px; }
  .cat-sort select { max-width: 200px; }
}

/* ============================================================
   Цены: сначала как в прайсе (€ или $), кнопкой «₾» — лари по курсу Нацбанка.
   Какую сумму видно, решает html[data-cur] (правила .money — в styles.css;
   .m-usd там — «валюта прайса», имя класса осталось с долларовых времён).
   ============================================================ */
.cur-toggle { display: inline-flex; flex: none; padding: 3px; border-radius: 999px; background: var(--paper); }
.cur-toggle button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; color: #6b7270; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.cur-toggle button span { font-family: var(--display); font-size: 15px; line-height: 1; }
.cur-toggle button i { font-style: normal; font-size: 10.5px; letter-spacing: .06em; }
.cur-toggle button:hover { color: var(--ink); }
.cur-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--yellow-soft); }
.cur-toggle button:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--yellow); }
.cur-toggle.is-small button { height: 30px; padding: 0 11px; }
.cur-toggle.is-small button i { display: none; }

.rate-note { display: none; }
:root[data-cur="gel"] .rate-note { display: inline; }
.rate-src::before { content: ' · '; }

/* список: переключатель рядом с сортировкой; курсы — строкой, источник и дата — под ними */
.cat-cur { display: flex; align-items: center; gap: 10px; }
.cat-cur .cur-toggle { background: #fff; }
.cat-cur .rate-note { max-width: 240px; color: #8a908e; font-size: 11px; line-height: 1.35; }
:root[data-cur="gel"] .cat-cur .rate-note { display: block; }
.cat-cur .rate-x, .cat-cur .rate-src { display: block; }
.cat-cur .rate-src::before { content: none; }

.pcard-price small { color: #8a908e; font-size: 12px; }
.pcard-onreq { color: var(--ink); font-size: 12.5px; font-weight: 700; }
.mcard-price { margin-top: 6px; color: #8a908e; font-size: 12px; }
.mcard-price b { color: var(--ink); font-family: var(--display); font-size: 15px; letter-spacing: -.01em; }
.mcard-price .pcard-onreq { font-size: 12px; }

.pd-bar-name .money { font-variant-numeric: tabular-nums; }

/* таблица вариантов: колонка цены */
.pd-prices-head { display: flex; justify-content: flex-end; margin: 18px 0 -12px; }
.pd-prices td.pd-prices-num { color: var(--ink); font-family: var(--display); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* сравнение */
.cmp-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.cmp-table td b { font-family: var(--display); }
.cmp-table td small { color: #8a908e; }

/* ============================================================
   Сертификаты производителя: миниатюры, по клику — крупно
   ============================================================ */
.pd-cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px 22px; }
.pd-cert { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.pd-cert-pic { display: block; aspect-ratio: 3 / 4; padding: 12px; border: 0; border-radius: var(--r); background: #fff; box-shadow: 0 10px 30px rgba(16, 17, 17, .08); cursor: zoom-in; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pd-cert-pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pd-cert-pic:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(16, 17, 17, .12); }
.pd-cert-pic:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--yellow); }
.pd-cert figcaption strong { display: block; color: var(--ink); font-size: 13.5px; line-height: 1.35; }
.pd-cert figcaption small { display: block; margin-top: 4px; color: #8a908e; font-size: 12px; }
.pd-cert figcaption a { display: inline-block; margin-top: 8px; color: var(--gold-ink); font-size: 12px; font-weight: 800; }
.pd-docs a + a { margin-top: 10px; }
.pd-doc-ico.is-cert { background: var(--yellow); color: var(--ink); font-size: 15px; }

.cert-box { position: fixed; max-width: min(94vw, 1000px); max-height: 94vh; padding: 16px 16px 14px; border: 0; border-radius: var(--r); background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: auto; }
.cert-box::backdrop { background: rgba(16, 17, 17, .74); }
.cert-box img { display: block; max-width: 100%; max-height: calc(94vh - 84px); margin: 0 auto; object-fit: contain; }
.cert-box p { margin: 10px 48px 0; color: var(--ink); font-size: 13px; font-weight: 700; text-align: center; }
.cert-box form { position: absolute; top: 10px; right: 10px; z-index: 1; }
.cert-x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

@media (max-width: 680px) {
  .pd-price .money { font-size: 32px; }
  .cat-cur .rate-note { max-width: none; }
  .pd-cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .pd-prices-head { margin: 14px 0 -8px; }
}

/* ссылки на сертификаты бренда в блоке «Документы» страницы товара:
   короткое имя + название второй строкой, по клику — окно .cert-box (catalog-ui.js).
   Все документы бренда — на /partners#<бренд> (ссылка .pd-docs-all). */
.pd-cert-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.pd-cert-link { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 11px 14px; border: 0; border-radius: var(--r-sm); background: var(--paper); color: var(--ink); text-align: left; cursor: zoom-in; transition: background .2s var(--ease); }
.pd-cert-link:hover { background: #fffaf0; }
.pd-cert-link:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--yellow); }
.pd-cert-link b { font-size: 13px; font-weight: 800; line-height: 1.3; }
.pd-cert-link small { overflow: hidden; color: #8a908e; font-size: 11.5px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.pd-docs a.pd-docs-all { display: inline-flex; gap: 8px; margin-top: 14px; padding: 0; border-radius: 0; background: none; color: var(--gold-ink); font-size: 12.5px; font-weight: 800; }
.pd-docs a.pd-docs-all:hover { background: none; color: var(--ink); }

/* Шапка каталога: рядом с PDF — ссылка на калькулятор фасада (та же «таблетка» .cat-pdf) */
.cat-head-actions { flex: none; display: flex; flex-wrap: wrap; gap: 10px; }
.cat-calc { background: var(--ink); color: #fff; }
.cat-calc:hover { background: #fff; color: var(--ink); }
@media (max-width: 680px) {
  .cat-head-actions { gap: 8px; }
}

/* ============================================================
   Наличие со склада (таблица inventory): «მარაგშია · 100 მ²» / «შეკვეთით».
   В наличии — золотая точка, под заказ — серая. Зелёного нет нигде.
   ============================================================ */
.pcard .featured-badge { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.pcard .featured-badge::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.pcard .featured-badge.is-order::before { content: none; }
.mcard-stock, .cmp-stock { display: inline-flex; align-items: center; gap: 7px; color: #3a4140; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mcard-stock { margin-top: 4px; }
.mcard-stock i, .cmp-stock i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(215, 170, 69, .2); }
.mcard-stock.is-order, .cmp-stock.is-order { color: #8a908e; }
.mcard-stock.is-order i, .cmp-stock.is-order i { background: #c3c7c5; box-shadow: none; }
.cmp-stock { font-size: 13.5px; }

/* карточка покупки на ноутбуке и телефоне */
@media (max-width: 1180px) {
  .pd-buy { padding: 22px 20px 20px; }
}
@media (max-width: 680px) {
  .pd-chips { gap: 12px 18px; margin-top: 20px; }
  .pd-buy { margin-top: 22px; padding: 20px 16px 16px; }
  .pd-price .money { font-size: 34px; }
  .pd-cta { min-height: 54px; }
  .pd-acts { gap: 6px; }
  .pd-act { flex-direction: column; gap: 5px; min-height: 64px; padding: 10px 8px; font-size: 12.5px; }
  .pd-act:only-child { flex-direction: row; gap: 9px; min-height: 52px; }
  .pd-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; padding: 0 4px; }
  .pd-link { min-width: 0; white-space: normal; text-align: left; line-height: 1.3; }
  .pd-meta { padding: 0 4px; }
}

/* ————— визит в шоурум: заметная плашка под карточкой покупки ————— */
.pd-book { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 14px 18px; border-radius: var(--r); background: var(--yellow-soft); color: var(--ink); transition: background .25s var(--ease); }
.pd-book:hover { background: #ecc574; }
.pd-book svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pd-book > span { flex: 1; min-width: 0; }
.pd-book strong { display: block; font-size: 14px; }
.pd-book small { display: block; margin-top: 2px; color: #5d5236; font-size: 12px; line-height: 1.35; }
.pd-book i { font-style: normal; font-size: 16px; }

/* ============================================================
   2026-10-27 — правки Луки по каталогу (functions/catalog.js, catalog-ui.js):
   пагинация, фильтры-аккордеон со своей прокруткой, чипы выбранного над сеткой,
   шторка фильтров на телефоне, полоса калькулятора, обложка карточки — снимок товара 4:3.
   Без рамок, без теней и «подъёма» при наведении: выбранное — тёмной заливкой с белым
   текстом, акцент — мягкий жёлтый. Зелёного нет.
   ============================================================ */

/* шапка: заголовок и лид; PDF — в шапке сайта, калькулятор — полосой в сетке */
.cat-head-row { display: block; }
.cat-tab.is-zero:not(.is-active) { color: #a9aeac; }
.cat-tab.is-zero:not(.is-active) span { color: #c3c7c5; }

/* ——— фильтры: липкая колонка со своей тонкой прокруткой ——— */
.cat-filters {
  top: calc(var(--hdr, 72px) + 16px);
  max-height: calc(100vh - var(--hdr, 72px) - 32px);
  max-height: calc(100dvh - var(--hdr, 72px) - 32px);
  gap: 0; padding: 16px 14px 14px 20px;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #d6d7d1 transparent;
}
.cat-filters::-webkit-scrollbar { width: 6px; }
.cat-filters::-webkit-scrollbar-track { background: transparent; }
.cat-filters::-webkit-scrollbar-thumb { border-radius: 6px; background: #d6d7d1; }
.cat-filters-body { display: grid; gap: 4px; min-width: 0; }
.cat-search { margin-bottom: 8px; }
.cat-search input::-webkit-search-cancel-button { cursor: pointer; }

/* группы-аккордеоны (<details>): заголовок — обычным текстом, не «надзаголовком» */
.cat-group { display: block; }
.cat-group > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; border-radius: 8px; color: var(--ink); font-size: 13.5px; font-weight: 800; line-height: 1.25; list-style: none; cursor: pointer; user-select: none; -webkit-user-select: none; }
.cat-group > summary::-webkit-details-marker { display: none; }
.cat-group > summary::marker { content: ''; }
.cat-group > summary:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--yellow); }
.cat-group-t { flex: 1; min-width: 0; }
.cat-sel-n { display: inline-grid; place-items: center; flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--ink); color: var(--yellow-soft); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cat-sel-n[hidden] { display: none; }
.cat-chev { flex: none; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%236b7270' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .2s var(--ease); }
.cat-group[open] > summary .cat-chev { transform: rotate(180deg); }
.cat-opts { display: grid; gap: 2px; padding: 0 0 12px; min-width: 0; }
.cat-check { min-width: 0; }
.cat-check span { min-width: 0; overflow-wrap: anywhere; }
.cat-check em { font-variant-numeric: tabular-nums; }
.cat-check.is-zero { color: #b3b7b5; cursor: default; }
.cat-check.is-zero:hover { background: none; }
.cat-check.is-zero input { background: #f1f1ed; cursor: default; }
.cat-check.is-zero em { color: #c9cdcb; }
.cat-radio input { border-radius: 50%; }
.cat-radio input:checked { background: var(--ink) radial-gradient(circle, var(--yellow-soft) 0 3.5px, transparent 4px); }
/* «ещё N»: лишние пункты скрыты, выбранный виден всегда */
.cat-check.is-extra { display: none; }
.cat-group.is-more .cat-check.is-extra, .cat-check.is-extra:has(input:checked) { display: flex; }
.cat-more { justify-self: start; margin: -8px 0 10px; padding: 8px 2px; border: 0; background: none; color: var(--gold-ink); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.cat-more:hover { color: var(--ink); }
.cat-more:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 3px; }
/* толщина — таблетками в строку */
.cat-group-inline .cat-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-group-inline .cat-check { gap: 7px; }
.cat-group-inline .cat-check span { flex: none; }
.cat-group-inline .cat-check em { font-size: 10.5px; }
.cat-group-inline .cat-check:has(input:checked) em { color: var(--yellow-soft); }
.cat-group-inline .cat-check.is-zero { background: #f7f7f4; }
/* категория — группой только в шторке на телефоне: на компьютере над сеткой есть вкладки */
@media (min-width: 981px) {
  .cat-group-cat, .cat-filters-foot { display: none; }
}

/* ——— над сеткой: число, сортировка, валюта; выбранное — чипами ——— */
.cat-meta { display: none; }
.cat-sort-ico, .cat-sort .cat-sort-v { display: none; }
.cat-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 16px; }
.cat-active[hidden] { display: none; }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 38px; padding: 0 10px 0 14px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: background .2s var(--ease); }
.cat-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-chip svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--yellow-soft); stroke-width: 2; stroke-linecap: round; }
.cat-chip svg:first-child:not(:last-child) { stroke: rgba(255, 255, 255, .6); }
.cat-chip:hover { background: #2b3030; }
.cat-chip-clear { min-height: 38px; padding: 0 6px; border: 0; background: none; color: #6b7270; font: inherit; font-size: 12.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cat-chip-clear:hover { color: var(--gold-ink); }
.cat-chip:focus-visible, .cat-chip-clear:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--yellow); }

/* ——— разделы «მარაგშია / შეკვეთით» ——— */
.cat-sec { flex-wrap: wrap; row-gap: 3px; }
.cat-sec .cat-sec-t { display: inline-flex; align-items: baseline; gap: 10px; color: var(--ink); font-size: inherit; font-weight: inherit; }
.cat-sec small { flex-basis: 100%; color: #7a817f; font-family: "Noto Sans Georgian", Inter, Arial, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0; line-height: 1.45; }
.cat-grid > .cat-sec:not(:first-child) { margin-top: 30px; }

/* ——— карточка: снимок товара 4:3 у всех, без подъёма и тени ——— */
.pcard:hover { transform: none; box-shadow: none; }
.pcard-media { aspect-ratio: 4 / 3; }
@media (hover: none) { .pcard-media .pm-b { display: none; } }
.pcard .featured-badge { top: 10px; left: 10px; gap: 6px; padding: 6px 10px; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: none; font-size: 10.5px; font-weight: 700; letter-spacing: .01em; }
.pcard .featured-badge.is-order { background: rgba(255, 255, 255, .88); color: #59605f; }
.pcard .featured-badge.is-order::before { content: ""; background: #c3c7c5; }

/* ——— пагинация: ‹ 1 2 3 … 8 ›, текущая — тёмной заливкой ——— */
.cat-pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 36px; }
.cat-pager[hidden] { display: none; }
.pg-nums { display: flex; align-items: center; gap: 6px; margin: 0 6px; padding: 0; list-style: none; }
.pg-num, .pg-btn { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 10px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background .2s var(--ease), color .2s var(--ease); }
a.pg-num:hover, a.pg-btn:hover { background: #fbf3df; }
.pg-num[aria-current] { background: var(--ink); color: #fff; }
.pg-btn { padding: 0; }
.pg-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pg-btn.is-off { background: rgba(255, 255, 255, .5); color: #c3c7c5; }
.pg-gap { min-width: 20px; color: #8a908e; font-weight: 700; text-align: center; }
.pg-first, .pg-last, .pg-of { display: none; }
.pg-of { min-width: 76px; color: #6b7270; font-size: 15px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.pg-of b { color: var(--ink); }
a.pg-num:focus-visible, a.pg-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--yellow); }

/* ——— полоса калькулятора и «нужен расчёт» на странице товара — одна система:
       тёмная плашка, заголовок с жёлтым акцентом, жёлтая кнопка в калькулятор, тихая ссылка «запросить расчёт» ——— */
.cat-band { grid-column: 1 / -1; container-type: inline-size; margin: 14px 0; padding: 30px 32px; border-radius: var(--r); background: var(--ink); color: #fff; }
.cat-band[hidden] { display: none; }
.cat-band-in { display: grid; gap: 22px; }
.cat-band h2, .pd-consult-box h2 { font-family: var(--display); font-size: clamp(24px, 2.3vw, 32px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.cat-band h2 em { font-family: var(--display); font-style: normal; color: var(--yellow-soft); }
.cat-band-copy p { max-width: 520px; margin-top: 10px; color: rgba(255, 255, 255, .68); font-size: 14.5px; line-height: 1.6; }
.cat-band-form { display: grid; gap: 18px; min-width: 0; }
.cat-band-k { display: block; margin: 0 0 10px; color: rgba(255, 255, 255, .78); font-size: 13px; font-weight: 700; line-height: 1.3; }
.cat-band .hcalc-stepper { grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 6px; }
.cat-band .hcalc-step, .cat-band .hcalc-field { height: 54px; background: rgba(255, 255, 255, .09); color: #fff; }
.cat-band .hcalc-step:hover { background: rgba(255, 255, 255, .16); }
.cat-band .hcalc-field:focus-within { background: rgba(255, 255, 255, .16); }
.cat-band .hcalc-field input { padding: 0 46px 0 16px; color: #fff; font-size: 24px !important; }
.cat-band .hcalc-unit { right: 16px; color: rgba(255, 255, 255, .6); }
.cat-band .hcalc-presets { gap: 6px; margin-top: 8px; }
.cat-band .hcalc-presets button { flex: 1 1 0; min-height: 38px; padding: 0 8px; background: rgba(255, 255, 255, .09); color: #fff; }
.cat-band .hcalc-presets button:hover { background: rgba(255, 255, 255, .16); }
.cat-band .hcalc-presets button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.cat-band .hcalc-seg { background: rgba(255, 255, 255, .09); }
.cat-band .hcalc-seg label { min-height: 46px; padding: 8px 12px; color: #fff; text-align: center; justify-items: center; }
.cat-band .hcalc-seg label:hover { background: rgba(255, 255, 255, .1); }
.cat-band .hcalc-seg label small { display: none; color: rgba(255, 255, 255, .6); }
.cat-band .hcalc-seg input:checked + label { background: #fff; color: var(--ink); }
.cat-band .hcalc-seg input:checked + label small { color: #6b7270; }
.cat-band-go { display: grid; gap: 4px; justify-items: stretch; }
.cat-band-submit { min-height: 54px; border-radius: var(--r-sm); font-size: 13.5px; }
.cat-band-ask, .pd-consult-ask { justify-self: center; min-height: 40px; padding: 0 6px; border: 0; background: none; color: rgba(255, 255, 255, .7); font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 4px; cursor: pointer; transition: color .2s var(--ease); }
.cat-band-ask:hover, .pd-consult-ask:hover { color: var(--yellow-soft); }
.cat-band-ask:focus-visible, .pd-consult-ask:focus-visible { outline: none; color: var(--yellow-soft); }
.cat-band .hcalc-step:focus-visible, .cat-band .hcalc-presets button:focus-visible, .cat-band .hcalc-seg input:focus-visible + label { box-shadow: 0 0 0 2px var(--yellow); }
/* ширина самой полосы (а не экрана): в узкой колонке — друг под другом */
@container (min-width: 560px) {
  .cat-band-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .cat-band-area { grid-row: span 2; }
  .cat-band-go { grid-column: 2; }
}
@container (min-width: 800px) {
  .cat-band-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); column-gap: 40px; align-items: center; }
}
@container (max-width: 559px) {
  .cat-band .hcalc-seg label small { display: block; }
  .cat-band .hcalc-seg label { min-height: 58px; }
}
/* «нужен расчёт» на странице товара: жёлтая кнопка — в калькулятор, под ней тихая ссылка на заявку */
.pd-consult-acts { display: grid; justify-items: stretch; gap: 4px; min-width: 240px; }
.pd-consult-acts .button { min-height: 56px; border-radius: var(--r-sm); }
.pd-consult-box p b { color: #fff; font-weight: 700; }
/* страница товара: один снимок фасада (у декоров под заказ) — на всю ширину, а не половина с пустотой рядом */
.pd-app-grid figure:only-child { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.pd-app-grid figure:only-child img { object-position: 50% 60%; }
@media (max-width: 680px) { .pd-app-grid figure:only-child { aspect-ratio: 4 / 3; } }

/* ——— ноутбук и телефон ——— */
@media (max-width: 980px) {
  .cat-desk { display: none !important; }
  /* липкая строка под шапкой: [ფილტრები · N] [დალაგება] — две равные кнопки */
  .cat-toolbar { position: sticky; top: var(--hdr, 64px); z-index: 15; flex-wrap: nowrap; gap: 8px; min-height: 0; margin: 0 0 4px; padding: 8px 0; background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); }
  .cat-filter-btn { display: inline-flex; flex: 1 1 0; justify-content: center; min-width: 0; height: 48px; padding: 0 14px; font-size: 13.5px; transition: background .2s var(--ease), color .2s var(--ease); }
  .cat-filter-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cat-filter-btn.is-on { background: var(--ink); color: #fff; }
  .cat-filter-btn em { flex: none; background: var(--yellow-soft); }
  .cat-sort { position: relative; flex: 1 1 0; justify-content: center; gap: 8px; min-width: 0; height: 48px; margin: 0; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 700; transition: background .2s var(--ease), color .2s var(--ease); }
  .cat-sort.is-on { background: var(--ink); color: #fff; }
  .cat-sort .cat-sort-k { display: none; }
  .cat-sort .cat-sort-v { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cat-sort-ico { display: block; flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  /* сам select — прозрачный поверх кнопки: родной список телефона, 16 px — без увеличения на iPhone */
  .cat-sort select { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; padding: 0; opacity: 0; font-size: 16px; cursor: pointer; }
  .cat-sort:focus-within { box-shadow: 0 0 0 2px var(--yellow); }
  .cat-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin: 4px 0 14px; }
  .cat-meta .cat-count { order: 0; flex-basis: auto; margin: 0; font-size: 13px; }
  .cat-meta .cat-cur { flex-wrap: wrap; justify-content: flex-end; }
  .cat-active { margin: 0 0 14px; }

  /* шторка фильтров: во весь рост, сверху заголовок и крестик, снизу «сбросить» и «показать N» */
  .cat-filters { position: fixed; inset: auto 0 0 0; z-index: 45; display: flex; flex-direction: column; height: calc(100vh - 24px); height: calc(100dvh - 24px); max-height: none; padding: 0; overflow: hidden; border-radius: 22px 22px 0 0; box-shadow: none; }
  .cat-filters-head { flex: none; padding: 12px 14px 8px 20px; }
  .cat-filters-head strong { font-family: var(--display); font-size: 21px; letter-spacing: -.01em; }
  .cat-filters-close { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); }
  .cat-filters-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .cat-filters-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 20px 28px; }
  .cat-filters-foot { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 0 #efefea; }
  .cat-reset { flex: none; min-height: 52px; padding: 0 12px; font-size: 14px; }
  .cat-apply { display: inline-flex; flex: 1; align-items: center; justify-content: center; min-width: 0; min-height: 54px; padding: 0 16px; border: 0; border-radius: var(--r-sm); background: var(--ink); color: #fff; font: inherit; font-size: 15px; font-weight: 800; text-align: center; cursor: pointer; }
  .cat-apply:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--yellow); }
  .cat-group > summary { min-height: 54px; font-size: 15.5px; }
  .cat-check { min-height: 48px; margin: 0 -10px; padding: 0 10px; font-size: 15px; }
  .cat-check input { width: 22px; height: 22px; border-radius: 6px; }
  .cat-check input:checked { background-size: 22px; }
  .cat-radio input, .cat-radio input:checked { border-radius: 50%; background-size: auto; }
  .cat-check em { font-size: 12px; }
  .cat-group-inline .cat-check { min-height: 44px; margin: 0; padding: 0 16px; }
  .cat-search input { height: 50px; font-size: 16px; }
  .cat-more { min-height: 44px; margin-top: -6px; font-size: 14px; }
  html.cat-sheet-open, html.cat-sheet-open body { overflow: hidden; }
}
@media (max-width: 680px) {
  .cat-band { padding: 26px 20px 20px; }
  .pd-consult-acts { min-width: 0; }
}
/* узкий телефон: номера страниц — компактно «‹ 2 / 8 ›» с первой и последней */
@media (max-width: 600px) {
  .cat-pager { gap: 8px; margin-top: 28px; }
  .pg-nums { display: none; }
  .pg-first, .pg-last { display: inline-grid; }
  .pg-of { display: block; }
  .pg-btn { min-width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-chev, .cat-filters { transition: none !important; }
}
