/* Static solution pages and articles (scripts/seo): the landing's tokens, self-contained, no app bundle. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/onest-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/onest-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 {
  color-scheme: light dark;
  --bg: #F8FAFB;
  --surface: #FFFFFF;
  --surface-sunken: #F1F4F7;
  --text: #0B0F13;
  --text-muted: #555D66;
  --border: #E4E8EC;
  --accent: #00BED6;
  --accent-hover: #00ADC3;
  --accent-fg: #007E8C;
  --accent-soft: #E6FAFD;
  --on-accent: #04161A;
  --footer-bg: #0B0F13;
  --footer-text: #A3AAB1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0F13;
    --surface: #12161B;
    --surface-sunken: #0E1216;
    --text: #E8ECF0;
    --text-muted: #A3AAB1;
    --border: #262C33;
    --accent-fg: #66E2E9;
    --accent-soft: #0E2A2E;
    --footer-bg: #070A0D;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Onest", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 17px; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-fg); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 12px; background: var(--surface); }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.prose-wrap { max-width: 760px; }

.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; flex: none; }
.brand img { display: block; height: 32px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-right: auto; font-size: 15px; }
.site-nav a { color: var(--text-muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--accent-hover); text-decoration: none; }

main { padding: 48px 0 72px; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
h1 { margin: 0 0 16px; font-size: clamp(32px, 5vw, 48px); font-weight: 700; }
h2 { margin: 48px 0 12px; font-size: 26px; font-weight: 650; }
h3 { margin: 28px 0 8px; font-size: 20px; font-weight: 600; }
p, ul, ol, table, blockquote { margin: 0 0 16px; }
ul, ol { padding-left: 24px; }
li { margin-bottom: 6px; }
li > p { margin: 0; }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

.lead { font-size: 20px; line-height: 1.55; color: var(--text-muted); }
.meta { font-size: 14px; color: var(--text-muted); }

.toc { margin: 32px 0; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.toc p { margin: 0 0 8px; font-weight: 600; }
.toc ol { margin: 0; }

.table-region { overflow-x: auto; margin: 0 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
thead th { border-bottom: 2px solid var(--border); font-weight: 600; white-space: nowrap; }

blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--text-muted); }
code { font-size: 0.92em; padding: 1px 5px; border-radius: 5px; background: var(--surface-sunken); }

.faq h3 { margin-top: 24px; }
.sources { font-size: 14px; color: var(--text-muted); }
.sources li { overflow-wrap: anywhere; }

.cta { margin-top: 56px; padding: 32px; border-radius: 16px; background: var(--accent-soft); }
.cta h2 { margin-top: 0; }
.cta p { color: var(--text-muted); }

.related ul { list-style: none; padding: 0; display: grid; gap: 4px 32px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }

.cards { list-style: none; padding: 0; display: grid; gap: 0 40px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.cards li { padding: 20px 0; border-top: 1px solid var(--border); }
.cards h2, .cards h3 { margin: 0 0 6px; font-size: 20px; }
.cards a { color: var(--text); text-decoration: none; }
.cards a:hover { color: var(--accent-fg); }
.cards p { margin: 0; color: var(--text-muted); font-size: 15px; }

.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 48px 0 32px; font-size: 14px; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #FFFFFF; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 32px; }
.footer-grid h2 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: #FFFFFF; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid #262C33; }

@media (max-width: 767px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { flex-wrap: wrap; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
  .site-nav { order: 3; width: 100%; font-size: 14px; }
  .site-header .btn { margin-left: auto; min-height: 40px; padding: 0 14px; font-size: 15px; }
  h2 { margin-top: 36px; font-size: 22px; }
  .lead { font-size: 18px; }
  .cta { padding: 24px 20px; }
}
