@media (max-width: 1040px) {
  .nav-links {
    gap: 14px;
    font-size: 0.88rem;
  }

  .sense-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cards-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 79px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 20px 24px;
    border-bottom: 1px solid var(--linea);
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(23, 108, 168, 0.15);
  }

  .nav-links.is-open {
    display: flex;
  }

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

  .nav-links .button {
    margin-top: 8px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .split-grid,
  .profile-hero-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .profile-meta {
    grid-template-columns: 1fr;
  }

  .cta-band .container,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .nav-wrap,
  .container {
    width: min(100% - 28px, var(--max));
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand span {
    max-width: 180px;
  }

  h1 {
    font-size: 2.52rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .cta-actions,
  .card-actions,
  .button,
  .form-button {
    width: 100%;
  }

  .sense-grid,
  .cards-grid,
  .contact-grid,
  .steps-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .profile-strip {
    grid-template-columns: 1fr;
  }

  .profile-strip img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.2;
  }

  .card,
  .service-card,
  .step-card,
  .contact-card,
  .team-content {
    padding: 20px;
  }
}
