.heat-page {
  --heat-blue-950: #061729;
  --heat-blue-900: #0a2944;
  --heat-blue-800: #103d63;
  --heat-blue-700: #17608e;
  --heat-blue-100: #eaf4fa;
  --heat-text: #15212c;
  --heat-muted: #607080;
  --heat-line: #d5e2ec;
  --heat-card: #fff;
  --heat-soft: #f5f8fb;
  --heat-accent: #11c5ef;
  --heat-orange: #e77a1e;
  --heat-shadow: 0 20px 55px rgba(5,28,52,.11);
}

.heat-tool,
.heat-tool * { box-sizing: border-box; }
.heat-tool button,
.heat-tool input,
.heat-tool select { font: inherit; }

.heat-tool {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto 56px;
  padding-top: 102px;
  color: var(--heat-text);
}

.heat-tool h1,
.heat-tool h2,
.heat-tool h3,
.heat-tool p { margin-top: 0; }

.heat-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px,5vw,56px);
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%,rgba(17,197,239,.24),transparent 25rem),
    linear-gradient(135deg,#03070d 0%,#08131f 56%,#082b45 100%);
  box-shadow: var(--heat-shadow);
}

.heat-hero::after {
  content: "";
  position: absolute;
  right: -115px;
  top: -130px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: linear-gradient(145deg,rgba(17,197,239,.24),rgba(0,119,200,.04));
  pointer-events: none;
}

.heat-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(310px,.65fr);
  gap: clamp(28px,5vw,60px);
  align-items: center;
}

.heat-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.heat-brand img { display: block; width: min(360px,68vw); height: auto; }
.heat-brand > span { color: rgba(255,255,255,.72); text-align: right; font-size: 12px; font-weight: 800; line-height: 1.55; letter-spacing: .08em; text-transform: uppercase; }
.heat-eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.1); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.heat-eyebrow > span { width: 8px; height: 8px; border-radius: 50%; background: var(--heat-accent); box-shadow: 0 0 0 5px rgba(17,197,239,.16); }
.heat-hero h1 { max-width: 820px; margin: 18px 0 16px; color: #fff; font-size: clamp(34px,5vw,62px); line-height: 1.03; letter-spacing: -.045em; }
.heat-hero-grid > div > p { max-width: 790px; margin: 0; color: rgba(255,255,255,.84); font-size: clamp(16px,2vw,19px); line-height: 1.55; }
.heat-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.heat-meta span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: rgba(3,12,20,.45); font-size: 12px; }

