.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(232, 229, 240, 0.9);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(45, 35, 105, 0.08);
  backdrop-filter: blur(14px);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--slate-700);
  font-size: 0.9rem;
  font-weight: 750;
  transition:
    color 180ms ease,
    background 180ms ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-800);
  background: var(--blue-50);
}

.has-dropdown {
  position: relative;
}

.nav-brand img {
  width: 160px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  display: none;
  min-width: 220px;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  list-style: none;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  padding: 10px 12px;
}

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

.nav-actions .btn {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
}

.nav-mobile-actions {
  display: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 2px solid var(--slate-200);
  border-radius: 13px;
  background: var(--white);
  cursor: pointer;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue-800);
  transition:
    transform 220ms ease,
    opacity 180ms ease,
    width 220ms ease;
  grid-area: 1 / 1;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-6px);
}
.nav-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] {
  border-color: rgba(15, 31, 61, 0.18);
  box-shadow: var(--shadow-sm);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
  width: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
}

footer {
  padding: 70px 0 28px;
  color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(18, 184, 196, 0.18),
      transparent 25%
    ),
    linear-gradient(145deg, var(--blue-950), #151033);
}

footer .brand,
footer h4 {
  color: var(--white);
}

footer p,
footer a,
footer li,
.footer-bottom {
  color: rgba(255, 255, 255, 0.74);
}

footer a:hover {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 36px;
}

.footer-brand p {
  max-width: 360px;
  margin-top: 16px;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: grid;
  }

  .nav-actions {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 88px;
    right: 18px;
    left: 18px;
    max-height: calc(100vh - 86px);
    max-height: calc(100dvh - 86px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--slate-200);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    z-index: 10;
  }

  .nav-menu.open {
    display: flex;
    text-align: center;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a {
    border-radius: 14px;
    padding: 13px 14px;
  }

  .dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    margin-top: 6px;
    box-shadow: none;
  }

  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu {
    display: none;
  }

  .has-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .dropdown-trigger .fa-angle-down {
    transition: transform 180ms ease;
  }

  .has-dropdown.open .dropdown-trigger .fa-angle-down {
    transform: rotate(180deg);
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .nav-mobile-actions {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--slate-200);
  }

  .nav-mobile-actions .btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .nav-brand img {
    width: 140px;
  }

  .nav-inner {
    min-height: 68px;
  }

  .nav-brand span:last-child,
  .brand span:last-child {
    max-width: 160px;
    line-height: 1.15;
  }

  .nav-menu {
    top: 80px;
    right: 12px;
    left: 12px;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
  }

  .nav-mobile-actions {
    margin-top: 14px;
    padding-top: 14px;
  }

  .footer-grid,
  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
  }
}
