/**
 * Home hero @1440–1899: typography + height fix (Figma 2_index_1440).
 * Loaded last in header.php.
 */
@media (min-width: 1440px) and (max-width: 1899px) {
  body.page-home .hero--home {
    min-height: 820px !important;
    padding-top: 56px !important;
    padding-bottom: var(--hero-decor-h) !important;
  }

  body.page-home .hero--home > .container {
    min-height: 0 !important;
  }

  body.page-home .hero--home .hero__title {
    display: block !important;
    overflow: visible !important;
    -webkit-box-orient: unset !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    max-height: none !important;
    height: auto !important;
    margin: 0 0 20px !important;
    font-size: 32px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
  }

  body.page-home .hero--home .hero__title .hero__title-strong,
  body.page-home .hero--home .hero__title .hero__title-rest {
    display: inline !important;
    overflow: visible !important;
    white-space: normal !important;
    font-size: inherit !important;
    line-height: inherit !important;
  }

  body.page-home .hero--home .hero__title .hero__title-br {
    display: block !important;
    line-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.page-home .hero--home .hero__lead,
  body.page-home .hero--home .hero__lead.hero__lead--figma {
    display: block !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    max-width: 498px !important;
  }

  body.page-home .hero--home .hero__inner {
    margin-bottom: 48px !important;
    align-items: start !important;
  }

  body.page-home .hero--home .hero__copy {
    padding-bottom: 0 !important;
  }

  body.page-home .hero--home .hero__tiles {
    margin-top: 0 !important;
  }
}

/* Hero tiles: одна линия для .tile__desc (перебивает home-1900-fixes и старые правила). */
@media (min-width: 800px) {
  body.page-home .hero--home .tile--hero > [id^="bx_"] {
    display: contents !important;
  }

  body.page-home .hero--home .tile--hero .tile__body {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }

  body.page-home .hero--home .tile--hero .tile__title {
    --hero-tile-title-h: calc(2.4em);
    flex: 0 0 var(--hero-tile-title-h) !important;
    min-height: var(--hero-tile-title-h) !important;
    max-height: var(--hero-tile-title-h) !important;
    height: var(--hero-tile-title-h) !important;
    line-height: 1.2 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    margin: 0 !important;
  }

  body.page-home .hero--home .tile--hero .tile__title-line {
    line-height: 1.2 !important;
  }

  body.page-home .hero--home .tile--hero .tile__desc {
    flex: 0 0 89px !important;
    min-height: 89px !important;
    height: 89px !important;
    max-height: 89px !important;
    margin-top: 0 !important;
  }
}

@media (min-width: 1900px) {
  body.page-home .hero--home .tile--hero .tile__title {
    font-size: 24px !important;
  }

  body.page-home .hero--home .tile--hero .tile__desc {
    flex: 0 0 104px !important;
    min-height: 104px !important;
    height: 104px !important;
    max-height: 104px !important;
    font-size: 20px !important;
  }
}
