
.site-header {
  position: absolute;
  top: 23px;
  left: 0;
  right: 0;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

.header-nav {
  position: fixed;
  top: 23px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  height: 48px;
  gap: 12px;
  padding-inline: 20px;
  border-radius: 100px;
  background-color: rgba(4, 5, 9, 0.48);
  background-image:
    linear-gradient(180deg, var(--color-lightwhite) 0%, rgba(240, 240, 240, 0) 66.327%),
    linear-gradient(90deg, var(--color-lightwhite) 0%, var(--color-lightwhite) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-nav__item {
  flex: none;
  font: var(--fw-medium) 13px/20px var(--font-sans);
  letter-spacing: -0.14px;
  text-align: center;
  color: var(--color-white);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.72;
  font-feature-settings: 'lnum' 1, 'pnum' 1;
  transition: opacity 0.2s ease;
}
.header-nav__item:hover,
.header-nav__item.is-active { opacity: 1; }

.header-nav__dot {
  flex: none;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-icon-bg-wi);
}

.header-nav__indicator {
  position: absolute;
  left: 20px;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 0 0 12px 12px;
  background: var(--color-yellow);
  transition: left 0.25s cubic-bezier(0.22, 0.61, 0.36, 1), width 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}

@media (max-width: 767px) {
  .header-nav { display: none; }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 147.22px;
  height: 32px;
}

.site-header__download {
  --btn-pl: 16px;
  --btn-pr: 24px;
  color: var(--color-white);
}
.site-header__download .btn__icon { color: var(--color-yellow); }

.site-header__download:hover { transform: scale(1.04); }
.site-header__download:active { transform: scale(1.01); }

.lang {
  position: relative;
}
.lang__toggle {
  --btn-pl: 20px;
  --btn-pr: 20px;
  /* .btn--glass's own rgba(4,5,9,0.48) reads as near-solid black against the
     dark page background — lighten just this button to a ~16% black fill. */
  background-color: rgba(0, 0, 0, 0.16);
  /* Fixed width (widest code, RU, is ~21.5px + 40px padding) so the pill
     doesn't resize when the current-language label changes. */
  width: 64px;
  padding-left: 0;
  padding-right: 0;
}

.lang__dropdown {
  display: none;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 62px;
  padding: 6px;
  border-radius: 24px;
  background-color: rgba(4, 5, 9, 0.48);
  background-image:
    linear-gradient(180deg, var(--color-lightwhite) 0%, rgba(240, 240, 240, 0) 66.327%),
    linear-gradient(90deg, var(--color-lightwhite) 0%, var(--color-lightwhite) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 20;
}
.lang__dropdown.is-open { display: flex; }

.lang__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 100px;
  background: none;
  cursor: pointer;
  font: var(--fw-semibold) 16px/28px var(--font-sans);
  letter-spacing: -0.16px;
  color: var(--color-grey);
  font-feature-settings: 'dlig' 1, 'lnum' 1, 'pnum' 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang__item:hover,
.lang__item:focus-visible { color: var(--color-white); }
.lang__item.is-active {
  background-color: rgba(0, 0, 0, 0.16);
  color: var(--color-white);
}

@media (max-width: 767px) {
  .site-header__inner {
    padding-inline: 16px;
  }
  .site-header__download {
    display: none;
  }
}
