/* Каталог: слева навигация по разделам, фильтры прячутся за кнопку, сортировка - аккуратный выбор (2026-11) */
.catalog-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:32px;align-items:start}
.catalog-nav{display:grid;gap:4px;align-content:start;padding:18px 14px 14px;border:1px solid #dfeae5;border-radius:18px;background:#f8fbf9}
.catalog-nav>h2{margin:0 6px 8px;font-size:18px;line-height:1.2}
.catalog-nav>a{display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px;align-items:center;padding:9px 10px;border-radius:10px;font-size:14px;line-height:1.3;color:#26413f;transition:background .15s,color .15s}
.catalog-nav>a .icon{width:22px;height:22px;color:#397875;stroke-width:1.6}
.catalog-nav>a:hover{background:#e4f3ef;color:#075f60}
.catalog-nav>a[aria-current=page]{background:#0a6264;color:#fff;font-weight:600}
.catalog-nav>a[aria-current=page] .icon{color:#fff}
.catalog-nav>.catalog-nav-all{font-weight:600;margin-bottom:4px;border-bottom:1px solid #e1ece7;border-radius:10px 10px 0 0}
.catalog-nav .sidebar-help{margin-top:12px;padding:14px;border-radius:12px;background:#fff;border:1px solid #e1ece7;display:grid;gap:6px;font-size:13px}
.catalog-nav .sidebar-help p{margin:0;color:var(--muted)}
.catalog-nav .sidebar-help .icon{width:22px;height:22px;color:#397875}
/* фильтры - выдвижная панель на любых экранах */
.catalog-layout>.catalog-sidebar{display:none;position:fixed;inset:0 0 0 auto;width:400px;max-width:100vw;max-height:none;background:#fff;overflow:auto;padding:26px;z-index:60;box-shadow:-24px 0 60px #06292a33;overscroll-behavior:contain;border:0;border-radius:0}
.catalog-layout>.catalog-sidebar.is-open{display:block}
.catalog-sidebar .filter-close{display:flex}
.catalog-sidebar .other-categories,.catalog-sidebar .sidebar-help{display:none}
/* панель инструментов над товарами */
.catalog-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:18px}
.catalog-toolbar>.catalog-result-count{margin:0 auto 0 0}
.catalog-toolbar .filter-open{display:inline-flex;align-items:center;gap:10px;min-height:46px;padding:0 20px;border-radius:999px;border:1px solid #b9d6cc;background:#fff;color:#0a6264;font-size:15px;font-weight:600;cursor:pointer;transition:background .2s,border-color .2s}
.catalog-toolbar .filter-open .icon{width:19px;height:19px}
.catalog-toolbar .filter-open:hover{background:#e4f3ef;border-color:#0a6264}
.filter-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#0a6264;color:#fff;font-size:12px;font-weight:700}
.sort-form{margin:0}
.sort-control{position:relative;display:inline-flex;align-items:center;gap:10px;min-height:46px;padding:0 44px 0 18px;border-radius:999px;border:1px solid #b9d6cc;background:#fff;cursor:pointer;transition:background .2s,border-color .2s}
.sort-control:hover,.sort-control:focus-within{background:#f2faf8;border-color:#0a6264}
.sort-control .sort-label{font-size:13px;color:#5d7873;white-space:nowrap}
.sort-control select{appearance:none;-webkit-appearance:none;border:0;background:transparent;font:inherit;font-size:15px;font-weight:600;color:#173d37;padding:10px 0;cursor:pointer;outline:0}
.sort-control:after{content:"";position:absolute;right:18px;top:50%;width:8px;height:8px;margin-top:-6px;border-right:2px solid #0a6264;border-bottom:2px solid #0a6264;transform:rotate(45deg);pointer-events:none}
@media(max-width:1023px){
.catalog-layout{grid-template-columns:1fr;gap:16px}
.catalog-nav{display:flex;overflow-x:auto;gap:8px;padding:10px;border-radius:14px;-webkit-overflow-scrolling:touch}
.catalog-nav>h2,.catalog-nav .sidebar-help{display:none}
.catalog-nav>a{flex:0 0 auto;white-space:nowrap;border:1px solid #e1ece7;background:#fff}
.catalog-nav>.catalog-nav-all{border-radius:10px;margin:0}
.catalog-toolbar>.catalog-result-count{flex:1 1 100%}
}
@media(max-width:600px){.sort-control .sort-label{display:none}}
/* Верхние плашки разделов скрыты: те же ссылки теперь в левой навигации */
.catalog-category-links{display:none}
.catalog-nav>a.catalog-nav-sub{grid-template-columns:1fr;margin-left:34px;padding:6px 10px;font-size:13px;color:#4d6764;border-left:2px solid #cfe0d9;border-radius:0 8px 8px 0}
.catalog-nav>a.catalog-nav-sub:hover{border-left-color:#0a6264}
@media(max-width:1023px){.catalog-nav>a.catalog-nav-sub{margin-left:0;border-left:1px solid #e1ece7;border-radius:10px}}

/* Каталог: компактные карточки, крупнее фото, аккуратная кнопка сравнения */
.catalog-products .product-card .product-terms{display:none}
.catalog-products .product-card .product-photo{height:235px;min-height:235px}
.catalog-products .product-card .product-body{gap:6px}
.catalog-products .product-card .card-actions{display:flex;align-items:center;gap:10px;margin-top:auto}
.catalog-products .product-card .card-actions .button{flex:1 1 auto;min-width:0}
.catalog-products .product-card .compare-button{flex:0 0 44px;width:44px;height:44px;padding:0;border-radius:50%;justify-content:center;gap:0;border:1px solid #cfe0dc;background:#fff;color:#0b5559}
.catalog-products .product-card .compare-button span{display:none}
.catalog-products .product-card .compare-button:hover,.catalog-products .product-card .compare-button[aria-pressed=true]{background:#0b5559;border-color:#0b5559;color:#fff}
.catalog-products .product-card .product-body{gap:4px;padding-bottom:16px}
.catalog-products .product-card .card-specs>div{padding-top:5px;padding-bottom:5px}
.catalog-products .product-card .card-specs{margin:0 0 10px}
.catalog-products .product-card .card-execution{margin-bottom:4px}
.catalog-products .product-card .product-body h3{margin-bottom:6px}

/* Каталог: список «фото слева, название справа» (по образцу владельца) */
@media(min-width:640px){
.catalog-products .product-card{display:flex;flex-direction:row;align-items:stretch;min-height:0;padding:0}
.catalog-products .product-card .product-photo{flex:0 0 42%;width:42%;height:auto;min-height:190px;max-height:none;padding:8px}
.catalog-products .product-card .product-body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;padding:22px 20px 18px 6px;gap:4px}
.catalog-products .product-card .product-body h3{order:1;margin:0;font-size:clamp(15px,1.2vw,18px);line-height:1.2;font-weight:700;text-transform:uppercase;letter-spacing:-.01em}
.catalog-products .product-card .product-body .eyebrow{order:2;margin:0;font-size:14px;line-height:1.35;letter-spacing:0;text-transform:none;font-weight:400;color:#51666a}
.catalog-products .product-card .card-execution,.catalog-products .product-card .product-article,.catalog-products .product-card .card-spec-note,.catalog-products .product-card .color-picker{display:none}
.catalog-products .product-card .card-actions{order:9;margin-top:auto;padding-top:12px}
}
.catalog-products .product-card .product-body .eyebrow:empty{display:none}
@media(min-width:640px){
.catalog-products{align-items:start}
.catalog-products .product-card .card-actions .button{min-height:38px;padding:0 14px;font-size:13px}
.catalog-products .product-card .compare-button{flex-basis:38px;width:38px;height:38px}
.catalog-products .product-card .card-specs-disclosure{display:block;margin:8px 0 0}
.catalog-products .product-card .card-specs-disclosure>summary{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:13px;color:#0b5559;list-style:none}
.catalog-products .product-card .card-specs-disclosure>summary::-webkit-details-marker{display:none}
.catalog-products .product-card .card-specs-disclosure{order:3}
.catalog-products .product-card .card-specs-disclosure>summary svg{transform:rotate(90deg);width:14px;height:14px}
.catalog-products .product-card .card-specs-disclosure[open]>summary svg{transform:rotate(-90deg)}
.catalog-products .product-card .card-specs{margin:8px 0 0}
}
/* Характеристики в карточках каталога скрыты по просьбе владельца */
.catalog-products .product-card .card-specs-disclosure,.catalog-products .product-card .card-specs{display:none!important}
/* Без счётчика «N моделей»; фильтры и сортировка справа */
.catalog-toolbar>.catalog-result-count{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);flex:none}
.catalog-toolbar{justify-content:flex-end;margin-bottom:14px}
/* Первая карточка начинается на одной линии с боковой навигацией: фильтры и сортировка уходят вверх, в зону заголовка */
@media(min-width:1024px){
.catalog-toolbar{min-height:46px;margin:0 0 14px}
.catalog-layout>.catalog-nav{margin-top:76px}
}
.catalog-products .product-card .compare-button{min-width:38px;min-height:38px;width:38px;height:38px;aspect-ratio:1/1;padding:0;box-sizing:border-box}
.catalog-products .product-card .card-actions .compare-button{min-width:38px;min-height:38px;width:38px;height:38px;flex:0 0 38px;padding:0;aspect-ratio:1/1;border-radius:50%}
@media(max-width:600px){
.catalog-toolbar{flex-wrap:nowrap;gap:8px}
.catalog-toolbar .filter-open{flex:0 0 auto;padding:0 16px;min-height:44px}
.sort-control{flex:1 1 0;min-width:0;min-height:44px;padding:0 32px 0 14px}
.sort-control select{width:100%;min-width:0;text-overflow:ellipsis;font-size:14px}
.sort-control:after{right:14px}
}
@media(min-width:640px) and (max-width:1023px){.catalog-results .product-grid.catalog-products{grid-template-columns:minmax(0,1fr)!important}}
.catalog-products .product-card .card-actions .button{white-space:nowrap}
@media(max-width:380px){
.catalog-toolbar .filter-open{padding:0 12px;gap:6px;font-size:14px}
.catalog-toolbar .filter-open .icon{width:17px;height:17px}
.sort-control{padding:0 28px 0 12px}
.sort-control select{font-size:13.5px}
.sort-control:after{right:12px}
}
.catalog-products .product-card .product-body h3>a{display:block;-webkit-line-clamp:unset;overflow:visible;overflow-wrap:break-word;hyphens:manual}

/* Узкий десктоп 1024–1179: кнопка «Добавить в заявку» не обрезается */
@media(min-width:1024px) and (max-width:1179px){.catalog-products .product-card .card-actions .button{padding:0 6px;font-size:12.5px;gap:0}.catalog-products .product-card .card-actions .button .icon{display:none}}

/* Названия не рвутся посреди слова: размер шрифта и кнопки подстраивается под ширину карточки */
.catalog-products .product-card .product-body h3>a{overflow-wrap:normal;word-break:normal;hyphens:manual}
@supports (width:1cqw){
@media(min-width:640px){
.catalog-products .product-card{container-type:inline-size}
.catalog-products .product-card .product-body h3{font-size:clamp(10.5px,calc((58cqw - 44px) / 13.8),18px)}
.catalog-products .product-card .card-actions .button{font-size:clamp(11px,calc((58cqw - 44px - 46px - 16px) / 9.6),15px);padding-inline:clamp(6px,2cqw,14px)}
}
}

/* 1024–1199px: при боковом меню две колонки дают слишком узкие карточки — одна колонка, названия крупнее */
@media(min-width:1024px) and (max-width:1199px){.catalog-results .product-grid.catalog-products{grid-template-columns:minmax(0,1fr)!important}}

/* Телефон: вся «таблетка» сортировки — это select, нажатие открывает список с первого раза (раньше пустые поля по краям не реагировали) */
@media(max-width:600px){
.sort-control{padding:0!important;display:flex}
.sort-control select{display:block;width:100%!important;max-width:none!important;min-height:44px;height:44px;padding:0 34px 0 14px!important;position:relative;z-index:1;background:transparent}
.sort-control:after{z-index:2}
}
