/* Homepage reviews carousel */

.home-page__reviews {
  position: relative;
  background: #050b1d;
}

.home-page__reviews::before {
  display: none;
}

.home-reviews {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.home-reviews__atmosphere {
  display: none;
}

.home-reviews__shell {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 88px) 0 clamp(64px, 8vw, 96px);
}

.home-reviews__header {
  max-width: 720px;
  margin: 0 auto clamp(20px, 3vw, 28px);
  text-align: center;
}

.home-reviews__headerRow {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 24px;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.home-reviews__viewAll {
  color: #60a5fa;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.home-reviews__viewAll:hover {
  color: #93c5fd;
  text-decoration: none;
}

.home-reviews__kicker {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #60a5fa;
}

.home-reviews__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.home-reviews__lead {
  margin: 0 auto;
  max-width: 56ch;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.92);
}

.home-reviews__carouselWrap {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  margin-top: 0;
}

.home-reviews__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  outline: none;
}

.home-reviews__viewport:focus-visible {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.28);
  border-radius: 18px;
}

.home-reviews__track {
  display: flex;
  gap: 24px;
  will-change: transform;
}

.home-reviews__card {
  flex: 0 0 calc((100% - 48px) / 3);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: clamp(22px, 2.4vw, 28px);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(8, 16, 34, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-reviews__rating {
  display: flex;
  gap: 3px;
  color: rgba(59, 130, 246, 0.28);
  font-size: 0.95rem;
  line-height: 1;
}

.home-reviews__star--full {
  color: #60a5fa;
}

.home-reviews__quote {
  margin: 0;
  flex: 1 1 auto;
  font-size: clamp(0.88rem, 1.05vw, 0.95rem);
  line-height: 1.6;
  color: rgba(241, 245, 249, 0.94);
}

.home-reviews__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.home-reviews__avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.28);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #93c5fd;
}

.home-reviews__who {
  min-width: 0;
}

.home-reviews__name {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #f8fafc;
}

.home-reviews__role {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(148, 163, 184, 0.88);
}

@media (max-width: 980px) {
  .home-reviews__card {
    flex: 0 0 100%;
  }

  .home-reviews__carouselWrap {
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .home-reviews__headerRow {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-reviews__track {
    transition: none !important;
  }
}
