@media (min-width: 801px) and (max-width: 1024px) {
  .section-wrap {
    width: min(1420px, 90%);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    padding-inline: 1vw;
  }

  .hero-visual {
    min-height: 410px;
  }

  .booking-card {
    width: min(340px, 48%);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .section-wrap {
    width: min(100% - 32px, 680px);
  }

  .hero,
  .hero-copy,
  .hero-visual,
  .about-card,
  .pricing-grid,
  .contact,
  .contact-details {
    min-width: 0;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-backdrop {
    align-items: flex-start;
    overflow-y: auto;
    padding: 16px;
  }

  .modal {
    width: min(100%, 560px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
  }
}

@media (max-width: 520px) {
  .section-wrap {
    width: calc(100% - 28px);
  }

  .hero h1 {
    font-size: clamp(34px, 9.5vw, 42px);
    line-height: 1.02;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact {
    padding: 26px 20px;
  }

  .contact h2 br {
    display: none;
  }

  .modal {
    padding: 24px 18px;
  }
}

@media (max-width: 360px) {
  .section-wrap {
    width: calc(100% - 24px);
  }

  .header-actions .btn-primary {
    padding: 9px;
  }

  .header-actions .btn-primary span {
    display: none;
  }

  .hero-visual {
    min-height: 475px;
  }

  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card img {
    height: 160px;
  }

  .service-content {
    padding: 14px;
  }

  .service-card h3 {
    font-size: 13px;
  }

  .service-card p {
    font-size: 11px;
  }
}

.site-header {
  transition: height .25s ease, padding .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.site-header.is-scrolled {
  height: 64px;
  padding-inline: max(5%, calc((100% - 1420px) / 2));
  border-bottom-color: transparent;
  box-shadow: 0 8px 28px #1018281a, inset 0 -2px 0 var(--red);
  background: #fffffff5;
}

.site-header.is-scrolled .nav-links a {
  padding-block: 23px;
}

.site-header.is-scrolled .nav-links a.active:after {
  bottom: 14px;
}

@media (max-width: 800px) {
  .site-header.is-scrolled {
    height: 60px;
    padding-inline: 4%;
  }

  .site-header.is-scrolled .nav-links {
    top: 60px;
  }

  .site-header.is-scrolled .nav-links a {
    padding-block: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}
