/* ============================================================
   MatrixLink — правовой центр в стиле «документ»
   Белый лист на нейтральном фоне, тёмный текст, зелёный акцент бренда
   ============================================================ */

:root {
  --page: #e9ebe9;          /* фон вокруг листа, как в просмотрщике PDF */
  --paper: #ffffff;         /* сам лист */
  --ink: #141815;           /* основной текст */
  --ink-soft: #3c433e;      /* абзацы */
  --ink-dim: #79817b;       /* подписи, даты */
  --line: #e1e5e2;
  --accent: #009a58;        /* тёмно-зелёный для ссылок на белом */
  --accent-bright: #00e57f;
  --accent-ink: #032117;
  --display: "Unbounded", "Inter Tight", system-ui, sans-serif;
  --body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent-bright); color: var(--accent-ink); }

/* ---------- Шапка ---------- */

.lg-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.lg-header__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.lg-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.lg-logo:hover { text-decoration: none; }
.lg-logo::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  vertical-align: 8%;
}
.lg-header__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.lg-header__nav a {
  color: var(--ink-dim);
  font-size: 13.5px;
  font-weight: 500;
}
.lg-header__nav a:hover { color: var(--ink); text-decoration: none; }
.lg-header__cta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent-bright);
  color: var(--accent-ink) !important;
  font-weight: 700;
  font-size: 13px;
}
.lg-header__cta:hover { text-decoration: none; }

@media (max-width: 560px) {
  .lg-header__nav a:not(.lg-header__cta) { display: none; }
}

/* ---------- Лист документа ---------- */

.lg-main {
  max-width: 860px;
  margin: 36px auto 56px;
  padding: 56px 64px 64px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow:
    0 1px 2px rgba(20, 24, 21, 0.05),
    0 12px 40px rgba(20, 24, 21, 0.09);
}
@media (max-width: 720px) {
  .lg-main {
    margin: 0;
    padding: 34px 20px 48px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

.lg-eyebrow {
  margin: 0 0 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.lg-main h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(23px, 4.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.lg-lead {
  margin: 0 0 34px;
  color: var(--ink-dim);
  font-size: 13.5px;
}

.lg-main section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.lg-main section:last-of-type { border-bottom: 1px solid var(--line); }
.lg-main h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  color: var(--ink);
}
.lg-main h3 {
  margin: 18px 0 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}
.lg-main p { margin: 0 0 12px; color: var(--ink-soft); }
.lg-main p:last-child { margin-bottom: 0; }
.lg-main p b, .lg-main li b { color: var(--ink); font-weight: 650; }

.lg-main ul {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.lg-main ul:last-child { margin-bottom: 0; }
.lg-main li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
}
.lg-main li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: rgba(0, 154, 88, 0.12);
  border: 1px solid rgba(0, 154, 88, 0.55);
}

/* ---------- Кнопки внизу статьи ---------- */

.lg-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.lg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
}
.lg-btn:hover { text-decoration: none; }
.lg-btn--primary { background: var(--accent-bright); color: var(--accent-ink); }
.lg-btn--ghost {
  border: 1px solid #cfd5d1;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.lg-btn--ghost:hover { border-color: var(--accent); }

/* ---------- Футер ---------- */

.lg-footer {
  border-top: 1px solid var(--line);
  background: #f2f4f2;
}
.lg-footer__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px 36px;
}
.lg-footer__docs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 18px;
}
.lg-footer__docs a { color: var(--ink-dim); font-size: 12.5px; }
.lg-footer__docs a:hover { color: var(--ink); text-decoration: none; }
.lg-footer__copy { color: var(--ink-dim); font-size: 12px; }
