.header span.dropdown-toggle{
    color: #F4F6FB;
}
.header span.dropdown-toggle:hover {
    color: #007BFC;
}
/* Позиционирование для мобильного меню */
.mobile_menu {
    position: relative;
}

.mobile_menu .menu-item-has-children {
    position: static;
}
.header .mobile_menu span.dropdown-toggle{
    gap: 5px;
    color: #F4F6FB;
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Стили для мобильного подменю */
.mobile_menu .header-nav ul.drop_lists {
    position: fixed;
    top: auto !important;
    bottom: 68px !important;
    left: 50%;
    transform: translateX(-50%);
    width: auto !important;
    min-width: 160px;
    max-width: 280px;
    height: auto !important;
    max-height: 120px !important;
    background: rgba(0, 123, 251, 0.95);
    border-radius: 8px 8px 0px 0px;
    padding: 8px;
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);*/
    z-index: 1006;
    box-sizing: border-box;
    overflow: hidden;
}

.mobile_menu .header-nav ul.drop_lists.open,
.mobile_menu .header-nav ul.drop_lists.active {
    display: flex !important;
    animation: slideUp 0.3s ease-out;
}

.mobile_menu .header-nav ul.drop_lists li {
    flex: 0 0 auto;
    width: calc(50% - 4px);
    max-width: 130px;
    padding: 2px;
    border: none;
    text-align: center;
    box-sizing: border-box;
}

.mobile_menu .header-nav ul.drop_lists li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #fff !important;
    font-size: 8px !important;
    font-weight: 500;
    text-decoration: none;
    padding: 4px 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.mobile_menu .header-nav ul.drop_lists li a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.mobile_menu .header-nav ul.drop_lists li a img {
    height: 18px !important;
    width: 18px;
    filter: brightness(0) invert(1);
}

/* Позиционирование для десктопных меню с подменю */
@media (min-width: 769px) {
    .header_menu_lists .menu-item-has-children {
        position: relative;
    }
    
    .header_menu_lists .menu-item-has-children:hover ul.drop_lists {
        display: block !important;
    }
    
    /* Подменю в header */
    .header .header_menu_lists ul.drop_lists {
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(19, 27, 35, 0.9);
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        min-width: 200px;
        display: none;
        z-index: 1000;
    }
    
    .header .header_menu_lists ul.drop_lists li {
        width: 100%;
        padding: 2px 0;
    }
    
    .header .header_menu_lists ul.drop_lists li a {
        color: #F4F6FB !important;
        font-size: 14px !important;
        padding: 8px 12px;
        display: flex;
        align-items: center;
        gap: 8px;
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    
    .header .header_menu_lists ul.drop_lists li a:hover {
        background: rgba(0, 123, 251, 0.2);
        color: #007BFB !important;
    }
    
    .header .header_menu_lists ul.drop_lists li a img {
        height: 18px !important;
        width: 18px;
        filter: brightness(0) invert(1);
        transition: filter 0.3s ease;
    }
    
    .header .header_menu_lists ul.drop_lists li a:hover img {
        filter: none;
    }
    
    /* Подменю в footer - выпадает вверх */
    .footer .header_menu_lists ul.drop_lists {
        position: absolute;
        bottom: 100%;
        left: 0;
        background: rgba(19, 27, 35, 0.9);
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        min-width: 200px;
        display: none;
        z-index: 1000;
        margin-bottom: 0px;
    }
    
    /* Создаем невидимый мостик между пунктом меню и подменю в footer */
    .footer .header_menu_lists .menu-item-has-children::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 10px;
        background: transparent;
        z-index: 999;
    }
    
    .footer .header_menu_lists ul.drop_lists li {
        width: 100%;
        padding: 2px 0;
    }
    
    .footer .header_menu_lists ul.drop_lists li a {
        color: #F4F6FB !important;
        font-size: 14px !important;
        padding: 8px 12px;
        display: flex;
        align-items: center;
        gap: 8px;
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    
    .footer .header_menu_lists ul.drop_lists li a:hover {
        background: rgba(0, 123, 251, 0.2);
        color: #007BFB !important;
    }
    
    .footer .header_menu_lists ul.drop_lists li a img {
        height: 16px !important;
        width: 16px;
        filter: brightness(0) invert(1);
        transition: filter 0.3s ease;
    }
    
    .footer .header_menu_lists ul.drop_lists li a:hover img {
        filter: none;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}