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

  .hero-visual {
    min-height: auto;
    max-width: 680px;
    margin: 0 auto;
  }

  .six-grid,
  .pricing-grid,
  .testimonial-grid,
  .service-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .navbar {
    height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    top: 68px;
    left: 14px;
    right: 14px;
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

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

  .nav-menu a,
  .theme-toggle {
    justify-content: flex-start;
    width: 100%;
  }

  .hero,
  .page-hero {
    padding: 64px 0 54px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .hero-copy p,
  .page-hero p,
  .section-heading p {
    font-size: 1.04rem;
  }

  .hero-actions,
  .trust-row {
    align-items: stretch;
  }

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

  .trust-row span {
    width: 100%;
  }

  .floating-card {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .hero-visual {
    align-items: stretch;
  }

  .hero-visual img {
    width: 100%;
    border-radius: 18px;
    transform: none;
    border-width: 5px;
  }

  .hero-proof {
    align-items: flex-start;
  }

  .section {
    padding: 66px 0;
  }

  .six-grid,
  .four-grid,
  .pricing-grid,
  .testimonial-grid,
  .stats-grid,
  .service-detail-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .price-card:hover,
  .price-card.featured:hover {
    transform: translateY(-4px);
  }

  .form-row.two {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .brand span:last-child {
    max-width: 170px;
    white-space: normal;
    line-height: 1.1;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 2rem;
  }

  .service-card,
  .detail-card,
  .price-card,
  .contact-form,
  .testimonial-grid figure {
    padding: 22px;
  }

  .cta-banner {
    border-radius: 16px;
  }

  .hero-proof {
    display: grid;
  }

  .newsletter div {
    flex-direction: column;
  }

  .newsletter button {
    width: 100%;
    height: 46px;
  }
}
