/* Confined to the enhanced brands catalogue; original no-JS grid is untouched. */
.olymp-brands { color: #252536; margin-bottom: 40px; }
.olymp-brands *, .olymp-brands *::before, .olymp-brands *::after { box-sizing: border-box; }
.olymp-brands [hidden] { display: none !important; }
.olymp-brands .ob-hero { padding: 32px 36px; border: 1px solid #e3e0f0; border-radius: 24px; background: #f6f5fb; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.olymp-brands h1.h1 { margin: 0 0 10px; padding: 0; color: #252536; font-size: 38px; line-height: 1.2; }
.olymp-brands .ob-subtitle { margin: 0; color: #687087; font-size: 16px; line-height: 1.5; }
.olymp-brands .ob-search { position: relative; min-width: 0; }
.olymp-brands .ob-search::before { content: ''; position: absolute; z-index: 1; pointer-events: none; left: 19px; top: 19px; width: 15px; height: 15px; border: 1.7px solid #5555a7; border-radius: 50%; }
.olymp-brands .ob-search::after { content: ''; position: absolute; z-index: 1; pointer-events: none; left: 32px; top: 33px; width: 7px; height: 1.7px; background: #5555a7; transform: rotate(45deg); }
.olymp-brands input.ob-search-input { display: block; width: 100%; height: 56px; padding: 0 52px 0 49px; margin: 0; background: #fff; border: 1px solid #dcd9eb; border-radius: 13px; font: inherit; font-size: 16px; color: #252536; box-shadow: none; }
.olymp-brands .ob-search-input::placeholder { color: #7c8092; opacity: 1; }
.olymp-brands .ob-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.olymp-brands .ob-clear { position: absolute; right: 5px; top: 6px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #5555a7; font: inherit; font-size: 28px; cursor: pointer; }
.olymp-brands .ob-clear:hover { background: #f1eff9; }
.olymp-brands .ob-navigation { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; margin: 26px 0 12px; }
.olymp-brands .ob-alphabet { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.olymp-brands .ob-cyrillic { flex-basis: 100%; }
.olymp-brands .ob-letter { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 42px; margin: 0; padding: 0 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #555569; font: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.olymp-brands .ob-all { min-width: 62px; }
.olymp-brands .ob-letter:hover { background: #efedf8; color: #494993; }
.olymp-brands .ob-letter[aria-pressed="true"] { background: #5555a7; color: #fff; }
.olymp-brands .ob-status { margin: 0 0 24px; color: #687087; font-size: 14px; line-height: 1.5; }
.olymp-brands .ob-section + .ob-section { margin-top: 26px; }
.olymp-brands .ob-group-title { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; font-size: 24px; line-height: 1.3; color: #252536; }
.olymp-brands .ob-group-title::after { content: ''; flex: 1; height: 1px; background: #e8e5f1; }
.olymp-brands .ob-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.olymp-brands .brand_item { width: auto; max-width: none; min-width: 0; float: none; padding: 0; margin: 0; flex: none; }
.olymp-brands .brand_item a { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 12px; height: 160px; padding: 18px 12px 14px; border: 1px solid #e2deee; border-radius: 16px; background: #fff; text-align: center; font-size: 14px; color: #252536; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.olymp-brands .brand_item a:hover { border-color: #9c96cf; box-shadow: 0 5px 16px rgba(67, 55, 127, .08); }
.olymp-brands .ob-logo { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; flex: 1; min-height: 0; }
.olymp-brands .brand_item img, .olymp-brands .brand_item span { position: static; top: auto; transform: none; }
.olymp-brands .ob-logo img { display: block; max-width: 100%; width: auto; height: auto; max-height: 78px; object-fit: contain; }
.olymp-brands .ob-logo span { display: block; color: #252536; font-size: 18px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.olymp-brands .brand_item .ob-name { display: block; color: #626b81; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.olymp-brands .ob-empty { padding: 32px 20px; border: 1px solid #e3e0f0; border-radius: 20px; background: #f6f5fb; text-align: center; }
.olymp-brands .ob-empty h2 { margin: 0 0 8px; font-size: 23px; }
.olymp-brands .ob-empty p { margin: 0 0 20px; color: #687087; }
.olymp-brands .ob-reset { padding: 12px 20px; border: 0; border-radius: 10px; background: #5555a7; color: #fff; font: inherit; cursor: pointer; }
.olymp-brands button:focus-visible, .olymp-brands a:focus-visible, .olymp-brands input:focus-visible { outline: 3px solid #8e89ca; outline-offset: 3px; }
.olymp-brands .ob-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1199px) { .olymp-brands .ob-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .olymp-brands .ob-hero { grid-template-columns: 1fr; gap: 20px; padding: 24px; border-radius: 20px; }
    .olymp-brands h1.h1 { font-size: 32px; }
    .olymp-brands .ob-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 543px) {
    .olymp-brands .ob-hero { padding: 22px 18px; }
    .olymp-brands h1.h1 { font-size: 30px; margin-bottom: 8px; }
    .olymp-brands .ob-subtitle { font-size: 14px; }
    .olymp-brands input.ob-search-input { height: 52px; }
    .olymp-brands .ob-clear { top: 4px; }
    .olymp-brands .ob-search::before { top: 17px; }
    .olymp-brands .ob-search::after { top: 31px; }
    .olymp-brands .ob-navigation { margin-top: 20px; gap: 8px; }
    .olymp-brands .ob-alphabet { gap: 2px; }
    .olymp-brands .ob-letter { min-width: 32px; height: 44px; padding: 0 7px; font-size: 14px; }
    .olymp-brands .ob-all { min-width: 51px; }
    .olymp-brands .ob-status { margin-bottom: 20px; }
    .olymp-brands .ob-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .olymp-brands .brand_item a { height: 140px; padding: 12px 10px; border-radius: 14px; gap: 8px; }
    .olymp-brands .ob-logo img { max-height: 64px; }
    .olymp-brands .ob-logo span { font-size: 16px; }
    .olymp-brands .brand_item .ob-name { font-size: 11px; }
    .olymp-brands .ob-group-title { font-size: 21px; margin-bottom: 12px; }
}
