:root {
  --ink: #061943;
  --blue: #1268e8;
  --teal: #079a9b;
  --paper: #ffffff;
  --soft: #f8fbfe;
  --line: #d8e4f0;
  --muted: #526681;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(160px, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 74px;
  padding: 12px clamp(22px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 800;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(6, 25, 67, 0.08);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  color: var(--ink);
  font-weight: 700;
}

.nav-links a {
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  border-color: var(--teal);
}

.nav-button {
  justify-self: end;
  min-height: 44px;
  padding: 10px 18px;
  color: var(--paper);
  background: var(--blue);
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(18, 104, 232, 0.22);
}

.mobile-menu-button {
  display: none;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: flex;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 22px 28px 18px;
    overflow: hidden;
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.96);
  }

  .nav-links {
    display: none;
  }

  .site-header.nav-open .nav-links {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .site-header.nav-open .nav-links a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .nav-button {
    display: none;
  }

  .mobile-menu-button {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    padding: 13px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(6, 25, 67, 0.1);
  }

  .mobile-menu-button span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--ink);
    border-radius: 999px;
  }

  .brand {
    gap: 14px;
    font-size: 1.7rem;
  }

  .brand img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }
}
