/* Налоговый Лоцман — Квиз «Узнай свою СНО» v9_0
 * Совпадает с палитрой landing v8
 */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --accent: #06b6d4;
  --bg-dark: #0f172a;
  --bg-card: rgba(255, 255, 255, 0.05);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --green: #10b981;
  --red-muted: #f87171;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.bg-animation {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid var(--border);
}

.header-inner { display: flex; justify-content: space-between; align-items: center; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* ── Quiz container ───────────────────────────────── */
.quiz-container {
  max-width: 640px;
  margin: 60px auto;
  padding: 0 20px;
}

.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

/* ── Progress ─────────────────────────────────────── */
.quiz-progress {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-bottom: 8px;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.4s ease;
}
.quiz-step-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ── Question ─────────────────────────────────────── */
.quiz-question {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.quiz-hint {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ── Options ──────────────────────────────────────── */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.quiz-option:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}
.quiz-option.selected {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.12);
}
.quiz-option input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.quiz-option:has(input:focus-visible) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.35);
}
.quiz-option-text { font-size: 15px; }

/* ── Navigation ───────────────────────────────────── */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

/* ── Result ───────────────────────────────────────── */
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.result-icon { font-size: 56px; margin-bottom: 16px; }
.result-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.result-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.result-details {
  text-align: left;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}
.result-details h3 {
  font-size: 16px;
  margin-bottom: 12px;
}
.result-details ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.result-details li {
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  color: var(--text-muted);
}
.result-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
}
.result-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Mobile ──────────────────────────────────────── */
@media (max-width: 480px) {
  .quiz-card { padding: 28px 20px; }
  .quiz-question { font-size: 18px; }
  .result-card { padding: 32px 20px; }
  .result-title { font-size: 22px; }
  .result-cta { flex-direction: column; }
}
