:root {
  --ink: #10222b;
  --muted: #4a5c66;
  --accent: #1f6feb;
  --card-bg: #ffffff;
  --page-bg: #f2f4f6;
  --divider: #e3e8ec;
  --radius: 12px;                                /* единый радиус всех блоков */
  --shadow: 0 2px 12px rgba(16, 34, 43, .14);   /* единая тень всех блоков */
  --block-gap: 24px;                             /* единый отступ между блоками */
}

/* ============================================================
   Ссылки на документы (кнопки-чипы с бейджем формата)
   Внутренние элементы аккордеона — не самостоятельные блоки,
   поэтому оформлены компактнее и не участвуют в общем стиле карточек.
   ============================================================ */
a[href$=".pdf"],
a[href$=".doc"], a[href$=".docx"],
a[href$=".xls"], a[href$=".xlsx"],
a[href$=".ppt"], a[href$=".pptx"],
a[href$=".odt"], a[href$=".ods"], a[href$=".odp"],
a[href$=".rtf"],
a[href$=".zip"], a[href$=".rar"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 4px 0;
  background: #f8f9fb;
  border: 1px solid #e3e6eb;
  border-radius: 10px;
  color: #1a5fb4;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

/* Убираем подчёркивание внутри span */
a[href$=".pdf"] span,
a[href$=".doc"] span, a[href$=".docx"] span,
a[href$=".xls"] span, a[href$=".xlsx"] span,
a[href$=".ppt"] span, a[href$=".pptx"] span,
a[href$=".odt"] span, a[href$=".ods"] span, a[href$=".odp"] span,
a[href$=".rtf"] span,
a[href$=".zip"] span, a[href$=".rar"] span {
  text-decoration: none !important;
  color: inherit;
}

/* Бейджи с расширением */
a[href$=".pdf"]::before  { content: "PDF"; }
a[href$=".doc"]::before,
a[href$=".docx"]::before { content: "DOC"; }
a[href$=".xls"]::before,
a[href$=".xlsx"]::before { content: "XLS"; }
a[href$=".ppt"]::before,
a[href$=".pptx"]::before { content: "PPT"; }
a[href$=".odt"]::before  { content: "ODT"; }
a[href$=".ods"]::before  { content: "ODS"; }
a[href$=".odp"]::before  { content: "ODP"; }
a[href$=".rtf"]::before  { content: "RTF"; }
a[href$=".zip"]::before  { content: "ZIP"; }
a[href$=".rar"]::before  { content: "RAR"; }

/* Общее оформление бейджа */
a[href$=".pdf"]::before,
a[href$=".doc"]::before, a[href$=".docx"]::before,
a[href$=".xls"]::before, a[href$=".xlsx"]::before,
a[href$=".ppt"]::before, a[href$=".pptx"]::before,
a[href$=".odt"]::before, a[href$=".ods"]::before, a[href$=".odp"]::before,
a[href$=".rtf"]::before,
a[href$=".zip"]::before, a[href$=".rar"]::before {
  flex-shrink: 0;
  min-width: 42px;
  text-align: center;
  padding: 4px 6px;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Палитра по типам файлов */
a[href$=".pdf"]::before { background: #115692; }
a[href$=".odt"]::before { background: #115692; }
a[href$=".rtf"]::before { background: #1e64c8; }
a[href$=".doc"]::before, a[href$=".docx"]::before { background: #1e64c8; }
a[href$=".xls"]::before, a[href$=".xlsx"]::before,
a[href$=".ods"]::before { background: #1e8e3e; }
a[href$=".ppt"]::before, a[href$=".pptx"]::before,
a[href$=".odp"]::before { background: #d93025; }
a[href$=".zip"]::before, a[href$=".rar"]::before  { background: #5f6368; }

/* Наведение и фокус */
a[href$=".pdf"]:hover, a[href$=".pdf"]:focus-visible,
a[href$=".doc"]:hover, a[href$=".docx"]:hover,
a[href$=".xls"]:hover, a[href$=".xlsx"]:hover,
a[href$=".ppt"]:hover, a[href$=".pptx"]:hover,
a[href$=".odt"]:hover, a[href$=".ods"]:hover, a[href$=".odp"]:hover,
a[href$=".rtf"]:hover,
a[href$=".zip"]:hover, a[href$=".rar"]:hover {
  background: #eef3fb;
  border-color: #1a5fb4;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(26, 95, 180, 0.15);
}

/* Подпись «скачать файл» */
a[href$=".pdf"]::after, a[href$=".docx"]::after,
a[href$=".xlsx"]::after, a[href$=".pptx"]::after,
a[href$=".odt"]::after, a[href$=".ods"]::after, a[href$=".odp"]::after,
a[href$=".rtf"]::after,
a[href$=".zip"]::after {
  content: "";
  margin-left: auto;
  font-size: 13px;
  font-weight: 400;
  color: #5f6368;
}

/* ============================================================
   Блок-ссылка
   ============================================================ */
.link-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #eaf3fd;               /* светло-голубая подложка */
  border: 1px solid #d3e5f8;
  border-radius: var(--radius);
  text-decoration: none;             /* без подчёркивания */
  color: #1a5fb4;                    /* «ссылочный» синий */
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
  margin-bottom: 20px;
}

.link-block:hover {
  background: #ddebfd;
  border-color: #b7d6f5;
  box-shadow: 0 2px 6px rgba(26, 95, 180, .12);
}

.link-block:focus-visible {
  outline: 2px solid #1a5fb4;
  outline-offset: 2px;
}

.link-block:active {
  background: #d0e6fb;
}

.link-block__title {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

/* Иконка «внешняя ссылка»: стрелка из квадрата */
.link-block__icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: #1a5fb4;                    /* красится вместе с текстом */
}

.link-block__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}