.block-testimonials-slider {
  padding: 228px 0;
  overflow: hidden;
}

.block-testimonials-slider__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  position: relative;
}

.block-testimonials-slider__inner:after {
  content: "";
  display: block;
  width: 472px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='472' height='16' viewBox='0 0 472 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.99512 0V16' stroke='%23111111'/%3E%3Cpath d='M16 7.99512L-5.96046e-08 7.99512' stroke='%23111111'/%3E%3Cpath d='M235.995 0V16' stroke='%23111111'/%3E%3Cpath d='M244 7.99512L228 7.99512' stroke='%23111111'/%3E%3Cpath d='M463.995 0V16' stroke='%23111111'/%3E%3Cpath d='M472 7.99512L456 7.99512' stroke='%23111111'/%3E%3C/svg%3E%0A");
  position: absolute;
  z-index: 2;
  right: -8px;
  top: -8px;
  pointer-events: none;
}

.block-testimonials-slider__left {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 68px;
  max-width: 456px;
  position: relative;
}

.block-testimonials-slider__left:after {
  content: "";
  display: block;
  width: 472px;
  height: 472px;
  background-image: url("data:image/svg+xml,%3Csvg width='472' height='472' viewBox='0 0 472 472' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.99512 456V472' stroke='%23111111'/%3E%3Cpath d='M16 463.995L-5.96046e-08 463.995' stroke='%23111111'/%3E%3Cpath d='M235.995 456V472' stroke='%23111111'/%3E%3Cpath d='M244 463.995L228 463.995' stroke='%23111111'/%3E%3Cpath d='M463.995 456V472' stroke='%23111111'/%3E%3Cpath d='M472 463.995L456 463.995' stroke='%23111111'/%3E%3Cpath d='M7.99512 228V244' stroke='%23111111'/%3E%3Cpath d='M16 235.995L-5.96046e-08 235.995' stroke='%23111111'/%3E%3Cpath d='M7.99512 0V16' stroke='%23111111'/%3E%3Cpath d='M16 7.99512L-5.96046e-08 7.99512' stroke='%23111111'/%3E%3C/svg%3E%0A");
  position: absolute;
  z-index: 2;
  left: -8px;
  bottom: -236px;
  pointer-events: none;
}

.block-testimonials-slider__text-side {
  display: flex;
  align-items: flex-start;
}

.block-testimonials-slider__title {
  margin: 0;
  text-transform: uppercase;
  color: var(--tg-color-black);
  max-width: 390px;
}

.block-testimonials-slider__title .scramble-hl {
  color: var(--tg-color-red);
}

.block-testimonials-slider__image-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.block-testimonials-slider__image-box video {
  width: 228px;
  height: 228px;
}

.block-testimonials-slider[data-image-box-align=start] .block-testimonials-slider__image-box {
  justify-content: flex-start;
}

.block-testimonials-slider__heart {
  display: block;
  width: 228px;
  height: auto;
}

.block-testimonials-slider__logo {
  margin-top: 24px;
}

.block-testimonials-slider__logo img {
  display: block;
  max-width: 180px;
  max-height: 64px;
  width: auto;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.block-testimonials-slider__right {
  flex: 0 0 456px;
  width: 456px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 228px;
}

.block-testimonials-slider__slider-area {
  position: relative;
  z-index: 0;
}

.block-testimonials-slider__slider-area::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 153px;
  height: 376px;
  background-color: var(--tg-color-black);
  pointer-events: none;
  z-index: -1;
  clip-path: polygon(calc(100% - 4px) 0, 100% 4px, 4px 4px, 4px 100%, 0 calc(100% - 4px), 0 0);
}

.block-testimonials-slider__swiper {
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 0;
  z-index: 1;
}

.block-testimonials-slider__swiper .swiper-wrapper {
  position: relative;
  width: 100%;
  z-index: 1;
  display: flex;
  transition-property: transform;
  box-sizing: content-box;
}

.block-testimonials-slider__swiper .swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: auto;
  position: relative;
  transition-property: transform;
}

.block-testimonials-slider__card {
  background-color: var(--tg-color-yellow);
  padding: 40px 40px 20px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 368px;
  justify-content: space-between;
}

