/* ============================================================
   БИТВА ТОТЕМОВ — бизнес-лагерь
   Чёрно-красная гамма под лого и арт тотемов
   ============================================================ */

/* Ruslan Display — свой хостинг, чтобы не зависеть от Google (OFL) */
@font-face {
  font-family: 'Ruslan Display';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/ruslan-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Ruslan Display';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/ruslan-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:       #0b0a0a;
  --ink:      #080707;
  --panel:    #16110f;
  --panel-red:#2a0c0c;

  --bone:     #f2e7d3;
  --bone-2:   #c3b6a2;
  --mute:     #8b8073;

  --red:      #d81f26;
  --red-hot:  #f23b32;
  --red-deep: #7d0f14;

  --edge:     #2e2724;

  --disp:     'Oswald', system-ui, sans-serif;
  --body:     'Golos Text', system-ui, -apple-system, sans-serif;
  --char:     'Ruslan Display', 'Oswald', serif;

  --pad:      clamp(18px, 5vw, 64px);
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--bg); color: var(--bone);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--red); color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* фактура: зерно на весь сайт */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* характерный голос — только акцентные слова */
.ruslan { font-family: var(--char); font-weight: 400; color: var(--red); letter-spacing: 0.01em; }

.h2 {
  font-family: var(--disp); font-weight: 600; text-transform: uppercase;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 0.95; letter-spacing: -0.015em;
}

/* ---------- кнопки: прямоугольные, одна заливка ---------- */
.btn {
  display: inline-block; font-family: var(--disp); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 14px;
  padding: 13px 24px; border: 0; cursor: pointer; position: relative; overflow: hidden;
  transition: background 0.25s, color 0.25s;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red::before {
  content: ''; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.38), transparent);
  transform: skewX(-18deg); transition: left 0.55s var(--ease); pointer-events: none;
}
.btn--red:hover::before { left: 150%; }
.btn--red:hover { background: var(--red-hot); }
.btn--lg { padding: 16px 30px; font-size: 15px; }

