/* Gym Champions — базовые стили: токены, типографика, кнопки, навигация, футер. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-extra.woff2') format('woff2');
  unicode-range: U+20BD, U+2192;
}

:root {
  color-scheme: dark;
  --bg: #000;
  --bg-2: #0a0a0b;
  --surface: #141415;
  --surface-2: #1d1d1f;
  --surface-3: #2c2c2e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --gold: #f0deb0; /* цвет логотипа */
  --gold-2: #e2c27d;
  --gold-3: #b8893f;
  --gold-text: linear-gradient(180deg, #fff7e0 12%, #f0deb0 48%, #d2a95e 92%);
  --green: #30d158;
  --yellow: #ffd60a;
  --orange: #ff9f0a;
  --red: #ff453a;
  --pink: #ff6ea8;
  --blue: #2997ff;
  --radius: 28px;
  --radius-sm: 18px;
  --radius-xs: 12px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', 'Segoe UI', Roboto,
    Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 52px;
  --max: 1080px;
  --gutter: 22px;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection {
  background: rgba(240, 222, 176, 0.3);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

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

/* ---------- Типографика ---------- */
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.display {
  margin: 0;
  font-size: clamp(50px, 9vw, 108px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.section-title {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lead {
  margin: 20px 0 0;
  max-width: 720px;
  color: var(--text-2);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.38;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.lead strong {
  color: var(--text);
  font-weight: 600;
}

.muted {
  color: var(--text-3);
}

.text-gold {
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Кнопки и ссылки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:active {
  transform: scale(0.97);
}
.btn--gold {
  background: var(--gold);
  color: #16140f;
}
.btn--gold:hover {
  background: #fff1cc;
  box-shadow: 0 10px 40px rgba(240, 222, 176, 0.25);
}
.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--dark {
  background: var(--surface-3);
  color: var(--text);
}
.btn--dark:hover {
  background: #3a3a3c;
}
.btn--sm {
  min-height: 34px;
  padding: 0 16px;
  font-size: 14px;
}
.btn--block {
  width: 100%;
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.45;
  pointer-events: none;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  font-weight: 500;
}
.link::after {
  content: '';
  width: 7px;
  height: 7px;
  border-top: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
  transition: transform 0.25s var(--ease);
}
.link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link:hover::after {
  transform: translateX(3px) rotate(45deg);
}

/* ---------- Индикатор загрузки (точка) ---------- */
.dot {
  --c: var(--text-3);
  position: relative;
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}
.dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--c);
  animation: dot-pulse 2s var(--ease) infinite;
}
.dot[data-level='low'] {
  --c: var(--green);
}
.dot[data-level='medium'] {
  --c: var(--yellow);
}
.dot[data-level='high'] {
  --c: var(--orange);
}
.dot[data-level='full'] {
  --c: var(--red);
}
.dot[data-level='closed']::after,
.dot:not([data-level])::after {
  animation: none;
}
@keyframes dot-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70%,
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* ---------- Навигация ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--solid,
.nav--open {
  background: rgba(22, 22, 23, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}
.nav__logo {
  display: flex;
  align-items: center;
  color: var(--gold);
  flex: none;
}
.nav__logo .wordmark {
  height: 19px;
  width: auto;
}
.nav__links {
  display: flex;
  gap: 30px;
  margin: 0 auto;
  font-size: 13px;
  color: rgba(245, 245, 247, 0.8);
  letter-spacing: -0.01em;
}
.nav__links a {
  transition: color 0.2s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current='true'] {
  color: #fff;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}
.nav__burger {
  display: none;
  position: relative;
  width: 36px;
  height: 36px;
  margin-right: -8px;
}
.nav__burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.nav__burger span:first-child {
  top: 14px;
}
.nav__burger span:last-child {
  top: 21px;
}
.nav--open .nav__burger span:first-child {
  top: 17.5px;
  transform: rotate(45deg);
}
.nav--open .nav__burger span:last-child {
  top: 17.5px;
  transform: rotate(-45deg);
}

.menu {
  position: fixed;
  inset: var(--nav-h) 0 0;
  padding: 24px var(--gutter) 40px;
  background: rgba(10, 10, 11, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  overflow-y: auto;
}
.menu[hidden] {
  display: none;
}
.menu a {
  display: block;
  padding: 10px 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(-10px);
  animation: menu-in 0.5s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 40ms + 60ms);
}
.menu .btn {
  margin-top: 24px;
  font-size: 17px;
  display: inline-flex;
  padding: 0 26px;
}
@keyframes menu-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .nav__links {
    display: none;
  }
  .nav__actions {
    margin-left: auto;
  }
  .nav__burger {
    display: block;
  }
  .nav__actions .btn {
    display: none;
  }
}

/* ---------- Эмблема ---------- */
.emblem-gold {
  aspect-ratio: 600 / 290;
  background: linear-gradient(112deg, #9c7334 0%, #e7cf96 16%, #fff8e6 26%, #efd9a4 36%, #c69a4f 52%, #f0deb0 66%,
      #fff4d6 74%, #d8b36a 86%, #a57b3a 100%);
  background-size: 240% 100%;
  -webkit-mask: url('../img/emblem.svg') center / contain no-repeat;
  mask: url('../img/emblem.svg') center / contain no-repeat;
  animation: emblem-sheen 9s var(--ease-in-out) infinite alternate;
}
@keyframes emblem-sheen {
  from {
    background-position: 0% 0;
  }
  to {
    background-position: 100% 0;
  }
}

/* ---------- Индикатор загрузки ---------- */
.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid var(--surface-3);
  border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Появление при прокрутке ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal='fade'] {
  transform: none;
}
.js [data-reveal='scale'] {
  transform: scale(0.94);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Футер ---------- */
.footer {
  padding: 56px 0 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.6;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.footer__logo {
  color: var(--gold);
}
.footer__logo .wordmark {
  height: 22px;
  width: auto;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  color: var(--text-2);
}
.footer__nav a:hover {
  color: var(--text);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
}
.footer__bottom p {
  margin: 0;
}
.footer a {
  transition: color 0.2s var(--ease);
}
.footer__bottom a:hover {
  color: var(--text);
}

/* ---------- Простая страница (политика, 404) ---------- */
.page {
  min-height: 70vh;
  padding: calc(var(--nav-h) + 72px) 0 96px;
}
.page .container {
  max-width: 800px;
}
.prose h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.prose h2 {
  margin: 44px 0 12px;
  font-size: 24px;
  letter-spacing: -0.025em;
}
.prose p,
.prose li {
  color: var(--text-2);
}
.prose a {
  color: var(--gold);
}
.prose .note {
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
