/* ═══ Страница статьи (макеты «Статья с PDF-выпуском», «Статья без PDF») ═══ */

.ar-head { padding: 28px 0 8px; display: flex; flex-direction: column; gap: var(--pp-s4); max-width: 1000px; }
.ar-kicker { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: baseline; font-family: var(--pp-sans); font-size: 13px; color: var(--pp-muted); }
.pp .ar-rubric { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pp-signal); }
.pp .ar-h1 { margin: 0; font-family: var(--pp-serif); font-size: clamp(32px, 4.2vw, 54px); line-height: 1.06; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; color: var(--pp-ink); }
.pp .ar-dek { margin: 0; font-family: var(--pp-serif); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--pp-body); max-width: 820px; text-wrap: pretty; }
.ar-meta { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; border-top: var(--pp-rule-head); padding-top: 10px; font-family: var(--pp-sans); font-size: 13px; color: var(--pp-muted); }
.ar-meta-items { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.pp .ar-to-pdf { font-weight: 600; color: var(--pp-signal); }

.ar-grid { display: grid; grid-template-columns: 220px minmax(0, 680px) minmax(0, 1fr); gap: 0 48px; align-items: start; padding: 24px 0 64px; }
.ar-main { min-width: 0; max-width: 680px; }
.ar-label { font-family: var(--pp-sans); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--pp-ink); }
.ar-num-row { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; border-top: var(--pp-rule-item); }
.ar-num { font-family: var(--pp-mono); font-size: 12px; color: var(--pp-signal); }

/* Оглавление */
.ar-toc { position: sticky; top: 16px; min-width: 0; font-family: var(--pp-sans); }
.ar-toc-wide { border-top: var(--pp-rule-section); padding-top: 10px; display: flex; flex-direction: column; }
.ar-toc-wide .ar-label { padding-bottom: 8px; }
.ar-toc-list { display: flex; flex-direction: column; }
.ar-toc-wide .ar-num-row { padding: 9px 0; font-size: 14px; line-height: 1.35; color: var(--pp-body); }
.ar-toc-wide .ar-num { line-height: 19px; color: var(--pp-muted); }
.ar-toc-wide .ar-num-row[aria-current] { color: var(--pp-ink); font-weight: 600; }
.ar-toc-wide .ar-num-row[aria-current] .ar-num { color: var(--pp-signal); }
.ar-toc-phone { display: none; border-top: var(--pp-rule-section); border-bottom: var(--pp-rule-head); margin-bottom: 28px; }
.ar-toc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0; border: 0; background: none; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--pp-ink); cursor: pointer; }
.ar-toc-icon { font-size: 18px; }
.ar-toc-phone .ar-toc-list { padding-bottom: 8px; }
.ar-toc-phone .ar-num-row { grid-template-columns: 28px minmax(0, 1fr); padding: 11px 0; font-size: 15px; line-height: 1.35; }
.ar-toc-phone .ar-num { line-height: 20px; }

