ul.top-links{
    display: flex;
    flex-wrap: wrap;
    gap: 10px 8px;
    list-style: none;
    z-index: 10;
}
ul.top-links li{
    width: fit-content;
    font-weight: bold;
    cursor: pointer;
}
ul.top-links li>*{display: block; padding: 10px 20px; border-radius: 20px; border: 1px solid var(--light-grey); background-color: var(--light-grey);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

ul.top-links li>*:hover{text-decoration: none !important; background-color: white; border-color: var(--red); color: var(--black) !important;}
ul.top-links li.active>*,
ul.top-links li>*.current{
    background-color: white !important; border-color: var(--red) !important; 
}
@media (max-width: 560px){
    ul.top-links li.active{order: 0 !important;}
    ul.top-links li{width: 100%;}
    ul.top-links {
        border-radius: 20px;
        position: absolute;
        width: 100%;
        padding-bottom: 10px;
        height: fit-content;
        overflow: hidden;
        --elemHeight: fit-content;
        transition: max-height .5s ease-in-out;
        background-color: var(--light-grey);}
    ul.top-links:not(.active){max-height: 43px !important;}
    ul.top-links li>*:hover{background-color: var(--light-grey); border-color: var(--light-grey); }
    ul.top-links li>*{
        width: 100%;
        position: relative;
    }
    ul.top-links li.active>*:after,
    ul.top-links li>*.current:after{
        content: ' ';
        display: block;
        position: absolute;
        right: 20px;
        top: 0;
        bottom: 0;
        margin: auto 0;
        rotate: 180deg;
        width: 14px;
        height: 9px;
        background: url(/img/redesign/galk.svg) center center no-repeat;
        background-size: 10px;
        transition: all .5s ease-in-out;
    }
    .top-links-wrapper{position:relative; height: 43px;}
    ul.top-links.active li.active>*:after,
    ul.top-links.active li>*.current:after{
        rotate: 0deg;
    }
    ul.top-links li.active>*, ul.top-links li>*.current{border-color: var(--black) !important; font-family: 'MontserratBold'; text-transform: uppercase;}
}