:root {
  --ink: #102033;
  --muted: #53657a;
  --brand: #1a56db;
  --brand-dark: #123fa7;
  --sky: #eaf4fc;
  --sun: #f4b942;
  --surface: #ffffff;
  --background: #f4f8fc;
  --line: #d8e2ed;
  --risk: #b42318;
  --risk-bg: #fff1f0;
  --success: #176b4d;
  --success-bg: #eaf8f1;
  --radius: 18px;
  --shadow: 0 16px 45px rgba(16, 32, 51, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--background); font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--brand-dark); text-underline-offset: .18em; }
a:hover { color: var(--brand); }
img, svg { max-width: 100%; height: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 10px 14px; background: var(--ink); color: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--brand); font-size: 13px; letter-spacing: -.04em; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--ink); font-weight: 700; text-decoration: none; }
.menu-button { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 800; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 2px solid var(--brand); border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--brand-dark); color: #fff; }
.button.secondary { background: #fff; color: var(--brand-dark); }
.button.secondary:hover { background: var(--sky); color: var(--brand-dark); }
.hero { padding: 82px 0 54px; background: radial-gradient(circle at 88% 12%, #fff2c9 0, transparent 26%), linear-gradient(135deg, #f7fbff, #fff); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 48px; }
.eyebrow { margin: 0 0 12px; color: var(--brand-dark); font-size: 13px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 850px; font-size: clamp(2.35rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
h3 { font-size: 1.25rem; }
.lead { max-width: 760px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .93rem; }
.hero-points li::before { content: "✓"; margin-right: 7px; color: var(--success); font-weight: 900; }
.hero-art { padding: 24px; border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.86); box-shadow: var(--shadow); }
.hero-art img { display: block; width: 100%; height: auto; }
.source-strip { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.source-strip div { padding: 16px; background: #fff; }
.source-strip strong { display: block; font-size: .9rem; }
.source-strip span { color: var(--muted); font-size: .9rem; }
.section { padding: 64px 0; }
.section.alt { background: #fff; }
.section-heading { max-width: 720px; margin-bottom: 28px; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }
.section-action { margin: 28px 0 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { display: flex; flex-direction: column; min-height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 28px rgba(16,32,51,.045); }
.card p { color: var(--muted); }
.card .card-link { margin-top: auto; font-weight: 800; }
.chip { display: inline-flex; align-items: center; width: fit-content; min-height: 30px; padding: 4px 10px; border-radius: 999px; background: var(--sky); color: var(--brand-dark); font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.breadcrumbs { padding: 22px 0 0; color: var(--muted); font-size: .9rem; }
.breadcrumbs a { color: var(--muted); }
.page-hero { padding: 48px 0 36px; background: #fff; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.1em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #25384d; }
.prose li + li { margin-top: .45em; }
.prose img { display: block; width: auto; max-width: 100%; height: auto !important; margin: 24px auto; object-fit: contain; }
.toc, .note, .risk-note, .source-box, .tool-panel, .editorial-meta { padding: 22px; border-radius: var(--radius); }
.toc { position: sticky; top: 102px; border: 1px solid var(--line); background: #fff; }
.toc strong { display: block; margin-bottom: 10px; }
.toc a { display: block; padding: 5px 0; }
.note { border: 1px solid #b8d6ef; background: var(--sky); }
.risk-note { border-left: 5px solid var(--risk); background: var(--risk-bg); }
.source-box { margin-top: 32px; border: 1px solid var(--line); background: #fff; }
.source-box li + li { margin-top: 8px; }
.editorial-meta { margin-bottom: 24px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .92rem; }
.editorial-meta strong { color: var(--ink); }
.answer-box { margin-bottom: 24px; padding: 24px; border: 1px solid #b8d6ef; border-radius: var(--radius); background: linear-gradient(135deg, var(--sky), #fff); }
.answer-box h2 { margin-top: 0; }
.answer-box p:last-child { margin-bottom: 0; font-size: 1.08rem; }
.article-steps { display: grid; gap: 14px; padding-left: 1.4rem; }
.article-steps li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.article-steps p { margin: 7px 0 0; color: var(--muted); }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.decision-table { width: 100%; border-collapse: collapse; background: #fff; }
.decision-table th, .decision-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.decision-table thead th { background: var(--sky); color: var(--ink); }
.decision-table tbody tr:last-child th, .decision-table tbody tr:last-child td { border-bottom: 0; }
.mistake-list { padding: 20px 20px 20px 42px; border-radius: 14px; background: #fff8eb; }
.next-step { margin-top: 32px; padding: 24px; border: 1px solid #b8d6ef; border-radius: var(--radius); background: var(--sky); }
.next-step h2 { margin-top: 0; }
.home-method { background: linear-gradient(135deg, #102033, #173b61); color: #fff; }
.home-method .eyebrow, .home-method a { color: #b9d9ff; }
.method-grid { counter-reset: method; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; list-style: none; }
.method-grid li { min-height: 180px; padding: 22px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: rgba(255,255,255,.08); }
.method-grid li::before { counter-increment: method; content: counter(method); display: grid; width: 36px; height: 36px; margin-bottom: 18px; place-items: center; border-radius: 10px; background: var(--sun); color: var(--ink); font-weight: 900; }
.method-grid strong, .method-grid span { display: block; }
.method-grid span { margin-top: 8px; color: #d6e4f1; }
.home-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.trust-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.trust-card li + li { margin-top: 9px; }
.home-lead-panel { border-color: #b8d6ef; background: linear-gradient(135deg, #fff, var(--sky)); }
.tool-panel { border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
label { display: grid; gap: 6px; font-weight: 700; }
input, select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #98a9bb; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
input[type="checkbox"] { box-sizing: border-box; width: 20px; min-width: 20px; max-width: 20px; height: 20px; min-height: 20px; max-height: 20px; margin: 2px 0 0; padding: 0; accent-color: var(--brand); }
.tool-result { min-height: 84px; margin-top: 18px; padding: 18px; border-radius: 14px; background: var(--success-bg); color: var(--success); font-weight: 800; }
.module-list { counter-reset: module; display: grid; gap: 12px; padding: 0; list-style: none; }
.module-list li { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.module-list li::before { counter-increment: module; content: counter(module); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--sky); color: var(--brand-dark); font-weight: 900; }
.module-list p { margin: 6px 0 0; color: var(--muted); }
.course-cover { width: 100%; max-width: 760px; margin: 0 0 28px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.course-cover img { display: block; width: 100%; max-width: 100%; height: auto !important; object-fit: contain; }
.course-cover figcaption { padding: 10px 14px; color: var(--muted); font-size: .85rem; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq-list summary { cursor: pointer; font-weight: 800; }
.faq-list p { margin-bottom: 0; }
.toc .toc-cta { margin: 10px 0; padding: 9px 11px; border-radius: 9px; background: var(--brand); color: #fff; text-decoration: none; }
.lead-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); gap: 42px; align-items: start; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.lead-panel > * { min-width: 0; }
.lead-form { display: grid; width: 100%; max-width: 560px; gap: 15px; justify-self: end; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check-row > span { min-width: 0; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 28px; margin: 0; font-weight: 700; }
.form-status.is-success { padding: 12px; border-radius: 10px; background: var(--success-bg); color: var(--success); }
.form-status.is-error { padding: 12px; border-radius: 10px; background: var(--risk-bg); color: var(--risk); }
button:disabled { cursor: wait; opacity: .65; }
.site-footer { padding: 42px 0; background: var(--ink); color: #dbe6f0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer .brand, .site-footer a { color: #fff; }
.site-footer h2 { font-size: 1rem; letter-spacing: 0; }
.site-footer nav a { display: block; margin: 7px 0; }
.footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid #3d5063; color: #b8c8d7; font-size: .9rem; }
.empty-state { padding: 20px; border: 1px dashed #98a9bb; border-radius: 14px; background: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
@media (max-width: 860px) {
  .menu-button { display: inline-grid; place-items: center; }
  .main-nav { display: none; position: absolute; top: 68px; left: 16px; right: 16px; padding: 18px; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .hero-grid, .content-layout { grid-template-columns: 1fr; }
  .lead-panel { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .home-split { grid-template-columns: 1fr; }
  .toc { position: static; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero { padding-top: 52px; }
  .grid, .grid.two, .tool-grid, .source-strip, .footer-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .button { width: 100%; }
  .card { padding: 20px; }
  .lead-panel { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
