/* Сайт ModLaunch 5.5. Цвета и радиусы — те же, что в самой программе. */

:root {
  --bg: #0b0c12;
  --bg-2: #0f1118;
  --surface: #14161f;
  --surface-2: #1b1e29;
  --surface-3: #232736;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #eceef5;
  --muted: #9aa0b4;
  --faint: #6b7385;
  --accent: #7c5cff;
  --accent-2: #b9a6ff;
  --accent-soft: rgba(124, 92, 255, 0.16);
  --teal: #2bb3c0;
  --gold: #f2c25c;
  --good: #3dd68c;
  --bad: #ff6b6b;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --r: 13px;
  --r-lg: 21px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --mono: 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;
  color-scheme: dark;
}
[data-theme='light'] {
  --bg: #f5f6fa;
  --bg-2: #eceef4;
  --surface: #ffffff;
  --surface-2: #f1f2f7;
  --surface-3: #e6e8f0;
  --line: rgba(20, 24, 40, 0.09);
  --line-2: rgba(20, 24, 40, 0.16);
  --text: #151823;
  --muted: #5b6274;
  --faint: #8a91a2;
  --accent-2: #6a4ff0;
  --accent-soft: rgba(124, 92, 255, 0.12);
  --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 Manrope, 'Segoe UI', system-ui, sans-serif;
  -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.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; text-align: center; }
