/*
    Шапка страницы производителя (chunks/brand-header.blade.php).

    Свой файл, а не правка style.{hash}.css: тот собирается отдельным проектом вёрстки и
    затирается при каждой сборке. Стили держим нейтральными — под общий вид каталога.
*/
.brand-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 0 0 20px;
    padding: 16px 20px;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    background: #fff;
}

.brand-header__logo {
    flex: 0 0 auto;
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-header__logo img {
    max-width: 100%;
    max-height: 90px;
    height: auto;
    object-fit: contain;
}

.brand-header__text {
    flex: 1 1 auto;
    min-width: 0;
}

.brand-header__country {
    font-size: 13px;
    color: #7a8794;
    margin-bottom: 6px;
}

.brand-header__descr {
    font-size: 14px;
    line-height: 1.55;
    color: #2b3440;
}

.brand-header__descr > *:first-child { margin-top: 0; }
.brand-header__descr > *:last-child  { margin-bottom: 0; }

@media (max-width: 767px) {
    .brand-header {
        flex-direction: column;
        gap: 12px;
        padding: 14px 16px;
    }

    .brand-header__logo {
        width: auto;
        justify-content: flex-start;
    }

    .brand-header__logo img { max-height: 64px; }
}

/* ── Плитка производителей (templates/catalog/brands.blade.php) ─────────────── */

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.brand-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 18px 16px;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.brand-tile:hover {
    border-color: #cfd8e0;
    box-shadow: 0 6px 18px rgba(23, 43, 77, .08);
    transform: translateY(-2px);
}

/* Фиксированная высота логотипа: у брендов картинки разных пропорций, без неё плитки
   получаются разной высоты и сетка «рвётся» */
.brand-tile__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 72px;
}

.brand-tile__logo img {
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

.brand-tile__stub {
    font-size: 15px;
    font-weight: 600;
    color: #9aa7b4;
    text-align: center;
    line-height: 1.25;
}

.brand-tile__name {
    font-size: 14px;
    font-weight: 600;
    color: #2b3440;
    text-align: center;
}

.brand-tile__count {
    font-size: 12px;
    color: #7a8794;
}

@media (max-width: 575px) {
    .brands-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
    .brand-tile { padding: 14px 12px; }
    .brand-tile__logo { height: 56px; }
    .brand-tile__logo img { max-height: 56px; }
}

/* Блок брендов занимает всю ширину сетки .main_grid (12 колонок) */
.brands-section { grid-column: 1 / -1; }
