/* ==========================================================
   Compass Arena — общий стиль (index / schedule / rules)
   ========================================================== */

/* ---------- Шрифты (лежат в /fonts, без Google) ---------- */
@font-face {
  font-family: 'Unbounded';
  src: url('/fonts/unbounded-cyrillic-wght-normal.woff2') format('woff2');
  font-weight: 200 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  src: url('/fonts/unbounded-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  src: url('/fonts/onest-cyrillic-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  src: url('/fonts/onest-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  --bg: #07080a;
  --raise: #0d0f13;
  --card: #10131a;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .15);
  --text: #ece9e1;
  --text-2: #9ba1ab;
  --text-3: #5f656f;
  --gold: #c9a35a;
  --gold-hi: #e8cd93;
  --blood: #c2584c;
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --ui: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --head-h: 64px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: rgba(201, 163, 90, .35); }
:focus-visible { outline: 1.5px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Шапка ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--head-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-head.solid {
  background: rgba(7, 8, 10, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2); }
.brand span { font-family: var(--display); font-weight: 400; font-size: 14px; letter-spacing: .01em; }
.brand span i { font-style: normal; color: var(--gold); }

.head-nav { display: flex; align-items: center; gap: 6px; }
.head-nav a {
  text-decoration: none; font-size: 14px; color: var(--text-2);
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.head-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.head-nav a[aria-current="page"] { color: var(--text); }
.head-nav .pill { margin-left: 8px; }

.burger {
  display: none; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  cursor: pointer; position: relative;
}
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 25px; }
.burger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(7, 8, 10, .96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 90px 28px 40px;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu a {
  font-family: var(--display); font-weight: 300; font-size: clamp(26px, 8vw, 40px);
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line);
  transform: translateY(14px); opacity: 0; transition: transform .5s var(--ease), opacity .5s;
}
.menu.open a { transform: none; opacity: 1; }
.menu.open a:nth-child(2) { transition-delay: .05s; }
.menu.open a:nth-child(3) { transition-delay: .1s; }
.menu.open a:nth-child(4) { transition-delay: .15s; }
.menu.open a:nth-child(5) { transition-delay: .2s; }
.menu a:hover { color: var(--gold-hi); }

/* ---------- Кнопки ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 20px; border-radius: 999px;
  font-family: var(--ui); font-size: 14px; font-weight: 500; text-decoration: none;
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
  white-space: nowrap;
}
.pill:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); }
.pill:active { transform: scale(.98); }
.pill.solid { background: var(--text); color: #0b0c0e; border-color: var(--text); }
.pill.solid:hover { background: #fff; border-color: #fff; }
.pill.lg { height: 48px; padding: 0 26px; font-size: 15px; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--blood);
  box-shadow: 0 0 0 0 rgba(194, 88, 76, .6); animation: pulse 1.8s infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(194, 88, 76, .55); }
  70% { box-shadow: 0 0 0 9px rgba(194, 88, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(194, 88, 76, 0); }
}

/* ---------- Типографика секций ---------- */
.kicker { font-size: 13px; color: var(--text-3); letter-spacing: .02em; margin-bottom: 14px; }
.h2 { font-family: var(--display); font-weight: 300; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -.01em; }
.lead { color: var(--text-2); font-size: 16px; max-width: 56ch; }

/* ---------- Подвал ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--text-3); font-size: 13px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 18px 32px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; color: var(--text-2); transition: color .2s; }
.foot-links a:hover { color: var(--gold-hi); }

/* ---------- Кнопка «наверх» ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(16, 19, 26, .85); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease), border-color .2s;
}
.to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--gold); }
.to-top svg { width: 16px; height: 16px; stroke: var(--text); }

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

@media (max-width: 820px) {
  .head-nav { display: none; }
  .burger { display: block; }
  .wrap { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
