@media (max-width: 359px) {
  .container { width: min(var(--max), calc(100% - 1.4rem)); }
  .brand__name { font-size: 0.95rem; letter-spacing: 0.08em; }
  .brand__sub { letter-spacing: 0.08em; }
  .hero h1 { font-size: 2.45rem; }
}

@media (max-height: 760px) and (max-width: 1023px) {
  .section { padding-block: 3.2rem; }
  .hero { padding-top: 0.4rem; padding-bottom: 1.25rem; }
  .hero-grid { gap: 0.7rem; }
  .hero-media .anim-stage { aspect-ratio: 16 / 8; max-height: 132px; }
  .hero h1 { font-size: 2.35rem; margin-top: 0.35rem; }
  .hero .lead { margin-top: 0.45rem; }
  .actions { margin-top: 0.7rem; }
  .hero-points { margin-top: 0.65rem; }
}

@media (max-height: 600px) and (max-width: 1023px) {
  .hero-media .anim-stage { max-height: 104px; }
  .hero h1 { font-size: 2.15rem; }
}

@media (max-height: 640px) and (max-width: 400px) {
  .hero .actions .btn {
    width: calc(100% - 4.4rem);
    align-self: flex-start;
    font-size: 0.86rem;
    padding-inline: 0.75rem;
    gap: 0.4rem;
    white-space: nowrap;
  }
}

@media (min-width: 380px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid li:first-child { grid-column: 1 / -1; }
  .shot img { aspect-ratio: 1 / 1; }
  .gallery-grid li:first-child .shot img { aspect-ratio: 16 / 10; }
}

@media (min-width: 480px) {
  .actions { flex-direction: row; flex-wrap: wrap; }
  .actions .btn { width: auto; }
  .contact-actions .btn { width: auto; min-width: 260px; }
  .final-cta .btn { width: auto; }
}

@media (min-width: 700px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .diffs { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr auto; align-items: start; }
}

@media (min-width: 768px) {
  :root { --header: 76px; }
  .section { padding-block: 5.25rem; }
  .container { width: min(var(--max), calc(100% - 3rem)); }
  .about-layout { grid-template-columns: 1fr 1fr; align-items: center; }
  .diffs { grid-column: 1 / -1; }
  .about-photo img { aspect-ratio: 4 / 3; height: 100%; object-fit: cover; }
}

@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1.05fr 0.95fr; align-items: stretch; }
  .final-cta { min-height: 460px; align-items: center; }
  .final-cta::after {
    background: linear-gradient(90deg, rgba(5, 6, 10, 0.92) 0%, rgba(5, 6, 10, 0.72) 46%, rgba(5, 6, 10, 0.28) 100%);
  }
}

@media (min-width: 900px) {
  .quotes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
  .quote { flex: none; }
}

@media (min-width: 1024px) {
  :root {
    --header: 82px;
    --dock-space: 0px;
  }

  body { padding-bottom: 0; }

  .nav-toggle,
  .nav-backdrop,
  .dock { display: none; }

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

  .nav-panel {
    position: static;
    pointer-events: auto;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    transform: none;
    visibility: visible;
    overflow: visible;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
  }

  .nav-close { display: none; }

  .nav-list {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 1.15rem;
  }

  .nav-list a {
    min-height: 0;
    font-size: 0.95rem;
    font-weight: 700;
    border: 0;
    padding: 0.35rem 0;
  }

  .nav-panel .btn { margin-top: 0; }

  .wa-float { bottom: 22px; }

  .hero { padding-top: 1.5rem; padding-bottom: 1rem; }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 2.5rem;
    align-items: center;
  }

  .hero-media { order: 0; }
  .hero-media .anim-stage { aspect-ratio: 4 / 3; min-height: 460px; }

  .services-layout {
    grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
    align-items: start;
    gap: 1.75rem;
  }

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

  .gallery-layout {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
  }

  .gallery-grid {
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-template-rows: 220px 190px 210px;
    gap: 0.75rem;
  }

  .gallery-grid li:first-child { grid-column: auto; }
  .gallery-grid li:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .gallery-grid li:nth-child(2) { grid-column: 2 / span 2; grid-row: 1; }
  .gallery-grid li:nth-child(3) { grid-column: 2; grid-row: 2; }
  .gallery-grid li:nth-child(4) { grid-column: 3; grid-row: 2; }
  .gallery-grid li:nth-child(5) { grid-column: 1 / span 2; grid-row: 3; }
  .gallery-grid li:nth-child(6) { grid-column: 3; grid-row: 3; }

  .gallery-grid li,
  .shot { height: 100%; min-height: 0; }

  .shot img,
  .gallery-grid li:first-child .shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (min-width: 1180px) {
  .about-photo { order: -1; }
  .about-layout {
    grid-template-columns: 1.15fr 0.95fr 0.9fr;
    align-items: center;
  }
  .diffs {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .gallery-grid { grid-template-rows: 250px 210px 230px; }
}

@media (min-width: 1440px) {
  :root { --max: 1240px; }
  .section { padding-block: 6.5rem; }
  .hero-media .anim-stage { min-height: 520px; }
}

@media (min-width: 1920px) {
  :root { --max: 1280px; }
}
