/* Сайт ModLaunch 9 — «Витрина». Один акцент, игры на первом плане, без коробок в коробках.
   Шрифты: Onest (текст), Unbounded (заголовки), JetBrains Mono (код). */

:root {
  --bg: #0b0c10;
  --bg-2: #0e1015;
  --surface: #12141a;
  --surface-2: #191b23;
  --surface-3: #22252f;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #eceef4;
  --muted: #9aa2b4;
  --faint: #6c7385;
  --accent: #6e4bff;
  --accent-hi: #8467ff;
  --accent-2: #b9a8ff;
  --accent-soft: rgba(110, 75, 255, 0.16);
  --teal: #2bb3c0;
  --gold: #f2b84b;
  --good: #3dd68c;
  --bad: #ff6b6b;
  --shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.75);
  --r: 12px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: 'Onest', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --display: 'Unbounded', 'Onest', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;
  color-scheme: dark;
}
[data-theme='light'] {
  --bg: #f4f5f8;
  --bg-2: #eceef3;
  --surface: #ffffff;
  --surface-2: #f0f1f6;
  --surface-3: #e4e6ee;
  --line: rgba(18, 22, 36, 0.08);
  --line-2: rgba(18, 22, 36, 0.15);
  --text: #12141c;
  --muted: #565d6f;
  --faint: #868c9c;
  --accent-2: #5a38f0;
  --accent-soft: rgba(110, 75, 255, 0.1);
  --shadow: 0 30px 70px -30px rgba(30, 30, 60, 0.35);
  color-scheme: light;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; text-align: center; letter-spacing: -0.03em; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
code, pre, kbd { font-family: var(--mono); }
kbd { padding: 2px 7px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--line-2); font-size: 0.85em; }
::selection { background: rgba(110, 75, 255, 0.4); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
section { padding-block: 96px; }
.sub { max-width: 640px; margin: 14px auto 0; color: var(--muted); text-align: center; font-size: 17px; }
.lead { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0; }
.eyebrow {
  display: block; text-align: center; margin-bottom: 14px; color: var(--accent-2);
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
/* В 9.0 без радужного текста: акцент — одним цветом. */
.grad { color: var(--accent-2); }

/* Заголовок раздела слева: eyebrow, h2, подпись и действие справа. */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.head h2, .head .eyebrow, .head .sub { text-align: left; margin-inline: 0; }
.head .sub { margin-top: 12px; }
.head__link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-weight: 600; white-space: nowrap; }
.head__link:hover { color: var(--text); }

/* Фон прошлых версий больше не рисуется. */
.bg { display: none; }

/* --- кнопки --- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 20px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--surface-2); font-weight: 600; cursor: pointer;
  transition: transform 0.2s var(--spring), box-shadow 0.25s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent-2); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn small { display: block; font-size: 12px; font-weight: 500; opacity: 0.8; }
.btn--primary { background: var(--accent); border-color: transparent; color: #fff; box-shadow: 0 12px 32px -12px rgba(110, 75, 255, 0.9); }
.btn--primary:hover { background: var(--accent-hi); border-color: transparent; box-shadow: 0 18px 40px -12px rgba(110, 75, 255, 1); }
.btn--ghost { background: transparent; }
.btn--light { background: #eceef4; border-color: transparent; color: #0b0c10; }
.btn--light:hover { background: #fff; border-color: transparent; }
.btn--lg { padding: 15px 26px; font-size: 17px; border-radius: 15px; font-weight: 700; }
.btn--sm { padding: 8px 15px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.icon-btn:hover { border-color: var(--accent-2); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 500;
}
.chip b { color: var(--text); }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.6); animation: ping 2s infinite; flex: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(61, 214, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); } }
button.chip { cursor: pointer; transition: border-color 0.2s, color 0.2s, background 0.2s; }
button.chip:hover { color: var(--text); border-color: var(--accent-2); }
button.chip.is-on { background: var(--text); border-color: var(--text); color: var(--bg); }

/* --- шапка --- */
.nav { position: sticky; top: 0; z-index: 50; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(1.3); border-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.brand b { color: var(--accent-2); font-weight: 700; }
.mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; color: #fff; flex: none; }
.mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.logo__orbit { transform-origin: 12px 12px; }
.nav__links { display: flex; gap: 22px; margin-left: 8px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color 0.2s; position: relative; }
.nav__links a:hover, .nav__links a.is-here { color: var(--text); }
.nav__links a.is-here::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav__links .new { font-size: 10px; font-weight: 700; color: #fff; background: var(--accent); padding: 1px 6px; border-radius: 6px; margin-left: 5px; vertical-align: 2px; }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-weight: 600; font-size: 13px; }
.burger { display: none; }

/* --- первый экран --- */
.hero { position: relative; padding: 0; overflow: hidden; }
.hero__in { position: relative; z-index: 1; min-height: min(720px, 86vh); display: flex; flex-direction: column; justify-content: center; gap: 26px; padding-block: 64px 120px; }
.hero h1 { font-family: var(--display); font-size: clamp(38px, 5.6vw, 78px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; max-width: 820px; }
.hero h1 span { display: block; }
.hero h1 .h1b { color: var(--muted); font-weight: 500; font-size: 0.5em; letter-spacing: -0.03em; margin-top: 16px; line-height: 1.2; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.hero__facts { list-style: none; display: flex; gap: 36px; padding: 0; margin: 10px 0 0; }
.hero__facts li { display: grid; }
.hero__facts b { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.hero__facts span { color: var(--muted); font-size: 14px; }

/* Стена обложек справа: колонки едут вверх и вниз. */
.wall { position: absolute; inset: -12% -6% -12% 42%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; transform: rotate(-9deg); opacity: 0.9; pointer-events: none; }
.wall__col { display: grid; gap: 16px; align-content: start; animation: up 70s linear infinite; }
.wall__col:nth-child(2n) { animation-name: down; animation-duration: 84s; }
.wall__col img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
@keyframes up { to { transform: translateY(-50%); } }
@keyframes down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 40%, color-mix(in srgb, var(--bg) 70%, transparent) 58%, color-mix(in srgb, var(--bg) 20%, transparent) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}

/* Окно программы под первым экраном */
.showcase { padding: 0; margin-top: -90px; position: relative; z-index: 2; }
.window {
  border-radius: 16px; overflow: hidden; background: #0d0f14; border: 1px solid var(--line-2); box-shadow: var(--shadow);
  transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.4s var(--ease);
}
.window__bar { display: flex; gap: 7px; padding: 11px 14px; background: #101218; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2e39; }
.showcase__stage { position: relative; max-width: 1080px; margin-inline: auto; }
.float {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  backdrop-filter: blur(10px); font-size: 14px; animation: bob 6s ease-in-out infinite;
}
.float b { display: block; font-weight: 600; }
.float small { color: var(--muted); font-size: 13px; }
.float__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(61, 214, 140, 0.14); color: var(--good); font-weight: 700; flex: none; }
.float__ico--up { background: var(--accent-soft); color: var(--accent-2); }
.float__ico--hub { background: rgba(242, 184, 75, 0.14); color: var(--gold); }
.float--a { left: -36px; top: 22%; }
.float--b { right: -40px; top: 10%; animation-delay: -2s; }
.float--c { right: 8%; bottom: -26px; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* --- как это работает --- */
.how__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: how; }
.how__card { position: relative; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.how__card h3 { font-size: 20px; display: flex; align-items: center; gap: 12px; }
.how__card h3::before { counter-increment: how; content: counter(how); font-family: var(--display); font-size: 14px; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); flex: none; }
.how__card p { margin: 0; color: var(--muted); }
.mini { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; }
.mini__row { display: flex; align-items: center; gap: 10px; }
.mini__row > span:not([class]) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__row small { color: var(--muted); font-size: 12px; }
.mini__ok { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(61, 214, 140, 0.15); color: var(--good); font-size: 12px; font-weight: 700; flex: none; }
.mini__wait { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--surface-3); border-top-color: var(--accent-2); animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.mini__bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.mini__bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); width: 0; animation: grow 2.4s var(--ease) 0.6s forwards; }
.is-in .mini__bar i { animation-play-state: running; }
@keyframes grow { to { width: var(--w, 100%); } }
.mini__ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.mini__btn { padding: 6px 12px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 600; font-size: 13px; }

/* --- игры --- */
.games__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.game {
  position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line); transition: transform 0.3s var(--spring), box-shadow 0.3s;
}
.game:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--g, var(--accent)), 0 24px 44px -22px var(--g, var(--accent)); }
.game img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.game:hover img { transform: scale(1.05); }
.game::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 7, 10, 0.94) 0%, rgba(6, 7, 10, 0.4) 38%, transparent 62%); }
.game > div { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; color: #fff; }
.game h3 { font-size: 15px; line-height: 1.2; }
.game p { margin: 4px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.72); line-height: 1.35; }
.game .count, .game .badge { position: absolute; top: 10px; z-index: 1; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.game .count { left: 10px; background: rgba(8, 9, 12, 0.72); color: #fff; backdrop-filter: blur(6px); }
.game .badge { right: 10px; background: var(--accent); color: #fff; }
.game--plus { display: grid; place-items: center; text-align: center; padding: 18px; background: transparent; box-shadow: none; border: 1.5px dashed var(--line-2); }
.game--plus::after { display: none; }
.game--plus > div { position: static; color: var(--text); }
.game--plus p { color: var(--muted); }
.game--plus .plus { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); font-size: 26px; }

/* --- Minecraft --- */
.mc {
  position: relative; border-radius: 28px; overflow: hidden; background: #0d1a12; color: #fff;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 520px; border: 1px solid rgba(255, 255, 255, 0.08);
}
.mc__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.mc::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 14, 10, 0.97) 0%, rgba(7, 14, 10, 0.86) 42%, rgba(7, 14, 10, 0.1) 80%); z-index: 1; }
.mc__text { position: relative; z-index: 2; padding: 56px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.mc__text .eyebrow { text-align: left; color: #8fe0a4; margin: 0; }
.mc__text h2 { text-align: left; color: #fff; }
.mc__text p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 17px; }
.mc__loaders { display: flex; flex-wrap: wrap; gap: 8px; }
.mc__loaders span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; font-weight: 600; }
.mc__list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; color: rgba(255, 255, 255, 0.86); }
.mc__list li { display: flex; gap: 12px; align-items: flex-start; }
.mc__list li::before { content: ''; width: 8px; height: 8px; margin-top: 9px; border-radius: 2px; background: #62d07f; flex: none; }

/* --- возможности (бенто) --- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column; transition: border-color 0.25s, transform 0.3s var(--spring);
}
.tile:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tile--wide { grid-column: span 2; }
.tile__text { padding: 24px 26px 22px; display: grid; gap: 8px; }
.tile__text p { margin: 0; color: var(--muted); }
.tile__shot { margin: 22px 0 0 26px; border-radius: 12px 0 0 0; overflow: hidden; border: 1px solid var(--line-2); border-right: 0; border-bottom: 0; height: 250px; margin: auto 0 0 26px; background: #0d0f14; }
.tile__shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.tile--wide .tile__shot img { object-position: 0 18%; }
.extras { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.extras span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.extras span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }

/* --- Creator Hub --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { text-align: left; }
.split .sub { margin-inline: 0; text-align: left; }
.ticks { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: var(--muted); }
.ticks li::before { content: '✓'; flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: rgba(61, 214, 140, 0.14); color: var(--good); font-weight: 700; font-size: 13px; }
.ticks b { color: var(--text); font-weight: 600; }
.code {
  position: relative; border-radius: 16px; background: #0d0f14; border: 1px solid var(--line-2); box-shadow: var(--shadow);
  font: 14px/1.7 var(--mono); color: #e8ebf2; overflow: hidden;
}
.code__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: #9aa2b4; font: 600 12px var(--font); }
.code__bar .dots { display: flex; gap: 6px; } .code__bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2e39; }
.code pre { margin: 0; padding: 16px 18px; overflow: auto; counter-reset: ln; min-height: 330px; }
.code .ln { display: block; }
.code .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 2.2em; margin-right: 12px; text-align: right; color: #4b5263; }
.t-k { color: #c792ea; } .t-s { color: #c3e88d; } .t-v { color: #82aaff; } .t-n { color: #f78c6c; } .t-c { color: #6c7385; font-style: italic; } .t-o { color: #89ddff; } .t-sec { color: #ffcb6b; }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: var(--accent-2); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.out { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.out span { font: 600 12px var(--font); padding: 5px 10px; border-radius: 8px; background: rgba(61, 214, 140, 0.12); color: var(--good); }

/* --- карточки модов Hub --- */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-top: 28px; }
.hmod {
  display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; text-align: left; padding: 0; transition: transform 0.3s var(--spring), border-color 0.2s, box-shadow 0.3s;
}
.hmod:hover { transform: translateY(-4px); border-color: var(--accent-2); box-shadow: 0 22px 50px -26px rgba(110, 75, 255, 0.8); }
.hmod__cover { position: relative; height: 136px; display: grid; place-items: center; color: #fff; background-size: cover; background-position: center; background-color: var(--surface-2); }
.hmod__cover svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2; opacity: 0.9; }
.hmod__game { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(10, 11, 16, 0.78); font-size: 11px; font-weight: 600; color: #fff; }
.hmod__body { padding: 14px 16px 16px; display: grid; gap: 5px; }
.hmod__by { font-size: 13px; color: var(--accent-2); font-weight: 500; }
.hmod__sum { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.hmod__stats { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.empty {
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 36px; border-radius: 24px; margin-top: 28px;
  background: var(--surface); border: 1px solid var(--line-2);
}
.empty__art { width: 108px; height: 108px; border-radius: 28px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); font-size: 46px; }
.empty h3 { font-size: 24px; margin-bottom: 10px; }
.empty p { color: var(--muted); margin: 0 0 18px; }
.skeleton { height: 250px; border-radius: 18px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* --- безопасность --- */
.safe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.safe article { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.safe p { margin: 0; color: var(--muted); font-size: 15px; }
.safe__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(61, 214, 140, 0.12); color: var(--good); margin-bottom: 6px; }
.safe__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* --- сравнение --- */
.compare { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { font-size: 14px; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.compare th:nth-child(2) { color: var(--text); }
.compare th:nth-child(2), .compare td:nth-child(2) { background: var(--accent-soft); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 17%; }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--good); font-weight: 700; } .no { color: var(--faint); } .part { color: var(--gold); font-weight: 600; font-size: 13px; }

/* --- скриншоты --- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 26px; }
.tab { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 500; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.tab:hover { color: var(--text); border-color: var(--line-2); }
.tab.is-on { background: var(--text); border-color: var(--text); color: var(--bg); }
.stage { margin: 0; }
.window--big { transform: none; max-width: 1080px; margin: 0 auto; }
#shot { transition: opacity 0.22s, transform 0.3s var(--ease); }
#shot.is-out { opacity: 0; transform: scale(0.985); }
.stage figcaption { text-align: center; color: var(--muted); margin-top: 18px; }
.progress { height: 3px; max-width: 280px; margin: 14px auto 0; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.progress.is-run i { animation: fill 6s linear forwards; }
@keyframes fill { to { width: 100%; } }

/* --- что нового --- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news article { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.news article:first-child { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.news .ver { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-2); }
.news time { color: var(--faint); font-size: 13px; margin-left: 8px; }
.news h3 { margin: 12px 0 10px; }
.news ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }

/* --- шаги (страница Hub) --- */
.steps__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 44px 0 0; }
.steps__row li { padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.steps__row b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-2); font-family: var(--display); font-size: 18px; margin-bottom: 16px; }
.steps__row p { color: var(--muted); margin: 8px 0 0; }

/* --- вопросы --- */
.faq__layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.faq__layout h2 { text-align: left; }
.faq__layout .sub { text-align: left; margin-inline: 0; }
.faq__list { display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-2); font-size: 22px; line-height: 1; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* --- финал и подвал --- */
.final { text-align: center; display: grid; justify-items: center; gap: 18px; }
.final__panel {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px 32px; background: var(--surface); border: 1px solid var(--line-2);
  display: grid; justify-items: center; gap: 18px; text-align: center;
}
.final__panel h2 { font-size: clamp(28px, 4vw, 52px); }
.final__panel p { margin: 0; color: var(--muted); max-width: 520px; }
.final__zip { color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.final__zip:hover { color: var(--text); }
.foot { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.foot a:hover { color: var(--text); }
.foot__note { flex-basis: 100%; font-size: 12px; color: var(--faint); }

/* --- страница Hub --- */
.page-head { padding-top: 64px; padding-bottom: 20px; text-align: center; }
.page-head h1 { font-family: var(--display); font-size: clamp(36px, 5.2vw, 64px); font-weight: 700; letter-spacing: -0.04em; margin: 16px 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.toolbar .search {
  flex: 1 1 260px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface);
}
.toolbar .search input { flex: 1; border: 0; background: transparent; padding: 12px 0; outline: 0; color: var(--text); font: inherit; }
.toolbar select { padding: 11px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; }
.tagrow { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.tagrow .chip { font-size: 12px; padding: 5px 11px; }
.hub-stats { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; margin-top: 22px; color: var(--muted); }
.hub-stats b { color: var(--text); font-size: 22px; margin-right: 6px; font-family: var(--display); }
.note { margin-top: 26px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); }
.note b { color: var(--text); }

/* --- окно мода --- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(5, 6, 10, 0.74); backdrop-filter: blur(6px); animation: fade 0.2s; }
.modal__card {
  width: min(860px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); animation: pop 0.35s var(--spring);
}
.modal__cover { height: 190px; background-size: cover; background-position: center; background-color: var(--surface-2); position: relative; display: grid; place-items: center; color: #fff; }
.modal__close { position: absolute; top: 14px; right: 14px; background: rgba(10, 11, 16, 0.7); color: #fff; border-color: transparent; }
.modal__body { padding: 26px 28px 30px; display: grid; gap: 18px; }
.modal__head { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.modal h2 { text-align: left; font-size: 28px; }
.md { color: var(--muted); }
.md h4 { color: var(--text); margin: 16px 0 6px; font-size: 16px; }
.md p { margin: 0 0 10px; }
.md ul { margin: 0 0 10px; padding-left: 20px; }
.gallery { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.gallery img { height: 150px; width: auto; border-radius: 12px; border: 1px solid var(--line); }
.versions { display: grid; gap: 8px; }
.versions div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.versions small { color: var(--muted); display: block; white-space: pre-line; }
.comments { display: grid; gap: 10px; }
.comment { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.comment b { margin-right: 8px; }
.comment time { color: var(--faint); font-size: 12px; }
.comment p { margin: 6px 0 0; color: var(--muted); white-space: pre-line; }
.facts { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 14px; }
.hash { font: 12px var(--mono); color: var(--faint); word-break: break-all; }
.dl-bar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.dl-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.97); } }

/* --- ModScript: песочница --- */
.play { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-top: 30px; }
.editor { position: relative; border-radius: 16px; background: #0d0f14; border: 1px solid var(--line-2); overflow: hidden; min-height: 460px; }
.editor__bar { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: #9aa2b4; font-size: 13px; flex-wrap: wrap; }
.editor__bar select { padding: 6px 10px; border-radius: 9px; border: 1px solid #2a2e39; background: #141620; color: #e8ebf2; font: inherit; font-size: 13px; }
.editor__area { position: relative; height: 420px; }
.editor__area pre, .editor__area textarea {
  position: absolute; inset: 0; margin: 0; padding: 14px 14px 14px 56px; font: 14px/1.65 var(--mono); white-space: pre; overflow: auto; tab-size: 2;
  border: 0; outline: 0; background: transparent;
}
.editor__area pre { color: #e8ebf2; pointer-events: none; }
.editor__area textarea { color: transparent; caret-color: #b9a8ff; resize: none; }
.editor__area textarea::selection { background: rgba(110, 75, 255, 0.4); }
.gutter { position: absolute; left: 0; top: 0; bottom: 0; width: 44px; padding-top: 14px; text-align: right; font: 14px/1.65 var(--mono); color: #4b5263; background: #0b0d12; border-right: 1px solid rgba(255, 255, 255, 0.05); overflow: hidden; }
.gutter span { display: block; padding-right: 8px; }
.gutter span.err { color: var(--bad); font-weight: 700; }
.result { border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); overflow: hidden; display: flex; flex-direction: column; }
.result__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.result__head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); }
.result__head .dot.bad { background: var(--bad); }
.result__tabs { display: flex; gap: 6px; padding: 10px 12px 0; flex-wrap: wrap; }
.result__tabs button { padding: 6px 11px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.result__tabs button.is-on { background: var(--accent-soft); color: var(--accent-2); border-color: transparent; }
.result pre { margin: 0; padding: 14px 16px; font: 12.5px/1.6 var(--mono); overflow: auto; max-height: 360px; color: var(--text); flex: 1; }
.diags { padding: 12px 16px; display: grid; gap: 6px; }
.diags button { text-align: left; border: 0; background: rgba(255, 107, 107, 0.1); color: var(--bad); padding: 8px 11px; border-radius: 9px; cursor: pointer; font-size: 13px; }
.logs { padding: 0 16px 12px; color: var(--accent-2); font: 13px var(--mono); }
.ref { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.ref article { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.ref h3 { margin-bottom: 12px; }
.ref dl { margin: 0; display: grid; gap: 10px; }
.ref dt { font: 13px var(--mono); color: var(--accent-2); }
.ref dd { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* --- появление при прокрутке --- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease) var(--d, 0s), transform 0.7s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 200; padding: 14px 18px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: pop 0.3s var(--spring); max-width: 380px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .mini__bar i { width: var(--w, 100%); }
}

/* --- планшеты --- */
@media (max-width: 1080px) {
  .games__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .safe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .float--a { left: 8px; } .float--b { right: 8px; }
}
@media (max-width: 1000px) {
  .split, .play, .faq__layout { grid-template-columns: 1fr; }
  .how__grid, .news, .steps__row { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--wide { grid-column: span 2; }
  .mc { grid-template-columns: 1fr; }
  .mc::before { background: linear-gradient(0deg, rgba(7, 14, 10, 0.97) 30%, rgba(7, 14, 10, 0.6) 100%); }
  .wall { inset: -10% -30% 20% 20%; opacity: 0.55; }
}
/* --- телефоны --- */
@media (max-width: 760px) {
  section { padding-block: 64px; }
  .wrap { width: min(1200px, 100% - 32px); }
  .nav__links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav__links a { padding: 12px 0; font-size: 17px; }
  .nav.is-open .nav__links { display: flex; }
  .burger { display: inline-grid; }
  .nav__end .btn--primary { display: none; }
  .hero__in { min-height: 0; padding-block: 40px 110px; }
  .hero__facts { gap: 22px; }
  .wall { inset: 30% -40% -10% -10%; opacity: 0.35; }
  .showcase { margin-top: -70px; }
  .games__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento, .safe, .ref { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .mc__text { padding: 32px 24px; }
  .float { display: none; }
  .empty { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .compare { overflow-x: auto; }
  .compare table { min-width: 620px; }
  .chip .hide-sm { display: none; }
  .head { margin-bottom: 26px; }
}
