/* ==========================================================================
   lv40.ru — typographic roles
   --------------------------------------------------------------------------
   Web fonts are self-hosted in /fonts and split into two unicode ranges:
     primary — Latin + Russian Cyrillic (the small file a normal page needs)
     other   — extended Latin/Cyrillic (fetched only when such glyphs appear)
   Loaded weights:
     Unbounded 600      — логотип и главный хиро-баннер (только >= 32px)
     Oswald    600      — заголовки, названия туров, крупный счёт
     Onest     400, 600 — основной текст (новости, статьи, посты)
     Lora      400 it.  — редакционные зоны (лиды, подписи к фото)
     Golos Text 400–600 — данные и интерфейс (таблицы, навигация, формы)
   --------------------------------------------------------------------------
   Fallback-стеки продублированы в каждой переменной, чтобы вёрстка не
   «прыгала», пока веб-шрифты загружаются (и если локальные шрифты недоступны).
   ========================================================================== */

/* ==========================================================================
   @font-face: Latin + Russian Cyrillic
   ========================================================================== */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/unbounded-600-primary.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0301, U+0304, U+0308, U+0329, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2000-206F, U+20AC, U+2116, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/oswald-600-primary.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0301, U+0304, U+0308, U+0329, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2000-206F, U+20AC, U+2116, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/onest-400-primary.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0301, U+0304, U+0308, U+0329, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2000-206F, U+20AC, U+2116, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/onest-600-primary.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0301, U+0304, U+0308, U+0329, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2000-206F, U+20AC, U+2116, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/lora-400-italic-primary.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0301, U+0304, U+0308, U+0329, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2000-206F, U+20AC, U+2116, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/golos-text-400-primary.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0301, U+0304, U+0308, U+0329, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2000-206F, U+20AC, U+2116, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/golos-text-500-primary.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0301, U+0304, U+0308, U+0329, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2000-206F, U+20AC, U+2116, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/golos-text-600-primary.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0301, U+0304, U+0308, U+0329, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2000-206F, U+20AC, U+2116, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   @font-face: other (extended Latin/Cyrillic)
   ========================================================================== */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/unbounded-600-other.woff2") format("woff2");
  unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0300, U+0302-0303, U+0305-0307, U+0309-0328, U+032A-036F, U+0460-052F, U+1C80-1C8A, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20BF, U+20B4, U+2113, U+2C60-2C7F, U+2DE0-2DFF, U+A640-A69F, U+A720-A7FF, U+FB00-FB4F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/oswald-600-other.woff2") format("woff2");
  unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0300, U+0302-0303, U+0305-0307, U+0309-0328, U+032A-036F, U+0460-052F, U+1C80-1C8A, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20BF, U+20B4, U+2113, U+2C60-2C7F, U+2DE0-2DFF, U+A640-A69F, U+A720-A7FF, U+FB00-FB4F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/onest-400-other.woff2") format("woff2");
  unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0300, U+0302-0303, U+0305-0307, U+0309-0328, U+032A-036F, U+0460-052F, U+1C80-1C8A, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20BF, U+20B4, U+2113, U+2C60-2C7F, U+2DE0-2DFF, U+A640-A69F, U+A720-A7FF, U+FB00-FB4F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/onest-600-other.woff2") format("woff2");
  unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0300, U+0302-0303, U+0305-0307, U+0309-0328, U+032A-036F, U+0460-052F, U+1C80-1C8A, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20BF, U+20B4, U+2113, U+2C60-2C7F, U+2DE0-2DFF, U+A640-A69F, U+A720-A7FF, U+FB00-FB4F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/lora-400-italic-other.woff2") format("woff2");
  unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0300, U+0302-0303, U+0305-0307, U+0309-0328, U+032A-036F, U+0460-052F, U+1C80-1C8A, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20BF, U+20B4, U+2113, U+2C60-2C7F, U+2DE0-2DFF, U+A640-A69F, U+A720-A7FF, U+FB00-FB4F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/golos-text-400-other.woff2") format("woff2");
  unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0300, U+0302-0303, U+0305-0307, U+0309-0328, U+032A-036F, U+0460-052F, U+1C80-1C8A, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20BF, U+20B4, U+2113, U+2C60-2C7F, U+2DE0-2DFF, U+A640-A69F, U+A720-A7FF, U+FB00-FB4F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/golos-text-500-other.woff2") format("woff2");
  unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0300, U+0302-0303, U+0305-0307, U+0309-0328, U+032A-036F, U+0460-052F, U+1C80-1C8A, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20BF, U+20B4, U+2113, U+2C60-2C7F, U+2DE0-2DFF, U+A640-A69F, U+A720-A7FF, U+FB00-FB4F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/golos-text-600-other.woff2") format("woff2");
  unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0300, U+0302-0303, U+0305-0307, U+0309-0328, U+032A-036F, U+0460-052F, U+1C80-1C8A, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20BF, U+20B4, U+2113, U+2C60-2C7F, U+2DE0-2DFF, U+A640-A69F, U+A720-A7FF, U+FB00-FB4F, U+FE2E-FE2F;
}

