.carousel-group {
  width: 100%;
  max-width: 1640px;
}
.carousel {
  height: auto !important;
}
body {
  font-family: "Josefin Sans", sans-serif;
}
.content .footer-banners {
  display: flex;
  flex-direction: column;
}
.footer-banners .footer-banner {
  width: 100%;
}
.carousel-banner {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.carousel-item {
  padding-right: 20px;
}
.carousel__card {
  aspect-ratio: 1.2 / 1;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  width: 33.3%;
  padding: 40px 60px 35px 42px;
  background-color: #eae1da;
  border-radius: 35px;
  overflow-x: visible;
  overflow-y: hidden;
  position: relative;
}
.carousel__card:nth-child(3) {
  color: white;
  background-image: url("https://www.pashmii.cz/user/documents/upload/carousel banner/3.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.carousel__top {
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}
.carousel__title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.85px;
  margin: 0;
  margin-bottom: 15px;
}
.carousel__card:nth-child(2) .carousel__title {
  max-width: 70%;
}
.carousel__card:nth-child(3) .carousel__title {
  color: white;
}
.carousel__block {
  min-height: 185px;
  position: relative;
  display: flex;
  z-index: 2;
}
.carousel__text {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.35;
}
.carousel__block .carousel__text {
  width: 53%;
}
.carousel__card:nth-child(1) .carousel__text {
  width: 58%;
}
.carousel-content .img-responsive {
  position: absolute;
  right: -50px;
  bottom: 0;
  top: auto;
  width: 58%;
  height: 110%;
  object-fit: cover;
  object-position: bottom right;
  transform-origin: bottom right;
  transition: transform 0.35s ease;
  z-index: 1;
}
.carousel-item .img-responsive {
  top: auto;
  bottom: 0;
  max-width: 220px !important;
  right: -45px;
  height: 110%;
}
.carousel-item:nth-child(3) .img-responsive {
  top: auto;
  bottom: 0;
  max-width: 270px !important;
  right: -45px;
  height: 110%;
}
.carousel-content:hover .img-responsive {
  transform: scale(1.02);
}
.carousel__btn {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  padding: 0 30px 0 0;
  background-color: transparent;
  border: none;
  background-image: url("https://www.pashmii.cz/user/documents/upload/carousel banner/arrow.svg");
  background-position: center right 5px;
  background-repeat: no-repeat;
  background-size: 15px 11px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  position: relative;
  z-index: 2;
}
.carousel__card:nth-child(3) a {
  color: white;
  background-image: url("https://www.pashmii.cz/user/documents/upload/carousel banner/arrow-white.svg");
}
.carousel__card:nth-child(3) img {
  margin-bottom: 40px;
}
.carousel__btn:hover {
  background-position: center right 0;
  text-decoration: underline;
  text-underline-offset: 5px;
}
@media screen and (max-width: 1919px) {
  .carousel__card:nth-child(2) .carousel__title {
    max-width: 80%;
  }
  .carousel__block {
    min-height: 155px;
  }
  .carousel__block .carousel__text {
    width: 56%;
  }
  .carousel__card:nth-child(1) .carousel__text {
    width: 60%;
  }
  .carousel-content .img-responsive {
    right: -40px;
  }
  .carousel-item:nth-child(2) .img-responsive {
    right: -35px;
  }
}
@media screen and (max-width: 1298px) {
  .carousel__card:nth-child(2) .carousel__title {
    max-width: 90%;
  }
  .carousel-content .img-responsive {
    width: 53%;
    right: -30px;
  }
  .carousel__block .carousel__text,
  .carousel__card:nth-child(1) .carousel__text {
    width: 50%;
  }
  .carousel-item:nth-child(2) .img-responsive {
    right: -25px;
    width: 48%;
  }
}
@media screen and (max-width: 1100px) {
  .carousel__card:nth-child(2) .carousel__title {
    max-width: 100%;
  }
  .carousel__block {
    flex-direction: column;
  }
  .carousel-content .img-responsive {
    position: static;
    align-self: center;
    height: auto;
    right: auto;
  }
  .carousel-item:nth-child(2) .img-responsive {
    width: 70%;
    right: auto;
  }
  .carousel-item:nth-child(1) .img-responsive {
    width: 80%;
  }
  .carousel__block .carousel__text,
  .carousel__card:nth-child(1) .carousel__text {
    width: 100%;
    margin-bottom: 15px;
  }
}
@media (max-width: 1074px) {
  .carousel-group {
    overflow-x: scroll;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .carousel-group::-webkit-scrollbar {
    height: 0;
    display: none;
  }
  .carousel-text-block {
    max-width: 70%;
  }
  .carousel-inner .item .carousel-item {
    padding: 70px 20px 0 0;
    width: 70%;
    flex-shrink: 0;
  }
  .carousel-inner .item .carousel-item img {
    max-width: 180px !important;
    max-height: none;
    right: -20px;
  }
  .carousel-inner .carousel-item:nth-child(3) .img-responsive {
    max-width: 220px !important;
    bottom: -30px;
  }
}
@media (max-width: 767px) {
  .carousel-inner .item .carousel-item img {
    max-width: 170px !important;
    right: -20px;
  }
  .carousel-inner .carousel-item:nth-child(3) .img-responsive {
    max-width: 220px !important;
    bottom: -30px;
  }
  .carousel-item .carousel-perex {
    font-size: 18px;
  }
  .carousel-item .carousel-title {
    font-size: 28px;
    margin-bottom: 10px;
  }
  .carousel-item .btn {
    min-height: 40px;
  }
}
@media (max-width: 500px) {
  .carousel-inner .item .carousel-item img {
    max-width: 170px !important;
    right: -20px;
  }
  .carousel-item .carousel-perex {
    font-size: 14px;
  }
  .carousel-item .carousel-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .carousel-item .btn {
    min-height: 40px;
  }
}
