/* Тест личности (MBTI) в новом виде (redesign, ветка Дизайн 27.09.2026). Работает вместе с rd.css и rd-mbti.js */

.rd #pt-test { font-family: var(--f-ui); color: var(--ink); }
.rd #pt-test p { display: block; font-size: inherit; opacity: 1; margin: 0; }
.rd #pt-test .pt-screen { width: 100%; }
.rd #pt-test .rd-label { display: block; font: 500 11px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }

/* кнопки теста: у .button на сайте font-size 0, возвращаем текст */
.rd #pt-test .button { display: inline-flex; align-items: center; justify-content: center; font: 500 15px/1 var(--f-ui); border-radius: 999px; padding: 16px 24px; border: 1px solid var(--line); background: transparent; color: var(--ink); text-decoration: none; transition: opacity .15s, background .15s; }
.rd #pt-test .button:hover { opacity: .85; color: var(--ink); }
.rd #pt-test .button.black { background: var(--ink); border-color: var(--ink); color: #fff; }
.rd #pt-test .button.black:hover { color: #fff; }
.rd #pt-test .button:disabled { opacity: .4; cursor: default; }

/* ===== интро ===== */
.rd #pt-test .pt-lead { font: 400 17px/1.6 var(--f-text); margin: 0 0 24px; max-width: 760px; }
.rd #pt-test .pt-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0 0 24px; }
.rd #pt-test .pt-facts li { background: var(--tile); border-radius: 20px; padding: 20px 16px; margin: 0; }
.rd #pt-test .pt-facts li::before { display: none; }
.rd #pt-test .pt-facts b { display: block; font: 700 32px/1 var(--f-ui); letter-spacing: -1px; }
.rd #pt-test .pt-facts span { display: block; font: 400 13px/1.3 var(--f-ui); color: var(--mute); margin-top: 8px; }
.rd #pt-test .pt-resume { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--accent-soft); border-radius: 20px; padding: 16px 20px; margin: 0 0 24px; }
.rd #pt-test .pt-resume p { font-size: 15px; }
.rd #pt-test .pt-start-wrap { margin: 0 0 16px; }
.rd #pt-test #pt-start { width: 100%; height: 60px; font-size: 17px; }
.rd #pt-test .pt-disclaimer { font: 400 13px/1.5 var(--f-ui); color: var(--mute); }

/* ===== экран вопроса ===== */
.rd #pt-test .pt-topbar, .rd #pt-test .pt-prog-txt { display: none; }
.rd #pt-test .rdq-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rd #pt-test .rdq-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font: 500 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.rd #pt-test .rdq-status { font: 400 13px/1.3 var(--f-ui); color: var(--mute); }
.rd #pt-test .rdq-status b { color: var(--ink); font-weight: 600; }
.rd #pt-test .pt-prog { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 20px; }
.rd #pt-test .pt-prog__fill { height: 100%; width: 0; background: var(--ink); transition: width .3s; }

.rd #pt-test .pt-card { display: block; min-height: 0; border: 0; background: var(--tile); border-radius: 20px; padding: 32px; margin-bottom: 20px; }
.rd #pt-test .pt-qbody { width: 100%; }
.rd #pt-test .pt-qtext { font: 600 28px/1.3 var(--f-ui); letter-spacing: -.4px; text-align: left; margin-bottom: 12px; }
.rd #pt-test .rdq-hint { font: 400 15px/1.5 var(--f-text); color: var(--mute); margin-bottom: 28px; max-width: 760px; }

