@media (max-width: 1180px) {
  .header {
    position: sticky;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    z-index: 46;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 22px 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav a {
    font-family: var(--font-display);
    font-size: 1.25rem;
    width: 100%;
    padding: 10px 0;
  }

  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 45;
  }
}

@media (max-width: 1100px) {
  .benefit-grid,
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .step::after {
    display: none;
  }

  .service-grid,
  .project-grid,
  .about-panel,
  .stats-panel,
  .cta-panel,
  .footer__grid,
  .solar-spotlight,
  .feature-row,
  .split-block,
  .contact-hero-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    padding: 36px 28px;
  }

  .hero__content {
    padding: 108px 22px 56px;
    width: min(100%, 720px);
  }

  .about-panel__copy,
  .stats-panel__grid {
    padding: 36px 28px;
  }

  .about-panel__media,
  .stats-panel__media {
    min-height: 320px;
  }

  .solar-spotlight__copy,
  .quote-panel {
    padding: 36px 28px;
  }

  .solar-spotlight__media,
  .split-block__media {
    min-height: 360px;
  }

  .gallery__item,
  .gallery__item--wide {
    grid-column: span 6;
  }

  .gallery--real .gallery__item--wide {
    grid-column: span 12;
  }
}

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

  .section {
    padding: 72px 0;
  }

  .benefit-grid,
  .steps,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .step::after {
    display: none;
  }

  .brand__text {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .hero--page .hero__frame,
  .hero--page .hero__content {
    min-height: 72vh;
  }

  .pay-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .review-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .lightbox__prev,
  .lightbox__next {
    width: 40px;
    height: 40px;
  }

  .lightbox img {
    max-width: 94vw;
    max-height: 78vh;
  }

  .gallery__item img,
  .gallery__item--wide img {
    height: 240px;
  }

  .gallery--real .gallery__item,
  .gallery--real .gallery__item--wide {
    grid-column: span 12;
  }

  .gallery--real .gallery__item img,
  .gallery--real .gallery__item--wide img {
    height: auto;
  }

  .footer__nav {
    justify-content: flex-start;
  }

  .hero {
    padding: 8px 10px 0;
  }

  .hero__frame {
    min-height: 86vh;
    border-radius: 24px;
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(244, 243, 239, 0.2) 0%, rgba(244, 243, 239, 0.78) 58%, rgba(244, 243, 239, 0.92) 100%);
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 86vh;
    padding-bottom: 36px;
  }

  .audience__row {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .cta-panel {
    gap: 22px;
    padding: 28px 22px;
  }

  .footer {
    padding-bottom: 120px;
  }

  .footer__nav,
  .footer__meta {
    justify-content: flex-start;
  }
}

@media (min-width: 1400px) {
  .hero__frame {
    min-height: 900px;
  }
}
