/* Печать — дело «Убийство на перевале» */
@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=Marck+Script&display=swap");

@page {
  size: A4;
  margin: 14mm 16mm 16mm 16mm;
}

* { box-sizing: border-box; }

html { background: #e8e4dc; }

body.doc {
  margin: 0 auto;
  max-width: 210mm;
  min-height: 297mm;
  padding: 16mm 15mm 14mm;
  background: #f7f3ea;
  color: #1a1a1a;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 12pt;
  line-height: 1.42;
  border: 1px solid #c8c0b0;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}

.agency {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid #2f3a2a;
  padding-bottom: 8px;
  margin-bottom: 10px;
  font-size: 10pt;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.agency .left strong { display: block; font-size: 11.5pt; letter-spacing: .06em; }
.agency .right { text-align: right; color: #444; }

.case-line {
  font-size: 10pt;
  color: #333;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #c8c0b0;
}

h1 {
  font-size: 15pt;
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

h2 {
  font-size: 12pt;
  margin: 16px 0 8px;
  border-bottom: 1px solid #b8b0a0;
  padding-bottom: 3px;
}

p { margin: 0 0 10px; }

.meta, .muted { color: #555; font-size: 10.5pt; }
.stamp {
  display: inline-block;
  border: 2px solid #8a2a2a;
  color: #8a2a2a;
  padding: 2px 8px;
  font-size: 10pt;
  text-transform: uppercase;
  letter-spacing: .08em;
  transform: rotate(-4deg);
  margin: 6px 0 12px;
}

/* Авторские плашки: алиби/сдвиг vs ложный ход */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 9.5pt;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  vertical-align: middle;
  margin: 0 4px 0 0;
}
.pill-ok {
  background: #c8e6c9;
  color: #1b5e20;
  border: 1px solid #81c784;
}
.pill-bad {
  background: #ffcdd2;
  color: #b71c1c;
  border: 1px solid #e57373;
}
.pills {
  margin: 0 0 12px;
}
.box {
  border: 1px solid #8a8070;
  background: #efe9dc;
  padding: 10px 12px;
  margin: 12px 0;
}
.note {
  border-left: 3px solid #5a6a4a;
  padding: 6px 10px;
  margin: 12px 0;
  background: #f0ebe0;
  font-size: 10.5pt;
}
table.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5pt;
  margin: 10px 0 14px;
}
table.grid th, table.grid td {
  border: 1px solid #a09888;
  padding: 5px 7px;
  text-align: left;
  vertical-align: top;
}
table.grid th { background: #e4ddd0; }
table.grid td.photo { width: 48px; text-align: center; vertical-align: middle; }
table.grid img.thumb {
  width: 40px;
  height: 54px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid #a09888;
  background: #f7f3ea;
  display: block;
  margin: 0 auto;
}
.sig {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 10.5pt;
}
.sig .line { border-top: 1px solid #333; margin-top: 28px; padding-top: 4px; min-width: 40%; }
.footer-id {
  margin-top: 24px;
  font-size: 9pt;
  color: #666;
  border-top: 1px dashed #b0a890;
  padding-top: 6px;
}
.ticket {
  border: 2px dashed #555;
  padding: 14px 16px;
  background: #fffdf6;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11pt;
}
.receipt {
  max-width: 92mm;
  margin: 0 auto;
  border: 1px solid #333;
  padding: 12px 14px;
  background: #fff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10.5pt;
  line-height: 1.35;
}
.center { text-align: center; }

/* Рукописное письмо (B01) */
.hand-letter {
  margin: 14px 0 8px;
  padding: 22px 26px 28px;
  background:
    linear-gradient(180deg, rgba(255,252,245,.9), rgba(247,240,228,.95)),
    repeating-linear-gradient(
      transparent,
      transparent 27px,
      rgba(160, 180, 200, .28) 28px
    );
  background-size: auto, 100% 28px;
  border: 1px solid #c8bba8;
  box-shadow: 1px 2px 0 #ddd6c8 inset;
  font-family: "Caveat", "Marck Script", "Segoe Script", "Comic Sans MS", cursive;
  font-size: 18pt;
  line-height: 1.55;
  color: #1a2740;
}
.hand-letter p { margin: 0 0 14px; }
.hand-letter b { font-weight: 700; color: #12203a; }
.hand-letter ol {
  margin: 0 0 16px 1.2em;
  padding: 0;
}
.hand-letter li { margin: 0 0 8px; }
.hand-letter .hand-date {
  text-align: right;
  font-size: 16pt;
  color: #3a4560;
  margin-bottom: 18px;
}
.hand-letter .hand-sig {
  margin-top: 22px;
  margin-bottom: 0;
  line-height: 1.4;
}
.hand-letter .muted {
  font-size: 15pt;
  color: #4a5568;
}

/* Официальное постановление (B02) */
.decree {
  position: relative;
  margin: 8px 0 4px;
  padding: 18px 20px 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.55) 0%, transparent 40%),
    repeating-linear-gradient(
      0deg,
      #faf8f2,
      #faf8f2 1px,
      #f6f3ea 2px
    );
  border: 1px solid #9a9080;
  box-shadow: inset 0 0 40px rgba(80, 70, 50, .06);
  overflow: hidden;
}
.decree-stamp-copy {
  position: absolute;
  top: 88px;
  right: 28px;
  z-index: 2;
  border: 3px solid #8a2a2a;
  color: #8a2a2a;
  padding: 6px 14px;
  font: 700 14pt "Segoe UI", Arial, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  transform: rotate(-12deg);
  opacity: .82;
  background: rgba(255, 248, 245, .35);
  pointer-events: none;
}
.decree-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 2px solid #2f3a2a;
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.decree-org {
  font-size: 10pt;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .03em;
  max-width: 58%;
}
.decree-org .muted {
  text-transform: none;
  letter-spacing: 0;
  font-size: 9.5pt;
}
.decree-case {
  text-align: right;
  border: 1px solid #2f3a2a;
  padding: 8px 12px;
  min-width: 150px;
  background: #fff;
}
.decree-case-label {
  font-size: 8.5pt;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #555;
}
.decree-case-no {
  font: 700 13pt "Segoe UI", Arial, sans-serif;
  letter-spacing: .04em;
  margin: 2px 0 4px;
}
.decree-case-meta {
  font-size: 9pt;
  color: #555;
  line-height: 1.3;
}
.decree-date-row {
  display: flex;
  justify-content: space-between;
  font-size: 10.5pt;
  margin: 0 0 14px;
  color: #333;
}
.decree-title {
  text-align: center;
  border: none;
  margin: 0 0 14px;
  font-size: 14pt;
  letter-spacing: .06em;
  line-height: 1.25;
}
.decree-title span {
  display: block;
  font-size: 11.5pt;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  margin-top: 4px;
}
.decree-lead { margin: 0 0 10px; text-align: justify; }
.decree-sec {
  margin: 14px 0 8px;
  font-size: 11.5pt;
  letter-spacing: .08em;
  text-align: center;
  border: none;
}
.decree-ol {
  margin: 0 0 10px 1.15em;
  padding: 0;
}
.decree-ol li { margin: 0 0 8px; text-align: justify; }
.decree-sign-block {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-top: 22px;
  padding-top: 8px;
}
.decree-sign-left {
  font-size: 10.5pt;
  line-height: 1.35;
  position: relative;
  min-width: 42%;
}
.decree-seal {
  margin-top: 10px;
  width: 92px;
  height: 92px;
  border: 2px solid #1e4a7a;
  border-radius: 50%;
  color: #1e4a7a;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: 700 8pt "Segoe UI", Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.25;
  transform: rotate(-8deg);
  opacity: .88;
  box-shadow: inset 0 0 0 1px rgba(30, 74, 122, .35);
}
.decree-sign-right {
  text-align: right;
  min-width: 40%;
}
.decree-signature {
  font-family: "Caveat", "Marck Script", "Segoe Script", cursive;
  font-size: 28pt;
  color: #1a3a8a;
  line-height: 1;
  margin: 0 0 2px;
  transform: rotate(-3deg);
}
.decree-sign-line {
  border-top: 1px solid #333;
  padding-top: 4px;
  font-size: 10.5pt;
  display: inline-block;
  min-width: 160px;
}
.decree-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px dashed #b8b0a0;
  font-size: 9pt;
  color: #666;
}
.decree-barcode {
  display: inline-block;
  width: 120px;
  height: 28px;
  background: repeating-linear-gradient(
    90deg,
    #111 0 2px,
    transparent 2px 4px,
    #111 4px 5px,
    transparent 5px 8px,
    #111 8px 11px,
    transparent 11px 13px
  );
  opacity: .75;
}

/* Протокол ОМП (B03) */
.protocol-org {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 10.5pt;
  font-weight: 700;
  margin: 0 0 8px;
}
.protocol-title {
  text-align: center;
  border: none;
  margin: 0 0 10px;
  font-size: 13.5pt;
  letter-spacing: .05em;
  line-height: 1.3;
}
.protocol-title span {
  display: block;
  font-size: 11.5pt;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  margin-top: 2px;
}
.protocol-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10.5pt;
  margin: 0 0 6px;
}
.protocol-times {
  max-width: 420px;
  margin: 10px 0 14px;
}
.protocol-legend {
  margin: 8px 0 4px 1.2em;
  padding: 0;
}
.protocol-legend li { margin: 0 0 4px; }

/* Акт СМЭ · выписка (B04) */
.sme {
  position: relative;
  margin: 6px 0;
  padding: 16px 18px 14px;
  background: #faf8f2;
  border: 1px solid #9a9080;
  overflow: hidden;
}
.sme-stamp {
  position: absolute;
  top: 24px;
  right: 18px;
  z-index: 2;
  border: 3px solid #8a2a2a;
  color: #8a2a2a;
  padding: 5px 12px;
  font: 700 12pt "Segoe UI", Arial, sans-serif;
  letter-spacing: .14em;
  transform: rotate(8deg);
  opacity: .85;
  background: rgba(255, 248, 245, .4);
  pointer-events: none;
}
.sme-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  border-bottom: 2px solid #2f3a2a;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.sme-org {
  font-size: 10.5pt;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-weight: 700;
  line-height: 1.35;
}
.sme-case {
  text-align: right;
  border: 1px solid #2f3a2a;
  padding: 8px 12px;
  background: #fff;
  min-width: 140px;
}
.sme-title {
  text-align: center;
  border: none;
  margin: 8px 0 12px;
  font-size: 13.5pt;
  letter-spacing: .05em;
  line-height: 1.3;
}
.sme-title span {
  display: block;
  font-size: 10.5pt;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  margin-top: 4px;
}
.sme-lead {
  font-size: 10.5pt;
  line-height: 1.45;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #c8c0b0;
}
.sme-sec {
  font-size: 11pt;
  margin: 14px 0 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
  border: none;
  padding: 0;
}
.sme-grid th {
  width: 34%;
  font-size: 9.5pt;
}
.sme-grid td {
  font-size: 10.5pt;
}
.sme-ol {
  margin: 6px 0 14px 1.2em;
  padding: 0;
}
.sme-ol li {
  margin: 0 0 6px;
  line-height: 1.4;
}
body.sme-page {
  padding-top: 10mm;
}
body.sme-page .sme {
  margin-top: 0;
}
.omp-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 16px;
}
.omp-gallery figure {
  margin: 0;
  border: 1px solid #a09888;
  background: #fff;
  padding: 6px;
}
.omp-gallery img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center;
  border: 1px solid #d4cdc0;
}
.omp-gallery figcaption {
  font-size: 8.5pt;
  color: #555;
  margin-top: 6px;
  line-height: 1.25;
  text-align: center;
}
@media print {
  .omp-gallery img { height: 110px; }
}
.sme-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0 14px;
}
.sme-gallery figure {
  margin: 0;
  border: 1px solid #a09888;
  background: #fff;
  padding: 6px;
}
.sme-gallery img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center;
  border: 1px solid #d4cdc0;
}
.sme-gallery figcaption {
  font-size: 8.5pt;
  color: #555;
  margin-top: 6px;
  line-height: 1.25;
  text-align: center;
}
.photo-print figure {
  margin: 8px 0 12px;
  text-align: center;
}
.photo-print img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 178mm;
  max-height: 205mm;
  height: auto;
  object-fit: contain;
  border: 1px solid #8a8070;
  background: #fff;
}
.photo-print figcaption {
  margin-top: 10px;
  font-size: 12pt;
  font-weight: 700;
  line-height: 1.3;
}
@media print {
  .photo-print { page-break-inside: avoid; }
  .photo-print img { max-height: 220mm; }
}
.sme-sign-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-top: 16px;
  padding-top: 8px;
}
.sme-seal {
  width: 88px;
  height: 88px;
  border: 2px solid #1e4a7a;
  border-radius: 50%;
  color: #1e4a7a;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: 700 8pt "Segoe UI", Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.25;
  transform: rotate(-6deg);
  opacity: .88;
  box-shadow: inset 0 0 0 1px rgba(30, 74, 122, .35);
}
.sme-sign-right { text-align: right; min-width: 38%; }

