/* VIT-1387 (30.09.2026): раздел «Заболевания» (/diseases) — алфавитный справочник.
   Система та же, что у zbt-tpl: зелёный #91c94e, текст #141414, вторичный #6d7986,
   рамка #e3e8ef, светлый фон #f4f7fb. Колонки списка: 4 → 3 → 2 → 1. */

.zbt-dz { --g: #91c94e; --g-dark: #6fa92f; --g-soft: #eff7e6; --ink: #141414; --muted: #6d7986;
  --line: #e3e8ef; --soft: #f4f7fb; color: var(--ink); font-size: 16px; line-height: 1.5; padding-bottom: 24px; }
.zbt-dz *, .zbt-dz *::before, .zbt-dz *::after { box-sizing: border-box; }

/* Хлебные крошки */
.zbt-dz__crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.zbt-dz__crumbs a { color: var(--ink); text-decoration: none; }
.zbt-dz__crumbs a:hover { color: var(--g-dark); }
.zbt-dz__crumbs-sep { margin: 0 6px; color: #b3bcc6; }

.zbt-dz__title { font-size: 34px; line-height: 1.2; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.zbt-dz__lead { font-size: 17px; color: #3b4652; max-width: 860px; margin: 0 0 24px; }

/* Строка администратора */
.zbt-dz__admin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0 0 20px; padding: 10px 14px;
  font-size: 14px; background: #fff8e1; border: 1px dashed #e8c766; border-radius: 10px; }
.zbt-dz__admin a { font-weight: 600; color: var(--ink); }
.zbt-dz__admin span { color: var(--muted); }
.zbt-dz__draft { display: inline-block; margin-left: 4px; padding: 1px 7px; font-size: 12px; line-height: 18px; vertical-align: 1px;
  color: #8a6d00; background: #fff3c4; border-radius: 10px; }

/* Поиск. Общие стили сайта перебивают input[type=search] (см. VIT-1376), отсюда !important */
.zbt-dz__search { position: relative; max-width: 620px; margin: 0 0 20px; }
.zbt-dz__search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.zbt-dz .zbt-dz__search-input { display: block; width: 100% !important; height: 52px !important; margin: 0 !important;
  padding: 0 18px 0 48px !important; font-size: 16px !important; color: var(--ink) !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236d7986' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8.5' cy='8.5' r='6.5'/%3E%3Cpath d='m13.5 13.5 5 5'/%3E%3C/svg%3E") no-repeat 16px 50% !important;
  border: 1px solid var(--line) !important; border-radius: 12px !important; box-shadow: none !important; outline: none;
  -webkit-appearance: none; appearance: none; transition: border-color .15s ease, box-shadow .15s ease; }
.zbt-dz .zbt-dz__search-input:focus { border-color: var(--g) !important; box-shadow: 0 0 0 3px rgba(145,201,78,.25) !important; }
.zbt-dz .zbt-dz__search-input::placeholder { color: #9aa5b1; }
.zbt-dz__status { min-height: 20px; margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.zbt-dz__status:empty { display: none; }

/* Алфавитный указатель */
.zbt-dz__abc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; padding: 14px; background: var(--soft); border-radius: 14px; }
.zbt-dz__abc-item { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 8px;
  font-size: 16px; font-weight: 600; line-height: 1; color: var(--ink); text-decoration: none !important; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; transition: background .15s ease, border-color .15s ease, color .15s ease; }
a.zbt-dz__abc-item:hover, a.zbt-dz__abc-item:focus-visible { color: #fff; background: var(--g); border-color: var(--g); }
.zbt-dz__abc-item.is-empty { color: #c3cad2; background: transparent; border-color: transparent; cursor: default; }

/* Список: группа = буква + пункты в колонках */
.zbt-dz__group { display: grid; grid-template-columns: 64px 1fr; gap: 0 16px; padding: 22px 0; border-top: 1px solid var(--line);
  scroll-margin-top: 170px; }
.zbt-dz__group:first-child { border-top: 0; padding-top: 0; }
.zbt-dz__letter { margin: 0; font-size: 34px; line-height: 1; font-weight: 700; color: var(--g); }
.zbt-dz__group[data-letter="A–Z"] .zbt-dz__letter { font-size: 22px; line-height: 34px; white-space: nowrap; }
.zbt-dz__items { margin: 0; padding: 0; list-style: none; column-count: 4; column-gap: 28px; }
.zbt-dz__item { break-inside: avoid; margin: 0; padding: 4px 0; list-style: none; }
.zbt-dz__item::before { content: none !important; }
.zbt-dz__item a { color: var(--ink); text-decoration: none; }
.zbt-dz__item a:hover { color: var(--g-dark); text-decoration: underline; }
.zbt-dz__item mark { padding: 0; color: inherit; background: #e3f2cf; border-radius: 3px; }

.zbt-dz__empty { margin: 8px 0 0; padding: 18px 20px; font-size: 16px; color: #3b4652; background: var(--soft); border-radius: 12px; }

@media (max-width: 1199px) {
  .zbt-dz__items { column-count: 3; }
}
@media (max-width: 991px) {
  .zbt-dz__title { font-size: 28px; }
  .zbt-dz__lead { font-size: 16px; }
  .zbt-dz__items { column-count: 2; }
  .zbt-dz__group { scroll-margin-top: 90px; }
}
@media (max-width: 767px) {
  .zbt-dz__group { grid-template-columns: 1fr; padding: 18px 0; }
  .zbt-dz__letter { font-size: 28px; margin-bottom: 8px; }
  .zbt-dz__abc { gap: 4px; padding: 10px; }
  .zbt-dz__abc-item { min-width: 34px; height: 34px; font-size: 15px; }
}
@media (max-width: 479px) {
  .zbt-dz__title { font-size: 24px; }
  .zbt-dz__items { column-count: 1; }
  .zbt-dz__item { padding: 6px 0; }
}
