/* «Полезные материалы» на страницах услуг (ViewComponent ServiceMaterials, вызывается из _Layout).
   Карточки повторяют блок «Полезные статьи» главной (home.css .article), свои имена классов —
   чтобы не зависеть от бандла главной. Везде 5 карточек; на страницах услуг —
   компактный вариант (мельче заголовок). На телефоне — лента с прокруткой вбок, а не столбик. */

.svc-mat { padding: 56px 56px 8px; }
.svc-mat__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.svc-mat__head .eyebrow { margin-bottom: 14px; }
.svc-mat__head h2 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 12px;
}
.svc-mat__sub { font-size: 15.5px; line-height: 1.55; color: var(--ink-3); max-width: 520px; margin: 0; }
.svc-mat__all {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 21px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid var(--green-600);
  color: var(--green-700);
  font-weight: 700; font-size: 14.5px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.svc-mat__all:hover { background: var(--green-50); }   /* наведение — лёгкая подсветка фона (владелец 2026-10-21) */
.svc-mat__all [data-lucide] { width: 18px; height: 18px; }

.svc-mat__row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.svc-mat__row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc-mat__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.svc-mat__card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 6px -2px rgba(20,24,26,.06);
  transition: transform .15s, box-shadow .15s;
  color: inherit;
}
.svc-mat__card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(20,24,26,.25); }
.svc-mat__pic {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--green-50, #EEF2EA);
}
.svc-mat__pic picture { position: absolute; inset: 0; }
.svc-mat__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-mat__play {
  position: absolute; left: 50%; top: 50%;
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--green-700);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px -8px rgba(20,24,26,.45);
  transition: transform .15s;
}
.svc-mat__play [data-lucide] { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.svc-mat__card:hover .svc-mat__play { transform: scale(1.06); }

.svc-mat__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.svc-mat__pill {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--green-50, #EEF2EA);
  color: var(--green-700);
  font-size: 12px; font-weight: 600;
  margin-bottom: 12px;
}
.svc-mat__pill [data-lucide] { width: 13px; height: 13px; }
.svc-mat__pill--video { background: #F3EEE4; color: #8A6A2E; }
.svc-mat__title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 10px;
}
.svc-mat__text {
  font-size: 13.5px; line-height: 1.5; color: var(--ink-3);
  margin-bottom: 18px;
  flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.svc-mat__meta {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--line-2, #ECEAE4);
  padding-top: 14px;
  font-size: 13px; color: var(--muted);
}
.svc-mat__meta span { display: inline-flex; align-items: center; gap: 6px; }
.svc-mat__meta [data-lucide] { width: 14px; height: 14px; color: var(--green-700); }
.svc-mat__go { color: var(--green-700); font-weight: 700; }

/* Компактный вариант — для длинных страниц услуг: мельче заголовок, без лишнего воздуха. */
.svc-mat--compact .svc-mat__head h2 { font-size: 34px; }
.svc-mat--compact .svc-mat__title { font-size: 17px; }

/* Превью YouTube (4:3) приходят с чёрными полосами сверху и снизу — срезаем их. */
.svc-mat__card--video .svc-mat__pic img { transform: scale(1.34); }

