/* Главная страница. */

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* мобильное меню главной */
@media (max-width: 960px) {
  .topbar { gap: 12px; }
  .topbar .header-play { margin-left: auto; }
  .mobile-menu { display: grid; }
  .topbar nav {
    position: fixed;
    inset: var(--bar) 0 auto 0;
    display: grid;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 var(--r) var(--r);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s, transform .3s var(--out), visibility 0s .3s;
  }
  .topbar nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .topbar nav a { padding: 13px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .topbar nav a::after { display: none; }
  .topbar nav a.current { color: var(--accent); }
}

/* ---------- первый экран ---------- */

.hero { position: relative; overflow: hidden; isolation: isolate; }

/* видео с сервера на фоне первого экрана */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  pointer-events: none;
  /* лёгкий запас по краям, чтобы сдвиг за курсором не открывал фон */
  scale: 1.04;
  translate: calc(var(--px, 0) * -18px) calc(var(--py, 0) * -10px);
  transition: translate .8s var(--out);
  animation: video-in 1.4s ease-out both;
}
@keyframes video-in { from { opacity: 0; transform: scale(1.04); } }
/* два слоя видео плавно сменяют друг друга */
.hero-video { animation-fill-mode: backwards; transition: opacity 1.2s ease, translate .8s var(--out); }
.hero-video:not(.is-on) { opacity: 0; }

/* затемнение: слева плотнее, чтобы читался текст; снизу плавный переход в страницу */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, #0a0e1ff2 0%, #0a0e1fd9 32%, #0a0e1f8c 62%, #0a0e1f73 100%),
    linear-gradient(0deg, var(--ink) 0%, #0a0e1f00 30%),
    linear-gradient(180deg, #0a0e1fb3 0%, #0a0e1f00 22%);
}

/* медленные солнечные лучи поверх видео */
.hero-rays {
  position: absolute;
  inset: -20% -10% 20% 30%;
  z-index: -1;
  pointer-events: none;
  background: repeating-conic-gradient(from 200deg at 85% 0%, #fff4d61f 0deg 3deg, #fff4d600 3deg 9deg);
  -webkit-mask-image: radial-gradient(ellipse at 85% 0%, #000 0%, #0000 70%);
  mask-image: radial-gradient(ellipse at 85% 0%, #000 0%, #0000 70%);
  mix-blend-mode: screen;
  animation: rays-sway 14s ease-in-out infinite alternate;
}
@keyframes rays-sway {
  from { transform: rotate(-2deg); opacity: .55; }
  to { transform: rotate(3deg); opacity: 1; }
}

.embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 620px);
  align-items: center;
  min-height: min(760px, 100svh - var(--bar) - 110px);
  padding: 56px 0 40px;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  animation: rise .7s var(--out) both;
}
.free-tag {
  position: relative;
  overflow: hidden;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 12px/1.4 var(--display);
}
/* по плашке раз в несколько секунд пробегает блик */
.free-tag::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 30%;
  background: #ffffffb3;
  transform: skewX(-20deg);
  animation: tag-shine 4.5s ease-in-out 1.2s infinite;
}
@keyframes tag-shine { 0%, 70% { left: -40%; } 100% { left: 130%; } }
.hero-copy > p b { color: var(--accent); font-weight: 650; }
.stat-free dt { color: var(--accent); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 { font-size: clamp(31px, 3.9vw, 50px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero h1 .ln > span { display: block; white-space: nowrap; animation: line-up .9s var(--out) both; animation-delay: calc(var(--n) * 90ms + 80ms); }
.hero h1 em { font-style: normal; color: var(--accent); }
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.hero-copy > p:not(.hero-note) { max-width: 30em; margin-top: 22px; font-size: 19px; animation: rise .8s var(--out) .5s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; animation: rise .8s var(--out) .62s both; }


.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  gap: 56px;
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}
.stats div { display: grid; gap: 2px; }
.stats dt { color: var(--text); font: 600 30px/1.2 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats dd { color: var(--muted); font-size: 14px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; min-height: min(620px, 100svh - var(--bar) - 150px); padding: 40px 0 28px; }
  .stats { gap: 28px; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 18px 14px; }
  .stats dt { font-size: 23px; }
  .stats dd { font-size: 13px; }
  .hero-actions > * { flex: 1 1 100%; }
}

/* ---------- секции ---------- */

.section { padding-top: 112px; }

/* секция с видео на фоне: полоса на всю ширину окна, края плавно уходят в фон страницы */
.has-media { position: relative; isolation: isolate; padding-bottom: 96px; }
.section-media {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  overflow: hidden;
  transform: translateX(-50%);
  pointer-events: none;
}
.section-media video { width: 100%; height: 100%; object-fit: cover; }
.section-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--ink) 0%, #0a0e1fa6 18%, #0a0e1f99 82%, var(--ink) 100%),
    linear-gradient(90deg, #0a0e1f99, #0a0e1f1a 60%, #0a0e1f66);
}

/* видео внутри блока «Заходи» */
.join { position: relative; isolation: isolate; overflow: hidden; }
.join-media { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.join-media video { width: 100%; height: 100%; object-fit: cover; }
.join-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0a0e1ff0 0%, #0a0e1fcc 45%, #0a0e1f80 100%);
}
.section h2 { font-size: clamp(27px, 3.5vw, 42px); line-height: 1.12; letter-spacing: -.035em; }
.lead { max-width: 38em; margin-top: 16px; font-size: 18px; }

.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--out) calc(var(--i, 0) * 70ms), transform .7s var(--out) calc(var(--i, 0) * 70ms);
}

