/* Profmai — раскладка портала по макету https://claude.ai/artifact/U3Cj6mWnia7N9NV5fHiUeM. Цвета — только токены. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 26px; }
a { color: var(--blueprint); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--line-strong); outline-offset: 2px; }
.pm-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.pm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pm-header { background: var(--paper-raised); border-bottom: 1px solid var(--line); }
.pm-header .pm-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 12px; padding-bottom: 12px; }
.pm-logo { display: flex; align-items: center; background: #ffffff; padding: 4px; border-radius: var(--radius-sm); }
.pm-logo img { height: 52px; width: auto; display: block; }
.pm-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; flex: 1 1 360px; }
.pm-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 0; }
.pm-nav a[aria-current="page"] { color: var(--blueprint); box-shadow: inset 0 -2px 0 var(--blueprint); }

.pm-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-md); font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--font-sans); }
.pm-btn--primary { background: var(--blueprint); color: var(--on-blueprint); }
.pm-btn--primary:hover { color: var(--on-blueprint); filter: brightness(1.08); }
.pm-btn--outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }

.pm-hero { border-bottom: 1px solid var(--line); background-color: var(--paper);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px; }
.pm-hero .pm-wrap { padding-top: 72px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.pm-kicker { margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.04em; color: var(--copper); }
.pm-h1 { margin: 0; max-width: 820px; font-family: var(--font-display); font-size: 48px; line-height: 54px; font-weight: 600; letter-spacing: -0.01em; }
.pm-lead { margin: 0; max-width: 680px; font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.pm-search { display: flex; flex-wrap: wrap; gap: 8px; max-width: 760px; margin-top: 8px; }
.pm-search input { flex: 1 1 360px; min-height: 52px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper-raised); color: var(--ink); font-family: var(--font-sans); font-size: 16px; }
.pm-search .pm-btn { min-height: 52px; padding: 0 28px; font-size: 16px; }
.pm-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-tag { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper-raised); color: var(--ink); text-decoration: none; font-size: 14px; }

.pm-section { padding-top: 64px; padding-bottom: 16px; display: flex; flex-direction: column; gap: 24px; }
.pm-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.pm-h2 { margin: 0; font-family: var(--font-display); font-size: 28px; line-height: 34px; font-weight: 600; }
.pm-h3 { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 600; }
.pm-muted { color: var(--ink-muted); }
.pm-small { font-size: 14px; line-height: 22px; }
.pm-label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-muted); }
.pm-cite { font-family: var(--font-mono); font-size: 13px; line-height: 18px; }
.pm-num { font-family: var(--font-mono); font-size: 13px; line-height: 18px; color: var(--copper); margin: 0; }

.pm-cards { display: flex; flex-wrap: wrap; gap: 16px; }
.pm-card { flex: 1 1 340px; padding: 24px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pm-card--queue { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.pm-card .pm-basis { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.pm-card .pm-btn { margin-top: auto; align-self: flex-start; }

.pm-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 1px solid currentColor; border-radius: var(--radius-sm); font-size: 12px; line-height: 16px; font-weight: 600; }
.pm-chip svg { flex: none; }
.pm-chip--valid { color: var(--norm-valid); }
.pm-chip--changed { color: var(--norm-changed); }
.pm-chip--void { color: var(--norm-void); }

.pm-split { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 16px; }
.pm-panel { padding: 24px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pm-dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pm-dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pm-dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.pm-dl dt { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.pm-dl dd { margin: 0; font-family: var(--font-mono); font-size: 28px; line-height: 34px; font-weight: 500; white-space: nowrap; }

.pm-table-box { overflow-x: auto; }
.pm-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; min-width: 560px; }
.pm-table th { text-align: left; color: var(--ink-muted); font-size: 12px; letter-spacing: 0.04em; font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--line-strong); }
.pm-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pm-table th:first-child, .pm-table td:first-child { padding-left: 0; }
.pm-table tr:last-child td { border-bottom: 0; }
.pm-st-valid { color: var(--norm-valid); font-weight: 600; }
.pm-st-changed { color: var(--norm-changed); font-weight: 600; }
.pm-st-void { color: var(--norm-void); font-weight: 600; }

.pm-how { border-top: 1px solid var(--line); background: var(--paper-raised); }
.pm-how .pm-wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 24px; }
.pm-how-grid { display: flex; flex-wrap: wrap; gap: 24px 32px; }
.pm-how-grid > div { flex: 1 1 280px; display: flex; flex-direction: column; gap: 8px; }

.pm-page { padding-top: 48px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; max-width: 900px; }
.pm-crumbs { font-size: 14px; color: var(--ink-muted); }
.pm-sources { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pm-sources li { padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-raised); }

.pm-footer { border-top: 1px solid var(--line); }
.pm-footer .pm-wrap { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.pm-footer a { color: var(--ink-muted); text-decoration: none; }
.pm-sun { color: #c62828; font-weight: 600; }

/* Текст статей и страниц (перенесённое содержимое) */
.pm-prose { max-width: 760px; font-size: 17px; line-height: 28px; }
.pm-prose p { margin: 0 0 16px; }
.pm-prose h2 { font-family: var(--font-display); font-size: 26px; line-height: 32px; font-weight: 600; margin: 32px 0 12px; }
.pm-prose h3, .pm-prose h4 { font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 600; margin: 24px 0 8px; }
.pm-prose ul, .pm-prose ol { margin: 0 0 16px; padding-left: 24px; }
.pm-prose li { margin-bottom: 6px; }
.pm-prose img { max-width: 100%; height: auto; border-radius: var(--radius-md); display: block; margin: 16px 0; }
.pm-prose a { color: var(--blueprint); }
.pm-prose table { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: 15px; }
.pm-prose th, .pm-prose td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.pm-prose blockquote { margin: 0 0 16px; padding: 8px 16px; border-left: 2px solid var(--line-strong); color: var(--ink-muted); }

@media (max-width: 640px) {
  .pm-wrap { padding-left: 16px; padding-right: 16px; }
  .pm-hero .pm-wrap { padding-top: 40px; padding-bottom: 40px; }
  .pm-h1 { font-size: 32px; line-height: 38px; }
  .pm-dl dd { font-size: 22px; line-height: 28px; }
}
