.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-pic {
    height: 30px;
    width: auto;
    transition: opacity 0.3s ease;
}

.lh {
    transition: 0.3s;
}

.logo-pic:hover {
    .lh {
        fill: #4263EB;
        transition: 0.3s;
    }
}

.buttons {
    display: flex;
    gap: 25px;
    align-items: center;
}

.logout-buttons {
    display: flex;
    gap: 25px;
    align-items: center;
}

.buttons.active {
    border-radius: 20px;
}

.navbar-btn {
    text-decoration: none;
    color: #fff;
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.navbar-btn:hover {
    opacity: 0.8;
}

.navbar-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.navbar-btn:hover::after {
    width: 100%;
}

/* Стили для кнопки Войти */
.login-btn {
    padding: 8px 20px;
    border-radius: 5px;
    background-color: #4263EB;
}

.login-btn:hover {
    background-color: #3a56d4;
    opacity: 1;
}

.logout-btn {
    min-width: 70px;
    padding: 8px 20px;
    border-radius: 5px;
    background-color: #eb4242;
}

.logout-btn:hover {
    background-color: #da4848;
    opacity: 1;
}

/* Убираем подчеркивание у кнопки Войти */
.login-btn::after {
    display: none;
}

.logout-btn::after {
    display: none;
}

/* Стили для мобильного меню */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .navbar {
        overflow: visible;
    }

    .buttons {
        position: fixed;
        top: 96px;
        left: 10px;
        right: 10px;
        width: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px;
        background: rgba(16, 16, 16, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
        z-index: 9998;
    }

    .buttons.active,
    .buttons.mobile-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .navbar-btn {
        width: 100%;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 14px;
        text-align: center;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.04);
    }

    .navbar-btn::after {
        display: none;
    }

    .login-btn {
        background: #4263EB;
        color: #fff;
    }

    .mobile-menu-btn {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        padding: 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.06);
        position: relative;
        z-index: 10000;
    }

    .menu-line {
        width: 22px;
        height: 2px;
        margin: 0;
        border-radius: 999px;
    }

    .mobile-menu-btn.active .menu-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active .menu-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .menu-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0;
    }

    .buttons {
        top: 88px;
        left: 10px;
        right: 10px;
        padding: 12px;
    }
}
