/*
 * Page "Маніфест" (page-manifest.php).
 * Desktop: text 866 + photo 804 (photo stays in place while the long text scrolls).
 * Tablet / mobile: photo first, then the text.
 */

.mf_sec {
  padding: 80px 0;
  background: var(--palette-v2-bg);
}

.mf_grid {
  display: grid;
  grid-template-columns: minmax(0, 866fr) minmax(0, 804fr);
  column-gap: 50px;
  align-items: start;
}

.mf_col--text {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 20px;
}

/* the photo stays in the middle of the screen while the text scrolls (designer review) */
.mf_col--media {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: calc(100vh - 104px);
}

.mf_col--media .mf_media {
  width: 100%;
}

.mf_lead_txt {
  font-family: "Nata Sans", sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 42px;
  color: var(--palette-v2-t1);
}

.mf_sub_txt {
  font-weight: 600;
  font-size: 22px;
  line-height: 34px;
  color: var(--palette-v2-white);
}

.mf_body_txt {
  font-size: 18px;
  line-height: 32px;
  color: var(--palette-v2-white);
}

.mf_body_txt p {
  margin: 0;
}

.mf_body_txt p + p {
  margin-top: 32px;
}

.mf_body_txt a {
  color: var(--palette-v2-br);
}

.mf_media {
  aspect-ratio: 804 / 452;
}

@media (max-width: 1280px) {
  .mf_sec {
    padding: 60px 0;
  }

  .mf_grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 40px;
  }

  .mf_lead_txt {
    font-size: 26px;
    line-height: 36px;
  }
}

@media (max-width: 1024px) {
  .mf_sec {
    padding: 40px 0;
  }

  .mf_grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
  }

  .mf_col--media {
    position: static;
    order: -1;
    height: auto;
  }

  .mf_col--text {
    gap: 24px;
    padding-top: 0;
  }

  .mf_sub_txt {
    font-size: 20px;
    line-height: 30px;
  }

  .mf_body_txt {
    font-size: 16px;
    line-height: 26px;
  }

  .mf_body_txt p + p {
    margin-top: 26px;
  }

  .mf_media {
    aspect-ratio: 944 / 531;
  }
}

@media (max-width: 600px) {
  .mf_sec {
    padding: 36px 0;
  }

  .mf_grid {
    row-gap: 24px;
  }

  .mf_col--text {
    gap: 16px;
  }

  .mf_lead_txt {
    font-size: 24px;
    line-height: 34px;
  }

  .mf_sub_txt {
    font-size: 17px;
    line-height: 26px;
  }

  .mf_media {
    aspect-ratio: 324 / 182;
  }
}
