.language-switcher {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    pointer-events: auto;
    font-family: "Manrope", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
}

.language-switcher__divider {
    width: 1px;
    height: 18px;
    background: currentColor;
    opacity: 0.24;
}

.language-switcher a {
    display: inline-flex;
    width: 42px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    color: inherit;
    opacity: 0.68;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.language-switcher__flag {
    width: 30px;
    height: 20px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.language-switcher a:hover,
.language-switcher a:focus-visible,
.language-switcher a.is-active {
    opacity: 1;
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
    transform: translateY(-1px);
}

.language-switcher a.is-active .language-switcher__flag {
    border-color: #c69a61;
    box-shadow:
        0 0 0 2px rgba(198, 154, 97, 0.32),
        0 2px 7px rgba(0, 0, 0, 0.2);
}

.language-switcher--selector {
    grid-column: 3;
    justify-self: end;
    color: #fff;
}

.language-switcher--header {
    color: #fff;
}

.site-header.is-scrolled .language-switcher--header,
.site-header.menu-active .language-switcher--header {
    color: #171816;
}

.project-nav-actions {
    display: flex;
    align-items: center;
    gap: 13px;
}

@media (max-width: 767px) {
    .language-switcher {
        gap: 6px;
    }

    .language-switcher a {
        width: 38px;
        min-height: 34px;
    }

    .language-switcher__flag {
        width: 27px;
        height: 18px;
    }

    .language-switcher--selector {
        position: absolute;
        top: 21px;
        right: 18px;
    }

    .project-nav-actions {
        gap: 6px;
    }
}

@media (max-width: 380px) {
    .project-nav-actions .header-cta {
        display: none;
    }
}
