/* Бесплатные инструменты (/tools/*) + общие мелочи для словаря и сравнений */
.article-body { max-width: none; }
.article-grid { grid-template-columns: minmax(0, 1fr) 240px; }
.article-body > .tool + h2 { margin-top: 44px; }
.tool { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin: 6px 0 12px; }
.tool-grid { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 26px; align-items: start; }
.tool-grid-wide { grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr); }
.tool-form h3 { font-family: var(--font-d); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); margin: 14px 0 10px; font-weight: 600; }
.tool-form h3:first-child { margin-top: 0; }
.tf { display: block; margin-bottom: 12px; }
.tf > span:first-child { display: block; font-size: 13px; color: var(--mut); margin-bottom: 5px; }
.tf .req { color: var(--lime); font-style: normal; }
.tf-in { display: flex; align-items: center; gap: 8px; }
.tf input, .tf select, .tf textarea { width: 100%; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font: inherit; font-size: 15px; padding: 10px 12px; outline: none; transition: border-color .15s; }
.tf textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.tf input:focus, .tf select:focus, .tf textarea:focus { border-color: rgba(201,247,58,.55); }
.tf-in i { font-style: normal; color: var(--mut); font-size: 14px; flex: 0 0 auto; min-width: 18px; }
.tf small { display: block; color: var(--mut2); font-size: 12px; margin-top: 4px; line-height: 1.4; }
.tf small b.over { color: var(--red); }
.tool-form .btn { margin-top: 6px; }
.tool-out { min-height: 120px; }
.tool-out h4 { font-family: var(--font-d); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); margin: 18px 0 10px; font-weight: 600; }
.tool-hint { color: var(--mut); font-size: 14.5px; line-height: 1.6; }
.t-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.t-stat { background: var(--panel2); border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; }
.t-stat span { display: block; font-size: 12.5px; color: var(--mut); margin-bottom: 4px; }
.t-stat b { font-family: var(--font-d); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.t-stat.hi { border-color: rgba(201,247,58,.35); }
.t-stat.hi b { color: var(--lime); }
.t-stat.ok b { color: var(--lime); }
.t-stat.bad b { color: var(--red); }
.t-note { font-size: 13.5px; color: var(--mut); line-height: 1.55; margin: 12px 0 0; padding: 10px 12px; border-left: 2px solid var(--line); }
.t-note.ok { border-color: var(--lime); color: var(--ink); }
.t-note.warn { border-color: var(--amber); color: var(--ink); }
.t-note.bad { border-color: var(--red); color: var(--ink); }
.t-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 0; }
.t-table th, .t-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line2); }
.t-table th { color: var(--mut); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.t-table tr.cur td { color: var(--lime); font-weight: 700; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line2); }
.tool-actions .btn { padding: 10px 16px; font-size: 13.5px; }
.tool-msg { color: var(--lime); font-size: 13px; }
/* чекер */
.t-score { display: flex; align-items: center; gap: 16px; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 14px; }
.t-score b { font-family: var(--font-d); font-size: 34px; font-weight: 700; line-height: 1; }
.t-score span { color: var(--mut); font-size: 14px; }
.t-score.ok { border-color: rgba(201,247,58,.45); } .t-score.ok b { color: var(--lime); }
.t-score.warn { border-color: rgba(255,197,85,.5); } .t-score.warn b { color: var(--amber); }
.t-score.bad { border-color: rgba(255,107,94,.5); } .t-score.bad b { color: var(--red); }
.t-first { background: var(--panel2); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.t-first span { display: block; font-size: 12px; color: var(--mut2); margin-bottom: 6px; }
.t-first p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.t-first i { color: var(--mut2); font-style: normal; }
.t-checks { list-style: none; margin: 0; padding: 0; }
.t-checks li { position: relative; padding: 8px 0 8px 26px; font-size: 14px; line-height: 1.5; border-bottom: 1px solid var(--line2); }
.t-checks li::before { content: ''; position: absolute; left: 4px; top: 14px; width: 10px; height: 10px; border-radius: 50%; }
.t-checks li.bad::before { background: var(--red); } .t-checks li.warn::before { background: var(--amber); }
.t-checks li.ok::before { background: var(--lime); } .t-checks li.info::before { background: var(--mut2); }
.t-checks li.ok { color: var(--mut); }
/* генератор */
.t-res { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.t-res-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.t-res-h span { font-size: 12px; color: var(--mut); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.t-res-h small, .t-alts small { color: var(--mut2); font-size: 12px; }
.t-copy { margin-left: auto; background: transparent; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font: inherit; font-size: 12.5px; padding: 5px 10px; cursor: pointer; }
.t-copy:hover { border-color: rgba(201,247,58,.55); }
.t-res-title { margin: 0; font-size: 17px; font-weight: 700; }
.t-res-desc { margin: 0; white-space: pre-wrap; font: inherit; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.t-alts { list-style: none; margin: 0; padding: 0; }
.t-alts li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line2); font-size: 14.5px; }
.t-alts li:first-child { border-top: 0; }
.t-loading { display: flex; gap: 8px; padding: 30px 0; justify-content: center; }
.t-loading i { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); animation: tl 1s infinite ease-in-out; }
.t-loading i:nth-child(2) { animation-delay: .15s; } .t-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes tl { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-5px); } }
/* словарь и сравнения */
.lead-def { font-size: 17.5px; line-height: 1.65; }
.cmp td:nth-child(2), .cmp td:nth-child(3) { white-space: normal; }
.disc { color: var(--mut2); }
.hub-h2 { margin: 44px 0 16px; font-size: 22px; }
.hub-faq { margin-top: 48px; }
@media (max-width: 900px) {
  .tool-grid, .tool-grid-wide { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .t-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .t-stats { grid-template-columns: 1fr; } .tool { padding: 16px; } }
