﻿:root {
  --bg: #101312;
  --bg-2: #151a18;
  --panel: #1c221f;
  --panel-2: #252c27;
  --ink: #f4fff6;
  --muted: #aebcaf;
  --soft: #d7e9d8;
  --green: #43d86a;
  --green-2: #1fa753;
  --green-3: #0b6d3a;
  --lime: #b9ff58;
  --amber: #ffc84d;
  --cyan: #77d7ce;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.42);
  --max: 1180px;
  --header-h: 86px;
}

@font-face {
  font-family: "Minecraft RU";
  src: url("../assets/fonts/minecraft.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--green-2) #0b0f0d;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  border-left: 1px solid rgba(67, 216, 106, 0.18);
  background:
    linear-gradient(90deg, #08100c, #101512 42%, #08100c),
    var(--bg);
}

::-webkit-scrollbar-thumb {
  border: 4px solid #08100c;
  background:
    linear-gradient(180deg, var(--cyan), var(--green) 42%, var(--green-2));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 10px rgba(67, 216, 106, 0.25);
}

::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, #a9fff5, var(--lime) 48%, var(--green));
}

::-webkit-scrollbar-button:single-button {
  display: block;
  width: 16px;
  height: 16px;
  border-left: 1px solid rgba(67, 216, 106, 0.18);
  background-color: #101512;
  background-repeat: no-repeat;
  background-position: center;
}

::-webkit-scrollbar-button:single-button:vertical:decrement {
  background-image: linear-gradient(135deg, transparent 50%, var(--green) 50%), linear-gradient(225deg, transparent 50%, var(--green) 50%);
  background-size: 5px 5px, 5px 5px;
  background-position: 4px 7px, 8px 7px;
}

::-webkit-scrollbar-button:single-button:vertical:increment {
  background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(315deg, transparent 50%, var(--green) 50%);
  background-size: 5px 5px, 5px 5px;
  background-position: 4px 4px, 8px 4px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Minecraft RU", Arial, sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 22% 8%, rgba(67, 216, 106, 0.12), transparent 32rem),
    var(--bg);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

code {
  border: 1px solid rgba(67, 216, 106, 0.25);
  background: rgba(67, 216, 106, 0.08);
  color: #dfffe3;
  padding: 0.1rem 0.35rem;
  font-family: "Minecraft RU", monospace;
  font-size: 0.94em;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: #0f100f;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
}

.mini-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 143px;
  height: 25px;
  border: 0;
  background: #8a8a8a;
  color: #fff;
  padding: 0 7px 1px;
  font-weight: 400;
  line-height: 1;
  text-shadow: none;
  text-transform: uppercase;
  box-shadow: none;
  transition: filter 160ms ease;
}

.mini-download span {
  display: inline-grid;
  place-items: center;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  color: #fff;
  font-family: "Minecraft RU", monospace;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.mini-download:hover {
  filter: brightness(1.08);
}

.top-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 83px;
  height: 25px;
  border: 0;
  background: #59645d;
  color: #fff;
  padding: 0 8px 1px;
  font: inherit;
  font-weight: 400;
  line-height: 1;
  text-shadow: none;
  text-transform: uppercase;
  box-shadow: none;
  cursor: pointer;
  transition: filter 160ms ease;
}

.top-login:hover {
  filter: brightness(1.08);
}

.main-nav {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 54px);
  align-items: center;
  min-height: 86px;
  font-family: "Minecraft RU", monospace;
}

.nav-side {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
}

.nav-side--left {
  justify-content: flex-end;
}

.nav-side--right {
  justify-content: flex-start;
}

.nav-actions {
  position: fixed;
  right: clamp(28px, 4vw, 74px);
  top: calc(var(--header-h) / 2);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  transform: translateY(-50%);
}

.brand {
  grid-column: 2;
  display: grid;
  justify-items: center;
  text-align: center;
  z-index: 1;
}

.brand__logo {
  width: clamp(240px, 28vw, 360px);
  height: auto;
  max-height: 74px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 12px rgba(36, 239, 205, 0.28))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
}

.brand__mark {
  color: #e9ffe8;
  font-family: "Minecraft RU", monospace;
  font-size: clamp(30px, 4.5vw, 55px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow:
    0 3px 0 #174722,
    0 7px 0 #0a2815,
    0 0 22px rgba(67, 216, 106, 0.45);
}

.brand__sub {
  margin-top: 7px;
  color: var(--green);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-link {
  position: relative;
  color: #e9f5eb;
  font-size: clamp(17px, 1.35vw, 24px);
  font-weight: 800;
  text-transform: uppercase;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--lime);
  text-shadow: 0 0 18px rgba(67, 216, 106, 0.45);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #1b201d;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: calc(var(--header-h) + 80px) 0 92px;
}

.hero__media,
.hero__shade,
.page-hero__bg,
.wiki-hero__bg {
  position: absolute;
  inset: 0;
}

.hero__media img,
.page-hero__bg img,
.wiki-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(9, 12, 10, 0.9), rgba(9, 12, 10, 0.58) 48%, rgba(9, 12, 10, 0.28)),
    linear-gradient(0deg, #101312 0%, rgba(16, 19, 18, 0) 28%);
}

