:root {
    --lang-font-base: "Gilroy", sans-serif;
    --lang-font-heading: "Gilroy", sans-serif;
}

html[lang="en"] {
    --lang-font-base: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
    --lang-font-heading: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
}

body {
    font-family: var(--lang-font-base);
}

button,
input,
textarea,
select {
    font-family: var(--lang-font-base);
}

.excenge__title,
.entry__title,
.account__title,
.right-excenge__title,
.partners__head,
.detales__title,
.history-referal__element,
.story__element,
.header__menu span,
.footer__bottom,
.footer__contacts,
.dropdown-btn,
.dropdown-link,
.header__line,
.footer__line {
    font-family: var(--lang-font-heading);
}

html[lang="en"] body {
    letter-spacing: 0.01em;
}

html[lang="en"] .excenge__title,
html[lang="en"] .entry__title,
html[lang="en"] .account__title,
html[lang="en"] .right-excenge__title,
html[lang="en"] .detales__title,
html[lang="en"] .partners__head {
    letter-spacing: 0.015em;
}

.header__lang-item {
    position: relative;
}

.header__lang-switch {
    position: relative;
}

.header__lang-switch summary {
    list-style: none;
}

.header__lang-switch summary::-webkit-details-marker {
    display: none;
}

.header__lang-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    user-select: none;
    transition: color 0.18s ease;
}

.header__lang-trigger::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.18s ease;
}

.header__lang-switch[open] .header__lang-trigger {
    color: #06a4b0;
}

.header__lang-switch[open] .header__lang-trigger::after {
    transform: rotate(-135deg) translateY(-1px);
}

.header__lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 170px;
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border: 2px solid #002026;
    border-radius: 12px;
    background: #02191c;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    z-index: 20;
}

.header__lang-menu a {
    width: 100%;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.header__lang-menu a:hover {
    color: #06a4b0;
    background: rgba(6, 164, 176, 0.08);
}

.header__lang-menu a._active {
    color: #06a4b0;
    background: rgba(6, 164, 176, 0.1);
}

@media (max-width: 998px) {
    .header__lang-item {
        width: 100%;
    }

    .header__lang-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 16px;
        border-bottom: 1px solid rgba(6, 164, 176, 0.2);
        letter-spacing: 0.12em;
    }

    .header__lang-menu {
        position: static;
        margin: 0 16px 12px;
        min-width: 0;
        border-radius: 10px;
    }

    .header__lang-menu a {
        border-bottom: 0;
    }
}
