/* ═══ Каталог ═══ */
.catpage { padding-top: var(--hdr); }

/* Шапка каталога */
.chead { padding: 40px 0 34px; background: var(--plaster); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.chead::after { content: ""; position: absolute; right: -40px; top: -40px; width: 420px; height: 420px; background-image: radial-gradient(circle, #CDD4DE 2.4px, transparent 2.9px); background-size: 30px 30px; -webkit-mask: radial-gradient(closest-side, #000, transparent); mask: radial-gradient(closest-side, #000, transparent); pointer-events: none; }
.crumbs { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); position: relative; z-index: 1; }
.crumbs a:hover { color: var(--blue); }
.crumbs b { color: var(--ink); font-weight: 500; }
.chead__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin: 18px 0 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.chead__title { font-family: var(--f-disp); font-weight: 900; font-size: clamp(52px, 7vw, 104px); line-height: .88; text-transform: uppercase; margin: 0; letter-spacing: -.01em; }
.csearch { display: flex; align-items: center; gap: 10px; width: min(420px, 100%); height: 56px; padding: 0 18px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); }
.csearch svg { width: 22px; height: 22px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; flex: none; }
.csearch input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16.5px; }
.csearch:focus-within { box-shadow: 0 0 0 3px var(--blue-3), var(--shadow); }
.chead__note { margin: 0; font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.chead__note span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; padding: 3px 7px; border-radius: 4px; background: var(--tape); color: var(--ink); flex: none; }

