:root {
  --accent: #c8a96e;
  --text-primary: #111;
  --text-body: #333;
  --text-secondary: #555;
  --card-radius: 10px;
  --card-padding: 28px 32px;
}

.page-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  background: #fdfdfc;
  color: #1a1a1a;
  line-height: 1.7;
  font-size: 16px;
}

.doc-header {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e0e0db;
}

.doc-label,
.toc-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
}

.doc-label {
  margin-bottom: 16px;
}

.doc-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
}

.doc-meta {
  font-size: 13px;
  color: #888;
}

.toc {
  background: #f0efeb;
  border: 1px solid #e0dfd9;
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  margin-bottom: 56px;
}

.toc-title {
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
}

.toc ol li {
  counter-increment: toc;
  display: flex;
  gap: 10px;
  padding: 5px 0;
  font-size: 14px;
}

.toc ol li::before {
  content: counter(toc) ".";
  color: #bbb;
  min-width: 20px;
  font-weight: 500;
}

.toc a {
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.15s;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--accent);
}

.section {
  margin-bottom: 52px;
}

.section-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0ede7;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.clause {
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-body);
}

.clause-id {
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 4px;
}

.clause a,
.term-def a {
  color: var(--accent);
  text-decoration: none;
}

.clause a:hover,
.term-def a:hover,
.clause a:focus-visible,
.term-def a:focus-visible {
  text-decoration: underline;
}

.sub-list {
  margin: 12px 0;
  padding-left: 0;
  list-style: none;
}

.sub-list li {
  position: relative;
  padding: 5px 0 5px 20px;
  font-size: 15px;
  color: #444;
}

.sub-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.sub-list li:has(> strong:first-child) {
  padding-left: 0;
  color: var(--text-body);
}

.sub-list li:has(> strong:first-child)::before {
  content: none;
}

.sub-list li:has(> strong:first-child) > strong {
  color: var(--text-primary);
}

.glossary {
  display: grid;
}

.term-block {
  padding: 18px 0;
  border-bottom: 1px solid #efefeb;
}

.term-block:last-child {
  border-bottom: none;
}

.term-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.term-def {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.doc-cta-wrap {
  margin-top: 48px;
  text-align: center;
}

.btn-catalog {
  display: inline-block;
  padding: 14px 36px;
  background: #1a1a1a;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}

.btn-catalog:hover {
  background: #333;
}

@media (max-width: 600px) {
  .page-wrapper {
    padding: 36px 16px 72px;
  }
  .toc {
    padding: 20px;
  }
}
