/* «Полезное» и «Статьи»: один вопрос на экран, карточки инструментов, итог, статья */
.quiz [hidden] { display: none !important; }
.tl-grid { display: grid; gap: 12px; }
.tl-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.tl-card__t { font-size: 18px; line-height: 24px; font-weight: 700; }
.tl-card__go { margin-top: auto; padding-top: 6px; color: var(--navy); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 4px; }
.tl-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--light); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.tl-hidden { font-size: 12px; font-weight: 600; color: var(--warn); }

.quiz { max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
.quiz__top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); min-height: 24px; }
.quiz__bar { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.quiz__bar i { display: block; height: 100%; width: 0; background: var(--navy); transition: width .25s; }
.quiz__q { display: flex; flex-direction: column; gap: 14px; }
.js .quiz__q { display: none; }
.js .quiz__q.on { display: flex; }
.quiz__qt { font-size: 21px; line-height: 28px; font-weight: 700; }
.quiz__hint { font-size: 14px; color: var(--muted); }
.qopt { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; cursor: pointer; font-size: 16px; line-height: 22px; }
.qopt input { margin: 2px 0 0; width: 20px; height: 20px; accent-color: var(--navy); flex-shrink: 0; }
.qopt:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); background: var(--light); }
.qfield { display: flex; flex-direction: column; gap: 6px; }
.qfield input[type=text], .qfield textarea, .qfield select { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; width: 100%; }
.quiz__nav { display: flex; gap: 8px; }
.quiz__nav .btn { flex: 1; }
.quiz__nav .btn--secondary { flex: 0 0 56px; }
.js .quiz__all { display: none; }
.quiz__sec { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.disclaimer { font-size: 13px; line-height: 19px; color: var(--muted); }

.res { border-radius: var(--r); padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--border); background: #fff; }
.res__t { font-size: 24px; line-height: 30px; font-weight: 700; }
.res--ok { background: #ecf7ef; border-color: #cfe8d6; } .res--ok .res__t { color: #17703a; }
.res--low { background: #eef5fc; border-color: #d4e3f5; } .res--low .res__t { color: var(--navy); }
.res--mid, .res--warn { background: #fff7e6; border-color: #f3dfb2; } .res--mid .res__t, .res--warn .res__t { color: #8a5a00; }
.res--high { background: #fdeeee; border-color: #f4d0d0; } .res--high .res__t { color: #a12a2a; }
.res--danger { background: #7a1f1f; border-color: #7a1f1f; color: #fff; } .res--danger .res__t { color: #fff; }
.res ul { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: disc; }
.res__score { font-size: 15px; opacity: .85; }
.scale { position: relative; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #3aa660, #e6b33a 45%, #d9534f 75%, #7a1f1f); }
.scale i { position: absolute; top: -5px; width: 4px; height: 20px; border-radius: 2px; background: var(--ink); transform: translateX(-50%); }
.secres { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.secres b { font-size: 15px; }
.secres:last-child { border-bottom: 0; }
.notes { border: 1px dashed var(--warn); border-radius: 14px; padding: 14px 16px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }

.art-list { display: flex; flex-direction: column; gap: 12px; }
.art-row { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); }
.art-row__t { font-size: 19px; line-height: 25px; font-weight: 700; }
.art-meta { font-size: 13px; color: var(--muted); }
.article { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.article__body { font-size: 18px; line-height: 29px; display: flex; flex-direction: column; gap: 14px; }
.article__body h2 { font-size: 24px; line-height: 30px; margin-top: 12px; }
.article__body h3 { font-size: 20px; line-height: 26px; margin-top: 8px; }
.article__body ul, .article__body ol { padding-left: 24px; list-style: revert; display: flex; flex-direction: column; gap: 6px; }
.article__body a { color: var(--accent); text-decoration: underline; }
.article__body blockquote { margin: 0; padding: 12px 16px; border-left: 3px solid var(--navy); background: var(--grey); border-radius: 0 12px 12px 0; }
.article__body img { border-radius: 14px; }

@media (min-width: 760px) {
  .tl-grid { grid-template-columns: repeat(3, 1fr); }
  .quiz__qt { font-size: 24px; line-height: 32px; }
}
