.fourth-block {
  position: relative;
  background-image: url("../resources/images/fourth_block_back.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  width: 100vw;
  box-sizing: border-box;
  margin: 0;

  z-index: 0;

  overflow-x: hidden;
  margin-top: 0rem;
}

.fourth-block-title {
  position: relative;
  font-family: "KingRichard-Italic", sans-serif;
  font-size: clamp(2rem, 6vw, 6.4375rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.05;
  color: white;
  text-transform: uppercase;
  text-align: center;
  padding-top: 18.125rem;
  margin-bottom: 15.1875rem;

  opacity: 0;
  will-change: transform, opacity;
}

.text-container {
  width: 100vw;
  height: 100%;

  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;

  transform: translateX(50vw);
  gap: 13.1875rem;
  padding-bottom: 8.125rem;
  will-change: transform;
}

.word {
  font-family: "Manrope Medium";
  font-weight: 500;
  text-transform: uppercase;
  position: relative;
  font-size: clamp(1rem, 1.4vw, 1.6875rem);
  color: white;
  width: 100%;
  line-height: normal;

  will-change: transform, opacity;
}

@media (max-width: 600px) {
  .fourth-block {
    margin: 0;
    height: auto;
    min-height: 100dvh;

    background-image: url("../resources/images/fourth_mobile_back.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 0.5rem;
    padding-top: 5.375rem;
    box-sizing: border-box;
  }

  .fourth-block::after {
    background-image: none;
  }

  .fourth-block-title {
    position: static;
    font-size: 2.5rem;
    font-weight: 400;
    padding-top: 0;
    margin-bottom: 5.3125rem;
    line-height: 0.98;
    text-align: center;
    width: 85%;
    color: white;
  }

  .fourth-block-title br {
    display: none;
  }

  .text-container {
    width: 70%;
    max-width: 97vw;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6.8125rem;
    transform: none;
  }

  .word {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    color: white;
    width: 100%;
    max-width: 98vw;
    line-height: normal;
    margin: 0;
    padding: 0;
  }

  .word br {
    display: none;
  }
}
