
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700&family=Tektur:wght@700;900&display=swap');

/* ---------- токены «Телеметрии» ---------- */
#pd-test, #pd-test button, #pd-test input, #pd-test textarea { font-family: "Exo 2", "Ubuntu", Arial, sans-serif; }
#pd-test [hidden] { display: none !important; }
#pd-test {
  --bg: #05070f; --text: #eef1ff; --muted: rgba(238, 241, 255, .6); --faint: rgba(238, 241, 255, .32);
  --cyan: #92D5FF; --green: #34d399; --amber: #ffb703; --red: #ff6b6b;
  --tile: rgba(255, 255, 255, .04); --tile-hi: rgba(255, 255, 255, .07); --line: rgba(255, 255, 255, .1); --line-hi: rgba(255, 255, 255, .18);
  --cyan-soft: rgba(146, 213, 255, .12); --green-soft: rgba(52, 211, 153, .14); --amber-soft: rgba(255, 183, 3, .14); --red-soft: rgba(255, 107, 107, .14);
  position: relative; min-height: 100vh; color: var(--text); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 500px at 12% 10%, rgba(61, 107, 255, .14), transparent 60%), radial-gradient(700px 500px at 92% 95%, rgba(139, 92, 246, .12), transparent 60%), var(--bg);
}
#pd-test * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* Сетка на фоне, как в кабинете; без анимации — страница живёт на телефоне 25 минут */
#pd-test::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }

/* ---------- каркас ---------- */
#pd-test .pd-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(100%, 720px); margin: 0 auto; padding: 18px 20px 8px; font-size: 13px; color: var(--muted); }
#pd-test .pd-brand { font-family: "Tektur", sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--text); white-space: nowrap; }
#pd-test .pd-brand em { margin: 0 6px; color: var(--cyan); font-style: normal; }
#pd-test .pd-top-link { color: var(--text); text-decoration: none; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-weight: 600; font-size: 13px; white-space: nowrap; }
#pd-test .pd-shell { position: relative; width: min(100%, 720px); margin: 0 auto; padding: 6px 20px calc(128px + env(safe-area-inset-bottom)); }
#pd-test .pd-bar { position: sticky; top: 0; z-index: 10; background: rgba(5, 7, 15, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
#pd-test .pd-bar-in { width: min(100%, 720px); margin: 0 auto; padding: 10px 20px 12px; }
#pd-test .pd-bar-row { display: flex; align-items: center; gap: 12px; }
#pd-test .pd-bar-name { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); white-space: nowrap; }
#pd-test .pd-btimer { flex: 1; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pd-test .pd-btimer.over { color: var(--amber); }
#pd-test .pd-timer { font-family: "Tektur", sans-serif; font-size: 22px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
#pd-test .pd-timer.warn { color: var(--amber); } #pd-test .pd-timer.over { color: var(--red); }
#pd-test .pd-steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; margin: 10px 0 0; padding: 0; list-style: none; }
#pd-test .pd-steps li { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .1); }
#pd-test .pd-steps li.done { background: var(--green); } #pd-test .pd-steps li.now { background: var(--amber); box-shadow: 0 0 10px rgba(255, 183, 3, .7); }
#pd-test .pd-state { position: relative; width: min(100%, 560px); margin: 12vh auto 0; padding: 24px 28px; border-radius: 20px; color: var(--muted); background: rgba(8, 11, 24, .66); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); font-size: 15px; text-align: center; }
#pd-test .pd-state a { color: var(--cyan); }
#pd-test .pd-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; padding: 26px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(5, 7, 15, .98) 65%, transparent); }
#pd-test .pd-foot-inner { width: min(100%, 680px); margin: 0 auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#pd-test .pd-foot-inner .pd-btn.primary { flex: 1; }
#pd-test .pd-foot-note { width: 100%; text-align: center; font-size: 12px; color: var(--faint); letter-spacing: .04em; margin-bottom: 2px; }
#pd-test .pd-fade { animation: pd-fade .3s cubic-bezier(.2, .7, .2, 1); } @keyframes pd-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #pd-test .pd-fade { animation: none; } }

/* ---------- типографика ---------- */
#pd-test h1 { margin: 6px 0 12px; font-family: "Tektur", sans-serif; font-size: clamp(28px, 7vw, 40px); font-weight: 900; line-height: 1.05; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, .55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
#pd-test h2 { margin: 4px 0 8px; font-family: "Tektur", sans-serif; font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--text); }
#pd-test p { margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.55; }
#pd-test .pd-lead { color: var(--text); font-size: 17px; line-height: 1.5; }
#pd-test .pd-kicker { margin: 8px 0 8px; color: var(--cyan); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
#pd-test .pd-hint { font-size: 13px; color: var(--faint); margin: 10px 0 0; }
#pd-test .pd-err { color: var(--red); font-size: 14px; margin-top: 8px; min-height: 1em; }
#pd-test .pd-ok { color: var(--green); font-weight: 700; }
#pd-test .pd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
#pd-test .pd-chips span { font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

