/* Header */
.header { 
    background: rgba(255,255,255,0.95); 
    backdrop-filter: blur(10px); 
    padding: 1rem 0; 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 20px rgba(0,0,0,0.1); 
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    text-decoration: none; 
    color: #333; 
    font-size: 1.6rem; 
    font-weight: 700; 
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img { 
    width: 42px; 
    height: 42px; 
    border-radius: 10px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Navigation */
.nav-menu { 
    display: flex; 
    list-style: none; 
    gap: 2.5rem; 
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a { 
    text-decoration: none; 
    color: #555; 
    font-weight: 500; 
    font-size: 1rem;
    transition: all 0.3s ease; 
    padding: 0.5rem 0;
    position: relative;
    border-radius: 6px;
}

.nav-menu a:hover { 
    color: #667eea; 
    transform: translateY(-1px);
}

.nav-menu a.active { 
    color: #667eea; 
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-menu a.active::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #667eea;
    border-radius: 1px;
}

/* Language Switcher */
.language-switcher { 
    position: relative; 
    margin-left: 1rem;
}

.language-dropdown { 
    position: relative; 
}

.language-btn { 
    background: rgba(102, 126, 234, 0.1); 
    border: 1px solid rgba(102, 126, 234, 0.2); 
    color: #667eea; 
    font-size: 0.9rem; 
    font-weight: 600; 
    cursor: pointer;
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    padding: 0.6rem 1.2rem; 
    border-radius: 25px; 
    transition: all 0.3s ease; 
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.language-btn:hover { 
    background: rgba(102, 126, 234, 0.15); 
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.language-btn i { 
    font-size: 0.85rem; 
    transition: transform 0.3s ease;
}

.language-dropdown.active .language-btn i:last-child {
    transform: rotate(180deg);
}

.language-menu { 
    position: absolute; 
    top: calc(100% + 8px); 
    right: 0; 
    background: white; 
    border-radius: 12px; 
    box-shadow: 0 8px 32px rgba(0,0,0,0.15); 
    padding: 0.5rem 0; 
    min-width: 160px; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(-10px); 
    transition: all 0.3s ease; 
    z-index: 1000; 
    border: 1px solid rgba(0,0,0,0.05);
}

.language-dropdown.active .language-menu { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

.language-menu li { 
    list-style: none; 
}

.language-menu a { 
    display: block; 
    padding: 0.75rem 1.2rem; 
    text-decoration: none; 
    color: #555; 
    transition: all 0.3s ease; 
    font-weight: 500;
    border-radius: 0;
    background: transparent;
}

.language-menu a:hover { 
    background: rgba(102, 126, 234, 0.08); 
    color: #667eea;
    transform: none;
}

.language-menu a.active { 
    background: rgba(102, 126, 234, 0.15); 
    color: #667eea;
    font-weight: 600;
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 1px;
    transition: all 0.3s ease;
    margin: 2px 0;
}

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

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

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

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    height: calc(100vh - 80px);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-container {
    padding: 2rem 1rem;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-bottom: 2rem;
}

.mobile-menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-link {
    display: block;
    padding: 1rem 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    color: #667eea;
}

.mobile-language {
    border-top: 1px solid #f0f0f0;
    padding-top: 1.5rem;
}

.mobile-language-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.mobile-language-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-language-option {
    padding: 0.75rem 0;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    border-radius: 8px;
    padding-left: 1rem;
}

.mobile-language-option:hover,
.mobile-language-option.active {
    color: #667eea;
    background-color: rgba(102, 126, 234, 0.1);
}

/* Responsive */
@media (max-width: 768px) { 
    .nav-menu { 
        display: none; 
    } 
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .logo img {
        width: 36px;
        height: 36px;
    }
    
    .language-switcher {
        display: none;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        top: 70px;
    }
    
    .header-content {
        padding: 0 0.75rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo img {
        width: 32px;
        height: 32px;
    }
}