/* PDF-выпуск */
.ar-pdf { margin-top: 48px; background: var(--pp-tint); border-top: var(--pp-rule-section); padding: 24px clamp(16px, 3vw, 28px) 26px; display: flex; flex-wrap: wrap; gap: 24px 28px; }
/* align-self: обложка в пропорции A4 по верху блока; в файле макета её растягивала колонка текста (27.10.2026) */
.ar-cover { flex: 0 0 150px; align-self: flex-start; aspect-ratio: 210 / 297; background: var(--pp-paper); border: 1px solid var(--pp-ink); padding: 12px; display: flex; flex-direction: column; gap: 8px; font-family: var(--pp-serif); color: var(--pp-ink); }
.ar-cover-brand { font-size: 13px; font-weight: 700; letter-spacing: -.01em; border-bottom: 2px solid var(--pp-ink); padding-bottom: 5px; }
.ar-cover-period { font-family: var(--pp-sans); font-size: 8px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pp-signal); }
.ar-cover-title { font-size: 13px; font-weight: 700; line-height: 1.15; }
.ar-cover-fill { flex: 1; }
.ar-cover-num { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1; color: var(--pp-signal); }
.ar-cover-desc { font-family: var(--pp-sans); font-size: 8.5px; line-height: 1.3; color: var(--pp-body); border-top: var(--pp-rule-item); padding-top: 4px; }
.ar-pdf-body { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: var(--pp-s3); }
.ar-pdf-label { font-family: var(--pp-sans); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--pp-signal); }
.pp .ar-pdf-title { margin: 0; font-family: var(--pp-serif); font-size: 25px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; color: var(--pp-ink); }
.pp .ar-pdf-text { margin: 0; font-family: var(--pp-serif); font-size: 16px; line-height: 1.55; color: var(--pp-body); }
.ar-pdf-contents { display: flex; flex-direction: column; font-family: var(--pp-sans); font-size: 14px; line-height: 1.4; border-top: var(--pp-rule-head); }
.ar-pdf-contents-head { font-size: 12px; font-weight: 600; padding: 8px 0 4px; color: var(--pp-muted); }
.ar-pdf-contents .ar-num-row { padding: 6px 0; }
.ar-pdf-contents .ar-num { line-height: 20px; }
.ar-pdf-actions { display: flex; gap: 12px 22px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-family: var(--pp-sans); font-size: 14px; font-weight: 600; }
.pp .ar-pdf-get { background: var(--pp-signal); color: var(--pp-paper); padding: 12px 20px; min-height: 44px; display: inline-flex; align-items: center; }
.pp .ar-pdf-get:hover { background: var(--pp-signal-dark); color: var(--pp-paper); }
.ar-pdf-look { border-bottom: 2px solid var(--pp-ink); padding: 3px 0; }
.ar-pdf-note { font-family: var(--pp-sans); font-size: 13px; color: var(--pp-muted); }

/* Теги и «Поделиться» */
.ar-after { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; font-family: var(--pp-sans); }
.ar-tags-wrap { display: flex; flex-direction: column; gap: 10px; border-top: var(--pp-rule-head); padding-top: 12px; }
.ar-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ar-tags a { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border: 1px solid var(--pp-ink); font-size: 14px; }
.pp .ar-tags a:hover { background: var(--pp-ink); color: var(--pp-paper); }
.ar-share { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; border-top: var(--pp-rule-item); padding-top: 14px; font-size: 14px; font-weight: 600; }
.ar-share-copy { min-height: 40px; padding: 0 16px; border: 1px solid var(--pp-ink); background: var(--pp-paper); font-family: inherit; font-size: 14px; font-weight: 600; color: var(--pp-ink); cursor: pointer; }

/* О материале и «Читать также» */
.ar-side { min-width: 0; display: flex; flex-direction: column; gap: 32px; font-family: var(--pp-sans); }
.ar-side-block { border-top: var(--pp-rule-section); padding-top: 10px; display: flex; flex-direction: column; }
.ar-facts { margin: 8px 0 0; font-size: 14px; }
.ar-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: var(--pp-rule-item); }
.ar-facts dt { color: var(--pp-muted); }
.ar-facts dd { margin: 0; font-weight: 500; text-align: right; }
.ar-side-block > .ar-label { padding-bottom: 6px; }
.ar-rel { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: var(--pp-rule-item); }
.ar-rel-cat { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pp-signal); }
.ar-rel-title { font-family: var(--pp-serif); font-size: 18px; font-weight: 600; line-height: 1.25; }

@media (max-width: 1179px) {
  .ar-grid { grid-template-columns: 200px minmax(0, 1fr); }
  .ar-side { grid-column: 2; margin-top: 48px; }
}
@media (max-width: 899px) {
  .ar-grid { grid-template-columns: minmax(0, 1fr); }
  .ar-side { grid-column: auto; }
  .ar-toc { position: static; }
  .ar-toc-wide { display: none; }
  .ar-toc-phone { display: block; }
}

/* Врезки старой разметки (callout tip/info/warn, 21 статья) — те же стили, что у callout--* */
.callout.tip { background: transparent; border-top: var(--rule-section); border-bottom: var(--rule-block); padding: 14px 0 6px; }
.callout.tip .callout-label, .callout.tip .callout-title { color: var(--red); }
.callout.tip p, .callout.tip .callout-text, .callout.tip .callout-body { font-size: 21px; line-height: 1.45; font-weight: 500; color: var(--ink); }
.callout.warn { background: var(--paper); border: 1px solid var(--red); padding: 16px 20px 2px; }
.callout.warn .callout-label, .callout.warn .callout-title { color: var(--red); }
.callout.warn .callout-label::before, .callout.warn .callout-title::before { content: '! '; font-weight: 700; }
@media (max-width: 640px) {
  .callout.tip p, .callout.tip .callout-text { font-size: 19px; }
}

