:root {
  --ink: #10243e;
  --ink-soft: #41556f;
  --navy: #12365f;
  --blue: #1f70c1;
  --blue-deep: #165a9a;
  --sky: #eaf4ff;
  --sky-strong: #d7eafd;
  --cream: #fff8e8;
  --gold: #e9a72e;
  --red: #d84a4a;
  --red-soft: #fff0f0;
  --green: #218a62;
  --green-soft: #eaf8f1;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --line: #dfe8f2;
  --shadow: 0 18px 45px rgba(18, 54, 95, .10);
  --shadow-soft: 0 10px 28px rgba(18, 54, 95, .07);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 380px;
  background:
    radial-gradient(circle at 76% 15%, rgba(233, 167, 46, .12), transparent 24%),
    radial-gradient(circle at 18% 0%, rgba(31, 112, 193, .13), transparent 34%);
  pointer-events: none;
  z-index: -1;
}

a { color: inherit; }
img, video { display: block; max-width: 100%; }
button, input, select { font: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--navy);
  transition: top .2s ease;
}

.skip-link:focus { top: 14px; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(223, 232, 242, .82);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 5px 18px rgba(18, 54, 95, .15);
}

.brand-name { font-size: 1.08rem; }
.brand-name span { color: var(--blue); }

/* Подпись под логотипом в шапке: «Центр по борьбе с дезинформацией» */
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-sub { font-size: .66rem; font-weight: 600; letter-spacing: 0; line-height: 1.2; color: var(--ink-soft); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 650;
  transition: background .2s ease, color .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue-deep);
  background: var(--sky);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.language-switch a {
  padding: 5px 1px 3px;
  border-bottom: 2px solid transparent;
  color: var(--blue);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .02em;
  transition: color .2s ease, border-color .2s ease;
}

.language-switch a:hover { color: var(--navy); }

.language-switch a.active {
  border-bottom-color: var(--gold);
  color: var(--navy);
}

.language-switch span {
  color: #9aabbe;
  font-size: .78rem;
}

.lang-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.lang-switch button {
  border: 0;
  border-radius: 7px;
  padding: 6px 9px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: .76rem;
  font-weight: 800;
}

.lang-switch button.active { color: #fff; background: var(--navy); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
  font-size: 1.25rem;
}

.hero {
  padding: 84px 0 56px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--blue-deep);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  color: var(--navy);
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero h1 em { color: var(--blue); font-style: normal; }

