/*
 * d1h.pl / HERO typography fix 01
 * Warstwa lokalna dla strony głównej d1h.pl (site_id=8, page_id=221).
 * Podpinana przez kod HEAD tylko tej strony, PO oryginalnym d1h-onepage-original.css.
 * Nie zmienia wspólnego UNIVERSAL 1, bloków ani grafiki.
 */

/* Desktop — poszerzamy część tekstową, aby H1 nie łamał się co jedno słowo. */
@media (min-width: 1101px) {
  .cms-template-universal-1 .u1-hero__content {
    width: min(1350px, calc(100% - 64px));
    max-width: 1350px;
    padding-right: 43%;
    min-height: 490px;
  }

  .cms-template-universal-1 .u1-hero__title {
    max-width: 720px;
    font-size: clamp(50px, 3.4vw, 57px);
    line-height: 1.15;
    letter-spacing: -0.055em;
    margin-top: 18px;
    overflow-wrap: normal;
    word-break: normal;
  }

  .cms-template-universal-1 .u1-hero__subtitle {
    max-width: 550px;
    font-size: 17px;
    line-height: 1.75;
    margin-top: 26px;
  }

  .cms-template-universal-1 .u1-hero__actions {
    gap: 14px;
    margin-top: 30px;
  }

  .cms-template-universal-1 .u1-hero__actions::after {
    margin-top: 12px;
    line-height: 1.65;
  }
}

/* Mniejsze laptopy — zachowujemy dwie kolumny, ale oszczędzamy miejsce. */
@media (min-width: 901px) and (max-width: 1100px) {
  .cms-template-universal-1 .u1-hero__content {
    padding-right: 42%;
  }

  .cms-template-universal-1 .u1-hero__title {
    font-size: clamp(43px, 4.1vw, 49px);
    line-height: 1.15;
    letter-spacing: -0.052em;
    max-width: 100%;
    margin-top: 18px;
  }

  .cms-template-universal-1 .u1-hero__subtitle {
    max-width: 480px;
    line-height: 1.75;
    margin-top: 23px;
  }
}

/* Tablety — HERO ma już układ pionowy z oryginalnego v3. */
@media (min-width: 651px) and (max-width: 900px) {
  .cms-template-universal-1 .u1-hero__title {
    max-width: 660px;
    font-size: clamp(43px, 6.3vw, 56px);
    line-height: 1.15;
    letter-spacing: -0.055em;
  }

  .cms-template-universal-1 .u1-hero__subtitle {
    line-height: 1.75;
    margin-top: 22px;
  }
}

/* Telefony — nie pozwalamy, by H1 przytłaczał treść i przyciski. */
@media (max-width: 650px) {
  .cms-template-universal-1 .u1-hero__title {
    max-width: 100%;
    font-size: clamp(36px, 8.9vw, 47px);
    line-height: 1.15;
    letter-spacing: -0.052em;
    margin-top: 18px;
    overflow-wrap: normal;
    word-break: normal;
  }

  .cms-template-universal-1 .u1-hero__subtitle {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.7;
    margin-top: 22px;
  }

  .cms-template-universal-1 .u1-hero__actions {
    margin-top: 26px;
    row-gap: 10px;
  }

  .cms-template-universal-1 .u1-hero__actions::after {
    margin-top: 12px;
    line-height: 1.65;
  }
}