/* шкала из 7 кружков */
.rd #pt-test .pt-scale { display: block; }
.rd #pt-test .pt-scale__end { display: none; }
.rd #pt-test .pt-scale__opts { display: flex; align-items: center; justify-content: space-between; gap: 8px; max-width: 560px; margin: 0 auto; }
.rd #pt-test .pt-c { flex: none; border-radius: 50%; background: #fff; cursor: pointer; padding: 0; border: 2px solid var(--line); transition: background .12s, border-color .12s, transform .08s; }
.rd #pt-test .pt-c:active { transform: scale(.92); }
.rd #pt-test .pt-c3 { width: 56px; height: 56px; }
.rd #pt-test .pt-c2 { width: 46px; height: 46px; }
.rd #pt-test .pt-c1 { width: 36px; height: 36px; }
.rd #pt-test .pt-c0 { width: 28px; height: 28px; }
.rd #pt-test .pt-dis, .rd #pt-test .pt-neu { border-color: var(--line); }
.rd #pt-test .pt-agr { border-color: var(--accent-mid); }
.rd #pt-test .pt-c:hover { border-color: var(--accent); }
.rd #pt-test .pt-c.is-selected { background: var(--accent); border-color: var(--accent); }
.rd #pt-test .rdq-ends { display: flex; justify-content: space-between; gap: 8px; max-width: 600px; margin: 12px auto 0; font: 400 13px/1.3 var(--f-ui); color: var(--mute); }
.rd #pt-test .rdq-ends span { flex: 1; text-align: center; }
.rd #pt-test .rdq-ends span:first-child { text-align: left; }
.rd #pt-test .rdq-ends span:last-child { text-align: right; }

.rd #pt-test .pt-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
.rd #pt-test .pt-nav .button { flex: none; min-width: 150px; margin: 0; }
.rd #pt-test .rdq-next { flex: 1; text-align: right; font: 400 14px/1.3 var(--f-ui); color: var(--mute); }
.rd #pt-test .rdq-next__short { display: none; }
.rd #pt-test .rdq-foot { margin-top: 16px; font: 400 13px/1.5 var(--f-ui); color: var(--mute); }

/* ===== результат ===== */
.rd #pt-test .rdt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.rd #pt-test .rdt-head .rd-label { color: var(--ink); }
.rd #pt-test .rdt-date { font: 400 13px/1.3 var(--f-ui); color: var(--mute); }
.rd #pt-test .rdt-type { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.rd #pt-test .rdt-type__code { font: 700 64px/1 var(--f-ui); letter-spacing: -2px; }
.rd #pt-test .rdt-type__name { font: 600 28px/1.2 var(--f-ui); letter-spacing: -.5px; color: var(--accent); }
.rd #pt-test .rdt-tag { font: 400 17px/1.6 var(--f-text); margin: 12px 0 16px; max-width: 760px; }
.rd #pt-test .rdt-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.rd #pt-test .rdt-badge { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font: 500 13px/1 var(--f-ui); }
.rd #pt-test .rdt-badge--ink { background: var(--ink); border-color: var(--ink); color: #fff; }

.rd #pt-test .rdt-block { margin-bottom: 32px; }
.rd #pt-test .rdt-h3 { font: 600 28px/1.2 var(--f-ui); letter-spacing: -.5px; margin: 0 0 16px; }
.rd #pt-test .rdt-note { font: 400 15px/1.5 var(--f-text); color: var(--mute); margin: -6px 0 16px; max-width: 760px; }
.rd #pt-test .rdt-about { font: 400 17px/1.6 var(--f-text); margin-bottom: 20px; max-width: 760px; }

.rd #pt-test .rdt-axis { margin-bottom: 18px; }
.rd #pt-test .rdt-axis__top { display: flex; justify-content: space-between; gap: 12px; font: 500 13px/1.3 var(--f-ui); color: var(--mute); margin-bottom: 6px; }
.rd #pt-test .rdt-axis__track { position: relative; height: 12px; background: var(--line); border-radius: 6px; overflow: hidden; }
.rd #pt-test .rdt-axis__track i { position: absolute; top: 0; height: 100%; border-radius: 6px; }
.rd #pt-test .rdt-axis__track i.is-left { left: 0; background: var(--ink); }
.rd #pt-test .rdt-axis__track i.is-right { right: 0; background: var(--accent); }
.rd #pt-test .rdt-axis__out { font: 400 14px/1.4 var(--f-ui); color: var(--mute); margin-top: 6px; }
.rd #pt-test .rdt-axis__out b { color: var(--ink); font-weight: 600; }
.rd #pt-test .rdt-ident { background: var(--accent-soft); border-radius: 20px; padding: 18px 22px; margin-top: 6px; }
.rd #pt-test .rdt-ident .rd-label { color: var(--accent); margin-bottom: 6px; }
.rd #pt-test .rdt-ident p { font: 400 15px/1.5 var(--f-text); }