.hero-home h1 { max-width: 940px; font-size: 64px; line-height: 1.08; letter-spacing: 0; }
.hero-home h1 em { display: inline-block; max-width: 100%; }
.hero-home .lead, .hero-home .search-panel { max-width: 760px; }
.check-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 380px); gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.check-tabs button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--ink-soft); font: inherit; font-weight: 700; cursor: pointer; letter-spacing: 0; }
.check-tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.check-tabs svg, .video-check-panel svg { width: 20px; height: 20px; flex-shrink: 0; }
.video-check-panel { max-width: none; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.video-check-panel[hidden] { display: none; }
.video-check-panel > form, .video-check-panel > .video-check-result { min-width: 0; padding: 22px; border: 1px solid #cad2d9; border-radius: 6px; background: #fff; margin: 0; }
.video-check-panel .video-preview { max-height: 380px; height: 380px; aspect-ratio: auto; background: #f5f6f7; border-radius: 0; object-fit: contain; }
.video-check-panel .video-file-field { padding: 0 0 14px; border: 0; border-radius: 0; }
.video-check-panel .video-file-field > span { font-size: 15px; }
.video-check-panel .video-file-field input { font-size: 12px; }
.video-check-panel .video-limits { font-size: 11px; margin-bottom: 8px; }
.video-check-panel .video-consent { font-size: 12px; }
.video-check-panel .video-privacy { font-size: 11px; }
.video-check-panel [data-video-submit] { width: 100%; justify-content: center; }
.moderation-filename { font-size: 12px; margin: 0 0 24px; overflow-wrap: anywhere; }
.video-check-result .video-detail-controls { flex-wrap: wrap; margin: 0 0 20px; }
.video-check-result .video-detail-controls h3 { margin: 0 auto 0 0; font-size: 17px; }
.moderation-modes { display: flex; padding: 3px; border: 1px solid #d1d8de; border-radius: 4px; }
.moderation-modes button { display: flex; align-items: center; gap: 4px; padding: 7px; border: 0; border-radius: 2px; background: #fff; color: #42546a; font-size: 12px; cursor: pointer; }
.moderation-modes button[aria-pressed="true"] { background: #e2efff; color: #1666c0; }
.moderation-modes svg { width: 15px; height: 15px; }
.moderation-all { display: flex; gap: 6px; align-items: flex-start; font-size: 11px; color: #536277; margin: 0 0 14px; }
.moderation-all input { flex: 0 0 auto; margin-top: 2px; }
.moderation-timeline { padding: 12px 0; }
.moderation-timeline > strong { font-size: 12px; font-weight: 500; }
.moderation-frame-track { display: flex; height: 22px; background: #f3f4f6; margin-top: 8px; gap: 1px; }
.moderation-frame-track button { flex: 1; min-width: 0; border: 0; padding: 0; background: #eef0f3; cursor: pointer; }
.moderation-frame-track button[data-level="high"] { background: #d8223e; }
.moderation-frame-track button[data-level="moderate"] { background: #f2a124; }
.moderation-frame-track button:focus-visible { outline: 2px solid #176cc4; outline-offset: 1px; }
.moderation-footnote { background: #f5f7fa; padding: 14px; margin: 24px 0 0; font-size: 11px; line-height: 1.6; }
.moderation-more { border: 1px solid #c5d8ed; background: #fff; color: #1768bc; border-radius: 3px; padding: 4px 6px; font-size: 12px; cursor: pointer; }
@media (max-width: 950px) {
  .video-check-panel { grid-template-columns: minmax(0, 1fr); }
  .video-check-panel > form, .video-check-panel > .video-check-result { padding: 16px; }
  .video-check-panel .video-preview { height: 320px; max-height: 320px; }
}
.video-file-field { display: grid; gap: 14px; padding: 18px; border: 1px dashed #8ca7ba; border-radius: 6px; background: #fff; }
.video-file-field > span { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.video-file-field input { width: 100%; min-width: 0; font: inherit; }
.video-limits, .video-privacy { color: var(--ink-soft); font-size: 13px; line-height: 1.6; margin: 10px 0 16px; }
.video-selection { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; }
.video-selection span { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.video-icon-button { width: 36px; height: 36px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; }
.video-preview { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 260px; object-fit: contain; background: #172129; margin: 12px 0 18px; border-radius: 4px; }
.video-consent { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; font-size: 14px; line-height: 1.5; }
.video-consent input { width: 18px; height: 18px; flex-shrink: 0; margin: 2px 0 0; accent-color: #177d64; }
.video-check-panel .button { display: inline-flex; align-items: center; gap: 8px; border-radius: 6px; }
.video-check-panel button:disabled { opacity: .6; cursor: not-allowed; }
.video-progress { display: block; width: 100%; height: 8px; margin-top: 18px; accent-color: var(--blue); }
.video-check-result { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.video-check-result h3 { font-size: 20px; line-height: 1.4; letter-spacing: 0; }
.video-check-result h4 { margin: 24px 0 12px; font-size: 16px; }
.video-model-label { font-size: 12px; color: var(--ink-soft); }
.moderation-slider { display: block; width: 100%; margin: 16px 0; accent-color: #216cbb; }
.moderation-group { padding: 12px 0; border-bottom: 1px solid var(--line); }
.video-check-result .moderation-group h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 500; padding-bottom: 10px; border-bottom: 1px solid #e0e4e8; color: #243342; }
.moderation-group h4::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #888; }
.moderation-group[data-level="high"] h4::before { background: #d8223e; }
.moderation-group[data-level="moderate"] h4::before { background: #f2a124; }
.moderation-group[data-level="high"] { color: #bd1530; }
.moderation-group[data-level="moderate"] { color: #986000; }
.moderation-group[data-level="low"] { color: #405268; }
.moderation-categories { display: flex; flex-wrap: wrap; gap: 8px; }
.moderation-categories span { max-width: 100%; overflow-wrap: anywhere; border: 1px solid #b6c3cd; border-radius: 3px; padding: 4px 6px; font: 12px/1.5 Arial, sans-serif; }
.video-tracks { width: 100%; min-width: 0; }
.video-tracks > strong { display: block; font-size: 13px; margin: 12px 0 6px; }
.video-track { display: flex; width: 100%; height: 64px; gap: 1px; background: #f1f4f6; border-bottom: 1px solid var(--line); }
.video-track .video-sample { flex: 1 1 0; min-width: 0; padding: 0; border: 0; border-radius: 0; display: flex; align-items: flex-end; background: transparent; cursor: pointer; }
.video-track .video-sample:disabled { opacity: 1; cursor: default; }
.video-sample span { display: block; width: 100%; background: #177d64; }
.video-sample[data-level="high"] span { background: #d22f40; }
.video-sample[data-level="missing"] span { background: #84929c; }
.video-sample:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; z-index: 1; }
.video-time-axis { display: flex; justify-content: space-between; font-size: 12px; margin-top: 6px; }
.video-detail-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; }
.video-detail-controls select { min-width: 0; max-width: calc(100% - 44px); padding: 8px; background: white; border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 14px; }
.video-detail-controls > span { margin-right: auto; font-size: 13px; }
.video-frame-details { max-width: 100%; }
.video-frame-details pre { max-height: 360px; overflow: auto; font-size: 12px; padding: 12px; background: #f1f4f6; white-space: pre; }
.video-frame-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; }
.video-frame-table th, .video-frame-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.video-frame-table th { font-size: 12px; }
.video-frame-link { border: 0; background: transparent; color: var(--blue); padding: 0; font: inherit; cursor: pointer; text-align: left; }
.video-frame-table .video-score-high { color: #b62333; font-weight: 700; }
.video-check-result[data-state="error"] { color: #aa2936; }
.video-score-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.video-score-grid dt { font-size: 13px; color: var(--ink-soft); }
.video-score-grid dd { font-size: 28px; font-weight: 700; margin: 4px 0 0; }
.video-frame-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.video-frame-list button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: #fff; color: var(--blue-deep); border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 14px; cursor: pointer; }
.video-check-panel [hidden], .search-panel[hidden] { display: none !important; }
.video-check-active .report-fab { display: none; }
@media (max-width: 700px) {
  .hero.hero-home { padding-top: 28px; padding-bottom: 28px; }
  .hero-home h1 { font-size: 40px; }
  .hero-home[data-check-mode="video"] h1 { font-size: 32px; }
}

.lead {
  max-width: 690px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.search-panel {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.search-form {
  display: flex;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 13px 15px;
  color: var(--ink);
  background: transparent;
}

.search-form button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 18px;
  color: #fff;
  background: var(--blue);
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.button:hover,
.search-form button:hover { transform: translateY(-1px); background: var(--blue-deep); }
.search-form button:disabled { opacity: .75; cursor: wait; transform: none; }
.button.secondary { color: var(--navy); border-color: var(--line); background: #fff; }
.button.secondary:hover { background: var(--sky); }
.button.small { padding: 9px 13px; border-radius: 10px; font-size: .87rem; }

.search-note {
  margin: 11px 4px 0;
  color: #687b91;
  font-size: .82rem;
}

.search-result {
  display: none;
  margin-top: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.search-result.open { display: block; }
.search-result h3 { margin-bottom: 9px; color: var(--navy); }
.search-details { display: none; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.search-details.open { display: block; }
.search-details a { color: var(--blue-deep); word-break: break-word; }
.result-toggle { margin-top: 13px; border: 0; padding: 0; color: var(--blue-deep); background: transparent; font-weight: 750; cursor: pointer; }

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 400px;
}

.signal-card {
  position: relative;
  margin-left: auto;
  width: min(100%, 390px);
  padding: 28px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(145deg, #12365f, #175b98);
  box-shadow: 0 28px 70px rgba(18, 54, 95, .28);
}

.signal-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -50px;
  top: -50px;
  border-radius: 50%;
  border: 30px solid rgba(255,255,255,.06);
}

.signal-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 48px; }
.signal-label { color: #b9daf9; font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.signal-dot { width: 12px; height: 12px; border-radius: 50%; background: #62d39c; box-shadow: 0 0 0 7px rgba(98,211,156,.15); }
.signal-number { font-size: 4.8rem; line-height: 1; font-weight: 850; letter-spacing: -.06em; }
.signal-card p { margin: 8px 0 0; color: #d7eafd; }

.floating-proof {
  position: relative;
  left: -25px;
  width: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
}

.floating-proof strong { display: block; margin-bottom: 5px; color: var(--red); }
.floating-proof span { color: var(--ink-soft); font-size: .86rem; }

/* Приём обращений. Форма зовёт /api/appeal — тот же поток, что и
   телеграм-бот, обращения ложатся в общую таблицу appeals. */
.appeal-panel { max-width: 760px; }
.appeal-panel h2 { margin-bottom: 10px; }
.appeal-panel > p { margin-bottom: 20px; color: var(--ink-soft); }

.appeal-form { display: grid; gap: 12px; }

.appeal-form textarea,
.appeal-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  font: inherit;
  resize: vertical;
}

.appeal-form textarea:focus,
.appeal-form input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }

.appeal-form button {
  justify-self: start;
  padding: 13px 24px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--navy);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.appeal-form button:hover { background: var(--blue-deep); }
.appeal-form button[disabled] { opacity: .6; cursor: default; }

.appeal-file {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: .88rem;
}

.appeal-file input { padding: 11px 12px; border: 1px dashed var(--line); border-radius: 12px; background: #fff; font: inherit; }
.appeal-file input::file-selector-button {
  margin-right: 10px;
  padding: 7px 13px;
  border: 0;
  border-radius: 9px;
  color: var(--navy);
  background: var(--sky);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.appeal-telegram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .9rem;
}

.appeal-result { display: none; margin-top: 16px; }
.appeal-result.open { display: block; }

/* Каждая реплика — отдельная строка: сначала «принято», через 10 секунд
   «передано специалисту». */
.appeal-line {
  margin-top: 10px;
  padding: 14px 16px;
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: var(--sky);
}

.appeal-line.error { border-left-color: var(--red); background: #fdeeee; }
.appeal-line.final { border-left-color: #62d39c; }
.appeal-line.seen { border-left-color: var(--navy); background: #f4f8fc; }

.stats-band { padding: 0 0 70px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-soft); }
.stat { padding: 25px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; margin-bottom: 4px; color: var(--navy); font-size: 2rem; line-height: 1.1; letter-spacing: -.04em; }
.stat span { color: var(--ink-soft); font-size: .88rem; }

.section { padding: 72px 0; }
.section.soft { background: var(--surface-soft); }
.section.tight { padding: 50px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2 { max-width: 760px; margin-bottom: 0; color: var(--navy); font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.08; letter-spacing: -.04em; }
.section-head p { max-width: 590px; margin-bottom: 0; color: var(--ink-soft); }
.section-kicker { margin-bottom: 9px; color: var(--blue-deep); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.database-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.database-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(39, 111, 191, .24);
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, .72);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(18, 52, 91, .08);
}
.database-nav a:hover,
.database-nav a:focus-visible { color: #fff; background: var(--blue); }
.database-catalog { background: linear-gradient(180deg, #fff 0%, #f6f9fd 100%); }
.catalog-shell {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
}
.catalog-shell .cards { margin-top: 18px; }
.catalog-note { margin-top: 28px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.case-card, .panel, .video-card, .source-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.case-card { display: flex; min-width: 0; min-height: 320px; flex-direction: column; padding: 23px; }
/* Пагинация каталога скрывает карточки атрибутом hidden — display: flex выше его перебивал. */
.case-card[hidden], .fact-actions[hidden] { display: none !important; }
.case-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; color: #6b7e94; font-size: .78rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; border-radius: 999px; padding: 6px 9px; font-size: .7rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.badge.fake { color: #a42828; background: var(--red-soft); }
.badge.manipulation { color: #8a5c00; background: var(--cream); }
.badge.deepfake { color: #673c98; background: #f2eaff; }
.badge.explainer { color: #166845; background: var(--green-soft); }
.case-card h3 { margin-bottom: 10px; color: var(--navy); font-size: 1.22rem; line-height: 1.25; letter-spacing: -.02em; }
.case-card p { margin-bottom: 16px; color: var(--ink-soft); font-size: .91rem; }
.case-source { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.case-source small { display: block; margin-bottom: 4px; color: #71839a; }
.case-source strong { color: var(--ink); font-size: .9rem; }
.card-link { display: inline-flex; margin-top: 18px; color: var(--blue-deep); text-decoration: none; font-weight: 780; font-size: .88rem; }
.card-link:hover { text-decoration: underline; }

/* Вся карточка кликабельна: ссылка заголовка растянута на карточку. */
.case-card { position: relative; cursor: pointer; }
.case-card-link { color: inherit; text-decoration: none; }
.case-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.case-card-link:focus { outline: none; }
.case-card-link:focus-visible::after { outline: 3px solid rgba(39, 111, 191, .32); outline-offset: 3px; }
/* Страница материала (templates/fact_check_page.html) */
.back-link { display: inline-block; margin-bottom: 22px; color: var(--blue-deep); text-decoration: none; font-weight: 780; font-size: .92rem; }
.back-link:hover { text-decoration: underline; }
.fact-hero .case-meta { justify-content: flex-start; flex-wrap: wrap; }
.fact-body { display: grid; gap: 22px; max-width: 820px; }
.fact-body .case-source { margin-top: 0; }
.fact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 24px; }
.fact-actions .results-count { margin-right: auto; }

/* Лёгкий подъём карточки */
.case-card,
.case-card.reveal.visible {
  transition:
    opacity .5s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.case-card:hover,
.case-card:focus-within,
.case-card.reveal.visible:hover,
.case-card.reveal.visible:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(18, 54, 95, .13);
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { padding: 28px; }
.panel h2, .panel h3 { color: var(--navy); }
.panel p { color: var(--ink-soft); }
.panel.dark { color: #fff; border: 0; background: linear-gradient(145deg, #12365f, #174e83); }
.panel.dark h2, .panel.dark h3 { color: #fff; }
.panel.dark p { color: #d7eafd; }

.source-list { display: grid; gap: 15px; }
.source-row { display: grid; grid-template-columns: minmax(190px, 1fr) 2.4fr 40px; gap: 14px; align-items: center; }
.source-name { color: var(--ink); font-size: .86rem; font-weight: 700; }
.source-track { height: 10px; border-radius: 99px; overflow: hidden; background: var(--sky); }
.source-fill { height: 100%; width: var(--value); border-radius: inherit; background: linear-gradient(90deg, var(--blue), #67a9e7); }
.source-count { color: var(--navy); font-weight: 850; text-align: right; }

.video-feature { display: grid; grid-template-columns: 1.25fr .75fr; overflow: hidden; }
.video-feature video,
.video-feature iframe { width: 100%; height: 100%; min-height: 365px; border: 0; object-fit: cover; background: #061424; }
.video-copy { padding: 34px; color: #fff; background: var(--navy); }
.video-copy h2 { color: #fff; font-size: 2rem; line-height: 1.1; }
.video-copy p { color: #d7eafd; }

/* Фасад YouTube. Плеер плейлиста грузился сразу на четырёх страницах и тянул
   около 500 КБ скриптов ещё до того, как посетитель нажмёт Play. Теперь на его
   месте обложка, а настоящий iframe создаётся по клику (assets/js/site.js).
   Размеры повторяют .video-feature iframe, чтобы вёрстка не поехала. */
.yt-facade {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 365px;
  padding: 0;
  border: 0;
  background: #061424;
  cursor: pointer;
}

.yt-facade:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }

.yt-facade__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .35s ease;
}

.yt-facade__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 20, 36, .72) 0%, transparent 52%);
  pointer-events: none;
}

.yt-facade__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 54px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 3px 12px rgba(0,0,0,.6));
  transition: transform .25s ease;
  pointer-events: none;
}

.yt-facade__hint {
  position: absolute;
  left: 20px;
  bottom: 18px;
  color: rgba(255,255,255,.92);
  font-size: .84rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}

.yt-facade:hover .yt-facade__thumb,
.yt-facade:focus-visible .yt-facade__thumb { transform: scale(1.04); filter: brightness(.6); }
.yt-facade:hover .yt-facade__icon,
.yt-facade:focus-visible .yt-facade__icon { transform: translate(-50%, -50%) scale(1.12); }
.yt-facade:hover .yt-facade__hint,
.yt-facade:focus-visible .yt-facade__hint { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .yt-facade__thumb, .yt-facade__icon, .yt-facade__hint { transition: none; }
  .yt-facade:hover .yt-facade__thumb { transform: none; }
}
.video-facts { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0; }
.video-facts span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #eaf4ff; font-size: .78rem; }

.page-hero { padding: 68px 0 44px; }
.page-hero h1 { max-width: 900px; font-size: clamp(2.5rem, 5vw, 4.4rem); }
.page-hero p { max-width: 720px; color: var(--ink-soft); font-size: 1.08rem; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter-input, .filter-select { min-height: 44px; border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; outline: 0; color: var(--ink); background: #fff; }
.filter-input { min-width: min(100%, 310px); flex: 1; }
.filter-input:focus, .filter-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,112,193,.12); }
.results-count { margin: -10px 0 22px; color: var(--ink-soft); font-size: .88rem; }
.empty-state { display: none; padding: 38px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); text-align: center; }
.empty-state.show { display: block; }

.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 32px 0; }
.role-card { padding: 22px; border-radius: 17px; background: var(--surface-soft); }
.role-number { display: grid; width: 34px; height: 34px; place-items: center; margin-bottom: 14px; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 850; }
.role-card h3 { margin-bottom: 7px; color: var(--navy); font-size: 1rem; }
.role-card p { margin-bottom: 0; color: var(--ink-soft); font-size: .88rem; }

.distributor-list { display: grid; gap: 14px; }
.distributor { display: grid; grid-template-columns: 1.1fr 2fr auto; gap: 18px; align-items: start; padding: 19px 0; border-bottom: 1px solid var(--line); }
.distributor:last-child { border-bottom: 0; }
.distributor strong { color: var(--navy); }
.distributor p { margin-bottom: 0; color: var(--ink-soft); font-size: .9rem; }

.notice { display: flex; gap: 13px; padding: 18px; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; color: #704f0e; background: var(--cream); }
.notice.danger { border-left-color: var(--red); color: #7a3030; background: var(--red-soft); }
.notice strong { flex: 0 0 auto; }

.chart-image { width: 100%; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.chart-caption { margin: 10px 0 0; color: #71839a; font-size: .8rem; text-align: center; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.metric-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.metric-card strong { display: block; margin-bottom: 5px; color: var(--navy); font-size: 2.3rem; line-height: 1; letter-spacing: -.04em; }
.metric-card span { color: var(--ink-soft); font-size: .88rem; }

.topic-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.topic { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.topic strong { display: block; margin-bottom: 5px; color: var(--navy); }
.topic span { color: var(--ink-soft); font-size: .88rem; }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-card { overflow: hidden; width: 100%; padding: 0; border: 1px solid var(--line); color: inherit; text-align: left; font: inherit; cursor: pointer; appearance: none; }
.video-card:focus-visible { outline: 3px solid rgba(31,112,193,.35); outline-offset: 3px; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #dce8f4; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.video-card:hover .video-thumb img { transform: scale(1.035); }
.play-mark { position: absolute; left: 16px; bottom: 14px; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: var(--navy); background: rgba(255,255,255,.93); font-size: .95rem; }
.video-body { padding: 18px; }
.video-body h3 { margin-bottom: 7px; color: var(--navy); font-size: 1rem; line-height: 1.3; }
.video-body p { margin-bottom: 0; color: var(--ink-soft); font-size: .86rem; }
.platform { display: inline-flex; margin-bottom: 10px; color: var(--blue-deep); font-size: .7rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }

body.modal-open { overflow: hidden; }
/* Плавающая кнопка «Сообщить о фейке».
   Секция обращений живёт в самом низу главной, и до неё не долистывают.
   Кнопка висит в углу на всех страницах и ведёт либо к форме, либо в бота.
   z-index ниже шапки (100) и модального окна видео (1000). */
.report-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.report-fab[hidden] { display: none; }
body.modal-open .report-fab { display: none; }

.report-fab__toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 19px;
  border: 0;
  border-radius: 99px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 12px 32px rgba(11, 33, 58, .32);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.report-fab__toggle:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(11, 33, 58, .4); }
.report-fab__toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.report-fab__mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: #fff;
  font-size: .85rem;
  font-weight: 850;
}

.report-fab__panel {
  position: relative;
  display: grid;
  gap: 9px;
  width: min(86vw, 300px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.report-fab__panel[hidden] { display: none; }
.report-fab__panel p { margin: 0 26px 4px 0; color: var(--ink-soft); font-size: .89rem; }
.report-fab__panel .button { justify-content: center; text-align: center; }

.report-fab__close {
  position: absolute;
  top: 8px;
  right: 9px;
  border: 0;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.report-fab__close:hover { background: var(--sky); }

@media (max-width: 700px) {
  .report-fab { right: 12px; bottom: 12px; left: 12px; align-items: stretch; }
  .report-fab__toggle { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .report-fab__toggle { transition: none; }
  .report-fab__toggle:hover { transform: none; }
}

.video-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
.video-modal[hidden] { display: none; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(4,18,34,.82); backdrop-filter: blur(7px); }
.video-modal-dialog { position: relative; width: min(980px, 100%); overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.4); }
.video-modal-close { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: #fff; background: rgba(4,18,34,.75); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.video-modal-close:hover { background: var(--blue-deep); }
.video-modal-frame { aspect-ratio: 16 / 9; background: #061424; }
.video-modal-frame iframe { width: 100%; height: 100%; border: 0; }
.video-modal-info { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; }
.video-modal-info h2 { margin: 0; color: var(--navy); font-size: clamp(1.05rem, 2.2vw, 1.45rem); line-height: 1.25; }
.video-modal-info .button { flex: 0 0 auto; }

.contact-sheet { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.contact-sheet img { width: 100%; }

.method-list { counter-reset: method; display: grid; gap: 18px; padding: 0; list-style: none; }
.method-list li { counter-increment: method; position: relative; min-height: 46px; padding-left: 62px; color: var(--ink-soft); }
.method-list li::before { content: counter(method, decimal-leading-zero); position: absolute; left: 0; top: -4px; color: var(--blue); font-weight: 850; font-size: 1.35rem; }
.method-list strong { display: block; margin-bottom: 4px; color: var(--navy); }

.cta { padding: 0 0 72px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 38px 42px; border-radius: 24px; color: #fff; background: linear-gradient(120deg, #12365f, #1f70c1); box-shadow: var(--shadow); }
.cta-inner h2 { margin-bottom: 8px; color: #fff; font-size: 2rem; }
.cta-inner p { margin-bottom: 0; color: #dceeff; }
.cta .button { color: var(--navy); background: #fff; white-space: nowrap; }

.site-footer { margin-top: auto; color: #cfe2f6; background: #0d2948; }
.footer-main { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 60px; padding: 52px 0 38px; }
.footer-main h3 { margin-bottom: 13px; color: #fff; font-size: 1rem; }
.footer-main p { max-width: 390px; color: #a9c3dd; font-size: .88rem; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { width: fit-content; color: #cfe2f6; text-decoration: none; font-size: .88rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0 24px; border-top: 1px solid rgba(255,255,255,.1); color: #8faeca; font-size: .78rem; }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .menu-toggle { display: grid; place-items: center; }
  .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: 68px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.open { display: grid; }
  .hero-grid, .video-feature { grid-template-columns: 1fr; }
  .hero-visual { min-height: 345px; max-width: 500px; width: 100%; margin: 0 auto; }
  .hero { padding-top: 58px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .site-header .brand-name { font-size: .95rem; }
  .brand-sub { font-size: .6rem; max-width: 170px; }
  .language-switch { gap: 5px; }
  .language-switch a { font-size: .75rem; }
  .lang-switch { display: none; }
  .hero { padding: 46px 0 38px; }
  h1 { font-size: 2.75rem; }
  .search-form { flex-direction: column; }
  .search-form button { min-height: 48px; }
  .hero-visual { min-height: 310px; }
  .signal-card { width: 100%; }
  .floating-proof { left: 0; }
  .signal-number { font-size: 4rem; }
  .stats-grid, .cards, .split, .role-grid, .metric-grid, .topic-list, .video-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .section { padding: 52px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .case-card { min-height: auto; }
  .source-row { grid-template-columns: minmax(140px, 1fr) 1.3fr 32px; }
  .distributor { grid-template-columns: 1fr; gap: 7px; }
  .video-feature video,
  .video-feature iframe,
  .video-feature .yt-facade { min-height: 230px; aspect-ratio: 16 / 9; }
  .video-copy { padding: 25px; }
  .appeal-form button { justify-self: stretch; min-height: 48px; }
  .video-modal { padding: 10px; }
  .video-modal-dialog { border-radius: 14px; }
  .video-modal-info { align-items: flex-start; flex-direction: column; padding: 16px; }
  .cta-inner { align-items: flex-start; flex-direction: column; padding: 28px; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .footer-main > :first-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}
/* 30.10.2026: водяной знак — картинка-фон (assets/images/watermark.svg), текста в страницах нет */
.test-watermarks {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: url("../images/watermark.svg") repeat center / 480px 170px;
}

.test-watermarks span { display: none; }

@media (max-width: 700px) {
  .test-watermarks { background-size: 340px 120px; }
}


/* Main cases heading keeps the section scale. */
.cases-heading { font-size: 32px; line-height: 1.2; margin: 0; letter-spacing: 0; }
@media (max-width: 700px) { .cases-heading { font-size: 26px; } }

.cms-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #17242c; }

/* Живой график «Материалы базы по месяцам» (30.09.2026) */
.monthly-chart { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 18px 16px 12px; }
.monthly-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.mc-grid { stroke: var(--line); stroke-width: 1; }
.mc-axis { stroke: #b9c7d6; stroke-width: 1; }
.mc-ytick, .mc-xtick { fill: #71839a; font-size: 12px; }
.mc-xyear { fill: #9aa8b8; font-size: 11px; }
.mc-value { fill: var(--ink); font-size: 13px; font-weight: 700; }
.mc-bar { fill: var(--blue); pointer-events: none; transition: fill .15s ease; }
.mc-hit { fill: transparent; cursor: pointer; outline: none; }
.mc-hit.active { fill: rgba(31, 112, 193, .07); }
.mc-hit:focus-visible { stroke: var(--blue-deep); stroke-width: 2; }
.mc-tip { position: absolute; z-index: 2; transform: translate(-50%, -100%); pointer-events: none; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; white-space: nowrap; box-shadow: var(--shadow-soft); }
.mc-tip[hidden] { display: none; }
.mc-table { margin-top: 10px; font-size: .9rem; }
.mc-table summary { cursor: pointer; color: var(--blue-deep); font-weight: 600; }
.mc-table table { width: 100%; max-width: 420px; margin-top: 8px; border-collapse: collapse; }
.mc-table th, .mc-table td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.mc-table td:last-child, .mc-table th:last-child { text-align: right; }
.monthly-chart__empty { margin: 30px 0; color: #71839a; text-align: center; }

/* Плотная «База фейков»: только страница analytics.html (30.09.2026) */
body[data-page="analytics"] .hero { padding: 40px 0 24px; }
body[data-page="analytics"] .hero-grid { grid-template-columns: 1fr; gap: 0; }
body[data-page="analytics"] .hero h1 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3rem); }
body[data-page="analytics"] .hero .lead { max-width: 820px; margin-bottom: 0; font-size: 1rem; }
body[data-page="analytics"] .database-nav { margin-top: 16px; }
body[data-page="analytics"] .stats-band { padding: 0 0 20px; }
body[data-page="analytics"] .stat { padding: 14px 20px; }
body[data-page="analytics"] .stat strong { font-size: 1.6rem; }
body[data-page="analytics"] .section { padding: 36px 0; }
body[data-page="analytics"] .section.tight { padding: 20px 0; }
body[data-page="analytics"] .section-head { margin-bottom: 18px; }
body[data-page="analytics"] .section-head h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
body[data-page="analytics"] .section-head p { font-size: .92rem; }
body[data-page="analytics"] .section-kicker { margin-bottom: 6px; }
body[data-page="analytics"] .toolbar { margin-bottom: 14px; }
body[data-page="analytics"] .cards { gap: 14px; }
body[data-page="analytics"] .case-card { min-height: 0; padding: 18px; }
body[data-page="analytics"] .case-card h3 { font-size: 1.05rem; }
body[data-page="analytics"] .case-card p { margin-bottom: 10px; font-size: .86rem; }
body[data-page="analytics"] .catalog-note { margin-top: 16px; }
body[data-page="analytics"] .metric-card { padding: 14px 18px; }
body[data-page="analytics"] .metric-card strong { font-size: 1.8rem; }
body[data-page="analytics"] .topic-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
body[data-page="analytics"] .topic { padding: 12px 14px; }
body[data-page="analytics"] .role-grid { gap: 12px; margin: 0; }
body[data-page="analytics"] .role-card { padding: 14px 16px; }
body[data-page="analytics"] .role-number { width: 28px; height: 28px; margin-bottom: 8px; }
body[data-page="analytics"] .source-list { gap: 8px; }
body[data-page="analytics"] [data-source-cards] { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
body[data-page="analytics"] .source-card { padding: 14px 16px; }
body[data-page="analytics"] .source-card h3 { margin-bottom: 6px; font-size: .98rem; }
body[data-page="analytics"] .source-card p { margin-bottom: 0; font-size: .82rem; }
body[data-page="analytics"] .distributor { gap: 12px; padding: 11px 0; }
body[data-page="analytics"] .panel { padding: 20px 22px; }
body[data-page="analytics"] .method-list { gap: 10px; }
body[data-page="analytics"] .monthly-chart { padding: 12px 14px 10px; }
@media (max-width: 980px) {
  body[data-page="analytics"] .topic-list,
  body[data-page="analytics"] [data-source-cards] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  body[data-page="analytics"] .topic-list,
  body[data-page="analytics"] [data-source-cards] { grid-template-columns: 1fr; }
  body[data-page="analytics"] .section { padding: 26px 0; }
}

/* Всплывающая форма «Сообщить о фейке» (30.09.2026) */
.report-fab__panel--form { order: -1; width: min(420px, calc(100vw - 32px)); max-height: min(78vh, 680px); overflow-y: auto; padding: 20px 20px 16px; }
.report-fab__title { margin: 0 34px 6px 0; color: var(--navy); font-size: 1.2rem; line-height: 1.25; }
.report-fab__panel--form .report-fab__intro { margin: 0 0 12px; color: var(--ink-soft); font-size: .88rem; }
.report-fab__panel--form .appeal-form { gap: 9px; }
.report-fab__panel--form .appeal-form textarea, .report-fab__panel--form .appeal-form input { font-size: .92rem; }
.report-fab__panel--form .appeal-result { margin-top: 10px; }
.report-fab__panel--form .report-fab__note { margin: 12px 0 6px; color: #71839a; font-size: .78rem; }
.report-fab__bot { color: var(--blue-deep); font-size: .86rem; font-weight: 700; text-decoration: none; }
.report-fab__bot:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .report-fab__panel--form { position: fixed; left: 12px; right: 12px; bottom: 76px; width: auto; max-height: calc(100vh - 110px); }
}

/* Главная: три блока карточек (30.09.2026) */
.badge.insufficient { color: #165a9a; background: var(--sky); }
.home-block + .home-block { padding-top: 0; }
.home-empty { grid-column: 1 / -1; margin: 0; padding: 22px; border: 1px dashed var(--line); border-radius: 14px; color: #71839a; text-align: center; background: #fff; }

/* Плотная главная (30.09.2026) */
body[data-page="home"] .hero.hero-home { padding: 36px 0 28px; }
body[data-page="home"] .hero-home .eyebrow { margin-bottom: 10px; }
body[data-page="home"] .hero-home h1 { margin-bottom: 12px; font-size: 52px; }
body[data-page="home"] .hero-home .lead { max-width: 820px; margin-bottom: 16px; font-size: 1.02rem; }
body[data-page="home"] .check-tabs { margin-bottom: 12px; }
body[data-page="home"] .home-block { padding: 34px 0; }
body[data-page="home"] .home-block + .home-block { padding-top: 0; }
body[data-page="home"] .home-block .section-head { margin-bottom: 18px; }
body[data-page="home"] .home-block .cases-heading { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
body[data-page="home"] .home-block .case-card { min-height: 0; }
@media (max-width: 700px) {
  body[data-page="home"] .hero.hero-home { padding: 20px 0 18px; }
  body[data-page="home"] .hero-home h1 { font-size: 34px; }
  body[data-page="home"] .home-block { padding: 24px 0; }
}
.home-block[hidden] { display: none !important; }
/* Полоски рейтинга были строчными элементами и не рисовались (30.09.2026) */
.source-track, .source-fill { display: block; }

/* Страница «О нас» */
.about-list { display: grid; gap: 10px; margin: 0; padding-left: 1.25em; color: var(--ink-soft); }
.about-list li::marker { color: var(--blue); }
.about-body .panel > :last-child { margin-bottom: 0; }

/* Теги блока «Популярное за месяц» на главной */
.popular-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.popular-tags[hidden] { display: none; }
.popular-tags button { min-height: 38px; border: 1px solid rgba(39, 111, 191, .24); border-radius: 999px; padding: 7px 15px; color: var(--blue-deep); background: #fff; font: inherit; font-size: .88rem; font-weight: 800; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.popular-tags button:hover, .popular-tags button.active { border-color: var(--blue); color: #fff; background: var(--blue); }
.popular-tags button:focus-visible { outline: 3px solid var(--sky-strong); outline-offset: 2px; }

/* Собственное видео Центра над блоком YouTube (страница «Видео»): играет прямо на странице. */
.video-local { max-width: 880px; margin: 0 auto 28px; padding: 0; overflow: hidden; }
.video-local video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #061424; }
/* На странице «Видео» отступ между вводным текстом и первым блоком вдвое меньше обычного. */
body[data-page="videos"] .page-hero { padding-bottom: 18px; }
body[data-page="videos"] .page-hero + .section.tight { padding-top: 20px; }
