:root {
  --green: #43a047;
  --green-dark: #2e7d32;
  --bg: #f7fbf8;
  --text: #1a2e1f;
  --muted: #5a7260;
  --border: rgba(46, 125, 50, 0.18);
  --font: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 32px 20px 48px;
}

.doc {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 40px;
  box-shadow: 0 4px 24px rgba(30, 60, 40, 0.06);
}

.doc__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.doc__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin-bottom: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}

.doc__back:hover {
  border-color: rgba(46, 125, 50, 0.4);
  color: var(--text);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.18);
  text-decoration: none;
}

.doc__back svg {
  display: block;
}

.doc__meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.doc h1 {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.doc__lead {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
}

.doc h2 {
  margin-top: 28px;
  font-size: 18px;
  font-weight: 700;
}

.doc p, .doc li {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.doc ul, .doc ol {
  margin-left: 20px;
}

.doc table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 13px;
}

.doc th, .doc td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
}

.doc th {
  background: #f3faf4;
  font-weight: 600;
  color: var(--text);
}

.doc__footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

@media print {
  body { background: #fff; padding: 0; }
  .doc { box-shadow: none; border: none; }
  .doc__back { display: none; }
}

@media (max-width: 600px) {
  .doc { padding: 24px 20px; }
}
