/* ═══════════════════════════════════════════════════════════════
   SUPER ЧЕБУРЕК — base.css
   Переменные, reset, типографика, утилиты.
   Правишь бренд-цвета/шрифты — только здесь.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Бренд ── */
  --c-black:        #0b0b0c;   /* основной фон */
  --c-black-2:      #121214;   /* фон карточек */
  --c-black-3:      #1a1a1d;   /* фон карточек 2 / ховеры */
  --c-line:         rgba(255, 255, 255, .09);
  --c-yellow:       #ffc400;   /* фирменный жёлтый */
  --c-yellow-2:     #ffd84d;   /* светлый жёлтый (градиенты) */
  --c-yellow-dark:  #e0a800;
  --c-white:        #f6f4ef;   /* тёплый белый текст */
  --c-text:         rgba(246, 244, 239, .82);
  --c-text-dim:     rgba(246, 244, 239, .55);

  /* ── Шрифты ── */
  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body:    "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* ── Сетка и ритм ── */
  --container:   1280px;
  --gutter:      24px;
  --section-pad: clamp(72px, 10vw, 140px);
  --radius:      22px;
  --radius-sm:   14px;

  /* ── Хедер ── */
  --header-h: 84px;

  /* ── Анимации ── */
  --ease-out:  cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: .25s;
  --t-mid:  .5s;
  --t-slow: .9s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Жёстко отсекаем случайный горизонтальный скролл (анимации, декор).
   clip на html И body — не создаёт скролл-контейнеров, sticky работает. */
html, body { overflow-x: clip; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
b, strong { color: var(--c-white); font-weight: 700; }

::selection { background: var(--c-yellow); color: #111; }

/* Скроллбар */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--c-black); }
::-webkit-scrollbar-thumb { background: #2c2c30; border-radius: 8px; border: 2px solid var(--c-black); }
::-webkit-scrollbar-thumb:hover { background: var(--c-yellow-dark); }

/* ── Типографика ── */
h1, h2, h3 { color: var(--c-white); line-height: 1.08; font-weight: 800; }

.section-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 58px);
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 14px 0 0;
}
.section-title .accent {
  color: transparent;
  background: linear-gradient(100deg, var(--c-yellow) 20%, var(--c-yellow-2) 50%, var(--c-yellow) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--c-yellow);
}
.section-tag::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--c-yellow);
  border-radius: 2px;
}

.section-sub {
  margin-top: 18px;
  max-width: 640px;
  font-size: 18px;
  color: var(--c-text-dim);
}

.section-head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 64px); }

.section { padding: var(--section-pad) 0; position: relative; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Утилиты ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--c-line);
  border-radius: 100px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
}
.chip--status { color: #7ee787; border-color: rgba(126, 231, 135, .25); }
.chip--status.is-closed { color: #ff7b72; border-color: rgba(255, 123, 114, .25); }
.chip__pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50% { box-shadow: 0 0 0 6px transparent; opacity: .75; }
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  padding: 10px 18px;
  background: var(--c-yellow); color: #111;
  border-radius: 10px; font-weight: 700;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

/* Блокировка скролла (мобильное меню, лайтбокс) */
body.body-lock { overflow: hidden; }

/* ── Reveal-анимации (запускает IntersectionObserver в app.js) ── */
.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
  will-change: opacity, transform;
}
.js .reveal--left  { transform: translateX(-44px); }
.js .reveal--right { transform: translateX(44px); }
.js .reveal--scale { transform: scale(.92); }
.js .reveal.in { opacity: 1; transform: none; }

/* data-delay="1..6" → CSS-переменная */
.js [data-delay="1"] { --d: 1; } .js [data-delay="2"] { --d: 2; }
.js [data-delay="3"] { --d: 3; } .js [data-delay="4"] { --d: 4; }
.js [data-delay="5"] { --d: 5; } .js [data-delay="6"] { --d: 6; }

/* ── Доступность: убрать анимации по системной настройке ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
