/* ================================
   First Screen Block
   ================================ */
.first-screen-block {
  position: relative;
  overflow: hidden;
}

.first-screen-block__row {
  display: flex;
  height: 500px;
  align-items: center;
  position: relative;
  width: 100%;
}

.first-screen-block__content-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  z-index: 3;
  position: relative;
}

.first-screen-block__left {
  max-width: 510px;
}

.first-screen-block__left h1 {
  font-size: 50px;
  color: #fff;
  margin-bottom: 20px;
  text-align: center;
}

.first-screen-block__left p {
  font-size: 20px;
  line-height: 160%;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  color: var(--text-gold);
  text-align: center;
}

.first-screen-block__left .btn {
  display: flex;
  font-size: 24px;
  padding: 15px 30px;
  width: fit-content;
  text-align: center;
  margin: 0 auto;
}

/* Background image */
.first-screen-block__right {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.first-screen-block__right img {
  height: 100%;
  width: auto;
  object-fit: contain;
  max-width: none;
  mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, 0.8) 55%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, 0.8) 55%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* Responsive */
@media screen and (max-width: 768px) {
  .first-screen-block {
    min-height: fit-content;
    margin: 10px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-radius: 13px;
    border: 1px solid var(--color-emerald-5);
    overflow: hidden;
  }

  .first-screen-block__row {
    flex-direction: column;
    gap: 0;
  }

  .first-screen-block__right {
    order: -1;
    position: relative;
    width: 100%;
    height: 360px; /* збільшено */
    overflow: hidden;
    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 70%,
      rgba(0, 0, 0, 0) 100%
    );
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 70%,
      rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .first-screen-block__right img {
    width: 250%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 70%,
      rgba(0, 0, 0, 0) 100%
    );
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 70%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .first-screen-block__left {
    padding: 20px;
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: -80px; /* текст трохи "заходить" на картинку */
  }

  .first-screen-block__left h1 {
    font-size: 32px;
    line-height: 34px;
  }

  .first-screen-block__left p {
    font-size: 16px;
    text-transform: uppercase;
    line-height: 1.6;
    margin-bottom: 12px;
    color: var(--text-gold);
    font-weight: 700;
  }

  .first-screen-block__left .btn {
    font-size: 18px;
    padding: 12px 30px;
    margin-top: 25px;
  }
}
