@media (min-width: 761px) and (max-width: 1040px) {
  body .header .nav {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  body .header .nav-menu {
    order: 3;
    flex: 1 0 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
  }

  body .header .nav-cta {
    margin-left: auto;
  }
}

html {
  scroll-behavior: smooth;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #1a4a9b;
  box-shadow: 0 4px 14px rgba(18, 59, 122, 0.28);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
  background: #123b7a;
}

.back-to-top:focus-visible {
  outline: 3px solid #7eaef6;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    min-height: 44px;
    padding: 8px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .back-to-top {
    transition: none;
  }
}
