/* Тест на тяжёлый характер в новом виде (redesign, ветка Дизайн 27.09.2026). Работает вместе с rd.css и rd-tyazhelyy.js */

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

/* кнопки теста: у .button на сайте font-size 0, возвращаем текст */
.rd #hc-test .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 15px/1 var(--f-ui); border-radius: 999px; padding: 16px 24px; margin: 0; width: auto; min-width: 0; height: auto; border: 1px solid var(--line); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; box-shadow: none; white-space: nowrap; }
.rd #hc-test .button:hover { opacity: .85; color: var(--ink); }
.rd #hc-test .button.black { background: var(--ink); border-color: var(--ink); color: #fff; }
.rd #hc-test .button.black:hover { color: #fff; }

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

/* ===== экран вопроса ===== */
.rd #hc-test #hc-test-screen:not([style*="none"]) { display: flex; flex-direction: column; gap: 24px; }
.rd #hc-test .rdq-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rd #hc-test .rdq-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--tile); color: var(--ink); font: 600 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.rd #hc-test .rdq-status { display: inline-flex; align-items: center; gap: 8px; font: 400 13px/1.3 var(--f-ui); color: var(--mute); }
.rd #hc-test .rdq-ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rd #hc-test .hc-prog { margin: -8px 0 0; }
.rd #hc-test .hc-prog__bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.rd #hc-test .hc-prog__fill { height: 100%; width: 0; background: var(--ink); border-radius: 4px; transition: width .25s; }
.rd #hc-test .hc-prog__meta { display: none; }
.rd #hc-test .hc-qtext { font: 600 30px/1.25 var(--f-ui); letter-spacing: -.5px; text-align: left; margin: 0; min-height: 0; }
.rd #hc-test .hc-scale-legend { font: 400 15px/1.5 var(--f-text); color: var(--mute); text-align: left; margin: -12px 0 0; }

.rd #hc-test .hc-opts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; background: var(--tile); border-radius: 20px; padding: 8px; margin: 0; }
.rd #hc-test .hc-opt { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; font: 600 15px/1.25 var(--f-ui); color: var(--ink); text-align: center; transition: border-color .12s, background .12s; }
.rd #hc-test .hc-opt__dot { display: none; }
.rd #hc-test .hc-opt__lbl { font: inherit; opacity: 1; color: inherit; }
.rd #hc-test .hc-opt:hover, .rd #hc-test .hc-opt:focus-visible { border-color: var(--accent-mid); outline: none; }
.rd #hc-test .hc-opt.is-sel { background: var(--ink); border-color: var(--ink); color: #fff; }
.rd #hc-test .hc-opt.is-sel .hc-opt__lbl { font-weight: 600; }

.rd #hc-test .hc-nav { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
.rd #hc-test .hc-nav .button { flex: none; padding: 14px 22px; }
.rd #hc-test #hc-prev { order: 0; }
.rd #hc-test .rdq-sel { order: 1; flex: 1; text-align: right; font: 400 14px/1.3 var(--f-ui); color: var(--mute); }
.rd #hc-test .rdq-sel b { color: var(--ink); font-weight: 600; }
.rd #hc-test #hc-next { order: 2; background: var(--ink); border-color: var(--ink); color: #fff; }
.rd #hc-test #hc-finish { order: 3; flex: none; }
.rd #hc-test .rdq-foot { font: 400 13px/1.5 var(--f-ui); color: var(--mute); }

/* ===== результат: живые узлы прячутся, новый вид строит rd-tyazhelyy.js ===== */
.rd #hc-test #hc-result > :not(.rdh) { display: none; }
.rd #hc-test .rdh { display: flex; flex-direction: column; gap: 16px; }
.rd #hc-test .rdh-tile { background: var(--tile); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.rd #hc-test .rdh-note { background: var(--accent-soft); border-radius: 14px; padding: 14px 16px; font: 400 14px/1.5 var(--f-ui); }
.rd #hc-test .rdh-note b { font-weight: 600; }
.rd #hc-test .rdh-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rd #hc-test .rdh-meta { display: inline-flex; align-items: center; gap: 8px; font: 400 13px/1.3 var(--f-ui); color: var(--mute); }
.rd #hc-test .rdh-verdict { font: 700 34px/1.15 var(--f-mono); letter-spacing: -.5px; }
.rd #hc-test .rdh-text { font: 400 17px/1.6 var(--f-text); max-width: 760px; }
.rd #hc-test .rdh-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.rd #hc-test .rdh-badge { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 14px; border-radius: 999px; font: 500 14px/1.3 var(--f-ui); border: 1px solid var(--line); }
.rd #hc-test .rdh-badge--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.rd #hc-test .rdh-h3 { font: 600 24px/1.2 var(--f-ui); letter-spacing: -.4px; margin: 0; }
.rd #hc-test .rdh-sub { font: 400 15px/1.5 var(--f-text); color: var(--mute); margin-top: -12px; max-width: 760px; }

