/* ===================== БЛАГОУСТРОЙСТВО МОГИЛ =====================
   /blagoustrojstvo/blagoustrojstvo-mogil. Подключается через ViewData["CssPage"] после бандлов,
   поэтому здесь только своё (классы bm-*) и точечные правки общих блоков внутри .bm-page.
   Общие блоки (svc-oform-*, svc-memorial-*, how2, quiz, seo, home-faq) — в bundles/service.css.
   Вертикальные отступы между секциями не задаём — ритм 56px даёт .service-page--rhythm. */

.bm-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* — 2. Карточка «Не знаю, что нужно» — */
.bm-page .bm-scenario--accent {
  border-color: var(--green-500);
  box-shadow: 0 0 0 1px var(--green-500), 0 18px 36px -30px rgba(31,107,54,.45);
}

/* — 5. До/после: участки горизонтальные, 4:3 вместо портретных 3:4 — */
.bm-page .bm-cases .svc-oform-pair__shot { aspect-ratio: 4 / 3; }
.bm-page .bm-cases .svc-oform-filters { margin-bottom: 22px; }
.bm-page .bm-cases .svc-oform-pair__text b { color: var(--ink-2); }
.bm-cases__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bm-cases__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card, #fff);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}
.bm-cases__ico [data-lucide] { width: 20px; height: 20px; color: var(--green-600); }
.bm-cases__done { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); }

/* — 6. Нижний ряд «Из чего состоит»: пять элементов, кадр сверху — */
.bm-page .svc-memorial-compose__parts--bottom.bm-parts--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.bm-page .bm-parts--5 .svc-mem-part {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}
.bm-page .bm-parts--5 .svc-mem-part__thumb {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  aspect-ratio: 5 / 3;
}
.bm-page .bm-part .svc-mem-part__link { margin-top: 6px; }

/* — 7. Что можно сохранить — */
.bm-page .bm-keep .svc-oform-fix__title { font-size: 32px; }
.bm-page .bm-keep .svc-oform-fix__subtitle { margin-top: 4px; }
.bm-keep__list [data-lucide] { color: var(--green-600); }

/* — 8. Восстановление старого захоронения — отдельной плашкой под уровнями — */
.bm-restore {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 22px 26px;
  border-radius: 20px;
  border: 1px dashed rgba(44,122,63,.45);
  background: var(--green-50);
}
.bm-restore__ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: #fff;
  color: var(--green-700);
}
.bm-restore__ico [data-lucide] { width: 24px; height: 24px; }
.bm-restore__title { margin: 0 0 4px; font-size: 19px; line-height: 1.3; color: var(--ink); }
.bm-restore__price { margin-left: 8px; color: var(--green-700); white-space: nowrap; }
.bm-restore__desc { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }

/* — 9. Один участок при разном бюджете — */
.bm-variants__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.bm-variant {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card, #fff);
  overflow: hidden;
}
.bm-variant--accent { border-color: var(--green-500); box-shadow: 0 0 0 1px var(--green-500); }
.bm-variant__pic { position: relative; aspect-ratio: 4 / 3; background: var(--line-2); }
.bm-variant__label {
  position: absolute;
  left: 12px; top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--green-600);
}
.bm-variant__level {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 22px 22px 0;
}
.bm-variant__level span {
  width: 14px;
  border-radius: 4px;
  background: var(--green-500);
}
.bm-variant__level span:nth-child(1) { height: 14px; }
.bm-variant__level span:nth-child(2) { height: 22px; }
.bm-variant__level span:nth-child(3) { height: 30px; }
.bm-variant__level b { margin-left: 8px; font-size: 14px; color: var(--green-700); }
.bm-variant__body { display: flex; flex-direction: column; flex: 1; padding: 18px 22px 22px; }
.bm-variant__title { margin: 0 0 12px; font-size: 19px; line-height: 1.3; color: var(--ink); }
.bm-variant__list { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.bm-variant__list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.bm-variant__list [data-lucide] { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--green-600); }
.bm-variant__price { margin-top: auto; font-size: 22px; font-weight: 700; color: var(--ink); }

/* — 10/12. Кнопка «Подробнее» под блоком — */
.bm-more { margin: 24px 0 0; text-align: center; }

/* — 14. Стоимость: категории с раскрывающимся прайсом — */
.bm-prices__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  align-items: start;
  margin-bottom: 24px;
}
.bm-price-group {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card, #fff);
  overflow: hidden;
}
.bm-price-group.is-open { border-color: var(--green-500); }
.bm-price-group__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.bm-price-group__ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-700);
}
.bm-price-group__ico [data-lucide] { width: 20px; height: 20px; }
.bm-price-group__name { font-size: 17px; font-weight: 600; color: var(--ink); }
.bm-price-group__from { font-size: 15px; font-weight: 600; color: var(--green-700); white-space: nowrap; }
.bm-price-group__toggle [data-lucide] { width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s ease; }
.bm-price-group.is-open .bm-price-group__toggle [data-lucide] { transform: rotate(180deg); }
.bm-price-group__body { padding: 0 18px 14px; }
.bm-price-group__body table { width: 100%; border-collapse: collapse; }
.bm-price-group__body td {
  padding: 10px 0;
  border-top: 1px solid var(--line-2);
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink-2);
  vertical-align: top;
}
.bm-price-group__body td:last-child { padding-left: 14px; text-align: right; font-weight: 600; color: var(--ink); white-space: nowrap; }

/* — 15. Факторы цены: 8 карточек — */
.bm-factors__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.bm-factor {
  position: relative;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card, #fff);
}
.bm-factor__num { position: absolute; right: 18px; top: 16px; font-size: 13px; font-weight: 700; color: var(--line); }
.bm-factor__ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-700);
}
.bm-factor__ico [data-lucide] { width: 20px; height: 20px; }
.bm-factor__title { margin: 0 0 6px; font-size: 16.5px; line-height: 1.3; color: var(--ink); }
.bm-factor__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); }

/* — 16. Спустя годы: три крупные карточки — */
.bm-years__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}
.bm-year { margin: 0; }
.bm-year__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: var(--line-2);
}
.bm-year__media--empty { display: grid; place-items: center; background: var(--green-50); }
.bm-year__big [data-lucide] { width: 56px; height: 56px; color: var(--green-600); opacity: .6; }
.bm-year__label {
  position: absolute;
  left: 14px; top: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255,255,255,.94);
  box-shadow: 0 4px 12px rgba(20,24,26,.12);
}
.bm-year__play {
  position: absolute;
  left: 50%; top: 50%;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  margin: -32px 0 0 -32px;
  border-radius: 999px;
  color: #fff;
  background: rgba(31,107,54,.9);
}
.bm-year__play svg { width: 28px; height: 28px; }
.bm-year__title { margin: 14px 0 4px; font-size: 20px; color: var(--ink); }
.bm-year__text { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }

/* — 17. «Что можно сделать одновременно»: 10 карточек → 5 в ряд на широком экране — */
/* компьютерные стили (раньше — от 1280px), теперь всегда */
  .bm-page .bm-related .svc-oform-related__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* — 19. Квиз: шаг 1 картинками — */
.bm-page .bm-quiz-opt {
  grid-template-columns: minmax(0, 1fr) 22px;
  grid-template-areas: "pic pic" "lbl chk";
  row-gap: 10px;
  padding: 10px 12px 12px;
}
.bm-page .bm-quiz-opt:has(.ico) {
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  grid-template-areas: "ico lbl chk";
  padding: 16px 18px;
}
.bm-quiz-opt__pic {
  grid-area: pic;
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--line-2);
}

/* ——— планшет ——— */

/* ——— телефон ——— */