.hero__content,
.page-hero__content,
.wiki-hero__content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-family: "Minecraft RU", monospace;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-family: "Minecraft RU", monospace;
  font-size: clamp(48px, 9vw, 116px);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 8px 0 #0c3118, 0 0 32px rgba(67, 216, 106, 0.42);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 58px);
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.hero__lead,
.page-hero p,
.wiki-hero p {
  max-width: 680px;
  color: #d7e8d9;
  font-size: clamp(18px, 2vw, 22px);
}

.hero__actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 2px solid transparent;
  padding: 0 22px;
  font-family: "Minecraft RU", monospace;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(180deg, var(--green), var(--green-2));
  color: #07130b;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.22), 0 12px 28px rgba(31, 167, 83, 0.28);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(15, 16, 15, 0.58);
  color: #fff;
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  border-color: var(--green);
}

.btn--wide {
  width: 100%;
}

.text-link {
  color: var(--lime);
  font-family: "Minecraft RU", monospace;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.74);
  font-family: "Minecraft RU", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.stats-band {
  background: #0f100f;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-tile {
  min-height: 110px;
  padding: 22px;
  background: #171b18;
}

.stat-tile span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: "Minecraft RU", monospace;
  font-size: 13px;
  text-transform: uppercase;
}

.stat-tile strong {
  display: block;
  color: #fff;
  font-family: "Minecraft RU", monospace;
  font-size: clamp(20px, 2vw, 28px);
}

.section {
  padding: clamp(76px, 10vw, 124px) 0;
}

.section--dark {
  background:
    linear-gradient(180deg, rgba(67, 216, 106, 0.05), rgba(67, 216, 106, 0)),
    #111412;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(34px, 6vw, 80px);
}

.split-layout--reverse {
  grid-template-columns: minmax(320px, 1.05fr) minmax(0, 0.95fr);
}

.section-copy p {
  max-width: 620px;
  color: var(--soft);
  font-size: 18px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  color: var(--soft);
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(90deg, transparent 0 3px, #061109 3px 6px, transparent 6px),
    linear-gradient(#061109 0 3px, var(--green) 3px 11px, #061109 11px);
  box-shadow: 0 0 0 1px rgba(67, 216, 106, 0.4);
}

.feature-visual,
.launcher-showcase {
  margin: 0;
  border: 1px solid rgba(225, 244, 230, 0.26);
  background: rgba(10, 16, 13, 0.82);
  box-shadow:
    0 0 0 1px rgba(67, 216, 106, 0.08),
    0 28px 70px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.launcher-showcase {
  padding: clamp(12px, 1.6vw, 18px);
}

.feature-visual img,
.launcher-showcase img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 52px);
  max-width: 980px;
  margin-bottom: 32px;
}

.project-facts .check-list {
  margin: 0;
}

.cards-grid--media .info-card {
  padding: 0;
  overflow: hidden;
}

.cards-grid--media .info-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cards-grid--media .info-card h3,
.cards-grid--media .info-card p {
  padding-inline: 24px;
}

.cards-grid--media .info-card h3 {
  margin-top: 22px;
}

.cards-grid--media .info-card p {
  padding-bottom: 24px;
}

.info-card,
.step-card,
.text-panel,
.download-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)), var(--panel);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

.info-card {
  min-height: 250px;
  padding: 28px;
}

.info-card p,
.step-card p,
.text-panel p,
.download-panel p {
  color: var(--muted);
}

.card-number {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--green);
  font-family: "Minecraft RU", monospace;
  font-weight: 900;
}

.page-hero {
  position: relative;
  min-height: 520px;
  padding: calc(var(--header-h) + 96px) 0 84px;
  overflow: hidden;
}

.page-hero::after,
.wiki-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 12, 10, 0.91), rgba(9, 12, 10, 0.62) 52%, rgba(9, 12, 10, 0.2)),
    linear-gradient(0deg, #101312 0%, rgba(16, 19, 18, 0) 38%);
}

.page-hero__content,
.wiki-hero__content {
  position: relative;
  z-index: 1;
}

.launcher-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: start;
  gap: 24px;
}

.launcher-showcase img {
  height: auto;
  min-height: 0;
}

.download-panel {
  padding: 30px;
}

