/* ==========================================================================
   СТИЛИ САЙТА-РАССЛЕДОВАНИЯ / ДОСЬЕ МОШЕННИКА
   Агрессивная предупреждающая тема (красный, черный, угольный), высокая контрастность,
   адаптивность (Mobile-First), полноэкранный просмотрщик улик, стили для печати.
   ========================================================================== */

/* --- ПЕРЕМЕННЫЕ И ЦВЕТОВАЯ СХЕМА --- */
:root {
  /* Темная агрессивная тема (по умолчанию) */
  --bg-primary: #07090e;
  --bg-secondary: #0d111a;
  --bg-card: rgba(16, 20, 30, 0.88);
  --bg-card-hover: rgba(25, 32, 48, 0.95);
  --bg-accent-subtle: rgba(239, 68, 68, 0.12);
  --bg-danger-subtle: rgba(239, 68, 68, 0.16);
  --bg-warning-subtle: rgba(245, 158, 11, 0.14);
  
  --border-color: rgba(239, 68, 68, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-focus: #ef4444;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8492a6;

  /* Сигнальные цвета опасности */
  --accent-color: #ef4444;
  --accent-hover: #dc2626;
  --accent-crimson: #b91c1c;
  --accent-gradient: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
  --danger-gradient: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%);
  
  --warning-color: #f59e0b;
  --warning-text: #fbbf24;
  --success-color: #10b981;

  --badge-danger-bg: rgba(239, 68, 68, 0.18);
  --badge-danger-text: #fca5a5;
  --badge-warning-bg: rgba(245, 158, 11, 0.18);
  --badge-warning-text: #fcd34d;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 25px rgba(239, 68, 68, 0.35);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --container-max-width: 1140px;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Светлая тема: официальный бланковый стиль ориентировки */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  --bg-accent-subtle: rgba(220, 38, 38, 0.08);
  --bg-danger-subtle: rgba(220, 38, 38, 0.12);
  --bg-warning-subtle: rgba(217, 119, 6, 0.12);

  --border-color: rgba(220, 38, 38, 0.3);
  --border-subtle: rgba(0, 0, 0, 0.09);
  --border-focus: #dc2626;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --accent-color: #dc2626;
  --accent-hover: #b91c1c;
  --accent-crimson: #991b1b;
  --accent-gradient: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);

  --warning-color: #d97706;
  --warning-text: #b45309;

  --badge-danger-bg: rgba(220, 38, 38, 0.12);
  --badge-danger-text: #b91c1c;
  --badge-warning-bg: rgba(217, 119, 6, 0.12);
  --badge-warning-text: #92400e;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(220, 38, 38, 0.2);
}

/* --- СБРОС И БАЗОВЫЕ СТИЛИ --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Фоновые декоративные эффекты тревоги (красное свечение) */
.bg-glow-1, .bg-glow-2 {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  transition: opacity var(--transition-normal);
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #dc2626 0%, transparent 70%);
  top: -120px;
  right: -100px;
}

.bg-glow-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #7f1d1d 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
}

[data-theme="light"] .bg-glow-1,
[data-theme="light"] .bg-glow-2 {
  opacity: 0.15;
}

/* --- ВЕРХНЯЯ СИГНАЛЬНАЯ СТРОКА ТРЕВОГИ (ALERT RIBBON) --- */
.alert-topbar {
  background: linear-gradient(90deg, #991b1b 0%, #ef4444 50%, #991b1b 100%);
  color: #ffffff;
  padding: 0.65rem 1rem;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  position: relative;
  z-index: 60;
  box-shadow: 0 2px 12px rgba(220, 38, 38, 0.45);
}

.alert-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  line-height: 1.4;
}

.alert-pulse-icon {
  animation: pulseAttention 1.4s infinite ease-in-out;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes pulseAttention {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.85; }
}

/* --- КОНТЕЙНЕР --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- НАВИГАЦИЯ И ШАПКА --- */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(7, 9, 14, 0.92);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal);
}

[data-theme="light"] .header-nav {
  background-color: rgba(248, 250, 252, 0.95);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.nav-brand {
  font-weight: 900;
  font-size: 1.12rem;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.nav-brand-icon {
  width: 26px;
  height: 26px;
  color: var(--accent-color);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin-left: auto;
  margin-right: 1.5rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color var(--transition-fast);
  padding: 0.45rem 0.2rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-color);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav-share-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-share-btn:hover {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
}

.nav-share-btn svg {
  width: 14px;
  height: 14px;
}

/* Кнопка смены темы */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  color: var(--accent-color);
  border-color: var(--border-color);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Мобильная кнопка меню (гамбургер) */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* Мобильное меню дропдаун */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 104px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 49;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 104px;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border-color);
  padding: 1.25rem;
  z-index: 50;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-link {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

/* --- HERO СЕКЦИЯ (ДОСЬЕ ПЕРСОНЫ) --- */
.hero-section {
  padding: 2.5rem 0 2rem;
}

.hero-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
  position: relative;
  overflow: hidden;
}

/* Красный градиентный акцент внутри карточки */
.hero-card::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.22) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