/* ---------- навигация ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px var(--pad); background: var(--ink);
  border-bottom: 1px solid var(--edge); transition: padding 0.25s;
}
.nav.shrink { padding-top: 8px; padding-bottom: 8px; }
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__mark { width: 30px; height: 30px; object-fit: contain; }
.nav__word { font-family: var(--disp); font-weight: 600; text-transform: uppercase;
  font-size: 12px; line-height: 0.95; }
.nav__links { display: none; }
.nav__links a { font-size: 14px; color: var(--bone-2); position: relative; transition: color 0.2s; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px; width: 100%; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__burger {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 40px; height: 34px; background: none; border: 0; cursor: pointer; padding: 0;
}
.nav__burger span { display: block; width: 26px; height: 2px; background: var(--bone); margin-left: auto;
  transition: transform 0.3s var(--ease), width 0.3s var(--ease), opacity 0.2s; }
.nav__burger span:last-child { width: 18px; }
.nav.open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .nav__burger span:last-child { width: 26px; transform: translateY(-4px) rotate(-45deg); }

/* выпадающее меню */
.nav.open .nav__links {
  display: flex; flex-direction: column; gap: 0;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--ink); border-bottom: 1px solid var(--edge);
  padding: 6px var(--pad) 18px;
}
.nav.open .nav__links a {
  padding: 15px 0; border-top: 1px solid var(--edge);
  font-family: var(--disp); font-weight: 600; text-transform: uppercase;
  font-size: clamp(18px, 2.4vw, 26px); color: var(--bone);
}
.nav.open .nav__links a::after { bottom: 10px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(30px, 6vh, 70px) var(--pad) 0;
  background: linear-gradient(180deg, #120c0b 0%, var(--bg) 72%);
}
.hero__beast {
  position: absolute; right: -10%; top: 42%; transform: translateY(-50%);
  width: min(62vw, 700px); height: auto; z-index: 1; opacity: 0.62;
  -webkit-mask-image: linear-gradient(72deg, transparent 6%, #000 46%);
          mask-image: linear-gradient(72deg, transparent 6%, #000 46%);
  pointer-events: none;
}
.hero__body { position: relative; z-index: 3; max-width: 900px; }
.hero__logo img { width: min(660px, 88%); height: auto; }
.hero__line {
  margin-top: 20px; max-width: 21ch;
  font-family: var(--disp); font-weight: 500; font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.2; text-transform: uppercase; letter-spacing: -0.005em;
}
.hero__line em { color: var(--red); font-style: normal; }
.hero__act { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.hero__when {
  font-family: var(--disp); font-weight: 600; font-size: 15px; text-transform: uppercase;
  color: var(--bone); border-bottom: 2px solid var(--red); padding-bottom: 3px;
}
.hero__foot { margin-top: 12px; font-size: 12px; color: var(--mute); }

/* печать-бейдж */
.seal {
  position: absolute; z-index: 4; pointer-events: none;
  right: clamp(16px, 4vw, 64px); bottom: clamp(18px, 3vh, 34px); top: auto;
  width: clamp(92px, 9vw, 118px); aspect-ratio: 1; display: grid; place-items: center;
}
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.seal__text { font-family: var(--disp); font-size: 15px; font-weight: 500; fill: var(--bone-2); letter-spacing: 0.06em; }
.seal__core { font-family: var(--char); font-size: clamp(20px, 2.4vw, 30px); color: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }

/* цифры */
.hero__nums {
  position: relative; z-index: 3;
  margin: clamp(40px, 7vh, 78px) 0 0; padding: 22px 0 clamp(30px, 6vh, 56px);
  border-top: 1px solid var(--edge);
  display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 54px); align-items: flex-start;
}
.num { display: flex; align-items: baseline; gap: 10px; position: relative; }
.num b { font-family: var(--disp); font-weight: 600; font-size: clamp(30px, 3.6vw, 46px); line-height: 0.9; }
.num span { font-size: 12px; line-height: 1.3; color: var(--mute); }
.num--ringed { padding: 6px 14px 6px 10px; }
.num--ringed b { color: var(--red); }
.num__ring {
  position: absolute; left: -6px; top: -10px; width: 72px; height: 56px; pointer-events: none;
}
.num__ring path {
  fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 320; stroke-dashoffset: 320;
}
.num--ringed.drawn .num__ring path { transition: stroke-dashoffset 1.1s var(--ease); stroke-dashoffset: 0; }

/* ---------- О ПРОЕКТЕ ---------- */
.about { padding: clamp(56px, 9vh, 100px) var(--pad); }
.about__col { max-width: 620px; margin-left: clamp(0px, 8vw, 130px); }
.about__big {
  font-family: var(--disp); font-weight: 600; text-transform: uppercase;
  font-size: clamp(22px, 2.8vw, 36px); line-height: 1.06; letter-spacing: -0.015em;
}
.about__big em { color: var(--red); font-style: normal; }
.about__text { margin-top: 18px; color: var(--bone-2); font-size: 16px; }
.about__skills {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--edge);
  font-family: var(--disp); font-weight: 400; text-transform: uppercase;
  font-size: 14px; letter-spacing: 0.02em; color: var(--mute); line-height: 1.7;
}

/* ---------- ТОТЕМЫ ---------- */
.totems { padding: clamp(50px, 8vh, 90px) 0 clamp(56px, 9vh, 100px); background: var(--ink); }
.totems__head { padding: 0 var(--pad); max-width: 780px; }
.totems__desc { margin-top: 14px; color: var(--bone-2); max-width: 46ch; }

.stage {
  margin: clamp(26px, 4vh, 44px) 0 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(16px, 3vw, 46px); align-items: center;
}
.stage__art img {
  width: 100%; height: auto; transition: opacity 0.3s var(--ease), transform 0.45s var(--ease);
}
.stage__info { padding-bottom: 10px; }
.stage__name { font-size: clamp(28px, 3.6vw, 46px); line-height: 1; }
.stage__tag {
  display: inline-block; margin-top: 10px; font-family: var(--disp); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--bone);
  border: 1px solid var(--edge); padding: 4px 11px;
}
.stage__desc { margin-top: 16px; color: var(--bone-2); max-width: 40ch; }

.roster {
  margin-top: clamp(24px, 4vh, 40px); padding-left: var(--pad);
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.roster::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 clamp(96px, 11vw, 138px); aspect-ratio: 3/4; position: relative;
  background: #050404; border: 0; padding: 0; cursor: pointer; overflow: hidden;
  filter: grayscale(0.75) brightness(0.66); transition: filter 0.3s var(--ease);
}
.chip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.chip span {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px 4px 7px;
  font-family: var(--disp); font-weight: 600; text-transform: uppercase; font-size: 11px;
  text-align: center; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(5,4,4,0.94));
}
.chip:hover, .chip.is-active { filter: none; }
.chip.is-active::after {
  content: ''; position: absolute; inset: 0; z-index: 3; border: 2px solid var(--red); pointer-events: none;
}

