/* =============================================================================
   Services page — ESTOM Services Desktop (m2hZU)
   Источник: 2.design/landing-page-for-clinic.pen → ESTOM Services Desktop

   Эта страница переиспользует landing.css (nav, section-head, cta, footer)
   и добавляет: page header, полный grid 3×2 карточек услуг, process steps 1–4.
   ============================================================================= */

/* ---------- Page header (серый блок с заголовком) ---------- */
.sp-header {
  padding-top: 48px;
  padding-bottom: 48px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.sp-header__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- Breadcrumbs (inner pages) ---------- */
.sp-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.sp-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}
.sp-breadcrumbs a:hover { color: var(--primary); }
.sp-breadcrumbs__sep { color: var(--text-muted); }
.sp-breadcrumbs__current {
  color: var(--text-primary);
  font-weight: 600;
}
.sp-header__title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.sp-header__sub {
  max-width: 700px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ---------- Services catalog (6 cards 3×2) ---------- */
.sp-catalog {
  padding-top: 64px;
  padding-bottom: 64px;
}
.sp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sp-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.sp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.sp-card__img {
  width: 100%;
  height: 200px;
  background: var(--primary-light);
  overflow: hidden;
}
.sp-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sp-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}
.sp-card__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}
.sp-card__desc {
  font-size: var(--font-body);
  line-height: 1.6;
  color: var(--text-secondary);
}
.sp-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.sp-card__list li {
  font-size: var(--font-body);
  color: #475569;
}
.sp-card__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
.sp-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: 8px;
  font-size: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  align-self: flex-start;
}
.sp-card__btn:hover {
  background: var(--primary-dark);
  color: var(--text-white);
}

/* ---------- Process (4 steps) ---------- */
.sp-process {
  padding-top: 64px;
  padding-bottom: 64px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.sp-process__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin-bottom: 48px;
}
.sp-process__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.sp-process__sub {
  font-size: 16px;
  color: var(--text-secondary);
}
.sp-process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.sp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.sp-step__icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  overflow: hidden;
}
.sp-step__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sp-step__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.sp-step__desc {
  font-size: var(--font-body);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .sp-header { padding-top: 40px; padding-bottom: 40px; }
  .sp-header__title { font-size: 32px; }
  .sp-header__sub { font-size: 14px; }
  .sp-catalog { padding-top: 48px; padding-bottom: 48px; }
  .sp-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .sp-card__img { height: 180px; }
  .sp-card__body { padding: 20px; gap: 12px; }
  .sp-card__title { font-size: 18px; }
  .sp-process { padding-top: 48px; padding-bottom: 48px; }
  .sp-process__head { margin-bottom: 32px; }
  .sp-process__title { font-size: 26px; }
  .sp-process__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sp-header { padding-top: 32px; padding-bottom: 32px; }
  .sp-header__inner { gap: 10px; }
  .sp-header__title { font-size: 24px; }
  .sp-header__sub { font-size: 13px; }
  .sp-breadcrumbs { font-size: 11px; }

  .sp-catalog { padding-top: 32px; padding-bottom: 32px; }
  /* Дизайн: 2 колонки × 3 строки. Карточка минимальная — image + title + price + btn */
  .sp-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sp-card { border-radius: 12px; }
  .sp-card__img { height: 100px; }
  .sp-card__body { padding: 10px; gap: 6px; }
  .sp-card__title { font-size: 13px; font-weight: 700; }
  /* На mobile скрываем подробности — оставляем только заголовок, цену, кнопку */
  .sp-card__desc { display: none; }
  .sp-card__list { display: none; }
  .sp-card__price { font-size: 13px; }
  .sp-card__btn { padding: 8px 0; font-size: 12px; align-self: stretch; justify-content: center; }

  .sp-process { padding-top: 32px; padding-bottom: 32px; }
  .sp-process__head { margin-bottom: 16px; gap: 4px; align-items: flex-start; text-align: left; }
  .sp-process__title { font-size: 18px; }
  .sp-process__sub { font-size: 12px; }
  /* Дизайн: 4 шага вертикально, icon слева + text справа */
  .sp-process__grid { grid-template-columns: 1fr; gap: 14px; }
  .sp-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 14px;
  }
  .sp-step__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
  }
  .sp-step__title { font-size: 14px; }
  .sp-step__desc { font-size: 12px; line-height: 1.5; }
}
