.home-reviews {
  padding: 48px 0;
  background: #fff;
}

.home-reviews .container {
  width: min(1380px, calc(100% - 48px));
}

.reviews-head {
  display: flex;
  margin-bottom: 24px;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.reviews-heading {
  max-width: 760px;
}

.reviews-title {
  margin: 0 0 10px;
  color: var(--smd-text);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.reviews-subtitle {
  color: var(--smd-muted);
  font-size: 15px;
  line-height: 1.6;
}

.reviews-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.review-source-chip {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #e1ecf4;
  border-radius: 999px;
  background: #f2f7fb;
  color: var(--smd-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.review-source-chip:hover,
.review-source-chip:focus-visible {
  border-color: var(--smd-blue);
  background: var(--smd-blue);
  color: #fff;
}

.review-source-chip svg,
.review-yandex-mark {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.review-source-chip svg {
  fill: currentColor;
  color: var(--smd-blue);
}

.review-source-chip:hover svg,
.review-source-chip:focus-visible svg {
  color: #fff;
}

.review-yandex-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fc3f1d;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.review-source-chip__rating {
  margin-left: 2px;
  color: var(--smd-blue);
  font-weight: 700;
}

.review-source-chip:hover .review-source-chip__rating,
.review-source-chip:focus-visible .review-source-chip__rating {
  color: #fff;
}

.reviews-slider {
  position: relative;
  padding: 0 54px;
}

.reviews-slider:not(.has-controls) {
  padding: 0;
}

.reviews-viewport {
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 20px;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.review-card {
  display: flex;
  min-height: 264px;
  min-width: 0;
  flex: 0 0 calc((100% - 40px) / 3);
  flex-direction: column;
  padding: 26px 24px 24px;
  border: 1px solid #e8ecf0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 48, 74, 0.06);
  font-family: "Roboto", sans-serif;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 14px 28px rgba(15, 48, 74, 0.12);
  transform: translateY(-4px);
}

.review-card__top {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  display: flex;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--smd-primary-light), var(--smd-blue));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.review-card__meta {
  min-width: 0;
  flex: 1;
}

.review-card__author {
  margin: 0;
  color: var(--smd-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.review-card__date {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
}

.review-card__source {
  display: flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #64748b;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.review-card__source--yandex {
  background: #fc3f1d;
}

.review-card__source--telegram {
  background: #27a6e6;
}

.review-card__source--prodoctorov {
  background: var(--smd-primary);
}

.review-card__source svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.review-card__stars {
  margin-bottom: 10px;
  color: #ffb400;
  font-size: 15px;
  letter-spacing: 1px;
}

.review-card__text {
  flex: 1;
  color: #3f4b59;
  font-size: 15px;
  line-height: 1.6;
}

.reviews-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: flex;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #dbe4ec;
  border-radius: 50%;
  background: #fff;
  color: var(--smd-blue);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.reviews-arrow:hover,
.reviews-arrow:focus-visible {
  border-color: var(--smd-blue);
  background: var(--smd-blue);
  color: #fff;
}

.reviews-arrow:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.reviews-arrow--prev {
  left: 0;
}

.reviews-arrow--next {
  right: 0;
}

.reviews-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1024px) {
  .home-reviews .container {
    width: min(1380px, calc(100% - 40px));
  }

  .review-card {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (max-width: 768px) {
  .home-reviews .container {
    width: min(1380px, calc(100% - 32px));
  }

  .reviews-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .reviews-title {
    font-size: 24px;
  }

  .reviews-sources {
    width: 100%;
  }

  .review-source-chip {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .reviews-slider {
    padding: 0 44px;
  }

  .reviews-slider:not(.has-controls) {
    padding: 0;
  }

  .review-card {
    flex-basis: 100%;
    min-height: 350px;
    padding: 26px 24px 24px;
  }
}

@media (max-width: 480px) {
  .reviews-title {
    font-size: 22px;
  }

  .reviews-subtitle {
    font-size: 14px;
  }
}
