/* Fluid desktop layout for the 19 main stroyvakansii.ru landing pages.
   Loaded after legacy styles so archived /monolit/ and /ig/ stay unchanged. */

@media (min-width: 1101px) {
  .container {
    width: 100%;
    max-width: none;
    padding-inline: clamp(28px, 3vw, 84px);
  }

  /* Stretch to 1600px, 1920px, 2560px and larger viewports instead of
     stopping at the old 1600px container cap. The form stays 450px wide. */
  #top .hero-grid.hero-grid--form {
    grid-template-columns: minmax(0, 1fr) 450px;
    column-gap: clamp(42px, 4.3vw, 120px);
    align-items: start;
  }

  #top .hero-grid--form > .hero-intro,
  #top .hero-grid--form > .hero-support,
  #top .hero-grid--form > .hero-first-screen-form {
    min-width: 0;
  }

  #top .hero-grid--form > .hero-first-screen-form {
    width: 100%;
    max-width: 450px;
    justify-self: end;
    padding: clamp(27px, 2.25vw, 36px);
  }

  /* The main recovery landing uses a differently wrapped lead form. */
  #top .hero-grid--form > .campaign-hero-form {
    width: 100%;
    max-width: 450px;
    justify-self: end;
  }

  #top .hero-grid--form .hero-intro .lead {
    max-width: min(100%, 1050px);
    font-size: clamp(18px, 1.18vw, 20px);
    line-height: 1.6;
  }

  #top .hero-first-screen-form .hero-form-description {
    font-size: 16px;
    line-height: 1.5;
  }

  /* Never allow multi-column content to overflow into another column. */
  .road-grid > *,
  .road-facts > *,
  .road-grid--three > * {
    min-width: 0;
  }
}

/* At wide desktop sizes, keep text comfortably readable while letting
   the form and both columns use the actual monitor width. */
@media (min-width: 1600px) {
  #top .hero-grid--form .hero-intro h1 {
    max-width: 1440px;
  }

  #top .hero-grid--form .hero-support .payouts {
    max-width: 1060px;
  }

  #top .hero-grid--form .hero-support .hero-trust {
    max-width: 1920px;
    margin-inline: auto;
  }
}

/* Keep the form at 450px on laptop too, but tighten the gap slightly. */
@media (min-width: 1101px) and (max-width: 1250px) {
  #top .hero-grid.hero-grid--form {
    grid-template-columns: minmax(0, 1fr) 450px;
    column-gap: 32px;
  }
}
