:root {
  --bg: #0f1410;
  --bg-alt: #151c16;
  --panel: #1c2620;
  --border: #2c3b31;
  --text: #e8f0e8;
  --muted: #9db3a2;
  --green: #5ec24b;
  --green-dark: #3d8f30;
  --dirt: #7a4a21;
  --dirt-dark: #5c3717;
  --font-pixel: 'Press Start 2P', monospace;
  --font-main: 'Rubik', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Навигация ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 20, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--border);
}
.nav__inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__logo {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--green);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__links {
  margin-left: auto;
  display: flex;
  gap: 24px;
}
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--green); }

.block-icon {
  width: 22px; height: 22px;
  display: inline-block;
  image-rendering: pixelated;
  border-radius: 3px;
}
.block-icon--grass {
  background: linear-gradient(to bottom, var(--green) 0 40%, var(--dirt) 40% 100%);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.25);
}

/* ---------- Кнопки ---------- */
.btn {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: #fff;
  background: linear-gradient(to bottom, #6fd35a, var(--green-dark));
  border: none;
  border-bottom: 5px solid #2c6b23;
  border-radius: 6px;
  padding: 16px 28px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.1s, filter 0.2s;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.4);
}
.btn:hover { filter: brightness(1.12); transform: translateY(-2px); }
.btn:active { transform: translateY(2px); border-bottom-width: 2px; }
.btn--small { padding: 10px 18px; font-size: 9px; }
.btn--big { font-size: 14px; padding: 22px 44px; }
.btn--ghost {
  background: transparent;
  border: 3px solid var(--border);
  border-bottom-width: 5px;
  text-shadow: none;
  color: var(--text);
}

/* ---------- Герой ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 140px;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(94, 194, 75, 0.18), transparent 60%),
    linear-gradient(to bottom, #0a0f1e 0%, #12233a 45%, #1a3a2a 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 15% 20%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 70% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 30%, #cfe 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 28%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 8%, #ffd 50%, transparent 51%),
    radial-gradient(2px 2px at 30% 5%, #fff 50%, transparent 51%);
  opacity: 0.7;
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 0.8; } }

.hero__overlay { position: absolute; inset: 0; pointer-events: none; }

.hero__ground {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 90px;
  background:
    linear-gradient(to bottom, var(--green-dark) 0 24px, transparent 24px),
    repeating-linear-gradient(to right, var(--dirt) 0 32px, var(--dirt-dark) 32px 64px);
  image-rendering: pixelated;
  box-shadow: 0 -6px 0 var(--green) inset;
}

.hero__content { position: relative; z-index: 2; max-width: 800px; }

.hero__tag {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--green);
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--font-pixel);
  font-size: clamp(34px, 7vw, 64px);
  color: #fff;
  text-shadow: 4px 4px 0 rgba(0,0,0,0.5), 8px 8px 0 rgba(94,194,75,0.25);
  margin-bottom: 26px;
}
.hero__title span { color: var(--green); }
.hero__sub { font-size: 19px; color: var(--muted); margin-bottom: 42px; }

.ip-box {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--panel);
  border: 3px solid var(--border);
  border-radius: 12px;
  padding: 14px 14px 14px 26px;
  flex-wrap: wrap;
  justify-content: center;
}
.ip-box code {
  font-family: var(--font-pixel);
  font-size: clamp(13px, 3vw, 18px);
  color: #ffe66d;
}

.hero__stats {
  margin-top: 36px;
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 15px;
}
.stat { display: flex; align-items: center; gap: 8px; }
.stat b { color: var(--text); }
.stat__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #888;
  display: inline-block;
}
.stat__dot--on { background: var(--green); box-shadow: 0 0 10px var(--green); }
.stat__dot--off { background: #e74c3c; box-shadow: 0 0 10px #e74c3c; }

/* ---------- Секции ---------- */
.section { padding: 100px 24px; max-width: 1150px; margin: 0 auto; }
.section--alt {
  max-width: none;
  background: var(--bg-alt);
}
.section--alt > * { max-width: 1150px; margin-left: auto; margin-right: auto; }

.section__title {
  font-family: var(--font-pixel);
  font-size: clamp(20px, 4vw, 30px);
  text-align: center;
  margin-bottom: 14px;
  color: #fff;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.4);
}
.section__sub { text-align: center; color: var(--muted); margin-bottom: 56px; font-size: 17px; }

/* ---------- Карточки режимов ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.card {
  background: var(--panel);
  border: 3px solid var(--border);
  border-radius: 12px;
  padding: 34px 26px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-6px); border-color: var(--green); }
.card__icon { font-size: 42px; margin-bottom: 18px; }
.card h3 { font-family: var(--font-pixel); font-size: 13px; margin-bottom: 14px; color: var(--green); }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Шаги ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.step {
  background: var(--panel);
  border: 3px solid var(--border);
  border-radius: 12px;
  padding: 34px 26px;
  position: relative;
}
.step__num {
  position: absolute;
  top: -20px; left: 22px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-pixel);
  font-size: 15px;
  color: #fff;
  background: linear-gradient(to bottom, #6fd35a, var(--green-dark));
  border-bottom: 4px solid #2c6b23;
  border-radius: 8px;
}
.step h3 { font-family: var(--font-pixel); font-size: 12px; margin: 12px 0 14px; }
.step p { color: var(--muted); font-size: 15px; }
.step b { color: #ffe66d; }

/* ---------- Правила ---------- */
.rules { display: flex; flex-direction: column; gap: 14px; max-width: 700px; margin: 0 auto; }
.rule {
  background: var(--panel);
  border: 3px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
}
.rule span { font-size: 20px; }

/* ---------- FAQ ---------- */
.faq { max-width: 750px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq details {
  background: var(--panel);
  border: 3px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after { content: '+'; color: var(--green); font-size: 24px; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 14px; color: var(--muted); }
.faq b { color: #ffe66d; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 110px 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(94,194,75,0.15), transparent 60%),
    var(--bg);
}
.cta h2 {
  font-family: var(--font-pixel);
  font-size: clamp(18px, 4vw, 28px);
  margin-bottom: 16px;
}
.cta p { color: var(--muted); margin-bottom: 40px; font-size: 17px; }
.cta__social { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Футер ---------- */
.footer {
  border-top: 3px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Тост ---------- */
.toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--green-dark);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 11px;
  padding: 16px 28px;
  border-radius: 8px;
  border-bottom: 4px solid #2c6b23;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 200;
}
.toast--show { transform: translateX(-50%) translateY(0); }

/* ---------- Адаптив ---------- */
@media (max-width: 760px) {
  .nav__links { display: none; }
  .hero__sub br { display: none; }
}
