:root {
  --bg: #0f1419;
  --surface: #171d25;
  --border: #2a3441;
  --text: #e7edf4;
  --muted: #8b98a8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top, #152033 0%, var(--bg) 50%);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.hero {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
}

.coat-of-arms {
  display: block;
  width: min(220px, 55vw);
  height: auto;
  margin: 0 auto 1.25rem;
  border-radius: 8px;
}

.hero h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.tagline {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  flex: 1;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
  border-color: #3d4f63;
  transform: translateY(-2px);
}

.card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.card p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: #4a5d73;
}

.footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

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

.footer a:hover {
  text-decoration: underline;
}

.footer .sep {
  margin: 0 0.5rem;
  color: var(--border);
}

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