.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
  background: linear-gradient(180deg, rgba(4, 6, 17, 0.95), rgba(4, 6, 17, 0.72));
  backdrop-filter: blur(14px);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-height);
  padding: 0 20px;
  border: 1px solid rgba(135, 99, 255, 0.18);
  border-radius: 24px;
  background: rgba(7, 10, 26, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.site-header__logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: radial-gradient(circle at 30% 30%, #b992ff, #5e42ff 65%, #31206e 100%);
  box-shadow: 0 0 20px rgba(131, 97, 255, 0.35);
}

.site-header__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-header__title {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-header__subtitle {
  margin-top: 4px;
  font-size: 0.7rem;
  color: var(--purple-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 113, 255, 0.22);
  border-radius: 12px;
  color: #fff;
  background: rgba(18, 24, 58, 0.85);
}

.site-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.site-header__menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--text-soft);
  font-weight: 600;
  transition: color var(--transition), background var(--transition);
}

.site-header__link:hover,
.site-header__link:focus-visible {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.site-header__link.is-active {
  color: #fff;
}

.site-header__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a67bff, #7a59ff);
  box-shadow: 0 0 12px rgba(145, 106, 255, 0.55);
}

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

.site-header__city-btn {
  min-width: 190px;
}

@media (max-width: 1100px) {
  .site-header__bar {
    gap: 14px;
    padding: 0 14px;
  }

  .site-header__link {
    padding: 0 10px;
    font-size: 0.95rem;
  }

  .site-header__city-btn {
    min-width: auto;
    padding-inline: 16px;
  }
}

@media (max-width: 900px) {
  .site-header__bar {
    flex-wrap: wrap;
    padding: 12px 14px;
    gap: 10px;
  }

  .site-header__toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .site-header__toggle::before {
    content: "☰";
    font-size: 1.3rem;
    color: var(--text-main);
  }

  .site-header.is-open .site-header__toggle::before {
    content: "✕";
  }

  .site-header__nav {
    order: 3;
    flex-basis: 100%;
    display: none;
    justify-content: stretch;
  }

  .site-header.is-open .site-header__nav {
    display: block;
  }

  .site-header__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 12px;
  }

  .site-header__link {
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(133, 145, 192, 0.12);
    background: rgba(255, 255, 255, 0.02);
  }

  .site-header__link.is-active::after {
    left: 10px;
    right: auto;
    width: 42px;
    bottom: 6px;
  }

  .site-header__actions {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .site-header.is-open .site-header__actions {
    display: flex;
  }

  .site-header__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .site-header__city-btn {
    width: 100%;
  }
}
