/* Раздел «Статьи» (/stati). Цвета и радиусы — из токенов style.css / refined.css. */

.st-banner { padding-bottom: 8px; }
.st-title { max-width: 900px; font-weight: 650; text-wrap: balance; }
.st-lead { max-width: 720px; margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.st-crumb-current { max-width: 36ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.st-meta span + span::before { content: "·"; margin-right: 18px; opacity: .6; }

.st-layout { display: grid; grid-template-columns: minmax(0, 760px) 300px; justify-content: space-between; gap: 56px; padding-top: 28px; padding-bottom: 24px; }
.st-main { min-width: 0; }

.st-answer { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 20px 24px; }
.st-answer__label { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 8px; }
.st-answer p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink); }

.st-cover { margin: 28px 0 0; }
.st-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); background: var(--bg-soft); }
.st-cover figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); }

.st-toc { margin: 28px 0 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.st-toc__label { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.st-toc ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.st-toc li::marker { color: var(--accent); font-weight: 700; }
.st-toc a { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.st-toc a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.st-prose { margin-top: 12px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.st-prose > * + * { margin-top: 16px; }
.st-prose p { margin-bottom: 0; }
.st-prose h2 { margin-top: 44px; font-size: 28px; line-height: 1.25; font-weight: 650; color: var(--ink); scroll-margin-top: 100px; }
.st-prose h3 { margin-top: 28px; font-size: 20px; line-height: 1.35; font-weight: 650; color: var(--ink); }
.st-prose h2 + *, .st-prose h3 + * { margin-top: 12px; }
.st-prose strong { color: var(--ink); font-weight: 650; }
.st-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.st-prose a:hover { color: var(--accent-deep); }
.st-prose ul, .st-prose ol { margin-bottom: 0; padding-left: 24px; }
.st-prose li + li { margin-top: 8px; }
.st-prose li::marker { color: var(--accent); }

.st-tip, .st-warn { border-radius: var(--r-md); padding: 16px 20px; font-size: 16px; line-height: 1.6; }
.st-tip { background: var(--bg-soft); border: 1px solid var(--line); }
.st-warn { background: #fdf4f1; border: 1px solid #efd3c8; }
.st-tip b:first-child, .st-warn b:first-child { display: block; margin-bottom: 4px; color: var(--ink); }

.st-table { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-md); }
.st-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.st-table th, .st-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.st-table thead th { background: var(--bg-soft); color: var(--ink); font-weight: 650; font-size: 13.5px; }
.st-table tbody tr:last-child td { border-bottom: 0; }
.st-table td.num, .st-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-table tr.total td { font-weight: 700; color: var(--ink); background: var(--accent-soft); }

.st-fig { margin-left: 0; margin-right: 0; }
.st-fig img { width: 100%; border-radius: var(--r-md); background: var(--bg-soft); }
.st-fig figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.st-steps { list-style: none; padding: 0 !important; display: grid; gap: 20px; counter-reset: st-step; }
.st-steps > li { counter-increment: st-step; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; margin: 0 !important; }
.st-steps img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); background: var(--bg-soft); }
.st-steps h3 { margin-top: 0 !important; font-size: 18px; }
.st-steps h3::before { content: counter(st-step, decimal-leading-zero) " · "; color: var(--accent); }
.st-steps p { margin: 6px 0 0; font-size: 16px; }

.st-faq { margin-top: 48px; }
.st-faq > h2 { font-size: 28px; line-height: 1.25; font-weight: 650; scroll-margin-top: 100px; }
.st-faq .faq-wrap { margin-top: 8px; }
.st-faq__q { margin: 0; font-size: inherit; }
.st-faq .faq-item.open .faq-a { max-height: 900px; }

.st-note { margin: 28px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.st-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.st-aside { position: relative; }
.st-aside__card { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: var(--bg-card); }
.st-aside__eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.st-aside__price { margin-top: 10px; font-size: 28px; line-height: 1.2; font-weight: 650; color: var(--accent); }
.st-aside__text { margin: 8px 0 18px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.st-aside__btn { width: 100%; justify-content: center; }
.st-aside__phone { display: block; margin-top: 16px; font-size: 18px; font-weight: 700; color: var(--ink); }
.st-aside__hours { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.st-aside__more { margin-top: 20px; padding: 0 4px; }
.st-aside__more ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.st-aside__more a { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.st-aside__more a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

body .st-cta-sec { padding-top: 40px; }
body .st-related { padding-top: 0; }
.st-related__title { font-size: 28px; font-weight: 650; margin-bottom: 24px; }
.st-related__all { margin: 28px 0 0; }
body .st-hub { padding-top: 24px; }

.st-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.st-card { min-width: 0; }
.st-card__link { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-card); transition: border-color .15s; }
.st-card__link:hover { border-color: var(--accent); }
.st-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-soft); }
.st-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.st-card__title { font-size: 18px; line-height: 1.35; font-weight: 650; color: var(--ink); }
.st-card__text { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.st-card__more { margin-top: auto; font-size: 14px; font-weight: 650; color: var(--accent); }

@media (max-width: 1100px) {
  .st-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .st-aside__card { position: static; }
  .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .st-layout { padding-top: 16px; }
  .st-lead, .st-answer p, .st-prose { font-size: 16px; }
  .st-answer { padding: 16px 18px; }
  .st-prose h2, .st-faq > h2, .st-related__title { font-size: 23px; }
  .st-prose h3 { font-size: 18px; }
  .st-crumb-current { display: none; }
  .st-crumb-current, .crumbs span:nth-last-child(2) { display: none; }
  .st-steps > li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .st-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
