/* Shared language dropdown — RU / US / UA / CN */
.lang-dropdown {
  position: relative;
  font-family: inherit;
  z-index: 40;
}

.lang-dropdown__trigger,
.lang-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.lang-dropdown__trigger {
  min-width: 148px;
  width: auto;
  max-width: 42vw;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(180, 140, 70, 0.55);
  background: rgba(22, 16, 12, 0.92);
  color: #f5f0e8;
  font-weight: 700;
  font-size: 0.82rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.lang-dropdown__trigger:hover {
  border-color: rgba(210, 170, 90, 0.75);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.lang-dropdown__trigger:active { transform: scale(0.97); }

.lang-dropdown__chevron {
  margin-left: auto;
  font-size: 0.7rem;
  opacity: 0.7;
}

.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  min-width: max(100%, 160px);
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(180, 140, 70, 0.55);
  background: rgba(18, 13, 10, 0.97);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 1200;
}

.lang-dropdown__item {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  color: #f0ebe3;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.15s ease, transform 0.12s ease;
}

.lang-dropdown__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lang-dropdown__item.is-active {
  background: rgba(120, 85, 45, 0.55);
  color: #fff8ee;
}

.lang-dropdown__item:active { transform: scale(0.98); }

.lang-dropdown__badge {
  flex-shrink: 0;
  min-width: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lang-dropdown__label {
  flex: 1;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .lang-dropdown__trigger {
    min-width: 96px;
    max-width: 30vw;
    padding: 6px 8px;
    font-size: 0.74rem;
  }

  .lang-dropdown__menu {
    max-width: min(88vw, 240px);
  }
}
