/* Портал психотестов — графит+золото (токены дашборда, web/dashboard/static/
 * dashboard.css), мобайл-фёрст: продавцы открывают с телефона. Один вопрос на
 * экран, крупные карточки-варианты, прогресс-бар — флоу-референс GrowPath. */

:root { color-scheme: dark; }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100%; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: #0B0C10; color: #F3F1EC;
}
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }

:root {
  --gold-a:#F4731C; --gold-b:#FFBE00;
  --bg:#0B0C10; --bg-2:#101218; --panel:#14161E; --panel-2:#181B24;
  --fg-1:#F3F1EC; --fg-2:#A6ABBA; --fg-3:#6A7080;
  --line:rgba(255,255,255,0.08); --line-2:rgba(255,255,255,0.05);
  --line-gold:color-mix(in srgb, var(--gold-a) 34%, transparent);
  --green:#3FBF7F; --red:#E8341A;
}

.pt-wrap {
  max-width: 560px; margin: 0 auto; padding: 20px 16px 48px;
  min-height: 100vh; display: flex; flex-direction: column;
}

/* Шапка */
.pt-head { display: flex; align-items: center; gap: 10px; padding: 4px 0 20px; }
.pt-logo {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-weight: 900; font-size: 14px; color: #1a1205;
  background: linear-gradient(145deg, var(--gold-b), var(--gold-a));
}
.pt-brand { font-size: 14px; font-weight: 800; color: var(--fg-2); letter-spacing: .2px; }
.pt-head-spacer { margin-left: auto; }
.pt-head-name { font-size: 13px; font-weight: 700; color: var(--fg-3); }

/* Карточки-панели */
.pt-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 18px; padding: 20px;
}
.pt-card + .pt-card { margin-top: 12px; }

/* Экран входа */
.pt-login { margin: auto 0; text-align: center; padding: 36px 22px; }
.pt-login-title { font-size: 24px; font-weight: 900; line-height: 1.25; }
.pt-login-sub { margin-top: 10px; font-size: 14px; color: var(--fg-2); line-height: 1.5; }
.pt-login-err {
  margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--red);
  background: color-mix(in srgb, var(--red) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--red) 30%, transparent);
  border-radius: 10px; padding: 8px 12px; display: inline-block;
}

/* Кнопки */
.pt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  font-size: 15px; font-weight: 800; transition: transform .12s ease, opacity .12s ease;
}
.pt-btn:active { transform: scale(.97); }
.pt-btn.primary {
  color: #1a1205; background: linear-gradient(135deg, var(--gold-b), var(--gold-a));
  box-shadow: 0 10px 24px -12px var(--gold-a);
}
.pt-btn.ghost { border: 1px solid var(--line); color: var(--fg-1); background: var(--panel); }
.pt-btn[disabled] { opacity: .38; cursor: default; }
.pt-btn[disabled]:active { transform: none; }
.pt-btn.block { width: 100%; }

/* Главная: приветствие и карточки тестов */
.pt-hello { font-size: 26px; font-weight: 900; line-height: 1.2; margin: 4px 0 4px; }
.pt-hello-sub { font-size: 14px; color: var(--fg-2); margin-bottom: 18px; line-height: 1.5; }
.pt-test-title { font-size: 18px; font-weight: 900; }
.pt-test-desc { margin-top: 6px; font-size: 14px; color: var(--fg-2); line-height: 1.5; }
.pt-test-meta { margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-chip {
  font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--fg-2); background: var(--bg-2);
}
.pt-chip.done {
  color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent);
  background: color-mix(in srgb, var(--green) 10%, transparent);
}
.pt-test-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Прохождение */
.pt-progress-row {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 12px; font-weight: 800; letter-spacing: .6px; color: var(--fg-3);
  text-transform: uppercase; margin-bottom: 8px;
}
.pt-bar { height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.pt-bar-fill {
  height: 100%; border-radius: 999px; width: 0;
  background: linear-gradient(90deg, var(--gold-b), var(--gold-a));
  transition: width .25s ease;
}
.pt-group-hint {
  margin: 16px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .4px;
  color: var(--gold-b); text-transform: uppercase;
}
.pt-q-text { margin: 14px 0 6px; font-size: 19px; font-weight: 900; line-height: 1.35; }
.pt-q-note { font-size: 13px; color: var(--fg-3); margin-bottom: 14px; }
.pt-opts { display: flex; flex-direction: column; gap: 10px; }
.pt-opt {
  text-align: left; width: 100%; min-height: 56px; padding: 14px 16px;
  border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--fg-1);
  font-size: 15px; font-weight: 600; line-height: 1.4;
  transition: border-color .15s ease, background .15s ease;
}
.pt-opt.on {
  border-color: var(--line-gold);
  background: color-mix(in srgb, var(--gold-a) 12%, var(--bg-2));
  box-shadow: inset 0 0 0 1px var(--line-gold);
}
.pt-quiz-nav { display: flex; gap: 10px; margin-top: 18px; }
.pt-quiz-nav .pt-btn { flex: 1; }
.pt-limit-hint { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--gold-b); }

