/* GoldRust — стили сайта. Тёмная тема — единственная (фирменный стиль). */

@font-face {
  font-family: "Russo One";
  src: url("fonts/russo-one-cyrillic.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Russo One";
  src: url("fonts/russo-one-latin.woff2") format("woff2");
  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;
}

:root {
  color-scheme: dark;
  --bg: #0f0c09;
  --bg-2: #14100c;
  --panel: #1b1612;
  --panel-2: #231c16;
  --line: #3a2f24;
  --line-soft: #2a231c;
  --text: #efe6d8;
  --text-2: #c9bba6;
  --muted: #9a8b77;
  --gold: #e8b64c;
  --gold-hi: #f7d57f;
  --gold-lo: #a8761f;
  --rust: #d0612e;
  --rust-lo: #8e3a17;
  --series: #bb8a2c;          /* линия графика: проверена на контраст и яркость для тёмной подложки */
  --series-muted: #6b5a45;
  --ok: #58c46b;
  --bad: #e2574c;
  --discord: #5865f2;
  --radius: 16px;
  --display: "Russo One", "Arial Black", Impact, system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  overflow-x: hidden;
}
/* Лёгкое «зерно» поверх всего — чтобы тёмный фон не выглядел пластиковым. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .06;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
b, strong { font-weight: 650; color: var(--text); }
code, kbd {
  font-family: var(--mono);
  font-size: .9em;
  padding: .1em .4em;
  border-radius: 6px;
  background: #0b0907;
  border: 1px solid var(--line-soft);
  color: var(--gold-hi);
  white-space: nowrap;
}
kbd { color: var(--text); border-bottom-width: 2px; font-weight: 600; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.15; }
h2 { font-family: var(--display); font-size: clamp(30px, 4.6vw, 46px); letter-spacing: .01em; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 14px; border-radius: 10px; background: var(--gold); color: #1b1509; font-weight: 700;
}
.skip:focus { top: 12px; color: #1b1509; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 860px; }

/* --- кнопки ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border: 0; border-radius: 12px; cursor: pointer;
  font: 650 16px/1.2 var(--sans); letter-spacing: .01em; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn--lg { padding: 16px 30px; font-size: 18px; border-radius: 14px; }
.btn--sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; gap: 8px; }
.btn--gold {
  color: #1b1509;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #c9922c);
  box-shadow: 0 0 0 1px rgba(255, 220, 140, .35) inset, 0 10px 30px -10px rgba(232, 182, 76, .6);
}
.btn--gold:hover { color: #1b1509; filter: brightness(1.07); box-shadow: 0 0 0 1px rgba(255, 220, 140, .5) inset, 0 12px 36px -8px rgba(232, 182, 76, .8); }
.icon--solid { fill: currentColor; stroke: none; }
.btn--discord { color: #fff; background: var(--discord); box-shadow: 0 10px 30px -12px rgba(88, 101, 242, .7); }
.btn--discord:hover { color: #fff; background: #6975f5; }
.btn--discord .icon, .btn--light .icon { fill: currentColor; stroke: none; width: 1.3em; }
.btn--ghost { color: var(--text); background: transparent; box-shadow: 0 0 0 1px var(--line) inset; }
.btn--ghost:hover { color: var(--gold-hi); box-shadow: 0 0 0 1px var(--gold-lo) inset; }
.btn--light { color: #23272f; background: #fff; }
.btn--light:hover { color: #23272f; background: #eef0ff; }

/* --- навигация ---------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.nav--solid {
  background: rgba(15, 12, 9, .82);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav__inner { height: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font-family: var(--display); font-size: 21px; letter-spacing: .06em; color: var(--gold); }
.brand__name span { color: var(--rust); }
.nav__menu { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__menu > a:not(.btn) {
  padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-size: 15px; font-weight: 550;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav__menu > a:not(.btn):hover, .nav__menu > a.is-active { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav__menu .btn { margin-left: 8px; }
.badge {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 6px; color: var(--gold); background: rgba(232, 182, 76, .12); border: 1px solid rgba(232, 182, 76, .3);
}
.nav__toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: rgba(255, 255, 255, .06); cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between;
}
.nav__toggle span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s ease, opacity .2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- первый экран ------------------------------------------------------------ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 32px) 24px 96px; overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -3; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; transform: scale(1.04); animation: drift 30s ease-in-out infinite alternate; }
.hero::before {  /* затемнение под текст: центр темнее, низ уходит в фон страницы */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(12, 9, 6, .62) 0%, rgba(12, 9, 6, .25) 70%, rgba(12, 9, 6, 0) 100%),
    linear-gradient(180deg, rgba(15, 12, 9, .55) 0%, rgba(15, 12, 9, .1) 30%, rgba(15, 12, 9, .35) 70%, var(--bg) 100%);
}
@media (max-aspect-ratio: 4/5) { .hero__bg img { object-position: 58% 50%; } }
.hero__embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__content { max-width: 1100px; text-align: center; display: flex; flex-direction: column; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(15, 12, 9, .6); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 14px; font-weight: 600; color: var(--text-2);
}
.pill__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); position: relative; }
.pill[data-state="online"] .pill__dot { background: var(--ok); }
.pill[data-state="online"] .pill__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: ping 2s ease-out infinite;
}
.pill[data-state="offline"] .pill__dot { background: var(--bad); }
.pill[data-state="loading"] .pill__dot { animation: blink 1s ease-in-out infinite; }
.pill__text b { color: var(--text); }

