/* ===== Reviews Grid ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===== Review Card ===== */
.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 28px 22px;
  box-shadow: 0 4px 20px rgba(8, 65, 158, 0.08);
  border: 1px solid rgba(33, 163, 225, 0.12);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(8, 65, 158, 0.14);
}

/* Quote icon */
.review-card__icon {
  font-size: 48px;
  line-height: 1;
  color: #21A3E1;
  opacity: 0.18;
  position: absolute;
  top: 16px;
  right: 22px;
  font-family: Georgia, serif;
  pointer-events: none;
  user-select: none;
}

/* Review text */
.review-card__text {
  font-size: 15px;
  line-height: 1.65;
  color: #444;
  flex-grow: 1;
  margin: 0 0 20px;
  padding-right: 28px;
}

/* Footer: stars + author */
.review-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #f0f4f8;
  padding-top: 16px;
  flex-wrap: wrap;
}

/* Stars */
.review-card__stars {
  color: #F5A623;
  font-size: 18px;
  letter-spacing: 2px;
  line-height: 1;
}

/* Author block */
.review-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #21A3E1;
  flex-shrink: 0;
}

.review-card__name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

/* Keep h2 above grid tidy */
.index-block.comments h2.block-name {
  margin-bottom: 28px;
}

/* ===== Вложенный .wrap внутри .page-content не должен иметь фиксированную ширину ===== */
/* Это исправляет горизонтальный сдвиг: .wrap = 1110px внутри .page-content = 74% */
.services-page .page-content .wrap {
  width: auto !important;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* ===== Compare Block (внутренние страницы) ===== */
.services-page .page-content .index-compare-block {
  background: linear-gradient(160deg, #f0f7ff 0%, #fafcff 100%);
  border: 1px solid rgba(33, 163, 225, 0.15);
  border-radius: 16px;
  padding: 36px 32px 40px !important;
  margin-bottom: 36px;
}

.services-page .page-content .index-compare-block h2.block-name {
  font-size: 19px;
  color: #1a2a4a;
  margin-bottom: 28px;
  padding-bottom: 16px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.services-page .page-content .index-compare-block h2.block-name span {
  color: #21A3E1;
}

.services-page .page-content .index-compare-block h2.block-name::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 52px;
  height: 3px;
  background: #21A3E1;
  border-radius: 2px;
}

/* Таблица: прокрутка + убираем избыточные отступы */
.services-page .page-content .index-compare-block .table {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  padding: 0 !important;
  margin: 8px 0 0 !important;
}

.services-page .page-content .index-compare-block .table table {
  min-width: 480px;
  border-collapse: collapse;
}

/* Заголовок таблицы — синий вместо тёмно-серого */
.services-page .page-content .index-compare-block .table table thead tr td {
  background: #1a78b4 !important;
  color: #fff !important;
  font-size: 14px;
  padding: 12px 14px;
  border-right: 3px solid #f0f7ff;
  font-weight: 600;
}

.services-page .page-content .index-compare-block .table table thead tr td:first-child {
  background: transparent !important;
  border-right: 3px solid #f0f7ff;
}

.services-page .page-content .index-compare-block .table table thead tr td:last-child {
  border-right: 0;
}

/* Строки тела таблицы */
.services-page .page-content .index-compare-block .table table tbody tr {
  border-top: 3px solid #f0f7ff;
}

.services-page .page-content .index-compare-block .table table tbody tr td {
  background: #fff !important;
  border-right: 3px solid #f0f7ff;
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.4;
}

.services-page .page-content .index-compare-block .table table tbody tr td:first-child {
  background: #dce8f5 !important;
  color: #1a2a4a;
  font-weight: 600;
  font-size: 13px;
}

.services-page .page-content .index-compare-block .table table tbody tr td:last-child {
  border-right: 0;
}

/* Иконки плюс/минус — уменьшаем отступ на узком контентe */
.services-page .page-content .index-compare-block .table .b1,
.services-page .page-content .index-compare-block .table .b2 {
  padding-left: 34px;
  background-size: 22px 22px;
}
