/* Стили для навбара */
.top-panel {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1400px;
    height: 120px;
    z-index: 999;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-panel-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    position: relative;
}

.top-panel-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
    object-fit: cover;
    cursor: pointer;
}

.user-avatar:hover {
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}

.btr-logo:hover circle {
    fill: rgba(0, 0, 0, 0.8);
}

#menuToggle {
    transition: all 0.4s ease;
}

#menuToggle svg {
    transition: all 0.2s ease;
}

#menuToggle.expand {
    position: absolute;
    z-index: 999;
    left: 210px;
    top: -18px;
}

#menuToggle.expand svg {
    transform: rotate(-90deg);
}

#menuToggle.expand svg path {
    stroke: #F8F4EE;
}

/* Стили для меню навигации */
.navbar-menu {
    position: absolute;
    opacity: 0;
    top: -23px;
    left: -300px;
    border-radius: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 100px 10px;
    z-index: -1;
    width: 310px;
    background: rgba(50, 49, 49, 0.9);
    transition: opacity 0.3s ease, left 0.2s ease;
}

.navbar-menu.expand {
    z-index: 998;
    opacity: 1;
    left: -30px;
}

.navbar-menu .item {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    padding-left: 10px;
    transition: background 0.1s ease;

}.navbar-menu .item:hover {
    background: rgba(248, 244, 238, 0.2);
}

.navbar-menu .item span {
    font-weight: 600;
    font-size: 32px;
    color: #f8f4ee;
}

/* Стили для мобильной навигации */
.mobile-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f4ee;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    transform: translateY(100%); /* Скрываем меню */
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.show {
    transform: translateY(0); /* Показываем меню */
}

.mobile-menu .mobile-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Адаптив под мобильные устройства */
@media (max-width: 1399px) {

    .top-panel {
        width: 390px;
        height: 93px;
        padding: 0 10px;
    }

    .top-panel-right {
    }

    .top-panel-left {
        gap: 5px;
    }

    .navbar-menu {
        top: -10px;
    }

    #menuToggle.expand {
        padding-top: 20px;
    }

    .mobile-menu {
        display: none;
    }
}