/* OSNOVA · база: шрифты, сброс, сетка, типографика, появление блоков */
@font-face {
  font-family: "Onest";
  src: url("/fonts/Onest.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("/fonts/Unbounded-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* сетка */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); }
.section { padding-block: var(--section) 0; }

/* типографика */
.h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
.body { font-size: var(--fs-body); line-height: var(--lh-body); }
.small { font-size: var(--fs-small); line-height: 1.45; }
.muted { color: var(--ink-55); }

/* ссылка-стрелка */
.arrow-link { display: inline-flex; align-items: center; gap: 10px; padding-block: 9px; margin-block: -9px; font-weight: 500; transition: gap var(--t-hover) var(--ease); } /* hit-area 44px без изменения ритма */
.arrow-link svg { width: 20px; height: 20px; flex: none; transition: transform var(--t-hover) var(--ease); }
.arrow-link:hover { gap: 14px; }

/* появление при прокрутке */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--t-in) var(--ease), transform var(--t-in) var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
