:root {
    --brand: #1167b1;
    --brand-dark: #0b477c;
    --brand-soft: #e9f4ff;
    --ink: #183247;
    --muted: #60758a;
    --line: #dce7ef;
    --paper: #ffffff;
    --canvas: #f4f8fb;
    --success: #16845b;
    --warning: #a85d00;
    --shadow: 0 18px 55px rgba(26, 66, 98, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid rgba(220,231,239,.9);
    backdrop-filter: blur(14px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand span { color: var(--brand); }
.top-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: .91rem; font-weight: 700; padding: 8px 11px; border-radius: 9px; }
.top-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.top-nav .home-link { color: var(--brand); border: 1px solid #bddaf1; }

.hero { overflow: hidden; position: relative; padding: 88px 0 72px; background: linear-gradient(135deg, #082f52 0%, #0d5d9f 58%, #1682c7 100%); color: white; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -170px; top: -250px; border-radius: 50%; border: 90px solid rgba(255,255,255,.07); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.hero h1 { max-width: 720px; margin: 0 0 22px; font-size: clamp(2.35rem, 5vw, 4.2rem); line-height: 1.03; letter-spacing: -.045em; }
.hero-lead { max-width: 680px; margin: 0; color: #dcefff; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); border-radius: 22px; padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.15); }
.hero-card strong { display: block; margin-bottom: 12px; font-size: 1.03rem; }
.hero-flow { display: grid; gap: 10px; }
.hero-flow div { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.09); font-size: .92rem; }
.hero-flow b { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: white; color: var(--brand-dark); }

.intro { position: relative; z-index: 2; margin-top: -32px; }
.intro-card { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 27px 30px; border-radius: 18px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
.intro-card h2 { margin: 0 0 6px; font-size: 1.2rem; }
.intro-card p { margin: 0; color: var(--muted); }
.status-pill { white-space: nowrap; color: var(--success); background: #e8f7f0; border: 1px solid #bce6d4; border-radius: 999px; padding: 9px 13px; font-size: .82rem; font-weight: 800; }

.manual { padding: 58px 0 30px; }
.manual-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr); gap: 48px; align-items: center; padding: 66px 0; border-bottom: 1px solid var(--line); }
.manual-section.reverse .section-copy { order: 2; }
.manual-section.reverse .visual-card { order: 1; }
.section-number { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 11px; color: white; background: var(--brand); font-weight: 900; box-shadow: 0 8px 20px rgba(17,103,177,.25); }
.section-copy h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1.13; letter-spacing: -.035em; }
.section-copy > p { margin: 0 0 24px; color: var(--muted); font-size: 1.05rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.steps li { position: relative; padding: 2px 0 2px 48px; }
.steps li::before { content: attr(data-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); border: 1px solid #cce3f5; font-weight: 900; font-size: .83rem; }
.steps strong { display: block; color: var(--ink); margin-bottom: 2px; }
.steps span { display: block; color: var(--muted); font-size: .95rem; }
.visual-card { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.visual-card button { width: 100%; display: block; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.visual-card img { display: block; width: 100%; height: auto; border-radius: 13px; }
.visual-card figcaption { padding: 12px 8px 3px; color: var(--muted); font-size: .82rem; text-align: center; }

.notice { margin: 28px 0 0; padding: 20px 22px; display: grid; grid-template-columns: auto 1fr; gap: 14px; border-radius: 15px; border: 1px solid #f2d29d; background: #fff8ea; color: #724a13; }
.notice-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #ffebbd; font-weight: 900; }
.notice strong { display: block; color: #6e4106; margin-bottom: 3px; }
.notice p { margin: 0; font-size: .94rem; }
.notice.success { border-color: #bce6d4; background: #effaf5; color: #28614c; }
.notice.success .notice-icon { background: #d6f2e5; }
.notice.success strong { color: #14543b; }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 25px 0; }
.choice { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.choice b { display: block; font-size: .93rem; margin-bottom: 5px; }
.choice span { color: var(--muted); font-size: .83rem; line-height: 1.45; }

.checklist { padding: 70px 0; }
.checklist-card { padding: 36px; border-radius: 22px; color: white; background: #102f48; box-shadow: var(--shadow); }
.checklist-card h2 { margin: 0 0 8px; font-size: 2rem; }
.checklist-card > p { margin: 0 0 25px; color: #bdd4e5; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 30px; }
.check-item { display: flex; gap: 10px; align-items: flex-start; color: #e8f4fb; font-size: .94rem; }
.check-item::before { content: "✓"; flex: 0 0 24px; display: grid; place-items: center; height: 24px; border-radius: 50%; background: #1a875f; color: white; font-weight: 900; }

.sources { padding: 0 0 74px; }
.sources h2 { font-size: 1.1rem; margin: 0 0 8px; }
.sources p { color: var(--muted); margin: 0; font-size: .88rem; }
.sources a { font-weight: 700; }
.site-footer { padding: 28px 0; background: #09253b; color: #bcd0de; font-size: .86rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer a { color: white; }

dialog { width: min(1040px, calc(100% - 28px)); border: 0; border-radius: 18px; padding: 12px; background: white; box-shadow: 0 30px 100px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(4, 22, 37, .78); backdrop-filter: blur(5px); }
dialog img { display: block; width: 100%; border-radius: 11px; }
.dialog-close { position: absolute; top: 22px; right: 22px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #102f48; color: white; font-size: 1.5rem; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.3); }

@media (max-width: 880px) {
    .top-nav a:not(.home-link) { display: none; }
    .hero { padding: 66px 0 58px; }
    .hero-grid, .manual-section { grid-template-columns: 1fr; }
    .hero-card { display: none; }
    .manual-section { gap: 30px; padding: 50px 0; }
    .manual-section.reverse .section-copy, .manual-section.reverse .visual-card { order: initial; }
    .choice-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .container { width: min(100% - 28px, 1120px); }
    .header-inner { min-height: 64px; }
    .brand { font-size: .93rem; }
    .intro-card { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
    .status-pill { justify-self: start; }
    .manual { padding-top: 35px; }
    .manual-section { padding: 40px 0; }
    .checklist-card { padding: 25px; }
    .check-grid { grid-template-columns: 1fr; }
    .footer-inner { display: block; }
}
@media print {
    .site-header, .dialog-close { display: none !important; }
    body { background: white; }
    .hero { color: var(--ink); background: white; padding: 25px 0; }
    .hero-lead { color: var(--muted); }
    .hero-card { display: none; }
    .intro { margin-top: 0; }
    .intro-card, .visual-card, .checklist-card { box-shadow: none; }
    .manual-section { break-inside: avoid; }
}
