@page {
  size: A4;
  margin: 2cm;

  @bottom-center {
    content: 'Страница ' counter(page) ' из ' counter(pages);
    font-size: 9pt;
  }
}

@page :first {
  margin-top: 4cm;
}
