:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --border: #d2d2d7;
  --accent: #6750e8;
  --accent-soft: #eeeaff;
  --max-width: 820px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1d1d1f;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --border: #424245;
    --accent: #8e79ff;
    --accent-soft: #252044;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 22px 24px;
}

.header-inner,
main,
.footer-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
}

.subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.language-switcher {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.language-switcher button {
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

main { padding: 40px 24px 72px; }

.language-content[hidden] { display: none; }

.hero {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--accent-soft), var(--surface));
}

.hero h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.25;
}

.hero p { margin: 8px 0 0; }

h2 {
  margin: 36px 0 10px;
  font-size: 23px;
  line-height: 1.35;
}

h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

p { margin: 9px 0; }

ul, ol {
  margin: 10px 0;
  padding-left: 24px;
}

li { margin: 7px 0; }

.meta {
  color: var(--muted);
  font-size: 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.card,
.notice,
.contact-box {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.card h3,
.contact-box h3 { margin-top: 0; }

.notice {
  margin: 18px 0;
  border-left: 4px solid var(--accent);
}

.contact-box {
  margin-top: 18px;
  text-align: center;
}

.contact-box a {
  font-size: 18px;
  font-weight: 650;
}

table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface);
  color: var(--muted);
  font-weight: 650;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
}

.footer-links a { color: var(--muted); }

@media (max-width: 640px) {
  .header-row { display: block; }
  .language-switcher { margin-top: 16px; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 22px; }
  table { display: block; overflow-x: auto; }
}
