.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0;
  border-bottom: 1px solid #e4ebf8;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 18px rgba(31, 72, 142, .08);
  text-align: left;
  backdrop-filter: blur(14px);
}

.site-header .header-inner {
  position: relative;
  width: min(1100px, 100%);
  margin: auto;
  padding: 10px 20px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand toggle"
    "nav nav";
  align-items: center;
  gap: 0 12px;
}

.site-header .brand {
  grid-area: brand;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #224c98;
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}

.site-header .brand::before {
  content: "R";
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #74a9ff, #2e6fe8);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 5px 12px rgba(46, 111, 232, .22);
}

.site-brand-copy {
  display: grid;
  line-height: 1.2;
}

.site-brand-copy small {
  margin-top: 4px;
  color: #5f6f87;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: 0;
}

.site-menu-toggle {
  grid-area: toggle;
  display: none;
}

.site-nav {
  grid-area: nav;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 2px;
  margin-top: 10px;
  padding: 0 4px;
  border: 1px solid #e9eef7;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: transparent;
}

.site-nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 10px 13px 8px;
  border-bottom: 2px solid transparent;
  color: #4e6082;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #234fa8;
  background: #f5f8ff;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  border-bottom-color: #2e6fe8;
  color: #234fa8;
}

@media (max-width: 900px) {
  .site-header .header-inner {
    padding: 9px 16px;
  }

  .site-menu-toggle {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid #d5e4ff;
    border-radius: 10px;
    background: #fff;
    color: #234fa8;
    font: 700 .85rem Arial, sans-serif;
    cursor: pointer;
  }

  .site-menu-icon {
    width: 16px;
    display: grid;
    gap: 4px;
  }

  .site-menu-icon span {
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    left: 12px;
    z-index: 31;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 10px;
    border: 1px solid #dfe9ff;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #f4f8ff 100%);
    box-shadow: 0 14px 34px rgba(31, 72, 142, .14);
  }

  .site-nav.is-collapsed {
    display: none;
  }

  .site-nav a {
    min-height: 42px;
    justify-content: center;
    padding: 10px 12px;
    border: 0;
    border-radius: 9px;
    background: #edf5ff;
    text-align: center;
  }

  .site-nav a[aria-current="page"] {
    background: #dfeaff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a {
    transition: none;
  }
}