.hero__title {
  margin: 22px 0 10px;
  font-family: var(--display);
  font-size: clamp(50px, 11.5vw, 150px);
  line-height: .95;
  letter-spacing: .04em;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .55));
}
.hero__title span { display: inline-block; }
.t-gold, .t-rust { color: var(--gold); }
.t-rust { color: var(--rust); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .t-gold, .t-rust {
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    background-size: 250% 100%;
    animation: shine 7s ease-in-out infinite;
  }
  .t-gold { background-image: linear-gradient(100deg, #b98526 0%, #f7d57f 18%, #e8b64c 30%, #fff1c4 38%, #e8b64c 46%, #a8761f 64%, #f2c96a 82%, #b98526 100%); }
  .t-rust { background-image: linear-gradient(100deg, #8e3a17 0%, #e07a44 18%, #c4531f 30%, #ffc49a 38%, #c4531f 46%, #7d3212 64%, #df7040 82%, #8e3a17 100%); }
}
.hero__lead { max-width: 640px; font-size: clamp(17px, 2.1vw, 20px); color: var(--text-2); text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.connect { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; color: var(--text-2); font-size: 15px; }
.connect__label { text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.connect__box { display: inline-flex; align-items: center; gap: 6px; padding: 5px 5px 5px 6px; border-radius: 12px; background: rgba(11, 9, 7, .72); border: 1px solid var(--line); }
.connect__box code { border: 0; background: none; font-size: 15px; user-select: all; -webkit-user-select: all; }
.copy {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 0; border-radius: 8px; cursor: pointer;
  background: rgba(232, 182, 76, .14); color: var(--gold-hi); font: 600 13px/1 var(--sans);
}
.copy:hover { background: rgba(232, 182, 76, .24); }
.copy[hidden] { display: none; }
.copy.is-done { color: var(--ok); background: rgba(88, 196, 107, .14); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 28px; height: 44px; border-radius: 16px; border: 2px solid rgba(239, 230, 216, .4);
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s ease-in-out infinite; }

/* --- секции ------------------------------------------------------------------ */
.section { padding: 96px 0; position: relative; }
.section + .section { padding-top: 32px; }
.section__head { margin-bottom: 36px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }

/* --- плитки статуса ------------------------------------------------------------ */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 196px;
  padding: 22px 22px 20px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft);
}
.tile::before { /* тонкая золотая кромка сверху */
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 182, 76, .55), transparent);
}
.tile__label { font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tile__value { font-size: 44px; font-weight: 650; line-height: 1.1; letter-spacing: -.01em; color: var(--text); }
.tile__of, .tile__unit { font-size: 22px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tile__sub { color: var(--text-2); font-size: 15px; }
.tile__foot { margin-top: auto; color: var(--muted); font-size: 13px; }
.tile__link { margin-top: auto; font-size: 14px; font-weight: 600; }
.tile__link::after { content: " →"; }
.spark { margin-top: auto; width: 100%; height: 44px; overflow: visible; }
.spark path { fill: none; stroke: var(--series-muted); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark circle { fill: var(--series); stroke: var(--panel); stroke-width: 2; vector-effect: non-scaling-stroke; }

.countdown { display: flex; gap: 8px; margin: 2px 0 2px; }
.countdown span { display: flex; flex-direction: column; align-items: center; min-width: 0; flex: 1; padding: 8px 0 6px; border-radius: 10px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line-soft); }
.countdown b { font-size: 28px; font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--gold-hi); }
.countdown i { font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cycle { position: relative; height: 6px; margin-top: 8px; border-radius: 3px; background: #3a2d1c; overflow: hidden; }
.cycle__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--gold-lo), var(--gold)); transition: width .6s ease; }
.tile--wipe.is-wipe .countdown b { color: var(--rust); }

/* --- график онлайна ------------------------------------------------------------ */
.online { margin-top: 56px; }
.online__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.online__head h3 { font-family: var(--display); font-weight: 400; font-size: 26px; margin-bottom: 4px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-soft); }
.seg button {
  border: 0; cursor: pointer; padding: 8px 14px; border-radius: 9px; background: transparent;
  color: var(--text-2); font: 600 14px/1 var(--sans);
}
.seg button:hover { color: var(--text); }
.seg button[aria-checked="true"] { color: #1b1509; background: var(--gold); }
.chart-card { padding: 20px 20px 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); }
.chart { position: relative; height: 268px; outline: none; transition: opacity .2s ease; touch-action: pan-y; }
.chart.is-loading { opacity: .45; }
.chart:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 6px; border-radius: 8px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .grid line { stroke: var(--line-soft); stroke-width: 1; shape-rendering: crispEdges; }
.chart .axis text { fill: var(--muted); font: 12px var(--sans); font-variant-numeric: tabular-nums; }
.chart .area { fill: var(--series); fill-opacity: .1; stroke: none; }
.chart .line { fill: none; stroke: var(--series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .end { fill: var(--series); stroke: var(--panel); stroke-width: 2; }
.chart .end-label { fill: var(--text); font: 600 13px var(--sans); }
.chart .cross { stroke: #6b5a45; stroke-width: 1; shape-rendering: crispEdges; }
.chart .hover-dot { fill: var(--series); stroke: var(--panel); stroke-width: 2; }
.chart .empty { fill: var(--muted); font: 15px var(--sans); }
.chart__tip {
  position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none; min-width: 120px;
  padding: 8px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); font-size: 13px; color: var(--text-2); white-space: nowrap;
}
.chart__tip b { display: block; font-size: 18px; font-weight: 650; color: var(--text); }
.chart__tip .key { display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; background: var(--series); border-radius: 1px; }
.chart__note { margin: 6px 0 2px; font-size: 14px; color: var(--muted); }
.chart__table { margin-top: 8px; font-size: 14px; color: var(--text-2); }
.chart__table summary { cursor: pointer; color: var(--muted); padding: 6px 0; width: max-content; }
.chart__table summary:hover { color: var(--text); }
.chart__table table { width: 100%; max-width: 420px; border-collapse: collapse; margin: 8px 0 10px; font-variant-numeric: tabular-nums; }
.chart__table th, .chart__table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line-soft); }
.chart__table th { color: var(--muted); font-weight: 600; }
.chart__table td:last-child, .chart__table th:last-child { text-align: right; }

/* --- карта ----------------------------------------------------------------------- */
.section--map { background: radial-gradient(ellipse 60% 70% at 75% 50%, rgba(232, 182, 76, .07), transparent 70%); }
.map { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.map__text p { color: var(--text-2); margin-top: 16px; font-size: 17px; }
.map__text p.small { font-size: 14px; color: var(--muted); }
.map__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.map__frame {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; cursor: zoom-in;
  border-radius: 20px; overflow: hidden; border: 1px solid rgba(232, 182, 76, .35);
  background: #0b0907 radial-gradient(circle at 50% 50%, #1d1812, #0b0907);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 6px rgba(232, 182, 76, .05), 0 0 60px -10px rgba(232, 182, 76, .2);
}
.map__frame[disabled] { cursor: default; }
/* Картинка не прячется через hidden: ленивую (loading=lazy) невидимую картинку браузер не грузит вовсе. */
.map__frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease, transform .6s ease; }
.map__frame img.is-loaded { opacity: 1; }
.map__frame:not([disabled]):hover img { transform: scale(1.03); }
.map__placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: var(--muted); text-align: center; }
.map__zoom {
  position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(15, 12, 9, .75); color: var(--gold-hi); border: 1px solid var(--line); font-size: 20px;
}
.map__frame[disabled] .map__zoom { display: none; }

