.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  padding: 18px 32px 0;
  pointer-events: none;
}

.site-header__shell {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1216px, 100%);
  height: 64px;
  margin: 0 auto;
  padding: 0 25px;
  border: 1px solid rgba(225, 231, 240, 0.92);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(38, 58, 88, 0.13);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.site-header__brand,
.site-footer__brand-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-header__logo,
.site-footer__logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(0, 103, 207, 0.18);
}

.site-header__name {
  color: #005ac1;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.site-header__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  justify-self: center;
}

.site-header__link {
  color: #1f2937;
  font-size: 14px;
  line-height: 20px;
  transition: color 160ms ease;
}

.site-header__link:hover,
.site-header__link.is-active {
  color: #0066d1;
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 40px;
  border-radius: 999px;
  background: #0567cf;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 98, 204, 0.24);
}

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

.site-header__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(5, 103, 207, 0.24);
  border-radius: 999px;
  background: transparent;
  color: #0567cf;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.site-header__login:hover {
  background: rgba(5, 103, 207, 0.08);
  border-color: rgba(5, 103, 207, 0.4);
}

.site-header__toggle {
  display: none;
}

@media (max-width: 860px) {
  .site-header {
    padding: 12px 16px 0;
  }

  .site-header__shell {
    display: flex;
    justify-content: space-between;
    height: 58px;
    padding: 0 16px;
  }

  .site-header__name {
    font-size: 18px;
  }

  .site-header__logo {
    width: 34px;
    height: 34px;
  }

  .site-header__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(5, 103, 207, 0.1);
    color: #0567cf;
    cursor: pointer;
  }

  .site-header__toggle-line {
    display: block;
    width: 18px;
    height: 2px;
    margin-inline: auto;
    border-radius: 999px;
    background: currentColor;
  }

  .site-header__nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(225, 231, 240, 0.92);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 50px rgba(38, 58, 88, 0.13);
    backdrop-filter: blur(18px);
  }

  .site-header__nav.is-open {
    display: flex;
  }

  .site-header__link {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
  }

  .site-header__link:hover,
  .site-header__link.is-active {
    background: rgba(5, 103, 207, 0.08);
  }

  .site-header__actions {
    margin-left: auto;
    gap: 8px;
  }

  .site-header__login {
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .site-header__cta {
    display: none;
  }
}

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

.site-header__user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(5, 103, 207, 0.24);
}

.site-header__user-name {
  max-width: 96px;
  overflow: hidden;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-header__user-logout {
  color: #0567cf;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-header__user-logout:hover {
  color: #0066d1;
  text-decoration: underline;
}

@media (max-width: 860px) {
  .site-header__user-name {
    max-width: 56px;
    font-size: 13px;
  }
}