/* ---------- КАПИТАНЫ ---------- */
.captains { padding: 0 var(--pad); margin: clamp(40px, 7vh, 80px) 0; }
.captains__in {
  background: var(--panel-red); padding: clamp(30px, 5vw, 60px);
  max-width: 1050px; margin-left: auto;
}
.captains__quote {
  font-family: var(--disp); font-weight: 400; font-size: clamp(19px, 2.4vw, 30px);
  line-height: 1.24;
}
.captains__quote b { font-weight: 600; color: var(--red-hot); }
.captains__after { margin-top: 16px; font-size: 15px; color: var(--bone-2); }

/* ---------- ЧТО ЗАБЕРЁШЬ ---------- */
.take {
  padding: clamp(50px, 8vh, 96px) var(--pad);
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 70px); align-items: start;
}
.take__side { position: sticky; top: 90px; }
.take__note { margin-top: 16px; color: var(--bone-2); font-size: 15px; max-width: 34ch; }
.take__item { padding: 20px 0; border-top: 1px solid var(--edge); }
.take__item:first-child { border-top: 0; padding-top: 0; }
.take__item h3 {
  font-family: var(--disp); font-weight: 600; text-transform: uppercase;
  font-size: clamp(17px, 1.9vw, 23px); line-height: 1.05;
}
.take__item p { margin-top: 8px; color: var(--bone-2); font-size: 15px; max-width: 52ch; }
.take__item--lead h3 { font-size: clamp(22px, 2.6vw, 34px); color: var(--red); }
.take__item--lead p { font-size: 17px; color: var(--bone); }

/* ---------- ФИНАЛ ---------- */
.final { padding: 0 var(--pad); margin-bottom: clamp(40px, 7vh, 80px); }
.final__in { background: var(--panel); padding: clamp(30px, 5vw, 64px); max-width: 900px; }
.final__big {
  font-family: var(--disp); font-weight: 600; text-transform: uppercase;
  font-size: clamp(21px, 2.7vw, 34px); line-height: 1.08; letter-spacing: -0.01em;
}
.final__big em { color: var(--red); font-style: normal; }
.final__text { margin-top: 18px; color: var(--bone-2); max-width: 54ch; }
.final__kick {
  margin-top: 22px; font-family: var(--char); font-size: clamp(17px, 2.1vw, 26px);
  color: var(--bone); line-height: 1.3;
}

