:root {
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --border: #e4e4e7;
  --accent: #4f46e5;
  --bg: #ffffff;
  --bg-soft: #fafafa;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-soft);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 820px;
  margin: 32px auto 80px;
  padding: 48px 56px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

header.doc-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

header.doc-header .crumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

header.doc-header h1 {
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 6px;
  font-weight: 700;
}

header.doc-header .meta {
  font-size: 13px;
  color: var(--muted);
}

h2 {
  font-size: 18px;
  margin: 32px 0 12px;
  font-weight: 600;
  line-height: 1.35;
}

h3 {
  font-size: 15px;
  margin: 20px 0 8px;
  font-weight: 600;
}

p, li {
  font-size: 15px;
  color: var(--text);
}

ul, ol { padding-left: 22px; }
li { margin: 4px 0; }

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0 0 28px;
}

.toc h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 600;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
}

.toc a {
  color: var(--text);
  text-decoration: none;
}
.toc a:hover { color: var(--accent); text-decoration: underline; }

table.requisites {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 8px 0 4px;
}

table.requisites td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.requisites td:first-child {
  color: var(--muted);
  width: 40%;
  white-space: nowrap;
}

a { color: var(--accent); }

.notice {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14px;
}

footer.doc-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

footer.doc-footer a { color: var(--muted); margin-right: 12px; }

@media (max-width: 640px) {
  main { padding: 28px 22px; margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
  header.doc-header h1 { font-size: 22px; }
}

@media print {
  body { background: white; }
  main { box-shadow: none; border: 0; margin: 0; padding: 0; }
  .toc, footer.doc-footer { display: none; }
  a { color: var(--text); text-decoration: none; }
}