/* Фото-блок досье */
.avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.avatar-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-lg);
  padding: 4px;
  background: linear-gradient(135deg, #ef4444 0%, #7f1d1d 100%);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-lg) - 4px);
  object-fit: cover;
  object-position: center 15%;
  display: block;
  background: var(--bg-secondary);
}

.avatar-danger-stamp {
  width: 100%;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid #ef4444;
}

.hero-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-header-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dossier-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--badge-danger-bg);
  color: var(--badge-danger-text);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.person-name {
  font-size: 2.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.15;
}

.person-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Сетка параметров досье */
.dossier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-top: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.dossier-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dossier-item-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.dossier-item-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
}

.dossier-item-value a {
  color: #f87171;
  text-decoration: none;
}

.dossier-item-value a:hover {
  text-decoration: underline;
}

/* Красная плашка горячего адреса */
.hotspot-alert-box {
  background: rgba(239, 68, 68, 0.12);
  border-left: 4px solid #ef4444;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-top: 0.5rem;
}

.hotspot-alert-title {
  color: #ef4444;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hotspot-alert-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: var(--badge-danger-bg);
  color: var(--badge-danger-text);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

/* --- КНОПКИ --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* --- СЕКЦИИ САЙТА --- */
.section {
  padding: 3.5rem 0;
}

.section-header {
  margin-bottom: 2.25rem;
}

.section-subtitle {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-color);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin-top: 0.4rem;
  max-width: 750px;
}

/* --- КАРТОЧКИ СХЕМ ОБМАНА --- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.activity-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.activity-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.activity-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(239, 68, 68, 0.25);
}

.activity-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.activity-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--bg-danger-subtle);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.activity-icon svg {
  width: 24px;
  height: 24px;
}

.activity-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--badge-danger-bg);
  color: var(--badge-danger-text);
  letter-spacing: 0.05em;
}

.activity-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.activity-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Блок отзывов пострадавших */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--warning-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.story-quote {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.story-author {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Памятка для пострадавших: шаги в полицию */
.action-guide-box {
  background: var(--bg-card);
  border: 2px solid var(--accent-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2.5rem;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.15);
}

.action-guide-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent-color);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.action-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.action-step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.action-step-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-color);
  margin-bottom: 0.4rem;
}

.action-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.action-step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- СЕКЦИЯ КОНТАКТНЫХ ДАННЫХ --- */
.contacts-wrapper {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contacts-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.96rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.filter-btn.active {
  background: var(--accent-gradient);
  border-color: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.25rem;
}

.contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  position: relative;
  transition: all var(--transition-fast);
}

.contact-card:hover {
  border-color: var(--border-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-danger-subtle);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-details {
  flex: 1;
  min-width: 0;
}

.contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.contact-badge {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--badge-danger-bg);
  color: var(--badge-danger-text);
  font-weight: 700;
}

.contact-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
  text-decoration: none;
  display: block;
  transition: color var(--transition-fast);
}

.contact-value:hover {
  color: var(--accent-color);
}

.contact-warning-note {
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: var(--bg-card);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

.direct-link-btn {
  color: var(--accent-color);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg-accent-subtle);
  transition: all var(--transition-fast);
}

.direct-link-btn:hover {
  background: var(--accent-color);
  color: #ffffff;
}

/* --- СЕКЦИЯ АДРЕСОВ И ОЧАГОВ ОБМАНА --- */
.addresses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1.5rem;
}

.address-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: all var(--transition-fast);
  position: relative;
}

.address-card.risk-high {
  border-color: #ef4444;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, var(--bg-card) 100%);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
}

.address-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.address-top {
  display: flex;
  gap: 1.15rem;
}

.address-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--bg-danger-subtle);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.address-icon svg {
  width: 24px;
  height: 24px;
}

.address-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.address-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.badge-risk-critical {
  background: #dc2626;
  color: #ffffff;
}

.badge-risk-high {
  background: var(--badge-danger-bg);
  color: var(--badge-danger-text);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-office {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.address-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
}

.address-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.45rem;
  line-height: 1.5;
}

.address-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

/* --- СЕКЦИЯ СВЯЗАННЫХ ЛИЦ И РОДСТВЕННИКОВ --- */
.relatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}

.relative-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.relative-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.relative-avatar-wrapper {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid #ef4444;
  background: var(--bg-secondary);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.35);
}

