:root {
  --navy: #12263f;
  --blue: #1f6feb;
  --light: #f4f7fb;
  --text: #1f2933;
  --muted: #5f6b7a;
  --border: #dde3ea;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); line-height: 1.6; background: #fff; }
a { color: var(--blue); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--navy); padding: 16px 0; position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { color: #fff; font-size: 1.3rem; font-weight: 700; text-decoration: none; }
.nav { display: flex; gap: 22px; }
.nav a { color: #dbe6f5; text-decoration: none; }
.nav a:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy), #1d3f6b); color: #fff; padding: 80px 0; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 16px; line-height: 1.2; max-width: 760px; }
.hero p { font-size: 1.15rem; max-width: 640px; color: #dbe6f5; margin-bottom: 28px; }
.btn { display: inline-block; background: var(--blue); color: #fff; padding: 12px 26px; border-radius: 6px; text-decoration: none; font-weight: 600; border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { background: #1858c4; }
.stats { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.stats li { border-left: 3px solid var(--blue); padding-left: 14px; color: #dbe6f5; }
.stats strong { display: block; color: #fff; font-size: 1.4rem; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero-art { width: 100%; max-width: 340px; justify-self: center; }
.icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: #e8f0fe; color: var(--blue); margin-bottom: 12px; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step, .step + .icon { vertical-align: middle; }
.step + .icon { display: inline-flex; margin-left: 10px; }
.cta-row { margin: 28px 0 0; }

/* Photos */
.photo { margin: 0 0 28px; }
.photo img { display: block; width: 100%; border-radius: 8px; object-fit: cover; }
.photo-wide img { aspect-ratio: 21 / 8; }
.photo figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.photo figcaption a { color: inherit; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.split .photo img { aspect-ratio: 3 / 2; }

/* Charts */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 16px; }
.chart-card { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.chart-card figcaption { font-weight: 600; color: var(--navy); margin-bottom: 16px; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .axis-text { fill: var(--muted); font-size: 12px; }
.chart .value-text { fill: var(--text); font-size: 13px; font-weight: 600; }
.chart .mark { transition: opacity 0.15s; outline: none; }
.chart.hovering .mark { opacity: 0.4; }
.chart.hovering .mark.active { opacity: 1; }
.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut-wrap svg { width: 180px; flex-shrink: 0; }
.legend { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; flex: 1; min-width: 160px; }
.legend li { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.legend span { color: var(--muted); margin-left: auto; white-space: nowrap; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 6px; font-size: 0.85rem; white-space: nowrap; box-shadow: 0 6px 18px rgba(18, 38, 63, 0.25); }
.chart-table { margin-top: 12px; }
.chart-table summary { cursor: pointer; color: var(--blue); font-size: 0.9rem; }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.9rem; }
.chart-table th, .chart-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); }
.lead { font-size: 1.1rem; max-width: 760px; color: var(--muted); margin-bottom: 28px; }

/* Sections */
section { padding: 64px 0; scroll-margin-top: 60px; }
section.alt { background: var(--light); }
h2 { font-size: 1.9rem; margin-top: 0; color: var(--navy); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.card h3 { margin-top: 0; color: var(--navy); }
.step { display: inline-block; width: 36px; height: 36px; line-height: 36px; text-align: center; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 10px; }

.warning { background: #fff8e6; border-left: 4px solid #e0a100; padding: 20px 24px; border-radius: 4px; }
.warning h3 { margin-top: 0; }

/* FAQ */
.faq { max-width: 760px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 16px 20px; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; }
.faq-q::after { content: "+"; font-size: 1.2rem; }
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { display: none; padding: 0 20px 4px; color: var(--muted); }
.faq-item.open .faq-a { display: block; }

/* Form */
.contact-form { max-width: 640px; }
.contact-form label { display: block; font-weight: 600; margin: 14px 0 6px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.contact-form textarea { min-height: 140px; }
.contact-form .invalid { border-color: #d64545; }
.contact-form .btn { margin-top: 20px; }
.small { color: var(--muted); font-size: 0.9rem; }
.notice { padding: 14px 18px; border-radius: 6px; margin-top: 20px; }
.notice.success { background: #e6f6ec; border: 1px solid #9fd8b2; }
.notice.error { background: #fdecec; border: 1px solid #f2a7a7; }
[hidden] { display: none !important; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c6d8; padding: 32px 0; font-size: 0.9rem; }

/* Mobile */
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 220px; order: -1; }
  .split { grid-template-columns: 1fr; gap: 0; }
  .photo-wide img { aspect-ratio: 4 / 3; }
  .site-header .container { position: relative; }
  .site-header { position: relative; }
}
