:root {
  --bg: #0f1419;
  --surface: #1a222d;
  --border: #2d3a4a;
  --text: #e8eef4;
  --muted: #8fa3b8;
  --accent: #3b9eff;
  --accent-dim: #2563a8;
  --success: #34c759;
  --danger: #ff5c5c;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

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

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(26, 34, 45, 0.95);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.logo:hover {
  text-decoration: none;
}

nav.nav a {
  margin-left: 1rem;
  color: var(--muted);
}
nav.nav a:hover {
  color: var(--accent);
}

main {
  padding: 2rem 0 4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

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

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
}

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

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

.grid-2 {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

.form-row {
  margin-bottom: 1rem;
}

.errorlist {
  color: var(--danger);
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
}

.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.messages li {
  padding: 0.65rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.messages .success {
  background: rgba(52, 199, 89, 0.15);
  border: 1px solid rgba(52, 199, 89, 0.4);
}
.messages .error,
.messages .warning {
  background: rgba(255, 92, 92, 0.12);
  border: 1px solid rgba(255, 92, 92, 0.35);
}
.messages .info {
  background: rgba(59, 158, 255, 0.12);
  border: 1px solid rgba(59, 158, 255, 0.35);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.data th,
table.data td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
table.data th {
  color: var(--muted);
  font-weight: 500;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  background: var(--border);
}

.hero {
  padding: 2.5rem 0 1rem;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}
.hero .lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 36rem;
}

.section {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.public-quiz {
  max-width: 520px;
  margin: 0 auto;
}
.public-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.public-header h1 {
  font-size: 1.4rem;
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.price-cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .price-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.price-cards .card h3 {
  margin-top: 0;
}
.price-cards .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
