 .testimonials,
  .testimonials * {
    box-sizing: border-box;
  }

  .testimonials {
    --red: #ed002f;
    --green: #00bfa5;
    --text: #666666;
    --light-gray: #f2f2f2;
    --dot-gray: #c7c9cb;

    width: 100%;
    padding: 70px 0;
    overflow: hidden;
    background: #ffffff;
    font-family: "Fira Sans", Arial, sans-serif;
  }

  .testimonials__container {
    width: min(100% - 40px, 1240px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    align-items: center;
    gap: 80px;
  }

  .testimonials__intro {
    position: relative;
    z-index: 2;
  }

  .testimonials__title {
    margin: 0 0 24px;
    color: var(--red);
    font-size: clamp(36px, 3vw, 52px);
    font-weight: 400;
    line-height: 1.02;
  }

  .testimonials__title strong {
    display: block;
    font-weight: 700;
  }

  .testimonials__description {
    max-width: 380px;
    margin: 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1.35;
  }

  .testimonials__navigation {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 30px;
  }

  .testimonials__arrow {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    padding: 0 0 3px;
    display: grid;
    place-items: center;
    border: 2px solid var(--red);
    border-radius: 50%;
    background: #ffffff;
    color: var(--red);
    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition:
      color 0.25s ease,
      background-color 0.25s ease,
      transform 0.25s ease;
  }

  .testimonials__arrow:hover {
    color: #ffffff;
    background: var(--red);
    transform: scale(1.06);
  }

  .testimonials__arrow:focus-visible,
  .testimonials__dot:focus-visible {
    outline: 3px solid rgba(237, 0, 47, 0.25);
    outline-offset: 4px;
  }

  .testimonials__dots {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .testimonials__dot {
    width: 14px;
    height: 14px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--dot-gray);
    cursor: pointer;
    transition:
      width 0.25s ease,
      background-color 0.25s ease,
      transform 0.25s ease;
  }

  .testimonials__dot.is-active {
    background: var(--red);
    transform: scale(1.08);
  }

  .testimonials__carousel {
    width: calc(100% + ((100vw - min(100vw - 40px, 1240px)) / 2));
    min-width: 0;
  }

  .testimonials__viewport {
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
  }

  .testimonials__track {
    display: flex;
    align-items: stretch;
    gap: 66px;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .testimonial-card {
    width: min(670px, calc(100vw - 570px));
    min-width: min(670px, calc(100vw - 570px));
    min-height: 390px;
    padding: 44px 58px 42px;
    border-radius: 0 78px 0 78px;
    background: var(--light-gray);
    color: var(--text);
  }

  .testimonial-card__quote {
    display: block;
    height: 56px;
    margin-bottom: 2px;
    color: var(--red);
    font-family: Georgia, serif;
    font-size: 94px;
    font-weight: 700;
    line-height: 0.85;
  }

  .testimonial-card__text {
    max-width: 590px;
    margin: 0;
    color: #747474;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.28;
  }

  .testimonial-card__stars {
    margin-top: 20px;
    color: var(--green);
    font-size: 25px;
    letter-spacing: 1px;
    line-height: 1;
  }

  .testimonial-card__client {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 30px;
  }

  .testimonial-card__avatar {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    display: grid;
    place-items: center;
    border: 3px solid var(--red);
    border-radius: 50%;
  }

  .testimonial-card__avatar svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: var(--red);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .testimonial-card__name {
    margin: 0;
    color: var(--red);
    font-size: 29px;
    font-weight: 700;
    line-height: 1.05;
  }

  .testimonial-card__contract,
  .testimonial-card__location {
    margin: 6px 0 0;
    color: var(--red);
    font-size: 14px;
    line-height: 1.2;
  }

  .testimonial-card__location {
    margin-top: 7px;
    font-size: 16px;
  }

  @media (max-width: 1100px) {
    .testimonials__container {
      grid-template-columns: 320px minmax(0, 1fr);
      gap: 45px;
    }

    .testimonial-card {
      width: min(620px, calc(100vw - 440px));
      min-width: min(620px, calc(100vw - 440px));
      padding-right: 45px;
      padding-left: 45px;
    }

    .testimonials__description {
      font-size: 18px;
    }
  }

  @media (max-width: 767px) {
    .testimonials {
      padding: 56px 0 68px;
    }

    .testimonials__container {
      width: min(100% - 32px, 430px);
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 34px;
    }

    .testimonials__intro {
      text-align: center;
    }

    .testimonials__title {
      margin-bottom: 26px;
      font-size: 31px;
      line-height: 0.98;
    }

    .testimonials__description {
      max-width: 330px;
      margin: 0 auto;
      font-size: 15px;
      line-height: 1.3;
    }

    .testimonials__navigation {
      justify-content: center;
      gap: 20px;
      margin-top: 28px;
    }

    .testimonials__arrow {
      width: 32px;
      height: 32px;
      flex-basis: 32px;
      border-width: 1.5px;
      font-size: 25px;
    }

    .testimonials__dots {
      gap: 10px;
    }

    .testimonials__dot {
      width: 9px;
      height: 9px;
    }

    .testimonials__carousel {
      width: 100%;
    }

    .testimonials__track {
      gap: 16px;
    }

    .testimonial-card {
      width: 100%;
      min-width: 100%;
      min-height: 282px;
      padding: 27px 34px 25px;
      border: 1.5px solid var(--red);
      border-radius: 0 46px 0 46px;
    }

    .testimonial-card__quote {
      height: 38px;
      margin-bottom: 8px;
      font-size: 66px;
    }

    .testimonial-card__text {
      font-size: 14px;
      line-height: 1.12;
      text-align: left;
    }

    .testimonial-card__stars {
      margin-top: 18px;
      font-size: 18px;
    }

    .testimonial-card__client {
      gap: 17px;
      margin-top: 24px;
    }

    .testimonial-card__avatar {
      width: 45px;
      height: 45px;
      flex-basis: 45px;
      border-width: 2px;
    }

    .testimonial-card__avatar svg {
      width: 29px;
      height: 29px;
    }

    .testimonial-card__name {
      font-size: 19px;
    }

    .testimonial-card__contract {
      margin-top: 3px;
      font-size: 9px;
    }

    .testimonial-card__location {
      margin-top: 4px;
      font-size: 11px;
    }
  }

  @media (prefers-reduced-motion: reduce) {

    .testimonials__track,
    .testimonials__arrow,
    .testimonials__dot {
      transition: none;
    }
  }