/* Юридические страницы (оферта, политика, о проекте): статичные, без JavaScript и сторонних доменов.
   Шрифты — те же локальные файлы, что у сайта (SIL OFL 1.1). */

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/golos-text-cyrillic.woff2) format('woff2');
  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: 400 600;
  font-display: swap;
  src: url(/fonts/golos-text-latin.woff2) format('woff2');
  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: Unbounded;
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/fonts/unbounded-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/fonts/unbounded-latin.woff2) format('woff2');
  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 {
  --bg: #f4fbf8;
  --surface: #ffffff;
  --text: #04342c;
  --muted: #3f6b61;
  --border: #c4ebdd;
  --accent: #0f6e56;
  --soft: #e1f5ee;
  /* Логотип и название — как в шапке главной (Home.tsx, .site-name). */
  --brand-name: #085041;
  --logo-frame: #0f6e56;
  --logo-wave: #1d9e75;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #04201b;
    --surface: #0a2e27;
    --text: #e1f5ee;
    --muted: #9fcdbd;
    --border: #1d4d42;
    --accent: #5dcaa5;
    --soft: #0f3a31;
    --brand-name: #e1f5ee;
    --logo-frame: #9fe1cb;
    --logo-wave: #5dcaa5;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 'Golos Text', system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-name);
  text-decoration: none;
  font: 700 19px/1 Unbounded, 'Golos Text', sans-serif;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

h1 {
  font: 700 clamp(24px, 5vw, 32px) / 1.2 Unbounded, sans-serif;
  margin: 0 0 8px;
  color: var(--accent);
}

h2 {
  font: 600 19px/1.3 'Golos Text', sans-serif;
  margin: 32px 0 8px;
}

p,
li {
  margin: 0 0 10px;
}

ul {
  padding-left: 22px;
}

a {
  color: var(--accent);
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 16px 0;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
}

.nobr {
  white-space: nowrap;
}

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
}

/* ───────── вопросы и ответы, статьи ───────── */

.lead {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 20px;
}

.crumbs {
  font-size: 14px;
  color: var(--muted);
  margin: -12px 0 12px;
}

.crumbs a {
  color: inherit;
}

.faq {
  margin: 8px 0 24px;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 32px 12px 0;
  position: relative;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 7px;
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: '−';
}

.faq details > :not(summary) {
  color: var(--muted);
}

.faq details > :last-child {
  padding-bottom: 12px;
}

.cta {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  margin: 32px 0;
}

.cta p {
  margin-bottom: 14px;
}

.btn {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
}

.articles {
  list-style: none;
  padding: 0;
}

.articles li {
  margin-bottom: 16px;
}

.articles a {
  font-weight: 600;
  font-size: 18px;
}

.articles p {
  color: var(--muted);
  margin: 4px 0 0;
}

ol {
  padding-left: 22px;
}
