/* Homepage hero — responsive layout, correct image aspect ratio, no overlap */

.hostopy-marketing-home .hostopy-hero-section {
  overflow: visible;
}

.hostopy-marketing-home .hostopy-hero-grid {
  align-items: stretch;
}

.hostopy-marketing-home .hostopy-hero-img-wrap {
  position: relative;
  padding: 16px 0 8px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.hostopy-marketing-home .hostopy-hero-img-wrap picture {
  display: block;
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
  aspect-ratio: 375 / 286;
}

.hostopy-marketing-home .hostopy-hero-img-wrap .main-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.hostopy-marketing-home .banner__img-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hostopy-marketing-home .banner__img-decor img {
  position: absolute;
  width: auto;
  max-width: 42%;
  height: auto;
}

.hostopy-marketing-home .banner__img-decor img:nth-child(1) {
  right: 8%;
  top: 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.hostopy-marketing-home .banner__img-decor img:nth-child(2) {
  left: 0;
  bottom: 18%;
}

.hostopy-marketing-home .banner__img-decor img:nth-child(3) {
  right: 6%;
  bottom: 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.hostopy-marketing-home .hostopy-hero-poster {
  height: 100%;
  min-height: 0;
}

.hostopy-marketing-home .hostopy-hero-poster .banner__poster-thumb {
  position: relative;
  line-height: 0;
}

.hostopy-marketing-home .hostopy-hero-poster .banner__poster-thumb picture,
.hostopy-marketing-home .hostopy-hero-poster .banner__poster-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 424 / 523;
}

@media (min-width: 1200px) {
  .hostopy-marketing-home .hostopy-hero-poster-col {
    display: flex;
    align-items: stretch;
  }

  .hostopy-marketing-home .hostopy-hero-poster .banner__poster-content {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    padding: 32px;
    z-index: 2;
  }

  .hostopy-marketing-home .hostopy-hero-main-col .banner__inner-wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 1199.98px) {
  .hostopy-marketing-home .hostopy-hero-poster-col {
    order: 3;
    margin-top: 0;
  }

  .hostopy-marketing-home .hostopy-hero-main-col {
    order: 2;
  }

  .hostopy-marketing-home .hostopy-hero-poster {
    max-width: 480px;
    margin: 0 auto;
  }

  .hostopy-marketing-home .hostopy-hero-poster .banner__poster-content {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
  }

  .hostopy-marketing-home .hostopy-hero-img-wrap {
    max-width: 360px;
  }

  .hostopy-marketing-home .banner__img-decor img {
    max-width: 38%;
  }
}

@media (max-width: 991.98px) {
  .hostopy-marketing-home .hostopy-hero-copy {
    text-align: center;
  }

  .hostopy-marketing-home .hostopy-hero-copy .banner__content .tg-btn {
    margin-left: auto;
    margin-right: auto;
  }

  .hostopy-marketing-home .hostopy-hero-img-wrap {
    margin-top: 8px;
    padding-top: 8px;
  }

  .hostopy-marketing-home .banner__inner-wrap {
    padding: 28px 20px !important;
  }
}

@media (max-width: 767.98px) {
  .hostopy-marketing-home .hostopy-hero-section {
    padding-bottom: 48px !important;
  }

  .hostopy-marketing-home .hostopy-hero-img-wrap {
    max-width: 100%;
    padding: 0;
  }

  .hostopy-marketing-home .hostopy-hero-img-wrap picture {
    max-width: 100%;
  }

  .hostopy-marketing-home .banner__img-decor img {
    max-width: 34%;
  }

  .hostopy-marketing-home .hostopy-hero-poster .banner__poster-content .title {
    font-size: 22px !important;
    margin-bottom: 16px !important;
  }

  .hostopy-marketing-home .hostopy-hero-poster .banner__poster-content {
    padding: 20px;
  }

  .hostopy-marketing-home .banner__content .title {
    font-size: 28px !important;
  }
}

@media (max-width: 575.98px) {
  .hostopy-marketing-home .banner__img-decor img:nth-child(2) {
    left: -4px;
    bottom: 12%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hostopy-marketing-home .hostopy-hero-img-wrap .main-img {
    animation: none !important;
  }
}
