/* rvd174.ru — страницы каталога (шаблон «Каталог»): баннер, плитки подкатегорий, фильтр, таблица товаров,
   «Подробнее про применение», популярные товары, текстовые блоки, частые вопросы. Переменные — из main.css. */
@layer components {
  /* ---------- баннер: тёмная часть с H1, картинка, светлая часть со списком (как bnRDcat) ---------- */
  .cat-banner {
    position: relative; display: grid; grid-template-columns: 34fr 28fr 38fr; align-items: center; min-height: 290px;
    margin-bottom: 25px; padding: 30px 40px; overflow: hidden; border-radius: 18px;
    background: #0e1725 url("/rdc/skos.png") no-repeat 0 0;
  }
  .cat-banner::after {   /* светлый скошенный фон справа */
    content: ""; position: absolute; inset: 0 0 0 auto; width: 56%; background: #f8f8f8; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  }
  .cat-banner > * { position: relative; z-index: 1; }
  .cat-banner__h1 { max-width: 300px; color: var(--c-white); font-size: 20px; line-height: 26px; font-weight: 800; text-transform: uppercase; }
  .cat-banner__h1::before, .cat-banner__h1::after { content: ""; display: block; width: 60px; height: 2px; background: #d32c2c; }
  .cat-banner__h1::before { margin-bottom: 18px; }
  .cat-banner__h1::after { margin-top: 18px; }
  .cat-banner__pic { position: absolute; inset: auto 0 0 0; z-index: 2; display: flex; justify-content: center; pointer-events: none; }
  .cat-banner__pic picture { display: contents; }
  .cat-banner__img { width: auto; max-width: min(28%, 300px); height: auto; margin-right: 6%; }   /* width: auto — маленький исходник не растягиваем (на живом он в своём размере) */
  .cat-banner__side { grid-column: 3; padding-left: 30px; z-index: 3; }
  .cat-banner__title { margin-bottom: 26px; color: #2d2d2d; font-size: 18px; line-height: 25px; font-weight: 700; text-transform: uppercase; }
  .cat-banner__list { display: grid; gap: 16px; }
  .cat-banner__list li { display: flex; align-items: center; gap: 14px; color: #3b3b3b; font-size: 14px; line-height: 18px; }
  .cat-banner__list img { flex: none; width: 28px; height: 28px; object-fit: contain; }

  /* ---------- оформление «Станки»: заголовок вместо баннера ---------- */
  .cat-title { margin: 6px 0 20px; font-size: 24px; font-weight: 400; line-height: 1.3; }

  /* ---------- плитки «Каталог» ---------- */
  .cat-tiles { margin-top: 35px; }
  .cat-tiles__title { font-size: 24px; font-weight: 600; text-transform: uppercase; }
  .cat-tiles__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 20px 0 45px; }
  .cat-tiles__link {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; min-height: 78px;
    padding: 6px 6px 8px; border: 2px solid #ccc; border-radius: 10px; color: var(--c-text); font-size: 12px; text-align: center; text-decoration: none; transition: border-color var(--t);
  }
  .cat-tiles__link:hover, .cat-tiles__link[aria-current="page"] { border-color: var(--c-red); }
  .cat-tiles__pic { display: flex; align-items: center; justify-content: center; width: 100%; flex: 1; }
  .cat-tiles__pic picture { display: contents; }
  .cat-tiles__img { width: 100%; max-height: 110px; height: auto; object-fit: contain; }
  .cat-tiles__name { font-size: 13px; line-height: 1.2; }
  .cat-tiles__note-top { align-self: flex-start; padding: 1px 6px; border-radius: 4px; background: var(--c-red); color: var(--c-white); font-size: 11px; font-weight: 600; }
  .cat-tiles__note { color: var(--c-muted); font-size: 11px; line-height: 1.25; }

  /* широкие плитки (БРС и краны): две в ряд, картинка слева, название по центру, серый фон */
  .cat-tiles--wide .cat-tiles__list { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-bottom: 35px; }
  .cat-tiles--wide .cat-tiles__link { flex-direction: row; justify-content: flex-start; min-height: 0; padding: 5px 13px 5px 5px; background: #f5f5f5; font-size: 14px; }
  .cat-tiles--wide .cat-tiles__pic { flex: 0 0 100px; }
  .cat-tiles--wide .cat-tiles__img { width: 100px; max-height: 60px; }
  .cat-tiles--wide .cat-tiles__name { flex: 1; font-size: 14px; }

  /* ---------- фильтр: строки «заголовок — кнопки» на сером фоне ---------- */
  .cfilter { margin-bottom: 18px; }
  .cfilter__group { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; margin: 0 0 2px; padding: 0 10px; border: 0; background: #f2f2f2; }
  .cfilter__title { float: left; padding: 4px 0 0; color: rgb(10 10 10 / .55); font-size: 14px; }   /* float — чтобы legend встал в сетку */
  .cfilter__buttons { grid-column: 2; display: flex; flex-wrap: wrap; gap: 2px; padding: 1px 0; }
  .cfilter__btn { position: relative; cursor: pointer; }
  .cfilter__btn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .cfilter__btn span {
    display: block; padding: 2px 10px; border: 1px solid #000; border-radius: 4px; background: var(--c-white); color: var(--c-text);
    font-size: 12px; line-height: 19px; transition: background-color var(--t), color var(--t);
  }
  .cfilter__btn:hover span { background: #000; color: var(--c-white); }
  .cfilter__btn input:checked + span { border-color: var(--c-red); background: var(--c-red); color: var(--c-white); font-weight: 700; }
  .cfilter__btn input:focus-visible + span { outline: 2px solid var(--c-red); outline-offset: 2px; }
  .cfilter__btn:has(input:disabled) { cursor: not-allowed; }
  .cfilter__btn input:disabled + span { border-color: #ccc; background: var(--c-white); color: #b5b5b5; }
  .cfilter__actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 15px; }
  .cfilter__apply { padding: 6px 16px; background: var(--c-black); font-size: 13px; }
  .cfilter__reset { padding: 6px; border-radius: 4px; background: #f8e7e7; color: var(--c-red); font-size: 13px; text-decoration: none; }
  .cfilter__reset:hover { background: var(--c-red); color: var(--c-white); }

  /* ---------- таблица товаров ---------- */
  .catalog { position: relative; container-type: inline-size; }
  .crumbs + .catalog, .crumbs + .hub-tiles { margin-top: 30px; }   /* без плиток (станки) список идёт сразу за крошками — отступ, чтобы не слипались */   /* таблица ↔ карточки — по ширине самого блока */
  .catalog.is-loading { opacity: .5; pointer-events: none; transition: opacity var(--t); }
  .catalog__count { margin-bottom: 10px; color: var(--c-muted); font-size: 14px; }
  .ctable { width: 100%; border-collapse: collapse; font-size: 14px; }
  .ctable th { padding: 6px 8px; background: #141414; color: #f2f2f2; font-weight: 400; line-height: 1.25; text-align: center; vertical-align: middle; }
  .ctable th:first-child, .ctable td:first-child { text-align: left; }
  .ctable td { padding: 9px 8px; border-bottom: 1px solid #ccc; font-weight: 300; text-align: center; vertical-align: middle; white-space: nowrap; }
  .ctable td.ctable__name { white-space: normal; }
  .ctable__row { position: relative; transition: background-color var(--t); }
  .ctable__row:hover { background: #e9e9e9; }
  .ctable__link { color: inherit; font-weight: 400; text-decoration: none; }
  .ctable__link::after { content: ""; position: absolute; inset: 0; }   /* вся строка — ссылка на товар */
  .ctable__row:hover .ctable__link { text-decoration: underline; }
  .ctable__pic { width: 110px; }
  .ctable__img { display: block; width: 96px; height: 64px; object-fit: contain; }
  .ctable__buy, .ctable__buy-col { width: 1%; }
  .ctable__btn { position: relative; z-index: 1; min-height: 0; padding: 5px 10px 4px; border-radius: 5px; background: var(--c-red); font-size: 12px; font-weight: 500; text-transform: uppercase; }
  .ctable__btn:hover { background: #ff9291; color: #000; }

  /* ---------- плитки товаров (БРС, краны) и карточки станков: вся карточка — ссылка ---------- */
  .plist { display: grid; gap: 18px; }
  .plist__item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; transition: border-color var(--t); }
  .plist__link { color: inherit; text-decoration: none; }
  .plist__link::after { content: ""; position: absolute; inset: 0; }
  .plist__item:hover .plist__link { text-decoration: underline; }
  .plist__pic { display: flex; align-items: center; justify-content: center; width: 100%; }
  .plist__pic picture { display: contents; }
  .plist__img { width: 100%; height: 100%; object-fit: contain; }
  .plist--tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }
  .plist--tiles .plist__item { gap: 8px; padding: 10px 6px; border: 1px solid #ccc; border-radius: 6px; }
  .plist--tiles .plist__item:hover { border-color: var(--c-red); }
  .plist--tiles .plist__pic { height: 56px; }
  .plist--tiles .plist__link { color: #6b6b6b; font-size: 12px; line-height: 1.25; }
  /* карточки станков: в ряду фото, названия, характеристики и цены стоят на одной высоте (subgrid по 4 строкам);
     радиусы концентрические — у карточки 21 = 20 у фото + 1 отступ */
  .plist--cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 18px; margin-bottom: 30px; }
  .plist--cards .plist__item {
    display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-items: start; text-align: left;
    border: 1px solid #ddd; border-radius: 21px; background: var(--c-white); transition: border-color var(--t), box-shadow var(--t);
  }
  .plist--bare .plist__item { grid-row: span 3; }   /* ни у одной карточки нет характеристик — без строки под них: фото, название, цена */
  .plist--cards .plist__item:hover { border-color: var(--c-red); box-shadow: 0 8px 24px rgb(0 0 0 / .08); }
  .plist--cards .plist__pic { aspect-ratio: 1; padding: 1px; overflow: hidden; border-radius: 21px; }
  .plist--cards .plist__img { border-radius: 20px; transition: scale .3s ease; }
  .plist--cards .plist__item:hover .plist__img { scale: 1.04; }
  .plist--cards .plist__item:hover .plist__link { color: var(--c-red); text-decoration: none; }   /* рамки и тени достаточно — без подчёркивания */
  .plist--cards .plist__link { transition: color var(--t); }
  .plist--cards .plist__link { margin: 18px 16px 14px; color: #141414; font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: .01em; text-transform: uppercase; }
  .plist__rows { display: grid; gap: 12px; align-self: stretch; margin: 0 16px; padding: 14px 0; border-top: 1px solid #eee; }
  .plist__row dt { margin-bottom: 3px; color: #8a8a8a; font-size: 12px; line-height: 1.3; }
  .plist__row dd { margin: 0; color: #141414; font-size: 14px; line-height: 1.4; }
  .plist__row dd span { display: block; }
  .plist__price { align-self: end; margin: 0 16px; padding: 12px 0 16px; border-top: 1px solid #eee; color: var(--c-red); font-size: 20px; font-weight: 700; }
  .plist__ask { color: var(--c-muted); font-size: 15px; font-weight: 500; }

  .catalog__nav { display: grid; justify-items: center; gap: 18px; margin: 40px 0 10px; }
  .catalog__nav:empty { display: none; }
  /* SEO-страницы фильтра (/категория/gates/): свой текст под товарами, ссылки на подборки категории, пометка предпросмотра */
  .catalog__seo-text { margin-top: 40px; }
  .catalog__sets { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--c-line); font-size: 14px; }
  .catalog__sets-title { margin: 0; color: var(--c-muted); }
  .catalog__sets-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
  .catalog__set { display: block; padding: 6px 14px; border: 1px solid var(--c-line); border-radius: var(--radius-s); }
  a.catalog__set:hover { border-color: var(--c-red); }
  .catalog__set.is-current { border-color: var(--c-red); color: var(--c-red); }
  .catalog__preview { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius-s); background: #fff8e1; font-size: 14px; }
  .catalog__more { min-width: 270px; padding: 18px 20px; border-radius: 15px; background: rgb(183 21 19 / .1); color: var(--c-red); font-size: 15px; font-weight: 500; text-transform: uppercase; }
  .catalog__more:hover { background: var(--c-red); color: var(--c-white); }

  /* ---------- «Подробнее про применение» ---------- */
  .cat-more { margin-top: 60px; }
  .cat-more__title { font-size: 24px; font-weight: 600; }
  .cat-more__list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
  .cat-more__link { display: block; padding: 10px 16px; border-radius: 6px; background: #f4f4f4; color: #111; font-size: 15px; text-decoration: none; transition: background-color var(--t), color var(--t); }
  .cat-more__link:hover { background: var(--c-red); color: var(--c-white); }

  /* ---------- популярные товары: лента со стрелками ---------- */
  .popular { position: relative; margin-top: 60px; }
  .popular__title { margin-bottom: 29px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; }
  .popular__list { display: flex; gap: 10px; overflow: auto hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 2px; }
  .popular__list::-webkit-scrollbar { display: none; }
  .popular__item { flex: 0 0 calc((100% - 40px) / 5); min-width: 160px; scroll-snap-align: start; }
  .popular__link { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 4px 4px 16px; border: 1px solid #ccc; border-radius: 10px; color: var(--c-text); font-size: 14px; text-align: center; text-decoration: none; transition: border-color var(--t); }
  .popular__link:hover { border-color: var(--c-red); }
  .popular__pic { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 8px; background: #f5f5f5; overflow: hidden; }
  .popular__pic picture { display: contents; }
  .popular__img { width: 100%; height: 100%; object-fit: contain; }
  .popular__nav { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
  .popular__btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f2f2f2; color: var(--c-text); transition: background-color var(--t); }
  .popular__btn:hover { background: var(--c-red); color: var(--c-white); }
  .popular__btn:disabled { opacity: .4; pointer-events: none; }
  .popular__btn .icon { width: 22px; height: 22px; }
  .popular__btn--prev .icon { rotate: 90deg; } .popular__btn--next .icon { rotate: -90deg; }

  /* ---------- текстовые блоки: серые карточки «картинка + текст» ---------- */
  .cat-about { display: grid; gap: 24px; margin-top: 70px; color: #333; }
  .cat-about__title { font-size: clamp(22px, 2.3vw, 32px); font-weight: 600; line-height: 1.3; }
  .cat-text { display: grid; grid-template-columns: 2fr 3fr; overflow: hidden; border-radius: 12px; background: #f6f6f6; }
  .cat-text--reverse { grid-template-columns: 3fr 2fr; }
  .cat-text--reverse .cat-text__pic { order: 2; }
  .cat-text__pic { min-height: 100%; }
  .cat-text__pic picture { display: contents; }
  .cat-text__img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .cat-text--reverse .cat-text__img { object-fit: scale-down; padding: 30px; }   /* scale-down: вписать, но не увеличивать больше размера файла */
  .cat-text__pic--clear .cat-text__img { object-fit: scale-down; padding: 20px; }
  .cat-text__body { padding: 30px 40px; align-self: center; }
  .cat-text--wide { grid-template-columns: 3fr 2fr; }
  .cat-icons { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 0 40px 35px; }
  .cat-icons__link { display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; padding: 16px 10px; border-radius: 8px; background: var(--c-white); color: #333; font-size: 12px; line-height: 1.25; text-align: center; text-decoration: none; transition: color var(--t); }
  .cat-icons__link:hover { color: var(--c-red); }
  .cat-icons__link img { width: 44px; height: 44px; object-fit: contain; }

  /* тексты (поля и описание): заголовки красные, списки с красными «точками» */
  .cat-about .prose, .cat-content, .faq__a { font-size: 15px; line-height: 1.5; }
  .cat-about .prose h3, .cat-content h2 { margin-bottom: 20px; color: #b32015; font-size: 22px; font-weight: 400; line-height: 1.3; }
  .cat-about .prose > * + h3 { margin-top: 1.4em; }
  .cat-content h3 { margin: 1.2em 0 10px; color: #333; font-size: 16px; font-weight: 700; }
  .cat-content h2:not(:first-child) { margin-top: 1.6em; }
  .cat-about .prose ul, .cat-content ul { padding: 0; list-style: none; }
  .cat-about .prose li, .cat-content li { position: relative; margin-bottom: 12px; padding-left: 28px; }
  .cat-about .prose li::before, .cat-content li::before {
    content: ""; position: absolute; left: 0; top: .35em; width: 12px; height: 12px;
    background: radial-gradient(circle, var(--c-red) 2.2px, transparent 2.8px) 0 0 / 6px 6px;
  }
  /* нумерованный список — только цифры (на старом сайте у пунктов были и цифры, и красные точки) */
  .cat-about .prose ol, .cat-content ol { padding-left: 1.6em; }
  .cat-about .prose ol > li, .cat-content ol > li { padding-left: 4px; }
  .cat-about .prose ol > li::before, .cat-content ol > li::before { display: none; }
  .cat-about .btn { margin-top: 10px; padding: 12px 24px; border-radius: 6px; background: #b32015; font-size: 15px; font-weight: 700; }
  .cat-content { max-width: 900px; margin-top: 50px; color: #333; }
  .cat-content table { display: block; width: max-content; max-width: 100%; margin: 0 0 10px; overflow-x: auto; border-collapse: collapse; }   /* широкая таблица листается сама, страница — нет */
  .cat-content td, .cat-content th { padding: 10px; border: 1px solid #ccc; }
  /* обычный текст раздела (без модификаторов --text/--lg/--spiral): отступы как на старом (замер 10.11.2026: абзац и список
     снизу 20, пункт 16, у заголовков сверху 0 — промежуток даёт блок перед ними). Раньше отступы подменяли пустые абзацы
     <p>&nbsp;</p> в текстах, их убирает чистка при переносе (tools/clean_html.php). Заголовок сразу за таблицей — 20 сверху */
  .cat-content:not(.cat-content--text, .cat-content--lg, .cat-content--spiral) > :is(h2, h3) { margin-top: 0; }
  .cat-content:not(.cat-content--text, .cat-content--lg, .cat-content--spiral) > :is(p, ul, ol) { margin-bottom: 20px; }   /* только сам текст, не абзацы в ячейках таблиц */
  .cat-content:not(.cat-content--text, .cat-content--lg, .cat-content--spiral) > :is(ul, ol) > li { margin-bottom: 16px; }
  .cat-content:not(.cat-content--text, .cat-content--lg, .cat-content--spiral) > table + :is(h2, h3) { margin-top: 20px; }
  .cat-content:not(.cat-content--text, .cat-content--lg, .cat-content--spiral) > :last-child { margin-bottom: 0; }
  /* оформление «Станки» и «Витрина»: текст как на старых текстовых страницах — чёрные заголовки, обычные маркеры */
  .cat-content--text h2 { margin-bottom: 16px; color: #141414; font-size: 24px; font-weight: 600; }
  .cat-content--text ul { padding-left: 1.3em; list-style: disc; }
  .cat-content--text li { margin-bottom: 8px; padding-left: 0; }
  .cat-content--text li::before { display: none; }
  /* витрина: крупный текст старого «rep-txt» (18/25, заголовки 30 и 24 жирные). Отступ под заголовком 16 px вместо 40 —
     на старом заголовок стоял дальше от своего текста, чем от предыдущего */
  .cat-content--lg { max-width: none; margin-top: 60px; color: #141414; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.4; }
  .cat-content--lg p { margin-bottom: 15px; }
  .cat-content--lg h2 { margin: 1.6em 0 16px; font-size: clamp(22px, 2.1vw, 30px); font-weight: 700; line-height: 1.3; }
  .cat-content--lg h3 { margin: 1.4em 0 12px; color: #141414; font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; line-height: 1.3; }
  .cat-content--lg li { margin: 0 0 12px; }
  .cat-content--lg table { margin: 20px 0 30px; font-size: 16px; }
  .cat-content--lg td, .cat-content--lg th { padding: 9px; }
  .cat-content__h1 { margin-bottom: 20px; font-size: clamp(24px, 2.25vw, 32px); font-weight: 700; line-height: 1.4; }
  .cat-content__h1 + h2, .cat-content--lg > h2:first-child { margin-top: 0; }

  /* ---------- витрина разделов («Комплектующие», «Каталог рукавов») ---------- */
  .hub-title { margin: 20px 0 40px; font-size: clamp(26px, 4.2vw, 60px); font-weight: 600; line-height: 1.1; text-align: center; text-wrap: balance; }
  .hub-tiles__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px 10px; }
  .hub-tiles__link { display: flex; flex-direction: column; gap: 10px; height: 100%; color: #000; text-decoration: none; }
  .hub-tiles__pic {
    display: flex; align-items: center; justify-content: center; aspect-ratio: 246 / 185; overflow: hidden;
    border-radius: 50px; background: #f2f2f2; box-shadow: inset 0 15px 20px rgb(0 0 0 / .1); transition: box-shadow var(--t);
  }
  .hub-tiles__pic picture { display: contents; }
  .hub-tiles__img { width: 70%; height: 80%; object-fit: contain; transition: scale .3s ease; }
  .hub-tiles__name {
    display: flex; flex: 1; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 500; line-height: 1.2; text-align: center; text-transform: uppercase; overflow-wrap: anywhere; transition: color var(--t);
  }
  .hub-tiles__link:hover .hub-tiles__name { color: var(--c-red); }
  .hub-tiles__link:hover .hub-tiles__img { scale: 1.04; }
  .hub-tiles__link:focus-visible { outline: 2px solid var(--c-red); outline-offset: 4px; border-radius: 50px; }
  /* «Каталог рукавов»: фото заполняет плитку целиком, стоит на нижнем крае (как на старом) */
  .hub-tiles--photos .hub-tiles__pic { align-items: flex-end; aspect-ratio: 246 / 225; }
  .hub-tiles--photos .hub-tiles__img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
  /* картинка целиком по центру, с полями: вертикальная или у страницы tiles_fit = fit (сниппет ставит --fit) */
  .hub-tiles--photos .hub-tiles__pic--fit { align-items: center; padding: 18px 22px; }
  .hub-tiles--photos .hub-tiles__pic--fit .hub-tiles__img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
  /* мало плиток («Услуги» — три): растягиваются на всю ширину без пустой колонки, высота фото не больше 225 px — как на старом */
  @media (min-width: 761px) {
    .hub-tiles--photos .hub-tiles__list { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .hub-tiles--photos .hub-tiles__pic { max-height: 225px; }
  }
  .hub-tiles--items + .popular { margin-top: 70px; }

  /* ---------- частые вопросы ---------- */
  .faq { max-width: 900px; margin-top: 50px; }
  .faq__title { margin-bottom: 24px; color: #111; font-size: 22px; font-weight: 400; }
  .faq__item + .faq__item { margin-top: 8px; }
  .faq__q {
    position: relative; padding: 15px 44px 15px 15px; border-radius: 10px; background: #f3f3f3; color: #333; font-weight: 700; cursor: pointer; list-style: none;
  }
  .faq__q::-webkit-details-marker { display: none; }
  .faq__q::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; font-size: 20px; font-weight: 400; transition: rotate var(--t); }
  .faq__item[open] .faq__q::after { rotate: 45deg; }
  .faq__a { padding: 15px 15px 5px; }

  /* ---------- планшет и телефон ---------- */
  @media (max-width: 1199px) {
    .cat-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .popular__item { flex-basis: calc((100% - 30px) / 4); }
  }
  @media (max-width: 959px) {
    .cat-banner { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 20px; min-height: 0; }
    .cat-banner::after { display: none; }
    .cat-banner__h1 { max-width: none; }
    .cat-banner__h1::before { display: none; }
    .cat-banner__pic { inset: auto 0 0 auto; width: 50%; justify-content: flex-end; z-index: 0; opacity: .9; }
    .cat-banner__img { max-width: 100%; margin: 0; }
    .cat-banner__side { grid-column: 1; padding: 0; max-width: 70%; }
    .cat-banner__title { margin-bottom: 18px; color: var(--c-white); text-transform: none; }
    .cat-banner__list li { color: var(--c-white); }
    .cat-banner__list img { width: 24px; height: 24px; padding: 2px; border-radius: 4px; background: #f8f8f8; }
    .cat-text, .cat-text--reverse, .cat-text--wide { grid-template-columns: minmax(0, 1fr); }
    .cat-text--reverse .cat-text__pic { order: 0; }
    .cat-text__pic { max-height: 320px; }
    .cat-text__body { padding: 24px 20px; }
    .cat-icons { padding: 0 20px 24px; }
    .popular__item { flex-basis: calc((100% - 20px) / 3); }
  }
  /* таблица → карточки «параметр — значение», когда блок каталога уже 900 px: не сжимается и не переносит значения по словам */
  @container (max-width: 899px) {
    .ctable, .ctable tbody, .ctable tr, .ctable td { display: block; }
    .ctable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .ctable tr.ctable__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 14px; padding: 12px 4px; border-bottom: 1px solid #ccc; }
    .ctable td { padding: 0; border: 0; text-align: left; font-size: 13px; white-space: normal; }
    .ctable td[data-label]::before { content: attr(data-label); display: block; color: var(--c-muted); font-size: 11px; }
    .ctable td.ctable__name { grid-column: 1 / -1; font-size: 15px; }
    .ctable td.ctable__name::before, .ctable td.ctable__pic::before { display: none; }
    .ctable td.ctable__pic { grid-row: span 2; width: auto; }
    .ctable__buy { grid-column: 1 / -1; width: auto; margin-top: 6px; }
    .ctable__btn { width: 100%; max-width: 320px; padding: 9px; }
  }
  @media (max-width: 760px) {
    .cfilter__group { grid-template-columns: minmax(0, 1fr); padding: 6px 10px 8px; }
    .cfilter__title { width: 100%; padding: 0 0 4px; }
    .cfilter__buttons { grid-column: 1; }
    .plist--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .plist--cards .plist__item, .plist--cards .plist__pic { border-radius: 15px; }
    .plist--cards .plist__img { border-radius: 14px; }
    .plist--cards .plist__link { margin: 12px 10px 10px; font-size: 13px; }
    .plist__rows { gap: 8px; margin: 0 10px; padding: 10px 0; }
    .plist__row dt { font-size: 11px; }
    .plist__row dd { font-size: 12px; }
    .plist__price { margin: 0 10px; padding: 10px 0 12px; font-size: 17px; }
    .cat-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .popular__item { flex-basis: calc((100% - 10px) / 2); }
    .cat-more { margin-top: 40px; }
    .hub-title { margin-bottom: 24px; }
    .hub-tiles__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
    .hub-tiles__pic, .hub-tiles__link:focus-visible { border-radius: 30px; }
    .hub-tiles__name { font-size: 13px; }
    .cat-content--lg { margin-top: 40px; }
  }
}
