/* Общие стили статических статей «Навигатора».
   Никакого React и Tailwind: страницы отдаются роботам и людям как есть. */

:root {
  --bg: #0f1115;
  --bg-soft: #161a20;
  --text: #e6e8eb;
  --text-dim: #a3a9b3;
  --accent: #4db6ac;
  --border: #262b33;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.site-header__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.site-header__brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

.site-header__tagline {
  color: var(--text-dim);
  font-size: 14px;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

h1 {
  font-size: 28px;
  line-height: 1.3;
  margin: 8px 0 20px;
  font-weight: 700;
}

h2 {
  font-size: 21px;
  line-height: 1.35;
  margin: 36px 0 12px;
  font-weight: 700;
}

h3 {
  font-size: 18px;
  margin: 24px 0 8px;
  font-weight: 600;
}

p { margin: 0 0 16px; }

ul, ol { margin: 0 0 16px; padding-left: 22px; }

li { margin-bottom: 8px; }

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

a:hover { text-decoration: none; }

strong { color: #ffffff; }

.lead { font-size: 19px; line-height: 1.65; }

.callout {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 20px;
}

.callout p:last-child { margin-bottom: 0; }

.related {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 32px 0 0;
}

.related p { margin: 0 0 8px; font-weight: 600; }

.related ul { margin: 0; }

.page-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 15px;
}

.sources { font-size: 15px; color: var(--text-dim); word-break: break-word; }

.sources a { word-break: break-all; }

@media (max-width: 480px) {
  h1 { font-size: 25px; }
  h2 { font-size: 20px; }
  .lead { font-size: 18px; }
}
