/* Статьи */
.art { padding: 20px 0 40px; }
.art__wrap { width: min(860px, 100% - 32px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 14px; opacity: .95; }
.crumbs a { text-underline-offset: 3px; }
.art__card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 5vw, 56px); box-shadow: 0 30px 60px -36px rgba(0, 30, 50, .5); }
.art__card h1 { font-size: clamp(28px, 4.6vw, 44px); color: var(--ink); }
.art__meta { color: var(--ink-soft); font-size: 15px; }
.art__hero img { border-radius: 20px; margin: 8px 0 24px; width: 100%; }
.art__lead { font-size: 19px; font-weight: 600; color: var(--ink) !important; }
.art__card h2 { font-size: clamp(22px, 3vw, 28px); color: var(--ink); margin-top: 1.6em; }
.art__card h3 { font-size: 19px; color: var(--ink); margin-top: 1.4em; }
.art__card p, .art__card li { color: #24404f; }
.art__card ul, .art__card ol { padding-left: 22px; margin: 0 0 1em; }
.art__card li { margin-bottom: 8px; }
.art__card a { color: var(--blue-deep); text-underline-offset: 3px; }
.art__card strong { color: var(--ink); }

.tbl { overflow-x: auto; margin: 0 0 1.2em; border-radius: 16px; border: 1px solid var(--line); }
.tbl table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15.5px; }
.tbl th, .tbl td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl th { background: #eef7fb; color: var(--ink); font-weight: 800; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-weight: 700; color: var(--ink); }
.tbl tr.top-row td { background: rgba(219, 57, 150, .07); }

.note-box { background: #eef7fb; border-radius: 16px; padding: 16px 20px; margin: 0 0 1.2em; }
.note-box p:last-child { margin-bottom: 0; }

.bot-box { display: grid; gap: 14px; align-items: center; background: var(--blue); color: #fff; border-radius: 20px; padding: 22px 24px; margin: 1.6em 0; }
.bot-box p { color: #fff !important; margin: 0; font-weight: 600; font-size: 17px; }
.bot-box b { color: #fff; }
.bot-box .btn { justify-self: start; }
@media (min-width: 700px) { .bot-box { grid-template-columns: 1fr auto; } }
.art__card .bot-box a.btn { color: #fff; }

.steps-num { list-style: none; padding: 0 !important; counter-reset: n; display: grid; gap: 12px; }
.steps-num li { counter-increment: n; position: relative; padding: 14px 16px 14px 60px; background: #f4fafd; border-radius: 16px; margin: 0 !important; }
.steps-num li::before { content: counter(n); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 10px; background: var(--blue); color: #fff; display: grid; place-items: center; font: 800 15px/1 var(--head); }

.prompt { margin: 2em 0 0; padding: clamp(18px, 3vw, 28px); border-radius: 20px; background: rgba(219, 57, 150, .07); border: 2px dashed rgba(219, 57, 150, .4); }
.prompt h2 { margin-top: .2em !important; }
.prompt__kicker { font-weight: 800; color: var(--pink) !important; margin-bottom: 4px; }
.prompt__box { position: relative; }
.prompt pre { white-space: pre-wrap; word-wrap: break-word; margin: 0; background: var(--white); color: var(--ink); border-radius: 14px; padding: 16px 16px 60px; font: 500 14.5px/1.55 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; border: 1px solid var(--line); max-height: 420px; overflow: auto; }
.prompt__copy { position: absolute; right: 12px; bottom: 12px; border: 0; cursor: pointer; background: var(--pink); color: #fff; font: 800 15px/1 var(--body); padding: 12px 16px; border-radius: 999px; }
.prompt__copy:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.art__faq { margin-top: 2em; }
.art__faq details { background: #f4fafd; }
.sources { margin-top: 2em; font-size: 15px; }
.sources p, .sources li { font-size: 15px; }

.author-box { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; margin-top: 2em; padding: 18px; border-radius: 18px; background: #f4fafd; }
.author-box img { width: 96px; height: 96px; object-fit: cover; object-position: 50% 22%; border-radius: 50%; }
.author-box p { margin: 0; font-size: 15px; }
.author-box__name { font-weight: 800; color: var(--ink) !important; margin-bottom: 4px !important; }

.art__cta { margin-top: 24px; background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 5vw, 44px); text-align: center; }
.art__cta h2 { color: var(--ink); }
.art__cta p { color: var(--ink-soft); max-width: 520px; margin-inline: auto; }

.related { margin-top: 40px; }
.related__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.related__card { display: flex; flex-direction: column; background: var(--white); color: var(--ink); border-radius: 20px; overflow: hidden; text-decoration: none; font-weight: 800; transition: transform .2s ease; }
.related__card:hover { transform: translateY(-3px); }
.related__card img { aspect-ratio: 3 / 2; object-fit: cover; }
.related__card span { padding: 14px 16px; }

/* Страница 404 */
.btn--ghost { background: transparent; color: var(--pink); box-shadow: inset 0 0 0 2px var(--pink); }
.nf .related__grid { margin: 22px 0 6px; }
.nf__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 560px) {
  .related__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .related__card { border-radius: 16px; }
  .related__card span { padding: 10px 12px; font-size: 14px; line-height: 1.3; }
}
