/* ===========================
   Home Hero (FULL WIDTH BG)
   =========================== */

/* wrapper: full-bleed */
.tv3-home-hero {
  isolation: isolate;
  min-height: 800px;
  display: grid;
  align-items: center;
  overflow: hidden;

  /* break out of any container padding/width */
  left: 50%;
  right: 50%;
  width: 100vw;
  max-width: none;
  margin-left: -50vw;
  margin-right: -50vw;
}

.tv3-home-hero__content {
  position: relative;
  width: 100%;
  height: 100%;

  /* add the site root padding + 8px extra */
  padding-inline-start: calc(var(--wp--style--root--padding-left, 0));
  padding-inline-end: calc(var(--wp--style--root--padding-right, 0));
}

/* background: always span the hero from left to right */
.tv3-home-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0; /* << full coverage of the hero */
  background-image: var(--hero-bg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

/* overlay (your gradients only) */
.tv3-home-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
      143% 99.46% at 100% 29.41%,
      rgba(0, 0, 0, 0) 25%,
      rgba(0, 0, 0, 0.15) 40%,
      #000 70%
    ),
    linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
}

/* content centered inside the hero */
.tv3-home-hero__inner {
  margin: auto;
  position: relative;
  z-index: 1;
  max-width: calc(var(--wp--style--global--content-size) + 16px);
  width: 100%;
  padding-top: clamp(24px, 6vw, 176px);
}

/* typography & button (unchanged) */
.tv3-home-hero__title {
  max-width: 666px;
  margin-bottom: 24px;
  font-weight: 400;
  line-height: 1.05;
  font-size: clamp(32px, 6vw, 72px);
  letter-spacing: -2px;
}
/* RU only */
.tv3-home-hero__title:lang(ru) {
  font-size: clamp(32px, 6vw, 56px);
}
.tv3-home-hero__excerpt {
  max-width: 440px;
  opacity: 0.6;
  font-size: clamp(14px, 3vw, 16px);
  line-height: 1.625rem;
  line-height: clamp(1rem, 4vw, 1.625rem);
}

.tv3-home-hero__actions {
  margin-top: 40px;
  padding-bottom: 144px;
}

.tv3-home-hero__scroll {
  position: absolute;
  left: calc(50% - 8px);
  transform: translateX(-50%);
  bottom: 48px;
  z-index: 1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  cursor: pointer;

  svg {
    margin: auto;
  }
}

@media (max-width: 781px) {
  .tv3-home-hero {
    margin-right: -16px !important;
    margin-left: -16px !important;
    min-height: fit-content;
    height: auto;
    padding-bottom: 90px;
  }

  .tv3-home-hero.alignfull > .tv3-home-hero__content {
    padding-inline-start: 0;
    padding-inline-end: 0;
  }

  .tv3-home-hero__bg {
    position: relative;
    width: 100%;
    height: 400px;
  }

  .tv3-home-hero__inner {
    padding-inline-start: 16px;
    padding-inline-end: 16px;
  }

  .tv3-home-hero__scroll {
    bottom: -90px;
  }

  .tv3-home-hero__actions {
    padding-bottom: 0;
  }
}

@media (max-width: 425px) {
  .tv3-home-hero__bg {
    position: relative;
    width: 100%;
    height: 208px;
  }

  .tv3-home-hero__actions .wp-block-button__link.wp-element-button {
    width: 100%;
  }
}
