/* ─────────────────────────────────────────────────────────────
   AiS1.52 — quiz.css
   Стили для лендинга /quiz. Переиспользует tokens.css.
   Editorial Ink palette: --bg #0B0E12, --ac #FF6A3C, --tx #F4EFE5
   ───────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: 'Mona Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

.quiz-body {
  display: flex;
  flex-direction: column;
}

#quiz-app {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
}

.screen {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.screen[hidden] { display: none; }

.screen-inner {
  background: var(--bg-elev-1);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 32px 24px;
}

@media (min-width: 768px) {
  .screen-inner { padding: 48px 40px; }
}

/* ─── HERO ─── */

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ac);
  background: var(--ac-soft);
  border: 1px solid var(--bd-accent);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--tx);
}

.hero-sub {
  font-size: 17px;
  color: var(--tx-mu);
  margin: 0 0 32px;
  max-width: 540px;
}

.hero-foot {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--tx-fa);
}

/* ─── BUTTONS ─── */

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.2px;
  min-height: 44px;
}

.btn-primary {
  background: var(--ac);
  color: var(--tx-on-ac);
}

.btn-primary:hover:not(:disabled) {
  background: var(--ac-hover);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--tx-mu);
  border: 1px solid var(--bd-strong);
}

.btn-ghost:hover {
  color: var(--tx);
  border-color: var(--bd-accent);
}

/* ─── LEAD CAPTURE ─── */

.screen-lead h2 {
  font-size: 26px;
  margin: 0 0 12px;
}

.lead-sub {
  color: var(--tx-mu);
  margin: 0 0 24px;
}

#telegram-login-container {
  margin: 24px 0;
  min-height: 60px;
}

.gdpr-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--tx-mu);
  margin: 24px 0;
  cursor: pointer;
}

.gdpr-check input {
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--ac);
  min-width: 16px;
  min-height: 16px;
}

/* ─── QUESTION ─── */

.question-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.block-name {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--tx-fa);
}

.progress {
  position: relative;
  height: 4px;
  background: var(--bg-elev-3);
  border-radius: 999px;
  overflow: visible;
}

.progress-bar {
  height: 100%;
  background: var(--ac);
  border-radius: 999px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-label {
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 12px;
  color: var(--tx-fa);
  font-variant-numeric: tabular-nums;
}

.question-text {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 24px;
}

.options {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  background: var(--bg-elev-2);
  border: 1px solid var(--bd);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 15px;
  line-height: 1.4;
  min-height: 44px;
  user-select: none;
}

.option:hover {
  border-color: var(--bd-accent);
  background: var(--bg-elev-3);
}

.option.selected {
  border-color: var(--ac);
  background: var(--ac-soft);
  color: var(--tx);
}

.option input[type="radio"] {
  display: none;
}

.question-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.question-footer .btn-ghost { flex-shrink: 0; }
.question-footer .btn-primary { flex-grow: 1; max-width: 240px; margin-left: auto; }

/* ─── INTERMEDIATE & FINAL ─── */

.intermediate-title,
.final-title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  margin: 0 0 16px;
}

.intermediate-text,
.final-text {
  color: var(--tx-mu);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 28px;
}

.intermediate-text p,
.final-text p {
  margin: 0 0 12px;
}

.platform-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 28px;
}

@media (min-width: 768px) {
  .platform-cards { grid-template-columns: 1fr 1fr; }
}

.platform-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--bd);
  border-radius: 12px;
  padding: 20px;
}

.platform-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--ac);
}

.platform-card p {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tx-mu);
}

.platform-card strong {
  color: var(--tx);
  font-weight: 600;
}

/* ─── STATUS ─── */

.screen-status #status-message {
  text-align: center;
  font-size: 16px;
  color: var(--tx-mu);
  padding: 40px 0;
}

.screen-status .error {
  color: var(--status-err);
}

/* ─── ACCESSIBILITY & MOTION ─── */

:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── MOBILE-FIRST FINE-TUNE ─── */

@media (max-width: 374px) {
  #quiz-app { padding: 16px 12px; }
  .screen-inner { padding: 24px 16px; }
  .question-footer { flex-direction: column; }
  .question-footer .btn-primary { max-width: 100%; }
}
