/* media/css/cases.css - Модуль судебной практики (v2.1.0) */
/* a11y-фиксы + компактная модалка + SVG-стрелки + штамп ЭЦП */

.egida-cases {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1e293b;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 16px;
  box-sizing: border-box;
  position: relative;
  width: 100%;
}

#sp-page-builder .egida-cases,
.sp-page-builder .egida-cases,
.sppb-addon-module .egida-cases,
.sppb-addon .egida-cases,
.sp-pagebuilder-page .egida-cases,
.sppb-addon-wrapper .egida-cases {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  position: relative !important;
  z-index: 1 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

#sp-page-builder .egida-cases *,
.sp-page-builder .egida-cases *,
.sppb-addon-module .egida-cases *,
.egida-cases * { box-sizing: border-box !important; }

.egida-cases button,
#sp-page-builder .egida-cases button,
.sppb-addon-module .egida-cases button {
  font-family: inherit !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  outline: none;
  cursor: pointer;
}

.egida-cases a,
#sp-page-builder .egida-cases a,
.sppb-addon-module .egida-cases a { text-decoration: none !important; }

/* ===== 1. ОГЛАВЛЕНИЕ ===== */
.egida-cases-header { text-align: center; max-width: 820px; margin: 0 auto 12px; }
.egida-cases-kicker {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 9999px;
  font-size: 10px; font-weight: 700; background-color: #eef2ff; color: #3730a3;
  border: 1px solid #c7d2fe; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em;
}
.egida-cases-heading { font-size: 22px; font-weight: 800; color: #0f172a; margin: 0 0 4px; line-height: 1.25; }
.egida-cases-heading .text-accent { color: #4f46e5; }
.egida-cases-divider {
  width: 50px; height: 3px; background: linear-gradient(90deg, #4338ca 0%, #10b981 100%);
  border-radius: 2px; margin: 6px auto 8px;
}

/* ===== 2. ФИЛЬТРЫ (role=group, aria-pressed) ===== */
.egida-cases-filters {
  display: flex !important; justify-content: center !important; align-items: center !important;
  flex-wrap: wrap !important; gap: 6px !important; margin-top: 8px !important; margin-bottom: 12px !important;
  width: 100% !important; max-width: 1000px !important;
  margin-left: auto !important; margin-right: auto !important; padding: 0 4px !important;
}
.egida-c-tab {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 12px; border-radius: 20px;
  border: 1px solid #cbd5e1; background: #ffffff; color: #334155; font-size: 11.5px;
  font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0;
  min-height: 32px;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.egida-c-tab:hover { background: #f1f5f9; color: #0f172a; }
.egida-c-tab:focus-visible { outline: 2px solid #4f46e5; outline-offset: 2px; }
.egida-c-tab.is-active {
  background: #0f172a; color: #ffffff; border-color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}
/* Цвета фильтров = цвета тегов категорий */
.egida-c-tab[data-filter="building"].is-active { background: #4f46e5; border-color: #4f46e5; box-shadow: 0 2px 6px rgba(79,70,229,0.3); }
.egida-c-tab[data-filter="building"]:not(.is-active):hover { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }

.egida-c-tab[data-filter="auto"].is-active { background: #0284c7; border-color: #0284c7; box-shadow: 0 2px 6px rgba(2,132,199,0.3); }
.egida-c-tab[data-filter="auto"]:not(.is-active):hover { background: #e0f2fe; border-color: #bae6fd; color: #075985; }

.egida-c-tab[data-filter="land"].is-active { background: #16a34a; border-color: #16a34a; box-shadow: 0 2px 6px rgba(22,163,74,0.3); }
.egida-c-tab[data-filter="land"]:not(.is-active):hover { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }

.egida-c-tab[data-filter="renovation"].is-active { background: #ea580c; border-color: #ea580c; box-shadow: 0 2px 6px rgba(234,88,12,0.3); }
.egida-c-tab[data-filter="renovation"]:not(.is-active):hover { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }

.egida-c-tab[data-filter="inheritance"].is-active { background: #9333ea; border-color: #9333ea; box-shadow: 0 2px 6px rgba(147,51,234,0.3); }
.egida-c-tab[data-filter="inheritance"]:not(.is-active):hover { background: #faf5ff; border-color: #e9d5ff; color: #6b21a8; }

.egida-c-tab[data-filter="housing"].is-active { background: #dc2626; border-color: #dc2626; box-shadow: 0 2px 6px rgba(220,38,38,0.3); }
.egida-c-tab[data-filter="housing"]:not(.is-active):hover { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.egida-c-tab[data-filter="family"].is-active { background: #db2777; border-color: #db2777; box-shadow: 0 2px 6px rgba(219,39,119,0.3); }
.egida-c-tab[data-filter="family"]:not(.is-active):hover { background: #fdf2f8; border-color: #fbcfe8; color: #9d174d; }

.egida-c-tab[data-filter="consumer"].is-active { background: #d97706; border-color: #d97706; box-shadow: 0 2px 6px rgba(217,119,6,0.3); }
.egida-c-tab[data-filter="consumer"]:not(.is-active):hover { background: #fef3c7; border-color: #fde68a; color: #78350f; }

.egida-c-tab[data-filter="credit"].is-active { background: #b91c1c; border-color: #b91c1c; box-shadow: 0 2px 6px rgba(185,28,28,0.3); }
.egida-c-tab[data-filter="credit"]:not(.is-active):hover { background: #fee2e2; border-color: #fecaca; color: #7f1d1d; }

.egida-c-tab[data-filter="pension"].is-active { background: #7c3aed; border-color: #7c3aed; box-shadow: 0 2px 6px rgba(124,58,237,0.3); }
.egida-c-tab[data-filter="pension"]:not(.is-active):hover { background: #ede9fe; border-color: #ddd6fe; color: #4c1d95; }

/* ===== 3. СЛАЙДЕР ===== */
.egida-cases-carousel { position: relative; padding: 0 28px; z-index: 2; overflow: visible; width: 100%; }

.egida-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 14px rgba(45, 40, 80, 0.15);
  cursor: pointer;
  z-index: 10 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  color: #4338ca;
  pointer-events: auto !important;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.egida-nav:focus-visible { outline: 2px solid #4f46e5; outline-offset: 2px; }
.egida-nav svg { width: 22px; height: 22px; display: block; flex-shrink: 0; margin: 0; padding: 0; }
.egida-prev svg { transform: translateX(-1px); }
.egida-next svg { transform: translateX(1px); }
.egida-nav:hover { background: #4338ca; color: #ffffff; border-color: #4338ca; box-shadow: 0 8px 18px rgba(67, 56, 202, 0.3); }
.egida-prev { left: 0px; }
.egida-next { right: 0px; }

.egida-cases-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 4px 2px 14px 2px; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent;
  width: 100%; box-sizing: border-box;
  align-items: stretch;
}
.egida-cases-track::-webkit-scrollbar { height: 6px; }
.egida-cases-track::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 999px; }
.egida-cases-track::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }

.egida-case-card {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  display: flex; flex: 0 0 calc(50% - 10px); min-width: calc(50% - 10px); max-width: calc(50% - 10px);
  scroll-snap-align: start; flex-direction: column; box-sizing: border-box;
}

.egida-c-card-inner { display: flex; flex-direction: column; }
.egida-c-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.egida-c-tag { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; }

/* ТЕГИ КАТЕГОРИЙ */
.tag-building { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.tag-auto { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.tag-land { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.tag-renovation { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.tag-inheritance { background: #faf5ff; color: #6b21a8; border-color: #e9d5ff; }
.tag-housing { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.tag-family { background: #fdf2f8; color: #9d174d; border-color: #fbcfe8; }
.tag-consumer { background: #fef3c7; color: #78350f; border-color: #fde68a; }
.tag-credit { background: #fee2e2; color: #7f1d1d; border-color: #fecaca; }
.tag-pension { background: #ede9fe; color: #4c1d95; border-color: #ddd6fe; }

.egida-c-court { font-size: 10.5px; color: #334155; font-family: monospace; background: #e2e8f0; padding: 2px 6px; border-radius: 5px; font-weight: 600; }
.egida-c-title { font-size: 14px; font-weight: 800; line-height: 1.3; color: #0f172a; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.egida-c-reward {
  background: #f0fdf4; border: 1px solid #bbf7d0; padding: 6px 10px; border-radius: 8px;
  margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.egida-c-reward-lbl { font-size: 8.5px; font-weight: 800; letter-spacing: 0.05em; color: #14532d; text-transform: uppercase; }
.egida-c-sum { font-size: 13.5px; font-weight: 800; color: #052e16; line-height: 1.2; }
.egida-c-status-badge { background: #15803d; color: #ffffff; font-size: 9.5px; font-weight: 700; padding: 3px 7px; border-radius: 5px; white-space: nowrap; }

.egida-c-meta-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; background: #f1f5f9; padding: 4px 8px; border-radius: 6px; margin-bottom: 6px; border: 1px solid #e2e8f0; font-size: 10.5px; line-height: 1.3; flex-wrap: wrap; color: #334155; font-weight: 500; }
.egida-c-meta-court { display: flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.egida-c-meta-judge { color: #475569; }

.egida-c-story { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; line-height: 1.4; color: #1e293b; margin-bottom: 6px; }
.story-item { padding: 4px 8px; border-radius: 0 6px 6px 0; display: block; }
.story-situation { border-left: 3px solid #d97706; background: rgba(254, 243, 199, 0.55); }
.story-actions { border-left: 3px solid #4f46e5; background: rgba(238, 242, 255, 0.7); }
.story-result { border-left: 3px solid #059669; background: rgba(209, 250, 229, 0.6); font-weight: 600; }
.story-item strong { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 1px; }
.story-situation strong { color: #78350f; }
.story-actions strong { color: #312e81; }
.story-result strong { color: #064e3b; }

.egida-c-awards { margin-top: 5px; padding-top: 4px; border-top: 1px solid #e2e8f0; }
.egida-c-awards-lbl { font-size: 8.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #475569; margin-bottom: 3px; }
.egida-c-awards-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.egida-award-chip { font-size: 10px; background: #f1f5f9; border: 1px solid #cbd5e1; color: #334155; padding: 2px 6px; border-radius: 5px; line-height: 1.25; font-weight: 500; }
.egida-award-chip strong { color: #0f172a; }

.egida-c-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.egida-c-shield { font-size: 10px; color: #475569; display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.egida-c-btn-group { display: flex; align-items: center; gap: 8px; }
.egida-c-btn-link { font-size: 11px; font-weight: 600; color: #475569; padding: 6px 10px; border-radius: 6px; transition: all 0.2s; min-height: 32px; display: inline-flex; align-items: center; }
.egida-c-btn-link:hover { color: #0f172a; background: #f1f5f9; }
.egida-c-btn-link:focus-visible { outline: 2px solid #4f46e5; outline-offset: 2px; }
.egida-c-btn-doc { background: #4f46e5; color: #ffffff; border: none; border-radius: 8px; padding: 8px 14px; font-size: 11px; font-weight: 700; cursor: pointer; transition: background 0.2s; min-height: 36px; }
.egida-c-btn-doc:hover { background: #4338ca; }
.egida-c-btn-doc:focus-visible { outline: 2px solid #4f46e5; outline-offset: 2px; }

/* ===== 4. ПАГИНАЦИЯ ===== */
.egida-cases-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; padding-top: 8px; border-top: 1px solid #e2e8f0; }
.egida-c-dots { display: flex; gap: 6px; align-items: center; }
.egida-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #94a3b8;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}
.egida-dot::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
}
.egida-dot.is-active { width: 22px; background: #4f46e5; }
.egida-dot:focus-visible { outline: 2px solid #4f46e5; outline-offset: 2px; }
.egida-c-page-info { font-family: monospace; font-size: 11px; color: #475569; font-weight: 600; }

/* ===== 5. СТАТИСТИКА ===== */
.egida-cases-mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; background: #0f172a; color: #ffffff; padding: 16px; border-radius: 14px; margin-top: 24px; text-align: center; }
.mini-stat-item { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 10px; border-radius: 10px; }
.mini-stat-lbl { font-size: 10px; color: #cbd5e1; text-transform: uppercase; font-weight: 700; margin-bottom: 2px; }
.mini-stat-val { font-size: 16px; font-weight: 800; }
.mini-stat-sub { font-size: 10px; color: #94a3b8; margin-top: 2px; }
.text-green { color: #4ade80; }
.text-amber { color: #fbbf24; }
.text-indigo { color: #a5b4fc; }
.text-cyan { color: #67e8f9; }

/* ===== 6. МОДАЛКА ===== */
.egida-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2147483647 !important;
  display: flex; align-items: center; justify-content: center;
  padding: 10px; box-sizing: border-box; overflow-y: auto;
  isolation: isolate;
  opacity: 0; visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
.egida-modal-overlay.is-open { opacity: 1; visibility: visible; }

.egida-modal-window {
  background: #ffffff; border-radius: 14px;
  max-width: 760px; width: 100%;
  max-height: 88vh; max-height: 88dvh;
  height: 88vh; height: 88dvh;
  display: flex; flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  overflow: hidden; border: 1px solid #cbd5e1;
  margin: auto; position: relative;
  transform: translateZ(0);
}
.egida-modal-window > * { position: relative; z-index: 1; }

.egida-modal-head { background: #0f172a; color: #ffffff; padding: 8px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; }
.egida-m-court { font-size: 11px; color: #c7d2fe; font-family: monospace; }
.egida-m-title { font-size: 14px; font-weight: 700; }

.egida-m-close {
  background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff; width: 40px; height: 40px; border-radius: 10px;
  font-size: 18px; font-weight: 700; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.15s, border-color 0.15s; flex-shrink: 0;
}
.egida-m-close:hover, .egida-m-close:focus-visible {
  background: #dc2626; border-color: #dc2626; transform: scale(1.05); outline: none;
}
.egida-m-close:active { transform: scale(0.97); }

.egida-m-subbar {
  background: #f1f5f9; border-bottom: 1px solid #e2e8f0;
  padding: 5px 12px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; flex-shrink: 0;
}
.egida-m-doc-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #334155; font-weight: 500; }
.egida-m-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; display: inline-block; flex-shrink: 0; }
.egida-m-badge-pii { font-family: monospace; font-size: 10px; background: #e2e8f0; padding: 1px 6px; border-radius: 4px; color: #334155; }
.egida-m-rep-badge { font-size: 11px; color: #475569; flex-shrink: 0; }
.egida-m-rep-badge strong { color: #312e81; }

.egida-m-body {
  padding: 8px 6px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  flex: 1 1 auto; min-height: 0; background: #f8fafc;
  scrollbar-width: thin; scrollbar-color: #94a3b8 #f1f5f9;
}
.egida-m-body::-webkit-scrollbar { width: 8px; }
.egida-m-body::-webkit-scrollbar-track { background: #f1f5f9; }
.egida-m-body::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 999px; }
.egida-m-body::-webkit-scrollbar-thumb:hover { background: #64748b; }

.egida-m-doc-sheet {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 14px 16px; max-width: 680px; margin: 0 auto;
  font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
  font-size: 12.5px; line-height: 1.5; color: #1e293b;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}
.egida-m-doc-sheet p { margin: 0 0 6px; }
.egida-m-doc-sheet p:last-child { margin-bottom: 0; }

/* ===== Классы внутри fullHtml ===== */
.egida-doc-header-bar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px; margin-bottom: 8px; border-bottom: 1px solid #e2e8f0; font-size: 10.5px; font-family: monospace; color: #475569; flex-wrap: wrap; gap: 6px; }
.egida-doc-status-pill { color: #065f46; background: #ecfdf5; border: 1px solid #a7f3d0; padding: 2px 8px; border-radius: 4px; font-weight: bold; font-family: system-ui, -apple-system, sans-serif; font-size: 10px; }
.egida-doc-section { margin-bottom: 4px; }
.egida-doc-text { font-family: Georgia, Cambria, 'Times New Roman', Times, serif; font-size: 12.5px; line-height: 1.5; color: #1e293b; }
.egida-doc-text p { margin: 0 0 6px; }
.egida-doc-text strong { color: #0f172a; }
.egida-doc-note { font-size: 11px; color: #475569; margin-top: 6px; }

.egida-doc-title {
  text-align: center; font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
  font-weight: 800; font-size: 17px; color: #0f172a; letter-spacing: 0.06em;
  text-transform: uppercase; margin: 4px 0 2px; line-height: 1.25;
}
.egida-doc-subtitle {
  text-align: center; font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
  font-size: 11.5px; color: #334155; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 6px;
}
.egida-doc-rule {
  height: 1px; background: linear-gradient(90deg, transparent, #94a3b8 20%, #94a3b8 80%, transparent);
  margin: 4px 0 8px;
}
.egida-doc-meta-line { display: flex; justify-content: space-between; font-size: 11px; color: #334155; font-weight: 600; border-bottom: 1px solid #e2e8f0; padding-bottom: 5px; margin-bottom: 8px; }
.egida-pii { background: #e2e8f0; color: #334155; padding: 1px 5px; border-radius: 3px; font-family: monospace; font-size: 11px; }
.egida-doc-divider { position: relative; text-align: center; margin: 8px 0 6px; }
.egida-doc-divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; border-top: 1px solid #e2e8f0; }
.egida-doc-divider span { position: relative; background: #ffffff; padding: 0 10px; font-size: 9.5px; font-family: monospace; color: #475569; text-transform: uppercase; letter-spacing: 0.08em; }

.egida-doc-verdict-head {
  text-align: center; font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
  font-weight: 800; font-size: 15px; color: #0f172a; letter-spacing: 0.15em;
  text-transform: uppercase; margin: 10px 0 8px; padding: 5px 0;
  border-top: 2px solid #0f172a; border-bottom: 2px solid #0f172a; background: #f8fafc;
}

.egida-doc-callout { border-radius: 8px; padding: 8px 10px; margin: 6px 0; font-size: 12px; line-height: 1.45; }
.egida-doc-callout ul { margin: 3px 0 0 16px; padding: 0; }
.egida-doc-callout li { margin-bottom: 2px; }
.callout-indigo { border-left: 4px solid #4f46e5; background: #eef2ff; color: #1e1b4b; }
.callout-green { border: 1px solid #86efac; background: #f0fdf4; color: #064e3b; }
.callout-amber { border: 1px solid #fcd34d; background: #fffbeb; color: #78350f; font-weight: 600; }
.callout-sky { border: 1px solid #7dd3fc; background: #f0f9ff; color: #0c4a6e; }

.egida-doc-highlight {
  background: #fff3cd; border: 1px solid #fcd34d; border-radius: 4px;
  padding: 1px 5px; font-weight: 700; color: #78350f;
}

.egida-doc-signature {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; flex-wrap: wrap; margin: 14px 0 8px;
  padding-top: 10px; border-top: 1px solid #e2e8f0;
}
.egida-doc-signature-left { font-family: Georgia, Cambria, 'Times New Roman', Times, serif; font-size: 12.5px; color: #1e293b; line-height: 1.5; }
.egida-doc-signature-left .egida-doc-judge-name {
  font-weight: 700; border-bottom: 1px solid #94a3b8; padding-bottom: 1px;
  display: inline-block; min-width: 140px;
}

/* ===== ШТАМП ЭЦП ===== */
.egida-doc-stamp-box { margin-top: 14px; padding-top: 10px; border-top: 1px dashed #cbd5e1; }

.egida-ecp-stamp {
  background: #f0f7ff;
  border: 1.5px solid #1877f2;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 2px 6px rgba(24, 119, 242, 0.08);
  position: relative;
}
.egida-ecp-stamp::before {
  content: ""; position: absolute; inset: 3px;
  border: 1px solid rgba(24, 119, 242, 0.25);
  border-radius: 7px; pointer-events: none;
}

.egida-ecp-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 800; color: #1455c0;
  text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid #bfdbfe; padding-bottom: 6px; margin-bottom: 8px;
  line-height: 1.2;
}
.egida-ecp-head svg { width: 16px; height: 16px; flex-shrink: 0; }

.egida-ecp-body { display: flex; flex-direction: column; gap: 5px; font-size: 12px; line-height: 1.4; color: #1e293b; }
.egida-ecp-row { display: flex; align-items: flex-start; gap: 8px; }
.egida-ecp-row svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; stroke: #1877f2; }
.egida-ecp-row .egida-ecp-lbl { font-weight: 700; color: #1455c0; min-width: 108px; flex-shrink: 0; }
.egida-ecp-row .egida-ecp-val { color: #0f172a; font-weight: 500; word-break: break-word; }
.egida-ecp-row .egida-ecp-val strong { color: #0f172a; font-weight: 700; }

.egida-modal-foot { background: #f8fafc; border-top: 1px solid #e2e8f0; padding: 6px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; position: relative; z-index: 2; }
.egida-m-foot-actions { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; flex-wrap: wrap; }
.egida-m-btn-link { font-size: 12px; font-weight: 600; color: #4f46e5; text-decoration: none; }
.egida-m-btn-link:hover { text-decoration: underline !important; }
.egida-m-btn-link:focus-visible { outline: 2px solid #4f46e5; outline-offset: 2px; }
.egida-m-btn-close { background: #0f172a; color: #ffffff; border: none; padding: 8px 16px; font-size: 12px; font-weight: 600; border-radius: 6px; cursor: pointer; min-height: 36px; }
.egida-m-btn-close:focus-visible { outline: 2px solid #4f46e5; outline-offset: 2px; }

/* ===== 7. МОБИЛЬНЫЙ ===== */
@media (max-width: 768px) {
  .egida-cases { padding: 0 4px; margin: 16px auto; }
  .egida-cases-header { margin-bottom: 8px; }
  .egida-cases-kicker { padding: 2px 8px; font-size: 9.5px; margin-bottom: 6px; }
  .egida-cases-heading { font-size: 19px; margin-bottom: 2px; }
  .egida-cases-divider { margin: 4px auto 6px; }

  .egida-cases-filters {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    justify-content: flex-start !important;
    padding: 4px 12px 6px 12px !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
    width: calc(100% + 24px) !important;
    max-width: calc(100% + 24px) !important;
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  }
  .egida-cases-filters::-webkit-scrollbar { display: none; height: 0; }
  .egida-c-tab { font-size: 11px; padding: 6px 11px; min-height: 34px; scroll-snap-align: start; }

  .egida-cases-carousel { padding: 0 14px; }
  .egida-nav { width: 40px; height: 40px; }
  .egida-nav svg { width: 18px; height: 18px; }
  .egida-prev { left: -4px; }
  .egida-next { right: -4px; }

  .egida-cases-track { gap: 12px; padding: 2px 2px 10px 2px; align-items: stretch; }
  .egida-case-card { flex: 0 0 100%; min-width: 100%; max-width: 100%; padding: 14px 12px; border-radius: 12px; }
  .egida-c-title { font-size: 14px; line-height: 1.35; }
  .egida-c-sum { font-size: 13px; }
  .egida-c-story .story-item { font-size: 12px; line-height: 1.35; padding: 6px 8px; }
  .egida-award-chip { font-size: 10px; padding: 2px 6px; }
  .egida-c-bottom { flex-wrap: wrap; gap: 6px; padding-top: 6px; margin-top: 6px; }
  .egida-c-btn-group { width: 100%; justify-content: space-between; }
  .egida-c-btn-doc { flex: 1; text-align: center; min-height: 40px; }

  .egida-cases-mini-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px; }
  .egida-modal-overlay { padding: 6px; }
  .egida-modal-window { max-height: 96dvh; height: 96dvh; max-width: 100%; border-radius: 10px; }
  .egida-modal-head { padding: 8px 10px; }
  .egida-m-close { width: 36px; height: 36px; font-size: 15px; }
  .egida-m-title { font-size: 12.5px; line-height: 1.25; }
  .egida-m-subbar { padding: 4px 8px; font-size: 10px; }
  .egida-m-body { padding: 6px 4px; }
  .egida-m-doc-sheet { padding: 10px 10px; font-size: 12px; line-height: 1.45; max-width: 100%; border-radius: 6px; }
  .egida-doc-title { font-size: 15px; }
  .egida-doc-subtitle { font-size: 10.5px; }
  .egida-doc-verdict-head { font-size: 13px; padding: 4px 0; }
  .egida-ecp-head { font-size: 10.5px; }
  .egida-ecp-row { font-size: 11px; }
  .egida-ecp-row .egida-ecp-lbl { min-width: 92px; }
  .egida-modal-foot { padding: 6px 10px; }
  .egida-m-btn-link { font-size: 10.5px; }
  .egida-m-btn-close { padding: 8px 14px; font-size: 11px; min-height: 38px; }
}