:root {
  --navy: #102A43;
  --amber: #F59E0B;
  --red: #DC4C3F;
  --blue: #2F80ED;
  --warm-bg: #FFF8ED;
  --page-bg: #F7F9FC;
  --text: #18212B;
  --muted: #5B6775;
  --border: #DCE3EA;
  --white: #FFFFFF;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
img { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 32px), var(--max-width)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--border); background: rgba(255,255,255,.97); position: sticky; top: 0; z-index: 20; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--navy); text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.brand-logo { display: inline-flex; align-items: center; flex: 0 1 250px; min-width: 0; line-height: 0; }
.brand-logo img { display: block; width: min(100%, 240px); height: auto; max-height: 52px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 20px; }
.main-nav a { text-decoration: none; font-weight: 650; }
.hero { background: linear-gradient(135deg, var(--warm-bg), #fff 52%, #edf5ff); padding: 76px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.eyebrow { color: #8A5100; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 5vw, 4.7rem); margin: .2em 0 .3em; letter-spacing: -.04em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-top: 0; }
p.lead { font-size: 1.2rem; color: #344454; max-width: 760px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border-radius: 9px; background: var(--navy); color: white; text-decoration: none; font-weight: 750; border: 0; cursor: pointer; }
.button:hover { color: white; background: #173d61; }
.button:disabled { background: #AAB4BE; color: #F7F9FC; cursor: not-allowed; opacity: .8; }
.button.secondary { background: white; color: var(--navy); border: 1px solid var(--border); }
.section { padding: 68px 0; }
.section.alt { background: var(--page-bg); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.card { border: 1px solid var(--border); border-radius: 14px; padding: 22px; background: white; box-shadow: 0 8px 26px rgba(16,42,67,.04); }
.card h3 { margin-top: 0; }
.card p { color: #465666; }
.hero-tool { border: 1px solid var(--border); border-radius: 18px; background: white; padding: 24px; box-shadow: 0 18px 45px rgba(16,42,67,.09); }
.thermal-bar { height: 34px; border-radius: 999px; background: linear-gradient(90deg, var(--red), var(--amber), #f3f7fb, var(--blue)); margin: 18px 0; }
.metric { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.metric:last-child { border-bottom: 0; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr); gap: 28px; align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #B8C3CF; border-radius: 8px; font: inherit; color: var(--text); background: white; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(47,128,237,.3); outline-offset: 2px; }
.result-panel { background: var(--navy); color: white; border-radius: 14px; padding: 22px; }
.result-panel h2, .result-panel h3 { color: white; }
.result-value { font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.notice { padding: 16px 18px; border-left: 4px solid var(--amber); background: var(--warm-bg); border-radius: 4px 9px 9px 4px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); }
th { color: var(--navy); background: #F2F6FA; }
.site-footer { background: #0B1F33; color: #DDE8F2; padding: 44px 0; margin-top: 60px; }
.site-footer a { color: white; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.breadcrumbs { font-size: .92rem; color: var(--muted); margin: 24px 0; }
.page-header { padding: 42px 0 20px; }
.content { max-width: 820px; }
.content h2 { margin-top: 2em; }
.content h3 { margin-top: 1.6em; }
small.help { display: block; color: var(--muted); margin-top: 5px; }
@media (max-width: 900px) {
  .hero-grid, .tool-layout { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .header-inner { min-height: 66px; padding: 8px 0; }
  .brand-logo { flex-basis: 220px; }
  .brand-logo img { width: min(100%, 215px); max-height: 46px; }
}
@media (max-width: 640px) {
  .grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .brand-logo { flex-basis: min(190px, calc(100vw - 130px)); }
  .brand-logo img { width: 100%; max-height: 42px; }
}
