.post {
  counter-reset: figure;
}

figure {
  margin: 0 0 0.5rem;
  counter-increment: figure;
}

figcaption::before {
  content: 'Рисунок ' counter(figure) '. ';
  font-weight: bold;
}