.relative-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.relative-meta {
  flex: 1;
  min-width: 0;
}

.relative-relation-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--badge-danger-bg);
  color: var(--badge-danger-text);
  border: 1px solid rgba(239, 68, 68, 0.4);
  margin-bottom: 0.35rem;
}

.relative-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.relative-subtext {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.relative-warning-box {
  background: rgba(245, 158, 11, 0.12);
  border-left: 3px solid var(--warning-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.relative-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.relative-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.relative-detail-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.relative-detail-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.relative-detail-val {
  color: var(--text-primary);
  font-weight: 700;
  word-break: break-word;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.relative-detail-val a {
  color: #f87171;
  text-decoration: none;
}

.relative-detail-val a:hover {
  text-decoration: underline;
}

/* --- СЕКЦИЯ: ФОТОГАЛЕРЕЯ И УЛИКИ --- */
.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.gallery-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-filter-btn:hover {
  border-color: var(--border-color);
  color: var(--text-primary);
}

.gallery-filter-btn.active {
  background: var(--accent-gradient);
  border-color: var(--accent-color);
  color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: #111520;
  border: 1.5px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.gallery-item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md), 0 0 20px rgba(239, 68, 68, 0.3);
  border-color: var(--accent-color);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.06);
}

/* Всегда видимая информационная плашка поверх фото */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.45) 45%, transparent 75%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem;
  transition: background var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
  background: linear-gradient(to top, rgba(185, 28, 28, 0.92) 0%, rgba(0, 0, 0, 0.6) 55%, transparent 85%);
}

.gallery-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fca5a5;
  margin-bottom: 0.2rem;
  letter-spacing: 0.05em;
}

.gallery-caption {
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Полноэкранный просмотрщик (Lightbox Dialog) */
.lightbox-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 95vw;
  max-height: 95vh;
  margin: auto;
  border-radius: var(--radius-md);
  outline: none;
  overflow: hidden;
}

.lightbox-dialog::backdrop {
  background: rgba(4, 6, 10, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(239, 68, 68, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-footer {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.lightbox-caption {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  max-width: 700px;
}

.lightbox-counter {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.lightbox-close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111827;
  border: 2px solid var(--accent-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox-close-btn:hover {
  background: var(--accent-color);
  transform: scale(1.1);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 5;
}

.lightbox-nav-btn:hover {
  background: var(--accent-color);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev-btn { left: 10px; }
.lightbox-next-btn { right: 10px; }

/* --- ВСПЛЫВАЮЩИЕ УВЕДОМЛЕНИЯ (TOAST) --- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: #0f131c;
  color: #f8fafc;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-color);
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  animation: toastIn 0.25s ease forwards;
  pointer-events: auto;
}

[data-theme="light"] .toast {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(220, 38, 38, 0.3);
}

.toast svg {
  width: 18px;
  height: 18px;
  color: var(--accent-color);
  flex-shrink: 0;
}

@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(20px); opacity: 0; }
}

/* --- ПОДВАЛ (FOOTER) --- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  background: var(--bg-secondary);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-notice {
  color: #f87171;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.scroll-top-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.scroll-top-btn:hover {
  background: var(--accent-color);
  color: #ffffff;
}

/* --- АДАПТИВНОСТЬ ПОД МОБИЛЬНЫЕ УСТРОЙСТВА --- */
@media (max-width: 900px) {
  .alert-topbar {
    font-size: 0.78rem;
    padding: 0.5rem 0.75rem;
  }

  .hero-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.25rem;
    gap: 1.75rem;
  }

  .avatar-col {
    margin: 0 auto;
  }

  .hero-header-row, .hero-tags, .hero-actions {
    justify-content: center;
  }

  .dossier-grid {
    text-align: left;
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .contacts-wrapper {
    padding: 1.25rem;
  }

  .contacts-grid, .addresses-grid, .activities-grid, .relatives-grid {
    grid-template-columns: 1fr;
  }

  .toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .toast {
    width: 100%;
  }
}

/* --- СТИЛИ ДЛЯ ПЕЧАТИ (ОРИЕНТИРОВКА / ПАПКА ДЛЯ ПОЛИЦИИ) --- */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .header-nav, .alert-topbar, .scroll-top-btn,
  .contacts-controls, .theme-toggle-btn, .mobile-nav-toggle,
  .gallery-controls, .hero-actions, .copy-btn, .direct-link-btn, .nav-share-btn {
    display: none !important;
  }

  .hero-card, .activity-card, .address-card, .relative-card, .contact-card {
    border: 1px solid #000000 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    color: #000000 !important;
  }

  .person-name {
    color: #dc2626 !important;
  }
}
