/* Шрифты макета. Файлы собирает tools/web-fonts.py из исходников в /fonts. */

@font-face {
  font-family: 'Halvar Breitschrift';
  src: url('../fonts/HalvarBreitschrift-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/*
 * У Helvetica Neue Cyr метрики для Windows больше, чем для macOS и Linux:
 * в Windows строки съезжали бы вниз (у текста 44px — почти на 4px).
 * Фиксируем метрики macOS — по ним свёрстан и макет в Figma.
 */

@font-face {
  font-family: 'Helvetica Neue Cyr';
  src: url('../fonts/HelveticaNeueCyr-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  ascent-override: 71.4%;
  descent-override: 19.1%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Helvetica Neue Cyr';
  src: url('../fonts/HelveticaNeueCyr-Roman.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  ascent-override: 71.4%;
  descent-override: 19.8%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Helvetica Neue Cyr';
  src: url('../fonts/HelveticaNeueCyr-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  ascent-override: 71.4%;
  descent-override: 19.1%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Helvetica Neue Cyr';
  src: url('../fonts/HelveticaNeueCyr-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  ascent-override: 71.4%;
  descent-override: 19.8%;
  line-gap-override: 0%;
}
