/* lang-switcher */
.lang-switcher { position: relative; z-index: 40; order: 4; flex-shrink: 0; }
.index-page header .lang-switcher { order: unset; margin-left: auto; }
.lang-switcher__btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  color: #fff; border-radius: 8px; padding: 8px 12px; cursor: pointer;
  font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  transition: border-color .15s ease, background .15s ease;
  font-family: inherit;
}
.lang-switcher__btn:hover, .lang-switcher.is-open .lang-switcher__btn {
  border-color: #f79e1b; background: rgba(247,158,27,0.12);
}
.lang-switcher__globe {
  width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%;
  position: relative; opacity: 0.9; flex-shrink: 0;
  background:
    linear-gradient(currentColor, currentColor) center/1.5px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center/100% 1.5px no-repeat;
}
.lang-switcher__chevron {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: 0.8; margin-left: 2px;
  transition: transform .15s ease;
}
.lang-switcher.is-open .lang-switcher__chevron { transform: rotate(180deg); }
.lang-switcher__menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px; margin: 0; padding: 6px;
  list-style: none; background: #15191c; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  display: none;
}
.lang-switcher.is-open .lang-switcher__menu { display: block; }
.lang-switcher__option {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: transparent; border: 0; color: #fff; text-align: left;
  padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600;
  font-family: inherit;
}
.lang-switcher__option:hover { background: rgba(255,255,255,0.06); }
.lang-switcher__option.is-active { background: rgba(247,158,27,0.16); color: #f79e1b; }
.lang-switcher__opt-short {
  min-width: 28px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
  opacity: 0.85;
}
.lang-switcher__opt-label { font-weight: 600; text-transform: none; letter-spacing: 0; }

/* Mobile: blue bar full width, then logo (left) + switcher (right) on one row */
@media (max-width: 767px) {
  header .container {
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 0;
    padding: 0 0 16px 0 !important;
  }

  header .nav-info {
    order: 0 !important;
    flex: 0 0 100%;
    width: 100% !important;
    border-radius: 0 !important;
    margin: 0;
  }

  header .logo-link {
    order: 1 !important;
    margin: 4px 0 0 16px;
    margin-right: auto;
  }

  header .lang-switcher {
    order: 1 !important;
    margin: 4px 16px 0 0;
    margin-left: 0 !important;
    align-self: center;
  }

  header nav {
    order: 2 !important;
    flex: 0 0 100%;
    width: 100%;
    padding: 0 16px;
    justify-content: space-around;
  }

  .lang-switcher__menu {
    right: 0;
    left: auto;
  }
}
