/* ==========================================================================
   Справка, «О нас», политика конфиденциальности: оформление текста статей
   Подключается после main.css только на этих страницах
   ========================================================================== */

.article { max-width: 880px; }
.article h2 { margin: 44px 0 14px; font-size: clamp(24px, 3vw, 30px); letter-spacing: -.02em; }
.article h3 { margin: 28px 0 10px; font-size: 20px; }
.article p, .article li { color: var(--text-2); font-size: 17px; line-height: 1.65; }
.article p + p { margin-top: 12px; }
.article ul, .article ol { margin: 12px 0; padding-left: 24px; display: grid; gap: 8px; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li::marker { color: var(--pink); }
.article .toc ol, .article .steps-list, .article .related ul { list-style: none; }
.article strong { color: var(--text); }
.article a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.article a:hover { color: var(--pink); }
.article .callout { margin: 20px 0; }
.article .callout p { font-size: 15px; }
.article .kbd { font-size: 14px; }

.updated { margin-top: 14px; color: var(--text-3); font-size: 14px; }

.toc { margin: 8px 0 8px; padding: 18px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.toc b { display: block; margin-bottom: 8px; color: var(--text); font-size: 15px; }
.toc ol { margin: 0; padding-left: 0; display: grid; gap: 6px; list-style: none !important; counter-reset: t; }
.toc li { counter-increment: t; }
.toc li::before { content: counter(t) ". "; color: var(--text-3); font-size: 15px; }
.toc a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.toc a:hover { color: var(--text); }

.table-wrap { margin: 18px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; }
.article th, .article td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); color: var(--text-2); }
.article th { color: var(--text); font-weight: 700; background: var(--surface); white-space: nowrap; }
.article tr:last-child td { border-bottom: 0; }

.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list > li { position: relative; padding: 18px 20px 18px 64px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); counter-increment: s; }
.steps-list > li::before {
  content: counter(s); position: absolute; left: 18px; top: 18px;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--grad-soft); border: 1px solid rgba(155, 77, 255, .35); color: var(--text); font: 700 14px/1 var(--mono);
}
.steps-list > li strong { display: block; margin-bottom: 4px; font-size: 18px; }

.help-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.help-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .15s ease, background-color .15s ease; }
.help-card:hover { border-color: var(--violet); background: rgba(155, 77, 255, .06); }
.help-card b { font-size: 18px; color: var(--text); }
.help-card span { color: var(--text-2); font-size: 15px; }

.related { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); }
.related h2 { margin-top: 0; font-size: 22px; }
.related ul { padding-left: 0 !important; }

@media (max-width: 640px) {
  .help-cards { grid-template-columns: 1fr; }
  .article p, .article li { font-size: 16px; }
  .steps-list > li { padding: 16px 16px 16px 58px; }
}
