:root {
  color-scheme: light dark;
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --accent: #2563eb;
  --border: #e5e7eb;
  --header-bg: #111827;
  --header-text: #f9fafb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a21;
    --text: #f3f4f6;
    --text-muted: #9ca3af;
    --accent: #60a5fa;
    --border: #2d3340;
    --header-bg: #0b0d12;
    --header-text: #f9fafb;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 1rem 1.25rem;
}

.site-header-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: inherit;
  text-decoration: none;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
}

.lang-switch a {
  color: var(--header-text);
  text-decoration: none;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.875rem;
}

.lang-switch a.active,
.lang-switch a:hover {
  background: rgba(255, 255, 255, 0.12);
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  line-height: 1.25;
}

.meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.125rem;
}

h2:first-of-type {
  margin-top: 0;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

a {
  color: var(--accent);
}

footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

footer a {
  color: var(--text-muted);
}

.lang-section {
  display: none;
}

.lang-section.active {
  display: block;
}

.faq-item {
  margin-bottom: 1.25rem;
}

.faq-item h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.contact-card a {
  font-weight: 600;
}
