/* Language switcher — left of mobile menu icon */
.topnav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reev-lang {
  position: relative;
  z-index: 30;
}

.reev-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.reev-lang-toggle:hover,
.reev-lang-toggle[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.reev-lang-toggle i {
  font-size: 9px;
  opacity: 0.75;
}

.reev-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #1a1a1a;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.reev-lang-menu[hidden] {
  display: none !important;
}

.reev-lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease;
}

.reev-lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.reev-lang-option.is-active {
  background: rgba(248, 68, 56, 0.16);
  color: #fff;
}

.reev-lang-option-code {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 11px;
  opacity: 0.9;
}

.reev-lang-option-name {
  font-weight: 500;
  opacity: 0.9;
}

@media screen and (max-width: 992px) {
  .left-side .topnav {
    margin-left: auto;
  }
}
