.mortgage-hot-offer {
  overflow: hidden;
}

.mortgage-hot-offer .carousel-container {
  width: 100%;
}

.mortgage-hot-offer__title {
  font: normal 600 21px/32px var(--title-font);
  margin-bottom: 30px;
}

.mortgage-hot-offer .carousel .owl-item {
  max-width: 300px;
}

.carousel-container .owl-item .mortgage-hot-offer__img-container img {
  border-radius: 6px;
  /* max-height: 194px; */
  width: 100%;
  max-width: none;
  min-width: 300px;
  min-height: 205px;
}

.mortgage-hot-offer__text-container {
  position: relative;
  border: 1px solid #c1c1c1;
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 23px 29px 29px;
  top: -3px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mortgage-hot-offer__item-title {
  font: normal 600 16px/21px var(--title-font);
  color: var(--text-color);
}

.mortgage-hot-offer__item-link {
  text-decoration: none;
  border: 1px solid #c1c1c1;
  font: normal 500 12px/15px var(--text-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--title-color);
  border-radius: 4px;
  padding: 10px 30px;
  position: static;
  width: fit-content;
  margin-top: 40px;
}

.mortgage-hot-offer .carousel-container .owl-stage {
  padding-top: 0;
  display: flex;
}

.mortgage-hot-offer .carousel .item {
  margin-right: 0;
}

.mortgage-hot-offer .carousel-container .owl-stage-outer {
  padding-bottom: 0;
  overflow: visible;
}

.mortgage-hot-offer__text-container:hover .mortgage-hot-offer__item-link {
  color: var(--main-color);
  border-color: var(--main-color);
}

.mortgage-hot-offer__text-container:hover {
  border-color: var(--main-color);
}

@media screen and (max-width: 350px) {
  .mortgage-hot-offer .carousel .owl-item {
    max-width: 290px;
  }
}

@media screen and (min-width: 1000px) {
  .mortgage-hot-offer__title {
    font-size: 30px;
    line-height: 39px;
    margin-bottom: 38px;
  }

  .mortgage-hot-offer__title span {
    color: var(--main-color);
  }

  .mortgage-hot-offer .carousel .owl-item {
    max-width: 420px;
  }

  .mortgage-hot-offer__text-container {
    padding: 13px 19px 19px;
  }

  .carousel-container .owl-item .mortgage-hot-offer__img-container img {
    min-height: 205px;
  }
  .mortgage-hot-offer__item-title {
    font-size: 18px;
    line-height: 23px;
  }

  .mortgage-hot-offer__item-link {
    bottom: 18px;
    left: 19px;
  }
}

@media screen and (min-width: 1200px) {
  .mortgage-hot-offer__text-container {
    padding: 24px 28px 40px 28px;
  }
}