/* Каталог — дополняет home.css */
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.catalog-nav a[aria-current=page]{background:var(--surface);color:var(--ink)}
.catalog{padding-block:44px 72px}
[hidden]{display:none!important}

.catalog-top{display:grid;grid-template-columns:1fr auto;gap:40px;align-items:end;margin-bottom:36px}
.catalog h1{font-size:clamp(36px,4.4vw,56px);letter-spacing:-.035em;line-height:1.05;margin-bottom:14px}
.catalog-lead{color:var(--muted);max-width:34em}
.catalog-help{display:grid;gap:2px;background:var(--t-blue);padding:22px 26px;border-radius:var(--cut) 28px var(--cut) 28px;min-width:280px}
.catalog-help p{font-size:14px;color:#3d4554;margin-bottom:6px}
.catalog-help a{font-size:20px;font-weight:600;letter-spacing:-.01em}
.catalog-help a:hover{color:var(--blue)}
.catalog-help span{font-size:14px;color:#3d4554;margin-top:6px}

.catalog-controls{display:grid;grid-template-columns:1fr 240px;gap:12px;margin-bottom:16px}
.search{position:relative;display:block}
.search svg{position:absolute;left:18px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.catalog-controls input,.catalog-controls select{width:100%;min-height:54px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font:inherit;font-size:16px;color:var(--ink);transition:border-color .15s,background-color .15s}
.catalog-controls input{padding:0 20px 0 48px}
.catalog-controls select{padding:0 44px 0 20px;appearance:none;background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%235e6675' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center/20px no-repeat;cursor:pointer}
.catalog-controls input:focus,.catalog-controls select:focus{outline:none;border-color:var(--blue);background-color:#fff;box-shadow:0 0 0 3px var(--t-blue)}

.filter-row{display:flex;flex-wrap:wrap;gap:10px 24px;align-items:center;margin-bottom:24px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
#brand-filters{padding-right:24px;border-right:1px solid var(--line)}
.chip-btn,.catalog-group{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:15px;font-weight:500;transition:background-color .15s,border-color .15s}
.chip-btn:hover,.catalog-group:hover{border-color:#c9d1db;background:var(--surface)}
.chip-btn[aria-pressed=true],.catalog-group[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}
.brand-chip i{width:12px;height:12px;border-radius:2px 6px 2px 6px}
.b-blue{background:var(--blue)}.b-lime{background:var(--lime)}.b-yellow{background:var(--yellow)}
.brand-chip[aria-pressed=true] i{box-shadow:0 0 0 2px #fff}

.result-count{font-size:15px;color:var(--muted);margin-bottom:16px}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.product-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:22px;overflow:hidden;background:#fff;overflow-wrap:anywhere}
.product-photo{height:200px;display:grid;place-items:center;background:#fff;color:var(--muted);font-size:14px;border-bottom:1px solid var(--line);padding:16px}
.product-photo img{width:100%;height:100%;object-fit:contain}
.product-content{display:flex;flex-direction:column;flex:1;padding:18px 18px 18px}
.product-meta{font-size:13px;color:var(--muted);margin-bottom:6px}
.product-content h2{font-size:17px;font-weight:600;line-height:1.3;letter-spacing:-.01em;margin-bottom:12px}
.product-price{font-size:20px;font-weight:700;letter-spacing:-.015em;margin-top:auto}
.product-content details{margin-top:8px}
.product-content summary{cursor:pointer;font-size:14px;color:var(--blue);width:fit-content}
.product-description{white-space:pre-line;font-size:14px;line-height:1.5;color:var(--muted);margin-top:8px}
.product-actions{display:flex;gap:8px;margin-top:16px}
.product-actions .btn{min-height:46px;font-size:15px;padding:0 18px}
.product-request{flex:1}
.product-call{flex:none;width:46px;padding:0!important}

.more-row{display:flex;justify-content:center;margin-top:28px}
.more-row .btn{min-width:220px}

.catalog-cta{display:grid;grid-template-columns:1.3fr 1fr;gap:32px;align-items:center;margin-top:64px;background:var(--surface);border-radius:var(--cut) 40px var(--cut) 40px;padding:44px}
.catalog-cta h2{font-size:clamp(26px,2.8vw,36px);margin-bottom:10px}
.catalog-cta p{color:var(--muted);max-width:32em}
.cta-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end}
.catalog-cta .btn-soft{background:#fff}

@media (max-width:1020px){
  .catalog-page .header-call{margin-left:auto}
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .catalog-top{grid-template-columns:1fr;gap:24px}
  .catalog-help{min-width:0;grid-template-columns:auto auto;justify-content:start;column-gap:28px}
  .catalog-help p,.catalog-help span{grid-column:1/-1}
  .catalog-cta{grid-template-columns:1fr}
  .cta-actions{justify-content:flex-start}
}
@media (max-width:760px){
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .catalog-controls{grid-template-columns:1fr}
  #brand-filters{padding-right:0;border-right:0;width:100%}
}
@media (max-width:640px){
  .catalog-page .header-call{display:block;margin-left:auto;padding:9px 14px;font-size:14px}
  .catalog-page .identity small{display:none}
  .catalog{padding-block:24px 48px}
  .catalog-top{margin-bottom:24px}
  .catalog h1{font-size:36px}
  .catalog-help{grid-template-columns:1fr;padding:18px 20px}
  .catalog-help a{font-size:19px}
  .filter-row{flex-wrap:nowrap;flex-direction:column;align-items:stretch;gap:8px;margin-inline:-16px}
  .chips{flex-wrap:nowrap;overflow-x:auto;padding:2px 16px;scrollbar-width:none}
  .chips::-webkit-scrollbar{display:none}
  .chip-btn,.catalog-group{flex:none;min-height:40px;font-size:14px;padding:0 14px}
  .product-photo{height:150px;padding:12px}
  .product-content{padding:14px}
  .product-meta{font-size:12px}
  .product-content h2{font-size:15px}
  .product-price{font-size:17px}
  .product-actions{flex-direction:column}
  .product-actions .btn{min-height:44px;font-size:14px;padding:0 12px}
  .product-call{width:auto!important;flex:1}
  .catalog-cta{padding:28px 22px;margin-top:48px}
  .cta-actions .btn{flex:1 1 100%}
}
@media (max-width:360px){.product-grid{grid-template-columns:1fr}}
@media (max-width:640px){.catalog-help,.product-call{display:none}}
/* v6: фото любого размера помещаются в рамку */
.product-photo{position:relative;display:grid;place-items:center;overflow:hidden;padding:0}
.product-photo img{position:absolute;inset:16px;width:calc(100% - 32px);height:calc(100% - 32px);max-width:none;object-fit:contain}
@media (max-width:640px){.product-photo img{inset:10px;width:calc(100% - 20px);height:calc(100% - 20px)}}