/* Рапорт лесничества (B16) */
.raport {
  margin: 6px 0;
  padding: 14px 16px 12px;
  border: 1px solid #8a9078;
  background: #f5f3ea;
}
.raport-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-bottom: 2px solid #2f3a2a;
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.raport-photo {
  width: 88px;
  height: 110px;
  object-fit: cover;
  border: 1px solid #a09888;
  background: #ddd;
  flex-shrink: 0;
}
.raport-org {
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 10.5pt;
  font-weight: 700;
}
.raport-title {
  border: none;
  margin: 6px 0 8px;
  font-size: 16pt;
  letter-spacing: .12em;
  text-align: left;
}
.raport-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10.5pt;
  max-width: 420px;
}
.raport-hand {
  margin: 4px 0 12px;
  padding: 10px 12px 6px;
  background:
    repeating-linear-gradient(
      transparent,
      transparent 29px,
      rgba(140, 160, 120, .22) 30px
    );
  font-family: "Caveat", "Marck Script", "Segoe Script", "Comic Sans MS", cursive;
  font-size: 17.5pt;
  line-height: 30px;
  color: #1c2838;
}
.raport-hand p { margin: 0 0 8px; }
.raport-hand b { font-weight: 700; color: #12203a; }
.raport-sign-right {
  text-align: right;
  min-width: 38%;
  font-family: "Caveat", "Marck Script", "Segoe Script", cursive;
  font-size: 18pt;
  line-height: 1.25;
  color: #1c2838;
}
.raport-sign-right .muted {
  font-size: 14pt;
  color: #3a4a40;
}
.raport-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0 14px;
}
.raport-gallery figure {
  margin: 0;
  border: 1px solid #a09888;
  background: #fff;
  padding: 6px;
}
.raport-gallery img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  object-position: center;
  border: 1px solid #d4cdc0;
}
.raport-gallery figcaption {
  font-size: 8.5pt;
  color: #555;
  margin-top: 5px;
  line-height: 1.25;
  text-align: center;
}
.raport-sign-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-top: 12px;
  padding-top: 8px;
}
.raport-seal {
  width: 88px;
  height: 88px;
  border: 2px solid #2a5a3a;
  border-radius: 50%;
  color: #2a5a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: 700 8pt "Segoe UI", Arial, sans-serif;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.25;
  transform: rotate(-7deg);
  opacity: .9;
  box-shadow: inset 0 0 0 1px rgba(42, 90, 58, .35);
}

