/* ===================== ЗАЩИТА МЕСТА ЗАХОРОНЕНИЯ ОТ ТРАВЫ =====================
   /restavraciya/zashchita-ot-travy. Подключается через ViewData["CssPage"] после бандлов,
   поэтому здесь только своё (классы zt-*) и точечные правки общих блоков внутри .zt-page.
   Вертикальные отступы между секциями не задаём — ритм 56px даёт .service-page--rhythm.
   Все сетки — minmax(0, 1fr): на 360–390px страница не должна ехать вбок. */

.zt-center-cta { margin: 26px 0 0; text-align: center; }
.zt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--green-700);
  text-decoration: none;
}
.zt-link:hover { text-decoration: underline; }
.zt-link [data-lucide] { width: 16px; height: 16px; }

/* ——— 2. Проблема → результат: общий слайдер .ba ——————————————————— */
.zt-ba__sub {
  margin: 12px 0 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-3);
}
.zt-ba .works-head .all { white-space: nowrap; }
.zt-ba__main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 18px;
}
/* Участок — горизонтальный кадр 4:3 (у общего .ba — 16:10). */
.zt-ba .ba.zt-ba__slider {
  aspect-ratio: 4 / 3;
  width: 100%;
  order: 0;
  margin: 0;
}
/* Ползунок на весь кадр: вертикальный свайп на телефоне должен листать страницу, а не застревать. */
.zt-ba .ba input[type=range] { touch-action: pan-y; }
.zt-ba .work-info.zt-ba__info { margin: 0; order: 0; display: flex; flex-direction: column; }
.zt-ba__info .desc b { color: var(--ink); }
.zt-ba__done {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--green-50);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.zt-ba__done b { color: var(--green-700); }
.zt-ba__btn { margin-top: auto; align-self: flex-start; }

.zt-ba__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.zt-ba__thumb {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card, #fff);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.zt-ba__thumb:hover { border-color: var(--green-500); }
.zt-ba__thumb.is-active { border-color: var(--green-600); box-shadow: 0 0 0 1px var(--green-600); background: var(--green-50); }
.zt-ba__thumb-pic {
  position: relative;
  display: block;
  flex: 0 0 96px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--line-2);
}
.zt-ba__thumb-name { min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); }

/* Пока кадров нет — список примеров вместо слайдера. */
.zt-ba__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.zt-ba__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card, #fff);
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ink);
}
.zt-ba__list-ico {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green-50);
  color: var(--green-700);
}
.zt-ba__list-ico [data-lucide] { width: 20px; height: 20px; }
.zt-ba__list-text {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-3);
}

/* ——— 3. Как решается проблема ——————————————————————————————————— */
.zt-page .zt-method .svc-oform-fix__title { font-size: 32px; }
.zt-method__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.zt-method__list li { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.zt-method__list li > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.zt-method__list b { font-size: 15px; color: var(--ink); }
.zt-method__ico {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--green-50);
  color: var(--green-700);
}
.zt-method__ico [data-lucide] { width: 18px; height: 18px; }

/* ——— 4. Галерея готовых участков ———————————————————————————————— */
.zt-gallery__filters { margin-bottom: 22px; }
.zt-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.zt-shot {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card, #fff);
  overflow: hidden;
}
/* Первый кадр крупнее — «большая галерея». */
.zt-shot:first-child { grid-column: span 2; grid-row: span 2; }
.zt-shot:first-child .zt-shot__pic { flex: 1 1 auto; min-height: 0; }
/* Пятый кадр (семейный участок) — тоже в две колонки, чтобы 8 кадров легли сеткой без дыр
   (3 колонки: 4 + 2 + 6 клеток; 2 колонки: 2 + 2 + 6). Пропорции подогнаны под высоту соседа в строке. */
.zt-shot:nth-child(5) { grid-column: span 2; }
.zt-shot:nth-child(5) .zt-shot__pic { aspect-ratio: 8 / 3; }
.zt-shot__pic {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: var(--line-2);
  cursor: zoom-in;
  overflow: hidden;
}
.zt-shot__pic--empty { display: grid; place-items: center; color: var(--muted); cursor: default; }
.zt-shot__pic--empty [data-lucide] { width: 32px; height: 32px; }
.zt-shot__zoom {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 2;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--green-700);
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.4);
}
.zt-shot__zoom [data-lucide] { width: 17px; height: 17px; }
.zt-shot__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.zt-shot__title { font-size: 16px; line-height: 1.3; color: var(--ink); }
.zt-shot__caption { font-size: 14px; line-height: 1.45; color: var(--ink-3); }