/* Результат */
.pt-lead-label { font-size: 12px; font-weight: 800; letter-spacing: .6px; color: var(--fg-3); text-transform: uppercase; }
.pt-lead {
  margin-top: 6px; font-size: 26px; font-weight: 900; line-height: 1.2;
  background: linear-gradient(135deg, var(--gold-b), var(--gold-a));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pt-scale { margin-top: 14px; }
.pt-scale-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.pt-scale-name { color: var(--fg-2); }
.pt-scale-pct { color: var(--fg-1); font-weight: 900; }
.pt-scale-bar { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.pt-scale-fill {
  height: 100%; border-radius: 999px; width: 0;
  background: linear-gradient(90deg, var(--gold-b), var(--gold-a));
  transition: width .4s ease;
}
.pt-scale.lead .pt-scale-name { color: var(--gold-b); }
.pt-desc-title { font-size: 15px; font-weight: 900; }
.pt-desc-class { font-size: 12px; font-weight: 700; color: var(--fg-3); margin-top: 2px; }
.pt-desc-text { margin-top: 8px; font-size: 14px; color: var(--fg-2); line-height: 1.55; }
.pt-result-date { margin-top: 14px; font-size: 13px; color: var(--fg-3); }
.pt-result-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }

/* Служебное */
.pt-loading { margin: auto; text-align: center; color: var(--fg-3); font-weight: 700; }
.pt-error { text-align: center; color: var(--red); font-weight: 700; padding: 24px 0; }

@media (min-width: 720px) {
  .pt-wrap { padding-top: 40px; }
  .pt-hello { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .pt-bar-fill, .pt-scale-fill, .pt-btn, .pt-opt { transition: none; }
}

/* «Краткая расшифровка» — основной/дополнительный тип */
.pt-desc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pt-chip.type {
  color: var(--gold-b); border-color: var(--line-gold);
  background: color-mix(in srgb, var(--gold-a) 10%, transparent);
  flex: none;
}
.pt-desc-motto {
  margin-top: 8px; font-size: 12px; font-weight: 800; letter-spacing: .6px;
  color: var(--fg-3); text-transform: uppercase; line-height: 1.5;
}
.pt-desc-sec { margin-top: 14px; }
.pt-desc-sec-label {
  font-size: 12px; font-weight: 800; letter-spacing: .5px;
  color: var(--gold-b); text-transform: uppercase; margin-bottom: 6px;
}
.pt-desc-list { list-style: none; }
.pt-desc-list li {
  position: relative; padding-left: 16px; margin-top: 5px;
  font-size: 14px; color: var(--fg-2); line-height: 1.5;
}
.pt-desc-list li::before {
  content: ''; position: absolute; left: 2px; top: .55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-b), var(--gold-a));
}
.pt-note {
  margin-top: 12px; font-size: 13px; color: var(--fg-3); line-height: 1.55;
  border-left: 3px solid var(--line-gold); padding: 2px 0 2px 12px;
}
