.ds-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--ds-header);
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid #e6eaf0;
  backdrop-filter: blur(12px);
}

.ds-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, var(--ds-max));
  height: 100%;
  margin: 0 auto;
  gap: 22px;
}

.ds-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ds-navy);
  font-weight: 800;
  text-decoration: none;
}

.ds-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 108, 255, .12);
}

.ds-brand span {
  line-height: 1.05;
}

.ds-brand small {
  display: block;
  color: var(--ds-blue);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.ds-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ds-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: #223a4d;
  font-size: .87rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}

.ds-menu a:hover,
.ds-menu a:focus,
.ds-menu a[aria-current="page"] {
  color: var(--ds-blue-600);
  background: rgba(0, 108, 255, .08);
  outline: none;
}

.ds-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ds-mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ds-navy);
  background: #fff;
  border: 1px solid var(--ds-line);
  border-radius: 999px;
  cursor: pointer;
}

.ds-mobile-toggle span,
.ds-mobile-toggle::before,
.ds-mobile-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  content: "";
  background: currentColor;
  border-radius: 999px;
}

.ds-footer {
  padding: 46px 0 34px;
  color: #d8e6f8;
  background: var(--ds-navy);
}

.ds-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr;
  gap: 28px;
  width: min(100% - 32px, var(--ds-max));
  margin: 0 auto;
}

.ds-footer a {
  color: #d8e6f8;
  text-decoration: none;
}

.ds-footer a:hover,
.ds-footer a:focus {
  color: #fff;
}

.ds-footer h2,
.ds-footer h3 {
  margin: 0 0 12px;
  color: #fff;
}

.ds-footer p {
  max-width: 560px;
  margin: 0;
  color: #b8c9dd;
  line-height: 1.7;
}

.ds-footer-links {
  display: grid;
  gap: 10px;
}

.ds-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 32px, var(--ds-max));
  margin: 34px auto 0;
  padding-top: 22px;
  color: #9fb4cc;
  font-size: .85rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

@media (max-width: 980px) {
  .ds-mobile-toggle {
    display: inline-block;
  }

  .ds-menu {
    position: fixed;
    top: var(--ds-header);
    left: 12px;
    right: 12px;
    display: none;
    grid-template-columns: 1fr;
    padding: 12px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-radius-md);
    box-shadow: var(--ds-shadow-md);
  }

  .ds-menu.is-open {
    display: grid;
  }

  .ds-menu a {
    justify-content: center;
    min-height: 46px;
  }

  .ds-header-actions .ds-btn--ghost {
    display: none;
  }
}

@media (max-width: 760px) {
  .ds-nav,
  .ds-footer-grid,
  .ds-footer-bottom {
    width: min(100% - 24px, var(--ds-max));
  }

  .ds-brand span {
    font-size: .92rem;
  }

  .ds-footer-grid,
  .ds-footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}
