/*
 * Homepage hero media
 *
 * The poster is the reliable first visual. The video is promoted only after
 * its first frame is decoded and playback has started, so unsupported video
 * and autoplay restrictions leave the hero fully intact.
 */
.main_block_one {
  position: relative;
  isolation: isolate;
  background-color: var(--home-color-ink, #092240);
  background-image: none;
}

.main_block_one__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.main_block_one__poster,
.main_block_one__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.main_block_one__poster {
  background-color: var(--home-color-ink, #092240);
}

.main_block_one__video {
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.main_block_one__video.is-ready {
  opacity: 1;
}

.main_block_one_items {
  position: relative;
  z-index: 1;
}

@media screen and (min-width: 1200px) {
  .main_block_one_items {
    width: 640px;
  }
}

.main_block_one_items_descr {
  margin-bottom: 0;
}

.main_block_one_items_proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--home-font-text, "Manrope", sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-wrap: balance;
}

.main_block_one_items_proof_item,
.main_block_one_items_review_sources {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--home-radius-pill, 100px);
  background-color: rgba(9, 34, 64, 0.12);
}

.main_block_one_items_proof_item {
  padding: 5px 10px;
  white-space: nowrap;
}

.main_block_one_items_review_sources {
  gap: 4px;
  padding: 3px 6px 3px 10px;
}

.main_block_one_items_review_sources a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: inherit;
  text-decoration: none;
}

.main_block_one_items_review_sources a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
}

.main_block_one_items_rating {
  padding-right: 4px;
  white-space: nowrap;
}

.main_block_one_items_review_sources img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
  .main_block_one_items_review_sources a:hover {
    background-color: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
  }
}

.main_block_one_items_review_sources a:focus-visible {
  outline: 2px solid var(--white-color);
  outline-offset: 3px;
}

.main_block_one_items_btns {
  margin-top: 32px;
}

.main_block_one__media::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(
    to right,
    rgba(9, 34, 64, 0.56) 0%,
    rgba(9, 34, 64, 0.43) 32%,
    rgba(9, 34, 64, 0.16) 58%,
    rgba(9, 34, 64, 0) 80%
  );
}

/* Preserve contrast on the lower, centered mobile content without a hard edge. */
@media screen and (max-width: 768px) {
  .main_block_one {
    height: auto;
    min-height: 0;
    padding: 190px 40px 32px;
  }

  .main_block_one__poster,
  .main_block_one__video {
    object-position: 78% center;
  }

  .main_block_one__media::after {
    /* Keep the existing contrast gradient, but lift the layer on mobile so
     * it covers the centered copy as well as the CTA area. */
    inset: -80% 0 0;
    background:
      linear-gradient(to top, rgba(9, 34, 64, 0.62), rgba(9, 34, 64, 0) 70%),
      linear-gradient(to right, rgba(9, 34, 64, 0.42), rgba(9, 34, 64, 0) 82%);
  }

  .main_block_one_items_btns {
    position: static;
    margin-top: 24px;
    transform: none;
  }

  .main_block_one_items_proof {
    justify-content: center;
    text-align: center;
  }

  .main_block_one_items_btns_two,
  .main_block_one_items_btns_two:hover {
    border-color: rgba(255, 255, 255, 0.9);
    color: var(--white-color) !important;
  }

  .main_block_two {
    top: 0;
    margin-bottom: 0;
  }
}

@media screen and (max-width: 576px) {
  .main_block_one__poster,
  .main_block_one__video {
    object-position: 82% center;
  }

  .main_block_one__media::after {
    inset: -72% 0 0;
    background:
      linear-gradient(to top, rgba(9, 34, 64, 0.7), rgba(9, 34, 64, 0) 72%),
      linear-gradient(to right, rgba(9, 34, 64, 0.46), rgba(9, 34, 64, 0) 82%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .main_block_one__video {
    display: none;
  }
}
