* {
  box-sizing: border-box;
}

:root {
  --green-bg: #dff3cd;
  --green-bg-2: #d3eec0;
  --green-deep: #4d9e32;
  --green-dark: #2f6b1e;
  --green-ink: #23421a;
  --creeper: #7ec850;
  --card: #ffffff;
  --shadow: rgba(47, 107, 30, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'SN Pro', system-ui, -apple-system, sans-serif;
  color: var(--green-ink);
  background-color: var(--green-bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 32px 32px;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Press Start 2P', 'JetBrains Mono', monospace;
  line-height: 1.5;
}

.wrap {
  width: min(1080px, 92%);
  margin: 0 auto;
}

/* ---------- Декоративные мобы на фоне ---------- */
.bg-mobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.mob {
  position: absolute;
  width: 72px;
  height: 72px;
  opacity: 0.28;
  image-rendering: pixelated;
  animation: floaty 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 0 rgba(35, 66, 26, 0.15));
}

.mob--1 { top: 12%; left: 4%; animation-delay: 0s; }
.mob--2 { top: 30%; right: 6%; width: 90px; height: 90px; animation-delay: 0.8s; }
.mob--3 { top: 55%; left: 7%; animation-delay: 1.6s; }
.mob--4 { top: 72%; right: 9%; width: 64px; height: 64px; animation-delay: 2.2s; }
.mob--5 { top: 85%; left: 12%; animation-delay: 1.1s; }
.mob--6 { top: 4%; right: 26%; width: 56px; height: 56px; animation-delay: 2.8s; }
.mob--7 { top: 44%; right: 30%; width: 60px; height: 60px; animation-delay: 0.4s; }
.mob--8 { top: 64%; left: 34%; width: 68px; height: 68px; animation-delay: 1.9s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-18px) rotate(3deg); }
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(223, 243, 205, 0.92);
  border-bottom: 4px solid var(--green-dark);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.85rem;
  color: var(--green-dark);
  text-decoration: none;
}

.logo-block {
  width: 22px;
  height: 22px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.18) 50%, transparent 50%),
    linear-gradient(#7ec850 50%, #8a6237 50%);
  background-size: 11px 11px, 100% 100%;
  border: 2px solid var(--green-dark);
}

.nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: 0.15s;
}

.nav a:hover {
  background: #fff;
  border-color: var(--green-dark);
  box-shadow: 3px 3px 0 var(--shadow);
}

/* ---------- Герой ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.35rem 0.7rem;
  background: var(--green-deep);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--green-dark);
  box-shadow: 4px 4px 0 var(--shadow);
}

.hero-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.6rem);
  color: var(--green-dark);
  text-shadow: 5px 5px 0 rgba(126, 200, 80, 0.55);
}

.hero-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 34rem;
  margin: 1.1rem 0 1.4rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: 'SN Pro', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.8rem 1.4rem;
  border: 3px solid var(--green-dark);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
  box-shadow: 5px 5px 0 var(--green-dark);
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 1px 1px 0 var(--green-dark);
}

.btn--primary {
  background: var(--creeper);
  color: var(--green-ink);
}

.btn--primary:hover {
  background: #8fd95e;
}

.btn--ghost {
  background: #fff;
  color: var(--green-dark);
}

.btn--ghost:hover {
  background: #f2fbe9;
}

.hero-stats {
  list-style: none;
  display: flex;
  gap: 0.8rem;
  padding: 0;
  margin: 1.8rem 0 2rem;
  flex-wrap: wrap;
}

.hero-stats li {
  background: var(--card);
  border: 3px solid var(--green-dark);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  box-shadow: 4px 4px 0 var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stats strong {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.95rem;
  color: var(--green-deep);
}

.hero-stats span {
  font-size: 0.78rem;
  color: #4b6a41;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.pixel-scene {
  position: relative;
  width: min(300px, 80%);
  aspect-ratio: 1;
  background:
    linear-gradient(#bfe6ff 0 62%, #7ec850 62% 74%, #8a6237 74% 100%);
  border: 4px solid var(--green-dark);
  border-radius: 12px;
  box-shadow: 8px 8px 0 var(--shadow);
}

.big-mob {
  position: absolute;
  width: 34%;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.2));
}

.big-mob--creeper {
  left: 12%;
  bottom: 28%;
  animation: hop 1.6s ease-in-out infinite;
}

.big-mob--pig {
  right: 10%;
  bottom: 26%;
  width: 28%;
  animation: hop 1.6s ease-in-out infinite 0.5s;
}

@keyframes hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.grass-strip {
  margin-top: 2.5rem;
  height: 26px;
  background:
    repeating-linear-gradient(90deg, #6bb63f 0 16px, #7ec850 16px 32px);
  border-top: 4px solid var(--green-dark);
}

/* ---------- Секции ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 3.2rem 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.55);
  border-top: 3px dashed rgba(47, 107, 30, 0.35);
  border-bottom: 3px dashed rgba(47, 107, 30, 0.35);
}

.section-title {
  font-size: clamp(1rem, 2.6vw, 1.4rem);
  color: var(--green-dark);
  margin: 0 0 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--creeper);
  border: 3px solid var(--green-dark);
  box-shadow: 4px 4px 0 var(--shadow);
  font-size: 1rem;
  color: var(--green-ink);
}

.card {
  background: var(--card);
  border: 3px solid var(--green-dark);
  border-radius: 12px;
  padding: 1.4rem;
  box-shadow: 6px 6px 0 var(--shadow);
  transition: transform 0.15s;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  font-size: 0.95rem;
  color: var(--green-dark);
  margin: 0 0 0.7rem;
}

.card p {
  line-height: 1.65;
  margin: 0.5rem 0;
}

.card-ico {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-bg-2);
  border: 3px solid var(--green-dark);
  border-radius: 8px;
  margin-bottom: 0.9rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.3rem;
}

.card--profile {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.4rem;
  align-items: start;
}

.avatar {
  width: 130px;
  height: 130px;
  border: 3px solid var(--green-dark);
  border-radius: 10px;
  overflow: hidden;
  background: var(--green-bg-2);
  box-shadow: 4px 4px 0 var(--shadow);
}

.avatar svg {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.muted {
  color: #5b7a50;
  font-size: 0.92rem;
}

.small {
  font-size: 0.88rem;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1rem 0 0;
}

.chips li {
  background: var(--green-bg-2);
  border: 2px solid var(--green-dark);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-dark);
}

/* ---------- Год создания ---------- */
.year-hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.6rem;
  align-items: start;
}