/* что есть на сервере */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.feature {
  display: grid;
  grid-template-rows: 150px auto 1fr;
  gap: 8px;
  overflow: hidden;
  padding: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink-2);
  color: var(--soft);
  text-decoration: none;
  transition: border-color .25s, transform .35s var(--out);
}
.feature:hover { border-color: var(--accent-lo); transform: translateY(-3px); }
.feature img { width: 100%; height: 150px; margin-bottom: 10px; padding: 22px; object-fit: contain; background: #0b0f22; border-bottom: 1px solid var(--line); transition: transform .5s var(--out); }
.feature img.pixel { image-rendering: pixelated; }
.feature img.photo { padding: 0; object-fit: cover; }
.feature:hover img.photo { transform: scale(1.04); }
.feature h3 { padding: 0 22px; color: var(--text); font-size: 18px; letter-spacing: -.015em; }
.feature p { padding: 0 22px; font-size: 15px; }
.feature code { color: var(--text); font: 14px var(--mono); }
.features-more { display: inline-flex; gap: 8px; margin-top: 22px; color: var(--accent); font-weight: 600; text-decoration: none; }
.features-more:hover span { transform: translateX(4px); }
.features-more span { transition: transform .25s var(--out); }
/* две главные фишки шире остальных: 13 карточек ровно заполняют 5 рядов по 3 */
.feature.wide { grid-column: span 2; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feature.wide { grid-column: auto; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* галерея */
.slider-stage { position: relative; margin-top: 40px; }
/* персонаж лежит на верхнем краю рамки: нижние 18% холста заходят на рамку */
.lounger {
  position: absolute;
  right: 7%;
  bottom: 100%;
  z-index: 2;
  width: 420px;
  height: 260px;
  transform: translateY(18%);
  -webkit-tap-highlight-color: transparent;
  outline-offset: -8px;
  opacity: 0;
  transition: opacity .8s var(--out) .3s;
}
.slider-stage:has(.slider.is-in) .lounger, .no-js .lounger { opacity: 1; }
@media (max-width: 760px) {
  .slider-stage { margin-top: 112px; }
  .lounger { right: 0; width: 240px; height: 149px; }
}
.slider {
  --slide-time: 5s;
  position: relative;
  /* 3:2 — середина между почти квадратными и широкими скриншотами, чтобы обрезать меньше */
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink-2);
  outline-offset: 4px;
  touch-action: pan-y;
  user-select: none;
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility 0s .9s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; }

/* кадр заполняет рамку целиком, без полей по бокам */
.slide-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  -webkit-user-drag: none;
}
.slide.is-active .slide-img { animation: slide-drift calc(var(--slide-time) + 1.5s) ease-out both; }
@keyframes slide-drift { from { transform: scale(1.06); } to { transform: scale(1); } }

.slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 24px 20px;
  background: linear-gradient(0deg, #0a0e1fd9, #0a0e1f00);
  color: var(--text);
  font: 600 18px/1.3 var(--display);
  letter-spacing: -.01em;
}
.slide.is-active figcaption { animation: rise .7s var(--out) .25s both; }

.slider-count {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #0a0e1fb3;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--soft);
  font: 14px var(--mono);
}
.slider-count b { color: var(--text); font-weight: 600; }

.slider-btn {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 1px solid #ffffff24;
  border-radius: 50%;
  background: #0a0e1fa6;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text);
  opacity: 0;
  transition: opacity .25s, background-color .2s, transform .3s var(--out);
}
.slider-btn.prev { left: 16px; transform: translateX(-6px); }
.slider-btn.next { right: 16px; transform: translateX(6px); }
.slider-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.slider:hover .slider-btn, .slider:focus-within .slider-btn { opacity: 1; transform: none; }
.slider-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.slider-btn:active { transform: scale(.94); }
@media (hover: none) { .slider-btn { opacity: 1; transform: none; } }

/* полоска таймера автопрокрутки */
.slider-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #ffffff14; }
.slider-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.slider-bar i.is-running { animation: slide-timer var(--slide-time) linear forwards; }
.slider.is-paused .slider-bar i { animation-play-state: paused; }
@keyframes slide-timer { to { transform: scaleX(1); } }

.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  border-radius: var(--r-sm);
  opacity: .5;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: opacity .25s, outline-color .25s, transform .3s var(--out);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--out); }
