html { scrollbar-gutter: stable; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #e4eaf3;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

.site-header .header-row {
  width: min(1200px, 100% - 48px);
  min-height: 94px;
  gap: 26px;
}

.site-header .brand {
  display: flex;
  gap: 15px;
  align-items: center;
  color: #123e91;
  font-size: 21px;
  font-weight: 750;
  white-space: nowrap;
}

.site-header .brand-motion {
  display: flex;
  flex: none;
  width: 124px;
  height: 65px;
  align-items: flex-start;
}

.site-header .brand-motion img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 204;
  object-fit: contain;
}

.site-header .nav { gap: 31px; }
.site-header .nav a { position: relative; padding: 0; color: #273a58; }
.site-header .nav a.active { color: #123e91; border: 0; }
.site-header .nav a.active::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  border-bottom: 2px solid #d51c33;
}

@media (max-width: 850px) {
  .site-header .header-row {
    width: calc(100% - 32px);
    min-height: 76px;
    gap: 8px;
    position: static;
  }

  .site-header .brand-title { display: none; }
  .site-header .brand-motion { width: 90px; height: 52px; align-items: center; }
  .site-header .menu {
    display: block;
    width: 50px;
    height: 36px;
    padding: 0;
    background: #fff;
    border: 1px solid #e4eaf3;
    border-radius: 8px;
    color: #123e91;
    font: 24px/1 Arial, sans-serif;
    cursor: pointer;
  }

  .site-header .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    padding: 14px 25px;
    gap: 4px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: 0 12px 18px #143b8118;
  }

  .site-header .nav.open { display: flex; }
  .site-header .nav a { padding: 10px 5px; }
  .site-header .nav a.active::after { inset-inline: 5px; }
}

@media (max-width: 360px) {
  .site-header .brand-motion { width: 76px; }
}
