.header-lang {
  position: relative;
  flex-shrink: 0;
  align-self: center;
}

.header-lang__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(111, 0, 0, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #6f0000;
  font: 500 13px/1.2 'Montserrat', sans-serif;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-lang__trigger:hover,
.header-lang.is-open .header-lang__trigger {
  background: #fff;
  border-color: rgba(111, 0, 0, 0.38);
  box-shadow: 0 4px 18px rgba(111, 0, 0, 0.08);
}

.header-lang__current {
  min-width: 1.6em;
  text-align: center;
  position: relative;
  top: 1px;
}

.header-lang__chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  position: relative;
  top: 1px;
}

.header-lang.is-open .header-lang__chevron {
  transform: rotate(180deg);
}

.header-lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  min-width: 188px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(24, 8, 8, 0.14);
  z-index: 300;
}

.header-lang__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-lang__item + .header-lang__item {
  margin-top: 2px;
}

.header-lang__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #3a2a2a;
  font: 400 15px/1.2 'Montserrat', sans-serif;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.header-lang__option:hover {
  background: rgba(111, 0, 0, 0.06);
  color: #6f0000;
}

.header-lang__option.is-active {
  background: rgba(111, 0, 0, 0.1);
  color: #6f0000;
  font-weight: 600;
}

.header-lang__label {
  flex: 1 1 auto;
}

.header-lang__code {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(111, 0, 0, 0.55);
}

.header-lang__option.is-active .header-lang__code {
  color: #6f0000;
}

@media (max-width: 680px) {
  .header .headerRight,
  .header .headerRightIn {
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }

  .headerRight .header-lang,
  .headerRightIn .header-lang {
    position: relative;
    left: auto;
    z-index: 1000002;
    margin: 0;
  }

  .header-lang__trigger {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .header-lang__menu {
    top: calc(100% + 6px);
    left: 0;
    right: auto;
    width: max(100%, 7.5rem);
    min-width: 0;
    max-width: calc(100vw - 24px);
    padding: 4px;
    border-radius: 12px;
  }

  .header-lang__option {
    justify-content: center;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-align: center;
  }

  .header-lang__label {
    display: none;
  }

  .header-lang__code {
    font-size: 13px;
    color: #6f0000;
  }
}