.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #07060a; color: var(--text); overflow: hidden; }
.viewer::backdrop { background: rgba(0, 0, 0, .8); }
.viewer__stage { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; }
.viewer__stage.is-drag { cursor: grabbing; }
.viewer__stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; image-rendering: auto; }
.viewer__bar { position: absolute; right: 16px; top: 16px; display: flex; gap: 8px; }
.viewer__bar button {
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  background: rgba(15, 12, 9, .85); color: var(--text); font: 600 22px/1 var(--sans);
}
.viewer__bar button:hover { color: var(--gold-hi); border-color: var(--gold-lo); }
.viewer__hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 8px 14px; border-radius: 10px; background: rgba(15, 12, 9, .8); color: var(--muted); font-size: 13px; pointer-events: none; white-space: nowrap; }

/* --- особенности --------------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature {
  padding: 24px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft);
  transition: border-color .25s ease, transform .25s ease, background-color .25s ease;
}
.feature:hover { border-color: rgba(232, 182, 76, .35); transform: translateY(-3px); background: var(--panel-2); }
.feature__icon {
  width: 48px; height: 48px; padding: 11px; margin-bottom: 16px; border-radius: 12px;
  fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  background: rgba(232, 182, 76, .1); box-shadow: 0 0 0 1px rgba(232, 182, 76, .22) inset;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 15px; }
.commands { margin-top: 40px; padding: 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px dashed var(--line); }
.commands h3 { font-family: var(--display); font-weight: 400; font-size: 22px; margin-bottom: 18px; }
.cmd-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.cmd-list div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.cmd-list dt { flex: none; }
.cmd-list dd { margin: 0; color: var(--text-2); font-size: 15px; }

/* --- как начать --------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); counter-increment: step; }
.step::before {
  content: counter(step); display: block; margin-bottom: 14px;
  font-family: var(--display); font-size: 54px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--gold);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15px; }
.step__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: 15px; }

/* --- правила ------------------------------------------------------------------ */
.rules { list-style: none; margin: 0; padding: 0; counter-reset: rule; columns: 2; column-gap: 40px; }
.rules li {
  position: relative; break-inside: avoid; margin-bottom: 18px; padding: 16px 18px 16px 62px;
  border-radius: 14px; background: var(--panel); border: 1px solid var(--line-soft); color: var(--text-2); counter-increment: rule;
}
.rules li::before {
  content: counter(rule, decimal-leading-zero); position: absolute; left: 18px; top: 14px;
  font-family: var(--display); font-size: 22px; color: var(--gold);
}

