/* ===================== ТОВАРЫ: ПОСТАМЕНТ ДЛЯ ВОЗЛОЖЕНИЯ ЦВЕТОВ =====================
   /tovary/postament-dlya-vozlozheniya-cvetov. Подключается через ViewData["CssPage"] = "tovar-postament-cvety" после бандлов.
   Общие блоки — svc-memorial-*, svc-oform-*, svc-granit-gallery, quiz, seo, home-faq. Здесь — свои блоки страницы
   (префикс pst-). Вертикальных отступов между секциями нет — их задаёт service-page--rhythm (56px).
   Адаптив — только 1199 / 767 (правило трёх ширин). */

.pst-page .svc-memorial-design__head { margin-bottom: 24px; }
.pst-p { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-2, #3b4240); }
.pst-ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #e3efe6; color: var(--green-600);
}
.pst-ico [data-lucide] { width: 22px; height: 22px; }
.pst-note {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 20px 0 0; padding: 16px 20px; border-radius: 14px;
  background: #e3efe6; border: 1px solid rgba(44,122,63,.22);
  font-size: 15px; line-height: 1.5; color: var(--ink);
}
.pst-note [data-lucide] { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; color: var(--green-600); }
.pst-center-cta { margin: 24px 0 0; text-align: center; }
.pst-center-cta--left { text-align: left; }

/* — галерея: 3 колонки, 15 кадров без висячего ряда — */
.pst-gallery .pst-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* — две колонки: текст + кадр — */
.pst-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.pst-split--rev .pst-split__pic { order: -1; }
.pst-split__pic {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 22px;
  background: linear-gradient(160deg, #E6ECE7, #D3DCD5);
}
.pst-split__pic--tall { aspect-ratio: 3 / 4; max-height: 640px; width: 100%; }
.pst-split__text .svc-memorial-design__title { margin-top: 8px; }

.pst-facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.pst-fact { display: flex; align-items: center; gap: 14px; font-size: 15.5px; line-height: 1.45; color: var(--ink-3); }
.pst-fact strong { color: var(--ink); }

/* — карточки — */
.pst-cards { display: grid; gap: 14px; }
.pst-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pst-card {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
  padding: 20px; background: #fff; border: 1px solid var(--line-2); border-radius: 16px;
}
.pst-card__title { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 17px; line-height: 1.3; color: var(--ink); }
.pst-card__title [data-lucide] { width: 19px; height: 19px; flex-shrink: 0; color: var(--green-600); }
.pst-card__text { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.pst-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-size: 14.5px; font-weight: 600; color: var(--green-700); text-decoration: none; }
.pst-card__link [data-lucide] { width: 16px; height: 16px; }
.pst-card__link:hover { text-decoration: underline; }

/* — шаги «как это работает» — */
.pst-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pst-step { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; }
.pst-step__pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line-2); }
.pst-step__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.pst-step__num {
  width: 32px; height: 32px; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; background: var(--green-600);
}
.pst-step__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; line-height: 1.3; color: var(--ink); }
.pst-step__title [data-lucide] { width: 19px; height: 19px; flex-shrink: 0; color: var(--green-600); }
.pst-step__text { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }

/* — три варианта — */
.pst-variants__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pst-variant {
  display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 96px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  box-shadow: 0 16px 32px -28px rgba(20,24,26,.14);
}
.pst-variant__pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line-2); }
.pst-variant__badge {
  position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #fff; background: var(--green-600);
}
.pst-variant__badge--inline { position: static; display: inline-block; }
.pst-variant__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.pst-variant__title { margin: 0; font-size: 20px; line-height: 1.3; color: var(--ink); }
.pst-variant__short { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.pst-variant__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pst-variant__list li { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2, #3b4240); }
.pst-variant__list [data-lucide] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--green-600); }
.pst-variant__row { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.pst-variant__row [data-lucide] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--green-600); }
.pst-variant__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 6px; }
.pst-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 10px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; text-decoration: none;
  color: #fff; background: var(--green-600); border: 1px solid var(--green-600); transition: background .15s, color .15s;
}
.pst-btn:hover { background: var(--green-700); }
.pst-btn--ghost { color: var(--green-700); background: #fff; }
.pst-btn--ghost:hover { background: #e3efe6; }
.pst-btn [data-lucide] { width: 17px; height: 17px; }

/* — вблизи — */
.pst-detail__row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 28px; align-items: center;
  padding: 24px; background: #fff; border: 1px solid var(--line-2); border-radius: 20px;
}
.pst-detail__row + .pst-detail__row { margin-top: 16px; }
.pst-detail__title { margin: 12px 0 0; font-size: 22px; line-height: 1.3; color: var(--ink); }
.pst-detail__text .pst-p { margin-top: 10px; font-size: 15px; }
.pst-detail__pics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pst-detail__pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: var(--line-2); }

