/* Wider desktop layout. The approved layout at <= 800px is unchanged. */
@media (min-width: 801px) {
  .site {
    --desktop-gutter: clamp(24px, 2.777778vw, 48px);
    --desktop-max: 1760px;
  }

  /* Width includes the entire container: no additional horizontal padding. */
  .site-nav,
  main > section > .section-inner,
  .site footer > div {
    box-sizing: border-box;
    width: min(calc(100% - 2 * var(--desktop-gutter)), var(--desktop-max));
    max-width: none;
    padding-inline: 0;
    margin-inline: auto;
  }

  /* Broader headings, but bounded line lengths for continuous copy. */
  .problem .section-inner > div:first-child,
  .situations .section-inner > div:first-child,
  .steps .section-inner > div:first-child,
  .audience .section-inner > div:first-child,
  .comparison .section-inner > div:first-child {
    max-width: 1100px;
  }
  .problem .section-inner > div:first-child p,
  .problem .section-inner > div:nth-child(2) p,
  .situations .section-inner > div > p,
  .partner .section-inner > div:first-child > p,
  .faq details > p {
    max-width: 72ch;
  }

  .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 80px);
  }
  .hero-copy { min-width: 0; }
  .hero-copy > p { max-width: 64ch; }
  .hero-phones {
    position: relative;
    display: block;
    min-width: 0;
    height: 540px;
  }
  .hero-phones .phone-stage {
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -260px;
    margin-bottom: 0;
    transform: none;
    transform-origin: top center;
  }

  .problem .section-inner > div:last-child,
  .audience .section-inner > div:last-child {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .steps .section-inner > div:nth-child(2) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .problem .section-inner > div:last-child > div,
  .audience .section-inner > div:last-child > div,
  .steps .section-inner > div:nth-child(2) > div { min-width: 0; }

  .partner .section-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 80px);
  }
  .partner-ticket { width: clamp(420px, 30vw, 560px); }

  .comparison table { table-layout: fixed; }
  .comparison th:first-child { width: 16%; }
  .comparison td { overflow-wrap: break-word; }
  .final h2 { max-width: 1100px; }
  .final .section-inner > p { max-width: 72ch; }
}

/* Keep two balanced step rows instead of a cramped row of three plus one. */
@media (min-width: 801px) and (max-width: 1199px) {
  .steps .section-inner > div:nth-child(2) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 801px) and (max-width: 1100px) {
  .hero-phones { height: 389px; }
  .hero-phones .phone-stage { transform: scale(.72); }
}

@media (min-width: 801px) and (max-width: 950px) {
  .site-nav { gap: 8px 16px; }
  .site-nav > a:first-child > span { font-size: 22px; }
  .nav-links { gap: 8px 16px; font-size: 14px; }
  .nav-links .cta-main { padding-inline: 16px; }
  .hero-phones { height: 351px; }
  .hero-phones .phone-stage { transform: scale(.65); }
  .problem .section-inner > div:last-child,
  .audience .section-inner > div:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .problem .section-inner > div:last-child > div:last-child,
  .audience .section-inner > div:last-child > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1600px) {
  .hero-phones { height: 648px; }
  .hero-phones .phone-stage { transform: scale(1.2); }
}

/* Reserve room for the rotated phone corners just above the tablet range. */
@media (min-width: 1101px) and (max-width: 1199px) {
  .hero-phones { height: 459px; }
  .hero-phones .phone-stage { transform: scale(.85); }
}