/* --- магазин --------------------------------------------------------------------- */
.shop {
  position: relative; display: flex; align-items: center; gap: 28px; padding: 36px; border-radius: 20px; overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(232, 182, 76, .05) 0 14px, transparent 14px 28px), var(--panel);
  border: 1px solid rgba(232, 182, 76, .28);
}
.shop__icon { flex: none; width: 76px; height: 76px; padding: 18px; border-radius: 20px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; background: rgba(232, 182, 76, .1); }
.shop h2 { margin-bottom: 8px; }
.shop p:last-child { color: var(--text-2); max-width: 560px; }

/* --- Discord ------------------------------------------------------------------ */
.dc {
  position: relative; display: flex; align-items: center; gap: 32px; padding: 40px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, #4752c4 0%, #5865f2 55%, #7b6cf6 100%);
  box-shadow: 0 30px 80px -30px rgba(88, 101, 242, .7);
}
.dc::after { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .08); z-index: -1; }
.dc__logo { flex: none; width: 84px; height: 64px; color: #fff; }
.dc__text { flex: 1; min-width: 0; }
.dc__text h2 { color: #fff; font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 8px; }
.dc__text p { color: rgba(255, 255, 255, .88); }
.dc__stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 15px; }
.dc__stats b { color: #fff; font-size: 18px; margin-right: 4px; }
.dc__stats .dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: #3ba55d; box-shadow: 0 0 0 3px rgba(59, 165, 93, .3); }
.dc__stats[hidden] { display: none; }

/* --- вопросы ------------------------------------------------------------------ */
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 20px 44px 20px 0; font-size: 18px; font-weight: 600; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary:hover { color: var(--gold-hi); }
.faq details p { padding: 0 0 22px; color: var(--text-2); max-width: 720px; }

/* --- подвал --------------------------------------------------------------------- */
.footer { margin-top: 40px; padding: 40px 0 48px; border-top: 1px solid var(--line-soft); background: var(--bg-2); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; }
.brand--small .brand__mark { width: 28px; height: 28px; }
.brand--small .brand__name { font-size: 17px; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--text-2); }
.footer__links a:hover { color: var(--gold-hi); }
.footer__legal { margin-left: auto; color: var(--muted); font-size: 13px; text-align: right; }

/* --- 404 ------------------------------------------------------------------------ */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 24px; background: radial-gradient(ellipse at 50% 40%, #241a10, var(--bg) 70%); }
.notfound__code { font-family: var(--display); font-size: clamp(90px, 22vw, 200px); line-height: 1; color: var(--gold); text-shadow: 0 10px 40px rgba(232, 182, 76, .25); }
.notfound h1 { font-family: var(--display); font-size: clamp(26px, 5vw, 38px); margin: 10px 0 12px; }
.notfound p { color: var(--text-2); margin-bottom: 28px; }

/* --- появление при прокрутке ---------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.09) translate3d(-1.2%, -1%, 0); } }

/* --- адаптив ------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; background: rgba(15, 12, 9, .97); border-bottom: 1px solid var(--line-soft);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
  }
  .nav--open .nav__menu { transform: none; opacity: 1; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
  .nav--open { background: rgba(15, 12, 9, .97); }
  .nav__menu > a:not(.btn) { padding: 12px 14px; font-size: 17px; }
  .nav__menu .btn { margin: 10px 0 0; }
  .map { grid-template-columns: 1fr; gap: 32px; }
  .map__frame { max-width: 620px; }
  .steps { grid-template-columns: 1fr; }
  .rules { columns: 1; }
  .cmd-list { grid-template-columns: 1fr; }
  .dc { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  :root { --nav-h: 58px; }
  .wrap, .nav__inner { padding: 0 16px; }
  .section { padding: 72px 0; }
  .tiles, .features { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .hero { padding: calc(var(--nav-h) + 24px) 16px 88px; }
  .hero__actions { width: 100%; flex-direction: column; align-items: stretch; }
  .btn--lg { padding: 15px 22px; font-size: 17px; }
  .connect__box { max-width: 100%; }
  .connect__box code { font-size: 13px; overflow-x: auto; }
  .chart-card { padding: 14px 12px 10px; }
  .chart { height: 230px; }
  .shop { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .dc { padding: 30px 22px; }
  .dc .btn { width: 100%; }
  .footer__legal { margin-left: 0; text-align: left; }
  .viewer__hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* --- магазин открыт (26.09.2026): блок на главной с кнопкой --- */
.shop__text { flex: 1; min-width: 0; }
.shop__btn { flex: none; }
@media (max-width: 640px) { .shop__btn { width: 100%; } }

/* --- живой мир и карма (27.09.2026) --- */
.section__lead { max-width: 780px; margin-top: 14px; color: var(--text-2); font-size: 17px; }
.karma { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.karma__title { font-family: var(--display); font-weight: 400; font-size: 22px; margin-bottom: 14px; }
.karma__hint { margin-top: 12px; color: var(--muted); font-size: 14px; }
.karma-levels { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.karma-levels li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px;
  border-radius: 14px; background: var(--panel); border: 1px solid var(--line-soft); border-left: 4px solid var(--c);
}
.karma-levels b { color: var(--c); font-weight: 650; }
.karma-levels span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.karma-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.karma-box { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); }
.karma-box h3 { margin-bottom: 10px; }
.karma-list { list-style: none; margin: 0; padding: 0; }
.karma-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 8px 0;
  border-bottom: 1px solid var(--line-soft); color: var(--text-2); font-size: 15px;
}
.karma-list li:last-child { border-bottom: 0; }
.karma-list .minus, .karma-list .plus { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.karma-list .minus { color: var(--bad); }
.karma-list .plus { color: var(--ok); }
.karma-notes { margin-top: 16px; display: grid; gap: 12px; }
.karma-notes p { padding: 16px 18px; border-radius: 14px; background: var(--bg-2); border: 1px dashed var(--line); color: var(--text-2); font-size: 15px; }
.karma-notes b { color: var(--text); }
.rules-note { margin-top: 6px; max-width: 820px; color: var(--text-2); }
@media (max-width: 920px) { .karma { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .karma-cols { grid-template-columns: 1fr; } .karma-box { padding: 18px; } }
/* --- захват точек (28.09.2026) --- */
.capture-notes { margin-top: 24px; }
.yield { margin-top: 16px; padding: 0 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); }
.yield summary {
  list-style: none; cursor: pointer; position: relative; padding: 18px 44px 18px 0; font-size: 18px; font-weight: 600; color: var(--text);
}
.yield summary::-webkit-details-marker { display: none; }
.yield summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .25s ease;
}
.yield[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.yield summary:hover { color: var(--gold-hi); }
.yield table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 15px; }
.yield th, .yield td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.yield th { color: var(--muted); font-weight: 600; font-size: 14px; }
.yield td:first-child { color: var(--text); white-space: nowrap; padding-right: 24px; }
.yield td:last-child { color: var(--text-2); }
.yield p { margin: 4px 0 20px; }
@media (max-width: 640px) { .yield { padding: 0 16px; } .yield td:first-child { white-space: normal; padding-right: 12px; } }
