.tz-body { background: #E9E6DF; }
.tz-main { padding: 28px 16px 72px; }
.tz-toolbar { max-width: 210mm; margin: 0 auto 18px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.tz-toolbar__note { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.tz-toolbar .ico { width: 18px; height: 18px; }

.sheet {
  max-width: 210mm; min-height: 297mm; margin: 0 auto; background: #fff; color: var(--ink);
  padding: 18mm 20mm 16mm; box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 24px 48px -20px rgba(40, 30, 10, .35);
  font-size: 15px; line-height: 1.62;
}
.sheet p { max-width: none; margin: 0 0 1em; }
.sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 3px solid var(--sun); margin-bottom: 30px; }
.sheet__logos { display: flex; flex-direction: column; gap: 6px; }
.sheet__logos img { height: 38px; width: auto; }
.sheet__logos .dobryden { font-size: .85rem; color: var(--ink-soft); }
.sheet__logos .dobryden svg { width: 16px; height: 16px; }
.sheet__kind { text-align: right; display: flex; flex-direction: column; gap: 2px; font-size: .85rem; color: var(--ink-soft); }
.sheet__kind strong { font-size: .95rem; letter-spacing: .14em; color: var(--ink); }
.sheet__title { font-family: var(--f-serif); font-weight: 700; font-size: clamp(1.55rem, 3.2vw, 2.15rem); line-height: 1.18; letter-spacing: -.01em; margin: 0 0 18px; }
.sheet__perex { font-weight: 700; font-size: 1.02rem; }
.sheet__quote { margin: 22px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--sun); }
.sheet__quote p { margin: 0; font-style: italic; }

.sheet__fig { margin: 26px 0; }
.sheet__photo { aspect-ratio: 16 / 9; border-radius: 4px; background: linear-gradient(180deg, #C9D6E3 0 55%, #A9A08F 55%); }
.sheet__photo img { width: 100%; height: 100%; object-fit: cover; }
.tz-ph-building { position: absolute; left: 12%; right: 12%; top: 14%; height: 52%; background: repeating-linear-gradient(0deg, #A84B2F 0 6px, #9A4128 6px 7px); border-radius: 2px; display: flex; justify-content: space-around; align-items: center; padding: 0 6%; }
.tz-ph-win { width: 9%; height: 46%; background: #E8EDF2; border: 3px solid #F5EFE3; }
.tz-ph-people { position: absolute; left: 8%; right: 8%; bottom: 10%; display: flex; justify-content: center; gap: 1.2%; }
.tz-ph-people i { width: 5.4%; aspect-ratio: 1 / 2.6; border-radius: 40% 40% 10% 10% / 22% 22% 10% 10%; background: radial-gradient(circle at 50% 12%, #E8C9A6 0 12%, transparent 13%), var(--c, #4C5B70); }
.tz-ph-people i:nth-child(3n) { --c: #F5F1E8; }
.tz-ph-people i:nth-child(4n+1) { --c: #C47F00; }
.tz-ph-people i:nth-child(5n+2) { --c: #2B3760; }
.sheet__fig figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: 8px; }

.sheet__nums { margin: 30px 0; padding: 22px 22px 18px; background: var(--cream); border-radius: 10px; border: 1px solid var(--line); }
.sheet__nums h2 { font-family: var(--f-head); font-size: 1.3rem; margin: 0 0 16px; }
.sheet__nums ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 16px; }
.sheet__nums li { display: flex; flex-direction: column; gap: 4px; }
.sheet__nums b { font-family: var(--f-head); font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--amber); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sheet__nums li > span { font-size: .8rem; line-height: 1.35; color: var(--ink-soft); }
@media (max-width: 860px) { .sheet__nums ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sheet__nums li:last-child { grid-column: span 2; } }

.sheet__foot { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; font-size: .86rem; }
.sheet__foot h2 { font-family: var(--f-text); font-size: .9rem; font-weight: 700; margin: 0 0 6px; }
.sheet__foot p { margin: 0 0 .6em; }
.sheet__note { color: var(--ink-soft); }

@media (max-width: 760px) {
  .tz-main { padding: 16px 0 40px; }
  .tz-toolbar { padding: 0 16px; }
  .sheet { min-height: 0; padding: 26px 20px; box-shadow: none; }
  .sheet__head { flex-direction: column; }
  .sheet__kind { text-align: left; }
  .sheet__foot { grid-template-columns: 1fr; gap: 12px; }
}

@media print {
  @page { size: A4; margin: 18mm; }
  .tz-body { background: #fff; }
  .tz-main { padding: 0; }
  .tz-toolbar, .projectbar, .taskstrip, .projectfoot, .mpanel, .toast-host { display: none !important; }
  .sheet { max-width: none; min-height: 0; padding: 0; box-shadow: none; font-size: 10.5pt; }
  .sheet__nums, .sheet__fig, .sheet__quote, .sheet__foot { break-inside: avoid; }
  .sheet__nums { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet__head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ph__label { display: none; }
}
