:root {
  --shared-header-navy: #092b43;
  --shared-header-navy-deep: #041a29;
  --shared-header-teal: #087d91;
  --shared-header-muted: #627887;
  --shared-header-border: #d8e4e8;
}

.shared-topbar {
  background: var(--shared-header-navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #c9d6de;
  font-size: .82rem;
  letter-spacing: .01em;
}

.shared-topbar .container {
  align-items: center;
  display: flex;
  min-height: 40px;
}

.shared-topbar-info { display: flex; flex-wrap: wrap; }
.shared-topbar-info span {
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  padding: 0 18px;
}
.shared-topbar-info span:first-child { padding-left: 0; }
.shared-topbar-info span:last-child { border-right: 0; }
.shared-topbar a { color: inherit; text-decoration: none; }
.shared-topbar a:hover { color: #fff; }

.shared-header {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(8, 28, 51, .08);
  box-shadow: 0 8px 28px rgba(6, 35, 56, .05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.shared-nav {
  align-items: center;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  min-height: 94px;
}

.shared-brand {
  align-items: center;
  display: flex;
  flex: 0 1 410px;
  gap: 15px;
  max-width: 410px;
  text-decoration: none;
}
.shared-brand > div { min-width: 0; }
.shared-brand img { display: block; height: auto; object-fit: contain; width: 74px; }
.shared-brand strong {
  color: var(--shared-header-navy);
  display: block;
  font-size: .86rem;
  letter-spacing: .065em;
  line-height: 1.25;
}
.shared-brand span {
  color: var(--shared-header-muted);
  display: block;
  font-size: .71rem;
  line-height: 1.3;
  margin-top: 4px;
}

.shared-menu {
  align-items: center;
  color: #354c5d;
  display: flex;
  font-size: .89rem;
  font-weight: 700;
  gap: 23px;
}
.shared-menu a { color: inherit; padding: 36px 0; position: relative; text-decoration: none; white-space: nowrap; }
.shared-menu a::after {
  background: var(--shared-header-teal);
  border-radius: 2px;
  bottom: 26px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 100%;
  transition: .25s;
}
.shared-menu a:hover, .shared-menu a.active { color: var(--shared-header-navy); }
.shared-menu a:hover::after, .shared-menu a.active::after { right: 0; }
.shared-menu-toggle { display: none; }

@media (max-width: 1120px) {
  .shared-brand { flex-basis: 350px; }
  .shared-brand img { width: 64px; }
  .shared-brand strong { font-size: .78rem; }
  .shared-menu { font-size: .82rem; gap: 15px; }
}

@media (max-width: 900px) {
  .shared-topbar .container { justify-content: center; }
  .shared-topbar-info span:first-child { display: none; }
  .shared-nav { min-height: 82px; }
  .shared-brand { flex-basis: auto; }
  .shared-brand img { width: 60px; }
  .shared-brand strong { font-size: .74rem; }
  .shared-brand span { font-size: .65rem; }
  .shared-menu-toggle {
    background: transparent;
    border: 1px solid var(--shared-header-border);
    border-radius: 50%;
    color: var(--shared-header-navy);
    cursor: pointer;
    display: block;
    flex: 0 0 auto;
    font-size: 0;
    height: 46px;
    position: relative;
    width: 46px;
  }
  .shared-menu-toggle::before, .shared-menu-toggle::after {
    background: currentColor;
    content: "";
    height: 2px;
    left: 13px;
    position: absolute;
    right: 13px;
    transition: .25s;
  }
  .shared-menu-toggle::before { box-shadow: 0 6px 0 currentColor; top: 17px; }
  .shared-menu-toggle::after { top: 29px; }
  .shared-menu-toggle[aria-expanded="true"]::before { box-shadow: none; top: 22px; transform: rotate(45deg); }
  .shared-menu-toggle[aria-expanded="true"]::after { top: 22px; transform: rotate(-45deg); }
  .shared-menu {
    align-items: stretch;
    background: #fff;
    border-top: 1px solid var(--shared-header-border);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .12);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    padding: 14px 20px 24px;
    position: absolute;
    right: 0;
    top: 82px;
    z-index: 100;
  }
  .shared-menu.open { display: flex; }
  .shared-menu a { border-bottom: 1px solid #edf0f2; min-height: 48px; padding: 14px 12px; }
  .shared-menu a::after { display: none; }
  .shared-menu a.active { border-left: 3px solid var(--shared-header-teal); padding-left: 17px; }
  body.shared-menu-open { overflow: hidden; }
}

@media (max-width: 560px) {
  .shared-topbar { display: none; }
  .shared-nav { min-height: 74px; }
  .shared-brand { gap: 10px; }
  .shared-brand img { width: 52px; }
  .shared-brand strong { font-size: .66rem; letter-spacing: .04em; }
  .shared-brand span { display: none; }
  .shared-menu { max-height: calc(100dvh - 74px); top: 74px; }
}
