.pre-footer {
  display: grid;
  row-gap: 16px;
}

.pre-footer__slogan {
  position: relative;
  display: grid;
  justify-content: center;
  align-items: start;
  padding: 48px 16px;
  background-color: var(--grey-background);
}

.pre-footer__slogan-main {
  position: relative;
  padding-bottom: 51px;
  margin-bottom: 8px;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: 45px;
  line-height: 90%;
  text-transform: uppercase;
  color: var(--black-label);

  span {
    display: block;
    white-space: nowrap;
  }

  span:nth-of-type(2) {
    text-align: right;
  }
}

.pre-footer__slogan-main::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 99px;
  height: 93px;
  background-image: url("../../assets/icons/decor-arrow-big.svg");
  background-size: cover;
}

.pre-footer__slogan-secondary {
  display: grid;
  row-gap: 11px;

  p {
    width: max-content;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: -0.14px;
    text-transform: uppercase;
    color: var(--black-label);

    span {
      display: block;
    }

    span:nth-of-type(3) {
      text-align: right;
    }
  }
}

.pre-footer__image {
  height: 388px;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/*mobile portrait*/
@media (min-width: 478px) {
  .pre-footer__slogan-main {
    margin-bottom: -53px;
    padding-bottom: 67px;
    font-size: 60px;
  }

  .pre-footer__slogan-main::after {
    width: 123px;
    height: 117px;
  }

  .pre-footer__slogan-secondary {
    row-gap: 33px;
  }
}

/*mobile landscape*/
@media (min-width: 767px) {
  .pre-footer__slogan {
    padding: 48px 24px 48px 10px;
  }

  .pre-footer__slogan-main {
    margin-bottom: 0;
    padding-bottom: 0;
    font-size: 100px;

    span:nth-of-type(3) {
      padding-left: 160px;
    }
  }

  .pre-footer__slogan-main::after {
    right: 7px;
    bottom: 7px;
    width: 84px;
    height: 79px;
  }

  .pre-footer__slogan-secondary {
    position: absolute;
    bottom: 59px;
    left: calc(50% - 353px);
    width: 130px;
    row-gap: 9px;

    p {
      font-size: 8px;
      line-height: normal;
      letter-spacing: -0.08px;
    }
  }

  .pre-footer__image {
    height: 300px;
  }
}

/*tablet*/
@media (min-width: 991px) {
  .pre-footer__slogan {
    padding: 60px 20px;
  }

  .pre-footer__slogan-main {
    font-size: 130px;

    span:nth-of-type(3) {
      padding-left: 192px;
    }
  }

  .pre-footer__slogan-main::after {
    right: 9px;
    bottom: 9px;
    width: 111px;
    height: 103px;
  }

  .pre-footer__slogan-secondary {
    bottom: 74px;
    left: calc(50% - 450px);
    width: 180px;
    row-gap: 16px;

    p {
      font-size: 12px;
      letter-spacing: -0.12px;
    }
  }

  .pre-footer__image {
    height: 360px;
  }
}

/*desktop*/
@media (min-width: 1400px) {
  .pre-footer__slogan {
    justify-content: normal;
    padding: 80px 20px;
  }

  .pre-footer__slogan-main {
    font-size: 171px;

    span:nth-of-type(2) {
      text-align: left;
      padding-left: 85px;
    }

    span:nth-of-type(3) {
      padding-left: 415px;
    }
  }

  .pre-footer__slogan-main::after {
    right: 0;
    bottom: 15px;
    width: 143px;
    height: 131px;
  }

  .pre-footer__slogan-secondary {
    bottom: 100px;
    left: 106px;
    width: 218px;

    p {
      font-size: 14px;
      line-height: 140%;
      letter-spacing: 0.14px;
    }
  }

  .pre-footer__image {
    height: 420px;
  }
}