.rd #hc-test .rdh-bars { display: flex; flex-direction: column; gap: 18px; }
.rd #hc-test .rdh-bar__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font: 400 13px/1.3 var(--f-ui); color: var(--mute); }
.rd #hc-test .rdh-bar__top b { font: 600 15px/1 var(--f-mono); color: var(--ink); }
.rd #hc-test .rdh-bar__track { height: 12px; border-radius: 6px; background: var(--card); overflow: hidden; }
.rd #hc-test .rdh-bar__track i { display: block; height: 100%; border-radius: 6px; background: var(--ink); }
.rd #hc-test .rdh-bar.is-top .rdh-bar__track i { background: var(--accent); }
.rd #hc-test .rdh-bar.is-top .rdh-bar__top b { color: var(--accent); }
.rd #hc-test .rdh-bar__lvl { margin-top: 8px; font: 600 14px/1.3 var(--f-ui); }
.rd #hc-test .rdh-bar__lvl span { font-weight: 400; color: var(--mute); }

.rd #hc-test .rdh-radar { display: block; width: 100%; max-width: 620px; height: auto; margin: 0 auto; overflow: visible; }
.rd #hc-test .rdh-radar__grid { fill: none; stroke: var(--line); stroke-width: 1; }
.rd #hc-test .rdh-radar__grid.is-out { stroke: #C4C9CF; }
.rd #hc-test .rdh-radar__axis { stroke: var(--line); stroke-width: 1; }
.rd #hc-test .rdh-radar__shape { fill: rgba(79, 91, 213, .16); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.rd #hc-test .rdh-radar__dot { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.rd #hc-test .rdh-radar__lbl { font: 400 14px var(--f-ui); fill: var(--ink); }
.rd #hc-test .rdh-radar__lbl.is-top { fill: var(--accent); font-weight: 600; }
.rd #hc-test .rdh-radar--m { display: none; }
.rd #hc-test .rdh-legend { font: 400 13px/1.5 var(--f-ui); color: var(--mute); }

.rd #hc-test .rdh-expl { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.rd #hc-test .rdh-h3 + .rdh-expl { border-top: 0; padding-top: 0; }
.rd #hc-test .rdh-expl__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 400 13px/1.3 var(--f-ui); color: var(--mute); }
.rd #hc-test .rdh-expl__top b { font: 600 15px/1 var(--f-mono); color: var(--ink); }
.rd #hc-test .rdh-expl__text { font: 400 14px/1.55 var(--f-text); color: var(--ink); }

.rd #hc-test .rdh-p { font: 400 15px/1.55 var(--f-text); max-width: 760px; }
.rd #hc-test .rdh-pts { background: var(--card); border-radius: 16px; padding: 16px 18px; }
.rd #hc-test .rdh-pts__h { font: 600 15px/1.3 var(--f-ui); margin-bottom: 8px; }
.rd #hc-test .rdh-pts ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.rd #hc-test .rdh-pts li { margin: 0; padding: 0; font: 400 15px/1.5 var(--f-text); }
.rd #hc-test .rdh-rows { display: flex; flex-direction: column; gap: 14px; margin: 0; border-top: 1px solid var(--line); padding-top: 18px; }
.rd #hc-test .rdh-row { display: grid; grid-template-columns: 190px 1fr; gap: 16px; align-items: baseline; }
.rd #hc-test .rdh-row dd { margin: 0; font: 400 15px/1.5 var(--f-text); }
.rd #hc-test .rdh-row dt { margin: 0; }

.rd #hc-test .rdh-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rd #hc-test .rdh-actions .button--gray { background: var(--tile); border-color: var(--tile); }
.rd #hc-test .rdh-actions .button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rd #hc-test .rdh-foot { font: 400 13px/1.5 var(--f-ui); color: var(--mute); }

@media (max-width: 1023px) {
    .rd #hc-test .hc-opts { grid-template-columns: 1fr; }
    .rd #hc-test .hc-opt { min-height: 52px; justify-content: flex-start; text-align: left; padding: 14px 18px; }
}
@media (max-width: 639px) {
    .rd #hc-test .hc-facts { grid-template-columns: 1fr 1fr; }
    .rd #hc-test .hc-resume:not([style*="none"]) { flex-direction: column; align-items: stretch; }
    .rd #hc-test #hc-test-screen:not([style*="none"]) { gap: 20px; }
    .rd #hc-test .rdq-status { font-size: 12px; }
    .rd #hc-test .hc-qtext { font-size: 22px; letter-spacing: -.3px; }
    .rd #hc-test .hc-scale-legend { font-size: 14px; margin-top: -8px; }
    .rd #hc-test .hc-nav { flex-wrap: wrap; }
    .rd #hc-test .hc-nav .button { padding: 14px 18px; }
    .rd #hc-test .rdq-sel { display: none; }
    .rd #hc-test #hc-prev { order: 0; }
    .rd #hc-test #hc-next, .rd #hc-test #hc-finish { margin-left: auto; }
    .rd #hc-test #hc-finish { flex: 1 1 100%; order: -1; }
    .rd #hc-test .rdh-tile { padding: 20px 18px; gap: 16px; }
    .rd #hc-test .rdh-verdict { font-size: 26px; }
    .rd #hc-test .rdh-text { font-size: 16px; }
    .rd #hc-test .rdh-h3 { font-size: 20px; }
    .rd #hc-test .rdh-sub { margin-top: -8px; font-size: 14px; }
    .rd #hc-test .rdh-radar--d { display: none; }
    .rd #hc-test .rdh-radar--m { display: block; }
    .rd #hc-test .rdh-radar__lbl { font-size: 13px; }
    .rd #hc-test .rdh-row { grid-template-columns: 1fr; gap: 4px; }
    .rd #hc-test .rdh-actions .button { flex: 1 1 100%; white-space: normal; }
}
