/* Language switcher — current flag + globe/chevron in a rounded control */

.home-page-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: nowrap;
  min-height: 1.85rem;
  overflow: visible;
}

.home-page-header-inner .home-page-title {
  margin: 0 !important;
}

.lang-switch {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  z-index: 120;
}

.lang-switch-control {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  height: 1.75rem;
  padding: 0 0.38rem 0 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.58);
  line-height: 0;
}

.lang-switch-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.1rem;
  line-height: 0;
  flex-shrink: 0;
}

.lang-switch-current svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lang-switch-current span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.lang-switch-details {
  display: inline-flex;
  align-items: center;
  height: 1.1rem;
  position: static;
}

.lang-switch-toggle {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  height: 1.1rem;
  min-height: 1.1rem;
  padding: 0;
  margin: 0;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  list-style: none;
  -webkit-appearance: none;
  appearance: none;
  vertical-align: middle;
}

.lang-switch-toggle::-webkit-details-marker,
.lang-switch-toggle::marker {
  display: none;
  content: "";
}

.lang-switch-globe,
.lang-switch-chevron {
  display: block;
  flex-shrink: 0;
}

.lang-switch-globe {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.lang-switch-chevron {
  width: 0.68rem;
  height: 0.68rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.lang-switch-details[open] .lang-switch-chevron {
  transform: rotate(180deg);
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 130;
  display: grid;
  grid-template-columns: repeat(4, 1.7rem);
  gap: 0.45rem;
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0.7rem;
  background: rgba(10, 13, 20, 0.98);
  box-shadow: 0 0.55rem 1.4rem rgba(0, 0, 0, 0.45);
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.2rem;
  padding: 0;
  border: none !important;
  background: rgba(255, 255, 255, 0.08);
  line-height: 0;
  opacity: 1;
  box-shadow: none !important;
  outline: none;
}

.lang-switch-btn.is-active {
  outline: 1px solid #fff;
}

.lang-switch-btn:hover,
.lang-switch-btn:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border: none !important;
  outline: none;
  box-shadow: none !important;
}

.lang-switch-btn svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lang-switch-btn span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .home-page-header-inner {
    gap: 0.45rem;
  }

  .home-page-header-inner .home-page-title {
    max-width: calc(100vw - 7.5rem) !important;
  }
}
