header {
    background: #ffffff;
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(45deg, #0066ff, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.menu a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(45deg, #0066ff, #00ccff);
    transition: width 0.3s;
}

.menu a:hover::after {
    width: 100%;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: sans-serif;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    padding: 2px 5px;
    transition: color 0.3s;
}

.lang-btn:hover {
    color: #000;
}

.lang-btn.active {
    color: #007bff; /* Цвет активного языка */
    font-weight: bold;
}

.lang-divider {
    color: #ccc;
    cursor: default;
}


@media (max-width: 1024px) {

    header {
        position: relative;
    }

    .nav-container {
        flex-direction: column;
        gap: 2px;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
    }    
    
}

@media (max-width: 768px) {

    header {
        position: relative;
    }

    nav {
        padding: 0 1.5rem;
    }

    .menu {
        gap: 0.8rem;
        font-size: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .menu a {
        font-size: 0.8rem;
    }    

}