:root {
  --bg: #0D0F13;
  --surface: #151922;
  --surface-border: rgba(255, 255, 255, 0.09);
  --text: #F8FAFC;
  --text-sub: #C4CBD6;
  --text-muted: #8E98A8;
  --amber: #F59E0B;
  --link: #93C5FD;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.62;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px 18px 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--surface-border);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.back:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.doc-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.doc-nav a.active,
.doc-nav a:hover {
  color: var(--text);
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 26px 22px;
}

.meta {
  display: inline-block;
  font-size: 12.5px;
  color: var(--amber);
  font-weight: 650;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.lead {
  color: var(--text-sub);
  font-size: 15px;
  margin-bottom: 22px;
}

h2 {
  font-size: 17px;
  line-height: 1.3;
  color: var(--text);
  margin: 26px 0 10px;
}

p {
  color: var(--text-sub);
  font-size: 14.5px;
  margin-bottom: 10px;
}

ul, ol {
  color: var(--text-sub);
  font-size: 14.5px;
  padding-left: 20px;
  margin: 8px 0 12px;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.table-wrap {
  overflow-x: auto;
  margin: 12px 0 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--surface-border);
  color: var(--text-sub);
}

th {
  color: var(--text);
  font-weight: 650;
  background: rgba(255, 255, 255, 0.03);
}

.requisites {
  margin-top: 24px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--surface-border);
  font-size: 14px;
  color: var(--text-sub);
}

.requisites strong {
  color: var(--text);
}

@media (min-width: 640px) {
  .wrap { padding: 40px 24px 80px; }
  .card { padding: 36px 36px; }
}
