/* Відкриті сторінки (головна web/home.html і статті web/statti/): кольори — docs/BRAND.md, ті самі, що в web/page.html і web/login.html */
:root { --bg: #FAF6F0; --surface: #FFFFFF; --line: #E2D8CA; --ink: #1F2A33; --muted: #5B6670; --accent: #E36414; --accent-ink: #B34A08;
  --accent-soft: #FCE8D9; --on-accent: #FFFFFF; --blue: #2B5D8C; --font: "Golos Text", "Segoe UI", Roboto, Arial, sans-serif }
@media (prefers-color-scheme: dark) { :root { --bg: #141A1F; --surface: #1C232A; --line: #2E3842; --ink: #ECE5DA; --muted: #A5AFB8;
  --accent: #EE7A33; --accent-ink: #F59D63; --accent-soft: #3B2416; --on-accent: #1C1206; --blue: #8AB6E0; color-scheme: dark } }
* { box-sizing: border-box }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--font) }
a { color: var(--blue) }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px }
.wrap { width: min(1040px, 100%); margin: 0 auto; padding: 0 16px }
header { background: var(--surface); border-bottom: 1px solid var(--line) }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; color: var(--ink); text-decoration: none }
.brand img { width: 36px; height: 36px; border-radius: 8px }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px;
  font-weight: 600; text-decoration: none; background: var(--accent); color: var(--on-accent) }
.btn.ghost { background: transparent; color: var(--accent-ink); border: 1.5px solid var(--accent) }
.hero { padding-top: 64px; padding-bottom: 48px }
.hero p.kicker { margin: 0 0 8px; color: var(--accent-ink); font-weight: 600 }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 18px; max-width: 18em }
.lead { font-size: 20px; color: var(--muted); max-width: 40em; margin: 0 0 28px }
.cta { display: flex; flex-wrap: wrap; gap: 12px }
section { padding: 40px 0 }
h2 { font-size: 28px; margin: 0 0 20px }
h3 { font-size: 19px; margin: 0 0 6px }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px }
.card p { margin: 0; color: var(--muted) }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent-ink); font-weight: 700; margin-bottom: 10px }
ul.plain { margin: 0; padding-left: 1.2em; max-width: 44em }
ul.plain li { margin: 6px 0 }
footer { border-top: 1px solid var(--line); padding: 20px 0 36px; color: var(--muted); font-size: 16px }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.social { display: flex; gap: 8px }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--muted) }
.social a:hover { color: var(--accent-ink); background: var(--accent-soft) }
.social svg { width: 24px; height: 24px; fill: currentColor }
@media (max-width: 600px) { .hero { padding-top: 36px; padding-bottom: 24px } .lead { font-size: 18px } .cta .btn { flex: 1 } }
/* питання й відповіді */
.faq { max-width: 46em }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style-position: inside }
.faq details p { margin: 0 0 16px; color: var(--muted) }
/* статті */
.crumbs { margin: 28px 0 0; font-size: 16px; color: var(--muted) }
article { max-width: 46em; padding: 12px 0 48px }
article h1 { font-size: clamp(28px, 4.4vw, 40px) }
article h2 { font-size: 24px; margin: 36px 0 12px }
article p, article li { margin: 0 0 12px }
article .meta { color: var(--muted); font-size: 16px; margin-bottom: 24px }
article table { border-collapse: collapse; width: 100%; margin: 8px 0 20px; font-size: 16px; display: block; overflow-x: auto }
article th, article td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top }
article th { background: var(--surface) }
article pre { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 15px }
article code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.92em }
.cta-box { background: var(--accent-soft); border-radius: 14px; padding: 20px 22px; margin-top: 32px }
.cta-box p { margin: 0 0 12px }
.articles a { font-weight: 600 }
