.page-all-brands {
    --brands-sticky-top: 126px;
    --brands-alfabet-offset: 112px;
    --show-list-title-height: 49px;
    --brands-sticky-available-height: calc(100vh - var(--brands-sticky-top) - 96px);
}

#brands-content-start {
    scroll-margin-top: var(--brands-sticky-top);
}

.all-brands-section {
    width: 100%;
    display: flex;
    gap: 24px;
}

.show-list-section,
.show-list-part,
.brands-by-letter,
.brands-letter-group,
.brands-letter-list,
.alfabet-and-brands-section,
.brands-alfabet-main {
    display: flex;
    flex-direction: column;
}

.show-list-section {
    width: 100%;
    max-width: 25%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: var(--brands-sticky-available-height);
    overflow: hidden;
    contain: layout style;
}

.show-list-scroll {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
}

.show-list-section {
    position: sticky;
    align-self: stretch;
    top: var(--brands-sticky-top);
    z-index: 9;
    background: #fff;
}

.brands-alfabet-toolbar-wrap {
    position: -webkit-sticky;
    position: sticky;
    align-self: flex-start;
    top: var(--brands-sticky-top);
    z-index: 9;
    background: #fff;
    contain: layout style;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.show-list-title {
    width: 100%;
    display: flex;
    height: 49px;
    flex-shrink: 0;
    padding: 8px 12px;
    align-items: center;
    border: 1px solid #D2D5DB;
    background: #E5E7EA;
}

.show-list-title span,
.brands-letter-heading,
.brands-alfabet-block-letter,
.brands-alfabet-btn,
.brands-letter-list a {
    font-family: 'Inter', sans-serif;
    color: #000;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
}

.show-list-title span {
    color: #414651;
}

.show-list-part {
    flex: 1 1 auto;
    padding: 0 8px;
    gap: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    overflow-anchor: none;
}

.show-list-part::-webkit-scrollbar {
    width: 8px;
}

.show-list-part::-webkit-scrollbar-track,
.show-list-part::-webkit-scrollbar-corner {
    background: #E5E7EA;
    opacity: 0.2;
}

.show-list-part::-webkit-scrollbar-thumb {
    background: #D2D5DB;
    border-radius: 0;
    min-height: 130px;
}

.show-list-part::-webkit-scrollbar-button,
.show-list-part::-webkit-scrollbar-button:single-button {
    display: none;
    width: 0;
    height: 0;
}

.brands-by-letter {
    gap: 16px;
}

.brands-letter-heading {
    padding: 0 8px;
    line-height: 28px;
}

.brands-letter-list {
    width: 100%;
    list-style: none;
    padding: 0;
}

.brands-letter-list a,
.brands-letter-list a:hover,
.brands-letter-list a:focus,
.brands-letter-list a:active {
    font-size: 16px;
    font-weight: 400;
    color: #101828;
}

.brands-alfabet-anchor {
    position: relative;
    height: 0;
    overflow: hidden;
    width: 100%;
}

.brands-alfabet-main {
    margin-top: 16px;
}

.brands-alfabet-main,
.brands-alfabet-block {
    scroll-margin-top: var(--brands-alfabet-scroll-anchor, calc(var(--brands-sticky-top) + var(--brands-alfabet-offset)));
}

.brands-alfabet-toolbar,
.brands-alfabet-btn {
    display: flex;
    align-items: center;
}

.brands-alfabet-toolbar {
    flex-wrap: wrap;
    width: 100%;
    isolation: isolate;
}

.brands-alfabet-btn {
    --brands-alfabet-ease: cubic-bezier(0.33, 0, 0.2, 1);
    --brands-alfabet-duration: 0.48s;
    width: 50px;
    height: 50px;
    padding: 10.2px 0 11.8px 0;
    justify-content: center;
    text-align: center;
    border: 1px solid #E0E2E4;
    margin-right: -1px;
    margin-bottom: -1px;
    position: relative;
    cursor: pointer;
    font-size: 16px;
    background-color: #fff;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition:
        background-color var(--brands-alfabet-duration) var(--brands-alfabet-ease),
        color var(--brands-alfabet-duration) var(--brands-alfabet-ease),
        border-color var(--brands-alfabet-duration) var(--brands-alfabet-ease);
}

html.brands-alfabet-scroll-lock .brands-alfabet-btn {
    transition: none;
}

.brands-alfabet-btn:link,
.brands-alfabet-btn:visited {
    text-decoration: none;
    color: #000;
}

@keyframes brands-alfabet-btn-active-red {
    0% {
        background-color: #f47176;
        border-color: #f47176;
    }

    100% {
        background-color: #ED1C24;
        border-color: #ED1C24;
    }
}

.brands-alfabet-btn.is-active,
.brands-alfabet-btn.is-active:link,
.brands-alfabet-btn.is-active:visited,
.brands-alfabet-btn.is-active:hover,
.brands-alfabet-btn.is-active:focus,
.brands-alfabet-btn.is-active:active {
    text-decoration: none;
    color: #fff;
    background-color: #ED1C24;
    border: 1px solid #ED1C24;
    z-index: 2;
    outline: none;
    animation: brands-alfabet-btn-active-red var(--brands-alfabet-duration) var(--brands-alfabet-ease);
}

.brands-alfabet-btn.was-active {
    border: 1px solid #E0E2E4;
    background-color: #FFE5E6;
    color: #000;
    z-index: 1;
}

.brands-alfabet-btn:not(.is-active):active {
    background-color: #fff;
    color: #000;
}

.brands-alfabet-btn.is-disabled,
.brands-alfabet-btn.is-disabled:hover {
    color: #D2D5DB;
    background: #FFF;
    cursor: default;
}

.brands-alfabet-block-letter {
    color: #101828;
    font-size: 24px;
    line-height: 32px;
    border-bottom: 1px solid #D2D5DB;
    padding: 0 0 8px 0;
}

.brands-letter-heading,
.show-list-title span,
.brands-letter-list,
.brands-alfabet-block-letter {
    margin: 0;
}

.brands-alfabet-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin: 24px 0;
}

