/* /start/ — квиз-воронка «подбери план за 2 минуты» + пейвол.
   Наследует переменные phraseman.css (и светлую тему из theme.css). */

.quiz-shell {
  max-width: 720px;
}
.quiz-topbar {
  gap: 24px;
}
.quiz-progress {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--line-strong);
  overflow: hidden;
  min-width: 80px;
  max-width: 320px;
}
.quiz-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: var(--gold-grad);
  transition: width 0.35s ease;
}
.quiz-root {
  padding: clamp(16px, 4vh, 40px) 0 40px;
}
.quiz-footer {
  padding: 20px 0 30px;
  justify-content: center;
}

/* Экран */
.qscreen {
  animation: qin 0.32s ease;
}
@keyframes qin {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.qscreen .kicker {
  margin-bottom: 14px;
}
.qscreen h1 {
  font-size: clamp(1.6rem, 4.6vw, 2.3rem);
  margin-bottom: 12px;
}
.qscreen .sub {
  margin-bottom: 26px;
}

/* Варианты ответа */
.qoptions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 18px;
}
.qopt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.qopt:hover {
  border-color: rgba(232, 197, 102, 0.55);
  transform: translateY(-1px);
}
.qopt:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.qopt .qemoji {
  font-size: 22px;
  flex: 0 0 auto;
}
.qopt small {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.qback {
  background: none;
  border: none;
  color: var(--muted-2);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
}
.qback:hover {
  color: var(--muted);
}

/* Промежуточный social proof */
.qproof-card {
  background: var(--surface);
  border: 1px solid rgba(232, 197, 102, 0.28);
  border-radius: var(--radius);
  padding: 24px 22px;
  margin: 6px 0 22px;
}
.qproof-card .qmark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.qproof-card p {
  margin: 8px 0 10px;
  font-size: 14.8px;
  line-height: 1.6;
}
.qproof-card footer {
  font-size: 12.5px;
  color: var(--muted-2);
  font-weight: 600;
}
.qstats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0 24px;
}
.qstats div {
  text-align: center;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.qstats b {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.qstats span {
  font-size: 11.5px;
  color: var(--muted-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Экран «строим план» */
.qbuild {
  text-align: center;
  padding: 40px 0;
}
.qbuild-ring {
  width: 86px;
  height: 86px;
  margin: 0 auto 26px;
  border-radius: 50%;
  border: 3px solid var(--line-strong);
  border-top-color: var(--gold);
  animation: qspin 0.9s linear infinite;
}
@keyframes qspin {
  to { transform: rotate(360deg); }
}
.qbuild-lines {
  max-width: 380px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qbuild-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--muted-2);
  opacity: 0.4;
  transition: opacity 0.3s, color 0.3s;
}
.qbuild-line.done {
  opacity: 1;
  color: var(--text);
}
.qbuild-line .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: transparent;
}
.qbuild-line.done .check {
  background: var(--gold-grad);
  border-color: transparent;
  color: #0a0a0e;
}

/* Результат: карточка плана */
.qplan-card {
  border-radius: var(--radius);
  border: 1px solid rgba(232, 197, 102, 0.35);
  background:
    radial-gradient(420px 200px at 50% -60px, rgba(232, 197, 102, 0.14), transparent 65%),
    var(--surface-2);
  padding: 26px 24px;
  margin: 10px 0 24px;
}
.qplan-card h2 {
  margin: 0 0 4px;
  font-size: 1.4rem;
}
.qplan-card .qplan-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.qplan-rows {
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qplan-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
}
.qplan-row .qemoji {
  flex: 0 0 auto;
}
.qplan-row b {
  color: var(--text);
}
.qplan-row span {
  color: var(--muted);
}

/* Пейвол */
.qplans {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 8px;
}
.qplan-opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.qplan-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.qplan-opt.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 197, 102, 0.16);
}
.qplan-name {
  font-weight: 750;
  font-size: 15.5px;
}
.qplan-name small {
  display: block;
  font-weight: 550;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}
.qplan-price {
  text-align: right;
  flex: 0 0 auto;
}
.qplan-price b {
  display: block;
  font-size: 17px;
  font-weight: 800;
}
.qplan-price small {
  font-size: 12px;
  color: var(--muted-2);
  font-weight: 600;
}
.qplan-badge {
  position: absolute;
  top: -9px;
  left: 16px;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--gold-grad);
  color: #0a0a0e;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.qpay-fields {
  margin: 18px 0 4px;
}
.qpay-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.qpay-alt {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}
.qpay-alt a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 650;
}
.qpay-alt a:hover {
  text-decoration: underline;
}
#paypal-buttons {
  margin-top: 4px;
  min-height: 0;
}
.qguarantee {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(232, 197, 102, 0.07);
  border: 1px solid rgba(232, 197, 102, 0.2);
  font-size: 13.5px;
  color: var(--muted);
}
.qsecure {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted-2);
}
.qfaq-mini {
  margin-top: 30px;
}
.qfaq-mini details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.qfaq-mini summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 14px;
  list-style: none;
}
.qfaq-mini summary::-webkit-details-marker {
  display: none;
}
.qfaq-mini p {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.qerr {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.38);
  color: #fecaca;
  font-size: 14px;
  font-weight: 600;
  display: none;
}
.qerr.show {
  display: block;
}

/* Thanks: код активации */
.qcode-box {
  max-width: 420px;
  margin: 22px auto 6px;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px dashed rgba(232, 197, 102, 0.55);
  background: rgba(232, 197, 102, 0.06);
  text-align: center;
}
.qcode {
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: all;
  margin-bottom: 16px;
  word-break: break-all;
}
.qcode-copy {
  max-width: 260px;
  margin: 0 auto;
}

/* Thanks */
.qthanks {
  text-align: center;
  padding: 30px 0;
}
.qthanks .icon {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  margin-bottom: 20px;
}
.qthanks-steps {
  max-width: 460px;
  margin: 26px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 480px) {
  .qstats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}
