.language-panel,
.language-divider {
    display: none !important;
}

.language-switcher {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 92px;
    flex: 0 0 92px;
    justify-self: center;
    gap: 3px;
    padding: 3px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: rgba(13, 17, 23, 0.72);
}

.language-switcher .language-button {
    min-width: 0;
    min-height: 36px;
    width: 100%;
    padding: 6px 10px;

    border: 1px solid transparent;
    border-radius: 8px;

    background: transparent;
    color: var(--muted);

    font: inherit;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.045em;
    line-height: 1;

    cursor: pointer;

    transition:
        border-color 160ms ease,
        background 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.language-switcher .language-button:hover {
    transform: none;
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.1);
    color: var(--text);
}

.language-switcher .language-button.active {
    border-color: rgba(139, 92, 246, 0.62);
    background:
        linear-gradient(
            135deg,
            rgba(139, 92, 246, 0.28),
            rgba(139, 92, 246, 0.13)
        );
    color: var(--accent-bright);
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.06);
}

.language-switcher .language-button:focus-visible {
    outline: 2px solid var(--accent-secondary);
    outline-offset: -3px;
}

.page-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 420px;
    max-width: 100%;
    justify-self: center;
}

.page-navigation .navigation-tab {
    min-width: 0;
    width: auto;
    padding-inline: 10px;
    text-align: center;
}

.social-button.boosty {
    color: #ff9a72;
}

.social-button .boosty-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-button.boosty:hover {
    border-color: rgba(255, 95, 46, 0.72);
    background: rgba(255, 95, 46, 0.13);
    box-shadow: 0 8px 22px rgba(255, 95, 46, 0.14);
}

.social-button.youtube {
    color: #ff8585;
}

.social-button.youtube:hover {
    border-color: rgba(255, 0, 51, 0.72);
    background: rgba(255, 0, 51, 0.13);
    box-shadow: 0 8px 22px rgba(255, 0, 51, 0.14);
}

.site-header {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
}

.site-header .studio-brand {
    padding-inline: 6px;
    font-size: 0.9rem;
}

.site-header .social-navigation {
    gap: 6px;
}

.site-header .social-button {
    gap: 6px;
    padding-inline: 8px;
    font-size: 0.8rem;
}

html[data-language="en"] #russian,
html[data-language="ru"] #english {
    display: none !important;
}

@media (max-width: 1080px) {
    .site-header {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .page-navigation {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .language-switcher {
        width: 100%;
        flex: 1 1 auto;
    }

    .language-switcher .language-button {
        width: auto;
        flex: 1;
    }
}