/* Раскладка */
.clay { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; padding-block: 40px 90px; align-items: start; }
.cside { position: sticky; top: calc(var(--hdr) + 24px); display: grid; gap: 28px; }
.cgroup h2 { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.ccats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ccats button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; text-align: left; font-weight: 500; font-size: 15.5px; transition: background .2s, color .2s; }
.ccats button:hover { background: var(--plaster); }
.ccats button.is-on { background: var(--ink); color: #fff; }
.ccats small { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.ccats .is-on small { color: #A9B3CC; }
.cchips { display: flex; flex-wrap: wrap; gap: 6px; }
.cchips button { padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; font-weight: 500; transition: all .2s; }
.cchips button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cchips button.is-on { background: var(--blue); color: #fff; box-shadow: none; }
.cbrands { display: grid; gap: 4px; }
.cbrands label { display: flex; align-items: center; gap: 10px; padding: 6px 4px; font-size: 15px; cursor: pointer; }
.cbrands input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.cbrands small { margin-left: auto; font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.creset { justify-self: start; font-size: 14px; font-weight: 600; color: var(--blue); padding: 4px 0; }
.creset:hover { text-decoration: underline; }
.cfilter-toggle { display: none; }

.ctool { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.ctool__count { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); }
.csort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.csort select { border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 14px; background: #fff; font-size: 14.5px; color: var(--ink); }

/* Карточки товаров */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pc { position: relative; display: flex; flex-direction: column; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow .3s, transform .4s var(--ease); animation: pcin .55s var(--ease) both; }
@keyframes pcin { from { opacity: 0; transform: translateY(18px); } }
.pc:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pc__art { position: relative; aspect-ratio: 5 / 4; background: var(--plaster); display: grid; place-items: center; cursor: pointer; overflow: hidden; }
.pc__art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, #D6DCE5 1.8px, transparent 2.2px); background-size: 22px 22px; opacity: .7; }
.pc__art svg { position: relative; width: 66%; transition: transform .6s var(--ease); }
.pc:hover .pc__art svg { transform: scale(1.06) rotate(-2deg); }
.pc__hit { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: var(--tape); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.pc__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 18px; flex: 1; }
.pc__brand { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.pc__name { font-weight: 600; font-size: 17px; line-height: 1.3; margin: 0; cursor: pointer; }
.pc__name:hover { color: var(--blue); }
.pc__packs { display: flex; flex-wrap: wrap; gap: 6px; }
.pc__packs button { padding: 5px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 13px; font-weight: 500; transition: all .2s; }
.pc__packs button.is-on { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--ink); color: #fff; }
.pc__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; }
.pc__price { font-family: var(--f-disp); font-weight: 800; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.pc__add { width: 50px; height: 50px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; transition: background .25s, transform .3s var(--ease); flex: none; }
.pc__add:hover { background: var(--ink); transform: rotate(90deg); }
.pc__add svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.cempty { text-align: center; padding: 60px 20px; border-radius: 22px; background: var(--plaster); }
.cempty b { font-family: var(--f-disp); font-size: 34px; text-transform: uppercase; }
.cempty p { color: var(--ink-2); margin: 8px 0 20px; }

/* Баннер подбора */
.cbanner { background: var(--navy); color: #fff; }
.cbanner__in { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; padding-block: 56px; flex-wrap: wrap; }
.cbanner h2 { font-family: var(--f-disp); font-weight: 800; font-size: clamp(36px, 4vw, 56px); text-transform: uppercase; line-height: .95; margin: 0 0 8px; }
.cbanner p { margin: 0; color: #A9B3CC; max-width: 52ch; }

/* Карточка товара (модальное окно) */
.pm { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; padding: 20px; pointer-events: none; }
.pm__veil { position: absolute; inset: 0; background: rgba(10, 20, 51, .5); opacity: 0; transition: opacity .3s; backdrop-filter: blur(4px); }
.pm__box { position: relative; width: min(1040px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 28px; display: grid; grid-template-columns: .9fr 1.1fr; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .3s, transform .45s var(--ease); overscroll-behavior: contain; }
.pm.is-open { pointer-events: auto; }
.pm.is-open .pm__veil { opacity: 1; }
.pm.is-open .pm__box { opacity: 1; transform: none; }
.pm__x { position: absolute; right: 14px; top: 14px; z-index: 2; background: #fff; box-shadow: var(--shadow); }
.pm__art { background: var(--plaster); display: grid; place-items: center; padding: 40px; position: relative; min-height: 360px; }
.pm__art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, #D3D9E2 2px, transparent 2.5px); background-size: 26px 26px; }
.pm__art svg { position: relative; width: 82%; max-width: 380px; }
.pm__info { padding: 40px 40px 34px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pm__brand { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.pm__name { font-family: var(--f-disp); font-weight: 800; font-size: clamp(32px, 3.2vw, 44px); line-height: .98; text-transform: uppercase; margin: 0; padding-right: 30px; }
.pm__desc { margin: 0; color: var(--ink-2); }
.pm__packs { display: flex; flex-wrap: wrap; gap: 8px; }
.pm__packs button { padding: 10px 16px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 15px; transition: all .2s; }
.pm__packs button.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.pm__buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 6px 0 4px; }
.pm__price { font-family: var(--f-disp); font-weight: 900; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; margin-right: auto; }
.qty--lg { height: 50px; }
.qty--lg button { width: 46px; height: 46px; }
.advice { background: var(--plaster); border-radius: 18px; padding: 18px 20px; position: relative; overflow: hidden; }
.advice::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tape); }
.advice h3, .pm__rel h3 { font-family: var(--f-disp); font-weight: 800; font-size: 22px; text-transform: uppercase; margin: 0 0 10px; }
.advice dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: 15px; }
.advice dt { color: var(--ink-3); }
.advice dd { margin: 0; font-weight: 500; }
.rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.relc { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.relc__art { aspect-ratio: 1; background: var(--plaster); border-radius: 12px; display: grid; place-items: center; cursor: pointer; }
.relc__art svg { width: 78%; }
.relc__name { font-size: 13px; font-weight: 600; line-height: 1.25; cursor: pointer; }
.relc__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.relc__foot b { font-size: 14px; font-variant-numeric: tabular-nums; }
.relc__add { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.relc__add:hover { background: var(--ink); }
.relc__add svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }

@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .clay { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; }
  .cfilter-toggle { display: inline-flex; justify-self: start; }
  .cside { position: static; display: none; padding: 18px; border-radius: 20px; background: var(--plaster); }
  .cside.is-open { display: grid; }
  .pm { padding: 0; align-items: end; }
  .pm__box { grid-template-columns: 1fr; border-radius: 26px 26px 0 0; max-height: 92vh; }
  .pm__art { min-height: 240px; padding: 26px; }
  .pm__art svg { width: 56%; }
  .pm__info { padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pc__body { padding: 12px; gap: 6px; }
  .pc__name { font-size: 14.5px; }
  .pc__packs { display: none; }
  .pc__price { font-size: 21px; }
  .pc__add { width: 40px; height: 40px; }
  .pm__price { font-size: 38px; flex-basis: 100%; }
  .pm__buy .btn { flex: 1; }
  .rel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Калькулятор в карточке товара */
.calc { border-radius: 18px; padding: 18px 20px; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; gap: 12px; }
.calc h3 { font-family: var(--f-disp); font-weight: 800; font-size: 22px; text-transform: uppercase; margin: 0; }
.calc__row { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.calc__f { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.calc__in { display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); }
.calc__in:focus-within { box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px var(--blue-3); }
.calc__in input { width: 80px; border: 0; outline: none; background: transparent; font-family: var(--f-disp); font-weight: 800; font-size: 26px; color: var(--ink); }
.calc__in i { font-style: normal; color: var(--ink-3); font-size: 15px; }
.calc__step { display: inline-flex; align-items: center; height: 46px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); }
.calc__step button { width: 42px; height: 46px; font-size: 20px; color: var(--ink-2); }
.calc__step button:hover { color: var(--ink); }
.calc__step output { min-width: 42px; text-align: center; font-family: var(--f-disp); font-weight: 800; font-size: 22px; color: var(--ink); }
.calc__res { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.calc__res b { color: var(--ink); }
.calc__res .big { display: block; font-family: var(--f-disp); font-weight: 800; font-size: 26px; line-height: 1.1; color: var(--blue); margin-bottom: 2px; }
.calc__add { justify-self: start; height: 46px; }
.pc__cov { font-size: 12.5px; color: var(--ink-3); }

/* Категории лентой-чипами на телефоне */
.cmcats { display: none; }
@media (max-width: 900px) {
  .cmcats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1) 16px; padding: 2px var(--gut) 6px; scroll-snap-type: x proximity; }
  .cmcats::-webkit-scrollbar { display: none; }
  .cmcats button { flex: none; scroll-snap-align: start; padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
  .cmcats button.is-on { background: var(--ink); color: #fff; box-shadow: none; }
  .cside .cgroup:first-child { display: none; }
  .chead { padding: 24px 0 22px; }
  .chead__row { margin: 12px 0; }
  .csearch { height: 50px; }
  .csearch input { font-size: 16px; }
  .clay { padding-bottom: 50px; }
  .cbanner__in { padding-block: 40px; }
  .cbanner__in .btn { width: 100%; }
}
@media (hover: none) {
  .pc:hover { transform: none; box-shadow: inset 0 0 0 1px var(--line); }
  .pc:hover .pc__art svg { transform: none; }
  .pc__add:hover { transform: none; background: var(--blue); }
}

/* колонка товаров не растягивается от ленты чипов */
.cmain, .clay > * { min-width: 0; }

/* Цена по запросу — когда в прайсе нет цены (p: null) */
.pc__price.is-ask { font-family: var(--f-body); font-weight: 600; font-size: 15px; line-height: 1.2; color: var(--ink-2); }
.pm__price.is-ask { font-family: var(--f-body); font-weight: 700; font-size: 24px; color: var(--ink-2); }
.pc__price.is-ask::first-letter, .pm__price.is-ask::first-letter { text-transform: uppercase; }

/* Фото товаров: позиционируем абсолютно — процентная высота внутри grid-ячейки не работает */
.pc__art > img.ph { position: absolute; left: 12%; top: 8%; width: 76%; height: 84%; transition: transform .6s var(--ease); }
.pc:hover .pc__art > img.ph { transform: scale(1.05); }
/* в модалке колонка с фото тянется на всю высоту описания — держим картинку вверху, она «едет» при прокрутке */
.pm__art { align-items: start; }
.pm__art > svg, .pm__art > img.ph { position: sticky; top: 40px; }
.pm__art > img.ph { width: 82%; height: auto; max-height: 420px; }
@media (max-width: 900px) { .pm__art { align-items: center; } .pm__art > svg, .pm__art > img.ph { position: relative; top: 0; } .pm__art > img.ph { width: 62%; max-height: 210px; } }
.relc__art { position: relative; }
.relc__art > img.ph { position: absolute; left: 10%; top: 10%; width: 80%; height: 80%; }
@media (hover: none) { .pc:hover .pc__art > img.ph { transform: none; } }
.pm__note { margin: 0 0 4px; font-size: 13px; color: var(--ink-2); }
.chead__note em { font-style: normal; }

/* ── Подкатегории, «Премиум», прокрутка фильтров (19.11.2026) ── */
.crumbs { flex-wrap: wrap; row-gap: 4px; }
.crumbs__tail { display: contents; }
.ccats__sub { list-style: none; margin: 2px 0 6px 16px; padding: 0 0 0 8px; display: grid; gap: 2px; border-left: 1.5px solid var(--line); }
.ccats__sub button { padding: 8px 12px; font-size: 14.5px; color: var(--ink-2); }
.ccats__sub button.is-on { color: #fff; }
.ccats__grp.is-open > button { background: var(--plaster); }
.pc__hit--prem { background: var(--ink); color: var(--tape); }
.pm__brand .prem { display: inline-block; margin-left: 10px; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--tape); font-style: normal; letter-spacing: .08em; }
/* фильтры длиннее экрана ноутбука — панель прокручивается сама, «Бренд» и «Сбросить» всегда доступны */
@media (min-width: 901px) {
  .cside { max-height: calc(100vh - var(--hdr) - 44px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 8px; }
}
.cmcats[hidden] { display: none; }
@media (max-width: 900px) {
  .cmcats--sub { margin-top: -8px; }
  .cmcats--sub button { padding: 8px 14px; font-size: 13.5px; background: var(--plaster); box-shadow: none; }
}