.heat-hero-formula { padding: 24px; border: 1px solid rgba(255,255,255,.17); border-radius: 20px; background: rgba(255,255,255,.09); backdrop-filter: blur(12px); }
.heat-hero-formula > span { display: block; color: rgba(255,255,255,.68); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.heat-hero-formula strong { display: block; margin-top: 12px; color: #fff; font-size: clamp(25px,3.3vw,40px); line-height: 1.15; white-space: nowrap; }
.heat-hero-formula p { margin: 15px 0 0; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.5; }

.heat-notice {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid #b9dceb;
  border-left: 5px solid var(--heat-accent);
  border-radius: 16px;
  background: #f1fafd;
  box-shadow: 0 7px 20px rgba(5,82,120,.06);
}

.heat-notice > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #fff; background: var(--heat-blue-700); font-weight: 900; }
.heat-notice strong { display: block; margin-bottom: 4px; }
.heat-notice p { margin: 0; color: #405769; line-height: 1.55; }

.heat-content-grid {
  display: grid;
  grid-template-columns: minmax(0,1.45fr) minmax(300px,.55fr);
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

.heat-panel {
  min-width: 0;
  border: 1px solid var(--heat-line);
  border-radius: 20px;
  background: var(--heat-card);
  box-shadow: var(--heat-shadow);
}

.heat-calculator { padding: clamp(20px,4vw,32px); }
.heat-section-heading { margin-bottom: 18px; }
.heat-section-heading span,
.heat-panel-kicker { display: block; margin: 0 0 4px; color: var(--heat-blue-700); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.heat-section-heading h2,
.heat-side-panel h2,
.heat-formulas h2,
.heat-delta-section h2 { margin: 0; font-size: clamp(23px,3vw,31px); letter-spacing: -.03em; }
.heat-section-heading p { margin: 5px 0 0; color: var(--heat-muted); font-size: 13px; }
.heat-input-heading { margin-top: 26px; }

.heat-target-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.heat-target-button { min-width: 0; padding: 13px 8px; border: 1px solid var(--heat-line); border-radius: 13px; color: var(--heat-text); background: #fff; cursor: pointer; text-align: center; transition: .16s; }
.heat-target-button:hover { transform: translateY(-1px); border-color: var(--heat-blue-700); }
.heat-target-button.active { border-color: var(--heat-blue-700); color: var(--heat-blue-900); background: var(--heat-blue-100); box-shadow: inset 0 0 0 1px rgba(23,96,142,.2); }
.heat-target-symbol,
.heat-target-label { display: block; }
.heat-target-symbol { font-size: 21px; font-weight: 900; }
.heat-target-label { margin-top: 2px; color: var(--heat-muted); font-size: 10px; font-weight: 800; overflow-wrap: anywhere; }
.heat-target-button.active .heat-target-label { color: var(--heat-blue-700); }

.heat-active-formula { display: flex; align-items: center; justify-content: center; min-height: 88px; margin-top: 14px; padding: 16px; border: 1px solid #c9deea; border-radius: 14px; color: var(--heat-blue-900); background: linear-gradient(180deg,#f5fbff,#edf7fc); font-size: clamp(23px,4vw,36px); font-weight: 850; text-align: center; overflow-wrap: anywhere; }
.heat-input-grid { display: grid; gap: 12px; }
.heat-field-card { padding: 15px; border: 1px solid var(--heat-line); border-radius: 14px; background: #fbfcfd; }
.heat-field-card.is-hidden { display: none; }
.heat-field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.heat-field-top label { font-weight: 800; }
.heat-field-top span { color: var(--heat-muted); font-size: 11px; text-align: right; }
.heat-field-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(135px,.42fr); gap: 9px; }
.heat-field-row input,
.heat-field-row select,
.heat-preset-row select,
.heat-result-unit select,
.heat-delta-helper input { width: 100%; min-height: 46px; padding: 9px 11px; border: 1px solid #bdcad3; border-radius: 10px; color: var(--heat-text); background: #fff; outline: 0; }
.heat-field-row input:focus,
.heat-field-row select:focus,
.heat-preset-row select:focus,
.heat-result-unit select:focus,
.heat-delta-helper input:focus { border-color: var(--heat-blue-700); box-shadow: 0 0 0 3px rgba(23,96,142,.12); }
.heat-preset-row { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; align-items: center; margin-top: 9px; }
.heat-preset-row > span { color: var(--heat-muted); font-size: 11px; font-weight: 800; }

.heat-result-card { margin-top: 20px; padding: clamp(20px,4vw,27px); border-radius: 15px; color: #fff; background: linear-gradient(135deg,#0d5c87,#073b5a); }
.heat-result-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.heat-result-top > div:first-child > span { display: block; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.heat-result-top strong { display: block; margin-top: 3px; font-size: clamp(32px,7vw,56px); line-height: 1.08; letter-spacing: -.04em; overflow-wrap: anywhere; }
.heat-result-unit { min-width: 140px; }
.heat-result-unit select { border-color: rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.11); }
.heat-result-unit option { color: var(--heat-text); background: #fff; }
.heat-calculation-path { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.82); font-size: 12px; overflow-wrap: anywhere; }
.heat-error { display: none; margin-top: 12px; padding: 10px 12px; border-radius: 9px; color: #9f251b; background: #fff1f0; font-size: 12px; font-weight: 700; }
.heat-error.visible { display: block; }
.heat-button-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.heat-action { min-height: 44px; padding: 9px 15px; border: 0; border-radius: 10px; cursor: pointer; font-weight: 800; }
.heat-action.primary { color: #fff; background: var(--heat-blue-700); }
.heat-action.primary:hover { background: var(--heat-blue-800); }
.heat-action.secondary { color: var(--heat-text); background: #edf1f4; }

.heat-side-panel { position: relative; padding: 23px; }
.heat-variable-list { display: grid; gap: 0; margin-top: 18px; }
.heat-variable { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--heat-line); }
.heat-variable:first-child { padding-top: 0; }
.heat-variable:last-child { padding-bottom: 0; border-bottom: 0; }
.heat-variable > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; color: var(--heat-blue-900); background: var(--heat-blue-100); font-size: 17px; font-weight: 900; }
.heat-variable strong { display: block; font-size: 13px; }
.heat-variable p { margin: 2px 0 0; color: var(--heat-muted); font-size: 11px; line-height: 1.5; }
.heat-tip { margin-top: 20px; padding: 14px; border-left: 4px solid var(--heat-orange); border-radius: 0 10px 10px 0; color: #6f3a00; background: #fff7ed; font-size: 12px; }
.heat-tip strong,
.heat-tip span { display: block; }
.heat-tip span { margin-top: 3px; }

.heat-formulas,
.heat-delta-section { margin-top: 22px; padding: clamp(20px,4vw,28px); }
.heat-table-wrap { margin-top: 17px; overflow-x: auto; border: 1px solid var(--heat-line); border-radius: 14px; }
.heat-table-wrap table { width: 100%; min-width: 680px; border-collapse: collapse; background: #fff; }
.heat-table-wrap th,
.heat-table-wrap td { padding: 13px 14px; border-bottom: 1px solid var(--heat-line); text-align: left; vertical-align: top; font-size: 13px; }
.heat-table-wrap th { color: #eaf5fb; background: #0b263b; font-size: 12px; }
.heat-table-wrap tbody tr:last-child td { border-bottom: 0; }
.heat-table-wrap tbody tr:hover { background: #f7fafc; }
.heat-table-wrap td:nth-child(2) { color: var(--heat-blue-900); font-weight: 800; white-space: nowrap; }

.heat-delta-section > div:first-child > p:last-child { margin: 7px 0 0; color: var(--heat-muted); }
.heat-delta-helper { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)) auto; gap: 11px; align-items: end; margin-top: 18px; padding: 17px; border: 1px solid var(--heat-line); border-radius: 14px; background: #fbfcfd; }
.heat-delta-helper label > span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; }
.heat-delta-helper output { display: flex; min-width: 145px; min-height: 46px; align-items: center; justify-content: center; padding: 9px 13px; border-radius: 10px; color: var(--heat-blue-900); background: var(--heat-blue-100); font-weight: 900; white-space: nowrap; }
.heat-source-note { margin-top: 15px; padding: 13px 14px; border-radius: 11px; color: var(--heat-muted); background: var(--heat-soft); font-size: 11px; line-height: 1.55; }

@media (max-width: 1040px) {
  .heat-hero-grid,
  .heat-content-grid { grid-template-columns: 1fr; }
  .heat-hero-formula { max-width: 650px; }
}

@media (max-width: 780px) {
  .heat-tool { width: calc(100% - 18px); padding-top: 82px; }
  .heat-hero { padding: 25px 20px 34px; border-radius: 18px; }
  .heat-brand { align-items: flex-start; flex-direction: column; }
  .heat-brand > span { text-align: left; }
  .heat-target-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .heat-field-row,
  .heat-preset-row,
  .heat-delta-helper { grid-template-columns: 1fr; }
  .heat-result-top { flex-direction: column; }
  .heat-result-unit { width: 100%; min-width: 0; }
  .heat-delta-helper output { min-width: 0; }
  .heat-table-wrap table { min-width: 620px; }
}

@media (max-width: 520px) {
  .heat-notice { grid-template-columns: 1fr; }
  .heat-brand > span { display: none; }
  .heat-hero-formula strong { white-space: normal; }
  .heat-calculator,
  .heat-side-panel,
  .heat-formulas,
  .heat-delta-section { padding: 16px; }
  .heat-field-top { align-items: flex-start; flex-direction: column; gap: 3px; }
  .heat-field-top span { text-align: left; }
  .heat-button-row { display: grid; grid-template-columns: 1fr; }
  .heat-action { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .heat-tool * { transition: none !important; }
}

@media print {
  .site-nav,
  .scroll-progress,
  .cookie-banner,
  body > footer,
  .heat-notice,
  .heat-button-row { display: none !important; }
  .heat-page { background: #fff !important; }
  .heat-tool { width: 100%; margin: 0; padding: 0; }
  .heat-hero { padding: 0 0 18px; color: #000; background: #fff; box-shadow: none; }
  .heat-brand,
  .heat-hero-formula { display: none; }
  .heat-hero h1,
  .heat-hero p { color: #000; }
  .heat-panel { box-shadow: none; break-inside: avoid; }
}
