.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(7, 27, 46, 0.08);
  box-shadow: 0 4px 24px rgba(4, 19, 33, 0.03);
  backdrop-filter: saturate(180%) blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy-700), var(--navy-950));
  border-radius: 13px;
  box-shadow: 0 7px 18px rgba(7, 27, 46, 0.18);
}

.brand__mark svg { width: 34px; height: 34px; }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--navy-900);
}

.brand__text small {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--gray-600);
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.topbar__nav a {
  position: relative;
  padding: 25px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.2s ease;
}

.topbar__nav a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--cyan-400);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.topbar__nav a:hover,
.topbar__nav a:focus-visible { color: var(--navy-900); }
.topbar__nav a:hover::after,
.topbar__nav a:focus-visible::after { transform: scaleX(1); }

.topbar__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--success-dark);
  text-decoration: none;
  background: #e9f8f2;
  border: 1px solid #c8ecdf;
  border-radius: 999px;
}

.topbar__action svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .topbar__nav { display: none; }
}

@media (max-width: 640px) {
  .topbar__inner { min-height: 68px; }
  .topbar__action { display: none; }
  .brand__mark { width: 40px; height: 40px; flex-basis: 40px; }
  .brand__mark svg { width: 31px; height: 31px; }
  .brand__text small { max-width: 210px; }
}
