:root {
  --bg: #0b0f14;
  --surface: #111826;
  --surface-2: #0f172a;
  --text: #e7eef7;
  --muted: #9fb0c6;
  --accent: #22c55e;
  --accent-2: #14b8a6;
  --stroke: #1f2a3a;
  --hover: #22334a;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font: 16px/1.65 system-ui, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(120%) blur(8px);
}

.wrap {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  min-width: 220px;
}

.logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.brand strong {
  font-size: 18px;
  line-height: 1.2;
}

nav,
.lang,
.chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover,
.chip:hover {
  background: var(--hover);
}

.lang .active {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--stroke));
  color: #ffffff;
}

main {
  padding: 22px 0 38px;
}

.hero,
.panel,
.article-card,
.source-list {
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--surface);
}

.hero {
  padding: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

p {
  margin: 0 0 12px;
}

.lead {
  max-width: 820px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.meta {
  margin-top: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.section {
  margin-top: 18px;
}

.panel,
.article-card,
.source-list {
  padding: 18px;
}

.article-card p,
.panel p {
  color: var(--muted);
}

.article-card ul,
.panel ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.article-card li,
.panel li {
  margin-bottom: 5px;
}

.article-card strong,
.panel strong {
  display: block;
  margin-bottom: 5px;
}

.template,
.note {
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--surface-2);
}

.template {
  white-space: pre-line;
}

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

.source-list {
  color: var(--muted);
}

.source-list li {
  margin-bottom: 8px;
}

footer {
  padding: 0 0 28px;
  color: var(--muted);
}

@media (max-width: 880px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 18px;
  }
}
