.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 18, 32, 0.96);
  border-bottom: 1px solid #1d3047;
  backdrop-filter: blur(10px);
}

.site-nav__inner {
  box-sizing: border-box;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  white-space: nowrap;
}

.site-nav a {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #a9c7e8;
  padding: 7px 10px;
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: #426991;
  color: #ffffff;
}

.site-nav a[aria-current="page"] {
  background: #163b63;
  border-color: #4c8dcc;
  color: #ffffff;
}

footer nav {
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
}

footer nav.site-footer-nav {
  display: block;
  margin-top: 12px;
}

.site-footer-nav__tools {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  max-width: 820px;
  margin: 0 auto;
  border-bottom: 1px solid #1d3047;
}

.site-footer-nav__group {
  min-width: 0;
  position: relative;
}

.site-footer-nav__group details {
  min-width: 0;
}

.site-footer-nav__group summary {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-bottom-width: 2px;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: #a9c7e8;
  cursor: pointer;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .015em;
  list-style: none;
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.site-footer-nav__group summary::-webkit-details-marker {
  display: none;
}

.site-footer-nav__group summary::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .16s ease;
}

.site-footer-nav__group details:hover > summary,
.site-footer-nav__group details:focus-within > summary,
.site-footer-nav__group details[open] > summary {
  border-color: #dcecff;
  background: #e8f2ff;
  color: #10243a;
  box-shadow: none;
}

.site-footer-nav__group details[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}

.site-footer-nav__links {
  display: none;
  flex-direction: column;
  align-items: stretch;
  position: absolute;
  top: auto;
  bottom: calc(100% + 4px);
  left: 0;
  z-index: 40;
  box-sizing: border-box;
  width: max-content;
  min-width: 250px;
  max-width: min(320px, calc(100vw - 28px));
  max-height: min(62vh, 460px);
  padding: 6px;
  overflow-y: auto;
  border: 1px solid #344d69;
  border-radius: 10px;
  background: #0e1b2c;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38);
  text-align: left;
}

.site-footer-nav__group details:hover .site-footer-nav__links,
.site-footer-nav__group details:focus-within .site-footer-nav__links,
.site-footer-nav__group details[open] .site-footer-nav__links {
  display: flex;
}

.site-footer-nav__group:nth-child(2) .site-footer-nav__links {
  left: 50%;
  transform: translateX(-50%);
}

.site-footer-nav__group:nth-child(3) .site-footer-nav__links {
  right: 0;
  left: auto;
}

.site-footer-nav__site-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #1d3047;
}

.site-footer-nav__separator {
  padding: 0 10px;
  color: #526982;
  font-size: .78rem;
  line-height: 1;
}

.site-footer-nav__group a,
.site-footer-nav__site-links a {
  color: #7894b4;
  font-size: .78rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.site-footer-nav__links a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 9px 11px;
  border-radius: 6px;
  white-space: normal;
}

.site-footer-nav__links a + a {
  border-top: 1px solid rgba(120, 148, 180, .16);
}

.site-footer-nav__group a:hover,
.site-footer-nav__group a:focus-visible,
.site-footer-nav__site-links a:hover,
.site-footer-nav__site-links a:focus-visible {
  background: #e8f2ff;
  color: #10243a;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .site-footer-nav__tools {
    width: 100%;
  }

  .site-footer-nav__group summary {
    gap: 5px;
    min-height: 44px;
    padding: 10px 9px;
    font-size: .74rem;
  }

  .site-footer-nav__group:first-child .site-footer-nav__links {
    left: 0;
  }

  .site-footer-nav__group:nth-child(2) .site-footer-nav__links {
    left: 50%;
    transform: translateX(-50%);
  }

  .site-footer-nav__group:nth-child(3) .site-footer-nav__links {
    right: 0;
    left: auto;
  }
}

footer p {
  max-width: 100%;
  margin: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

footer > div:empty {
  display: none;
}