/* ---------- КАК ПОПАСТЬ ---------- */
.path { padding: clamp(46px, 7vh, 84px) var(--pad) clamp(50px, 8vh, 90px); }
.path__steps {
  margin-top: clamp(22px, 4vh, 38px);
  display: grid; grid-template-columns: 1.35fr 1fr 1.15fr;  /* разной ширины, не равные карточки */
  gap: 1px; background: var(--edge);
  border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge);
  align-items: start;
}
.path__step { background: var(--bg); padding: 24px clamp(16px, 2vw, 28px) 26px; }
.path__step:nth-child(1) { padding-top: 34px; padding-bottom: 46px; }
.path__step:nth-child(2) { background: var(--panel); padding-top: 52px; }  /* смещение по вертикали */
.path__step:nth-child(3) { padding-top: 24px; padding-bottom: 62px; }
.path__step b { font-family: var(--disp); font-weight: 600; font-size: 15px; color: var(--red); }
.path__step h3 {
  margin-top: 10px; font-family: var(--disp); font-weight: 600; text-transform: uppercase;
  font-size: clamp(17px, 1.9vw, 22px); line-height: 1.05;
}
.path__step p { margin-top: 8px; color: var(--bone-2); font-size: 15px; }
@media (max-width: 760px) {
  .path__steps { grid-template-columns: 1fr; }
}

/* ---------- ЗАЯВКА ---------- */
.apply {
  position: relative; overflow: hidden;
  padding: clamp(56px, 9vh, 104px) var(--pad) clamp(60px, 10vh, 110px);
  background: var(--ink); border-top: 1px solid var(--edge);
}
.apply__in { position: relative; z-index: 2; max-width: 660px; }
.apply__title {
  font-family: var(--disp); font-weight: 600; text-transform: uppercase;
  font-size: clamp(28px, 3.8vw, 48px); line-height: 0.98; letter-spacing: -0.015em;
}
.apply__desc { margin: 18px 0 26px; color: var(--bone-2); max-width: 44ch; }
.apply__note { margin-top: 14px; font-size: 12px; color: var(--mute); }
.apply__beast {
  position: absolute; right: -8%; bottom: -14%; width: min(48vw, 480px); height: auto; z-index: 1; opacity: 0.34;
  -webkit-mask-image: linear-gradient(60deg, transparent 10%, #000 55%);
          mask-image: linear-gradient(60deg, transparent 10%, #000 55%);
  pointer-events: none;
}

/* ---------- футер ---------- */
.footer { padding: clamp(36px, 6vh, 60px) var(--pad) 26px; border-top: 1px solid var(--edge); }
.footer__top { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: center; }
.footer__logo { width: min(260px, 62vw); height: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__nav a { font-size: 14px; color: var(--bone-2); transition: color 0.2s; }
.footer__nav a:hover { color: var(--red); }
.footer__act { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.footer__ig {
  display: inline-flex; align-items: center; gap: 9px; color: var(--bone-2);
  font-size: 15px; transition: color 0.2s;
}
.footer__ig svg { flex: 0 0 auto; }
.footer__ig:hover { color: var(--red); }
.hero__foot a { color: var(--bone-2); border-bottom: 1px solid var(--edge); transition: color 0.2s, border-color 0.2s; }
.hero__foot a:hover { color: var(--red); border-color: var(--red); }

.footer__bottom {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--edge);
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between;
  font-size: 12px; color: var(--mute);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__meta-note { margin-top: 16px; font-size: 11.5px; line-height: 1.5; color: var(--mute); max-width: 68ch; }
.footer__legal a { color: var(--bone-2); }
.footer__legal a:hover { color: var(--bone); }

/* ---------- reveal (blur-in) ---------- */
html.js .reveal { opacity: 0; transform: translateY(20px); filter: blur(7px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; filter: blur(0); }

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
  .stage { grid-template-columns: 1fr; }
  .take { grid-template-columns: 1fr; }
  .take__side { position: static; }
  .hero__beast { opacity: 0.3; width: 86vw; right: -22%; }
  .captains__in { margin-left: 0; }
}
@media (max-width: 900px) {
  .seal { display: none; }
}
@media (max-width: 720px) {
  .nav__cta { display: none; }
  .about__col { margin-left: 0; }
  .hero__nums { gap: 18px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  html.js .reveal { opacity: 1; transform: none; filter: none; }
  .num--ringed .num__ring path { stroke-dashoffset: 0; }
}
