:root {
  --bg: #f5f6f4;
  --card: #ffffff;
  --text: #1f2620;
  --text-muted: #5a6357;
  --accent: #2e8b3d;
  --border: #e2e5df;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14170f;
    --card: #1c2016;
    --text: #eef1ea;
    --text-muted: #a8b0a0;
    --accent: #6fd17f;
    --border: #2a2f22;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.header .badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.header h1 {
  font-size: 20px;
  margin: 0;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.lang-toggle button.active {
  background: var(--accent);
  color: #ffffff;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.card h2 {
  font-size: 16px;
  margin: 28px 0 8px;
  color: var(--accent);
}

.card h2:first-child { margin-top: 0; }

.card p, .card li { color: var(--text); font-size: 15px; }

.updated {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 20px;
}

.lang-block { display: none; }
.lang-block.active { display: block; }

.crosslink {
  margin-top: 28px;
  font-size: 14px;
}

.crosslink a { color: var(--accent); }

footer {
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}