.rd #pt-test .rdt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.rd #pt-test .rdt-list { background: var(--tile); border-radius: 20px; padding: 20px 24px; }
.rd #pt-test .rdt-list ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.rd #pt-test .rdt-list li { margin: 0; padding: 0; font: 400 15px/1.45 var(--f-text); }
.rd #pt-test .rdt-list li::before { display: none; }
.rd #pt-test .rdt-facts { display: grid; grid-template-columns: 200px 1fr; gap: 12px 20px; margin: 0; border-top: 1px solid var(--line); padding-top: 20px; }
.rd #pt-test .rdt-facts dt { margin: 3px 0 0; }
.rd #pt-test .rdt-facts dd { margin: 0; font: 400 15px/1.5 var(--f-text); }

.rd #pt-test .rdt-funcs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rd #pt-test .rdt-func { display: flex; gap: 14px; align-items: flex-start; background: var(--tile); border-radius: 20px; padding: 18px 20px; }
.rd #pt-test .rdt-func__code { flex: none; width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--card); font: 700 17px/1 var(--f-ui); }
.rd #pt-test .rdt-func--1 .rdt-func__code { background: var(--ink); color: #fff; }
.rd #pt-test .rdt-func--4 .rdt-func__code { background: #D3D8DE; }
.rd #pt-test .rdt-func__role { font: 600 15px/1.3 var(--f-ui); margin-bottom: 4px; }
.rd #pt-test .rdt-func p { font: 400 14px/1.5 var(--f-text); color: var(--mute); }

.rd #pt-test .rdt-grid { display: flex; flex-direction: column; gap: 14px; }
.rd #pt-test .rdt-grid__row .rd-label { margin-bottom: 8px; }
.rd #pt-test .rdt-grid__cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rd #pt-test .rdt-cell { background: var(--tile); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.rd #pt-test .rdt-cell b { display: block; font: 700 15px/1.2 var(--f-ui); }
.rd #pt-test .rdt-cell span { display: block; font: 400 13px/1.3 var(--f-ui); color: var(--mute); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.rd #pt-test .rdt-cell.is-me { background: var(--ink); color: #fff; }
.rd #pt-test .rdt-cell.is-me span { color: rgba(255, 255, 255, .75); }

.rd #pt-test .rdt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.rd #pt-test .rdt-foot { font: 400 13px/1.5 var(--f-ui); color: var(--mute); }

@media (max-width: 1023px) {
    .rd #pt-test .rdt-funcs { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
    .rd #pt-test .pt-facts { grid-template-columns: 1fr 1fr; }
    .rd #pt-test .pt-card { padding: 22px 18px; }
    .rd #pt-test .pt-qtext { font-size: 22px; }
    .rd #pt-test .rdq-hint { font-size: 14px; margin-bottom: 22px; }
    .rd #pt-test .pt-scale__opts { gap: 4px; }
    .rd #pt-test .pt-c3 { width: 38px; height: 38px; }
    .rd #pt-test .pt-c2 { width: 31px; height: 31px; }
    .rd #pt-test .pt-c1 { width: 25px; height: 25px; }
    .rd #pt-test .pt-c0 { width: 20px; height: 20px; }
    .rd #pt-test .rdq-ends { font-size: 12px; }
    .rd #pt-test .pt-nav .button { min-width: 0; padding: 14px 18px; }
    .rd #pt-test .rdq-next { font-size: 13px; }
    .rd #pt-test .rdq-next__long { display: none; }
    .rd #pt-test .rdq-next__short { display: inline; }
    .rd #pt-test .rdt-type__code { font-size: 48px; letter-spacing: -1.5px; }
    .rd #pt-test .rdt-type__name { font-size: 24px; }
    .rd #pt-test .rdt-axis__top { font-size: 12px; }
    .rd #pt-test .rdt-ident { padding: 16px 18px; }
    .rd #pt-test .rdt-cols { grid-template-columns: 1fr; }
    .rd #pt-test .rdt-facts { grid-template-columns: 1fr; gap: 4px; }
    .rd #pt-test .rdt-facts dd { margin-bottom: 10px; }
    .rd #pt-test .rdt-func { padding: 16px; }
    .rd #pt-test .rdt-grid__cells { grid-template-columns: 1fr 1fr; }
    .rd #pt-test .rdt-h3 { font-size: 24px; }
    .rd #pt-test .rdt-actions .button { flex: 1 1 100%; }
}
