/* Стиль для юр-документов «Фортуна удачи».
   Цветовая палитра: только чёрно-белая (оттенки серого).
   Шрифт: Times New Roman — классика для официальных документов. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Times New Roman", "Liberation Serif", "Nimbus Roman", serif;
  background: #ffffff;
  color: #000000;
  line-height: 1.4;
  font-size: 12px;
  font-feature-settings: "liga", "kern";
  text-rendering: optimizeLegibility;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 50px;
}

/* Шапка — без градиентов, простая чёрная линия снизу */
header.doc-header {
  background: #ffffff;
  color: #000000;
  padding: 18px 24px 14px;
  text-align: center;
  border-bottom: 2px solid #000000;
}
header.doc-header .brand {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #555555;
  margin-bottom: 4px;
  font-family: "Times New Roman", serif;
}
header.doc-header h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  font-family: "Times New Roman", serif;
}
header.doc-header .subtitle {
  margin-top: 3px;
  font-size: 11px;
  color: #333333;
  font-style: italic;
}

h2 {
  font-size: 12.5px;
  font-weight: 700;
  margin: 18px 0 6px;
  color: #000000;
  border: none;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
}
h3 {
  font-size: 12px;
  font-weight: 700;
  margin: 12px 0 4px;
  font-style: italic;
}

p, li {
  font-size: 12px;
  margin: 4px 0;
}

ol, ul { padding-left: 22px; margin: 4px 0 8px; }
li { margin-bottom: 2px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 14px;
  font-size: 11px;
}
th, td {
  border: 1px solid #999999;
  padding: 4px 7px;
  text-align: left;
  vertical-align: top;
}
th {
  background: #ffffff;
  font-weight: 700;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
}

/* Все типы блоков-вставок — одинаковая серая рамка, без цвета */
.callout, .callout.warn, .callout.ok {
  background: #ffffff;
  border: 1px solid #999999;
  border-left: 3px solid #555555;
  padding: 6px 10px;
  margin: 10px 0;
  border-radius: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #333333;
  font-style: italic;
}

.small { font-size: 10.5px; color: #555555; }

footer.doc-footer {
  margin-top: 28px;
  padding-top: 10px;
  border-top: 1px solid #999999;
  font-size: 10.5px;
  color: #444444;
  line-height: 1.45;
}

/* Placeholder — без цветной подсветки. Жирный курсив в квадратных скобках. */
.placeholder {
  background: none;
  padding: 0;
  border-radius: 0;
  color: #000000;
  font-family: "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  text-decoration: underline;
  text-decoration-style: dotted;
}
.placeholder::before { content: "["; font-weight: 700; }
.placeholder::after  { content: "]"; font-weight: 700; }

code {
  background: #f5f5f5;
  padding: 1px 4px;
  border-radius: 0;
  font-size: 11px;
  font-family: "Courier New", monospace;
  color: #000000;
}

a { color: #000000; text-decoration: underline; }
a:hover { text-decoration: none; }
a:visited { color: #000000; }

/* Cookie-уведомление (фиксировано внизу экрана). Тема — под юр-документы (ч/б). */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #ffffff;
  border-top: 2px solid #000000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}
.cookie-banner__text {
  margin: 0;
  max-width: 760px;
  font-size: 11px;
  line-height: 1.4;
  color: #222222;
}
.cookie-banner__text a { color: #000000; text-decoration: underline; }
.cookie-banner__btn {
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 20px;
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  border-radius: 0;
  cursor: pointer;
}
.cookie-banner__btn:hover { background: #ffffff; color: #000000; }

/* Печать — ещё компактнее, серые рамки в чёрные */
@media print {
  .cookie-banner { display: none !important; }
  body { font-size: 10.5px; line-height: 1.35; background: #ffffff; }
  header.doc-header { background: #ffffff !important; color: #000000 !important; border-bottom: 2px solid #000; padding: 12px 0; }
  main { padding: 8px 24px; max-width: none; }
  h2 { page-break-after: avoid; }
  .callout, table { page-break-inside: avoid; border-color: #000 !important; }
  th, td { border-color: #000 !important; }
  a { color: #000; text-decoration: none; }
  .placeholder { color: #000; }
}
