/* База: сброс, типографика, сетка, служебные классы */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 0;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-press); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
p, li { text-wrap: pretty; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--blue-line); }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

/* Типографика */
.display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: -0.028em; font-weight: 600; }
.h2 { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -0.022em; }
.h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 38em; }
.small { font-size: var(--fs-small); line-height: 1.45; }
.caption { font-size: var(--fs-caption); line-height: 1.4; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.eyebrow { font-size: var(--fs-small); font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1em; }

/* Сетка */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: var(--s16); }
.section--tight { padding-block: var(--s12); }
.section + .section { padding-top: 0; }
@media (max-width: 767px) {
  .section { padding-block: var(--s12); }
  .grid-12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Заголовок секции: линейка сверху, ссылка справа */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s6);
  border-top: 1px solid var(--ink); padding-top: var(--s5); margin-bottom: var(--s8); }
.section-head .h2 { max-width: 22ch; }
.section-head p { color: var(--ink-2); max-width: 46ch; margin-top: var(--s2); }
.section-head__link { white-space: nowrap; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
@media (max-width: 767px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: var(--s2); margin-bottom: var(--s6); }
  .section-head__link { min-height: 36px; }
}

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }

@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; }
}
fieldset { min-width: 0; min-inline-size: 0; }
