/* =====================================================================
   Тест-радар «Какой ты фрилансер» — стили страницы.
   База — flekk.css (дизайн-система flekk): тёмный hero + светлая зона.
   Акцент — брендовый синий (дефолт, без data-product). Без эмодзи.
   ===================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 20px; }

/* --- Hero — первый экран на всю высоту --- */
.hero { position: relative; overflow: hidden; min-height: 100vh; min-height: 100dvh; display: flex; text-align: center; }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; max-width: 640px; margin: 0 auto; padding: 28px 20px 36px; }
.hero-top { display: flex; justify-content: center; }
.hero-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 0; }
.hero-badge { margin-bottom: 22px; }
.hero h1 { color: #fff; margin: 0 0 16px; font-size: clamp(34px, 6vw, 54px); line-height: 1.08; }
.hero h1 .hl { background: linear-gradient(90deg, var(--fk-blue-light), #22D3EE); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { color: var(--fk-on-dark-muted); font-size: 18px; max-width: 520px; margin: 0 auto 32px; }
.hero .fk-btn-primary { padding: 15px 30px; font-size: 16px; }
.hero-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--fk-radius-md); padding: 16px 14px; }
.feat b { display: block; font-size: 19px; font-weight: 800; color: #fff; letter-spacing: -.01em; margin-bottom: 3px; }
.feat span { display: block; font-size: 13px; color: var(--fk-on-dark-muted); line-height: 1.4; }
@media (max-width: 600px) {
  .hero-inner { padding: 20px 16px 24px; }
  .hero-main { padding: 20px 0; }
  .hero .sub { font-size: 16px; margin-bottom: 26px; }
  .hero-feats { grid-template-columns: 1fr; gap: 8px; }
  .feat { display: flex; align-items: baseline; gap: 10px; text-align: left; padding: 12px 16px; }
  .feat b { font-size: 16px; margin: 0; white-space: nowrap; }
}

/* --- Компактная шапка после старта --- */
.mini-head { display: none; position: sticky; top: 0; z-index: 40; background: var(--fk-dark-0); border-bottom: 1px solid rgba(255,255,255,.08); }
.mini-wrap { max-width: 640px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
.mini-head .fk-logo { font-size: 19px; color: #fff; }
.mini-head .fk-logo span { color: var(--fk-blue-light); }
.mini-name { font-size: 13px; font-weight: 500; color: var(--fk-on-dark-muted); }
body.working .mini-head { display: block; }
body.working .hero { display: none; }
.quiz-zone, .screen { scroll-margin-top: 64px; }

/* --- Экраны --- */
.quiz-zone { padding: 40px 0 24px; }
.screen { display: none; }
.screen.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* --- Прогресс --- */
.progress-track { height: 6px; border-radius: 999px; background: var(--fk-line); overflow: hidden; margin-bottom: 8px; }
.progress-fill { height: 100%; border-radius: 999px; background: var(--accent); width: 0%; transition: width .25s ease; }
.progress-label { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; font-variant-numeric: tabular-nums; }

/* --- Вопрос --- */
.q-text { font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; margin-bottom: 24px; }
.q-options { display: flex; flex-direction: column; gap: 12px; }
.q-opt {
  text-align: left; padding: 16px 18px; font-size: 15px; font-weight: 500; font-family: inherit;
  background: var(--fk-surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--fk-radius-md);
  cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .1s ease;
  line-height: 1.4;
}
.q-opt:hover { border-color: var(--accent); background: #F8FAFF; }
.q-opt:active { transform: scale(.99); }
.q-back { margin-top: 20px; background: none; border: none; font-family: inherit; font-size: 14px; color: var(--text-muted); cursor: pointer; padding: 6px 0; }
.q-back:hover { color: var(--text); }
.q-back[hidden] { display: none; }

/* --- Результат --- */
.result-head { text-align: center; margin-bottom: 20px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.result-name { font-size: clamp(26px, 6vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }

.card-preview {
  width: 100%; display: block; margin: 0 auto 20px;
  aspect-ratio: 1080 / 1920; max-height: 62vh; object-fit: contain;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--fk-dark-0); box-shadow: var(--fk-shadow-sm);
}

.result-lines { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.result-line { display: flex; gap: 14px; align-items: baseline; padding: 16px 18px; }
.result-line .tag {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; min-width: 76px;
}
.result-line.strong .tag { color: var(--fk-ok); }
.result-line.trap .tag { color: var(--fk-err); }
.result-line p { font-size: 15px; line-height: 1.5; }
@media (max-width: 400px) {
  .result-line { flex-direction: column; gap: 4px; }
  .result-line .tag { min-width: 0; }
}

/* Денежный CTA-блок */
.money-card { margin-bottom: 16px; }
.cta-flex { display: flex; gap: 16px; align-items: flex-start; }
.cta-body { flex: 1; }
.money-text { font-size: 15px; color: var(--text); line-height: 1.5; margin-bottom: 14px; font-weight: 500; }
@media (max-width: 480px) { .cta-flex { flex-direction: column; } }

.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.result-foot { text-align: center; margin-top: 8px; }
.result-foot .q-back { margin-top: 0; }

footer { text-align: center; padding: 36px 20px 44px; font-size: 13px; color: var(--fk-faint); }
footer a { color: var(--fk-muted); text-decoration: none; }
footer a:hover { color: var(--text); }
