/* services: компоненты страницы (разделено из reviews.css) */

/* ===== services: статьи услуг ===== */
/* ---------- статьи услуг (/services/...) ---------- */

.rv-article {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 44px;
  overflow: hidden; /* чтобы float-картинки не вылезали */
}

.rv-article p { margin: 0 0 16px; font-size: var(--fs-15-5); line-height: 1.7; color: var(--color-text); }

.rv-article h2, .rv-article h3 {
  margin: 26px 0 12px;
  font-size: var(--fs-21);
  line-height: 1.3;
  font-weight: 700;
  color: var(--rv-ink);
  clear: both;
}

.rv-article h3 { font-size: var(--fs-18); }

.rv-article ul, .rv-article ol { margin: 0 0 16px; padding-left: 22px; }

.rv-article li { margin-bottom: 8px; font-size: var(--fs-15-5); line-height: 1.65; color: var(--color-text); }

.rv-article li::marker { color: var(--rv-blue); }

.rv-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-3);
}

.rv-article img.alignleft { float: left; margin: 4px 26px 14px 0; }

.rv-article img.alignright { float: right; margin: 4px 0 14px 26px; }

.rv-article a { color: var(--rv-blue); }

/* ===== services: карточки направлений ===== */
/* ---------- карточки направлений (/services/) ---------- */

.rv-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rv-cat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: var(--radius-6);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}

.rv-cat-card:hover { transform: translateY(-3px); box-shadow: var(--rv-shadow); }

.rv-cat-card__title {
  margin: 0;
  font-size: var(--fs-17);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--rv-blue);
}

.rv-cat-card__desc {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.55;
  color: var(--rv-muted);
}

.rv-cat-card__links {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.rv-cat-card__links a {
  padding: 6px 0;
  font-size: var(--fs-14-5);
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px dashed var(--rv-line);
  transition: color .12s ease;
}

.rv-cat-card__links li:last-child a { border-bottom: 0; }

.rv-cat-card__links a:hover { color: var(--rv-blue); }

.rv-cat-card__more {
  margin-top: auto;
  font-size: var(--fs-14-5);
  font-weight: 600;
  color: var(--rv-blue);
  text-decoration: none;
}

.rv-cat-card__more:hover { text-decoration: underline; }

@media (max-width: 1000px) { .rv-cat-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 640px) {
  .rv-cat-grid { grid-template-columns: 1fr; }
  .rv-article { padding: 24px 20px; }
  .rv-article img.alignleft { float: none; margin: 0 0 14px; }
}
