/* ============================================================
   База — reset, типографика, контейнер, общие утилиты
   ============================================================ */

@layer base {

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

  * { margin: 0; padding: 0; }

  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    background: var(--bg);
  }

  body {
    font-family: var(--font-text);
    color: var(--ink);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-wrap: pretty;
    position: relative;
  }

  img, svg, video, canvas {
    display: block;
    max-width: 100%;
    height: auto;
  }

  a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast) var(--ease);
  }

  button, input, select, textarea { font: inherit; color: inherit; }

  button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  ul, ol { list-style: none; }

  /* — Заголовки — */
  h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.02em;
    color: var(--ink);
    font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
    text-wrap: balance;
  }

  h1 { font-size: clamp(40px, 5.6vw, 80px); }
  h2 { font-size: clamp(32px, 4.2vw, 56px); }
  h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -.015em; }
  h4 { font-size: 18px; line-height: 1.3; letter-spacing: -.005em; }

  em,
  .em-italic {
    font-style: italic;
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  }

  /* em внутри заголовков — без курсива, только золотой акцент */
  h1 em, h2 em, h3 em, h4 em, h5 em {
    font-style: normal;
    font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  }

  p { color: var(--ink-2); }

  strong { font-weight: 600; color: var(--ink); }

  /* — Надзаголовок (eyebrow) — */
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-lo);
    font-weight: 500;
    justify-self: start;
  }
  :root[data-theme="night"] .eyebrow { color: var(--gold); }

  .eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: .5;
  }
  .eyebrow--center { justify-content: center; }

  .lead {
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 60ch;
  }

  /* — Контейнер и секции — */
  .container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
  }

  .section {
    position: relative;
    padding: clamp(64px, 8vw, 112px) 0;
    background: var(--bg);
    z-index: 1;
  }
  .section--tight { padding: clamp(40px, 5vw, 64px) 0; }

  @media (max-width: 600px) {
    .container { padding: 0 20px; }
  }

}