/* ---------- плитки и поля ---------- */
#pd-test .pd-tile { position: relative; padding: 22px; border-radius: 22px; background: var(--tile); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); margin-bottom: 12px; }
#pd-test .pd-tile > .pd-kicker:first-child { margin-top: 0; }
#pd-test .pd-tile p:last-child { margin-bottom: 0; }
#pd-test .pd-tile--accent { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(146, 213, 255, .18); }
#pd-test .pd-person-name { font-family: "Tektur", sans-serif; font-size: 22px; font-weight: 700; line-height: 1.15; }
#pd-test .pd-person-meta { color: var(--muted); font-size: 14px; margin-top: 6px; }
#pd-test .pd-how { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
#pd-test .pd-how li { position: relative; padding-left: 44px; color: var(--muted); font-size: 14px; line-height: 1.45; }
#pd-test .pd-how li b { display: block; color: var(--text); font-weight: 600; font-size: 15px; }
#pd-test .pd-how li i { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 10px; background: var(--cyan-soft); color: var(--cyan); display: grid; place-items: center; }
#pd-test .pd-how li i svg { width: 18px; height: 18px; }
#pd-test label { display: block; font-weight: 600; margin: 18px 0 8px; color: var(--text); line-height: 1.4; font-size: 15px; }
#pd-test label:first-child { margin-top: 0; }
#pd-test label small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
#pd-test input[type=text], #pd-test textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; min-height: 50px; outline: none; -webkit-appearance: none; appearance: none; }
#pd-test input[type=text]:focus, #pd-test textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(146, 213, 255, .18); }
#pd-test input::placeholder, #pd-test textarea::placeholder { color: var(--faint); }
#pd-test textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
#pd-test .pd-counter { text-align: right; font-size: 12px; color: var(--faint); margin-top: 4px; font-variant-numeric: tabular-nums; } #pd-test .pd-counter.over { color: var(--red); }
#pd-test .pd-row { display: flex; gap: 8px; } #pd-test .pd-row input { flex: 1; min-width: 0; }

/* ---------- кнопки ---------- */
#pd-test .pd-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .02em; border: 0; border-radius: 999px; padding: 14px 22px; min-height: 52px; cursor: pointer; color: var(--text); background: rgba(255, 255, 255, .07); text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, opacity .2s ease; }
#pd-test .pd-btn.primary { color: #04060f; background: linear-gradient(90deg, var(--cyan), #E9C3FF); box-shadow: 0 10px 36px rgba(146, 213, 255, .28); padding-right: 50px; }
#pd-test .pd-btn.primary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2304060f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/18px no-repeat; }
#pd-test .pd-btn.primary:disabled { opacity: .4; cursor: default; box-shadow: none; }
#pd-test .pd-btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
#pd-test .pd-btn.small { min-height: 40px; padding: 8px 16px; font-size: 13px; }
#pd-test .pd-btn.on { background: var(--cyan-soft); box-shadow: inset 0 0 0 1px var(--cyan); color: var(--cyan); }
#pd-test .pd-btn.icon { width: 50px; padding: 0; font-size: 24px; flex: 0 0 50px; }