.thumb:hover { opacity: .85; }
.thumb:hover img { transform: scale(1.06); }
.thumb[aria-current="true"] { opacity: 1; outline-color: var(--accent); }

@media (max-width: 640px) {
  .slider { aspect-ratio: 4 / 3; }
  .slide figcaption { padding: 36px 16px 14px; font-size: 15px; }
  .slider-btn { width: 40px; height: 40px; margin-top: -20px; }
  .slider-btn.prev { left: 10px; }
  .slider-btn.next { right: 10px; }
  .slider-count { top: 10px; right: 10px; font-size: 12px; }
  .thumbs { gap: 6px; }
}

/* шаги */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 44px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); overflow: hidden; }
.step { position: relative; display: grid; gap: 10px; align-content: start; padding: 28px 28px 30px; min-width: 0; }
.step + .step { border-left: 1px solid var(--line); }
.step-n { color: var(--accent); font: 600 14px/1 var(--display); }
.step h3 { font-size: 20px; letter-spacing: -.02em; margin-top: 6px; }
.step p { font-size: 16px; }
.step code { color: var(--text); font: 15px var(--mono); overflow-wrap: anywhere; }

/* маленькие макеты игрового интерфейса внутри шагов */
.mc { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--ink); font-size: 14px; line-height: 1.3; color: var(--soft); }
.mc-btn {
  display: block;
  padding: 10px;
  border-radius: var(--r-sm);
  background: var(--ink-3);
  color: var(--text);
  text-align: center;
  font-weight: 600;
}
.step.is-in .mc-btn { animation: mc-press 3.2s ease-in-out 1s infinite; }
@keyframes mc-press {
  0%, 30%, 62%, 100% { background: var(--ink-3); color: var(--text); transform: none; }
  40%, 52% { background: var(--accent); color: var(--accent-ink); transform: scale(.97); }
}
/* настоящая ссылка на Discord в первом шаге */
.mc-discord { display: flex; align-items: center; justify-content: center; gap: 8px; background: #5865f2; color: #fff; text-decoration: none; transition: background .2s, transform .2s var(--out); }
.mc-discord svg { width: 18px; height: 18px; fill: currentColor; }
.step.is-in .mc-discord { animation: none; }
.mc-discord:hover { background: #4752c4; }
.mc-discord:active { transform: scale(.97); }
.mc-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.mc-input { display: flex; align-items: center; min-height: 38px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--ink-2); color: var(--text); font: 14px var(--mono); white-space: nowrap; overflow: hidden; }
.mc-input i { width: 2px; height: 16px; margin-left: 2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.mc-load { display: block; margin-bottom: 10px; text-align: center; }
.mc-bar { height: 8px; border-radius: 999px; background: var(--ink-3); overflow: hidden; }
.mc-bar b { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--live); }
.step.is-in .mc-bar b { animation: mc-fill 3.6s ease-in-out .6s infinite; }
@keyframes mc-fill { 0% { width: 0; } 70%, 100% { width: 100%; } }

/* вкладки */
.tabs { position: relative; display: flex; gap: 0; margin-top: 38px; border-bottom: 1px solid var(--line); }
.tab { padding: 14px 22px; color: var(--muted); font-size: 16px; font-weight: 600; transition: color .2s; }
.tab:hover, .tab[aria-selected="true"] { color: var(--text); }
.tab-ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; border-radius: 2px; background: var(--accent); transition: transform .45s var(--out), width .45s var(--out); }

