/* ============================================
   ОСНОВА — обгорелое дерево, уголь, золотая кровь
   ============================================ */

:root {
  /* Уголь — от почти чёрного до тёплой золы */
  --coal-990: #070605;
  --coal-950: #0d0b09;
  --coal-900: #14100d;
  --coal-850: #1c1713;
  --coal-800: #241d18;
  --ash: #3a2f26;

  /* Золото — расплавленное, не жёлтое */
  --gold: #d4a03c;
  --gold-hot: #ffd27a;
  --gold-deep: #8a5f1c;
  --gold-dim: rgba(212, 160, 60, 0.4);

  --sand: #e6d6c2;
  --text: #ddd2c4;
  --text-mute: rgba(221, 210, 196, 0.6);
  --text-faint: rgba(221, 210, 196, 0.3);

  --line: rgba(212, 160, 60, 0.14);
  --line-strong: rgba(212, 160, 60, 0.3);

  --sans: "Inter Tight", "Inter", -apple-system, sans-serif;

  --gut: clamp(1.25rem, 4vw, 4.5rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --slow: 1.1s;
  --med: 0.6s;
  --fast: 0.3s;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--coal-990);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked {
  overflow: hidden;
}

img,
picture,
canvas,
video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--gold);
  color: var(--coal-990);
}

/* ---------- Типографика ---------- */

.display {
  font-family: var(--sans);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0;
}

.eyebrow--gold {
  color: var(--gold-dim);
}

.lede {
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  line-height: 1.7;
  color: var(--text-mute);
  font-weight: 400;
}

/* ---------- Раскладка ---------- */

.shell {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-inline: var(--gut);
}

/* ---------- Доступность ---------- */

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gut);
  z-index: 999;
  padding: 1rem 1.5rem;
  background: var(--coal-850);
  border: 1px solid var(--gold-dim);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  transition: top var(--fast) var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

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

/* Секции — пока заглушки под будущий контент */
.section {
  position: relative;
  min-height: 60vh;
}

/* Ничто не должно расширять страницу по горизонтали */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Якорные переходы: цель не должна уезжать под шапку */
:target,
section[id] {
  scroll-margin-top: 96px;
}
