/* НАВИГАЦИЯ */
.navbar {
    position: fixed;
    top: 0px;
    width: 100%;
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(79, 195, 247, 0.2);
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Основное меню */
.nav-menu {
    display: flex;
    list-style: none;
}

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

.header-nav a {
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Бургер-кнопка */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.burger span {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Анимация бургер-кнопки при активации */
.burger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.demo-box {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}


.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: rgba(224, 247, 250, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.back-btn {
    background: rgba(79, 195, 247, 0.1);
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 8px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.back-btn:hover {
    background: rgba(79, 195, 247, 0.2);
}

.back-btn.sm {
    padding: 5px 10px;
}

.back-btn.lg {
    padding: 10px 20px;
}

/* Мобильные устройства (максимальная ширина 480px) */
@media screen and (max-width: 480px) {
    .navbar {
        padding: 10px 15px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .nav-menu {
        top: 57px;
    }
    
    .nav-menu a {
        font-size: 16px;
        padding: 10px;
        display: block;
    }
}

/* Адаптивность */
@media (max-width: 480px) {
    .nav-container {
        padding: 0px;
    }
}

/* Планшеты (максимальная ширина 768px) */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.99);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .burger {
        display: flex;
    }
}

/* Адаптивность */
@media (min-width: 820px) {
    .nav-container {
        padding: 0 20px;
    }
}
