@media (max-width: 1024px) {
  .service-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .page-hero {
    min-height: 520px;
  }
}

@media (max-width: 768px) {
  .container,
  .narrow {
    width: min(100% - 40px, 335px);
    margin-left: 20px;
    margin-right: auto;
  }

  .topbar__inner {
    min-height: auto;
    padding: 10px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .nav-shell {
    min-height: 76px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--color-line);
    border-radius: 4px;
    background: #fff;
  }

  .nav-toggle span:not(.sr-only) {
    width: 22px;
    height: 2px;
    background: var(--color-ink);
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border-top: 1px solid var(--color-line);
    box-shadow: var(--shadow-soft);
  }

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

  .hero,
  .page-hero {
    min-height: 500px;
    background-image: linear-gradient(90deg, rgba(20, 28, 38, 0.9), rgba(20, 28, 38, 0.65)), var(--hero-image);
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .page-hero h1 {
    font-size: clamp(2.2rem, 9vw, 3.4rem);
  }

  .hero__content,
  .page-hero .container {
    width: min(100% - 40px, 300px);
    margin-left: 20px;
    margin-right: auto;
  }

  .hero__actions {
    max-width: 280px;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .split__grid,
  .feature-grid,
  .award-grid,
  .contact-grid,
  .service-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .check-list--columns {
    grid-template-columns: 1fr;
  }
}

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

  .brand img {
    width: 146px;
  }

  .hero,
  .page-hero {
    min-height: 520px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .feature-panel,
  .service-card,
  .contact-card,
  .notice,
  .list-panel {
    padding: 22px;
  }
}