h3 { font-size: 18px; }
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;
}
.sub { max-width: 620px; margin: 14px auto 0; color: var(--muted); text-align: center; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
section { padding-block: 92px; }
.eyebrow {
  display: block; text-align: center; margin-bottom: 12px; color: var(--accent-2);
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.grad {
  background: linear-gradient(100deg, #b9a6ff 0%, #7c5cff 35%, #2bb3c0 70%, #f2c25c 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* --- фон: плывущие пятна света и сетка --- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg i {
  position: absolute; width: 640px; height: 640px; border-radius: 50%;
  filter: blur(120px); opacity: 0.26; animation: drift 30s ease-in-out infinite alternate;
}
.bg i:nth-child(1) { top: -220px; right: -120px; background: var(--accent); }
.bg i:nth-child(2) { top: 40%; left: -260px; background: var(--teal); opacity: 0.15; animation-duration: 38s; animation-direction: alternate-reverse; }
.bg i:nth-child(3) { bottom: -300px; right: 20%; background: #ff5fa2; opacity: 0.09; animation-duration: 46s; }
.bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.35;
}
[data-theme='light'] .bg i { opacity: 0.14; }
@keyframes drift { to { transform: translate(-160px, 120px) scale(1.2); } }

/* --- кнопки --- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 20px; border-radius: 13px; border: 1px solid var(--line-2);
  background: var(--surface-2); font-weight: 700; cursor: pointer; overflow: hidden;
  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); }
.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.75; }
.btn--primary { background: linear-gradient(135deg, #8a6dff, #6a4ff0); border-color: transparent; color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.8); }
.btn--primary:hover { box-shadow: 0 16px 40px -10px rgba(124, 92, 255, 0.95); }
.btn--primary::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transition: transform 0.7s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { background: transparent; }
.btn--lg { padding: 15px 26px; font-size: 17px; border-radius: 16px; }
.btn--sm { padding: 8px 15px; font-size: 14px; border-radius: 11px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; transition: border-color 0.2s, transform 0.2s;
}
.icon-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.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: 600;
}
.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; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px 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, transform 0.15s; }
button.chip:hover { color: var(--text); transform: translateY(-1px); }
button.chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* --- шапка --- */
.nav { position: sticky; top: 0; z-index: 50; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.brand b { color: var(--accent-2); }
.nav__links { display: flex; gap: 24px; margin-left: 12px; }
.nav__links a { color: var(--muted); font-weight: 600; 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: -6px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav__links .new { font-size: 10px; font-weight: 800; 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: 10px; }
.lang { padding: 7px 11px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-weight: 700; font-size: 13px; }
.burger { display: none; }
.logo__orbit { transform-origin: 12px 12px; animation: orbit 18s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.brand:hover .logo__orbit { animation-duration: 3s; }

/* --- первый экран --- */
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding-top: 56px; }
.hero h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 800; margin: 22px 0 20px; }
.hero h1 span { display: block; }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__facts { display: flex; gap: 34px; margin: 34px 0 0; padding: 0; list-style: none; }
.hero__facts b { display: block; font-size: 30px; font-weight: 800; }
.hero__facts span { color: var(--muted); font-size: 14px; }
.hero__shot { position: relative; perspective: 1400px; }
.window {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px rgba(124, 92, 255, 0.08);
  transform: rotateY(var(--ry, -6deg)) rotateX(var(--rx, 3deg)); transition: transform 0.4s var(--ease);
}
.window__bar { display: flex; gap: 7px; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.window__bar i:nth-child(1) { background: #ff6b6b; } .window__bar i:nth-child(2) { background: #f2c25c; } .window__bar i:nth-child(3) { background: #3dd68c; }
.float {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 15px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14px; animation: bob 5s ease-in-out infinite;
}
.float small { display: block; color: var(--muted); font-size: 12px; }
.float__ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(61, 214, 140, 0.16); color: var(--good); font-weight: 800; }
.float__ico--up { background: var(--accent-soft); color: var(--accent-2); }
.float__ico--hub { background: rgba(242, 194, 92, 0.16); color: var(--gold); }
.float--a { left: -34px; bottom: 16%; }
.float--b { right: -22px; top: 10%; animation-delay: -2.5s; }
.float--c { right: 10%; bottom: -26px; animation-delay: -1.2s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* --- лента цифр --- */
.band { padding-block: 26px; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.band__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.band b { display: block; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
.band span { color: var(--muted); font-size: 14px; }

/* --- бегущая строка игр --- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); margin-top: 40px; }
.marquee__row { display: flex; gap: 14px; width: max-content; animation: slide 60s linear infinite; }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* --- игры --- */
.games__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; margin-top: 44px; }
.game {
  position: relative; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  aspect-ratio: 2 / 3; transition: transform 0.35s var(--spring), border-color 0.25s, box-shadow 0.3s; isolation: isolate;
}
.game { background: linear-gradient(160deg, var(--g, #7c5cff), #0d0f16 75%); }
.game img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); z-index: -1; }
.game::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 38%, rgba(8, 9, 14, 0.95)); }
.game:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 24px 50px -20px rgba(124, 92, 255, 0.6); }
.game:hover img { transform: scale(1.07); }
.game div { position: absolute; left: 12px; right: 12px; bottom: 12px; color: #fff; }
.game h3 { font-size: 15px; }
.game p { margin: 4px 0 0; font-size: 12px; color: #c3c8d6; }
.game .count { position: absolute; top: 10px; left: 10px; right: auto; bottom: auto; padding: 3px 9px; border-radius: 999px; background: rgba(8, 9, 14, 0.75); font-size: 12px; font-weight: 700; }
.game .badge { position: absolute; top: 10px; right: 10px; left: auto; bottom: auto; padding: 3px 8px; border-radius: 8px; background: var(--accent); font-size: 11px; font-weight: 800; }
.game--plus { display: grid; place-items: center; text-align: center; border-style: dashed; border-color: var(--line-2); background: transparent; padding: 18px; }
.game--plus::after { display: none; }
.game--plus div { position: static; color: var(--text); }
.game--plus p { color: var(--muted); }
.game--plus .plus { width: 54px; height: 54px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); font-size: 30px; font-weight: 400; }
.mini-game { width: 110px; flex: none; border-radius: 12px; overflow: hidden; aspect-ratio: 2 / 3; background: var(--surface-2); border: 1px solid var(--line); }
.mini-game img { width: 100%; height: 100%; object-fit: cover; }

/* --- возможности (бенто) --- */
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.fcard {
  position: relative; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: border-color 0.25s, transform 0.3s var(--spring);
}
.fcard::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 92, 255, 0.18), transparent 60%);
}
.fcard:hover { border-color: var(--line-2); transform: translateY(-3px); }
.fcard:hover::before { opacity: 1; }
.fcard--wide { grid-column: span 2; }
.fcard--tall { grid-row: span 2; }
.fcard h3 { margin: 16px 0 8px; }
.fcard p { margin: 0; color: var(--muted); font-size: 15px; }
.fcard__ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent-2); }
.fcard__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fcard .tag { position: absolute; top: 20px; right: 20px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 7px; background: var(--accent); color: #fff; }
.fcard img { margin-top: 18px; border-radius: 12px; border: 1px solid var(--line); }

/* --- Creator Hub --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; 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: 800; font-size: 13px; }
.ticks b { color: var(--text); }
.code {
  position: relative; border-radius: 16px; background: #0d0f16; 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: #9aa0b4; font: 600 12px Manrope, sans-serif; }
.code__bar .dots { display: flex; gap: 6px; } .code__bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2f3b; }
.code pre { margin: 0; padding: 16px 18px; overflow: auto; counter-reset: ln; }
.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: #6b7385; 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 Manrope, sans-serif; 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(-5px); border-color: var(--accent); box-shadow: 0 22px 50px -24px rgba(124, 92, 255, 0.7); }
.hmod__cover { position: relative; height: 128px; display: grid; place-items: center; color: #fff; background-size: cover; background-position: center; }
.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: 700; color: #fff; }
.hmod__body { padding: 14px 16px 16px; display: grid; gap: 5px; }
.hmod__by { font-size: 13px; color: var(--accent-2); font-weight: 600; }
.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: 38px; border-radius: 24px; margin-top: 28px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--surface); border: 1px solid var(--line-2);
}
.empty__art { width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); font-size: 52px; animation: bob 4s ease-in-out infinite; }
.empty h3 { font-size: 26px; 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; } }

/* --- сравнение --- */
.compare { margin-top: 44px; 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 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { font-size: 14px; color: var(--muted); font-weight: 700; background: var(--surface-2); }
.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: 18%; }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--good); font-weight: 800; } .no { color: var(--faint); } .part { color: var(--gold); font-weight: 700; font-size: 13px; }

