/* Стили для навигации */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #007bff;
}

.nav-item.active .nav-link {
    color: #007bff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
}

.lang-switch-desktop {
    display: flex;
    gap: 8px;
    margin-left: 20px;
}

.lang-switch-mobile {
    display: none;
}

.lang-btn {
    padding: 6px 14px;
    border: 2px solid #007bff;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #007bff;
    transition: all 0.3s;
    min-width: 60px;
}

.lang-btn:hover {
    background-color: #007bff;
    color: white;
}

.lang-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Стили для старого header */
.old-header {
    display: none;
}

/* Мобильные стили для навигации */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0 30px;
        gap: 15px;
        z-index: 999;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .lang-switch-desktop {
        display: none;
    }
    
    .lang-switch-mobile {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 12px 20px;
        font-size: 18px;
    }
    
    .nav-item.active .nav-link {
        background-color: #f0f7ff;
    }
}