:root {
  --bg: #ffffff;
  --surface: #f6f8fb;
  --paper: #ffffff;
  --ink: #172033;
  --muted: #5a6475;
  --line: #cbd5e1;
  --blue: #2454a6;
  --cyan: #0089a7;
  --green: #4e8d42;
  --orange: #c96d1d;
  --red: #b72525;
  --shadow: 0 18px 50px rgba(23, 32, 51, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.55; }
body.dark { --bg: #111827; --surface: #182235; --paper: #1f2937; --ink: #f8fafc; --muted: #cbd5e1; --line: #475569; --shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 20; }
.skip-link:focus { left: 8px; }
.material-symbols-outlined { font-size: 1.18em; vertical-align: -0.18em; }
.nav { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px clamp(18px, 4vw, 52px); background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
body.dark .nav { background: rgba(17, 24, 39, .92); }
.brand, .nav-links a, .actions a { color: inherit; text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; min-width: 220px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.nav-links a { display: inline-flex; align-items: center; gap: 5px; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.nav-links a.active, .nav-links a:hover { color: var(--blue); background: rgba(36, 84, 166, .10); }
.icon-button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 8px; width: 42px; height: 42px; display: inline-grid; place-items: center; cursor: pointer; }
.hero { max-width: 1280px; margin: 0 auto; padding: clamp(34px, 6vw, 72px) clamp(18px, 4vw, 52px) 24px; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(340px, .96fr); gap: clamp(24px, 5vw, 62px); align-items: center; }
.eyebrow { margin: 0 0 10px; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; }
h1 { margin: 0; font-size: clamp(38px, 6vw, 76px); line-height: 1.02; letter-spacing: 0; }
.subtitle { color: var(--muted); font-size: clamp(18px, 2vw, 23px); max-width: 820px; margin: 18px 0 0; }
.badges, .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge { border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 8px 11px; border-radius: 8px; font-size: 14px; }
.actions a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 13px; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 700; }
.hero-figure { margin: 0; }
.hero-figure img, .carousel img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.figure-card { margin: 0; display: grid; gap: 9px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 1px 0 rgba(15, 23, 42, .03); }
.figure-card figcaption { min-height: 34px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 14px; line-height: 1.25; text-align: center; }
.figure-thumb { position: relative; width: 100%; border: 0; padding: 0; margin: 0; background: transparent; display: block; cursor: zoom-in; text-align: inherit; }
.figure-thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: zoom-in; transition: transform .18s ease, box-shadow .18s ease; }
.figure-thumb::after { content: "zoom_in"; font-family: "Material Symbols Outlined"; position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; color: #fff; background: rgba(15, 23, 42, .72); opacity: .9; pointer-events: none; }
.figure-thumb:hover img, .figure-thumb:focus-visible img { transform: translateY(-2px); box-shadow: var(--shadow); }
main { max-width: 1180px; margin: 0 auto; padding: 10px clamp(18px, 4vw, 52px) 72px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 10px 0 26px; }
.metric { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 16px; }
.metric strong { display: block; color: var(--blue); font-size: 34px; line-height: 1.05; }
.metric span, .metric small { color: var(--muted); }
.section { padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.section h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: clamp(26px, 3vw, 38px); letter-spacing: 0; }
.section p { color: var(--muted); margin: 0 0 16px; }
.subsection { margin-top: 22px; padding-left: 18px; border-left: 4px solid var(--line); }
.subsection h3 { margin: 0 0 8px; font-size: 21px; }
.check-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 7px; }
.check-list li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.check-list li::before { content: "check_circle"; font-family: "Material Symbols Outlined"; color: var(--green); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 20px; margin: 14px auto 0; align-items: start; max-width: 1120px; }
.component-title { margin: 22px 0 10px; font-size: 16px; color: var(--ink); }
.carousel { margin-top: 14px; }
.carousel-window { overflow: hidden; border-radius: 8px; }
.carousel-track { display: flex; transition: transform .35s ease; }
.carousel-slide { flex: 0 0 100%; }
.carousel-controls { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 14px; }
.track-card { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 18px; }
.track-card .material-symbols-outlined { color: var(--blue); font-size: 32px; }
.track-card h3 { margin: 10px 0 8px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--surface); }
pre { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; overflow-x: auto; }
.scroll-top { position: fixed; right: 18px; bottom: 18px; display: none; }
.lightbox { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 56px 18px 24px; background: rgba(15, 23, 42, .82); backdrop-filter: blur(8px); }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(96vw, 1280px); max-height: 88vh; width: auto; height: auto; object-fit: contain; background: #fff; border-radius: 8px; box-shadow: 0 24px 70px rgba(0, 0, 0, .42); }
.lightbox-close { position: fixed; top: 18px; right: 18px; background: #fff; color: #172033; }
footer { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 28px; border-top: 1px solid var(--line); color: var(--muted); background: var(--surface); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .brand { min-width: 0; }
  .nav { align-items: flex-start; }
}
