/* /brands (pages/brand-filters.htm, partials/brands/brand-list.htm): cards and buttons of login.css */

.lfb.brands_page { width: 100%; max-width: 1080px; margin: 0 auto; padding: 168px 16px 3rem; display: grid; gap: 18px; }   /* the title ~31px under the fixed header, as the other pages */
.lfb-intro { margin-bottom: 4px; }
/* the title «Центр», as the catalog, the journal and the promotions (category-head.css): larger, a thin gold line under it */
.lfb .lfb-intro { display: grid; justify-items: center; gap: 10px; text-align: center; }
.lfb .lfb-intro .lfl-intro__title { margin: 0; font-size: 34px; font-weight: normal; line-height: 1.15; letter-spacing: .02em; color: #111; }
.lfb .lfb-intro .lfl-intro__title::after { content: ""; display: block; width: 40px; height: 1px; margin: 16px auto 0; background: #b08d57; }

/* search + letters */
.lfb-tools { display: grid; gap: 12px; justify-items: center; }
.lfb-search { position: relative; display: block; width: 100%; max-width: 420px; margin: 0; }
.lfb-search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); pointer-events: none; }
.lfb .lfb-search input {
    width: 100%; height: 46px; padding: 0 16px 0 44px; border: 1px solid var(--line); border-radius: 23px; background: var(--soft);
    font-size: 15px; color: var(--ink); outline: none; transition: border-color .2s, background .2s;
}
.lfb .lfb-search input:focus { border-color: var(--ink); background: #fff; }
.lfb-letters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.lfb-letters a {
    display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
    border: 1px solid var(--line); border-radius: 20px; font-size: 13px; color: var(--ink); transition: border-color .15s, background .15s;
}
/* 40px circles at every width (2026-12-01). «Все»: a 60px pill, so on a computer all the letters fit one row; on a phone
   it is as wide as two circles; between the two (a tablet) the letters make two even rows of 11 */
.lfb-letters a:first-child { width: 60px; }
@media (max-width: 1199px) { .lfb-letters { max-width: 530px; margin: 0 auto; } }
@media (max-width: 767px) { .lfb-letters a:first-child { width: 86px; } .lfb-letters { max-width: none; } }
.lfb-letters a:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.lfb-letters a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* sections */
.lfb-section .lfl-card__hint { color: var(--muted); }
.lfb-section .lfl-card__hint:hover { color: var(--ink); text-decoration: none; }
.lfb-section .lfl-card__body { gap: 18px; }
.lfb-section.is-miss { display: none; }

/* brand cards */
.lfb .lfb-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: none; margin: 0; padding: 0; }  /* the theme sizes .brands_page-content-block */
.lfb .lfb-card { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.lfb-card--more { display: none !important; }
.lfb-grid--all .lfb-card--more, .lfb--searching .lfb-card--more { display: flex !important; }
.lfb .lfb-card.is-miss { display: none !important; }
.lfb-card__logo {
    position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; height: auto; overflow: hidden;
    border: 1px solid transparent; border-radius: 10px; background: var(--soft);
    transition: border-color .2s, background .2s, box-shadow .2s;
}
/* the logo fills most of the tile and sits in its middle whatever its own size (margin: auto centres an absolute box) */
.lfb .lfb-card__logo img { position: absolute; inset: 0; margin: auto; width: 86%; height: 78%; max-width: none; max-height: none; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.lfb-card__initial { font-size: 32px; color: var(--gold); }
.lfb .lfb-card:hover .lfb-card__logo { border-color: var(--ink); background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.lfb .lfb-card:hover .lfb-card__logo img { transform: scale(1.04); }
.lfb-card__name { font-size: 13px; text-align: center; line-height: 1.3; }
.lfb-empty, .lfb-nothing { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.lfb-more { justify-self: center; min-width: 220px; }
.lfb--searching .lfb-more { display: none; }

@media (max-width: 991px) { .lfb .lfb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .lfb.brands_page { padding-top: 88px; gap: 14px; }
    .lfb .lfb-intro .lfl-intro__title { font-size: 26px; }
    .lfb-letters { width: 100%; }
    .lfb .lfb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .lfb .lfb-card__logo img { width: 90%; height: 82%; }
    .lfb-card__name { font-size: 12px; }
    .lfb-more { width: 100%; }
}

/* The whole page on a white card, as the articles, the promotions and the product (article.css, promo-page.css,
   product-info.css), 2026-12-02: the site's background is grey #f9f9f9. A layer behind the content, from the title to
   the last brand list; the lists stay framed cards inside it */
.lfb.brands_page { position: relative; z-index: 0; padding-top: 188px; }   /* 20px more: a gap between the header and the card */
.lfb.brands_page::before {
    content: ''; position: absolute; z-index: -1; top: 160px; right: -24px; bottom: calc(3rem - 28px); left: -24px;
    border: 1px solid #e9e6e1; border-radius: 12px; background: #fff; pointer-events: none;
}
@media (max-width: 1131px) { .lfb.brands_page::before { right: 0; left: 0; } }   /* no room beside it: within the page's 16px */
@media (max-width: 767px) {
    .lfb.brands_page { padding: 100px 20px 56px; }   /* the header is 57px: the card 19px under it */
    .lfb.brands_page::before { top: 76px; right: 8px; bottom: 32px; left: 8px; }
}
