/* ── Repa · стиль страниц документов ────────────────────────────── */
:root {
  --color-bg: #0a0b0f;
  --color-bg-2: #0e1015;
  --color-surface: #14161d;
  --color-surface-alt: #1b1e27;
  --color-border: rgba(255, 255, 255, 0.07);
  --color-border-strong: rgba(255, 255, 255, 0.12);
  --color-hairline: rgba(255, 255, 255, 0.05);
  --color-text: #f4f5f8;
  --color-text-muted: #9298ab;
  --color-text-dim: #626878;
  --color-primary: #ff8a3d;
  --grad-primary: linear-gradient(135deg, #ffab4d 0%, #ff7a2f 55%, #ff5f1f 100%);
  --color-success: #35d07f;
  --color-success-soft: rgba(53, 208, 127, 0.14);
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-md: 0 8px 24px -12px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--color-bg);
  background-image:
    radial-gradient(120% 80% at 100% -10%, rgba(255, 122, 47, 0.08) 0%, rgba(255, 122, 47, 0) 55%),
    linear-gradient(180deg, var(--color-bg-2) 0%, var(--color-bg) 40%);
  background-attachment: fixed;
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 15, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-hairline);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; height: 64px;
  max-width: 820px; margin: 0 auto; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__name {
  font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.03em;
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-mark { display: flex; align-items: flex-end; gap: 4px; height: 22px; }
.brand-mark span { width: 4px; border-radius: var(--radius-pill); background: var(--grad-primary); }
.brand-mark span:nth-child(1) { height: 40%; }
.brand-mark span:nth-child(2) { height: 100%; }
.brand-mark span:nth-child(3) { height: 65%; }
.brand-mark span:nth-child(4) { height: 85%; }
.back-link { font-size: 14.5px; font-weight: 600; color: var(--color-text-muted); }
.back-link:hover { color: var(--color-text); text-decoration: none; }

/* Тело документа */
.doc { padding: 48px 0 64px; }
.doc__meta {
  font-size: 13px; color: var(--color-text-dim); font-weight: 600;
  letter-spacing: 0.02em; margin-bottom: 10px;
}
.doc h1 {
  font-family: var(--font-display); font-size: 34px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 8px;
}
@media (max-width: 560px) { .doc h1 { font-size: 26px; } }
.doc h2 {
  font-family: var(--font-display); font-size: 21px; font-weight: 600;
  letter-spacing: -0.02em; margin: 40px 0 12px; padding-top: 24px;
  border-top: 1px solid var(--color-hairline);
}
.doc h3 { font-size: 17px; font-weight: 600; margin: 26px 0 8px; }
.doc p { margin: 0 0 14px; color: var(--color-text); }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; color: var(--color-text); }
.doc li { margin-bottom: 7px; }
.doc strong { color: var(--color-text); font-weight: 700; }
.doc hr { border: none; border-top: 1px solid var(--color-hairline); margin: 32px 0; }
.doc .lead { color: var(--color-text-muted); font-size: 17px; margin-bottom: 8px; }

/* Таблицы */
.doc table {
  width: 100%; border-collapse: collapse; margin: 0 0 18px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md);
}
.doc th, .doc td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--color-hairline); font-size: 15px; }
.doc th { background: var(--color-surface-alt); font-weight: 600; color: var(--color-text-muted); }
.doc tr:last-child td { border-bottom: none; }

/* Блок реквизитов/контактов */
.callout {
  background: linear-gradient(180deg, rgba(255,138,61,0.08), rgba(255,138,61,0.02));
  border: 1px solid rgba(255,138,61,0.3);
  border-radius: var(--radius-md); padding: 18px 20px; margin: 18px 0;
}
.callout p { margin: 0 0 6px; }
.callout p:last-child { margin-bottom: 0; }

/* Подвал */
.site-footer { border-top: 1px solid var(--color-hairline); padding: 30px 0; margin-top: 24px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.site-footer small { color: var(--color-text-dim); font-size: 13px; }
.site-footer .foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer .foot-links a { font-size: 13.5px; color: var(--color-text-muted); }
.site-footer .foot-links a:hover { color: var(--color-text); }
