
.wrapper_navigation {
    display: flex;
    justify-content: center;
    position: fixed;   /* фиксируем */
    top: 0;            /* прижимаем к верху */
    left: 0;
    width: 100%;       /* на всю ширину окна */
    z-index: 1000;     /* больше чем у контента */
    background: transparent; /* можешь убрать, если фон нужен прозрачный */
}

.navigation {
    display: flex;
    flex-direction: column;

    z-index: 1001; /* на всякий случай выше панели */
}
/* Исходный стиль .bar */
.bar {
    min-width: 314px; /* исходная ширина */
    min-height: 48px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 18px;
    background-color: rgba(249, 250, 251, 0.95);
    box-sizing: border-box;
    flex-direction: column;
    padding: 0 18px;
    transition: max-width 0.3s ease; /* плавное расширение */
    overflow: hidden;
}

/* Класс при открытии */
.bar.open {
    max-width: 900px; /* новая ширина */
}
.hide-dots {
    display: none;
}
.side_bar {
    display: flex;
    justify-content: center;
    align-items: center; /* вертикальное выравнивание */
    padding: 12px  12px  12px 24px;
    border-radius: 18px;
    background-color: rgba(249, 250, 251, 0.0);
    gap: 15px;


}

/*.logo {*/
/*    height: 24px; !* подогнали под высоту панели *!*/
/*    flex-shrink: 0;*/
/*}*/
.NEURON24_div {
    width: 150px;
    text-align: center;
}
.NEURON24 {
    border-radius: 58px;
    font-size: 24px;
    transition: font-size 0.2s ease;
    background: linear-gradient(
            145deg,
            #80E5FF 0px,
            #7584D6 50%,
            #7584D6 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 550;
    display: inline-block;


}


.NEURON24:hover {
    font-size: 26px; /* размер при наведении */
}

.menu_items {
    display: flex;
    margin-top: 10px; /* отступ от основной панели */
    width: 100%;
    justify-content: space-around;
}

.menu_left, .menu_right {
    display: flex;
    flex-direction: column;
    width: 200px;
    margin-bottom: 20px;
}
.side_menu {
    display: flex;
    flex-direction: column;
}

.link {
    position: relative;
    display: inline-block;
    color: #7584D6;
    text-decoration: none;
    overflow: hidden;
    margin-bottom: 10px;
}

.link::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    color: #5b64a1;
    font-weight: 600;
    transition: transform 0.5s ease;
}

.link span {
    display: block;
    transition: transform 0.5s ease;
}

.link:hover span {

    transform: translateY(-100%);
}

.link:hover::after {
    transform: translateY(-100%);
}

.messenger {
    margin-top: 30px;

}
.link_messenger {
    margin: 5px;
    text-decoration: none; /* убираем подчеркивание */
}
.img_messenger {
    max-width: 17px;
    margin-left: 5px
}


/* ====== МОБИЛЬНАЯ АДАПТАЦИЯ ====== */

/* Экран до 1024px (планшеты) */
@media (max-width: 1024px) {
    .navigation {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .bar {
        min-width: 240px;
        width: 90%;
        flex-direction: column; /* выравниваем в линию */
        padding: 8px 12px;
    }

    .NEURON24_div {
        width: auto;
    }


    .menu_left, .menu_right {
        display: flex;
        flex-direction: column;
        width: 50%;
        margin-bottom: 20px;
    }

    /* Базове меню приховане */



}

/* Экран до 768px (телефоны) */
@media (max-width: 768px) {

    .bar {
        flex-direction: column;
        width: 100%;
        min-width: unset;
        margin: 0;
        border-radius: 0; /* убираем скругления */
        justify-content: center;
    }

    .side_bar {
        width: 100%;
        gap: 10px;
    }

    .NEURON24 {
        font-size: 18px;
    }

    .NEURON24:hover {
        font-size: 20px;
    }


    .img_messenger {
        max-width: 17px;
        margin-left: 5px
    }

    /* Делаем кнопки компактными */
    .button_navigation_purple,
    .button_select_purple {
        font-size: 12px;
        padding: 10px 10px;
    }

    /* Кнопка бургер-меню вместо точек */
    #sidebarBtn {
        width: 32px;
        height: 32px;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }
    #sidebarBtn .dot {
        width: 4px;
        height: 4px;
        background: #7584D6;
        border-radius: 50%;
        margin: 2px 0;
    }
}

/* Экран до 480px (маленькие телефоны) */
@media (max-width: 480px) {
    .NEURON24 {
        font-size: 16px;
    }
    .side_bar {
        gap: 6px;
    }
    .img_button {
        max-width: 28px;
        max-height: 28px;
    }
}

