.sw-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #0b2443;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.sw-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sw-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.sw-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit!important;
}

.sw-header__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffd100 0%, #ffb300 50%, #ff8c00 100%);
  position: relative;
}

.sw-header__logo-mark::before,
.sw-header__logo-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 4px;
}

.sw-header__logo-mark::before {
  border: 2px solid rgba(11, 36, 67, 0.85);
}

.sw-header__logo-mark::after {
  border-top: 3px solid rgba(11, 36, 67, 0.95);
  border-bottom: 3px solid rgba(11, 36, 67, 0.95);
}

.sw-header__logo-text {
  font-family: "Barlow", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
}

.sw-header__nav {
  display: flex;
}

.sw-header__nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.sw-header__nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: #e5edf7;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.sw-header__nav-link:hover,
.sw-header__nav-link:focus-visible {
  background-color: rgba(255, 209, 0, 0.16);
  color: #ffffff;
  outline: none;
}

.sw-header__nav-link:focus-visible {
  box-shadow: 0 0 0 2px #ffd100;
}

.sw-header__nav-item--cta .sw-header__nav-link--cta {
  background-color: #ffd100;
  color: #0b2443;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.sw-header__nav-item--cta .sw-header__nav-link--cta:hover,
.sw-header__nav-item--cta .sw-header__nav-link--cta:focus-visible {
  background-color: #ffb300;
  color: #0b2443;
}

.sw-header__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(229, 237, 247, 0.5);
  background: transparent;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.sw-header__toggle:focus-visible {
  outline: 2px solid #ffd100;
  outline-offset: 2px;
}

.sw-header__toggle-bar {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background-color: #ffffff;
  transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease, bottom 0.18s ease;
}

.sw-header__toggle-bar:nth-child(1) {
  top: 12px;
}

.sw-header__toggle-bar:nth-child(2) {
  top: 19px;
}

.sw-header__toggle-bar:nth-child(3) {
  bottom: 12px;
}

.sw-header__toggle[aria-expanded="true"] .sw-header__toggle-bar:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.sw-header__toggle[aria-expanded="true"] .sw-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.sw-header__toggle[aria-expanded="true"] .sw-header__toggle-bar:nth-child(3) {
  bottom: auto;
  top: 19px;
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .sw-header__inner {
    padding-inline: 0.75rem;
  }

  .sw-header__toggle {
    display: inline-flex;
  }

  .sw-header__nav {
    position: fixed;
    inset-inline: 0;
    top: 56px;
    background-color: #0b2443;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  }

  .sw-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
  }

  .sw-header__nav-item {
    width: 100%;
  }

  .sw-header__nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 0.9rem;
  }

  .sw-header__nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sw-header__nav,
  .sw-header__toggle-bar {
    transition: none;
  }
}
