/* =========================================================
   BRANDS DIRECTORY
   ========================================================= */

   .brands-page {
    padding: 0 0 80px;
}

.brands-page__shell {
    width: calc(100% - 64px);
    max-width: 1480px;
    margin: 0 auto;
}


/* BREADCRUMB */

.brands-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;

    min-height: 48px;

    font-size: 13px;
    color: #777169;
}

.brands-page__breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.brands-page__breadcrumb a:hover {
    color: #cf351f;
}


/* HEADER */

.brands-page__header {
    max-width: 760px;
    padding: 34px 0 38px;
}

.brands-page__eyebrow {
    margin: 0 0 8px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;

    color: #777169;
}

.brands-page__header h1 {
    margin: 0;

    font-size: clamp(40px, 4.5vw, 64px);
    line-height: 1.05;
}

.brands-page__intro {
    margin: 16px 0 0;

    font-size: 16px;
    line-height: 1.6;

    color: #5f5a54;
}


/* A-Z */

.brands-index {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    padding: 20px 0 28px;

    border-top: 1px solid #ddd8cf;
    border-bottom: 1px solid #ddd8cf;
}

.brands-index a,
.brands-index span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}

.brands-index a {
    border: 1px solid #d9d4cc;

    color: #25221f;
}

.brands-index a:hover {
    border-color: #cf351f;

    background: #cf351f;
    color: #fff;
}

.brands-index span {
    color: #c3beb6;
}


/* DIRECTORY */

.brands-directory {
    padding-top: 18px;
}

.brands-group {
    display: grid;

    grid-template-columns:
        90px
        minmax(0, 1fr);

    gap: 30px;

    padding: 32px 0;

    border-bottom: 1px solid #ddd8cf;

    scroll-margin-top: 120px;
}

.brands-group__letter {
    font-size: 42px;
    line-height: 1;
    font-weight: 700;

    color: #cf351f;
}

.brands-group__list {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 0 32px;
}

.brands-group__brand {
    display: block;

    padding: 11px 0;

    border-bottom: 1px solid #ece7df;

    color: #25221f;

    font-size: 15px;
    line-height: 1.4;

    text-decoration: none;
}

.brands-group__brand:hover {
    color: #cf351f;
}


/* TABLET */

@media (max-width: 1050px) {

    .brands-page__shell {
        width: calc(100% - 40px);
    }

    .brands-group__list {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* MOBILE */

@media (max-width: 700px) {

    .brands-page {
        padding-bottom: 56px;
    }

    .brands-page__shell {
        width: calc(100% - 28px);
    }

    .brands-page__header {
        padding: 26px 0 30px;
    }

    .brands-page__header h1 {
        font-size: 40px;
    }

    .brands-index {
        gap: 6px;
    }

    .brands-index a,
    .brands-index span {
        width: 34px;
        height: 34px;
    }

    .brands-group {
        grid-template-columns: 1fr;

        gap: 18px;

        padding: 28px 0;
    }

    .brands-group__letter {
        font-size: 34px;
    }

    .brands-group__list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 0 20px;
    }

}


/* SMALL MOBILE */

@media (max-width: 440px) {

    .brands-group__list {
        grid-template-columns: 1fr;
    }

}