/* ---------- варианты и списки ---------- */
#pd-test .pd-list { list-style: none; padding: 0; margin: 12px 0 0; }
#pd-test .pd-list li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; margin-bottom: 8px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
#pd-test .pd-list li .n { color: var(--faint); font-size: 12px; font-weight: 700; flex: 0 0 22px; font-variant-numeric: tabular-nums; } #pd-test .pd-list li .t { flex: 1; font-size: 15px; }
#pd-test .pd-list li button { font: inherit; background: transparent; border: 0; color: var(--faint); font-size: 22px; line-height: 1; padding: 0 4px; cursor: pointer; }
#pd-test .pd-list li.pick { background: var(--cyan-soft); box-shadow: inset 0 0 0 1px var(--cyan); } #pd-test .pd-list li.pick .n { color: var(--cyan); }
#pd-test .pd-opt { display: block; width: 100%; text-align: left; font: inherit; font-size: 15px; line-height: 1.45; color: var(--text); background: var(--tile); border: 0; border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); padding: 16px 18px; margin-bottom: 10px; cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease; }
#pd-test .pd-opt.sel { background: var(--cyan-soft); box-shadow: inset 0 0 0 1px var(--cyan); }
#pd-test .pd-opt .l { display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; }
#pd-test .pd-sjt { border-radius: 18px; padding: 16px 18px; margin-bottom: 10px; background: var(--tile); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
#pd-test .pd-sjt.best { box-shadow: inset 0 0 0 1px var(--green); background: rgba(52, 211, 153, .07); } #pd-test .pd-sjt.worst { box-shadow: inset 0 0 0 1px var(--red); background: rgba(255, 107, 107, .07); }
#pd-test .pd-sjt .t { margin-bottom: 12px; line-height: 1.45; font-size: 15px; } #pd-test .pd-sjt .t .l { font-family: "Tektur", sans-serif; font-weight: 700; color: var(--cyan); margin-right: 8px; }
#pd-test .pd-sjt .marks { display: flex; gap: 8px; min-width: 0; }
#pd-test .pd-mark { flex: 1 1 0; min-width: 0; font: inherit; font-size: 12px; line-height: 1.15; font-weight: 700; letter-spacing: .02em; border-radius: 999px; padding: 8px 6px; min-height: 38px; cursor: pointer; border: 0; box-shadow: inset 0 0 0 1px var(--line); background: transparent; color: var(--muted); }
#pd-test .pd-mark.best.on { background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); color: var(--green); } #pd-test .pd-mark.worst.on { background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red); color: var(--red); }
#pd-test .pd-stack { display: flex; flex-direction: column; gap: 8px; } #pd-test .pd-stack .pd-btn { justify-content: flex-start; text-align: left; font-weight: 500; background: rgba(255, 255, 255, .05); }
#pd-test .pd-words { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } #pd-test .pd-words input { padding: 10px 14px; min-height: 46px; }
#pd-test .pd-rat { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; } #pd-test .pd-rat .w { flex: 1 1 55%; font-weight: 500; font-size: 15px; } #pd-test .pd-rat input { flex: 1 1 38%; padding: 10px 14px; min-height: 46px; }
#pd-test .pd-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 11px 0; border-bottom: 1px solid var(--line); } #pd-test .pd-act:last-of-type { border-bottom: 0; } #pd-test .pd-act .t { flex: 1 1 220px; font-size: 14px; line-height: 1.4; }
#pd-test .pd-seg { display: flex; gap: 4px; flex: 0 0 auto; margin-left: auto; } #pd-test .pd-seg button { font: inherit; font-size: 12px; font-weight: 600; border: 0; box-shadow: inset 0 0 0 1px var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 11px; min-height: 34px; cursor: pointer; white-space: nowrap; }
#pd-test .pd-seg button.on { background: var(--cyan-soft); box-shadow: inset 0 0 0 1px var(--cyan); color: var(--cyan); }
@media (max-width: 480px) { #pd-test .pd-seg { width: 100%; margin-left: 0; } #pd-test .pd-seg button { flex: 1; } }

/* ---------- завершение и результаты ---------- */
#pd-test .pd-big { width: 60px; height: 60px; border-radius: 50%; background: var(--green-soft); color: var(--green); box-shadow: 0 0 24px rgba(52, 211, 153, .45); font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 18px 0 8px; }
#pd-test .pd-res-dim { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 13px 0; border-bottom: 1px solid var(--line); } #pd-test .pd-res-dim:last-child { border-bottom: 0; }
#pd-test .pd-res-dim .nm { font-weight: 600; font-size: 15px; } #pd-test .pd-res-dim .pc { font-family: "Tektur", sans-serif; font-weight: 700; color: var(--cyan); font-variant-numeric: tabular-nums; font-size: 13px; }
#pd-test .pd-res-dim .how { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
#pd-test .pd-meter { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; } #pd-test .pd-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), #E9C3FF); border-radius: 2px; }
#pd-test .pd-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; background: var(--green-soft); color: var(--green); margin: 0 6px 6px 0; }
#pd-test .pd-tag.grow { background: var(--amber-soft); color: var(--amber); }
#pd-test .pd-radar { display: block; max-width: 340px; margin: 0 auto; }
#pd-test .pd-radar text { fill: rgba(238, 241, 255, .7); font-family: "Exo 2", sans-serif; }
#pd-test .pd-invite { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(52, 211, 153, .45); }
@media (max-width: 580px) { #pd-test .pd-top { padding: 14px 16px 6px; } #pd-test .pd-top-mid { display: none; } #pd-test .pd-shell { padding-left: 16px; padding-right: 16px; } #pd-test .pd-bar-in { padding-left: 16px; padding-right: 16px; } #pd-test .pd-tile { padding: 18px; } #pd-test .pd-words { grid-template-columns: 1fr; } }
