/* Документы площадки: список /dokumenty и страница документа. Компоненты страницы - public.css, здесь только своё.
   Только токены base.css. */

/* ---------- Список документов ---------- */
.dc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dc-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink); transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.dc-card:hover { text-decoration: none; color: var(--ink); border-color: var(--brand); }
.dc-card:focus-visible { box-shadow: var(--ring); border-radius: var(--radius); }
.dc-ico { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--surface-3); color: var(--ink-2); display: inline-flex;
  align-items: center; justify-content: center; flex: 0 0 auto; }
.dc-card.w .dc-ico { background: var(--wood-soft); color: var(--wood); }
.dc-card.g .dc-ico { background: var(--brand-soft); color: var(--brand); }
.dc-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.dc-body b { font-size: 16px; font-weight: 650; line-height: 1.3; }
.dc-body span { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.dc-tag { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.dc-go { color: var(--faint); align-self: center; flex: 0 0 auto; transition: color .15s, transform .15s var(--ease); }
.dc-card:hover .dc-go { color: var(--brand); transform: translateX(2px); }
.dc-note { margin-top: 16px; }

/* ---------- Страница документа ---------- */
.dc-lay { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.dc-doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 44px 40px; min-width: 0; }
.dc-doc > * { max-width: 74ch; }
.dc-doc h1 { font-size: 30px; letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 14px; }
.dc-doc h2 { font-size: 19px; margin: 30px 0 10px; letter-spacing: -0.015em; }
.dc-doc p, .dc-doc li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.dc-doc ul, .dc-doc ol { padding-left: 22px; margin: 0 0 1em; }
.dc-doc li + li { margin-top: 6px; }
.dc-doc strong { color: var(--ink); }
.dc-draft { margin: 0 0 6px; }
.dc-plan { margin: 14px 0 18px; }
.dc-req { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.dc-req b { color: var(--ink-2); font-weight: 600; }

.dc-side { position: sticky; top: calc(var(--top-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
.dc-nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line);
  color: var(--ink-2); font-size: 14.5px; font-weight: 550; min-height: 44px; }
.dc-nav a:last-child { border-bottom: 0; }
.dc-nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.dc-nav a[aria-current] { color: var(--ink); font-weight: 650; background: var(--surface-3); }
.dc-nav a .ico { color: var(--faint); }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .dc-lay { grid-template-columns: minmax(0, 1fr); }
  .dc-side { position: static; order: -1; }
  .dc-side .lockn { display: none; }
  .dc-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .dc-nav::-webkit-scrollbar { display: none; }
  .dc-nav a { border-bottom: 0; border-right: 1px solid var(--line); white-space: nowrap; flex: 0 0 auto; }
  .dc-nav a .ico { display: none; }
}
@media (max-width: 760px) {
  .dc-grid { grid-template-columns: minmax(0, 1fr); }
  .dc-card { padding: 16px; }
  .dc-doc { padding: 22px 18px 26px; }
  .dc-doc h1 { font-size: 24px; }
  .dc-doc h2 { font-size: 17.5px; margin-top: 24px; }
  .dc-doc p, .dc-doc li { font-size: 15.5px; line-height: 1.65; }
}
