.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 241, 232, 0.92);
  border-bottom: 1px solid rgba(21, 23, 24, 0.08);
  backdrop-filter: blur(16px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

.topbar .nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  font-weight: 750;
  letter-spacing: 0;
}

.topbar .brand img {
  width: 34px;
  height: 34px;
}

.topbar .nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  font-size: 0.91rem;
  color: #303637;
  white-space: nowrap;
}

.topbar .nav-links a {
  border-bottom: 1px solid transparent;
  padding-block: 4px;
}

.topbar .nav-links a:not(.button):hover,
.topbar .nav-links a:not(.button):focus-visible {
  border-color: var(--petrol);
  color: var(--petrol-dark);
}

.topbar .nav-links .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--petrol-dark);
  border-radius: 4px;
  background: var(--petrol-dark);
  color: var(--white);
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.topbar .nav-links .button:hover,
.topbar .nav-links .button:focus-visible {
  background: var(--petrol);
  border-color: var(--petrol);
  border-bottom-color: var(--petrol);
  color: var(--white);
}

@media (min-width: 1181px) {
  .topbar .nav-links a:not(.button) {
    transform: translateX(-10px);
  }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .topbar .nav {
    gap: 18px;
  }

  .topbar .brand {
    min-width: 205px;
  }

  .topbar .nav-links {
    gap: 16px;
  }

  .topbar .nav-links .nav-section-link {
    display: none;
  }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .topbar .nav {
    min-height: 72px;
    flex-direction: row;
    align-items: center;
    padding: 0;
  }

  .topbar .nav-links {
    width: auto;
    justify-content: flex-end;
    overflow-x: visible;
  }

  .topbar .nav-links .nav-section-link {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: sticky;
  }

  .topbar .nav {
    width: auto;
    max-width: none;
    min-height: 62px;
    margin-left: 16px;
    margin-right: 16px;
    flex-direction: row;
    align-items: center;
    padding: 10px 0;
  }

  .topbar .brand {
    min-width: 0;
    flex: 0 0 auto;
  }

  .topbar .brand span {
    display: none;
  }

  .topbar .nav-links {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    font-size: 0.86rem;
    white-space: normal;
    overflow-x: visible;
  }

  .topbar .nav-links a:not(.button) {
    display: none;
  }

  .topbar .nav-links .button {
    width: auto;
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.84rem;
    line-height: 1;
  }

  .topbar .brand img {
    width: 34px;
    height: 34px;
  }
}
