html, body { 
  font-family: 'Open Sans', sans-serif;
  background-color: #F5F7FA !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.custom-reviews-container {
  text-align: center;
  max-width: 1200px;
  margin: 10px auto;
  padding: 20px 16px;
  box-sizing: border-box;
  flex: 1;
}

.custom-reviews-container h2 {
  font-size: 32px;
  margin-top: 15px;
  margin-bottom: 40px;
}

/* новая карусель */
.custom-reviews-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 30px;
}

.custom-reviews-viewport {
  overflow: hidden;
  width: 100%;
}

.custom-reviews-track {
  display: flex;
  will-change: transform;
}

.custom-review-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  width: calc(33.333% - 14px);
  flex: 0 0 calc(33.333% - 14px);
  margin: 0 7px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  text-align: left;
  box-sizing: border-box;
  flex-shrink: 0;
}

.custom-review-top {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.custom-review-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background-color: #ccc;
  margin-right: 10px;
  flex-shrink: 0;
  overflow: hidden;
}

.review-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.custom-review-name {
  font-size: 16px;
  font-weight: 700;
}

.custom-review-stars {
  color: #FFC107;
  font-size: 16px;
  margin: 5px 0;
}

.custom-review-text {
    font-size: 14px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.custom-review-text p:last-child {
  margin-bottom: 0;
}

/* стрелки */
.custom-reviews-prev,
.custom-reviews-next {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .3s;
  z-index: 10;
}

.custom-reviews-prev:hover,
.custom-reviews-next:hover {
  background-color: #A06D38;
}

/* кнопка */
.custom-reviews-container .btn-primary,
.custom-reviews-button {
  margin-top: 10px;
  background-color: #B77F41;
  color: #fff;
  padding: 12px 28px;
  font-size: 24px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.custom-reviews-container .btn-primary:hover,
.custom-reviews-button:hover {
  background-color: #A06D38;
}

/* адаптив */
@media (max-width: 980px) {
  .custom-reviews-container h2 {
    font-size: 28px;
  }

  .custom-review-item {
    padding: 18px;
  }

  .custom-review-name,
  .custom-review-stars,
  .custom-review-text {
    font-size: 13x;
  }
}

@media (max-width: 864px) {
  .custom-reviews-container h2 {
    font-size: 28px;
  }

  .custom-review-item {
    padding: 16px;
  }

  .custom-review-name,
  .custom-review-stars,
  .custom-review-text {
    font-size: 12x;
  }
}

@media (max-width: 792px) {
  .custom-reviews-container {
    padding: 10px 0;
    margin: 10px 0;
  }

  .custom-reviews-container h2 {
    font-size: 26px;
    margin-bottom: 32px;
  }

  .custom-reviews-carousel-wrapper {
    gap: 0;
  }

  .custom-review-item {
    width: calc(100% - 14px);
    flex: 0 0 calc(100% - 14px);
    padding: 18px;
  }

  .custom-review-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .custom-review-name,
  .custom-review-stars,
  .custom-review-text {
    font-size: 14px;
  }

  .custom-reviews-prev,
  .custom-reviews-next {
    display: none !important;
  }

  .custom-reviews-container .btn-primary,
  .custom-reviews-button {
    font-size: 18px;
    padding: 10px 24px;
  }
}

@media (max-width: 500px) {
  .custom-reviews-container h2 {
    font-size: 22px;
  }
}

@media (max-width: 375px) {
  .custom-reviews-container {
    padding: 10px 0;
    margin: 10px 0;
  }

  .custom-reviews-container h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .custom-review-item {
    width: calc(100% - 14px);
    flex: 0 0 calc(100% - 14px);
    padding: 16px;
  }

  .custom-review-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .custom-review-name,
  .custom-review-stars,
  .custom-review-text {
    font-size: 12x;
  }

  .custom-reviews-container .btn-primary,
  .custom-reviews-button {
    font-size: 18px;
    padding: 10px 24px;
  }
}

.custom-review-source {
    display: inline-block;
    margin: 3px 0;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f1f1f1;
    font-size: 12px;
    line-height: 1.3;
    color: #666;
}