.brands-alfabet-card {
    align-items: center;
    text-align: center;
    padding: 10px 24px;
    height: 60px;
}

.brands-letter-list li {
    padding: 8px;
}

.brands-alfabet-card,
.brands-alfabet-btn,
.brands-letter-list a,
.brands-letter-list a:hover,
.brands-letter-list a:focus,
.brands-letter-list a:active,
.brands-letter-list {
    text-decoration: none;
}

.brands-alfabet-grid-item{
    height: 62px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brands-alfabet-card-img {
    width: auto;
    margin: auto;
    height: 60px;
    object-fit: contain;
}

@media (max-width: 1250px) {
    .page-all-brands {
        --brands-sticky-top: 125px;
    }
}

@media (max-width: 1200px) {
    .brands-alfabet-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .page-all-brands {
        --brands-sticky-top: 125px;
    }
}

@media (max-width: 768px) {
    .page-all-brands {
        --brands-alfabet-offset: 160px;
        --brands-sticky-top: 160px;
    }

    .show-list-section {
        display: none;
    }

    .brands-alfabet-toolbar-wrap {
        padding-bottom: 2px;
        isolation: isolate;
    }

    .brands-alfabet-toolbar {
        transform: translateZ(0);
    }

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

    .brands-alfabet-btn {
        width: 45px;
        height: 40px;
    }
}

@media (max-width: 425px) {
    .brands-alfabet-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brands-alfabet-toolbar {
        justify-content: start;
    }

    .brands-alfabet-btn {
        width: 44px;
    }
}

@media (max-width: 416px) {
    .brands-alfabet-btn {
        width: 41px;
    }
}