:root {
    --ink: #0b2239;
    --ink-soft: #2f4d6e;
    --brand: #0a74da;
    --brand-deep: #0a58ad;
    --tint: #f1f8ff;
    --line: #d3e5fa;
    --mint: #0f9d8a;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(10, 88, 173, 0.10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-deep); text-underline-offset: 3px; }
a:hover { color: #07509f; text-decoration-thickness: 2px; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

/* header */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: 0.02em; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--mint) 100%);
    display: grid; place-items: center; color: #fff; font-size: 17px; font-weight: 800;
}
.site-nav a { color: var(--ink-soft); text-decoration: none; margin-left: 26px; font-size: 15px; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); }

/* hero */
.hero {
    background: linear-gradient(180deg, var(--tint) 0%, var(--white) 100%);
    padding: 88px 0 72px;
    text-align: center;
}
.hero h1 { font-size: 46px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; max-width: 760px; margin: 0 auto 20px; }
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 680px; margin: 0 auto 30px; }
.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white); border: 1px solid var(--line); color: var(--ink);
    padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
    box-shadow: 0 2px 8px rgba(10, 88, 173, 0.06);
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); display: inline-block; }

/* flow strip */
.flow { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.flow .step { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 22px; font-weight: 600; box-shadow: var(--shadow); }
.flow .arrow { color: var(--brand); font-size: 20px; }

/* sections */
section.block { padding: 72px 0; }
section.block h2 { font-size: 30px; letter-spacing: -0.01em; text-align: center; margin-bottom: 12px; }
section.block p.sub { text-align: center; color: var(--ink-soft); max-width: 640px; margin: 0 auto 40px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    background: var(--white); border: 1px solid var(--line); border-radius: 16px;
    padding: 28px; box-shadow: var(--shadow);
}
.card .icon {
    width: 46px; height: 46px; border-radius: 12px; background: var(--tint);
    display: grid; place-items: center; margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--ink-soft); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps .item { position: relative; padding: 28px 24px 24px; background: var(--tint); border-radius: 16px; border: 1px solid var(--line); }
.steps .item::before {
    counter-increment: s; content: counter(s);
    position: absolute; top: -16px; left: 24px;
    width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff;
    display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.steps .item p { font-size: 15px; color: var(--ink); }

.panel {
    background: var(--tint); border: 1px solid var(--line); border-radius: 20px;
    padding: 40px; max-width: 860px; margin: 0 auto;
}
.panel h2 { text-align: left; font-size: 26px; margin-bottom: 14px; }
.panel p { margin-bottom: 14px; font-size: 16px; }
.panel p:last-child { margin-bottom: 0; }

.note { text-align: center; color: var(--ink-soft); padding: 8px 0 72px; font-size: 15px; }

/* document pages */
.doc { padding: 56px 0 88px; }
.doc h1 { font-size: 38px; letter-spacing: -0.02em; margin-bottom: 6px; }
.doc .date { color: var(--ink-soft); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 21px; margin: 38px 0 12px; }
.doc p { margin-bottom: 16px; font-size: 16px; }
.doc ul { margin: 0 0 16px 22px; font-size: 16px; }
.doc li { margin-bottom: 8px; }
.doc table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 0 0 20px; font-size: 15px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.doc th, .doc td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { background: var(--tint); font-weight: 700; }
.doc code { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: 13px; background: var(--tint); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; text-align: center; font-size: 14px; color: var(--ink-soft); }
.site-footer a { color: var(--ink-soft); text-decoration: none; margin: 0 14px; font-weight: 500; }
.site-footer a:hover { color: var(--brand); }
.site-footer .links { margin-bottom: 12px; }

@media (max-width: 800px) {
    .hero { padding: 56px 0 48px; }
    .hero h1 { font-size: 32px; }
    .hero p.lead { font-size: 17px; }
    .grid3, .steps { grid-template-columns: 1fr; }
    .steps { gap: 36px; }
    .site-nav a { margin-left: 16px; font-size: 14px; }
    .panel { padding: 28px 22px; }
    .doc h1 { font-size: 30px; }
}