.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 40px; }
.panel.is-swap > * { animation: rise .55s var(--out) both; }
.panel.is-swap > :nth-child(2) { animation-delay: .08s; }
.panel-visual { display: grid; place-items: center; min-height: 340px; padding: 28px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); }
/* Egor_10 сидит на верхнем краю панели TPS: ноги (нижние 40% холста) свисают внутрь панели */
.has-sitter { position: relative; padding-top: 120px; }
.sitter {
  position: absolute;
  right: 8%;
  bottom: 100%;
  z-index: 2;
  width: 186px;
  height: 248px;
  transform: translateY(40%);
  -webkit-tap-highlight-color: transparent;
  outline-offset: -8px;
}
@media (max-width: 560px) { .has-sitter { padding-top: 92px; } .sitter { width: 120px; height: 160px; right: auto; left: 50%; transform: translate(-50%, 40%); } }
.panel-copy h3 { font-size: clamp(21px, 2.3vw, 28px); line-height: 1.2; letter-spacing: -.03em; }
.panel-copy p { margin-top: 14px; }
.panel-copy ul { list-style: none; margin-top: 18px; padding: 0; }
.panel-copy li { position: relative; padding: 11px 0 11px 22px; border-top: 1px solid var(--line); font-size: 16px; }
.panel-copy li::before { content: ""; position: absolute; left: 0; top: 21px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* счётчик тиков */
.meter { width: 100%; max-width: 460px; display: grid; gap: 18px; }
.meter-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.meter-head b { color: var(--text); font: 600 40px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; transition: color .3s; }
.meter-head b small { font: 500 14px var(--body); letter-spacing: 0; color: var(--muted); }
.meter-head > span { color: var(--muted); font: 14px var(--mono); }
.meter[data-tps="15"] .meter-head b { color: #f0d48a; }
.meter[data-tps="10"] .meter-head b { color: var(--lag); }
.ticks { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; }
.ticks i { aspect-ratio: 1; border-radius: 4px; background: #222a47; }
.meter-pick { display: grid; }
.meter-pick button { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 10px 10px 10px 12px; border-top: 1px solid var(--line); border-left: 2px solid transparent; border-radius: 0 var(--r-sm) var(--r-sm) 0; text-align: left; font-size: 15px; color: var(--muted); transition: background-color .2s, border-color .2s, color .2s; }
.meter-pick button b { font: 600 14px/1.7 var(--mono); color: var(--soft); }
.meter-pick button:hover { background: #ffffff06; color: var(--soft); }
.meter-pick button[aria-pressed="true"] { border-left-color: var(--accent); background: var(--accent-wash); color: var(--text); }
.meter-pick button[aria-pressed="true"] b { color: var(--accent); }

/* пинг */
.route { width: 100%; max-width: 440px; display: grid; gap: 18px; }
.route-line { position: relative; display: flex; align-items: center; justify-content: space-between; }
.route-line::before { content: ""; position: absolute; left: 80px; right: 80px; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.route-line i { position: absolute; left: 84px; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px #8f9bff2e, 0 0 18px #8f9bff99; animation: packet 1.3s cubic-bezier(.6, 0, .4, 1) infinite alternate; }
@keyframes packet { to { left: calc(100% - 84px); } }
.route-node { position: relative; display: grid; place-items: center; width: 76px; height: 76px; background: var(--ink-3); border: 1px solid var(--line-2); border-radius: var(--r); }
.route-node svg { width: 44px; height: 44px; }
.route-caps { display: flex; justify-content: space-between; padding: 0 22px; color: var(--muted); font-size: 14px; }
.route-note { text-align: center; font-size: 15px; color: var(--muted); }

/* блок земли парит как выпавший предмет */
.drop { position: relative; width: 150px; height: 190px; }
.drop svg { width: 150px; height: 150px; animation: drop-bob 2.8s ease-in-out infinite; }
.drop::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 14px; border-radius: 50%; background: #000; filter: blur(5px); opacity: .45; animation: drop-shadow 2.8s ease-in-out infinite; }
@keyframes drop-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-18px) rotate(3deg); } }
@keyframes drop-shadow { 0%, 100% { transform: scaleX(1); opacity: .45; } 50% { transform: scaleX(.74); opacity: .25; } }

/* власть */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.role { padding-top: 20px; border-top: 1px solid var(--line-2); transition: border-color .3s; }
.role:hover { border-top-color: var(--accent); }
.role h3 { font-size: 19px; letter-spacing: -.02em; }
.role p { margin-top: 8px; font-size: 16px; }

.lawpath { margin-top: 48px; padding: 26px 28px 28px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); }
.lawpath > p { color: var(--muted); font-size: 14px; }
.lawpath ol { position: relative; list-style: none; padding: 0; margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lawpath ol::before, .lawpath ol::after { content: ""; position: absolute; left: 6px; right: calc(100% / 3 - 6px); top: 5px; height: 2px; background: var(--line-2); }
.lawpath ol::after { background: var(--accent); transform-origin: left; transform: scaleX(0); }
.lawpath li { position: relative; padding: 26px 16px 0 0; color: var(--muted); font-size: 16px; }
.lawpath li::before { content: ""; position: absolute; left: 0; top: 0; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-2); border: 2px solid var(--line-2); }
.lawpath li b { display: block; color: var(--text); font-weight: 600; }
.lawpath.is-in ol::after { animation: law-line 7s linear infinite; }
.lawpath.is-in li:nth-child(1)::before { animation: law-node-1 7s linear infinite; }
.lawpath.is-in li:nth-child(2)::before { animation: law-node-2 7s linear infinite; }
.lawpath.is-in li:nth-child(3)::before { animation: law-node-3 7s linear infinite; }
/* линия доходит до второй точки на 33% цикла и до третьей на 66% — точки загораются в эти моменты */
@keyframes law-line { 0% { transform: scaleX(0); } 66%, 92% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes law-node-1 { 0% { background: var(--ink-2); border-color: var(--line-2); } 1% { background: var(--accent); border-color: var(--accent); transform: scale(1.5); } 6%, 92% { background: var(--accent); border-color: var(--accent); transform: none; } 100% { background: var(--ink-2); border-color: var(--line-2); } }
@keyframes law-node-2 { 0%, 32% { background: var(--ink-2); border-color: var(--line-2); } 34% { background: var(--accent); border-color: var(--accent); transform: scale(1.5); } 39%, 92% { background: var(--accent); border-color: var(--accent); transform: none; } 100% { background: var(--ink-2); border-color: var(--line-2); } }
@keyframes law-node-3 { 0%, 65% { background: var(--ink-2); border-color: var(--line-2); } 67% { background: var(--accent); border-color: var(--accent); transform: scale(1.5); } 72%, 92% { background: var(--accent); border-color: var(--accent); transform: none; } 100% { background: var(--ink-2); border-color: var(--line-2); } }

.power-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.power-foot p { flex: 1 1 320px; font-size: 16px; color: var(--muted); }
.text-link { color: var(--accent); font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: 3px; transition: background-size .35s var(--out); }
.text-link:hover { background-size: 100% 2px; }

/* что это даёт */
.perks { list-style: none; padding: 0; margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.perk { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line); }
.perk img { width: 48px; height: 48px; image-rendering: pixelated; transition: transform .3s var(--out); }
.perk:hover img { animation: item-bob .9s ease-in-out infinite; }
@keyframes item-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.perk h3 { font-size: 18px; letter-spacing: -.02em; }
.perk p { margin-top: 4px; font-size: 16px; }

/* приглашение */
.join { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; margin-top: 112px; padding: 44px 48px; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(120% 140% at 100% 0, #8f9bff1a, transparent 55%), var(--ink-2); }
.join h2 { font-size: clamp(24px, 3vw, 34px); }
.join p { margin-top: 8px; }
.join .hero-actions { margin: 0; animation: none; }

/* подвал */
.footer { margin-top: 112px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, .7fr)); gap: 40px; padding: 56px 0 48px; }
.footer-top > div { display: grid; gap: 12px; align-content: start; justify-items: start; }
.footer-top b { margin-bottom: 4px; color: var(--text); font: 600 13px var(--display); }
.footer-top a:not(.logo) { transition: color .2s; }
.footer-top a:not(.logo):hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 22px 0 36px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-bottom span:last-child { margin-left: auto; }

@media (max-width: 960px) {
  .section, .join, .footer { margin-top: 0; }
  .section { padding-top: 80px; }
  .join { margin-top: 80px; padding: 32px 26px; }
  .footer { margin-top: 80px; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
  .panel { grid-template-columns: 1fr; gap: 28px; }
  .panel-visual { min-height: 0; }
  .roles { grid-template-columns: 1fr; gap: 24px; }
  .perks { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .footer-bottom span:last-child { margin-left: 0; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .tab { padding: 12px 12px; font-size: 15px; }
  .panel-visual { padding: 20px 16px; }
  .ticks { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .meter-pick button { grid-template-columns: 66px minmax(0, 1fr); }
  .lawpath { padding: 22px 18px; }
  .lawpath ol { grid-template-columns: 1fr; gap: 18px; }
  .lawpath ol::before, .lawpath ol::after { left: 5px; right: auto; top: 6px; bottom: 30px; width: 2px; height: auto; transform-origin: top; }
  .lawpath ol::after { transform: scaleY(0); }
  .lawpath li { padding: 0 0 0 28px; }
  .lawpath li::before { top: 6px; }
  @keyframes law-line { 0% { transform: scaleY(0); } 66%, 92% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) {
  .embers, .hero-rays { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
