/* Стили для переключателя языков */
.language-switcher {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.language-switcher:before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-right: 15px;
}

.language-switcher button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    padding: 5px 8px;
    margin: 0 2px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 3px;
}

.language-switcher button:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.language-switcher button.active {
    color: var(--accent-color);
    font-weight: 600;
}

/* Стили для темной темы (в шапке) */
.top-bar .language-switcher button {
    color: rgba(255, 255, 255, 0.7);
}

.top-bar .language-switcher button:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.top-bar .language-switcher button.active {
    color: var(--accent-color);
}

/* Стили для светлой темы (если переключатель находится в другом месте) */
.header-main .language-switcher button {
    color: rgba(0, 0, 0, 0.7);
}

.header-main .language-switcher button:hover {
    color: #000;
    background-color: rgba(0, 0, 0, 0.05);
}

.header-main .language-switcher button.active {
    color: var(--accent-color);
}

/* Адаптивность */
@media (max-width: 768px) {
    .language-switcher {
        margin-right: 10px;
    }
    
    .language-switcher button {
        font-size: 12px;
        padding: 4px 6px;
    }
}

@media (max-width: 480px) {
    .top-bar-inner-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .language-switcher {
        margin-top: 10px;
        margin-bottom: 5px;
    }
    
    .language-switcher:before {
        display: none;
    }
}
