/* Посчитай и нарисуй диаграмму */
.gr-wrap { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 3mm; }
.gr-field, .gr-bars, .gr-tally { display: block; flex: none; }
.gr-e { text-anchor: middle; dominant-baseline: central; font-size: 7.5px; }
.gr-ax { text-anchor: end; dominant-baseline: central; font: 700 3px var(--head); fill: #666; }
.gr-mid { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; width: 100%; }
.gr-ans { color: var(--teal); font-family: var(--head); font-weight: 700; }
/* таблица подсчёта */
.gr-table { border-collapse: collapse; font: 600 12pt var(--head); }
.gr-table th { background: #fff1e3; color: var(--brand-dark); padding: 1.5mm 4mm; border: 1.3px solid #888; font-size: 11pt; }
.gr-table td { border: 1.3px solid #888; height: 10mm; padding: 0 3mm; }
.gr-table td:nth-child(2) { width: 75mm; }
.gr-table td:nth-child(3) { width: 22mm; text-align: center; }
.gr-te { font-size: 18pt; text-align: center; width: 16mm; }
/* диаграмма из картинок */
.gr-picto { display: flex; flex-direction: column; gap: 2mm; border: 1.3px solid #d9cfb8; border-radius: 3mm; padding: 3mm 4mm; }
.gr-pr { display: flex; align-items: center; gap: 3mm; border-bottom: 1px dashed #e8e1d0; min-height: 13mm; }
.gr-pl { font-size: 22pt; width: 14mm; text-align: center; border-right: 1.3px solid #888; }
.gr-pi { display: flex; gap: 1mm; }
.gr-pi i { font-style: normal; font-size: 21pt; line-height: 1; display: inline-block; padding: 0 1mm; }
/* половинка картинки = половина от масштаба (1 картинка = 2) */
.gr-pi i.gr-half { clip-path: inset(0 50% 0 0); }
.gr-key { font: 600 11pt var(--head); color: #555; text-align: right; }
/* вопросы */
.gr-qs { width: 100%; display: flex; flex-direction: column; gap: 1.6mm; }
.gr-q { display: flex; align-items: flex-end; gap: 3mm; }
.gr-no { flex: none; width: 6mm; height: 6mm; border-radius: 50%; background: #e0762e; color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 700 9pt/1 var(--head); align-self: center; }
.gr-qt { flex: 1; font-size: 12.5pt; line-height: 1.3; }
.gr-line { flex: none; width: 30mm; height: 8mm; border-bottom: 1.3px solid #666; display: inline-flex; align-items: flex-end; justify-content: center; font-size: 15pt; padding-bottom: .5mm; }
.gr-read .gr-qs { gap: 3mm; }
