.site-header .nav-wrap {
  width: calc(100% - 36px);
  height: 76px;
  gap: clamp(14px, 2vw, 28px);
}

.site-header .brand {
  gap: 9px;
  font-size: 26px;
}

.site-header .brand img {
  width: 54px;
  height: 54px;
}

.site-header .brand small {
  margin-top: 6px;
}

.site-header .main-nav {
  gap: clamp(12px, 1.5vw, 24px);
}

.site-header .main-nav a {
  color: #bdcee1;
  font-size: 13px;
  letter-spacing: 0;
}

.site-header .main-nav .account-link {
  max-width: 148px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.site-header .account-link canvas {
  flex-shrink: 0;
}

.site-header .main-nav a:hover,
.site-header .main-nav a:is(.active, [aria-current]) {
  color: #f3f9ff;
}

.site-header .main-nav a:is(.active, [aria-current])::after {
  position: absolute;
  inset: auto 15% 12px;
  height: 2px;
  border-radius: 4px;
  background: var(--cyan);
  content: '';
}

.site-header .main-nav .nav-join {
  gap: 10px;
  justify-content: center;
  min-height: 44px;
  height: auto;
  margin-left: 5px;
  padding: 9px 13px;
  border: 1px solid #7bd9f5;
  border-radius: 7px;
  color: #0b263c;
  background: #76daf5;
  font-weight: 750;
}

.site-header .main-nav .nav-join:hover {
  color: #0b263c;
  background: #a5eaff;
}

.site-header .nav-join .kf-arrow {
  width: 15px;
  height: 15px;
  margin-left: 0;
}

.site-header :is(.menu-toggle, .main-nav a):focus-visible {
  outline: 2px solid #a5eaff;
  outline-offset: 2px;
}

.site-header .main-nav .nav-join[aria-current="page"] {
  border-color: #76daf5;
  color: #dff7ff;
  background: #19394f;
}

.site-header .main-nav .nav-join[aria-current="page"]::after {
  content: none;
}

@media (max-width: 980px) {
  .site-header .nav-wrap {
    width: calc(100% - 28px);
    height: 68px;
  }

  .site-header .brand {
    font-size: 24px;
  }

  .site-header .brand img {
    width: 48px;
    height: 48px;
  }

  .site-header .menu-toggle {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid #3c5670;
    border-radius: 7px;
    color: #91dcef;
    background: #172b42;
    font-size: 23px;
    line-height: 1;
  }

  .site-header .main-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: none;
    max-height: calc(100dvh - 70px);
    height: auto;
    margin: 0;
    padding: 12px max(14px, calc((100% - 700px) / 2));
    overflow: auto;
    border-bottom: 1px solid #35506b;
    background: #101e31;
    box-shadow: 0 14px 22px #0006;
  }

  .site-header .main-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .site-header .main-nav a {
    min-height: 44px;
    height: auto;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    white-space: normal;
  }

  .site-header .main-nav .account-link {
    max-width: none;
  }

  .site-header .main-nav a:is(.active, [aria-current]) {
    background: #1e3b53;
  }

  .site-header .main-nav a:is(.active, [aria-current])::after {
    display: none;
  }

  .site-header .main-nav .nav-join {
    margin-left: 0;
  }
}
