/* =========================================================
   БАЗА: дизайн-токены, сброс стилей, сетка, типографика,
   кнопки, секции, анимация появления.
   Цвета, шрифт и отступы всего сайта меняются здесь — в :root.
   ========================================================= */

/* ---------- Дизайн-токены ---------- */
:root {
  --bg: #000000;          /* глубокий черный фон */
  --surface: #0b0b0b;     /* карточки и поверхности */
  --surface-2: #141414;   /* hover-состояния */
  --line: #262626;        /* тонкие разделители */
  --fg: #ffffff;          /* основной текст */
  --muted: #8c8c8c;       /* второстепенный текст */
  --dim: #555555;         /* третичный текст, подписи */
  --error: #ff6b6b;       /* ошибки формы */

  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);  /* боковые поля страницы */
  --gap: clamp(12px, 1.6vw, 24px);   /* межколоночный интервал сетки */
  --section-y: clamp(96px, 14vw, 200px);
  --header-h: 76px;

  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* clip обрезает выступы по ширине, но, в отличие от hidden, не превращает
   body в отдельную прокручиваемую область — на iPhone прокрутка плавнее */
@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}

/* Блокировка прокрутки под открытым меню или плеером */
body.menu-open,
body.player-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video, iframe { display: block; max-width: 100%; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Контейнер и 12-колоночная сетка ---------- */
.container { width: 100%; padding-inline: var(--gutter); max-width: 1680px; margin-inline: auto; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

/* ---------- Типографика ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.h2 {
  font-size: clamp(36px, 5.4vw, 88px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.045em;
}

.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Кнопка-ссылка со стрелкой ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--fg);
  transition: gap .4s var(--ease), opacity .3s;
}
.btn:hover { gap: 28px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Секции: номер слева, заголовок справа ---------- */
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }

.section-head { margin-bottom: clamp(48px, 7vw, 112px); row-gap: 24px; }
.section-head .eyebrow { grid-column: 1 / span 3; padding-top: .6em; }
.section-head .h2 { grid-column: 4 / span 9; }
.section-head .lead { grid-column: 4 / span 6; margin-top: 8px; }

@media (max-width: 900px) {
  .section-head .eyebrow,
  .section-head .h2,
  .section-head .lead { grid-column: 1 / -1; }
}

/* Телефоны: блоки ближе друг к другу — без длинных пустых черных полос */
@media (max-width: 680px) {
  :root { --section-y: 72px; }
  .section-head { margin-bottom: 40px; row-gap: 16px; }
}

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

/* ---------- Пользователь просит меньше анимаций ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
