  /* Theme: "auto" follows the device; the button stores "light" or "dark" in localStorage
     and sets <html data-theme=...> (theme.js, run in <head> so there is no flash). */
  :root { --bg: #f6f7f9; --card: #ffffff; --text: #1d2330; --muted: #5b6472; --accent: #0b6bcb;
          --accent-soft: #e8f1fb; --line: #e3e6eb; color-scheme: light; }
  :root[data-theme="dark"] { --bg: #12151b; --card: #1b2029; --text: #e8ebf0; --muted: #a3acb9;
          --accent: #5aa9ff; --accent-soft: #1d2a3a; --line: #2b323d; color-scheme: dark; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --bg: #12151b; --card: #1b2029; --text: #e8ebf0; --muted: #a3acb9;
          --accent: #5aa9ff; --accent-soft: #1d2a3a; --line: #2b323d; color-scheme: dark; }
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5;
         font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
  .wrap { max-width: 880px; margin: 0 auto; padding: 16px; }
  nav { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 16px; }
  .brand { font-weight: 700; font-size: 1.25rem; letter-spacing: .2px; }
  .brand span { color: var(--accent); }
  .tools { display: flex; align-items: center; gap: 6px; }
  .langs a, .theme { color: var(--muted); text-decoration: none; font-size: .95rem; padding: 6px 10px;
           border-radius: 8px; border: 1px solid transparent; background: none; font-family: inherit;
           cursor: pointer; }
  .langs a:hover, .theme:hover { color: var(--accent); }
  .langs a[aria-current="page"] { color: var(--text); font-weight: 600; border-color: var(--line); }
  .theme { border-color: var(--line); }
  section.lang { background: var(--card); border: 1px solid var(--line); border-radius: 14px;
                 padding: 36px 28px; margin-bottom: 24px; }
  .badge { display: inline-block; background: var(--accent-soft); color: var(--accent);
           border-radius: 999px; padding: 4px 12px; font-size: .85rem; margin-bottom: 14px; }
  h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 12px; }
  h2 { font-size: 1.2rem; margin: 32px 0 12px; }
  .lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 24px; }
  .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
  .item { border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
  .item h3 { font-size: 1rem; margin: 0 0 6px; }
  .item p { margin: 0; color: var(--muted); font-size: .95rem; }
  ol.steps { margin: 0; padding-left: 20px; }
  ol.steps li { margin-bottom: 6px; }
  .contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
  .btn { display: inline-block; padding: 12px 18px; border-radius: 10px; text-decoration: none;
         font-weight: 600; border: 1px solid var(--accent); color: var(--accent); }
  .btn.primary { background: var(--accent); color: #fff; }
  .btn:hover { opacity: .9; }
  footer { text-align: center; color: var(--muted); font-size: .9rem; padding: 8px 0 32px; }
  footer a { color: var(--accent); text-decoration: none; }
  @media (max-width: 520px) { section.lang { padding: 28px 18px; } h1 { font-size: 1.6rem; } }
