@media (max-width: 1024px) {
  .tab-panel-grid,
  .contact-kine-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid,
  .process-grid,
  .plans-grid,
  .testimonials-grid,
  .team-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-actions .btn-sm {
    display: none;
  }

  .primary-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    background: #fff;
    border-bottom: 1px solid rgba(45, 58, 58, 0.15);
    padding: 1.25rem;
    box-shadow: 0 20px 40px rgba(45, 58, 58, 0.14);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    overflow: hidden;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-pills {
    width: 100%;
    flex-direction: column;
    border-radius: 14px;
    align-items: stretch;
  }

  .nav-pill-link {
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1rem;
    border-radius: 10px;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 1.5rem);
  }

  .metrics-grid,
  .bento-grid,
  .process-grid,
  .plans-grid,
  .testimonials-grid,
  .team-grid,
  .gallery-grid,
  .footer-grid,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

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

  .hero-badge-overlay {
    position: static;
    margin-top: 1rem;
    border-radius: 18px;
  }

  .tabs-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-trigger {
    flex-shrink: 0;
  }
}
