:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #14171f;
  --muted: #5b6272;
  --line: #e3e6ec;
  --accent: #1f5fe0;
  --accent-text: #ffffff;
  --soft: #eaf0fd;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218;
    --surface: #181c25;
    --text: #eef0f5;
    --muted: #a3aabb;
    --line: #2a303d;
    --accent: #7aa5ff;
    --accent-text: #0b1020;
    --soft: #1c2740;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 12px; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
.top nav a { margin-left: 16px; text-decoration: none; font-size: 15px; }

.hero { padding: 48px 0 24px; text-align: center; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.15; margin: 0 0 12px; text-wrap: balance; }
.lead { color: var(--muted); font-size: 19px; margin: 0 auto; max-width: 620px; text-wrap: pretty; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; padding: 24px 0 48px; list-style: none; margin: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.card-shot { display: block; background: var(--soft); aspect-ratio: 16 / 11; overflow: hidden; }
.card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-head { display: flex; align-items: center; gap: 12px; }
.icon { width: 48px; height: 48px; border-radius: 11px; flex: none; background: var(--soft); }
.card h2 { font-size: 19px; line-height: 1.25; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; padding-top: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 600; text-decoration: none; background: var(--accent); color: var(--accent-text); }
.btn.quiet { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.soon { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 14px; font-weight: 600; }

.guide-head { padding: 36px 0 8px; display: flex; gap: 18px; align-items: flex-start; }
.guide-head .icon { width: 72px; height: 72px; border-radius: 16px; }
.guide-head h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.2; margin: 0 0 6px; text-wrap: balance; }
.guide-head .lead { margin: 0 0 14px; font-size: 18px; }
.meta { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 24px 0; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2 220px; }
.toc a { text-decoration: none; }

.guide h2 { font-size: 25px; line-height: 1.25; margin: 40px 0 10px; scroll-margin-top: 16px; }
.guide ol, .guide ul { padding-left: 24px; }
.guide li { margin: 6px 0; }
.guide figure { margin: 18px 0 26px; text-align: center; }
.guide figure img { width: min(100%, 320px); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); }
.guide figcaption { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

.cta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 40px 0; text-align: center; }
.cta h2 { margin: 0 0 6px; font-size: 22px; }
.cta p { margin: 0 0 14px; color: var(--muted); }

.more h2 { font-size: 22px; margin: 0; }
.more .grid { padding-top: 16px; }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14.5px; }
footer p { margin: 4px 0; }

@media (max-width: 560px) {
  .guide-head { flex-direction: column; gap: 12px; }
  .hero { padding-top: 32px; }
}

.top nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.lang { margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--line); }
.lang a { margin-left: 0; }
.lang a + a { margin-left: 10px; }

.qr { margin-left: auto; flex: none; width: 132px; text-align: center; display: none; }
.qr svg { width: 132px; height: 132px; display: block; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.qr p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
@media (min-width: 720px) { .qr { display: block; } }

.share { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.share a { margin: 0 6px; }
