/* Стили для блока отзывов */
html {
  background-color: rgba(26, 61, 57, 1);
}
body {
  /* background: rgba(26, 61, 57, 0.7); */
  /* background: linear-gradient(to top, rgba(26, 61, 57, 1), rgba(26, 61, 57, 1), rgba(26, 61, 57, 0.9)),  url('../images/reviews.jpg'); */
  background: rgba(26, 61, 57, 0.7) url('../images/background-test.png');
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%; width: 100%;
  padding-top: 2rem;
  opacity: 1;
  /* animation: pageFadeIn 0.6s ease forwards; */
}

.reviews-container {
  max-width: 1280px;
  min-height: 50vh;
  margin: 10.5rem auto 2rem auto;
  /* background: var(--sand-light); */
  padding: 2.5rem;
  /* border-radius: 24px; */
  /* box-shadow: 5px 5px 2rem rgba(0, 0, 0, 0.55) */
}
.reviews-title {
  display: flex;
  /* align-items: center; */
  gap: 10px;
  /* background-color: #0000005c; */
  width: fit-content;
  border-radius: 6px;
  text-shadow: 2px 2px 4px #000000;
  font-family: Rubic, sans-serif;
  color:  var(--sand);
  margin: 0 0 10px 0;
}
.reviews-title h1 {
  font-size: 3.6rem;
  font-weight: 400;
}

/* .reviews-title span {
  background: #ffd966;
  padding: 5px 15px;
  border-radius: 40px;
  font-size: 18px;
  font-weight: 500;
  color: #1a2b3c;
} */
.reviews-source {
  margin: 5px 0 30px 0;
  padding: 12px 18px;
  background: white;
  border-radius: 60px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  color: #4a5c6c;
  line-height: 1.5;
  border: 1px solid #e1e8ed;
}
.reviews-source a {
  color: var(--links);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.reviews-source a:hover {
  text-decoration: underline;
}
.reviews-source p{
  color: var(--text);
}
/* Сетка отзывов */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* flex-direction: column; */
  gap: 20px;
}
/* Карточка отзыва */
.review-card {
  min-width: 400px;
  background: rgb(242 242 242 / 90%);
  border-radius: 16px;
  padding: 25px;
  box-shadow: var(--shadow);
  border: 1px solid #eef2f6;
  transition: all 0.2s ease;
}
.review-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e0;
}
/* Шапка отзыва */
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.author-info {
  line-height: 1.4;
}
.author-name {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 4px;
}
.review-date {
  font-size: 14px;
  color: #6b7a88;
  display: flex;
  align-items: center;
  gap: 5px;
}
.review-date:before {
  content: "📅";
  font-size: 12px;
  opacity: 0.7;
}
/* Рейтинг */
.review-rating {
  background: #f2fff6;
  padding: 8px 16px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #1d5268;
  border: 1px solid #e0f1e4;
}
.stars {
  color: #f8b84a;
  font-size: 18px;
  letter-spacing: 2px;
}
.rating-value {
  background: white;
  padding: 3px 8px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #2d5a3d;
  margin-left: 5px;
  border: 1px solid #cde3ed;
}
/* Текст отзыва */
.review-text {
  font-size: 16px;
  line-height: 1.2;
  color: #1f3a4c;
  margin: 18px 0 15px 0;
  padding: 5px 0;
  white-space: pre-line; /* сохраняет переносы строк */
}
/* Стоимость работ (если указана) */
.review-cost {
  background: #f2fff6;
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 5px 0;
  border: 1px solid #d0e2ed;
}
.review-cost:before {
  content: "💰";
  font-size: 14px;
}
/* Футер отзыва со ссылкой на источник */
.review-source-link {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px dashed #cbdae6;
  font-size: 14px;
  color: #6f8a9c;
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-source-link a {
  color: var(--links);
  text-decoration: none;
  font-weight: 500;
  background: #e6f2f9;
  padding: 4px 12px;
  border-radius: 30px;
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.review-source-link a:hover {
  /* background: #cbe4f0; */
  text-decoration: underline;
}
/* Метка "Пять с плюсом" */
.rating-label {
  /* background: #e1f5fe; */
  background: #d9f9e1;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 4px 12px;
  border-radius: 30px;
  margin-left: 10px;
  border: 1px solid #95c3a3;
}

.reviews__button {margin-top: 3.5rem; text-align: center}
.reviews__button a { 
  background: var(--green-light);
  border: 1px solid var(--green);
  color: #fff;
  font-size: 1.6rem;
  /* color: var(--sand-light); */
  padding: 12px 35px;
  border-radius: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.reviews__button a:hover {background-color: var(--green); box-shadow: var(--shadow);}

@media (max-width: 1280px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}
/* Адаптация под мобильные */
@media (max-width: 768px) {
  .reviews-container {
    margin: 12.5rem auto 2rem auto;
  }
  .reviews-source {
    display: inherit;
  }
}
@media (max-width: 600px) {
  .reviews-container {
    margin: 14.5rem auto 2rem auto;
  }
  .review-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .review-rating {
    align-self: flex-start;
  }
  .author-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .review-card {min-width: auto;}
  .review-cost {font-size: 1.2rem;}
  .reviews__button a {padding: 1.2rem 2rem;}
}
@media (max-width: 420px) {
  .reviews-title {font-size: 2.5rem;}
  .reviews-source {font-size: 1.2rem; margin: .5rem 0 2rem 0; padding: 18px 20px;}
  .review-text {font-size: 1.2rem; line-height: 1.3; margin: 1rem 0; padding: 0;}
  .review-header {margin-bottom: 1rem;}
}
