/* Лендинг Pitlaw (веха 8.1, #293) в оформлении brag, как клиент игры: тон 35° в oklch, оранжевая плашка на тёмном,
   крупный жирный курсив, моноширинные подписи капсом. Шрифты Geist и Geist Mono лежат рядом.
   Движение: появление при прокрутке (opacity и transform, сдвиг по очереди 60 мс), бегущая летопись, удары пробного
   боя. Кривые — сильный ease-out и ease-in-out, при prefers-reduced-motion остаются только смены прозрачности */
@font-face {
  font-family: Geist;
  font-weight: 400;
  src: url(fonts/geist-cyrillic-400-normal.woff2) format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Geist;
  font-weight: 400;
  src: url(fonts/geist-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: Geist;
  font-weight: 700;
  src: url(fonts/geist-cyrillic-700-normal.woff2) format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Geist;
  font-weight: 700;
  src: url(fonts/geist-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: Geist;
  font-weight: 900;
  font-style: italic;
  src: url(fonts/geist-cyrillic-900-italic.woff2) format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Geist;
  font-weight: 900;
  font-style: italic;
  src: url(fonts/geist-latin-900-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: "Geist Mono";
  font-weight: 500;
  src: url(fonts/geist-mono-cyrillic-500-normal.woff2) format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geist Mono";
  font-weight: 500;
  src: url(fonts/geist-mono-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
  --hue: 35;
  --hero: oklch(64% 0.22 var(--hue));
  --hero-ink: oklch(16% 0.06 var(--hue));
  --bg: oklch(14% 0.03 var(--hue));
  --bg-deep: oklch(11% 0.025 var(--hue));
  --elev: oklch(18% 0.04 var(--hue));
  --elev2: oklch(22% 0.045 var(--hue));
  --ink: oklch(96% 0.02 var(--hue));
  --soft: oklch(72% 0.04 var(--hue));
  --rule: oklch(26% 0.03 var(--hue));
  --accent: oklch(72% 0.22 var(--hue));
  --good: oklch(78% 0.14 140);
  --r-md: 12px;
  --r-lg: 18px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --f: Geist, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px / 1.5 var(--f);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p,
ol,
blockquote {
  margin: 0;
}
ol {
  padding: 0;
  list-style: none;
}
.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

.lbl {
  font: 500 12px / 1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
}
.big {
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.note {
  font-size: 14px;
  color: var(--soft);
}
.sub {
  color: var(--soft);
  max-width: 46em;
  margin-top: 14px;
}
.panel {
  background: var(--elev);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 22px;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--elev2);
  color: var(--ink);
  font: 700 16px / 1 var(--f);
  cursor: pointer;
  transition:
    transform 0.16s var(--ease-out),
    background-color 0.2s ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn.pri {
  background: var(--hero);
  color: var(--hero-ink);
  border-color: transparent;
  font-weight: 900;
  font-style: italic;
}
.btn.sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.btn:disabled:active {
  transform: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:disabled) {
    background: oklch(26% 0.05 var(--hue));
  }
  .btn.pri:hover:not(:disabled) {
    background: oklch(69% 0.22 var(--hue));
  }
}
.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- шапка ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 60px;
}
.logo {
  font-size: 26px;
  color: var(--hero);
}
.top-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font: 500 13px / 1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}
.top-nav a {
  transition: color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .top-nav a:hover {
    color: var(--ink);
  }
}

/* ---------- первый экран ---------- */
.hero {
  padding: clamp(56px, 9vw, 128px) 0 clamp(16px, 3vw, 40px);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto;
  height: 120%;
  pointer-events: none;
  background: radial-gradient(60% 50% at 75% 40%, oklch(40% 0.14 var(--hue) / 0.35), transparent 70%);
}
.hero-in {
  position: relative;
  z-index: 1;
  display: grid;
}
.hero-text {
  display: grid;
  gap: 20px;
}
.hero-title {
  font-size: clamp(48px, 6.1vw, 88px);
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0 0.08em 0.06em 0;
}
.hero-title .line > span {
  display: inline-block;
}
.accent {
  color: var(--hero);
}
.lead {
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 30em;
}
.invite {
  font-size: 15px;
}

/* Каторжник справа на первом экране: прозрачная картинка, низ уходит за край экрана.
   Фигура до колен; ?fig=a показывает вариант по пояс (site.js) */
.hero:has(.hero-fig) {
  min-height: calc(100dvh - 64px);
  display: grid;
  align-content: center;
  overflow: hidden;
}
.hero-fig {
  position: absolute;
  right: 0;
  bottom: 0;
  height: min(84%, 860px);
  width: auto;
  max-width: 48vw;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}

/* ---------- секции ---------- */
.sec {
  padding: clamp(56px, 8vw, 104px) 0 0;
}
.sec h2 {
  font-size: clamp(36px, 5vw, 64px);
  margin-top: 10px;
}
.sec h3 {
  font: 900 italic 22px / 1.1 var(--f);
  letter-spacing: -0.02em;
}

.talk {
  margin-top: 22px;
  font-size: clamp(22px, 2.4vw, 30px);
  max-width: 38em;
  text-wrap: pretty;
}
.acts.reveal {
  margin-top: 24px;
}

.slogan-h .accent {
  display: block;
}

/* ---------- экран игры ---------- */
.screen {
  margin-top: 26px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--bg-deep);
}
.screen video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- карточки ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.card {
  display: grid;
  gap: 10px;
  align-content: start;
}
.card p {
  color: var(--soft);
}
.grid.three .card {
  grid-template-rows: auto 1fr auto;
}
.grid.three .btn {
  justify-self: start;
}
@media (hover: hover) and (pointer: fine) {
  .card {
    transition:
      transform 0.25s var(--ease-out),
      border-color 0.25s ease;
  }
  .card:hover {
    transform: translateY(-3px);
    border-color: oklch(34% 0.06 var(--hue));
  }
}

/* ---------- прогресс: числа из данных игры ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 32px;
  border-block: 1px solid var(--rule);
}
.stats div {
  display: grid;
  gap: 8px;
  padding: 22px 18px 20px 0;
}
.stats div + div {
  padding-left: 18px;
  border-left: 1px solid var(--rule);
}
.stats b {
  font: 900 italic clamp(40px, 4.4vw, 60px) / 0.9 var(--f);
  letter-spacing: -0.04em;
  color: var(--hero);
  font-variant-numeric: tabular-nums;
}
.prog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 56px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}
.prog li {
  display: grid;
  align-content: start;
  gap: 6px;
  padding-left: 18px;
  border-left: 2px solid var(--hero);
}
.prog p {
  color: var(--soft);
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(56px, 8vw, 104px);
  padding: 28px 0 32px;
  border-top: 1px solid var(--rule);
}
.foot .logo {
  font-size: 22px;
}

/* ---------- появление ---------- */
.rise {
  animation: rise 0.8s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms + 80ms);
}
.hero-title .rise {
  animation-name: rise-line;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes rise-line {
  from {
    transform: translateY(105%);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rise,
  .hero-title .rise {
    animation: fade 0.4s ease both;
  }
  .js .reveal {
    transform: none;
    transition: opacity 0.4s ease;
  }
}

/* ---------- узкие экраны ---------- */
@media (max-width: 960px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .top-nav {
    display: none;
  }
  .top-in {
    justify-content: space-between;
  }
}
@media (max-width: 640px) {
  .grid,
  .grid.three {
    grid-template-columns: 1fr;
  }
  .acts .btn {
    flex: 1 1 100%;
  }
  .foot {
    flex-direction: column;
  }
}

/* Скрытые блоки: правило последним, перекрывает display у классов того же веса */
[hidden] {
  display: none;
}
