/* Shared colour tokens, base styles and the footer for every page of «Сценарист Reels».
   One dark theme: near-black, cold neon (violet → cyan) for accents, red only for the REC dot and errors. */
:root {
  --bg: #06070B;
  --surface: #0D0F16;
  --surface-2: #141722;
  --ink: #EDEFF6;
  --muted: #8C93A8;
  --line: #1D2130;
  --line-strong: #2B3044;
  --accent: #8B7CFF;
  --accent-2: #2DD4F0;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(139, 124, 255, .13);
  --grad: linear-gradient(115deg, #8B7CFF 0%, #5B8CFF 48%, #2DD4F0 100%);
  --rec: #FF3D4F;
  --danger: #FF5A6A;
  --cover: #05060A;
  --cover-ink: #FFFFFF;
  --cover-muted: #8F95A8;
  --ok: #3DDC97;
  --backdrop: rgba(2, 3, 8, .72);
  --aw-unaware: #86A2F2;
  --aw-problem: #4FC3B8;
  --aw-solution: #E0BB45;
  --aw-product: #F29A55;
  --aw-most: #FF5A6A;
  --f-display: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --f-body: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 12px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(139, 124, 255, .35); }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-top: 32px; display: grid; gap: 24px; color: var(--muted); font-size: 13px; }
.sf-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
@media (max-width: 860px) { .sf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sf-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .sf-cols { grid-template-columns: minmax(0, 1fr); } }
.sf-brand { display: grid; gap: 8px; align-content: start; max-width: 42ch; }
.sf-logo { display: inline-flex; align-items: center; gap: 10px; justify-self: start; margin-bottom: 4px; font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.sf-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 10px var(--rec); }
.sf-col h2 { margin: 0 0 12px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }
.sf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sf-col a { color: var(--ink); text-decoration: none; transition: color .2s; }
.sf-col a:hover { color: var(--accent-2); }
.sf-empty { font-style: italic; color: var(--muted); }
.sf-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
@media print { .site-footer { display: none !important; } }
