:root {
  color-scheme: dark;
  --bg: #050607;
  --panel: #11161d;
  --line: #26313d;
  --text: #f6f7fb;
  --muted: #9aa8c0;
  --accent: #1ec9a0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
  padding: 28px 0 48px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-weight: 900;
  font-size: 24px;
  text-decoration: none;
}

.brand-link img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.language-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171c24;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

button.active {
  border-color: var(--accent);
  background: #06382e;
  color: #ffffff;
}

section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(20px, 4vw, 34px);
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 0;
}

h2 { margin: 30px 0 8px; }
h3 { margin: 20px 0 8px; }

p,
li,
td,
th {
  color: var(--muted);
  line-height: 1.62;
  font-size: 17px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.meta {
  color: var(--muted);
  margin-bottom: 24px;
}

.notice {
  border: 1px solid rgba(30, 201, 160, 0.45);
  border-radius: 8px;
  background: rgba(30, 201, 160, 0.08);
  padding: 14px 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 8px;
}

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

th {
  color: var(--text);
  background: #080a0d;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
  color: var(--muted);
}

@media (max-width: 720px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }
}