.year-big {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  color: #fff;
  background: var(--green-deep);
  border: 4px solid var(--green-dark);
  border-radius: 14px;
  padding: 1.6rem 1rem;
  text-align: center;
  box-shadow: 8px 8px 0 var(--shadow);
  text-shadow: 4px 4px 0 var(--green-dark);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tl-item {
  position: relative;
  background: var(--card);
  border: 3px solid var(--green-dark);
  border-radius: 10px;
  padding: 0.9rem 1rem 0.9rem 2.4rem;
  line-height: 1.6;
  box-shadow: 4px 4px 0 var(--shadow);
}

.tl-dot {
  position: absolute;
  left: 0.85rem;
  top: 1.05rem;
  width: 14px;
  height: 14px;
  background: var(--creeper);
  border: 2px solid var(--green-dark);
}

/* ---------- Версия ---------- */
.version-card {
  box-shadow: 8px 8px 0 var(--shadow);
}

.version-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.version-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  color: #fff;
  background: var(--green-deep);
  border: 3px solid var(--green-dark);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--shadow);
}

.version-num,
.version-date {
  font-weight: 800;
  background: var(--green-bg-2);
  border: 2px solid var(--green-dark);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.88rem;
}

.features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.6rem;
}

.features li {
  background: #f4fbee;
  border: 2px solid rgba(47, 107, 30, 0.45);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* ---------- Генератор фактов ---------- */
.fact-window {
  background: var(--card);
  border: 4px solid var(--green-dark);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--shadow);
  max-width: 820px;
  margin: 0 auto;
}

.fact-titlebar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.9rem;
  background: var(--green-deep);
  border-bottom: 4px solid var(--green-dark);
}

.dot {
  width: 13px;
  height: 13px;
  border: 2px solid var(--green-dark);
  border-radius: 3px;
  display: inline-block;
}

.dot--r { background: #ff6b6b; }
.dot--y { background: #ffd93d; }
.dot--g { background: #7ec850; }

.fact-titlebar__text {
  margin-left: 0.5rem;
  color: #eaffdd;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.03em;
}

.fact-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.3rem;
  padding: 1.6rem;
  align-items: center;
}

.fact-mob {
  width: 150px;
  height: 150px;
  border: 3px solid var(--green-dark);
  border-radius: 12px;
  background: var(--green-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0 var(--shadow);
}

.fact-mob svg {
  width: 78%;
  height: 78%;
  image-rendering: pixelated;
}

.fact-mob.pop {
  animation: pop 0.45s ease;
}

@keyframes pop {
  0% { transform: scale(1) rotate(0deg); }
  40% { transform: scale(1.16) rotate(-6deg); }
  70% { transform: scale(0.95) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.fact-mob-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.95rem;
  color: var(--green-dark);
  margin: 0 0 0.7rem;
}

.fact-fact {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1.1rem;
  min-height: 4.5rem;
  background: #f4fbee;
  border: 2px dashed rgba(47, 107, 30, 0.5);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
}

.fact-fact.fade {
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fact-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.fact-counter {
  font-weight: 700;
  color: #5b7a50;
  font-size: 0.9rem;
}

/* ---------- Подвал ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 4px solid var(--green-dark);
  background: var(--green-deep);
  color: #eaffdd;
  padding: 1.3rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* ---------- Адаптив ---------- */
@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
  }
  .year-hero {
    grid-template-columns: 1fr;
  }
  .card--profile {
    grid-template-columns: 1fr;
  }
  .avatar {
    width: 110px;
    height: 110px;
  }
  .fact-body {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .fact-actions {
    justify-content: center;
  }
}
