:root {
  --bg: #0d0f12;
  --bg2: #14181d;
  --panel: #1a1f26;
  --green: #5dbb63;
  --green-dark: #3d9145;
  --accent: #7ee06a;
  --red: #e05a4e;
  --blue: #5aa9e6;
  --text: #e8ecef;
  --muted: #9aa4ad;
  --pixel: 'Press Start 2P', monospace;
  --head: 'Russo One', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Russo One', Arial, sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
.container { width: min(1140px, 92%); margin: 0 auto; }
.accent { color: var(--accent); }

/* ---------- Навигация ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(13, 15, 18, .82);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid #000;
  transition: transform .3s;
}
.nav__inner {
  width: min(1140px, 92%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__cube {
  display: grid; place-items: center;
  width: 36px; height: 36px; font-size: 18px;
  background: var(--green); border: 3px solid #000;
  box-shadow: 3px 3px 0 #000;
}
.logo__text {
  font-family: var(--pixel); font-size: 14px; color: #fff;
  text-shadow: 2px 2px 0 #000; letter-spacing: 1px;
}
.nav__links { display: flex; gap: 26px; }
.nav__links a {
  color: var(--text); text-decoration: none; font-size: 15px;
  letter-spacing: .5px; position: relative; padding: 4px 0;
  cursor: pointer;
}
.nav__links a:hover { color: var(--accent); }
.nav__links a:active { transform: translateY(1px); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 3px; background: var(--accent); transition: width .25s;
}
.nav__links a:hover::after { width: 100%; }
.nav__burger {
  display: none; background: none; border: 2px solid #333;
  color: #fff; font-size: 20px; padding: 4px 10px; cursor: pointer;
}

/* ---------- Герой ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px 0 60px;
}
.hero__bg {
  position: absolute; inset: -10% 0;
  background: url('../assets/hero.png') center/cover no-repeat;
  will-change: transform;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,15,18,.72) 0%, rgba(13,15,18,.35) 45%, rgba(13,15,18,.95) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 2px, transparent 2px 4px);
}
.hero__content {
  position: relative; z-index: 2;
  width: min(1140px, 92%); margin: 0 auto; text-align: center;
}
.hero__tag {
  font-family: var(--pixel); font-size: 11px; color: var(--accent);
  letter-spacing: 2px; margin-bottom: 22px;
  animation: fadeUp .8s .1s both;
}
.hero__title { line-height: .95; margin-bottom: 24px; }
.hero__line {
  display: block;
  font-family: var(--pixel); font-size: clamp(44px, 9vw, 110px);
  color: #fff; text-shadow: 5px 5px 0 #000, 0 0 40px rgba(126,224,106,.35);
  animation: pop .7s both;
}
.hero__line--accent {
  color: var(--green);
  -webkit-text-stroke: 2px #1c3a1e;
  animation-delay: .15s;
}
.hero__sub {
  max-width: 640px; margin: 0 auto 34px; font-size: 18px; line-height: 1.6;
  color: #d5dde2; animation: fadeUp .8s .3s both;
}
.hero__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeUp .8s .45s both; }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--head); font-size: 17px; letter-spacing: .5px;
  padding: 16px 34px; border: 3px solid #000;
  transition: transform .12s, box-shadow .12s;
  user-select: none; -webkit-tap-highlight-color: transparent;
  text-align: center;
}
.btn:focus-visible, .nav__links a:focus-visible, .to-top:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
.btn[aria-disabled='true'] { opacity: .85; }
.btn--primary {
  background: var(--green); color: #06210a;
  box-shadow: 5px 5px 0 #000, inset 0 -4px 0 rgba(0,0,0,.25);
}
.btn--primary:hover { background: var(--accent); transform: translate(-2px,-2px); box-shadow: 8px 8px 0 #000; }
.btn--primary:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 #000; }
.btn--ghost {
  background: rgba(0,0,0,.45); color: #fff; box-shadow: 5px 5px 0 #000;
}
.btn--ghost:hover { background: rgba(0,0,0,.7); transform: translate(-2px,-2px); }
.btn--big { font-size: 21px; padding: 20px 46px; }

/* ---------- Статистика в герое ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 880px;
  margin: 56px auto 0;
  animation: fadeUp .8s .6s both;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px 16px;
  background: rgba(4, 9, 14, .78);
  border: 3px solid #000;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .55);
  transition: transform .18s, border-color .18s;
}
.stat:hover { transform: translateY(-4px); border-color: var(--green); }
.stat__num {
  font-family: var(--pixel);
  font-size: clamp(16px, 2.2vw, 24px);
  color: var(--accent);
  text-shadow: 3px 3px 0 #000;
  text-align: center;
  line-height: 1.25;
}
.stat__label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .4px;
  text-align: center;
  line-height: 1.35;
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
  .stat { padding: 14px 8px 12px; }
}
@media (max-width: 360px) {
  .stats { grid-template-columns: 1fr; }
}
.hero__scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-family: var(--pixel); font-size: 9px; color: #cfd6db;
  animation: bounce 1.6s infinite;
}

/* ---------- Секции ---------- */
.section { padding: 100px 0; background: var(--bg); position: relative; }
.section--dark { background: var(--bg2); border-top: 4px solid #000; border-bottom: 4px solid #000; }
.section__title {
  font-family: var(--pixel); font-size: clamp(20px, 3.4vw, 34px);
  text-align: center; margin-bottom: 14px; text-shadow: 4px 4px 0 #000;
}
.section__sub { text-align: center; color: var(--muted); margin-bottom: 54px; font-size: 17px; }

/* ---------- Карточки режимов ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
}
.card {
  background: var(--panel); border: 3px solid #000;
  box-shadow: 7px 7px 0 #000; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  transform-style: preserve-3d;
}
.card:hover { transform: translate(-4px,-6px); box-shadow: 12px 14px 0 #000; }
.card__img { height: 200px; overflow: hidden; border-bottom: 3px solid #000; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.08); }
.card__body { padding: 24px 22px 28px; }
.card__badge {
  display: inline-block; font-family: var(--pixel); font-size: 9px;
  padding: 7px 10px; border: 2px solid #000; color: #06120a; margin-bottom: 14px;
}
.card__badge--green { background: var(--green); }
.card__badge--blue { background: var(--blue); color: #04182b; }
.card__badge--red { background: var(--red); color: #2b0404; }
.card__body h3 { font-size: 24px; margin-bottom: 10px; }
.card__body p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* ---------- Возможности ---------- */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px; margin-top: 46px;
}
.feature {
  background: #10141a; border: 3px solid #000; padding: 26px 22px;
  box-shadow: 5px 5px 0 #000; transition: transform .2s, border-color .2s;
}
.feature:hover { transform: translateY(-6px); border-color: var(--green); }
.feature__icon { font-size: 34px; margin-bottom: 14px; }
.feature h4 { font-size: 19px; margin-bottom: 8px; color: var(--accent); }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- Мир / параллакс ---------- */
.world { position: relative; min-height: 70vh; display: grid; place-items: center; overflow: hidden; }
.world__bg {
  position: absolute; inset: -12% 0;
  background: url('../assets/build.png') center/cover no-repeat;
  will-change: transform;
}
.world::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,15,18,.94) 0%, rgba(13,15,18,.6) 60%, rgba(13,15,18,.25) 100%);
}
.world__content { position: relative; z-index: 2; width: min(1140px, 92%); padding: 90px 0; }
.world__content h2 {
  font-family: var(--pixel); font-size: clamp(26px, 4.5vw, 48px);
  line-height: 1.25; text-shadow: 4px 4px 0 #000; margin-bottom: 22px;
}
.world__content p { max-width: 560px; font-size: 18px; line-height: 1.7; color: #d5dde2; margin-bottom: 30px; }

/* ---------- Бегущая строка ---------- */
.ticker { background: var(--green); border-top: 4px solid #000; border-bottom: 4px solid #000; overflow: hidden; padding: 16px 0; }
.ticker__track { display: flex; white-space: nowrap; animation: scrollX 18s linear infinite; }
.ticker__track span {
  font-family: var(--pixel); font-size: 16px; color: #06210a;
  padding-right: 20px; text-shadow: 1px 1px 0 rgba(255,255,255,.4);
}

/* ---------- Отзывы ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 46px; }
.quote {
  background: var(--panel); border-left: 6px solid var(--green);
  padding: 26px 24px; box-shadow: 5px 5px 0 #000; border-top: 3px solid #000;
  border-right: 3px solid #000; border-bottom: 3px solid #000;
  transition: transform .2s;
}
.quote:hover { transform: translateY(-5px); }
.quote p { font-size: 16.5px; line-height: 1.6; margin-bottom: 14px; }
.quote cite { color: var(--accent); font-style: normal; font-size: 14px; }

/* ---------- CTA ---------- */
.cta {
  padding: 110px 0; text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(93,187,99,.22), transparent 60%),
    var(--bg2);
  border-top: 4px solid #000;
}
.cta__inner h2 { font-family: var(--pixel); font-size: clamp(24px, 4vw, 40px); text-shadow: 4px 4px 0 #000; margin-bottom: 14px; }
.cta__inner > p { color: var(--muted); font-size: 17px; margin-bottom: 30px; }
.price { display: flex; align-items: baseline; gap: 16px; justify-content: center; margin-bottom: 34px; position: relative; }
.price__old { font-size: 24px; color: var(--muted); text-decoration: line-through; }
.price__new { font-family: var(--pixel); font-size: 46px; color: var(--accent); text-shadow: 4px 4px 0 #000; }
.price__badge {
  font-family: var(--pixel); font-size: 12px; background: var(--red); color: #fff;
  padding: 7px 10px; border: 2px solid #000; transform: rotate(-6deg) translateY(-14px);
}
.cta__note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ---------- Подвал ---------- */
.footer { background: #0a0c0e; border-top: 4px solid #000; padding: 44px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer p { color: #6c757d; font-size: 13.5px; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer__links a:hover { color: var(--accent); }

/* ---------- Кнопка наверх ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 52px; height: 52px; cursor: pointer;
  background: var(--green); color: #06210a; font-size: 20px;
  border: 3px solid #000; box-shadow: 4px 4px 0 #000;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }

/* ---------- Анимации ---------- */
@keyframes pop { from { opacity: 0; transform: scale(.8) translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Об игре ---------- */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; margin-top: 50px; }
.about__block {
  background: var(--panel); border: 3px solid #000;
  box-shadow: 6px 6px 0 #000; padding: 30px 28px;
  transition: transform .2s, border-color .2s;
}
.about__block:hover { transform: translateY(-5px); border-color: var(--green); }
.about__block:nth-child(6) { grid-column: 1 / -1; }
.about__block h3 { font-size: 22px; margin-bottom: 16px; color: var(--accent); text-shadow: 2px 2px 0 #000; }
.about__block p { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
.about__block p:last-child { margin-bottom: 0; }
.about__block b { color: var(--text); }

.about__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.about__list li {
  position: relative; padding: 12px 14px 12px 44px;
  background: #10141a; border: 2px solid #000; font-size: 15.5px;
  line-height: 1.55; color: var(--muted);
}
.about__list li::before {
  content: '▶'; position: absolute; left: 14px; top: 12px; color: var(--green); font-size: 13px;
}
.about__list b { color: var(--accent); }

.about__steps { counter-reset: step; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.about__steps li {
  counter-increment: step; position: relative;
  padding: 12px 14px 12px 52px; background: #10141a;
  border: 2px solid #000; font-size: 15.5px; line-height: 1.55; color: var(--muted);
}
.about__steps li::before {
  content: counter(step); position: absolute; left: 12px; top: 10px;
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--green); color: #06210a; border: 2px solid #000;
  font-family: var(--pixel); font-size: 12px;
}
.about__tip {
  margin-top: 16px; padding: 14px 16px; background: rgba(126,224,106,.12);
  border-left: 5px solid var(--accent); color: var(--text) !important; font-size: 15px !important;
}

/* Мобы */
.mobs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.mob {
  display: flex; flex-direction: column; gap: 4px;
  background: #10141a; border: 2px solid #000; padding: 16px 14px;
  transition: transform .18s, border-color .18s;
}
.mob:hover { transform: translateY(-4px); border-color: var(--red); }
.mob__emoji { font-size: 26px; }
.mob b { color: var(--text); font-size: 16px; }
.mob i { color: var(--muted); font-size: 13.5px; font-style: normal; line-height: 1.5; }

/* Измерения */
.dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.dim {
  background: linear-gradient(160deg, #2b4a2e, #16281a);
  border: 3px solid #000; padding: 20px 18px;
}
.dim--nether { background: linear-gradient(160deg, #5a1f1c, #2a0f0e); }
.dim--end { background: linear-gradient(160deg, #3d3554, #16121f); }
.dim b { display: block; font-size: 19px; margin-bottom: 8px; color: #fff; text-shadow: 2px 2px 0 #000; }
.dim p { font-size: 14.5px !important; line-height: 1.6 !important; color: #d5dde2 !important; margin-bottom: 0 !important; }

/* ---------- Адаптив ---------- */
@media (max-width: 820px) {
  .nav__links {
    position: fixed; top: 64px; right: 0; flex-direction: column;
    background: rgba(13,15,18,.97); padding: 26px 34px; gap: 20px;
    border-left: 3px solid #000; border-bottom: 3px solid #000;
    transform: translateX(110%); transition: transform .3s;
  }
  .nav__links a { padding: 10px 4px; font-size: 17px; }
  .nav__links.open { transform: none; }
  .nav__burger { display: block; }
  .hero__stats { gap: 26px; }
  .stat__num { font-size: 19px; }
  .world::after { background: linear-gradient(180deg, rgba(13,15,18,.85), rgba(13,15,18,.6)); }
}
