.cases-block__wrapper {
  display: grid;
  gap: 30px;
}
.cases-block .pagination {
  justify-content: center;
}
.cases-block__subtitle {
  font-weight: 700;
  font-size: 32px;
  line-height: 140%;
}
.cases-block__nav-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0;
}

.ts-tab__item {
  position: relative;
  background: #ffffff;
  box-shadow: 0px 51px 71px -11px #e0e8e8;
  border-radius: 12px;
  padding: 50px;
}
.ts-tab__button-block {
  display: flex;
  justify-content: space-between;
}
.ts-tab__button {
  background: #ffffff;
  box-shadow: 0px 15px 50px rgba(36, 36, 36, 0.1);
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  line-height: 160%;
  padding: 11px 12px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.ts-tab__button_active {
  background: linear-gradient(90deg, #ef4343 -0.19%, #ff6262 99.95%);
  color: #fff;
  display: block;
}
.ts-tab__button__item {
  position: relative;
  display: none;
}
.ts-tab__button__item_active {
  display: block;
}

.casesSlider {
  position: relative;
}
.casesSlider__item {
  display: flex;
  align-items: stretch;
  gap: 75px;
}
.casesSlider__gallery {
  width: 53%;
  flex-shrink: 0;
}
.casesSlider__gallery-active {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  max-height: 315px;
}
.casesSlider__gallery-active img {
  width: 100%;
  object-fit: cover;
}
.casesSlider__gallery-miniature-block {
  margin-top: 13px;
  display: flex;
  gap: 15px;
  align-items: center;
  width: 100%;
  overflow-x: auto;
}
.casesSlider__gallery-miniature {
  border-radius: 6px;
  width: 96px;
  height: 56px;
  overflow: hidden;
  background: #000;
  position: relative;
  cursor: pointer;
}
.casesSlider__gallery-miniature img {
  opacity: 0.6;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  object-fit: cover;
}
.casesSlider__gallery-miniature_active, .casesSlider__gallery-miniature:hover {
  border: 4px solid #3aad81;
}
.casesSlider__gallery-miniature_active img, .casesSlider__gallery-miniature:hover img {
  opacity: 1;
}
.casesSlider__content {
  flex-grow: 1;
  position: relative;
}
.casesSlider__title {
  font-weight: 700;
  font-size: 20px;
  line-height: 150%;
}
.casesSlider__description {
  font-weight: 400;
  font-size: 14px;
  line-height: 160%;
}
.casesSlider__button-block {
  position: absolute;
  bottom: 0px;
  margin-top: 20px;
}
@media (max-width: 1200px) {
  .cases-block .ts-swiper-navigation {
    display: none;
  }
}
@media (max-width: 1024px) {
  .cases-block__wrapper .ts-tab__item {
    overflow: hidden;
  }
  .ts-tab__item {
    padding: 25px;
  }
  .ts-tab__button-block {
    overflow-x: auto;
    height: 50px;
  }
  .ts-tab__button {
    font-size: 14px;
  }
  .casesSlider__item {
    gap: 32px;
  }
}
@media (max-width: 576px) {
  .cases-block__subtitle {
    font-size: 18px;
  }
  .cases-block__nav-block {
    margin: 32px 0 16px;
  }
  .ts-tab__item {
    padding: 16px;
  }
  .ts-tab__button-block {
    gap: 10px;
  }
  .casesSlider__item {
    flex-direction: column;
    gap: 32px;
  }
  .casesSlider__gallery {
    width: 100%;
  }
  .casesSlider__gallery-active {
    max-height: 144px;
  }
  .casesSlider__content {
    width: 100%;
  }
  .casesSlider__title {
    font-size: 14px;
  }
  .casesSlider__description {
    font-size: 12px;
  }
  .casesSlider__button-block {
    position: relative;
    display: block;
    width: 100%;
  }
}