.tag {
  display: inline-flex;
  margin-bottom: 18px;
  border: 1px solid rgba(67, 216, 106, 0.28);
  background: rgba(67, 216, 106, 0.09);
  color: var(--lime);
  padding: 5px 9px;
  font-family: "Minecraft RU", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.file-meta {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.file-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding-bottom: 10px;
}

.file-meta dt {
  color: var(--muted);
}

.file-meta dd {
  margin: 0;
  color: #fff;
  font-family: "Minecraft RU", monospace;
}

.steps,
.two-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-card {
  padding: 28px;
}

.step-card span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
  background: var(--green);
  color: #07130b;
  font-family: "Minecraft RU", monospace;
  font-weight: 900;
}

.text-panel {
  padding: 30px;
}

.wiki-shell {
  min-height: 100vh;
}

.wiki-hero {
  position: relative;
  min-height: 450px;
  padding: calc(var(--header-h) + 78px) 0 72px;
  overflow: hidden;
}

.wiki-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  padding: 42px 0 104px;
}

.wiki-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(21, 26, 24, 0.96);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
}

.search-box {
  display: block;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-family: "Minecraft RU", monospace;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #101412;
  color: #fff;
  padding: 0 12px;
  font: inherit;
  outline: none;
}

.search-box input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(67, 216, 106, 0.15);
}

.wiki-nav {
  max-height: calc(100vh - var(--header-h) - 126px);
  overflow: auto;
  padding: 10px;
  scrollbar-color: var(--cyan) #0f1713;
  scrollbar-width: thin;
}

.wiki-nav::-webkit-scrollbar {
  width: 12px;
}

.wiki-nav::-webkit-scrollbar-track {
  border-left: 1px solid rgba(119, 215, 206, 0.16);
  background: #0f1713;
}

.wiki-nav::-webkit-scrollbar-thumb {
  border: 3px solid #0f1713;
  background: linear-gradient(180deg, var(--cyan), var(--green));
}

.wiki-category {
  margin-bottom: 12px;
}

.wiki-category__title {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: "Minecraft RU", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.wiki-topic-link {
  width: 100%;
  display: block;
  border: 1px solid transparent;
  background: transparent;
  color: #edf9ee;
  padding: 11px 12px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.wiki-topic-link:hover,
.wiki-topic-link.is-active {
  border-color: rgba(67, 216, 106, 0.28);
  background: rgba(67, 216, 106, 0.1);
  color: var(--lime);
}

.wiki-topic-link small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.wiki-content {
  min-width: 0;
}

.wiki-article,
.wiki-empty {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)), #171c19;
  padding: clamp(24px, 5vw, 52px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.article-meta span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 4px 8px;
  font-family: "Minecraft RU", monospace;
  font-size: 12px;
}

.wiki-article h2 {
  margin-bottom: 16px;
}

.wiki-article h3 {
  margin-top: 34px;
  color: #f4fff6;
}

.wiki-article p,
.wiki-article li {
  color: var(--soft);
}

.wiki-article ul,
.wiki-article ol {
  padding-left: 1.2rem;
}

.wiki-callout {
  margin: 26px 0;
  border-left: 4px solid var(--green);
  background: rgba(67, 216, 106, 0.1);
  padding: 18px 20px;
  color: #eaffea;
}

.wiki-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.wiki-action {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(67, 216, 106, 0.28);
  background: rgba(67, 216, 106, 0.08);
  padding: 18px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.wiki-action:hover {
  border-color: var(--green);
  background: rgba(67, 216, 106, 0.14);
  transform: translateY(-2px);
}

.wiki-action strong {
  color: var(--lime);
  text-transform: uppercase;
}

.wiki-action span {
  color: var(--soft);
}

.wiki-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.wiki-gallery__item {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #101512;
  overflow: hidden;
}

.wiki-gallery__item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0b0f0d;
}

.wiki-gallery__item figcaption {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  padding: 10px 12px;
  font-size: 13px;
}

.wiki-steps {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.wiki-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.wiki-step span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--green);
  color: #07130b;
  font-family: "Minecraft RU", monospace;
  font-weight: 900;
}

.site-footer {
  background: #0f100f;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 34px 0 16px;
}

.social-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 46px);
  margin-bottom: 42px;
  border: 1px solid rgba(225, 244, 230, 0.14);
  background:
    linear-gradient(90deg, rgba(67, 216, 106, 0.1), rgba(67, 216, 106, 0.02) 42%, rgba(13, 20, 16, 0.86)),
    rgba(11, 17, 14, 0.94);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow:
    inset 0 0 0 1px rgba(67, 216, 106, 0.04),
    0 18px 46px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.social-panel::before,
.social-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.social-panel::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(67, 216, 106, 0.18) 0 10px, transparent 10px calc(100% - 10px), rgba(67, 216, 106, 0.18) calc(100% - 10px)),
    linear-gradient(rgba(67, 216, 106, 0.16) 0 2px, transparent 2px calc(100% - 2px), rgba(67, 216, 106, 0.16) calc(100% - 2px));
  opacity: 0.65;
}

