.trust-showcase {
  border-radius: 20px;
  background-color: #F2F2F2;
  position: relative;
  width: 600px;
  height: 500px;

  .docsearch {
    z-index: 5;
    position: absolute;
    left: -15%;
    top: -15%;
    width: 700px;
    height: auto;
    transform: scaleX(-1);
  }


  .slider {
    position: absolute;
    right: -75%;
    top: 16%;
    z-index: 2;
    width: 540px;
    height: 400px;
    border-radius: 20px;
    background-color: white;
    padding: 60px;

    .brackeds {
      img {
        width: 50px;
        margin-bottom: 20px;

        @include media-breakpoint-down(md) {
          margin-bottom: 0;
        }
      }
    }

    .client-response {
      font-family: "Poppins", sans-serif;
      color: #3F3F3F;
      font-size: 18px;
      font-weight: 300;
      line-height: 30px;
      transition: opacity 0.5s ease;
      height: 170px;
      margin-bottom: 10px;
    }

    .client-info {
      margin-top: 20px;
      display: flex;
      align-items: center;

      &-image {
        margin-right: 20px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-color: #D9D9D9;
        transition: transform 0.5s ease, opacity 0.5s ease;
      }

      &-details {
        transition: opacity 0.5s ease;
      }

      &-name {
        color: var(--dark-blue-color);
        font-family: "Poppins", sans-serif;
        text-transform: uppercase;
      }

      &-job {
        color: #3F3F3F;
        font-feature-settings: 'liga' off, 'clig' off;
      }
    }

    .stars {
      margin-left: auto;
      transition: opacity 0.5s ease;

      img {
        width: 20px;
        height: 20px;
        margin-left: 3px;
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.5s ease,
        transform 0.5s ease;

        // Разные задержки для каждой звезды
        &:nth-child(1) {
          transition-delay: 0.1s;
        }

        &:nth-child(2) {
          transition-delay: 0.2s;
        }

        &:nth-child(3) {
          transition-delay: 0.3s;
        }

        &:nth-child(4) {
          transition-delay: 0.4s;
        }

        &:nth-child(5) {
          transition-delay: 0.5s;
        }
      }
    }

    .nav-buttons {
      position: absolute;
      right: 20px;
      top: 20px;
      display: flex;
      gap: 10px;
    }

    .nav-btn {
      width: 45px;
      height: 45px;
      border-radius: 50%;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .prev-btn {
      background-color: #fff;

      svg path {
        stroke: #4B5563;
      }
    }

    .next-btn {
      background-color: var(--dark-blue-color);

      svg path {
        stroke: #fff;
      }
    }

    .fade-out {
      opacity: 0;
    }

    .fade-in {
      opacity: 1;
    }

    .stars-animate-out {
      opacity: 0;

      img {
        opacity: 0;
        transform: translateY(10px);
      }
    }

    .stars-animate-in {
      opacity: 1;

      img {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .avatar-animate-out {
      transform: scale(0.8);
      opacity: 0.5;
    }

    .avatar-animate-in {
      transform: scale(1);
      opacity: 1;
    }
  }

  @include media-breakpoint-down(xl) {
    width: 400px;
    height: 350px;

    .docsearch {
      width: 450px;
    }

    .slider {
      width: 400px;
      height: 300px;
      padding: 20px;
      right: -86%;

      .brackeds {
        img {
          width: 32px;
        }
      }

      .client-response {
        margin-top: 14px;
        font-size: 16px;
        line-height: 17px;
        height: auto;
      }

      .client-info {
        margin-top: 30px;

        &-image {
          margin-right: 12px;
          width: 45px;
          height: 45px;
        }

        .client-info-details {
          font-size: 16px;
        }

      }

      .nav-btn {
        width: 34px;
        height: 34px;
      }

      .stars {
        img {
          width: 16px;
        }
      }
    }
  }

  @include media-breakpoint-down(lg) {
    width: 300px;
    height: 250px;

    .docsearch {
      width: 350px;
    }

    .slider {
      width: 300px;
      height: 200px;
      padding: 16px;
      right: -86%;

      .brackeds {
        img {
          width: 20px;
        }
      }

      .client-response {
        font-size: 12px;
        line-height: 15px;
        height: auto;
      }

      .client-info {
        margin: 0;

        &-image {
          margin-right: 12px;
          width: 30px;
          height: 30px;
        }

        .client-info-details {
          font-size: 12px;
        }

      }

      .nav-btn {
        width: 22px;
        height: 22px;
      }

      .stars {
        img {
          width: 10px;
        }
      }
    }
  }

  @include media-breakpoint-down(sm) {
    width: 90vw;
    height: 200px;

    .docsearch {
      width: 200px;
    }

    .slider {
      //width: 300px;
      height: 200px;
      padding: 16px;
      right: -118%;
      top: 64%;
      border: 1px solid #abb6c0;

      position: initial;
      width: 90vw;


      .brackeds {
        img {
          width: 20px;
        }
      }

      .client-response {
        font-size: 14px;
        line-height: 15px;
        height: auto;
      }

      .client-info {
        margin: 0;

        &-image {
          margin-right: 12px;
          width: 30px;
          height: 30px;
        }

        .client-info-details {
          font-size: 12px;
        }

      }

      .nav-buttons {
        top: 210px;
      }

      .nav-btn {
        width: 22px;
        height: 22px;
      }

      .stars {
        img {
          width: 10px;
        }
      }
    }
  }

}
