.lang-switcher-item {
  position: relative;
}

.lang-switcher {
  position: relative;
}

.lang-switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: #6f5951;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.lang-switcher summary::-webkit-details-marker {
  display: none;
}

.lang-switcher summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: -2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.lang-switcher[open] summary::after {
  margin-top: 2px;
  transform: rotate(-135deg);
}

.lang-switcher summary:focus-visible,
.lang-switcher-menu a:focus-visible {
  outline: 2px solid rgba(32, 19, 16, 0.35);
  outline-offset: 3px;
}

.lang-switcher-trigger-label,
.lang-switcher-current,
.lang-switcher-label,
.lang-switcher-code {
  line-height: 1;
}

.lang-switcher-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(32, 19, 16, 0.1);
  color: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 6px;
  min-width: 172px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(32, 19, 16, 0.12);
  border-radius: 18px;
  background: rgba(255, 251, 247, 0.96);
  box-shadow: 0 18px 40px rgba(32, 19, 16, 0.16);
}

.lang-switcher-menu li {
  padding: 0;
  list-style: none;
}

.lang-switcher-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  background: transparent;
  color: #6f5951;
}

.lang-switcher-menu a:hover,
.lang-switcher-menu a:focus-visible {
  background: rgba(215, 97, 55, 0.12);
}

.lang-switcher-menu a[aria-current="page"] {
  background: rgba(32, 19, 16, 0.9);
  color: #fffaf6;
}

.lang-switcher-label {
  font-size: 14px;
  font-weight: 700;
}

.lang-switcher-code {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .lang-switcher-menu {
    min-width: 160px;
  }
}