.social-panel::after {
  right: -72px;
  top: -82px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(67, 216, 106, 0.16), transparent 68%);
}

.social-panel__copy {
  position: relative;
  z-index: 1;
}

.social-panel__copy h2 {
  max-width: 340px;
  margin-bottom: 0;
  color: #f0fff1;
  font-size: clamp(24px, 3.2vw, 42px);
}

.social-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 12px;
}

.social-link {
  --social: var(--green);
  position: relative;
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(225, 244, 230, 0.18);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--social) 16%, transparent), rgba(5, 9, 7, 0.18)),
    rgba(10, 15, 12, 0.92);
  color: #eaf8ed;
  padding: 14px 10px 12px;
  font-family: "Minecraft RU", monospace;
  font-size: 12px;
  text-transform: uppercase;
  box-shadow:
    inset 0 -5px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px color-mix(in srgb, var(--social) 18%, transparent);
  transition: border-color 160ms ease, filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.social-link::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 3px;
  background: var(--social);
  transform: scaleX(0.34);
  transition: transform 160ms ease;
}

.social-link img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.38));
}

.social-link span {
  position: relative;
  z-index: 1;
}

.social-link:hover {
  border-color: color-mix(in srgb, var(--social) 70%, white 10%);
  filter: brightness(1.12);
  transform: translateY(-4px);
  box-shadow:
    inset 0 -5px 0 rgba(0, 0, 0, 0.25),
    0 0 0 1px color-mix(in srgb, var(--social) 34%, transparent),
    0 14px 34px color-mix(in srgb, var(--social) 22%, transparent);
}

.social-link:hover::before {
  transform: scaleX(1);
}

.social-link--youtube {
  --social: #ff3131;
}

.social-link--tiktok {
  --social: #2bebe5;
}

.social-link--discord {
  --social: #848eff;
}

.social-link--telegram {
  --social: #5ecfff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer-grid h2,
.footer-grid h3 {
  margin-bottom: 12px;
  font-family: "Minecraft RU", monospace;
  text-transform: uppercase;
}

.footer-grid h2 {
  color: var(--green);
}

.footer-grid p {
  color: var(--muted);
}

.footer-grid a {
  display: block;
  width: fit-content;
  margin-bottom: 7px;
  color: #c9d4ca;
}

.footer-grid a:hover {
  color: var(--lime);
}

.copyright {
  width: min(var(--max), calc(100% - 32px));
  margin: 26px auto 0;
  color: #6f7a72;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 960px) {
  :root {
    --header-h: 68px;
  }

  .main-nav {
    display: flex;
    justify-content: space-between;
    min-height: 68px;
  }

  .brand {
    position: static;
    transform: none;
  }

  .brand__mark {
    font-size: clamp(27px, 8vw, 42px);
  }

  .brand__logo {
    width: clamp(180px, 44vw, 280px);
    height: auto;
    max-height: 58px;
  }

  .nav-side--left {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-actions {
    display: none;
  }

  .nav-side--right {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display: grid;
    gap: 12px;
    padding: 14px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.38);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav-side--right.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    padding: 10px 0;
    font-size: 20px;
  }

  .mini-download,
  .top-login {
    width: fit-content;
  }

  .nav-side--right .mini-download,
  .nav-side--right .top-login {
    display: inline-flex;
  }

  .hero {
    min-height: 680px;
    padding-top: calc(var(--header-h) + 58px);
  }

  .stats-grid,
  .cards-grid,
  .project-facts,
  .steps,
  .two-columns,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-panel {
    grid-template-columns: 1fr;
  }

  .social-panel__copy {
    text-align: center;
  }

  .social-panel__copy h2 {
    max-width: none;
  }

  .social-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-layout,
  .split-layout--reverse,
  .launcher-grid,
  .wiki-layout {
    grid-template-columns: 1fr;
  }

  .wiki-sidebar {
    position: static;
  }

  .wiki-nav {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, var(--max));
  }

  .hero,
  .page-hero,
  .wiki-hero {
    min-height: 580px;
  }

  h1 {
    font-size: clamp(42px, 16vw, 74px);
  }

  .hero__lead,
  .page-hero p,
  .wiki-hero p {
    font-size: 17px;
  }

  .hero__actions,
  .inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .text-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .stats-grid,
  .cards-grid,
  .project-facts,
  .steps,
  .two-columns,
  .wiki-actions,
  .wiki-gallery,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .social-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .social-link {
    min-height: 96px;
  }

  .social-link img {
    width: 46px;
    height: 46px;
  }

  .section {
    padding: 68px 0;
  }

  .info-card {
    min-height: 0;
  }

  .feature-visual img,
  .launcher-showcase img {
    min-height: 240px;
  }

  .wiki-step {
    grid-template-columns: 1fr;
  }
}