/* ——— 6. Варианты оформления ——————————————————————————————————————— */
.zt-swatch { background-color: #B9B4AA; }
.zt-swatch--brus {
  background-color: #6F6A66;
  background-image:
    linear-gradient(90deg, rgba(30,30,30,.35) 2px, transparent 2px),
    linear-gradient(0deg, rgba(30,30,30,.35) 2px, transparent 2px);
  background-size: 14px 10px;
}
.zt-swatch--plitka {
  background-color: #A9A39A;
  background-image:
    linear-gradient(90deg, rgba(60,55,50,.28) 2px, transparent 2px),
    linear-gradient(0deg, rgba(60,55,50,.28) 2px, transparent 2px);
  background-size: 22px 22px;
}
.zt-swatch--kroshka {
  background-color: #E7E3DA;
  background-image:
    radial-gradient(circle at 20% 30%, #CFC9BD 1.5px, transparent 2px),
    radial-gradient(circle at 70% 60%, #BDB6A8 1.5px, transparent 2px);
  background-size: 9px 9px;
}
.zt-swatch--kombi {
  background-color: #E7E3DA;
  background-image:
    linear-gradient(90deg, #A9A39A 0 34%, transparent 34%),
    radial-gradient(circle at 60% 40%, #BDB6A8 1.5px, transparent 2px);
  background-size: 100% 100%, 9px 9px;
}
.zt-variants__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.zt-variants__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 14.5px;
  line-height: 1.25;
  text-align: left;
  color: var(--ink-3);
  cursor: pointer;
}
.zt-variants__tab:hover { border-color: var(--green-500); }
.zt-variants__tab.is-on { border-color: var(--green-600); background: var(--green-50); color: var(--ink); font-weight: 600; }
.zt-variants__tab .zt-swatch { width: 16px; height: 16px; flex-shrink: 0; border-radius: 5px; }
.zt-variants__card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--card, #fff);
}
.zt-variants__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: var(--line-2);
}
.zt-variants__view { position: absolute; inset: 0; }
.zt-variants__tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--green-50);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-700);
}
.zt-variants__title { margin: 12px 0 8px; font-family: 'Lora', Georgia, serif; font-size: 28px; line-height: 1.15; color: var(--ink); }
.zt-variants__text { margin: 0 0 16px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.zt-checks { display: grid; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.zt-checks li { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.zt-checks [data-lucide] { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; color: var(--green-600); }
/* Схема участка, пока нет кадров: стела и «земля» из образца покрытия. */
.zt-plot { position: absolute; inset: 0; background: linear-gradient(180deg, #E9EEF1 0%, #F1EFE8 55%); }
.zt-plot__ground {
  position: absolute;
  left: 8%; right: 8%; bottom: 8%;
  height: 42%;
  border-radius: 6px;
  box-shadow: inset 0 0 0 6px #8E8A84;
}
.zt-plot__stele {
  position: absolute;
  left: 50%; bottom: 44%;
  width: 22%; height: 42%;
  transform: translateX(-50%);
  border-radius: 10px 10px 2px 2px;
  background: linear-gradient(180deg, #3A3D40, #24272A);
}

/* ——— 7. Уход за участком ——————————————————————————————————————— */
.zt-care__layout {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}
.zt-care__layout--no-pic { grid-template-columns: minmax(0, 1fr); }
.zt-care__pic {
  position: relative;
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--line-2);
}
.zt-care__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.zt-care__layout--no-pic .zt-care__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.zt-care__card {
  min-width: 0;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card, #fff);
}
.zt-care__ico {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-700);
}
.zt-care__ico [data-lucide] { width: 20px; height: 20px; }
.zt-care__title { margin: 0 0 6px; font-size: 17px; line-height: 1.3; color: var(--ink); }
.zt-care__text { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.zt-care__note a { color: var(--green-700); text-decoration: underline; }

/* ——— 10. Связанные услуги: 8 карточек → 4 в ряд на широком экране ——— */
/* компьютерные стили (раньше — от 1280px), теперь всегда */
  .zt-page .zt-related .svc-oform-related__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ——— 13. Финальный CTA: заголовок промо здесь h2 ——— */
.zt-page .zt-final .svc-memorial-promo__title { margin: 0; }
/* Последний блок страницы: у .svc-memorial-requests нет нижнего отступа, а ритм обнуляет margin-bottom —
   без этого плашка встаёт вплотную к подвалу. Специфичность равна правилу ритма, файл грузится позже. */
.service-page.zt-page > section.zt-final:not(#_) { margin-bottom: 56px !important; }

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

/* На ≤1024 ритм 56px не действует — свои блоки получают вертикальные отступы сами. */

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

/* Цифры шапки: длинные слова («Периметр», «Балясины») на телефоне не рвём посередине */

/* Заголовок квиза на телефоне: при 42px длинное слово «благоустройство» не помещается и рвётся посередине */