/* Хаб раздела и страницы издания */
.pp .ar-all { font-weight: 600; color: var(--pp-ink); border-bottom: 1px solid var(--pp-signal); }
.ar-ed-link { padding: 10px 0; border-top: var(--pp-rule-item); font-size: 15px; }
.pp .ar-ed-link[aria-current] { font-weight: 600; color: var(--pp-signal); }

/* ── Форма обратной связи на «О проекте» (макет «О проекте», блок #svyaz; разметка — src/paper/LeadForm.astro) ── */
.lfs { margin-top: 48px; border-top: var(--pp-rule-section); padding-top: 16px; display: flex; flex-direction: column; gap: 22px; font-family: var(--pp-sans); scroll-margin-top: 16px; }
.lfs-head { display: flex; flex-direction: column; gap: 8px; }
.lfs-kicker { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--pp-signal); }
.lfs-h { margin: 0; font-family: var(--pp-serif); font-size: clamp(28px, 3vw, 34px); line-height: 1.1; font-weight: 700; letter-spacing: -.015em; }
.lfs-lead { margin: 0; font-family: var(--pp-serif); font-size: 18px; line-height: 1.5; color: var(--pp-body); }
.lfs-sent { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--pp-ink); background: var(--pp-tint); }
.lfs-sent:focus { outline: none; }
.lfs-sent-t { display: flex; align-items: center; gap: 10px; font-family: var(--pp-serif); font-size: 24px; font-weight: 700; line-height: 1.2; }
.lfs-sent-i { flex: none; width: 26px; height: 26px; background: var(--pp-ink); color: var(--pp-paper); display: flex; align-items: center; justify-content: center; font-family: var(--pp-sans); font-size: 14px; }
.lfs-sent p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--pp-body); }
.lfs-again { align-self: flex-start; min-height: 44px; padding: 0; border: 0; border-bottom: 2px solid var(--pp-ink); background: none; font: 600 15px var(--pp-sans); color: var(--pp-ink); cursor: pointer; }
.lf { display: flex; flex-direction: column; gap: 18px; }
.lf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.lf-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--pp-ink); }
.lf input, .lf select, .lf textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--pp-hint, #767676); border-radius: 0; background: var(--pp-paper); font: 400 16px var(--pp-sans); color: var(--pp-ink); }
.lf textarea { resize: vertical; min-height: 132px; padding: 12px 14px; line-height: 1.5; }
.lf ::placeholder { color: #767676; }
.lf-select { position: relative; display: flex; }
.lf-select select { flex: 1; min-width: 0; padding-right: 40px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.lf-select::after { content: '▼'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 12px; font-weight: 400; }
.lf input:focus-visible, .lf select:focus-visible, .lf textarea:focus-visible { outline: 2px solid var(--pp-signal); outline-offset: 2px; }
.lf input[aria-invalid="true"] { border: 2px solid var(--pp-signal); }
.lf-err { display: flex; gap: 6px; font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--pp-signal); }
.lf-err::before { content: '!'; font-weight: 700; }
.lf-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.lf-alert { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid var(--pp-signal); background: #fbeceb; font-size: 15px; line-height: 1.45; }
.lf-alert-i { flex: none; width: 20px; height: 20px; background: var(--pp-signal); color: var(--pp-paper); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.lf-alert:focus { outline: none; }
.lf-alert--limit { border-color: var(--pp-ink); background: var(--pp-tint); }
.lf-alert--limit .lf-alert-i { background: var(--pp-ink); }
.lf-foot { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.lf-submit { min-height: 52px; padding: 0 28px; border: 0; border-radius: 0; background: var(--pp-signal); color: var(--pp-paper); font: 600 16px var(--pp-sans); cursor: pointer; }
.lf-submit:hover { background: var(--pp-signal-dark); }
.lf-submit:disabled { background: #767676; cursor: not-allowed; }
.lf-submit[aria-busy="true"] { cursor: progress; }
.lf-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--pp-muted); }
.lf-note a { color: var(--pp-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 899px) {
  .lf-grid { grid-template-columns: minmax(0, 1fr); }
  .lfs { scroll-margin-top: 76px; }   /* шапка на телефоне закреплена сверху */
}
