/* Статьи: читаемая колонка, тезис сервиса, содержание сбоку, перелинковка */
.ar-page { background: var(--paper); }
.ar-top { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.ar-top-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 66px; flex-wrap: wrap; }
.ar-nav { display: flex; align-items: center; gap: 16px; }
.ar-nav > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
/* Ссылки шапки — под палец: не ниже 44px (мобильная проверка 26.11.2026) */
.ar-top .logo, .ar-nav > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
.ar-wrap { padding-top: 18px; padding-bottom: 40px; }
.ar-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--ink-3); margin-bottom: 14px; }
.ar-crumbs a { color: var(--ink-2); }
/* Хлебные крошки на телефоне — под палец: высота 44px без сдвига строки */
@media (max-width: 640px) { .ar-crumbs { align-items: center; margin: -8px 0 6px; } .ar-crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; margin: 0 -6px; } }
.ar-grid { display: grid; gap: 28px; }
@media (min-width: 1040px) { .ar-grid { grid-template-columns: minmax(0, 72ch) 260px; justify-content: space-between; } .ar-side { position: sticky; top: 20px; align-self: start; } }
@media (min-width: 1040px) { .ar-grid:has(> .ar-side:empty) { grid-template-columns: minmax(0, 1fr); } }
.ar-side:empty { display: none; }
.ar-grid:has(> .ar-side:empty) .ar-thesis { max-width: 72ch; }
.ar-doc { background: var(--sheet); border-radius: var(--r-box); box-shadow: var(--sheet-shadow); padding: clamp(20px, 4vw, 44px); min-width: 0; }
.ar-doc h1 { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.12; }
.ar-meta { margin: 10px 0 18px; color: var(--ink-3); font-size: 14px; }
.ar-thesis { display: grid; gap: 12px; padding: 16px 18px; border-left: 4px solid var(--marker); background: var(--paper); border-radius: 0 12px 12px 0; margin: 0 0 26px; }
.ar-thesis p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.ar-thesis .btn { justify-self: start; }
.ar-body { font-size: 17px; line-height: 1.65; color: var(--ink); }
.ar-body h2 { font-size: clamp(22px, 2.6vw, 27px); margin: 36px 0 12px; scroll-margin-top: 16px; }
.ar-body h3 { font-size: 19px; margin: 24px 0 8px; }
.ar-body p { margin: 0 0 14px; }
.ar-body ul, .ar-body ol { margin: 0 0 16px; padding-left: 22px; }
.ar-body li { margin: 5px 0; }
.ar-body li::marker { color: var(--pen); font-weight: 700; }
.ar-body a, .ar-faq a { color: var(--pen-2); text-underline-offset: 3px; }
.ar-body blockquote { margin: 18px 0; padding: 12px 16px; border-left: 4px solid var(--pen); background: var(--pen-soft); border-radius: 0 10px 10px 0; }
.ar-body code { background: var(--rule-2); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.tbl { overflow-x: auto; margin: 14px 0 20px; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--rule); }
.tbl th { font-weight: 700; background: var(--paper); }
.ar-faq { margin-top: 34px; }
.ar-faq h2 { font-size: clamp(22px, 2.6vw, 27px); margin-bottom: 10px; }
.ar-faq details { border-bottom: 1px solid var(--rule); padding: 12px 0; }
.ar-faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; }
.ar-faq p { margin: 8px 0 0; line-height: 1.6; color: var(--ink-2); }
.ar-cta { margin: 34px 0 6px; padding: 22px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; gap: 10px; }
.ar-cta b { font-family: var(--f-display); font-size: 22px; }
.ar-cta p { margin: 0; color: #C3C7E2; }
.ar-cta .btn { justify-self: start; --bg: var(--marker); --fg: var(--ink); }
.ar-related { margin-top: 30px; }
.ar-related h2 { font-size: 22px; margin-bottom: 12px; }
/* Картинки, графики, цитаты */
.ar-fig { margin: 28px 0; }
.ar-fig img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--paper); }
.ar-fig figcaption, .ar-chart figcaption { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.ar-chart { margin: 28px 0; padding: 18px 20px; border-radius: 14px; background: var(--paper); }
.ar-chart table { width: 100%; border-collapse: separate; border-spacing: 0 6px; margin: 0; }
.ar-chart caption { text-align: left; font-weight: 700; font-size: 16px; line-height: 1.35; color: var(--ink); padding-bottom: 6px; }
.ar-chart th { width: 38%; padding: 0 14px 0 0; text-align: left; vertical-align: middle; font-weight: 400; font-size: 14.5px; line-height: 1.3; color: var(--ink-2); background: none; border: 0; }
.ar-chart td { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; }
.ar-bar { display: block; height: 14px; width: var(--w); min-width: 3px; border-radius: 0 4px 4px 0; background: var(--pen); }
.ar-track { flex: 1 1 auto; min-width: 0; }
.ar-val { flex: none; min-width: 4.2em; font-weight: 700; font-size: 14.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ar-chart tr:hover .ar-bar { background: var(--pen-2); }
@media (max-width: 560px) { .ar-chart { padding: 14px; } .ar-chart table, .ar-chart tbody, .ar-chart tr { display: block; } .ar-chart caption { display: block; } .ar-chart tr { margin-bottom: 10px; } .ar-chart th { display: block; width: auto; padding: 0 0 3px; font-size: 14px; } }
.ar-body blockquote > :first-child { margin-top: 0; }
.ar-body blockquote > :last-child { margin-bottom: 0; }
.ar-quote { background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); }
.ar-quote footer { margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.ar-card.has-img { padding-top: 0; overflow: hidden; }
.ar-card img { display: block; width: calc(100% + 32px); max-width: none; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: 0 -16px 12px; }
.ar-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ar-cards-big { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ar-card { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--rule); background: var(--sheet); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.ar-card:hover { border-color: var(--pen); transform: translateY(-2px); }
.ar-card b { font-family: var(--f-display); font-size: 17px; line-height: 1.25; }
.ar-card span { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.ar-toc { background: var(--sheet); border-radius: 12px; padding: 14px 16px; box-shadow: var(--sheet-shadow); font-size: 14.5px; }
.ar-toc b { display: block; margin-bottom: 8px; }
.ar-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.ar-toc a { color: var(--ink-2); text-decoration: none; }
.ar-toc a:hover { color: var(--pen-2); }
.ar-foot { padding: 18px var(--gutter) 34px; font-size: 13.5px; color: var(--ink-3); }
.ar-foot a { color: var(--ink-2); }
@media (max-width: 640px) { .ar-nav > a:not(.btn) { display: none; } }
@media (prefers-reduced-motion: reduce) { .ar-card { transition: none; } .ar-card:hover { transform: none; } }
