/* Тест привязанности: визуальный слой без изменения исходных ключей. */
.attachment-page { padding-bottom:30px; }
.attachment-heading { padding-top:125px; max-width:920px; }
.attachment-heading .breadcrumbs { margin-bottom:28px; }
.attachment-heading h1 { font:500 clamp(44px,5vw,68px)/1.07 var(--serif); letter-spacing:-.02em; margin:0 0 22px; max-width:820px; }
.attachment-heading h1 em { color:var(--olive-700); }
.attachment-lead { font-size:19px; line-height:1.6; color:var(--muted); margin-bottom:24px; }
.attachment-test { max-width:920px; }
.attachment-test .intro { margin:38px 0 24px; padding:24px 28px; border-radius:18px; background:var(--sage-100); font-size:15px; line-height:1.7; }
.attachment-test .intro p + p { margin-top:10px; }
.attachment-test .intro b { color:var(--olive-900); }
.attachment-test #test { padding:32px; background:var(--card); border:1px solid var(--line); border-radius:24px; }
.attachment-test #questions { scroll-margin-top:110px; }
.attachment-test .q { padding:24px 0; border-top:1px solid var(--line); min-width:0; }
.attachment-test .q:first-child { padding-top:0; border-top:0; }
.attachment-test .q-text { font-size:17px; line-height:1.55; margin:0; }
.attachment-test .q-text .num { color:var(--olive-700); font-weight:600; margin-right:6px; }
.attachment-test .q-label { margin:8px 0; color:var(--muted); font-size:13px; }
.attachment-test .opts { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.attachment-test .opts label { position:relative; display:flex; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:13px; min-height:52px; font-size:16px; font-weight:500; cursor:pointer; background:var(--card); transition:background .15s,border-color .15s,color .15s; }
.attachment-test .opts input { position:absolute; opacity:0; pointer-events:none; }
.attachment-test .opts label:hover { border-color:var(--olive-700); }
.attachment-test .opts label.sel { background:var(--olive-700); border-color:var(--olive-700); color:#fff; }
.attachment-test .opts label:focus-within { outline:2px solid var(--olive-700); outline-offset:3px; }
.attachment-test .legend { display:flex; justify-content:space-between; gap:16px; font-size:12px; line-height:1.5; color:var(--muted); margin-top:7px; }
.attachment-test .legend span:last-child { text-align:right; }
.attachment-test .q.missing { background:#fff6e9; outline:1px solid #b49c73; outline-offset:8px; border-radius:12px; }
.attachment-test .actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:12px; }
.attachment-test .actions .btn { min-height:50px; }
.attachment-test .progress { font-size:13px; color:var(--muted); margin-left:auto; }
.attachment-test .warn { display:none; margin-top:16px; font-size:14px; line-height:1.6; color:#87512d; }
.attachment-test .warn.show { display:block; }
.attachment-test #result { display:none; margin-top:28px; scroll-margin-top:105px; }
.attachment-test #result.show { display:block; }
.attachment-test .res-card { background:var(--card); border:1px solid var(--line); border-radius:24px; padding:30px 32px; }
.attachment-test .res-card + .res-card { margin-top:18px; }
.attachment-test #result > .res-card:first-child { background:var(--sage-100); border-color:var(--sage-200); }
.attachment-test .res-head { font:500 34px/1.2 var(--serif); color:var(--olive-900); margin:0 0 22px; }
.attachment-test .bar-row + .bar-row { margin-top:22px; }
.attachment-test .bar-label { display:flex; justify-content:space-between; gap:18px; font-size:14px; line-height:1.6; margin-bottom:9px; }
.attachment-test .bar-label span:last-child { font-weight:600; color:var(--olive-900); white-space:nowrap; }
.attachment-test .bar-track { height:12px; background:var(--card); border:1px solid var(--sage-200); border-radius:20px; overflow:hidden; }
.attachment-test .bar-fill { height:100%; width:0; background:var(--sage-400); border-radius:20px; transition:width .6s ease; }
.attachment-test .bar-fill.lead { background:var(--olive-700); }
.attachment-test .dmm { display:inline-block; font-size:11px; line-height:1.6; border:1px solid var(--sage-200); background:var(--sage-100); color:var(--olive-700); border-radius:16px; padding:5px 12px; margin-bottom:14px; }
.attachment-test .verdict-type { font:500 31px/1.2 var(--serif); margin:0 0 24px; }
.attachment-test .sec { margin-top:24px; }
.attachment-test .sec h4 { font-size:15px; font-weight:600; color:var(--olive-900); margin:0 0 8px; }
.attachment-test .sec p { font-size:16px; line-height:1.8; }
.attachment-test .extra { margin-top:24px; border-left:3px solid var(--sage-200); padding-left:18px; }
.attachment-test .extra .t { font-weight:600; margin-bottom:8px; }
.attachment-test .extra p { font-size:15px; line-height:1.8; }
.attachment-test .howto p { font-size:15px; line-height:1.8; }
.attachment-test .howto p + p { margin-top:14px; }
.attachment-test .disclaimer { border:1px solid var(--line); border-radius:20px; padding:24px 28px; margin-top:20px; font-size:14px; line-height:1.8; color:var(--muted); }
.attachment-test .disclaimer p + p { margin-top:14px; }
.attachment-credit { font-size:13px; text-align:center; color:var(--muted); margin:32px 0 0; line-height:1.8; }
@media(max-width:767px) {
 .attachment-heading { padding-top:100px; }
 .attachment-heading h1 { font-size:43px; }
 .attachment-lead { font-size:16px; }
 .attachment-test .intro { padding:22px 20px; font-size:14px; }
 .attachment-test #test { padding:24px 18px; border-radius:20px; }
 .attachment-test .q { padding:22px 0; }
 .attachment-test .q-text { font-size:16px; }
 .attachment-test .opts { gap:6px; }
 .attachment-test .opts label { min-height:48px; font-size:15px; border-radius:11px; }
 .attachment-test .legend { font-size:11px; gap:12px; }
 .attachment-test .actions { flex-direction:column; align-items:stretch; }
 .attachment-test .actions .btn { width:100%; }
 .attachment-test .progress { margin-left:0; text-align:center; }
 .attachment-test .res-card { padding:24px 20px; border-radius:20px; }
 .attachment-test .res-head { font-size:29px; }
 .attachment-test .bar-label { font-size:12px; gap:12px; }
 .attachment-test .verdict-type { font-size:28px; }
 .attachment-test .sec p { font-size:15px; }
 .attachment-test .disclaimer { padding:22px 20px; }
}
@media(prefers-reduced-motion:reduce) { .attachment-test .bar-fill { transition:none; } }
@media print { .attachment-page .attachment-heading .btn,.attachment-test .actions { display:none; } }
