.menu-language {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 19, 17, 0.08);
  pointer-events: auto;
}

.menu-language-label {
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.menu-exit {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border: 0;
  border-top: 1px solid rgba(23, 19, 17, 0.08);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 220ms ease, transform 220ms ease, color 220ms ease;
}

.menu-exit span {
  order: 1;
}

.menu-exit img {
  order: 2;
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) opacity(0.58);
}

.menu-exit:hover,
.menu-exit:focus-visible {
  color: var(--ink);
  opacity: 0.88;
  transform: translateY(-1px);
  outline: none;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: transform 220ms ease, opacity 220ms ease;
}

.language-button img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.language-button:hover,
.language-button.is-active {
  transform: translateY(-1px);
  opacity: 0.92;
}

@media (max-width: 640px) {
  .menu-language {
    margin-top: 16px;
    gap: 10px;
    padding-top: 12px;
  }

  .menu-language-label {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .menu-exit {
    margin-top: 12px;
    padding-top: 12px;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .menu-exit img {
    width: 42px;
    height: 42px;
  }

  .language-button {
    min-width: 30px;
    min-height: 30px;
  }

  .language-button img {
    width: 30px;
    height: 30px;
  }
}
