
/* Newcareer Blog — стили для /quiz/ и result-страниц.
   Наследует :root от /styles.css. */

.quiz-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--line);
}
.quiz-hero h1 { margin-top: 8px; }
.quiz-hero .lead { max-width: 720px; }

.quiz-container { padding: 40px 0 80px; }

.quiz-progress {
  position: relative;
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  margin-bottom: 28px;
}
.quiz-progress-bar {
  position: absolute; inset: 0 auto 0 0;
  background: var(--accent);
  border-radius: 3px;
  transition: width .35s ease;
}
.quiz-progress-text {
  position: absolute;
  right: 0; top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.quiz-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 36px);
  box-shadow: var(--shadow-sm);
}
.qtitle {
  font-family: 'Prata', Georgia, serif;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
  margin: 0 0 18px;
}
.qhint {
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  margin-top: -8px;
  margin-bottom: 18px;
}
.qopts { display: grid; gap: 10px; }
.qopt {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.qopt:hover { border-color: var(--accent); background: #fffdfb; }
.qopt-checked { border-color: var(--accent); background: var(--accent-soft); }
.qopt input { display: none; }
.qopt-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: var(--ink); color: #fff;
  border-radius: 50%;
  font-weight: 600; font-size: 14px;
  font-family: 'Prata', Georgia, serif;
}
.qopt-text { line-height: 1.45; }

.quiz-actions { margin-top: 18px; display: flex; gap: 12px; }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* === Capture form === */
.quiz-form-block {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.qf-field { display: block; margin: 14px 0; }
.qf-field > span { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }
.qf-field input[type=email] {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; background: var(--bg);
}
.qf-field input[type=email]:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.qf-checkbox { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; margin-top: 16px; }
.qf-checkbox input { margin-top: 5px; }
.qf-checkbox span { font-size: 14px; color: var(--ink-soft); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  margin-top: 20px;
  transition: background .15s, transform .1s;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; border-bottom: none; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.qf-note { margin-top: 12px; font-size: 14px; min-height: 1.2em; }
.qf-note.qf-err { color: #b04545; }

.quiz-loading {
  text-align: center;
  padding: 60px 20px;
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Result pages === */
.result-hero {
  padding: 60px 0 32px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.result-icon { font-size: 64px; line-height: 1; margin: 12px 0 8px; }
.result-hero h1 { margin: 0 0 8px; }
.result-hero .lead { max-width: 600px; margin: 0 auto; color: var(--accent); font-weight: 500; }

.result-section { padding: 40px 0 80px; }
.wrap.narrow { max-width: 760px; }

.result-strengths {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin: 28px 0;
}
.result-strengths > div {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.result-strengths h3 { margin: 0 0 8px; font-size: 16px; }
.result-strengths p { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 640px) { .result-strengths { grid-template-columns: 1fr; } }

.result-salary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 10px;
}
.sal-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
}
.sal-lvl { display: block; font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 6px; }
.sal-amt { display: block; font-family: 'Prata', Georgia, serif; font-size: 22px; color: var(--ink); }
@media (max-width: 640px) { .result-salary-grid { grid-template-columns: 1fr; } }

.muted.small { color: var(--muted); font-size: 13px; }

.result-arts {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  margin: 16px 0 36px;
}
.result-art-card {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color .15s, transform .1s;
}
.result-art-card:hover { border-color: var(--accent); transform: translateX(2px); border-bottom-color: var(--accent); }
.result-art-card h3 { margin: 0; font-size: 17px; font-family: 'Inter', sans-serif; font-weight: 600; line-height: 1.35; }
.art-go { color: var(--accent); font-weight: 600; white-space: nowrap; font-size: 14px; }

.result-cta-block {
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  text-align: center;
}
.result-cta-block h3 { margin: 0 0 12px; }
.result-cta-block p { margin: 8px 0; color: var(--ink-soft); }
.result-cta-actions { margin-top: 18px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Мягкий партнёрский блок на result */
.result-offer {
  margin-top: 40px;
  padding: 32px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  background: #fffdfb;
}
.result-offer .offer-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.result-offer h2 { margin: 0 0 14px; }
.result-offer p { margin: 10px 0; color: var(--ink-soft); }
.result-offer .offer-actions { margin: 20px 0 8px; }
.result-offer .ad-disclosure {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.result-offer .ad-disclosure strong { font-weight: 600; color: var(--muted); }