:root {
  --font-display: "Unbounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Oswald", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;

  --color-text: #1b1f2e;
  --color-muted: #4f5668;
  --color-rule: #dde1ee;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html {
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Headings — Oswald, always uppercase, letter-spacing 1–2 %
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0.9em 0 0.45em;
}

h1 {
  font-size: clamp(22px, 3.4vw, 32px);
}

h2 {
  font-size: clamp(22px, 2.8vw, 30px);
}

h3 {
  font-size: clamp(19px, 2.2vw, 22px);
}

h4 {
  font-size: clamp(17px, 1.6vw, 19px);
}

h5,
h6 {
  font-size: 15px;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Logo / hero — Unbounded. Never below 32px, never inside tables.
   -------------------------------------------------------------------------- */

#header11,
#header21 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#header12,
#header22 {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-muted);
}


blockquote {
  margin: 1em 0;
  padding-left: 1em;
  border-left: 3px solid var(--color-rule);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-muted);
}

figcaption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   Navigation, contacts and other interface text — Golos Text
   -------------------------------------------------------------------------- */

#header2,
#header nav,
#header nav a,
#header3,
#header3 a,
.menu,
aside,
aside > div,
details.footnote,
#tooltip,
button,
input,
select,
textarea,
label {
  font-family: var(--font-data);
}

#header2,
#header nav,
#header nav a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}

#header3,
#header3 span {
  font-size: 12.5px;
  line-height: 1.45;
}

aside,
aside > div {
  font-size: 12px;
  line-height: 1.45;
}

#tooltip {
  font-size: 12.5px;
  line-height: 1.35;
}

details.footnote {
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   News / articles / forum posts — Onest
   -------------------------------------------------------------------------- */

#body-frame main,
main.body_sec {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
}

#body-frame main p,
#body-frame main li,
#body-frame main dt,
#body-frame main dd {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

.post-header {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 1.5em 0 0.35em;
}

.post-date {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

.forum-name,
.topic-title {
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

.post-subject {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Tables and numeric data — Golos Text + tabular figures
   -------------------------------------------------------------------------- */

table,
caption,
th,
td,
.main-table,
.scorers,
.results,
.schedule {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}

table {
  font-size: 14px;
  line-height: 1.35;
}

th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

td {
  font-size: 14px;
}

td.score,
th.score,
.time,
.date,
.tour,
.num,
input[type="number"] {
  font-variant-numeric: tabular-nums;
}

table.results tr.protocol {
  font-size: 13px;
}

/* Крупный счёт в ленте результатов — Oswald 600, tabular-nums. */
table.results tr.results-score th.score {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

table.results tr.protocol td.score,
table.results tr.protocol th.score {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Счёт в матрице турнирной таблицы — данные, не заголовок. */
table.main-table span.win,
table.main-table span.lose,
table.main-table span.draw,
span.prematch {
  font-family: var(--font-data);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

span.prematch {
  font-size: 12px;
  font-weight: 500;
}

span.schedule {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   Code — the only place where a monospace stack is kept.
   -------------------------------------------------------------------------- */

code,
kbd,
samp,
pre {
  font-family: "Cascadia Code", "Consolas", "Liberation Mono", monospace;
}

/* --------------------------------------------------------------------------
   Mobile: long Oswald headings stay compact, tables remain readable.
   -------------------------------------------------------------------------- */

@media (max-width: 700px) {
  h1 {
    font-size: clamp(20px, 5.6vw, 26px);
  }

  h2 {
    font-size: clamp(20px, 5.2vw, 24px);
  }

  h3 {
    font-size: clamp(18px, 4.8vw, 21px);
  }

  .post-subject {
    font-size: 18px;
  }

  table {
    font-size: 13px;
  }

  td {
    font-size: 13px;
  }

  th {
    font-size: 11px;
  }

  table.results tr.protocol {
    font-size: 12.5px;
  }

  table.results tr.results-score th.score {
    font-size: clamp(20px, 5.4vw, 24px);
  }

  /* Unbounded stays >= 32px even on small screens. */
  #header11,
  #header21 {
    font-size: 32px;
  }
}
