/*
 * Стиль статейных страниц (/interaktiv-dlya-zala/, /opros-zala/).
 *
 * Это статичные HTML-страницы вне SPA: их читает поисковый краулер без
 * исползования JavaScript, поэтому и стиль живёт отдельным файлом, а не в
 * общем бандле React. Палитра и шрифты — те же, что у приложения (index.css
 * и fonts.css), чтобы статья не выглядела чужим сайтом; поддержки ручного
 * переключателя темы нет — только системная светлая/тёмная.
 */

@font-face {
  font-family: 'Sofia Sans Condensed';
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
  src: url('/fonts/sofia-sans-condensed-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Sofia Sans Condensed';
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
  src: url('/fonts/sofia-sans-condensed-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
  src: url('/fonts/golos-text-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
  src: url('/fonts/golos-text-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0c0b11;
  --surface: #15141c;
  --line: #2b2936;
  --text: #f3f1ec;
  --muted: #9b97a9;
  --accent: #ff5a3c;
  --accent-ink: #170a06;
  --font-display: 'Sofia Sans Condensed', 'Arial Narrow', sans-serif;
  --font-text: 'Golos Text', system-ui, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f4f2ee;
    --surface: #ffffff;
    --line: #dedad1;
    --text: #16141d;
    --muted: #5f5b6b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}
.brand span { color: var(--accent); }

.top-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.top-link:hover { color: var(--text); }

article h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.lead {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  margin: 0 0 8px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 36px;
}

article h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  margin: 44px 0 12px;
}

article h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
}

article p { margin: 0 0 14px; }

article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
article a:hover { text-decoration: none; }

article ul, article ol { margin: 0 0 14px; padding-left: 22px; }
article li { margin-bottom: 6px; }

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 15px;
}
article th, article td {
  text-align: left;
  padding: 9px 12px;
  border: 1px solid var(--line);
}
article th { font-weight: 700; background: var(--surface); }

blockquote {
  margin: 18px 0;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

/* Карточка-приглашение в конце раздела или статьи. */
.cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 32px 0;
}
.cta h2, .cta h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}
.cta p { color: var(--muted); margin: 0 0 14px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 20px;
}
.btn:hover { filter: brightness(1.08); }

.ghost {
  display: inline-block;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  margin-left: 12px;
}
.ghost:hover { color: var(--text); }

.home-footer {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.home-footer a {
  color: var(--muted);
  text-decoration: none;
}
.home-footer a:hover { color: var(--text); }
