.brand-main {padding-block: 1rem 3rem}
.brand-main h1 {margin-block: 1rem 1.4rem}
.brand-letters {display:flex;gap:.35rem;flex-wrap:wrap;margin-block-end:1.5rem}
.brand-letters a {display:grid;place-items:center;min-width:2.3rem;min-height:2.3rem;border:1px solid #ddd;border-radius:.3rem;background:#fff;color:inherit;text-decoration:none}
.brand-group {margin-block:0 1.7rem;scroll-margin-top:1rem}
.brand-group h2 {font-size:1.25rem;margin-block:0 .5rem}
.brand-grid {list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(145px,45%),1fr));gap:.55rem}
.brand-grid li {min-width:0}
.brand-grid a {min-height:7.4rem;display:grid;grid-template-columns:1fr auto;align-items:center;gap:.55rem;padding:.65rem;border:1px solid #ddd;border-radius:.3rem;background:white;color:inherit;text-decoration:none}
.brand-grid a:hover,.brand-letters a:hover {border-color:#e00000}
.brand-grid img {grid-column:1/-1;width:100%;height:3.4rem;object-fit:contain}
.brand-grid span {min-width:0;overflow-wrap:anywhere;font-weight:600}
.brand-grid small {color:#515151;font-variant-numeric:tabular-nums}
.brand-heading {display:flex;align-items:center;gap:1rem;margin-block:1rem}
.brand-heading h1 {margin:0}
.brand-heading img {width:min(6.5rem,24vw);height:3.3rem;object-fit:contain;padding:.4rem;border:1px solid #ddd;border-radius:.3rem;background:#fff}
.brand-filters {display:flex;flex-wrap:wrap;align-items:end;gap:.65rem;margin-block:1.25rem}
.brand-filters label {display:grid;gap:.3rem;min-width:0;max-width:100%}
.brand-filters select,.brand-filters button {max-width:100%;font:inherit;padding:.55rem .6rem;border:1px solid #aaa;border-radius:.25rem;background:#fff;color:#161616}
.brand-filters button {font-weight:600;cursor:pointer}
.brand-main :is(a,select,button):focus-visible {outline:2px solid #1b56b5;outline-offset:2px}
@media (max-width:640px) {.brand-heading{gap:.7rem}.brand-filters label{max-width:100%;width:100%}.brand-filters select{width:100%}}
