[data-shared-header] {
  position: sticky;
  top: 0;
  z-index: 220;
  display: block;
}

.site-header {
  position: relative;
  background: rgba(7, 15, 42, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: #061238;
  background: linear-gradient(145deg, #f7cf58 8%, #6fd2f3 95%);
}

.brand-name {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #f8fafc;
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.top-links a {
  text-decoration: none;
  color: #d7deee;
  font-size: clamp(0.92rem, 1vw, 1rem);
  font-weight: 500;
  padding: 4px 0;
  transition: color 160ms ease, transform 160ms ease;
}

.top-links a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.header-gradient {
  height: 14px;
  background: linear-gradient(90deg, #173d5f 0%, #1a3553 35%, #2c2d3d 70%, #5a4834 100%);
}

@media (max-width: 700px) {
  .site-header .wrap {
    padding: 0 14px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
    gap: 10px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    border-radius: 10px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .top-links {
    width: 100%;
    gap: 10px 16px;
  }
}
