.reviews{
  background: #ecf2f7;
  padding-bottom: var(--section-pad-bottom);
}

.reviews__container{
  padding-top: var(--section-pad-top);
}

.reviews__top{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(36px, 7vw, 56px);
}

.reviews__heading{
  text-align: left;
}

.reviews__heading .section-heading__mini {
  text-align: left;
}

.reviews__title{
  margin: 8px 0 0;
  font-size: clamp(26px, 2.3vw, 40px);
  line-height: 1.15;
  font-weight: 900;
}

.reviews__all-btn{
  flex: 0 0 auto;
}

.reviews__all-btn {
  transition: opacity .24s ease, transform .24s ease;
  border: none;
  border-radius: 600px;

  /* адаптивные отступы */
  padding: clamp(12px, 1vw, 16px) clamp(20px, 2vw, 32px);

  /* убираем жесткие width/height */
  min-height: clamp(44px, 5vw, 56px);
  width: fit-content;

  background: transparent;
  border: 1px solid var(--main-light);

  font-family: var(--font-family);
  font-weight: 600;

  /* адаптивный текст */
  font-size: clamp(12px, 0.9vw, 14px);
  line-height: 1.4;

  text-transform: uppercase;
  color: var(--main-normal);

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reviews__all-btn:hover {
 background: var(--bg);
 color: var(--main-normal);
}

.reviews__slider{
  overflow: visible;
  padding: 8px 6px 14px;
}

.reviews__slider .swiper-slide{
  height: auto;
}

.review-card{
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: clamp(36px, 6vw, 46px) clamp(16px, 3vw, 20px) 18px;
  min-height: clamp(220px, 38vw, 270px);
  display: flex;
  flex-direction: column;
}

.review-card__avatar{
  position: absolute;
  left: 20px;
  top: -36px;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid #ecf2f7;
}

.review-card__avatar::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #9fb8cc 0%, #cddde8 100%);
}

.review-card__avatar-img{
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.review-card__title {
  margin: clamp(8px, 1vw, 12px) 0 clamp(6px, 0.8vw, 8px);

  font-family: var(--font-family);
  font-weight: 600;

  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.3;

  color: var(--text-dark);
}

.review-card__text {
  margin: 0 0 clamp(8px, 1vw, 12px);

  font-family: var(--font-family);
  font-weight: 300;

  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.5;

  color: var(--text-mormal);
}

.review-card__link {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.8vw, 8px);

  font-family: var(--second-family);
  font-weight: 700;

  font-size: clamp(14px, 1.2vw, 16px);
    margin-top: auto;
  color: var(--main--blue);
}

.review-card__date {

  padding-top: clamp(8px, 1vw, 12px);

  font-family: var(--font-family);
  font-weight: 500;

  font-size: clamp(10px, 0.9vw, 12px);
  letter-spacing: clamp(0.04em, 0.08vw, 0.08em);

  text-transform: uppercase;
  color: var(--main-normal);
}

@media (max-width: 900px){
  .reviews__container{
    overflow: hidden;
  }

  .reviews__slider{
    padding: 8px 8px 18px;
  }

  .reviews__top{
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: clamp(32px, 8vw, 44px);
  }
}

