/* The catalog page (Figma «Catalog», 102:1823, 1800 wide). --c: one design pixel; it stops shrinking
   at 0.8 so text stays readable on laptops, where the grid then takes fewer columns. */
@property --c { syntax: "<length>"; inherits: true; initial-value: 1px; }
.cat { --c: clamp(.8px, 100cqw / 1800, 1.2px); display: block; }
.cat-icon, .cat svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cat button { cursor: pointer; }
.cat-top, .cat-list { max-width: calc(1800 * var(--c)); margin: 0 auto; }

/* ───────────── The header on the light page ─────────────
   Only while it sits at the top: in the «brow» it is the usual light-on-dark header. */
.cat-top { position: relative; }
.cat-top > .header--light { color: var(--color-text-primary); }
.cat-top > .header--light .logo img,
.cat-top > .header--light .chevron,
.cat-top > .header--light .icon-btn > span,
.cat-top > .header--light .burger > span { filter: brightness(0); }
.cat-top > .header--light .phone__hours { color: var(--color-text-secondary); }
.cat-top > .header--light .glass { background: #fff; border-color: rgb(28 27 25 / .06); }
.cat-top > .header--light .nav__link.is-active { background: var(--color-bg-strong); color: #fff; }
.cat-top > .header--light .nav__link.is-active .chevron { filter: none; }
@media (hover: hover) {
  .cat-top > .header--light .nav__link:not(.is-active):hover { background: var(--color-bg-page); }
  .cat-top > .header--light :is(.lang, .icon-btn, .burger):hover { background-color: var(--color-bg-page); }
}

/* ───────────── Top of the page ───────────── */
.cat-hero { display: grid; grid-template-columns: calc(616 * var(--c)) minmax(0, 1fr) auto; align-items: start; height: calc(500 * var(--c)); padding: 0 calc(64 * var(--c)); }
.cat-hero__copy { display: flex; flex-direction: column; gap: calc(32 * var(--c)); margin-top: calc(128 * var(--c)); }
.cat-crumbs { display: flex; gap: calc(8 * var(--c)); color: var(--color-text-secondary); font-size: max(13px, calc(15 * var(--c))); line-height: 1.5; }
.cat-crumbs [aria-current] { color: var(--color-text-primary); }
.cat-crumbs a { transition: color .2s ease; }
@media (hover: hover) { .cat-crumbs a:hover { color: var(--color-text-primary); } }
.cat-title { margin: 0; font: 500 min(140 * var(--c), 1040 * var(--c) / var(--word, 9)) / .9 var(--font-display); letter-spacing: -.05em; }
.cat-lead { width: calc(520 * var(--c)); color: var(--color-text-secondary); font-size: max(14px, calc(18 * var(--c))); line-height: 1.35; }

/* the three devices, standing together: placed in percent of the design's 660 × 420 group, so the
   group can shrink where the window leaves it less room */
/* three devices as white tiles that lap over each other a little (the user's sketch); a ring in the
   page's colour keeps their edges apart without shadows */
.cat-group { position: relative; justify-self: start; width: min(100% - 20px, calc(500 * var(--c))); aspect-ratio: 593 / 440; margin-top: calc(92 * var(--c)); margin-left: calc(100 * var(--c)); pointer-events: none; }
.cat-group img { position: absolute; padding: calc(12 * var(--c)); border-radius: calc(26 * var(--c)); background: #fff; box-shadow: 0 0 0 calc(7 * var(--c)) var(--color-bg-page); object-fit: contain; }
.cat-group__b { z-index: 1; top: 0; left: 0; width: 65%; height: 92%; padding-right: calc(34 * var(--c)) !important; } /* the laps fall on white, not on the device */
.cat-group__a { z-index: 2; top: 12%; left: 59%; width: 41%; height: 47%; }
.cat-group__c { z-index: 3; top: 54%; left: 53%; width: 39%; height: 46%; }

.cat-feature {
  margin-top: calc(200 * var(--c));
  display: flex;
  align-items: center;
  gap: calc(16 * var(--c));
  padding: calc(12 * var(--c)) calc(16 * var(--c)) calc(12 * var(--c)) calc(12 * var(--c));
  border-radius: calc(24 * var(--c));
  background: #fff;
}
.cat-feature__thumb { display: grid; flex: none; place-items: center; width: calc(80 * var(--c)); height: calc(80 * var(--c)); border-radius: calc(16 * var(--c)); background: #fff; }
.cat-feature__thumb img { width: calc(72 * var(--c)); height: calc(72 * var(--c)); object-fit: contain; }
/* long names wrap: the card must not grow into the three devices beside it */
.cat-feature p { display: flex; flex-direction: column; gap: calc(4 * var(--c)); max-width: max(170px, calc(220 * var(--c))); min-width: 0; overflow-wrap: anywhere; }
.cat-feature strong { font-weight: 600; font-size: max(14px, calc(16 * var(--c))); line-height: 1.25; letter-spacing: -.005em; }
.cat-feature p span { color: var(--color-text-secondary); font-size: max(12px, calc(13 * var(--c))); }
.cat-feature__go { display: grid; flex: none; place-items: center; width: calc(48 * var(--c)); height: calc(48 * var(--c)); border-radius: 50%; background: var(--color-bg-accent); transition: rotate .3s cubic-bezier(.23, 1, .32, 1), background-color .2s ease; }
.cat-feature__go svg { width: calc(20 * var(--c)); height: calc(20 * var(--c)); }
@media (hover: hover) { .cat-feature__go:hover { rotate: 45deg; background: var(--color-bg-accent-hover); } }

/* ───────────── Filters and products ───────────── */
.cat-list { display: grid; grid-template-columns: calc(340 * var(--c)) minmax(0, 1fr); align-items: start; gap: calc(28 * var(--c)); padding: calc(16 * var(--c)) calc(64 * var(--c)) calc(96 * var(--c)); scroll-margin-top: 80px; }

.cat-filters { display: flex; flex-direction: column; gap: calc(28 * var(--c)); padding: calc(32 * var(--c)) calc(32 * var(--c)) calc(36 * var(--c)); border-radius: calc(32 * var(--c)); background: #fff; }
.cat-filters h2 { margin: 0; font: 500 calc(30 * var(--c)) / 1.08 var(--font-display); letter-spacing: -.02em; }
/* at the side, the filters stay with you down the whole list; a window too low for them lets them
   scroll by themselves. They step down when the «brow» brings the header out. */
@media (min-width: 1100px) {
  .cat-filters { position: sticky; top: 20px; max-height: calc(100dvh - 40px); overflow-y: auto; scrollbar-width: none; transition: top .45s cubic-bezier(.32, .72, 0, 1), max-height .45s cubic-bezier(.32, .72, 0, 1); }
  .cat-filters::-webkit-scrollbar { display: none; }
  .cat-filters > * { flex: none; }
  html.topbar-open .cat-filters { top: 96px; max-height: calc(100dvh - 116px); }
}
.cat-filters__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cat-clear { color: var(--color-text-secondary); font-size: max(13px, calc(14 * var(--c))); text-decoration: underline; text-underline-offset: 3px; }
.cat-clear[hidden] { display: none; }
.cat-switches { display: flex; flex-direction: column; gap: calc(12 * var(--c)); }
.cat-f { min-width: 0; margin: 0; padding: 0; border: 0; }
/* the shop's many filter groups fold; the number says how much is picked inside */
.cat-groups { display: flex; flex-direction: column; }
.cat-group-f { border-top: 1px solid rgb(28 27 25 / .1); }
.cat-group-f:last-child { border-bottom: 1px solid rgb(28 27 25 / .1); }
.cat-group-f summary { display: flex; align-items: center; gap: 8px; padding: calc(14 * var(--c)) 0; font-size: max(13px, calc(15 * var(--c))); line-height: 1.35; cursor: pointer; list-style: none; }
.cat-group-f summary::-webkit-details-marker { display: none; }
.cat-group-f summary span { flex: 1; }
.cat-group-f summary b:not(:empty) { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--color-bg-accent); font-size: 12px; line-height: 20px; text-align: center; }
.cat-group-f summary::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 3px; border: solid var(--color-text-primary); border-width: 0 1.6px 1.6px 0; rotate: 45deg; translate: 0 -2px; transition: rotate .25s ease, translate .25s ease; }
.cat-group-f[open] summary::after { rotate: -135deg; translate: 0 2px; }
.cat-group-f .cat-chips { padding-bottom: calc(14 * var(--c)); }
.cat-group-f .cat-chip { padding: calc(8 * var(--c)) calc(13 * var(--c)); font-size: max(13px, calc(14 * var(--c))); line-height: 1.4; text-align: left; }
.cat-group-f:not(.is-all) .cat-chip.is-extra[aria-pressed="false"] { display: none; }
.cat-all { margin: calc(-4 * var(--c)) 0 calc(14 * var(--c)); color: var(--color-text-secondary); font-size: max(12px, calc(13 * var(--c))); text-decoration: underline; text-underline-offset: 3px; }
.cat-f legend { margin-bottom: calc(12 * var(--c)); padding: 0; color: var(--color-text-secondary); font-size: max(12px, calc(13 * var(--c))); }
.cat-chips { display: flex; flex-wrap: wrap; gap: calc(8 * var(--c)); }
.cat-chip { display: inline-flex; align-items: center; gap: calc(8 * var(--c)); padding: calc(12 * var(--c)) calc(16 * var(--c)); border-radius: 999px; background: var(--color-bg-page); font-size: max(13px, calc(15 * var(--c))); line-height: 1.5; transition: background-color .2s ease, color .2s ease; }
.cat-chip small, .cat-stock small { color: var(--color-text-secondary); font-size: max(11px, calc(12 * var(--c))); }
.cat-chip[aria-pressed="true"] { background: var(--color-bg-strong); color: var(--color-text-inverse); }
.cat-chip[aria-pressed="true"] small { color: var(--color-text-inverse-muted); }
@media (hover: hover) { .cat-chip[aria-pressed="false"]:hover { background: #e2e2df; } }

/* price: one slider with two handles, the sum above, the two amounts below */
.cat-range__sum { margin-bottom: calc(10 * var(--c)); font-weight: 700; font-size: max(15px, calc(18 * var(--c))); }
.cat-range__track { position: relative; height: 24px; cursor: pointer; touch-action: pan-y; }
.cat-range__track::before, .cat-range__track > i { content: ""; position: absolute; top: 9px; height: 6px; border-radius: 999px; }
.cat-range__track::before { right: 0; left: 0; background: #ededec; }
.cat-range__track > i { left: calc(12px + (100% - 24px) * var(--a, 0)); right: calc(12px + (100% - 24px) * (1 - var(--b, 1))); background: var(--color-bg-accent); }
.cat-range input[type="range"] { appearance: none; -webkit-appearance: none; position: absolute; top: 0; left: 0; width: 100%; height: 24px; margin: 0; background: none; pointer-events: none; }
.cat-range input[type="range"]:focus { outline: 0; }
.cat-range input[type="range"]::-webkit-slider-runnable-track { height: 24px; background: none; }
.cat-range input[type="range"]::-moz-range-track { height: 24px; background: none; }
.cat-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; box-sizing: border-box; width: 24px; height: 24px; border: 2px solid var(--color-bg-strong); border-radius: 50%; background: #fff; cursor: grab; pointer-events: auto; transition: scale .15s cubic-bezier(.23, 1, .32, 1), background-color .2s ease; }
.cat-range input[type="range"]::-moz-range-thumb { box-sizing: border-box; width: 24px; height: 24px; border: 2px solid var(--color-bg-strong); border-radius: 50%; background: #fff; cursor: grab; pointer-events: auto; }
.cat-range input[type="range"]:active::-webkit-slider-thumb { scale: 1.15; background: var(--color-bg-accent); cursor: grabbing; }
.cat-range input[type="range"]:focus-visible::-webkit-slider-thumb { background: var(--color-bg-accent); }
.cat-range input[type="range"]:focus-visible::-moz-range-thumb { background: var(--color-bg-accent); }
.cat-range__fields { display: flex; gap: calc(8 * var(--c)); margin-top: calc(14 * var(--c)); }
.cat-range__fields label { display: flex; flex: 1 1 0; align-items: center; gap: 6px; min-width: 0; padding: calc(10 * var(--c)) calc(14 * var(--c)); border: 1px solid transparent; border-radius: 999px; background: var(--color-bg-page); font-size: max(13px, calc(14 * var(--c))); line-height: 1.5; cursor: text; }
.cat-range__fields label:focus-within { border-color: var(--color-bg-strong); }
.cat-range__fields span { color: var(--color-text-secondary); }
.cat-range__fields input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: none; color: inherit; font: 600 max(13px, calc(14 * var(--c))) / 1.5 var(--font-ui); }
.cat-grid.is-quiet .card { animation: none; }

.cat-stock { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: max(13px, calc(15 * var(--c))); line-height: 1.5; cursor: pointer; }
.cat-stock input { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: calc(56 * var(--c)); height: calc(32 * var(--c)); margin: 0; border-radius: 999px; background: #d1d1cf; cursor: pointer; transition: background-color .25s ease; }
.cat-stock input::after { content: ""; position: absolute; top: calc(3 * var(--c)); left: calc(3 * var(--c)); width: calc(26 * var(--c)); height: calc(26 * var(--c)); border-radius: 50%; background: #fff; transition: translate .25s cubic-bezier(.23, 1, .32, 1); }
.cat-stock input:checked { background: var(--color-bg-strong); }
.cat-stock input:checked::after { translate: calc(24 * var(--c)) 0; }

.cat-results { min-width: 0; }
.cat-bar { display: flex; align-items: center; gap: calc(12 * var(--c)); margin-bottom: calc(20 * var(--c)); }
.cat-count { margin-right: auto; color: var(--color-text-secondary); font-size: max(14px, calc(18 * var(--c))); white-space: nowrap; }
.cat-count strong { margin-right: calc(4 * var(--c)); color: var(--color-text-primary); font-weight: 700; font-size: max(16px, calc(20 * var(--c))); }
.cat-filter-toggle { display: none; }
.cat-search, .cat-sort { height: max(44px, calc(56 * var(--c))); border-radius: 999px; background: #fff; }
.cat-search { display: flex; align-items: center; gap: calc(12 * var(--c)); width: calc(520 * var(--c)); min-width: 0; padding: 0 8px 0 calc(24 * var(--c)); }
.cat-search > svg { flex: none; width: 20px; height: 20px; }
.cat-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: inherit; font: 500 max(14px, calc(15 * var(--c))) var(--font-ui); }
.cat-search input::placeholder { color: var(--color-text-secondary); }
.cat-search:focus-within { outline: 2px solid var(--color-bg-strong); }
.cat-search button { flex: none; padding: calc(11 * var(--c)) calc(22 * var(--c)); border-radius: 999px; background: var(--color-bg-strong); color: var(--color-text-inverse); font: 500 max(12px, calc(13 * var(--c))) / 1.25 var(--font-ui); }
/* the design's pill, with the browser's own list over it */
.cat-sort { position: relative; display: flex; flex: none; align-items: center; gap: calc(12 * var(--c)); padding: 0 calc(22 * var(--c)) 0 calc(24 * var(--c)); font-size: max(13px, calc(15 * var(--c))); white-space: nowrap; }
.cat-sort span { color: var(--color-text-secondary); }
.cat-sort strong { font-weight: 500; }
.cat-sort svg { width: 16px; height: 16px; }
.cat-sort select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font: 500 16px var(--font-ui); }
.cat-sort:focus-within { outline: 2px solid var(--color-bg-strong); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(250 * var(--c)), 1fr)); gap: calc(20 * var(--c)); }
.card { display: flex; flex-direction: column; gap: calc(16 * var(--c)); min-width: 0; padding: calc(10 * var(--c)) calc(10 * var(--c)) calc(14 * var(--c)); border-radius: calc(26 * var(--c)); background: #fff; transition: translate .35s cubic-bezier(.23, 1, .32, 1); }
/* the shop's photos as they are, on their own white; a few have a light grey of their own, lifted to white */
.card__tile { position: relative; display: block; aspect-ratio: 291 / 244; overflow: hidden; border-radius: calc(18 * var(--c)); background: #fff; }
.card__tile img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; transition: scale .6s cubic-bezier(.16, 1, .3, 1); }
img.is-greyed { filter: brightness(1.05); }
.card__info, .card__foot > p { min-width: 0; padding: 0 calc(8 * var(--c)); }
/* this shop's model names are long: two lines for the name and the line under it, and every card keeps room */
.card__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 2.6em; margin: 0; overflow: hidden; overflow-wrap: anywhere; font-weight: 600; font-size: max(14px, calc(16 * var(--c))); line-height: 1.3; letter-spacing: -.005em; }
.card__link { padding-bottom: 1px; background: linear-gradient(var(--color-bg-accent), var(--color-bg-accent)) right bottom / 0 2px no-repeat; transition: background-size .4s cubic-bezier(.23, 1, .32, 1); cursor: pointer; }
.card__link:focus-visible { background-position: left bottom; background-size: 100% 2px; }
@media (hover: hover) { .card__link:hover { background-position: left bottom; background-size: 100% 2px; } }
@media (prefers-reduced-motion: reduce) { .card__link { transition: none; } }
.card__sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-top: calc(4 * var(--c)); overflow: hidden; color: var(--color-text-secondary); font-size: max(12px, calc(13 * var(--c))); line-height: 1.4; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: calc(12 * var(--c)); margin-top: auto; padding-right: calc(2 * var(--c)); }
.card__foot > p { display: flex; flex-direction: column; gap: calc(2 * var(--c)); padding-right: 0; }
.card__foot strong { font-weight: 700; font-size: max(16px, calc(20 * var(--c))); line-height: 1.2; white-space: nowrap; }
.card__foot strong.is-ask { font-size: max(13px, calc(15 * var(--c))); line-height: 1.6; }
.card__foot span { color: var(--color-text-secondary); font-size: max(11px, calc(12 * var(--c))); }
.card__add { position: relative; display: grid; flex: none; place-items: center; width: max(40px, calc(48 * var(--c))); height: max(40px, calc(48 * var(--c))); overflow: hidden; border-radius: 999px; background: var(--color-bg-strong); color: var(--color-text-inverse); transition: width .45s cubic-bezier(.32, .72, 0, 1), background-color .25s ease, color .25s ease, scale .16s cubic-bezier(.23, 1, .32, 1); }
.card__add svg, .card__add span:not(.card__add) { grid-area: 1 / 1; transition: opacity .2s ease, translate .35s cubic-bezier(.23, 1, .32, 1), scale .25s cubic-bezier(.23, 1, .32, 1); }
.card__add svg { width: 20px; height: 20px; }
.card__add .card__check { opacity: 0; scale: .5; }
.card__add > span { position: absolute; top: 50%; left: 50%; opacity: 0; font: 600 max(12px, calc(14 * var(--c))) / 1 var(--font-ui); color: inherit; white-space: nowrap; translate: -50% calc(-50% + 8px); pointer-events: none; }
.card__add:active { scale: .94; }
.card__add.is-added { background: var(--color-bg-accent); color: var(--color-text-primary); }
.card__add.is-added .card__plus { opacity: 0; scale: .5; }
.card__add.is-added .card__check { opacity: 1; scale: 1; }
/* under the pointer (or the keyboard) the «+» opens into a yellow «До кошика» */
@media (hover: hover) and (pointer: fine) {
  button.card__add:hover, button.card__add:focus-visible { width: max(92px, calc(128 * var(--c))); background: var(--color-bg-accent); color: var(--color-text-primary); }
  button.card__add:is(:hover, :focus-visible) svg { opacity: 0; translate: 0 -8px; }
  button.card__add:is(:hover, :focus-visible) > span { opacity: 1; translate: -50% -50%; }
}
/* just added, under a mouse: «Додано», then the tick after the word */
@media (hover: hover) and (pointer: fine) {
  button.card__add.is-added { display: flex; align-items: center; justify-content: center; gap: 6px; width: max(92px, calc(128 * var(--c))); }
  button.card__add.is-added .card__plus { display: none; }
  button.card__add.is-added > span { position: static; order: 0; opacity: 1; translate: none; }
  button.card__add.is-added .card__check { order: 1; flex: none; width: 15px; height: 15px; opacity: 1; scale: 1; translate: none; }
}
@media (prefers-reduced-motion: reduce) { .card__add, .card__add svg, .card__add > span { transition: none !important; } }
.card__add--off { border: 1.5px solid rgb(28 27 25 / .12); background: #fff; }
@media (hover: hover) {
  .card:hover { translate: 0 -4px; }
  .card:not(.is-out):hover .card__tile img { scale: 1.05; }
}
/* out of stock: greyed over a hatched tile */
.card.is-out .card__tile { background: repeating-linear-gradient(135deg, rgb(28 27 25 / .06) 0 3px, transparent 3px 7px), #fff; }
.card.is-out .card__tile img { opacity: .45; mix-blend-mode: multiply; } /* the white lets the hatching through */
.card.is-out .card__name, .card.is-out .card__foot strong { color: var(--color-text-secondary); }
.card.is-out .card__foot span:not(.card__add) { color: #c4362c; font-weight: 600; }

.cat-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 80px 20px; color: var(--color-text-secondary); }
.cat-empty[hidden] { display: none; }
.cat-empty button, .cat-more { padding: calc(18 * var(--c)) calc(32 * var(--c)); border-radius: 999px; background: #fff; color: var(--color-text-primary); font: 600 max(14px, calc(16 * var(--c))) / 1.25 var(--font-ui); }
.cat-more { display: block; margin: calc(40 * var(--c)) auto 0; transition: background-color .2s ease; }
.cat-more[hidden] { display: none; }
@media (hover: hover) { .cat-more:hover { background: var(--color-bg-accent); } }

/* ───────────── The page arrives: nothing is blurred, things rise into place ───────────── */
@media (prefers-reduced-motion: no-preference) {
  .cat-hero__copy > * { animation: cat-rise .9s cubic-bezier(.16, 1, .3, 1) both; }
  .cat-hero__copy > :nth-child(2) { animation-delay: .08s; }
  .cat-hero__copy > :nth-child(3) { animation-delay: .16s; }
  .cat-group img { animation: cat-drop 1.1s cubic-bezier(.16, 1, .3, 1) both; }
  .cat-group__b { animation-delay: .12s !important; }
  .cat-group__a { animation-delay: .24s !important; }
  .cat-group__c { animation-delay: .36s !important; }
  .cat-feature { animation: cat-rise .9s cubic-bezier(.16, 1, .3, 1) .5s both; }
  .cat-grid .card { animation: cat-rise .7s cubic-bezier(.16, 1, .3, 1) calc(var(--n) * 55ms) backwards; }
  @keyframes cat-rise { from { opacity: 0; translate: 0 26px; } }
  @keyframes cat-drop { from { opacity: 0; translate: 0 -44px; } }
}

/* ───────────── Narrower than the design: tablet and phone (no frames; the same parts restacked) ───────────── */
@media (max-width: 1099px) {
  .cat { --c: 1px; }
  .cat-top, .cat-list { max-width: none; }
  .cat-hero { display: flex; flex-direction: column; align-items: stretch; height: auto; padding: 96px 40px 8px; }
  .cat-hero__copy { gap: 16px; margin-top: 0; }
  .cat-title { font-size: min(clamp(52px, 12cqw, 112px), 150cqw / var(--word, 9)); }
  .cat-lead { width: auto; max-width: 520px; font-size: 16px; }
  /* without the empty left part of the design's box: 474 × 362 around the devices */
  .cat-group { align-self: center; width: min(100%, 400px); aspect-ratio: 593 / 440; margin: 20px 0 8px; }
  .cat-group img { padding: 8px; border-radius: 20px; box-shadow: 0 0 0 5px var(--color-bg-page); }
  .cat-group__b { padding-right: 26px !important; }
  .cat-feature { align-self: center; width: 100%; max-width: 420px; margin-top: 12px; border-radius: 24px; }
  .cat-feature p { flex: 1; max-width: none; min-width: 0; }

  .cat-list { display: block; padding: 20px 40px 64px; }
  .cat-bar { flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
  .cat-search { order: -1; flex: 1 1 100%; width: 100%; height: 52px; padding-left: 18px; }
  .cat-filter-toggle { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; background: #fff; font: 600 14px var(--font-ui); }
  .cat-filter-toggle b:not(:empty) { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--color-bg-accent); font-size: 12px; line-height: 20px; }
  .cat-filter-toggle[aria-expanded="true"] { background: var(--color-bg-strong); color: var(--color-text-inverse); }
  .cat-count { order: 1; flex: 1 1 100%; }
  .cat-sort { height: 44px; margin-left: auto; padding: 0 16px; }
  .cat-sort span { display: none; }
  .cat-filters { display: none; gap: 20px; margin-bottom: 16px; padding: 24px 20px; border-radius: 24px; }
  .cat-filters.is-open { display: flex; }
  .cat-filters h2 { font-size: 24px; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .card { gap: 12px; padding: 8px 8px 12px; border-radius: 22px; }
  .card__tile { border-radius: 16px; }
  .card__info, .card__foot > p { padding-left: 6px; }
  .cat-more { margin-top: 24px; padding: 16px 28px; }
}
@media (max-width: 767px) {
  .cat-hero { padding: 88px 20px 0; }
  .cat-list { padding: 16px 12px 48px; }
  .cat-bar { padding: 0 8px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card { border-radius: 20px; }
  .card__add--off { display: none; }
  .card__foot { flex-wrap: wrap; align-items: flex-end; gap: 6px; }
  .card__foot > p { flex: 1 1 auto; }
  .card__add { width: 40px; height: 40px; margin-left: auto; }
}
