:root {
  --bg: #0f1218;
  --surface: #181d26;
  --surface-2: #1f2531;
  --border: #2a3140;
  --text: #e9edf3;
  --muted: #a3acbb;
  --gold: #ffc300;
  --gold-dark: #c98a0a;
  --green: #10b981;
  --red: #f43f5e;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffd54d; }

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 18, 24, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

/* Hero */
.hero {
  text-align: center;
  padding: 56px 0 32px;
}
.hero img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 10px 40px rgba(255, 195, 0, 0.18);
}
.hero h1 {
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.2;
  margin: 20px 0 10px;
}
.hero p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 17px;
}
.badge {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  border-radius: 999px;
  padding: 4px 12px;
}

/* Link cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 16px 0 56px;
}
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--gold-dark); transform: translateY(-2px); color: var(--text); }
.card h2 { font-size: 18px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Documents */
.doc { padding: 40px 0 56px; }
.doc h1 { font-size: clamp(24px, 4.5vw, 32px); line-height: 1.25; margin: 0 0 6px; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 {
  font-size: 19px;
  margin: 32px 0 10px;
  padding-top: 4px;
}
.doc p, .doc li { color: #d3d9e3; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 18px 0;
}
.note.warn { border-left-color: var(--red); }
.note.ok { border-left-color: var(--green); }
.note p { margin: 6px 0; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 14px 12px 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 10px 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #3a2e00;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mail {
  display: inline-block;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  word-break: break-all;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  padding: 24px 0 36px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 520px) {
  body { font-size: 15.5px; }
  .hero { padding-top: 40px; }
  .nav a { padding: 6px 8px; font-size: 13px; }
}
