/* Module 6 — User reviews */

.reviews {
  background-color: #f3f3f5;
  background-image: url("../assets/images/home/page6_bg.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  height: auto;
  min-height: 100vh;
}

.reviews__inner {
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 64px 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.reviews__header {
  text-align: center;
  margin-bottom: 40px;
}

.reviews__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: #2d2e5f;
  line-height: 1.3;
  margin-bottom: 12px;
}

.reviews__subtitle {
  font-size: 16px;
  color: #888;
  line-height: 1.6;
}

.reviews__carousel {
  position: relative;
}

.reviews__viewport {
  overflow: hidden;
}

.reviews__track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.reviews__card {
  padding: 0 12px;
  box-sizing: border-box;
}

.reviews__card-inner {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  height: 100%;
  min-height: 220px;
}

.reviews__card-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 20px;
}

.reviews__card-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
}

.reviews__card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.reviews__card-headline {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.45;
  margin-bottom: 12px;
}

.reviews__card-body {
  font-size: 14px;
  color: #888;
  line-height: 1.75;
}

.reviews__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.reviews__dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  border: none;
  padding: 0;
  background: #d8d8de;
  cursor: pointer;
  transition: background 0.25s, width 0.25s;
}

.reviews__dot--active {
  background: #e34d3d;
  width: 36px;
}

.reviews__dot:hover {
  background: #bbb;
}

.reviews__dot--active:hover {
  background: #e34d3d;
}

.reviews__about {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-top: 72px;
}

.reviews__contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 14px 40px;
  background: #e34d3d;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 28px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.reviews__contact-btn:hover {
  background: #c93d2e;
  transform: translateY(-1px);
}

.reviews__about-content {
  flex: 1;
  max-width: 720px;
  text-align: right;
}

.reviews__about-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: #2d2e5f;
  line-height: 1.3;
  margin-bottom: 24px;
}

.reviews__about-text {
  font-size: 15px;
  color: #888;
  line-height: 1.85;
}

.reviews__about-text p + p {
  margin-top: 16px;
}

.reviews__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #ddd;
}

.reviews__copyright {
  font-size: 13px;
  color: #999;
}

.reviews__footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.reviews__footer-link {
  font-size: 13px;
  color: #999;
  transition: color 0.2s;
}

.reviews__footer-link:hover {
  color: #666;
}

html[dir="rtl"] .reviews__card-header {
  flex-direction: row-reverse;
}

html[dir="rtl"] .reviews__about {
  flex-direction: row-reverse;
}

html[dir="rtl"] .reviews__about-content {
  text-align: left;
}

html[dir="rtl"] .reviews__footer {
  flex-direction: row-reverse;
}

@media (max-width: 900px) {
  .reviews__inner {
    padding: 56px 32px 32px;
  }

  .reviews__about {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    margin-top: 56px;
  }

  .reviews__contact-btn {
    align-self: flex-start;
  }

  .reviews__about-content {
    max-width: 100%;
    text-align: left;
  }

  html[dir="rtl"] .reviews__about {
    flex-direction: column;
  }

  html[dir="rtl"] .reviews__about-content {
    text-align: right;
  }

  html[dir="rtl"] .reviews__contact-btn {
    align-self: flex-end;
  }
}

@media (max-width: 640px) {
  .reviews__inner {
    padding: 48px 20px;
  }

  .reviews__card-inner {
    min-height: 200px;
    padding: 24px 20px;
  }
}
