:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: #eef3f8; color: #172d4a; font-family: Arial, sans-serif; }
.sheet { width: 210mm; min-height: 297mm; margin: 18px auto; padding: 13mm; background: #fff; box-shadow: 0 8px 30px #17365d22; }
.sheet-header { display: flex; justify-content: space-between; gap: 24px; align-items: end; padding-bottom: 8px; border-bottom: 3px solid #346b9b; }
.eyebrow { margin: 0 0 4px; color: #26608f; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0 0 5px; font-size: 25px; }
.sheet-header p { margin-top: 4px; }
.sheet-header label { white-space: nowrap; font-weight: 700; }
.name-line { display: inline-block; width: 42mm; margin-left: 6px; border-bottom: 1px solid #172d4a; }
.task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5mm 7mm; padding-top: 8mm; }
.task { position: relative; break-inside: avoid; min-height: 21mm; padding: 5mm 5mm 4mm 12mm; border: 1.5px solid #9bb6ce; border-radius: 8px; background: #f9fbfd; }
.task-number { position: absolute; top: 2mm; left: 3mm; color: #346b9b; font-size: 10px; font-weight: 700; }
.expression { margin-top: 3mm; white-space: nowrap; font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.write-line { width: 100%; height: 8mm; border-bottom: 1px solid #8ea2b5; }
.answer { display: none; position: absolute; right: 5mm; bottom: 4mm; color: #b42318; font-size: 12px; }
.show-answers .answer { display: block; }
.toolbar { position: sticky; bottom: 16px; display: flex; justify-content: center; gap: 10px; margin: 18px; }
.toolbar button { padding: 10px 16px; border: 0; border-radius: 7px; background: #2d628f; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  .sheet { margin: 0; box-shadow: none; }
  .no-print { display: none !important; }
}
