.catalog-search{position:relative;z-index:3;margin:-42px auto 0;max-width:1040px;background:#fff;border:1px solid #c7c1d0;border-radius:20px;padding:12px;box-shadow:var(--shadow)}
.compact-search{height:54px;display:flex;align-items:center;gap:10px}
.compact-search>svg{width:23px;height:23px;margin-left:8px;fill:none;stroke:var(--purple);stroke-width:1.8;stroke-linecap:round}
.compact-search>input{height:100%;min-width:0;flex:1;border:0;outline:0;font:650 .95rem Manrope}
.filter-toggle{height:42px;display:flex;align-items:center;gap:7px;padding:0 14px;border:1px solid #aaa3b6;border-radius:13px;background:#fff;color:var(--ink);font:750 .8rem Manrope}
.filter-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.filter-toggle.active,.filter-toggle[aria-expanded=true]{color:var(--purple);border-color:#6d50ca;background:var(--purple-soft)}
.compact-search .search-submit{width:48px;height:42px;min-width:48px;padding:0;display:grid;place-items:center}
.search-submit svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.mobile-search-head,.mobile-search-backdrop{display:none}
.filter-panel{border-top:1px solid var(--line);margin-top:10px;padding:18px 8px 5px}
.filter-panel[hidden]{display:none}
.filter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.filter-field{display:flex;flex-direction:column;gap:6px}
.filter-field label{font-size:.69rem;text-transform:uppercase;letter-spacing:.055em;font-weight:800;color:var(--muted)}
.filter-field input,.filter-field select{height:43px;width:100%;border:1px solid var(--line);border-radius:11px;background:#fff;padding:0 12px;outline:0;font:600 .82rem Manrope;color:var(--ink)}
.filter-field input:focus,.filter-field select:focus{border-color:var(--purple);box-shadow:0 0 0 3px rgba(75,43,189,.09)}
.filter-actions{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:16px}
.filter-actions a{color:var(--muted);font-size:.8rem;font-weight:700;text-decoration:none}
.filter-actions .button{min-height:42px}
.catalog-pagination{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin-top:34px}
.catalog-pagination>a:last-child{justify-self:end}
.catalog-pagination a{min-width:40px;height:40px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-size:.8rem;font-weight:750;text-decoration:none}
.catalog-pagination div{display:flex;gap:7px}
.catalog-pagination a.active{background:var(--purple);border-color:var(--purple);color:#fff}
@media(max-width:900px){.filter-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){.catalog-search{display:none;margin:-24px 14px 0;padding:8px;border-radius:17px}
.catalog-search.mobile-sheet-open{position:fixed;left:12px;right:12px;bottom:88px;z-index:82;margin:0;display:flex;flex-direction:column;max-height:calc(100dvh - 108px);overflow:hidden;padding:14px;border:1px solid #aaa3b6;border-radius:24px;background-clip:padding-box;box-shadow:0 18px 55px rgba(35,20,88,.26),0 0 0 5px rgba(75,43,189,.06);will-change:transform,opacity}
.mobile-search-head{display:none;align-items:center;justify-content:space-between;margin:0 2px 10px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.mobile-sheet-open .mobile-search-head{display:flex}
.mobile-search-head strong{font-size:1rem}
.mobile-search-head button{width:34px;height:34px;border:0;border-radius:11px;background:var(--purple-soft);color:var(--purple);font-size:1.4rem;line-height:1}
.mobile-search-backdrop{position:fixed;display:block;inset:0;z-index:70;border:0;background:transparent}
.mobile-search-backdrop[hidden]{display:none}
.compact-search{height:48px;gap:6px}
.mobile-sheet-open .compact-search{flex:0 0 48px}
.compact-search>svg{width:20px;height:20px}
.compact-search>input{font-size:.82rem}
.filter-toggle{height:40px;padding:0 10px}
.filter-toggle span{display:none}
.compact-search .search-submit{width:40px;height:40px;min-width:40px;padding:0;border-radius:11px}
.mobile-sheet-open .filter-toggle{box-sizing:border-box;flex:0 0 auto;height:40px!important;min-height:40px;max-height:40px}
.mobile-sheet-open .compact-search .search-submit{box-sizing:border-box;flex:0 0 40px;width:40px!important;height:40px!important;min-width:40px;max-width:40px;min-height:40px;max-height:40px;aspect-ratio:1;padding:0;line-height:1}
.mobile-sheet-open .search-submit svg{display:block;width:20px;height:20px}
.filter-panel{padding:14px 5px 5px}
.mobile-sheet-open .filter-panel:not([hidden]){display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden}
.filter-grid{grid-template-columns:1fr}
.mobile-sheet-open .filter-grid{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:1px 5px 8px 1px;scrollbar-color:#9b91ad transparent;scrollbar-width:thin}
.mobile-sheet-open .filter-grid::-webkit-scrollbar{width:5px}
.mobile-sheet-open .filter-grid::-webkit-scrollbar-thumb{border-radius:999px;background:#9b91ad}
.filter-actions{position:sticky;bottom:80px;background:#fff;padding-top:10px}
.mobile-sheet-open .filter-actions{position:static;flex:0 0 auto;margin-top:8px;padding:12px 0 2px;border-top:1px solid #c7c1d0;background:#fff}
.car-grid{display:grid!important;grid-template-columns:1fr!important;overflow:visible!important;scroll-snap-type:none!important;padding:0!important}
.car-card{min-width:0!important;scroll-snap-align:none!important}
.catalog-pagination{grid-template-columns:1fr auto 1fr}
.catalog-pagination div a:not(.active){display:none}
}
