@keyframes pulse-text {

  0%,
  10% {
    opacity: 1;
    content: 'Нужна такая же услуга?';
  }

  20% {
    opacity: 0;
  }

  30%,
  40%,
  50%,
  60%,
  70% {
    opacity: 1;
    content: 'Заказать';
  }

  80% {
    opacity: 0;
  }

  90%,
  100% {
    opacity: 1;
    content: 'Нужна такая же услуга?';
  }
}

.cases-component-horizontal {
  position: relative;
  margin: -30px -17px;
  padding: 30px 17px;
  overflow: hidden;
}

.cases-component-horizontal__slider {
  overflow: visible !important;
}

.cases-component-horizontal__slider .swiper-slide {
  height: auto;
}

.cases-card-horizontal,
.cases-card-horizontal__description {
  display: flex;
}

.cases-card-horizontal {
  column-gap-gap: 16px;
  height: 100%;
  border-radius: 20px;
  padding: 24px;
  background-color: #FFFFFF;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.06);
}

.cases-card-horizontal__img {
  width: 463px;
  max-height: 282px;
}

.cases-card-horizontal__img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 16px;
}

.cases-card-horizontal-description__heading {
  color: #0E0E0F;
  font-family: "Open Sans", "sans-serif";
  font-weight: 600;
  font-style: normal;
  font-size: 25px;
  margin-bottom: 16.5px;
}

.cases-card-horizontal__content,
.cases-card-horizontal__description {
  flex: 1;
}

.cases-card-horizontal-description__text {
  flex: 1;
  /* max-height: 244px; */
  overflow-y: auto;
}

.cases-card-horizontal-description__text::-webkit-scrollbar {
  height: 12px;
  width: 12px;
}

.cases-card-horizontal-description__text::-webkit-scrollbar-track,
.cases-card-horizontal-description__text::-webkit-scrollbar-thumb {
  border-style: solid;
  border-color: #FFFFFF;
  border-width: 4px;
}

.cases-card-horizontal-description__text p {
  margin: 0;
  margin-top: 16px;
  font-family: "Roboto", "sans-serif";
  font-weight: 300;
  font-style: normal;
  font-size: 18px;
}

.cases-card-horizontal-description__text span {
  display: inline-block;
  font-family: "Roboto", "sans-serif";
  font-weight: 300;
  font-style: normal;
  font-size: 16px;
  color: #8E8E93;
}

.cases-card-horizontal__button {
  display: flex;
  align-items: flex-end;
  min-width: 247px;
}

.cases-card-horizontal__button button {
  position: relative;
  padding: 10px 20px;
  max-width: 100%;
}

.cases-card-horizontal__button button:after {
  content: 'Нужна такая же услуга?';
  animation: pulse-text 10s linear infinite;
}

@media screen and (max-width: 1300px) {
  .cases-component-horizontal {
    position: relative;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
}

@media screen and (max-width: 1279px) {
  .cases-card-horizontal__img {
    width: 263px;
  }
}

@media screen and (max-width: 980px) {
  .cases-component-horizontal .swiper-button-default {
    top: calc(((181px + 12px) / 2) - 32px / 2);
  }

  .cases-card-horizontal {
    padding: 12px;
  }

  .cases-card-horizontal,
  .cases-card-horizontal__description {
    flex-direction: column;
  }

  .cases-card-horizontal__content {
    display: flex;
    flex-direction: column;
  }

  .cases-card-horizontal__button {
    margin-top: auto;
  }

  .cases-card-horizontal__img {
    width: 100%;
    height: 181px;
    margin-bottom: 8px;
  }

  .cases-card-horizontal__description {
    max-height: unset;
  }

  .cases-card-horizontal-description__heading {
    font-family: "Open Sans", "sans-serif";
    font-weight: 600;
    font-style: normal;
    font-size: 16px;
    margin-bottom: 8px;
  }

  .cases-card-horizontal-description__text p {
    margin-top: 8px;
    font-family: "Roboto", "sans-serif";
    font-weight: 300;
    font-style: normal;
    font-size: 14px;
  }

  .cases-card-horizontal-description__text span {
    font-family: "Roboto", "sans-serif";
    font-weight: 300;
    font-style: normal;
    font-size: 12px;
    margin-bottom: 16px;
  }

  .cases-card-horizontal__button {
    max-width: 100%;
  }
}