/* Журнал верёвок (B19) */
.rope-log {
  margin: 6px 0;
  padding: 12px 14px;
  border: 1px solid #7a8a70;
  background: #f3f1e8;
}
.rope-log-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-bottom: 2px solid #2f3a2a;
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.rope-log-photo {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border: 1px solid #a09888;
  flex-shrink: 0;
}
.rope-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0 12px;
}
.rope-gallery figure {
  margin: 0;
  border: 1px solid #a09888;
  background: #fff;
  padding: 6px;
}
.rope-gallery img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  object-position: center;
  border: 1px solid #d4cdc0;
}
.rope-gallery figcaption {
  font-size: 8.5pt;
  color: #555;
  margin-top: 5px;
  line-height: 1.25;
  text-align: center;
}
@media print {
  .rope-gallery img { height: 95px; }
}
@media (max-width: 640px) {
  .rope-gallery { grid-template-columns: 1fr 1fr; }
  .rope-log-head { flex-direction: column; }
}

.clipping {
  max-width: 100%;
  height: auto;
  border: none;
  background: transparent;
  display: block;
  margin: 0 auto;
}

.newspaper {
  font-family: Georgia, "Times New Roman", serif;
  columns: 2;
  column-gap: 18px;
  font-size: 10.5pt;
}
.newspaper h1 {
  columns: 1;
  column-span: all;
  font-size: 18pt;
  text-align: center;
  border-bottom: 3px double #222;
  padding-bottom: 8px;
}
.masthead {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 9pt;
  margin-bottom: 8px;
}
.chat-sheet {
  max-width: 420px;
  margin: 12px auto;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 10pt;
}
.chat-meta {
  text-align: center;
  font-size: 8.5pt;
  color: #666;
  margin: 10px 0 4px;
}
.chat-them, .chat-me {
  margin: 4px 0;
  padding: 6px 10px;
  border-radius: 10px;
  max-width: 85%;
}
.chat-them {
  background: #eceff1;
  margin-right: auto;
}
.chat-me {
  background: #e3f2fd;
  margin-left: auto;
  text-align: right;
}
.chat-them .who, .chat-me .who {
  display: block;
  font-size: 8pt;
  font-weight: 600;
  color: #555;
  margin-bottom: 2px;
}
.qr-block {
  border: 2px dashed #8a8070;
  padding: 14px 16px;
  margin: 14px 0;
  text-align: center;
  background: #faf8f3;
}
.qr-url {
  font-family: Consolas, "Courier New", monospace;
  font-size: 11pt;
  font-weight: 600;
  letter-spacing: .02em;
  margin: 8px 0;
}
.qr-img {
  width: 32mm;
  height: 32mm;
  image-rendering: pixelated;
  border: 0;
}
@media print {
  html { background: #fff; }
  body.doc {
    box-shadow: none;
    border: none;
    max-width: none;
    min-height: auto;
  }
  body.player .author-only,
  body.player .pills,
  body.player .footer-id {
    display: none !important;
  }
}

/* Карта B42 */
.map-sheet {
  border: 1px solid #8a8070;
  background: #fff;
  padding: 8px;
  margin: 12px 0;
}
.map-sheet svg { width: 100%; height: auto; display: block; }

/* Карточка целей P01 */
.objective-frame {
  border: 2px solid #2f3a2a;
  padding: 16px 18px;
  margin: 12px 0;
  background: #f0ebe0;
}
.objective-frame h1 .sub {
  font-size: 11pt;
  font-weight: normal;
  letter-spacing: 0;
  text-transform: none;
}
.objective-foot {
  text-align: center;
  margin: 14px 0 0;
  font-size: 10pt;
  color: #444;
}

/* Протоколы допросов */
body.doc.dopros {
  font-size: 10.5pt;
  line-height: 1.35;
}
.dopros .stamp {
  float: right;
  margin: 0 0 8px 12px;
}
.proto-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0 0 10px;
}
.portrait-wrap {
  flex: 0 0 88px;
  text-align: center;
}
.portrait-wrap .portrait {
  width: 88px;
  height: 110px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid #333;
  background: #e8e4dc;
  display: block;
}
.portrait-cap {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8pt;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 4px;
  color: #444;
}
.proto-title { flex: 1; min-width: 0; }
.dopros .place-line {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9pt;
  margin: 0 0 8px;
  text-align: justify;
}
.dopros .time-grid {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9pt;
}
.dopros .time-grid td {
  border: 1px solid #222;
  padding: 4px 6px;
  width: 50%;
}
.dopros h1 { font-size: 12.5pt; margin: 4px 0 8px; }
.dopros .ud-line {
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9.5pt;
  margin: 0;
}
.dopros .ud-line .fill,
.dopros .time-grid .fill {
  font-size: 13pt;
  padding: 0 3px;
  border-bottom: 1px solid #9ab;
  font-weight: 600;
}
.dopros table.anketa {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 10px;
  font-size: 9.5pt;
}
.dopros table.anketa th,
.dopros table.anketa td {
  border: 1px solid #222;
  padding: 3px 6px;
  vertical-align: top;
  text-align: left;
}
.dopros table.anketa th {
  width: 38%;
  background: #ececec;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8.5pt;
  font-weight: bold;
}
.dopros table.anketa td.fill {
  font-size: 11pt;
  line-height: 1.25;
}
.dopros .rights {
  border: 1.5px solid #222;
  padding: 7px 9px;
  margin: 0 0 12px;
  font-size: 8.5pt;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f4f0;
  text-align: justify;
}
.dopros .rights .sign-mini {
  margin-top: 8px;
  text-align: right;
  font-size: 16pt;
  line-height: 1.1;
}
.dopros .qa-head {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9.5pt;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #111;
  margin: 10px 0 8px;
  padding-bottom: 2px;
}
.dopros .q {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9.5pt;
  font-weight: bold;
  margin: 10px 0 3px;
}
.dopros .a {
  margin: 0 0 8px;
  text-align: justify;
}
.dopros .closing {
  margin-top: 14px;
  font-size: 9.5pt;
  text-align: justify;
}
.dopros .note-proto {
  font-size: 9.5pt;
  font-style: italic;
  margin: 10px 0;
  border-left: 2px solid #888;
  padding-left: 8px;
}
.sign-block {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
}
.sign-line {
  border-top: 1px solid #333;
  padding-top: 4px;
  min-width: 42%;
  font-size: 10pt;
}
.sign-role {
  display: block;
  font-size: 8.5pt;
  color: #555;
  font-family: Arial, sans-serif;
}
@media print {
  .dopros table.anketa th,
  .dopros .rights {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

/* Карточка дела (B06) */
body.case-card-page {
  padding: 12mm 14mm;
  background: #f4efe4;
}

.case-card {
  min-height: calc(297mm - 24mm);
  display: flex;
  flex-direction: column;
  border: 2px solid #2f3a2a;
  outline: 1px solid #8a8070;
  outline-offset: 4px;
  padding: 14mm 16mm 12mm;
  background: linear-gradient(180deg, #faf6ee 0%, #f7f3ea 18%, #f7f3ea 100%);
  position: relative;
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(47, 58, 42, .18);
  pointer-events: none;
}

.case-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  border-bottom: 2px solid #2f3a2a;
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.case-card-bureau-name {
  display: block;
  font-size: 11pt;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.case-card-bureau-city {
  display: block;
  font-size: 10pt;
  color: #444;
  letter-spacing: .06em;
  margin-top: 2px;
}

.case-card-id {
  text-align: right;
}

.case-card-id-label {
  display: block;
  font-size: 8.5pt;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #555;
}

.case-card-id-num {
  display: block;
  font-size: 16pt;
  font-weight: 700;
  letter-spacing: .08em;
  color: #2f3a2a;
  margin-top: 2px;
}

.case-card-title {
  margin: 0 0 4px;
  font-size: 22pt;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  border: none;
}

.case-card-place {
  margin: 0 0 20px;
  text-align: center;
  font-size: 11pt;
  color: #555;
  letter-spacing: .04em;
}

.case-card-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 22px;
  border: 1px solid #8a8070;
  background: #efe9dc;
}

.case-card-fact {
  padding: 10px 8px;
  text-align: center;
  border-right: 1px solid #c8c0b0;
}

.case-card-fact:last-child {
  border-right: none;
}

.case-card-fact .lbl {
  display: block;
  font-size: 7.5pt;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #666;
  margin-bottom: 4px;
  font-family: "Segoe UI", Arial, sans-serif;
}

.case-card-fact .val {
  display: block;
  font-size: 10.5pt;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
}

.case-card-body {
  flex: 1;
  font-size: 12.5pt;
  line-height: 1.55;
}

.case-card-body p {
  margin: 0 0 14px;
  text-align: justify;
  text-indent: 1.2em;
}

.case-card-body p:first-child {
  text-indent: 0;
}

.case-card-body p:first-child::first-letter {
  float: left;
  font-size: 2.6em;
  line-height: .85;
  padding-right: 6px;
  padding-top: 2px;
  font-weight: 700;
  color: #2f3a2a;
}

.case-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #b8b0a0;
}

.case-card-foot-left .line {
  display: block;
  border-top: 1px solid #333;
  padding-top: 4px;
  min-width: 180px;
  font-size: 11pt;
}

.case-card-foot-left .role {
  display: block;
  font-size: 8.5pt;
  color: #555;
  margin-top: 4px;
  font-family: "Segoe UI", Arial, sans-serif;
}

.case-card-foot-right {
  text-align: right;
}

.stamp-mini {
  display: inline-block;
  border: 2px solid #8a2a2a;
  color: #8a2a2a;
  padding: 2px 10px;
  font-size: 9pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  transform: rotate(-3deg);
  margin-bottom: 6px;
}

.sheet-id {
  display: block;
  font-size: 9pt;
  color: #666;
  letter-spacing: .06em;
}

@media print {
  body.case-card-page {
    padding: 0;
    border: none;
    box-shadow: none;
    background: #f7f3ea;
  }
  .case-card {
    min-height: auto;
    outline: none;
    border-width: 1.5px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .case-card-strip,
  .stamp-mini {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
