.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(188, 202, 220, .68);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.navbar.is-scrolled {
  border-bottom-color: rgba(155, 174, 199, .88);
  background: rgba(248, 251, 255, .94);
  box-shadow: 0 10px 28px rgba(16, 24, 40, .08);
}

.navbar-inner {
  width: min(1280px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(230px, auto) auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  transition: min-height .18s ease, padding .18s ease;
}

.navbar.is-compact .navbar-inner {
  min-height: 64px;
  padding: 8px 0;
}

.navbar-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #17202a;
}

.navbar-brand:hover {
  text-decoration: none;
}

.navbar-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(181, 138, 42, .28), 0 8px 18px rgba(18, 58, 111, .08);
  transition: width .18s ease, height .18s ease;
}

.navbar.is-compact .navbar-logo {
  width: 38px;
  height: 38px;
}

.navbar-brand-text {
  min-width: 0;
  display: grid;
  line-height: 1.12;
}

.navbar-brand-text strong {
  color: #0f2f5f;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.navbar-brand-text small {
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.navbar-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.navbar-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 12px;
  color: #123a6f;
  font-size: 14px;
  font-weight: 800;
}

.navbar-menu a:hover {
  background: rgba(18, 58, 111, .07);
  text-decoration: none;
}

.navbar-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #d8e0ea;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  color: #123a6f;
  padding: 10px;
  cursor: pointer;
}

.navbar-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.navbar.menu-open .navbar-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar.menu-open .navbar-toggle span:nth-child(2) {
  opacity: 0;
}

.navbar.menu-open .navbar-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar-menu a:focus-visible,
.navbar-toggle:focus-visible {
  outline: 3px solid rgba(181, 138, 42, .42);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .navbar-inner {
    grid-template-columns: minmax(210px, auto) auto;
    gap: 16px;
  }

  .navbar-menu {
    gap: 2px;
  }

  .navbar-menu a {
    padding: 0 8px;
    font-size: 13px;
  }

}

@media (max-width: 820px) {
  .navbar-inner {
    width: min(100% - 28px, 1280px);
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    min-height: 70px;
    padding: 10px 0;
  }

  .navbar-brand-text strong {
    font-size: 16px;
  }

  .navbar-brand-text small {
    font-size: 11px;
  }

  .navbar-logo,
  .navbar.is-compact .navbar-logo {
    width: 38px;
    height: 38px;
  }

  .navbar-toggle {
    display: block;
    justify-self: end;
  }

  .navbar-menu {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    justify-content: stretch;
    white-space: normal;
    padding: 8px;
    border: 1px solid rgba(216, 224, 234, .95);
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 16px 36px rgba(16, 24, 40, .10);
  }

  .navbar.menu-open .navbar-menu {
    display: grid;
    gap: 4px;
  }

  .navbar-menu a {
    min-height: 44px;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .navbar-inner {
    width: min(100% - 20px, 1280px);
  }

  .navbar-brand {
    gap: 9px;
  }

  .navbar-brand-text small {
    display: none;
  }

}

@media print {
  .navbar {
    display: none !important;
  }
}
