/* Шрифты: локальные woff2, кириллица и латиница. Лицензия OFL: assets/fonts/OFL-*.txt */
@font-face { font-family: "Tenor Sans"; font-weight: 400; font-display: swap; src: url("../assets/fonts/tenor-sans-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Tenor Sans"; font-weight: 400; font-display: swap; src: url("../assets/fonts/tenor-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2212, U+20BD; }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("../assets/fonts/onest-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("../assets/fonts/onest-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2212, U+20BD; }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url("../assets/fonts/onest-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url("../assets/fonts/onest-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2212, U+20BD; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("../assets/fonts/onest-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("../assets/fonts/onest-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2212, U+20BD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("../assets/fonts/jetbrains-mono-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("../assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2212, U+20BD; }

/* Сброс */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h-compact); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font-sans); }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* Типографика. Заголовки Tenor Sans, одно начертание: иерархия размером и воздухом */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--heading); text-wrap: balance; }
.h-display { font-size: clamp(30px, 3.3vw, 50px); line-height: 1.08; letter-spacing: -0.01em; }
.h-section { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.01em; }
.h-card { font-size: clamp(22px, 1.9vw, 26px); line-height: 1.2; }
.lead { font-size: 18px; line-height: 1.55; color: var(--text); max-width: 46ch; }
.muted { color: var(--text-muted); }

/* Иконки Phosphor: inline SVG, цвет от текста */
.icon { width: 1em; height: 1em; flex: none; fill: currentColor; }

/* Пропуск к содержанию */
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-full); background: var(--frost-white); color: var(--polar-night); }
.skip:focus { top: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