/* --- скриншоты --- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 36px 0 26px; }
.tab { padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 700; cursor: pointer; transition: all 0.2s; }
.tab:hover { color: var(--text); }
.tab.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.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; margin-top: 40px; }
.news article { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.news .ver { display: inline-block; font-weight: 800; 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; }

/* --- шаги --- */
.steps__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 44px 0 0; counter-reset: step; }
.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-size: 20px; margin-bottom: 16px; }
.steps__row p { color: var(--muted); margin: 8px 0 0; }

/* --- вопросы --- */
.faq__list { max-width: 820px; margin: 40px auto 0; 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: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.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__zip { color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.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: 56px; padding-bottom: 20px; text-align: center; }
.page-head h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; margin: 14px 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: 13px; 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: 12px; 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; }
.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.72); 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; 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: 30px; }
.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: #0d0f16; 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: #9aa0b4; font-size: 13px; flex-wrap: wrap; }
.editor__bar select { padding: 6px 10px; border-radius: 9px; border: 1px solid #2a2f3b; 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: #b9a6ff; resize: none; }
.editor__area textarea::selection { background: rgba(124, 92, 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: #0b0d13; 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: 800; }
.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: 700; }
.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: 700; 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(26px); 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; }
}

/* --- телефоны и планшеты --- */
@media (max-width: 1000px) {
  .hero, .split, .play { grid-template-columns: 1fr; }
  .hero__shot { order: -1; }
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .news, .steps__row { grid-template-columns: 1fr; }
  .band__in { grid-template-columns: repeat(2, 1fr); }
  .float--a { left: 6px; } .float--b { right: 6px; }
}
@media (max-width: 760px) {
  section { padding-block: 64px; }
  .nav__links {
    display: none; position: absolute; top: 70px; 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; }
  .fgrid, .ref { grid-template-columns: 1fr; }
  .fcard--wide { grid-column: auto; }
  .float { display: none; }
  .empty { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .compare { overflow-x: auto; }
  .compare table { min-width: 620px; }
  .hero__facts { gap: 22px; }
  .chip .hide-sm { display: none; }
}
