/* Квиз на витрине. План: .ai/tasks/quiz-system-plan.md §8. Акцент — фирменная переменная. */

.quiz-zone { margin: 0 0 1.5rem; }

.quiz-preview-badge {
  display: inline-block;
  margin-bottom: .5rem;
  padding: .25rem .6rem;
  border-radius: .375rem;
  background: #fff7ed;
  color: #b45309;
  border: 1px solid #fed7aa;
  font-size: .75rem;
  font-weight: 600;
}

.quiz-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.quiz-title { font-size: 1.25rem; font-weight: 700; color: #0f172a; margin: 0 0 .35rem; }
.quiz-desc  { color: #475569; font-size: .9rem; margin: 0 0 .75rem; }
.quiz-meta  { color: #64748b; font-size: .85rem; margin: 0 0 1rem; }

.quiz-progress { height: 4px; background: #e2e8f0; border-radius: 4px; overflow: hidden; margin-bottom: .5rem; }
.quiz-progress-bar { height: 100%; background: var(--color-brand-600, #0891b2); transition: width .25s ease; }
.quiz-stepnum { color: #64748b; font-size: .8rem; margin-bottom: .5rem; }

.quiz-question { font-size: 1.1rem; font-weight: 600; color: #0f172a; margin: 0 0 .35rem; }
.quiz-qhint { color: #64748b; font-size: .85rem; margin: 0 0 .85rem; }

.quiz-answers { display: grid; gap: .5rem; margin-bottom: .85rem; }
@media (min-width: 640px) { .quiz-answers { grid-template-columns: 1fr 1fr; } }

.quiz-answer {
  display: flex; align-items: center;
  text-align: left;
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  background: #fff;
  color: #1e293b;
  font-size: .92rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.quiz-answer:hover { border-color: var(--color-brand-500, #22d3ee); }
.quiz-answer.is-selected {
  border-color: var(--color-brand-600, #0891b2);
  background: var(--color-brand-50, #ecfeff);
  font-weight: 600;
}

.quiz-hintbox {
  background: #f8fafc;
  border-left: 3px solid var(--color-brand-500, #22d3ee);
  border-radius: .375rem;
  padding: .6rem .8rem;
  color: #334155;
  font-size: .85rem;
  margin-bottom: .85rem;
}

.quiz-input {
  width: 100%;
  padding: .6rem .8rem;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  font-size: .92rem;
  margin-bottom: .6rem;
}
.quiz-input:focus { outline: none; border-color: var(--color-brand-600, #0891b2); }

.quiz-nav { display: flex; gap: .5rem; justify-content: flex-end; }

.quiz-btn {
  padding: .6rem 1.1rem;
  border-radius: .5rem;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
.quiz-btn-primary { background: var(--color-brand-600, #0891b2); color: #fff; }
.quiz-btn-primary:hover { background: var(--color-brand-700, #0e7490); }
.quiz-btn-primary:disabled { opacity: .6; cursor: default; }
.quiz-btn-ghost { background: #fff; color: #475569; border-color: #e2e8f0; }
.quiz-btn-ghost:hover { background: #f8fafc; }

.quiz-loading { color: #64748b; }

.quiz-products { display: grid; gap: .6rem; margin: 1rem 0; }
@media (min-width: 640px) { .quiz-products { grid-template-columns: repeat(3, 1fr); } }
.quiz-product {
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  padding: .8rem;
  text-decoration: none;
  color: #0f172a;
  transition: border-color .15s, box-shadow .15s;
}
.quiz-product:hover { border-color: var(--color-brand-500, #22d3ee); box-shadow: 0 2px 8px rgba(15,23,42,.06); }
.quiz-product-tier { font-size: .72rem; font-weight: 600; color: var(--color-brand-700, #0e7490); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .3rem; }
.quiz-product-name { font-size: .9rem; font-weight: 500; line-height: 1.3; }
.quiz-product-price { margin-top: .4rem; font-weight: 700; color: #0f172a; }

.quiz-lead { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; }
.quiz-lead-title { font-weight: 600; color: #0f172a; margin-bottom: .6rem; }
.quiz-lead-msg { color: #b91c1c; font-size: .82rem; margin-top: .4rem; min-height: 1rem; }
.quiz-lead-success { color: #047857; font-weight: 600; padding: .5rem 0; }
