:root {
  --bg: #0f1115;
  --bg-2: #161a21;
  --card: #1b2029;
  --line: #2a313d;
  --text: #e7e2d6;
  --muted: #9aa2ae;
  --gold: #d6a84a;
  --gold-2: #f0c66b;
  --ok: #4fae7b;
  --err: #d9604c;
  --radius: 12px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 500px at 50% -200px, rgba(214, 168, 74, 0.14), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 17, 21, 0.85);
}
.brand { font-weight: 800; font-size: 1.25rem; letter-spacing: 0.04em; color: var(--text); }
.brand span { color: var(--gold); }
.top nav { display: flex; align-items: center; gap: 16px; }
.inline { display: inline; margin: 0; }

main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 16px;
}

footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 20px; border-top: 1px solid var(--line); }

h1 { margin: 0 0 16px; font-size: 1.7rem; }
h2 { margin: 28px 0 12px; font-size: 1.15rem; color: var(--gold-2); }
.card h2:first-child { margin-top: 0; }

.hero { text-align: center; padding: 56px 0; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.hero p { color: var(--muted); font-size: 1.1rem; margin: 0 0 28px; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.card {
  max-width: 440px;
  margin: 0 auto 24px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.card.wide { max-width: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid .card { max-width: none; margin: 0; }

.field { display: block; margin-bottom: 16px; }
.field span { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.92rem; }
.field small { display: block; margin-top: 4px; color: var(--muted); }
input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
}
input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }

.btn, button.btn {
  display: inline-block;
  padding: 11px 22px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1408;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--gold-2); border: 1px solid var(--gold); }
.btn.small { padding: 7px 14px; font-size: 0.9rem; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
button.link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
button.link:hover { color: var(--text); }

.muted { color: var(--muted); font-size: 0.92rem; }

.flash { max-width: 440px; margin: 0 auto 20px; padding: 12px 16px; border-radius: 8px; border: 1px solid; }
.flash.ok { border-color: var(--ok); background: rgba(79, 174, 123, 0.12); }
.flash.error { border-color: var(--err); background: rgba(217, 96, 76, 0.12); }
main:has(.card.wide) .flash { max-width: none; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0; }
.facts div { padding: 12px; background: var(--bg-2); border-radius: 8px; }
.facts dt { color: var(--muted); font-size: 0.85rem; }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }

.chars { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.chars th, .chars td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.chars th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }

@media (max-width: 600px) {
  .top { padding: 12px 16px; }
  .card { padding: 20px; }
  .chars { display: block; overflow-x: auto; white-space: nowrap; }
}