.block-testimonials-slider .block-testimonials-slider__text {
  color: var(--tg-color-black);
  margin: 0 0 auto;
}

.block-testimonials-slider .block-testimonials-slider__text p {
  margin: 0 0 8px;
}

.block-testimonials-slider .block-testimonials-slider__text p:last-child {
  margin-bottom: 0;
}

.block-testimonials-slider__author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 20px;
}

.block-testimonials-slider__author-name {
  margin: 0;
  color: var(--tg-color-black);
}

.block-testimonials-slider__author-title {
  margin: 0;
  color: var(--tg-color-black);
}

.block-testimonials-slider__nav {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background-color: var(--tg-color-yellow);
  padding: 0 40px 40px;
}

.block-testimonials-slider__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: none;
  border: 1px solid var(--tg-color-black);
  cursor: pointer;
  color: var(--tg-color-black);
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.block-testimonials-slider__btn svg path {
  fill: currentColor;
}

.block-testimonials-slider__btn:hover {
  background-color: var(--tg-color-black);
  color: var(--tg-color-yellow);
}

.block-testimonials-slider__pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.block-testimonials-slider__pagination.swiper-pagination {
  position: static;
  width: auto;
}

.block-testimonials-slider__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background-color: #111111;
  opacity: 1;
  border-radius: 0;
  transition: background-color 0.2s ease;
}

.block-testimonials-slider__pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: #FF3800;
}

@media (min-width: 768px) {
  .block-testimonials-slider[data-image-box-align=start] .block-testimonials-slider__left {
    gap: 148px;
  }

  .block-testimonials-slider[data-image-box-align=start] .block-testimonials-slider__left:after {
    background-image: url("data:image/svg+xml,%3Csvg width='244' height='16' viewBox='0 0 244 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.99512 0V16' stroke='%23111111'/%3E%3Cpath d='M16 7.99512L-5.96046e-08 7.99512' stroke='%23111111'/%3E%3Cpath d='M235.995 0V16' stroke='%23111111'/%3E%3Cpath d='M244 7.99512L228 7.99512' stroke='%23111111'/%3E%3C/svg%3E%0A");
    width: 244px;
    height: 16px;
  }
}

@media (min-width: 992px) {
  .block-testimonials-slider[data-image-box-align=start] .block-testimonials-slider__right {
    width: 683px;
  }
}

@media (max-width: 767px) {
  .block-testimonials-slider {
    padding: 65px 0;
  }

  .block-testimonials-slider__inner {
    flex-direction: column;
    gap: 66px;
  }

  .block-testimonials-slider__inner:after {
    display: none;
  }

  .block-testimonials-slider__left {
    flex: none;
    width: 100%;
    gap: 21px;
    max-width: 100%;
  }

  .block-testimonials-slider__left:after {
    width: 16px;
    height: 148px;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='148' viewBox='0 0 16 148' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.99512 66V82' stroke='%23111111'/%3E%3Cpath d='M16 73.9951L-5.96046e-08 73.9951' stroke='%23111111'/%3E%3Cpath d='M7.99512 0V16' stroke='%23111111'/%3E%3Cpath d='M16 7.99512L-5.96046e-08 7.99512' stroke='%23111111'/%3E%3Cpath d='M7.99512 132V148' stroke='%23111111'/%3E%3Cpath d='M16 139.995L-5.96046e-08 139.995' stroke='%23111111'/%3E%3C/svg%3E%0A");
    left: -5px;
    bottom: -8px;
  }

  .block-testimonials-slider__title {
    font-size: 20px;
    line-height: 28px;
    max-width: 242px;
  }

  .block-testimonials-slider[data-image-box-align=start] .block-testimonials-slider__left:after {
    left: unset;
    right: -5px;
  }

  .block-testimonials-slider__heart {
    width: 198px;
  }

  .block-testimonials-slider__logo {
    margin-top: 91px;
  }

  .block-testimonials-slider__right {
    flex: none;
    width: 100%;
    padding-top: 0;
  }

  .block-testimonials-slider__card {
    padding: 16px 16px 20px;
  }

  .block-testimonials-slider__nav {
    padding: 0 16px 16px;
  }
}