:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --ink: #17202a;
  --muted: #5f6b76;
  --line: #e3e7ea;
  --bar: #111820;
  --bar-2: #1a232d;
  --bar-line: #2b3642;
  --accent: #1f9d55;
  --accent-dark: #14733d;
  --gold: #ffd400;
}
* { box-sizing: border-box; }
html, body { margin: 0; font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent-dark); }
.topbar { background: var(--bar); color: #fff; border-bottom: 1px solid var(--bar-line); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; }
.logo { font-weight: 800; font-size: 20px; color: #fff; text-decoration: none; margin-right: auto; white-space: nowrap; }
.logo span { color: var(--gold); font-weight: 500; font-size: 14px; margin-left: 6px; }
.navlink { color: #dbe4ec; text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 8px; }
.navlink:hover { color: #fff; background: rgba(255,255,255,.08); }
.langsel { height: 34px; border-radius: 8px; border: 1px solid var(--bar-line); background: var(--bar-2); color: #fff; font: inherit; font-size: 14px; padding: 0 10px; cursor: pointer; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.sm { padding: 7px 14px; font-size: 14px; }
section[lang] { display: none; }
section[lang].on { display: block; }
.hero { background: linear-gradient(155deg, #111820 0%, #152b21 100%); color: #fff; padding: 54px 0 48px; }
.badge { display: inline-block; background: rgba(255,212,0,.16); color: var(--gold); border: 1px solid rgba(255,212,0,.35); border-radius: 99px; padding: 3px 12px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.hero h1 { margin: 0 0 14px; font-size: clamp(28px, 4.4vw, 44px); line-height: 1.15; letter-spacing: -.02em; max-width: 780px; }
.hero p { margin: 0 0 24px; color: #d5e0ea; font-size: 18px; max-width: 700px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .btn.ghost { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.pillars { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: #b9cad8; font-size: 14px; }
.demo-block { padding-bottom: 16px; }
.demo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.demo-head h2 { margin: 0; }
.demo-dur { background: #edf9f1; color: var(--accent-dark); border: 1px solid #bfe6cb; border-radius: 99px; padding: 3px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.demo-sub { margin: 0 0 18px; color: var(--muted); font-size: 16px; max-width: 780px; }
.demo-shell { background: var(--bar); border: 1px solid var(--bar-line); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 46px rgba(17,24,32,.14); aspect-ratio: 16 / 9; }
video.demo-video { width: 100%; height: 100%; display: block; object-fit: cover; background: var(--bar); }
.demo-chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.demo-chapters span { background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 99px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.block { padding: 42px 0; }
.block h2 { margin: 0 0 18px; font-size: 26px; letter-spacing: -.01em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; margin: 18px 0; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
table.cmp th, table.cmp td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.cmp th { border-top: 0; background: #f8fafb; font-weight: 700; }
table.cmp td.ok { color: #14733d; font-weight: 600; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); }
footer { border-top: 1px solid var(--line); background: var(--surface); padding: 26px 0; color: var(--muted); font-size: 14px; }
footer .fnav { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
footer .flinks { display: flex; gap: 16px; flex-wrap: wrap; }
.noscript-langs { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Guides hub & SEO/GEO articles */
.article-wrap { max-width: 820px; margin: 0 auto; padding: 28px 20px 56px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.article-head h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 38px); line-height: 1.18; letter-spacing: -.02em; }
.article-meta { display: flex; gap: 10px 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.tldr { background: #edf9f1; border: 1px solid #bfe6cb; border-radius: 12px; padding: 14px 18px; margin: 18px 0 26px; }
.tldr b { color: #14532d; display: block; margin-bottom: 4px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.article-body h2 { margin: 30px 0 10px; font-size: 23px; line-height: 1.25; }
.article-body h3 { margin: 20px 0 8px; font-size: 18px; }
.article-body p { margin: 0 0 14px; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 22px; }
.article-body li { margin: 6px 0; }
.formula { background: #111820; color: #f8fafc; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; padding: 12px 16px; border-radius: 10px; overflow-x: auto; margin: 14px 0; }
.callout { background: var(--surface); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 18px; margin: 18px 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc-card { background: var(--surface); border: 2px solid #bfe6cb; border-radius: 14px; padding: 20px; margin: 24px 0; }
.calc-card h3 { margin: 0 0 6px; font-size: 19px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 14px 0; }
.calc-grid label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.calc-grid input { height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.calc-out { background: #f8fafb; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; }
.verdict { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; width: max-content; }
.verdict.ok { background: #d8f3e3; color: #14532d; }
.verdict.warn { background: #fff3c4; color: #7a5200; }
.verdict.stop { background: #f6dede; color: #8a2525; }
.cta-box { background: linear-gradient(155deg, #111820 0%, #152b21 100%); color: #fff; border-radius: 16px; padding: 24px; margin: 28px 0; }
.cta-box h3 { margin: 0 0 8px; font-size: 22px; }
.cta-box p { margin: 0 0 16px; color: #d5e0ea; }
.cta-box .hero-cta .btn.ghost { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.yt-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.yt-embed { margin: 22px 0 26px; border-radius: 16px; overflow: hidden; background: var(--bar); border: 1px solid var(--bar-line); box-shadow: 0 18px 46px rgba(17,24,32,.14); }
.yt-embed.local { background: var(--bar); }
.yt-embed .article-video { border: 0; border-radius: 0; box-shadow: none; }
.yt-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: var(--bar); cursor: pointer; overflow: hidden; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.yt-facade:hover img { transform: scale(1.02); }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: rgba(17,24,32,.86); border: 2px solid var(--accent); color: #fff; font-size: 26px; padding-left: 4px; display: grid; place-items: center; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.yt-facade:hover .yt-play { background: var(--accent); }
.yt-soon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(17,24,32,.9); color: var(--gold); border: 1px solid rgba(255,212,0,.4); border-radius: 99px; padding: 10px 20px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.yt-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.yt-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 11px 16px; background: var(--bar); color: #dbe4ec; font-size: 13px; border-top: 1px solid var(--bar-line); }
.yt-bar a { color: var(--gold); font-weight: 600; text-decoration: none; white-space: nowrap; }
.yt-bar a:hover { text-decoration: underline; }
.guide-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--bar); margin-bottom: 4px; }
.guide-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vpill { position: absolute; left: 8px; top: 8px; background: rgba(17,24,32,.88); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; padding: 2px 9px; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.vg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.vg-head h2 { margin: 0; }
.vg-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.vg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 14px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; margin-top: 20px; }
.guide-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: border-color .15s; }
.guide-card:hover { border-color: var(--accent); }
.guide-card .tag { font-size: 12px; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .04em; }
.guide-card h3 { margin: 0; font-size: 19px; color: var(--ink); }
.guide-card p { margin: 0; font-size: 14px; color: var(--muted); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
@media (max-width: 640px) {
  .logo span { display: none; }
  .nav { gap: 8px; }
}
