:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f8f4;
  color: #17211d;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 5vw, 56px);
  background: rgba(247, 248, 244, .94);
  border-bottom: 1px solid #dfe4d9;
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand strong { font-size: 15px; line-height: 1.2; white-space: normal; }
.mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), #d58a3a); box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); flex: 0 0 auto; }
select { border: 1px solid #cfd8ce; background: #fff; color: #17211d; border-radius: 6px; padding: 8px 32px 8px 10px; font-size: 14px; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero { min-height: 72vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 430px); gap: clamp(28px, 6vw, 84px); align-items: center; padding: clamp(54px, 8vw, 96px) 0 40px; }
.hero-copy h1 { margin: 0; font-size: clamp(38px, 6vw, 78px); line-height: .95; letter-spacing: 0; max-width: 860px; }
.hero-copy p { color: #53615b; font-size: clamp(17px, 2vw, 22px); line-height: 1.55; max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 7px; text-decoration: none; font-weight: 700; font-size: 14px; border: 1px solid #cfd8ce; }
.button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button.secondary { background: #fff; color: #17211d; }
.hero-panel { background: #fff; border: 1px solid #dfe4d9; border-radius: 8px; padding: 12px; box-shadow: 0 18px 48px rgba(29, 41, 36, .10); }
.hero-panel svg { display: block; width: 100%; height: auto; }
.calculator-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr) 320px; gap: 18px; align-items: start; padding: 30px 0; }
.panel, .text-block, .answer-strip { background: #fff; border: 1px solid #dfe4d9; border-radius: 8px; box-shadow: 0 10px 28px rgba(29, 41, 36, .06); }
.panel { padding: 18px; }
.section-title { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 16px; }
.section-title span { font-weight: 800; font-size: 18px; }
.section-title small { color: #66736e; line-height: 1.4; text-align: end; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: #3c4944; }
.input-shell { display: flex; align-items: center; gap: 8px; min-height: 42px; border: 1px solid #cfd8ce; border-radius: 7px; padding: 0 10px; background: #fbfcfa; }
.input-shell b { color: #6b7772; font-size: 13px; }
input { width: 100%; border: 0; outline: 0; background: transparent; color: #17211d; font: inherit; font-size: 15px; font-weight: 700; min-width: 0; }
.results { display: grid; gap: 10px; }
.result-card { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid #edf0e9; padding: 10px 0; }
.result-card:last-child { border-bottom: 0; }
.result-card span { color: #5d6963; font-size: 13px; }
.result-card strong { font-size: clamp(18px, 3vw, 26px); text-align: end; overflow-wrap: anywhere; }
.answer-strip { margin: 18px 0 28px; padding: 24px; border-left: 6px solid var(--accent); }
.answer-strip h2, .text-block h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); }
.answer-strip p, .text-block p { color: #53615b; line-height: 1.65; margin: 0 0 12px; }
.affiliate-strip { margin: 0 0 28px; }
.affiliate-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr); gap: 18px; align-items: center; background: #fff; border: 1px solid #dfe4d9; border-radius: 8px; box-shadow: 0 10px 28px rgba(29, 41, 36, .06); padding: 22px; }
.affiliate-copy h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 30px); }
.affiliate-copy p { margin: 0; color: #53615b; line-height: 1.65; }
.affiliate-eyebrow { margin: 0 0 8px !important; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.affiliate-link { display: grid; gap: 8px; padding: 18px; border-radius: 8px; background: linear-gradient(135deg, rgba(22,124,102,.08), rgba(213,138,58,.12)); border: 1px solid rgba(22,124,102,.18); text-decoration: none; }
.affiliate-link-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #3f514b; }
.affiliate-link strong { font-size: 20px; line-height: 1.25; }
.affiliate-link span:last-child { color: #53615b; font-size: 14px; }
.affiliate-note { grid-column: 1 / -1; margin: 0; color: #6a746f; font-size: 12px; line-height: 1.5; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 0 0 64px; }
.text-block { padding: 24px; }
details { border-top: 1px solid #e5eae1; padding: 14px 0; }
summary { cursor: pointer; font-weight: 800; }
.ad-slot { display: grid; place-items: center; overflow: hidden; border: 1px dashed #b8c2ba; border-radius: 8px; background: #f1f4ed; color: #6a746f; min-height: 90px; text-align: center; }
.ad-slot span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.ad-mobile { display: none; width: min(100%, 340px); margin: 0 auto 18px; min-height: 70px; }
.ad-rectangle { min-height: 290px; }
footer { border-top: 1px solid #dfe4d9; padding: 24px clamp(16px, 5vw, 56px); color: #5f6d67; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer p { margin: 0; }
@media (max-width: 980px) {
  .hero, .calculator-grid, .content-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .ad-rectangle { width: min(100%, 340px); margin: 0 auto; }
  .affiliate-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  main { width: min(100% - 24px, 1180px); }
  .site-header { align-items: start; padding: 12px; }
  .fields { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(34px, 14vw, 48px); }
  .ad-mobile { display: grid; }
  .section-title { display: grid; }
  .section-title small { text-align: start; }
}
