@media (max-width: 960px) {
  .site-header {
    background: rgba(2, 10, 24, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-bar {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 12px 20px;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    border: none;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    flex-basis: 100%;
    order: 3;
    margin: 0;
  }

  .nav-links,
  .nav-actions {
    display: none;
    margin: 0;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    font-size: 1rem;
    letter-spacing: 0.01em;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    color: #fff;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    order: 2;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, border-color 0.2s ease;
    touch-action: manipulation;
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform-origin: center;
  }

  .nav-actions {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    flex-basis: 100%;
    margin-top: 12px;
    padding-top: 16px;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-actions .primary-button {
    width: 100%;
    min-height: 52px;
    border-radius: 12px;
  }

  .nav-actions .secondary-button {
    width: 100%;
    min-height: 52px;
    border-radius: 12px;
  }

  .nav-bar.active {
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  }

  .nav-bar.active .nav-menu {
    display: flex;
  }

  .nav-bar.active .nav-links,
  .nav-bar.active .nav-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: static;
    padding: 0;
    border-radius: 0;
    background: none;
    border: none;
    box-shadow: none;
  }

  .nav-bar.active .nav-links {
    margin-top: 16px;
    padding-top: 12px;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-bar.active .nav-actions {
    gap: 12px;
  }

  .nav-bar.active .nav-actions a,
  .nav-bar.active .nav-links a {
    width: 100%;
  }

  .nav-bar.active .nav-actions a {
    justify-content: center;
  }

  .nav-bar.active .nav-links a {
    justify-content: flex-start;
    box-shadow: none;
    padding: 14px 0;
  }

  .nav-bar.active .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-bar.active .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-bar.active .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-bar.active .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  @media (max-width: 540px) {
    .nav-bar {
      padding: 12px 16px;
      gap: 10px;
    }

    .nav-links a {
      padding: 13px 0;
    }

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

    .nav-actions .primary-button {
      min-height: 50px;
    }
  }
}
