.locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.locale-switcher__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  padding: 0.42rem 0.68rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.locale-switcher__link:hover,
.locale-switcher__link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.locale-switcher__link.is-active {
  color: #000000;
  background: rgba(255, 255, 255, 0.1);
}

.locale-switcher--floating {
  position: fixed;
  top: 1.2rem;
  right: 5vw;
  z-index: 110;
}

.locale-switcher--header {
  margin-left: 1rem;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .locale-switcher--floating {
    top: 1rem;
    right: 4vw;
  }
}

@media (max-width: 767px) {
  .locale-switcher {
    gap: 0.2rem;
    padding: 0.24rem;
  }

  .locale-switcher__link {
    min-width: 2rem;
    padding: 0.34rem 0.52rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .locale-switcher--header {
    margin-left: 0.6rem;
  }
}
