/* ============================================================
   Reset, типографика, утилиты
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 32px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--fs);
  font-size: var(--t-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul, ol { list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
table { border-collapse: collapse; }

a { color: var(--muted); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--gold-1); }

::selection { background: var(--gold-1); color: var(--on-accent); }
:focus-visible { outline: 1px solid var(--gold-1); outline-offset: 3px; }

/* --- Раскладка --- */
.shell { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-pad); position: relative; }

/* --- Типографика --- */
.display {
  font-family: var(--fd);
  font-weight: 400;
  font-size: var(--t-hero);
  line-height: 1.04;
  letter-spacing: -0.012em;
}
.display .gold { color: var(--gold-1); display: block; }
.display .sub {
  display: block;
  font-style: italic;
  font-size: 0.52em;
  color: var(--muted);
  letter-spacing: 0.005em;
  margin-top: 0.12em;
}

.h2 {
  font-family: var(--fd);
  font-weight: 400;
  font-size: var(--t-h2);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
}

.h3 {
  font-family: var(--fd);
  font-weight: 400;
  font-size: var(--t-h3);
  line-height: 1.3;
  color: var(--text);
}

.lead { font-size: var(--t-lead); line-height: 1.6; color: var(--muted); max-width: 56ch; }
.body { font-size: var(--t-body-sm); line-height: 1.7; color: var(--muted); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

.mono {
  font-family: var(--fm);
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

/* Надзаголовок: золотая черта + капс-лейбл */
.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px var(--s-16);
  font-family: var(--fm);
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--gold-1);
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--gold-1);
  flex: none;
}
.eyebrow > span { white-space: nowrap; }
.eyebrow .dim { color: var(--faint); }

/* --- Появление при скролле --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.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;
}
