@media (max-width: 1024px) {
  .hero-grid {
    gap: 2.4rem;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .hero-page {
    min-height: auto;
    padding: 3.7rem 0 4.4rem;
  }

  .hero-copy {
    max-width: 680px;
  }

  .placeholder-frame {
    max-width: 100%;
  }

  .benefit-card:not(:last-child),
  .about-card:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-card:nth-child(2n) {
    border-right: 0;
  }

  .benefits-grid .benefit-card h3 {
    margin: 0 0 0.7rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #121212;
  }

  .contact-page .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .contact-image-frame {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 110;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #050505;
    border-top: none;
    padding: 5.5rem 1.5rem 2rem;
    z-index: 105;
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .site-nav a {
    display: block;
    padding: 0.6rem 0;
    width: 100%;
    font-size: 1.05rem;
  }

  .site-nav a.active::after {
    bottom: -0.15rem;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 7vw, 2.8rem);
  }

  .placeholder-frame {
    aspect-ratio: 4 / 3;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-filters {
    justify-content: center;
  }

  .portfolio-filter {
    width: min(100%, 220px);
  }

  .portfolio-card-media {
    padding: 0.7rem;
  }

  .portfolio-card-content {
    padding: 1rem 0.9rem 1.2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid-3up {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 16px;
    gap: 10px;
  }

  .contact-form label {
    gap: 4px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.5rem 0.75rem;
  }

  .contact-form textarea {
    min-height: 80px;
  }

  .contact-form .cta {
    min-height: 42px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 1.25rem, 1180px);
  }

  .header-inner {
    min-height: 58px;
  }

  .brand {
    min-width: auto;
  }

  .brand-logo {
    max-height: 30px;
  }

  .menu-toggle {
    padding: 0.2rem;
  }

  .hero {
    padding: 2.4rem 0 3.4rem;
  }

  .hero-page {
    padding: 2rem 0 2.6rem;
    min-height: auto;
  }

  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .hero-body {
    font-size: 0.92rem;
    margin-bottom: 1.6rem;
  }

  .cta {
    padding: 0.17rem 0.38rem;
    font-size: 0.75rem;
    width: 60%;
    justify-content: center;
    border-radius: 50px;
    display: flex;
    margin: 1.5rem auto 0;
    white-space: nowrap;
  }

  .cta .arrow {
    font-size: 0.75rem;
  }

  .placeholder-frame {
    padding: 0.85rem;
    border-radius: 14px;
  }

  .why-section,
  .about-section,
  .portfolio-section,
  .contact-section {
    padding: 1.6rem 0 2.6rem;
  }

  .why-section h2,
  .portfolio-section h2 {
    font-size: clamp(1.4rem, 5vw, 1.7rem);
  }

  .rainbow-line-center {
    margin-bottom: 1.8rem;
  }

  .benefits-grid {
    gap: 1rem;
    margin-top: 1.6rem;
  }

  .benefit-card {
    padding: 0 0.4rem;
  }

  .benefit-card p {
    font-size: 0.92rem;
  }

  .section-statement {
    font-size: 0.95rem;
    margin-top: 1.6rem;
  }

  .about-card p {
    font-size: 0.9rem;
  }

  .contact-cards h2 {
    font-size: 1.4rem;
  }

  .contact-card {
    padding: 1rem 1rem 1rem 3.8rem;
  }

  .contact-form textarea {
    min-height: 80px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-column .footer-icon-wrapper {
    gap: 0.6rem;
  }

  .footer-column .footer-icon {
    width: 2rem;
    height: 2rem;
    font-size: 1.05rem;
  }

  .site-footer {
    padding: 1rem 0 1.4rem;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(100% - 0.75rem, 1180px);
  }

  .hero h1 {
    font-size: 1.55rem;
  }

  .hero {
    padding: 2rem 0 3rem;
  }

  .hero-page {
    padding: 1.8rem 0 2.4rem;
  }

  .placeholder-frame {
    padding: 0.7rem;
    border-radius: 12px;
  }

  .why-section,
  .about-section,
  .portfolio-section,
  .contact-section {
    padding: 1.4rem 0 2.4rem;
  }

  .contact-card {
    padding: 1rem 1rem 1rem 3.8rem;
  }

  .contact-card h3 {
    font-size: 0.85rem;
  }

  .contact-card p {
    font-size: 0.88rem;
  }

  .contact-card::before {
    width: 2rem;
    height: 2rem;
    left: 0.9rem;
    top: 0.9rem;
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }
}

