p {
  text-align: justify;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
p {
  margin-bottom: 5px;
}
li > p {
  margin-bottom: 3px;
}
/* Military Briefing Markdown Style */
/* Стили для плиток в header */
.tile {
  transition: all 0.2s ease-in-out;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.markdown-body {
  background-color: #f4f4f4;
  color: #1a1a1a;
  font-family: "Comic Sans MS", Roboto, monospace;
  line-height: 1.4;
  padding: 20px;
  border: 1px solid #ccc;
  overflow-x: hidden;
  /* Заголовки: Капсом, жирные, с подчеркиванием */
  /* Текст и абзацы */
  /* Списки: Строгая нумерация */
  /* Цитаты: Оформлены как "Особые распоряжения" */
  /* Таблицы: Максимально аскетичные */
  /* Инлайновый код (как штампы или серийные номера) */
  /* Горизонтальная черта */
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  text-transform: uppercase;
  border-bottom: 2px solid #333;
  margin-top: 1.5em;
  font-weight: bold;
  color: #4b5320;
}
.markdown-body h1 {
  font-size: 1.6em;
  text-align: center;
  border-bottom: 4px double #333;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.markdown-body h2 {
  font-size: 1.3em;
}
.markdown-body h3 {
  font-size: 1.1em;
  border-bottom: 1px solid #333;
}
.markdown-body h4 {
  font-size: 1em;
}
.markdown-body p {
  margin-bottom: 1em;
}
.markdown-body ul,
.markdown-body ol {
  padding-left: 2em;
}
.markdown-body ul li,
.markdown-body ol li {
  margin-bottom: 0.5em;
}
.markdown-body blockquote {
  border-left: 5px solid #4b5320;
  background: rgba(75, 83, 32, 0.1);
  padding: 10px 10px;
  font-style: normal;
  margin-bottom: 0.5rem;
}
.markdown-body blockquote p {
  margin: 0px;
}
.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.markdown-body table th,
.markdown-body table td {
  border: 1px solid #333;
  padding: 8px;
  text-align: left;
}
.markdown-body table th {
  background-color: #4b5320;
  color: white;
  text-transform: uppercase;
}
.markdown-body code {
  background: #e0e0e0;
  padding: 2px 4px;
  border: 1px solid #bbb;
  border-radius: 0;
  font-weight: bold;
}
.markdown-body hr {
  border: none;
  border-top: 3px double #333;
  margin: 30px 0;
}
footer {
  margin-top: auto;
  margin-bottom: 0;
  position: sticky;
  bottom: 0;
  z-index: 1000;
  background-color: #4b5320 !important;
  border-top: 4px double #333;
}
footer div.footer {
  color: white;
  text-transform: uppercase;
  font-weight: bold;
}
/* Стили для печати */
@media print {
  /* Скрыть ненужные элементы при печати */
  footer,
  .site-footer,
  .navbar,
  .sidebar,
  .advertisement,
  .no-print {
    display: none !important;
  }
  /* Показать только нужную область */
  .print-only {
    display: block !important;
  }
  /* Убрать фоны и тени */
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  .print-margins-0 {
    margin-left: 0px;
    margin-right: 0px;
    max-width: none !important;
  }
  .print-signatures p {
    margin-bottom: 18px;
    text-indent: 0.5rem;
  }
}
@page {
  @bottom-center {
    content: "Страница " counter(page) " из " counter(pages);
    font-size: 10pt;
    font-family: Arial;
    color: green;
  }
}
#consent .consent-notice {
  background: linear-gradient(135deg, #fff9e8 0%, #fff1d6 100%);
  border-left: 6px solid #b8860b;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
}
#consent .consent-notice h3 {
  color: #8b5a2b;
  font-weight: 700;
  letter-spacing: -0.3px;
}
#consent .btn-feedback {
  background-color: #4b5320;
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
#consent .btn-feedback:hover {
  background-color: #2c3012;
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: white;
}
#consent .consent-icon {
  font-size: 2.8rem;
  color: #b8860b;
  display: inline-block;
}
#consent .legal-badge {
  font-size: 0.8rem;
  background: #e9ecef;
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  color: #495057;
}
#consent .bi-exclamation-triangle-fill {
  color: #b8860b;
  margin-right: 0.5rem;
}
img.todo {
  width: 100%;
  height: auto;
  mask-image: linear-gradient(to right, transparent 0%, rgba(238, 238, 238, 0.3) 10%, #eeeeee 20%, #eeeeee 80%, rgba(238, 238, 238, 0.3) 90%, transparent 100%);
  mask-mode: alpha;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(238, 238, 238, 0.3) 10%, #eeeeee 20%, #eeeeee 80%, rgba(238, 238, 238, 0.3) 90%, transparent 100%);
  -webkit-mask-mode: alpha;
}
