
.global-header__container {
    background: var(--bg-light);
}

header {
    background-color: var(--bg-light);
    width: 100%;
}


.global-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 19px;
    padding-bottom: 19px;
}

.global-header__top .icons-holder {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-holder {
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    text-decoration: none;
}


.logo-holder .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-holder .logo-text {
    max-width: 440px;
    line-height: 140%;
    font-weight: 500;
    font-size: 15px;
    color: var(--color-primary);
    font-family: var(--ff-primary);
}

@media (max-width: 460px) {
    .logo-holder .logo-text{
        font-size: 10px;
        line-height: 1.3;
    }
}

@media (max-width: 400px) {
    .logo-holder .logo-text{
        font-size: 8px;
    }
}

.logo-holder .logo-text a {

}

.search img, .global-header__top .icon-glass {
    cursor: pointer;
    filter: brightness(0);
}

.global-header__bottom {
    border-top: 1px solid var(--color-stroke);
    border-bottom: 1px solid var(--color-stroke);
    background-color: var(--bg-light);
}


.global-header__bottom .top-menu {
    display: flex;
    align-items: center;
    gap: 42px;
}

.global-header__bottom .top-menu #burger-open {
    order: 10;
    margin-left: auto;
    padding: 20px 0;
}
 .global-header__bottom .top-menu #burger-open a {
    background: var(--gold-gradient-bg);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    background-size: 200% 200%;
    animation: moveGradient 4s linear infinite;
    animation-play-state: paused;
    transition: background-position 0.4s ease-out;
}

@media (min-width: 1024px) {
     .global-header__bottom .top-menu #burger-open a:hover {
        animation-play-state: running;
    }
}

.global-header__bottom .top-menu #burger-open a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;

}

.global-header__bottom .top-menu #burger-open a span {
    display: none;
}

.global-header__bottom .top-menu .sub-item .root-item, .root-item-selected {
    display: flex;
    text-decoration: none;
    font-family: var(--ff-primary);
    font-weight: 500;
    font-size: 20px;
    line-height: 140%;
    text-transform: uppercase;
    color: #fff;
    padding: 20px 0;
    transition: color 0.2s ease;
}

.global-header__bottom .top-menu .sub-item .root-item:has(font), .root-item-selected:has(font){
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown .root-item, .dropdown .root-item-selected {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown:hover .root-item:after, .dropdown:hover .root-item-selected:after {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23bd9334' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.dropdown .root-item:after, .dropdown .root-item-selected:after {
    content: "";
    width: 20px;
    height: 20px;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%230B0B0A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.global-header__bottom .top-menu .sub-item .root-item, .root-item-selected {
    color: var(--color-primary);
}

.global-header__bottom .top-menu .sub-item:hover > .root-item,
body.mainpage .global-header__bottom .top-menu .sub-item:hover > .root-item {
    color: var(--color-secondary);
}

#horizontal-multilevel-menu li ul {
    background: #ebdfbc;
    border-radius: 5px;
}

#horizontal-multilevel-menu li ul li {
    padding: 4px 10px;
}

.global-header__bottom .top-menu .submenu a {
    color: var(--color-primary);
    text-decoration: none;

}

.global-header__bottom .top-menu .submenu li:hover > a, .root-item-selected:hover, .root-item-selected {
    color: var(--color-secondary);
}


.header-social {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    margin-right: 80px;
}

.header-social span {
    opacity: 0.6;
}

.header-social__el {
    display: block;
    height: 28px;
    flex: none;
}

.header-social__el img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
}

@keyframes slideDown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(0);
    }
}

@media (min-width: 901px) {


    .fixed-header .global-header__bottom {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
        animation: slideDown 0.3s ease-in-out;
    }

    body:has(#bx-panel-userinfo) .fixed-header .global-header__bottom {
        top: 38px;
    }
}

@media (max-width: 1220px) {

    .global-header__bottom .top-menu {
        gap: 24px;
    }

    .global-header__bottom .top-menu .sub-item .root-item, .root-item-selected {
        font-size: 16px;
        line-height: 140%;
    }

    .header-social {
        margin-right: 24px;
    }
}

@media (max-width: 1024px) {
    .container-fluid.container {
        max-width: 100%;
    }

    .global-header__container {
        position: relative;
    }

    .header-social {
        position: absolute;
        top: 15px;
        left: 12px;
    }

    .header-social__el {
        height: 22px;
    }

    .header-social span {
        display: none;
    }
}

@media (max-width: 901px) {

    body.mainpage .global-header__bottom .top-menu #burger-open a {
        width: 32px;
        height: 32px;
    }

    body:has(#bx-panel-userinfo) .fixed-header {
        top: 38px;
    }

    #horizontal-multilevel-menu li.sub-item {
        display: none;
    }

    .global-header__top, .lobal-header__top, .global-header__bottom, .container-fluid, .nav-menu, .top-menu {
        display: contents !important;
    }

    .global-header__container {
        display: flex;
        flex-wrap: wrap;
        gap: 0 12px;
        padding: 0 12px;
    }

    .global-header__container .logo-holder {
        order: 10;
        padding: 10px 12px;
        border-top: 1px solid var(--color-stroke);
        border-bottom: 1px solid var(--color-stroke);
        margin-left: -12px;
        margin-right: -12px;
        width: calc(100% + 24px);
        align-items: center;
    }

    .global-header__container .global-header__bottom .top-menu #burger-open {
        order: 3;
        margin-left: 0;
        padding: 10px 0;
    }

    .icons-holder {
        margin-left: auto;
    }

    .global-header.fixed-header{
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
        animation: slideDown 0 ease-in-out;
    }

    .global-header.fixed-header .logo-holder {
        /*display: none;*/
    }

    .logo-holder .logo {
        gap: 4px;
    }

    .logo .gerb-logo, .logo .mart-logo {
        width: 38px;
        height: 38px;
    }

    .logo-holder .logo-text {
        line-height: 135% !important;
    }

    .logo-holder .logo-text a {
        font-size: 12px;

    }
}

@media (max-width: 768px) {

    .global-header__top .icons-holder {
        gap: 8px;
    }

    .logo-holder {
        align-items: flex-start;
        gap: 8px;
    }

    .global-header__bottom .top-menu #burger-open a span {
        display: none;
    }

}

@media (max-width: 460px) {
    .logo .gerb-logo, .logo .mart-logo {
        width: 30px;
        height: 30px;
    }
}