/* Переключатель языков EN | UA | RU — общий для трёх версий портфолио.
   Цвета берутся из темы страницы: активный язык подсвечен её акцентом. */
.lang-switch {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9000;
    display: flex;
    align-items: center;
    padding: 4px;
    border: 1px solid var(--line-2, rgba(255, 255, 255, 0.15));
    border-radius: 999px;
    background: rgba(12, 12, 16, 0.62);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    animation: lang-switch-in 0.6s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lang-switch a {
    position: relative;
    display: block;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--graphite-soft, rgba(242, 242, 245, 0.62));
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: color 0.25s ease, background-color 0.25s ease;
}

/* разделитель «|» между языками */
.lang-switch a + a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 12px;
    margin-top: -6px;
    background: var(--line-2, rgba(255, 255, 255, 0.15));
}

.lang-switch a:hover { color: var(--graphite, #f2f2f5); }

.lang-switch a[aria-current="page"] { color: var(--accent-1); }

.lang-switch a:focus-visible {
    outline: 2px solid var(--accent-1);
    outline-offset: 2px;
}

body.modal-open .lang-switch { visibility: hidden; }

@keyframes lang-switch-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
    .lang-switch { top: 12px; right: 12px; padding: 3px; }
    .lang-switch a { padding: 7px 9px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .lang-switch { animation: none; }
    .lang-switch a { transition: none; }
}