/* — сравнение — */
.pst-table-wrap { overflow: hidden; border-radius: 18px; border: 1px solid var(--line-2); background: #fff; }
.pst-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.4; }
.pst-table th, .pst-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-2); }
.pst-table thead th { border-top: 0; font-size: 14px; font-weight: 700; color: var(--ink); background: #f1f3f1; }
.pst-table tbody th { font-weight: 600; color: var(--ink); width: 26%; }
.pst-table td { color: var(--ink-3); }
.pst-table .is-accent { background: #e3efe6; color: var(--ink); font-weight: 600; }
.pst-links { display: grid; gap: 8px; margin-top: 16px; }
.pst-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink-3); font-size: 14.5px;
  transition: border-color .15s;
}
.pst-link:hover { border-color: var(--green-500); }
.pst-link > [data-lucide] { width: 20px; height: 20px; flex-shrink: 0; color: var(--green-600); }
.pst-link > span { flex: 1; min-width: 0; }
.pst-link strong { color: var(--ink); margin-right: 4px; }

/* — где поставить: 4 плитки — */
.pst-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pst-tile { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; }
.pst-tile__pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line-2); }
.pst-tile__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; }
.pst-tile__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; line-height: 1.3; color: var(--ink); }
.pst-tile__title [data-lucide] { width: 19px; height: 19px; flex-shrink: 0; color: var(--green-600); }
.pst-tile__text { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }

/* — списки шагов (установка, порядок заказа) — */
.pst-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pst-list__item {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 16px;
}
.pst-list__item .pst-card__title { margin: 4px 0 6px; }

/* — история — */
.pst-story__card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 32px; border-radius: 22px; background: #e3efe6; border: 1px solid #e4e6e2;
}
.pst-story__pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; background: var(--line-2); }
.pst-story__quote { margin: 20px 0 0; padding: 20px 22px; border-radius: 16px; background: #fff; border-left: 4px solid var(--green-600); }
.pst-story__quote p { margin: 0; font-size: 16.5px; line-height: 1.6; font-style: italic; color: var(--ink); }
.pst-story__author { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.pst-story__author strong { color: var(--ink); }
.pst-story__avatar { position: relative; width: 56px; height: 56px; flex-shrink: 0; border-radius: 999px; overflow: hidden; }

/* — перелинковка по кругу — */
.pst-ring__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pst-ring__grid > li { min-width: 0; }
.pst-ring__card {
  display: flex; flex-direction: column; height: 100%; text-decoration: none;
  background: #fff; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; transition: border-color .15s, transform .15s;
}
.pst-ring__card:hover { border-color: var(--green-500); transform: translateY(-2px); }
.pst-ring__pic { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line-2); }
.pst-ring__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.pst-ring__title { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.pst-ring__text { font-size: 14.5px; line-height: 1.45; color: var(--ink-3); }
.pst-ring__price { margin-top: auto; padding-top: 4px; font-size: 15px; font-weight: 700; color: var(--green-700); }

/* ===================== планшет (≤1199) ===================== */
@media (max-width: 1199px) {
  .pst-split, .pst-story__card { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pst-split--rev .pst-split__pic { order: 0; }
  .pst-split__pic--tall { aspect-ratio: 16 / 9; max-height: none; }
  .pst-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pst-detail__row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pst-story__card { padding: 24px; }
}

/* ===================== телефон (≤767) ===================== */
@media (max-width: 767px) {
  .pst-p { font-size: 15px; }
  .pst-cards--2 { grid-template-columns: minmax(0, 1fr); }
  .pst-card { padding: 16px; }
  .pst-split__pic, .pst-story__pic { border-radius: 16px; }
  .pst-tiles { grid-template-columns: none; }
  .pst-detail__row { padding: 16px; }
  .pst-detail__pics { grid-template-columns: none; }
  .pst-variant__actions { grid-template-columns: minmax(0, 1fr); }
  .pst-story__card { padding: 16px; }
  .pst-story__quote { padding: 16px; }
  .pst-story__quote p { font-size: 15.5px; }
  .pst-list__item { padding: 14px; }

  /* таблица сравнения: строка → карточка, подпись колонки из data-label */
  .pst-table thead { display: none; }
  .pst-table, .pst-table tbody, .pst-table tr, .pst-table th, .pst-table td { display: block; width: auto; }
  .pst-table tr { border-top: 1px solid var(--line-2); padding: 12px 14px; }
  .pst-table tr:first-child { border-top: 0; }
  .pst-table th, .pst-table td { border: 0; padding: 3px 0; }
  .pst-table tbody th { width: auto; font-size: 15px; margin-bottom: 4px; }
  .pst-table td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink); }
  .pst-table .is-accent { background: none; color: var(--green-700); }
}
