:root {
  --bg: #fff7fb;
  --paper: #fffdf8;
  --cream: #fff0b8;
  --ink: #372733;
  --muted: #78626f;
  --line: #372733;
  --violet: #9a80ff;
  --lavender: #eadfff;
  --mint: #4edfa6;
  --sun: #ffd45f;
  --peach: #ff9f82;
  --sky: #79dfff;
  --pink: #ff8fca;
  --lime: #c8ef73;
  --soft: #f7dfe9;
  --wash: #fff3e5;
  --paper-tint: #f5edff;
  --danger: #a52f45;
  --success-ink: #0f5d42;
  --shadow: 6px 6px 0 rgba(55, 39, 51, .11);
  --shadow-soft: 0 24px 50px rgba(95, 62, 91, .13);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bounce: cubic-bezier(.2, 1.65, .47, .76);
  --snap: cubic-bezier(.63, 0, .29, .98);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .2;
  background: linear-gradient(135deg, rgba(255, 212, 95, .18) 0 12%, transparent 12% 100%), linear-gradient(45deg, transparent 0 48%, rgba(154, 128, 255, .14) 48% 52%, transparent 52% 100%), radial-gradient(var(--line) .8px, transparent 1px);
  background-size: 220px 220px, 54px 54px, 24px 24px;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .42;
  background: repeating-linear-gradient(90deg, transparent 0 70px, rgba(255, 143, 202, .07) 70px 72px), repeating-linear-gradient(0deg, transparent 0 80px, rgba(78, 223, 166, .07) 80px 82px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 78%);
}
a { color: inherit; }
button, input, select { font: inherit; }
button, a, summary, input, select { touch-action: manipulation; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.skip-link {
  position: fixed;
  left: 16px;
  top: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(55, 39, 51, .1);
  background: rgba(255, 253, 248, .78);
  backdrop-filter: blur(18px);
}
.site-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand, .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}
.brand { min-width: 0; transition: transform .25s var(--bounce); }
.brand:hover { transform: translateY(-2px) rotate(-1deg); }
.brand-mark, .footer-logo img {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(3px 3px 0 rgba(55, 39, 51, .16));
}
.brand-mark { width: 46px; height: 46px; }
.brand-copy { min-width: 0; line-height: 1.08; }
.brand-copy strong { display: block; font-size: 16px; font-weight: 950; white-space: nowrap; }
.brand-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(55, 39, 51, .1);
  border-radius: 999px;
  background: rgba(255, 253, 248, .55);
}
.desktop-nav a, .mobile-menu summary, .mobile-menu nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.desktop-nav a:hover { transform: translateY(-1px); border-color: rgba(55, 39, 51, .14); background: var(--cream); }
.desktop-nav a:nth-child(2):hover { background: var(--lavender); }
.desktop-nav a:nth-child(3):hover { background: rgba(78, 223, 166, .24); }
.desktop-nav a:nth-child(4):hover { background: rgba(255, 143, 202, .24); }
.language-switcher { position: relative; flex: 0 0 auto; }
.language-switcher summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid rgba(55, 39, 51, .14);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  font-size: 12px;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary svg { width: 16px; height: 16px; flex: 0 0 auto; }
.language-switcher summary .language-chevron { width: 13px; height: 13px; }
.language-switcher[open] summary { background: var(--sun); }
.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 35;
  min-width: 142px;
  display: grid;
  gap: 3px;
  padding: 7px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.language-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.language-menu a:hover, .language-menu a[aria-current="page"] { background: var(--wash); }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { gap: 8px; border: 2px solid var(--line); background: var(--paper); box-shadow: 3px 3px 0 rgba(55, 39, 51, .12); list-style: none; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary svg { width: 18px; height: 18px; }
.mobile-menu[open] summary { background: var(--sun); }
.mobile-menu nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 210px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.mobile-menu nav a { justify-content: flex-start; border-radius: 11px; }
.mobile-menu nav a:hover { background: var(--wash); }

.hero-section { padding: 46px 0 18px; text-align: center; }
.hero-copy { max-width: 920px; margin: 0 auto; }
.eyebrow, .section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(55, 39, 51, .12);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before, .section-label::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 14px 0 0 var(--sun), 28px 0 0 var(--violet);
  margin-right: 27px;
}
.hero-section h1 {
  max-width: 900px;
  margin: 18px auto 14px;
  color: var(--ink);
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 950;
  letter-spacing: -.055em;
  line-height: .92;
  text-wrap: balance;
  text-shadow: 4px 4px 0 #fff, 8px 8px 0 rgba(55, 39, 51, .1);
}
.hero-lead {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.62;
}
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.trust-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1.5px solid rgba(55, 39, 51, .22);
  border-radius: 999px;
  background: rgba(255, 253, 248, .72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.trust-chip svg { width: 15px; height: 15px; fill: none; stroke: var(--success-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.calculator-section { width: min(1000px, calc(100% - 32px)); padding: 18px 0 12px; scroll-margin-top: 96px; }
.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.calculator-form-panel { padding: 24px; }
.section-heading { max-width: 760px; margin-bottom: 22px; }
.section-heading.compact { margin-bottom: 18px; }
.section-heading h2 { margin: 13px 0 9px; font-size: clamp(1.85rem, 4vw, 3rem); font-weight: 950; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.7; }
.unit-fieldset { margin: 0 0 16px; padding: 0; border: 0; }
.unit-fieldset legend, .field label { color: var(--ink); font-size: 13px; font-weight: 950; }
.unit-fieldset legend { margin-bottom: 8px; }
.unit-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; max-width: 280px; }
.unit-switch label { position: relative; cursor: pointer; }
.unit-switch input { position: absolute; opacity: 0; pointer-events: none; }
.unit-switch span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border: 2px solid rgba(55, 39, 51, .2);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.unit-switch input:checked + span { border-color: var(--line); background: var(--sun); color: var(--ink); box-shadow: 2px 2px 0 var(--line); }
.unit-switch input:focus-visible + span, .preset-button:focus-visible, .button:focus-visible, .result-action:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 13px; }
.field { min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.required-mark { color: var(--danger); }
.optional-mark { padding: 2px 6px; border-radius: 999px; background: var(--lavender); color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.input-with-unit { position: relative; }
.field input, .field select {
  width: 100%;
  min-height: 48px;
  border: 2px solid rgba(55, 39, 51, .32);
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.field input { padding: 10px 48px 10px 13px; }
.field select { padding: 10px 40px 10px 13px; }
.field input:hover, .field select:hover { border-color: var(--line); }
.field input:focus, .field select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(154, 128, 255, .16); }
.input-unit { position: absolute; top: 50%; right: 13px; transform: translateY(-50%); color: var(--muted); font-family: var(--mono); font-size: 12px; font-weight: 950; pointer-events: none; }
.field-help { display: block; min-height: 20px; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.field-error { display: block; min-height: 18px; margin-top: 3px; color: var(--danger); font-size: 12px; font-weight: 800; line-height: 1.35; }
.field.has-error input, .field.has-error select { border-color: var(--danger); background: #fff4f5; }
.preset-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 17px 0 15px; }
.preset-row > span { margin-right: 2px; color: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 950; text-transform: uppercase; }
.preset-button { min-height: 35px; padding: 6px 11px; border: 1.5px solid rgba(55, 39, 51, .25); border-radius: 999px; background: var(--paper); color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 900; transition: transform .18s var(--bounce), background-color .18s ease, border-color .18s ease; }
.preset-button:hover, .preset-button.is-active { transform: translateY(-2px); border-color: var(--line); background: var(--cream); color: var(--ink); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button, .result-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 2px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  font-weight: 950;
  transition: transform .2s var(--bounce), box-shadow .2s var(--bounce), background-color .18s ease, opacity .18s ease;
}
.button { padding: 11px 17px; }
.button:hover, .result-action:hover { transform: translate(-2px, -3px); box-shadow: 5px 6px 0 rgba(55, 39, 51, .13); }
.button:active, .result-action:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(55, 39, 51, .12); }
.button:disabled { cursor: wait; opacity: .65; transform: none; box-shadow: none; }
.button svg { width: 18px; height: 18px; flex: 0 0 auto; }
.button-primary { background: var(--mint); color: #10281c; }
.button-secondary { background: var(--paper); color: var(--ink); }
.form-status { min-height: 20px; margin: 10px 0 0; color: var(--muted); font-size: 12px; font-weight: 750; }
.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--success-ink); }

.result-panel { padding: 24px; color: #fff8e8; background: #2a1826; position: relative; overflow: hidden; }
.result-panel::before { content: ""; position: absolute; width: 230px; height: 230px; right: -92px; top: -80px; border: 2px solid rgba(255, 212, 95, .34); border-radius: 50%; box-shadow: 0 0 0 18px rgba(255, 143, 202, .05), 0 0 0 38px rgba(78, 223, 166, .05); pointer-events: none; }
.result-panel::after { content: ""; position: absolute; left: -40px; bottom: -56px; width: 160px; height: 160px; border: 2px dashed rgba(154, 128, 255, .4); border-radius: 42% 58% 58% 42%; transform: rotate(24deg); pointer-events: none; }
.result-panel > * { position: relative; z-index: 1; }
.result-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-label-light { border-color: #fff0b8; background: rgba(255, 240, 184, .12); color: #fff0b8; box-shadow: 3px 3px 0 rgba(255, 212, 95, .22); }
.section-label-light::before { border-color: #fff0b8; }
.result-badge { padding: 5px 9px; border: 1px solid rgba(255, 240, 184, .45); border-radius: 999px; color: #fff0b8; font-family: var(--mono); font-size: 10px; font-weight: 950; text-transform: uppercase; }
.result-panel h2 { margin: 28px 0 8px; font-size: clamp(1.75rem, 4vw, 2.7rem); font-weight: 950; letter-spacing: -.04em; line-height: 1.02; }
.result-intro, .result-note { color: rgba(255, 248, 232, .73); line-height: 1.6; }
.result-intro { min-height: 52px; margin: 0; font-size: 13px; }
.calorie-total { display: flex; align-items: baseline; gap: 9px; margin-top: 20px; }
.calorie-number { color: var(--sun); font-family: var(--mono); font-size: clamp(3.7rem, 8vw, 5.7rem); font-weight: 950; letter-spacing: -.08em; line-height: .9; }
.calorie-unit { color: #fff8e8; font-size: 17px; font-weight: 900; }
.intensity-label { margin: 13px 0 7px; color: #fff0b8; font-size: 12px; font-weight: 900; }
.intensity-track { height: 12px; overflow: hidden; border: 1px solid rgba(255, 248, 232, .42); border-radius: 999px; background: rgba(255, 248, 232, .13); }
.intensity-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--sun), var(--pink)); transition: width .35s var(--snap); }
.result-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 24px 0 0; }
.result-metrics div { padding: 12px; border: 1px solid rgba(255, 248, 232, .17); border-radius: 14px; background: rgba(255, 248, 232, .07); }
.result-metrics dt { color: rgba(255, 248, 232, .64); font-size: 11px; line-height: 1.3; }
.result-metrics dd { margin: 5px 0 0; color: #fff8e8; font-family: var(--mono); font-size: 14px; font-weight: 950; }
.result-summary { margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(255, 248, 232, .25); }
.result-summary span { color: rgba(255, 248, 232, .62); font-family: var(--mono); font-size: 10px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.result-summary p { margin: 5px 0 0; color: #fff8e8; font-size: 13px; font-weight: 800; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.result-action { padding: 8px 12px; border-color: rgba(255, 248, 232, .48); background: rgba(255, 248, 232, .1); color: #fff8e8; font-size: 12px; }
.result-action svg { width: 16px; height: 16px; }
.result-note { margin: 17px 0 0; font-size: 11px; }

.content-section { padding: 62px 0 0; scroll-margin-top: 96px; }
.content-section > .section-heading { margin-bottom: 22px; }
.content-card { border: 2px solid var(--line); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.large-card { padding: 30px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { min-height: 245px; padding: 23px; }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 18px; border: 2px solid var(--line); border-radius: 17px; box-shadow: 3px 3px 0 var(--line); }
.feature-icon svg { width: 25px; height: 25px; fill: none; stroke: var(--line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mint-icon { background: var(--mint); }
.sun-icon { background: var(--sun); }
.violet-icon { background: var(--lavender); }
.feature-card h3, .step-card h3, .privacy-grid h3 { margin: 0 0 9px; font-size: 20px; font-weight: 950; line-height: 1.1; }
.feature-card p, .step-card p, .privacy-grid p, .large-card > p, .note-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.step-card { min-height: 230px; padding: 21px; border: 2px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 4px 4px 0 rgba(55, 39, 51, .09); }
.step-number { display: inline-grid; width: 43px; height: 43px; place-items: center; margin-bottom: 19px; border: 2px solid var(--line); border-radius: 14px; background: var(--cream); box-shadow: 3px 3px 0 var(--line); color: var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 950; }
.table-scroll { overflow-x: auto; border: 2px solid var(--line); border-radius: 20px; }
.comparison-table { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--paper); font-size: 14px; }
.comparison-table caption { padding: 13px 16px; color: var(--muted); font-size: 12px; text-align: left; }
.comparison-table th, .comparison-table td { padding: 14px 15px; border-top: 1px solid rgba(55, 39, 51, .15); vertical-align: top; text-align: left; }
.comparison-table thead th { border-top: 0; border-bottom: 2px solid var(--line); background: var(--wash); color: var(--ink); font-weight: 950; }
.comparison-table tbody th { color: var(--ink); font-weight: 900; white-space: nowrap; }
.comparison-table tbody td { color: var(--muted); }
.comparison-table tbody td:nth-child(4) { color: var(--success-ink); font-family: var(--mono); font-weight: 950; white-space: nowrap; }
.table-footnote { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.method-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 17px; align-items: start; }
.formula-box { margin: 20px 0; padding: 18px; border: 2px solid var(--line); border-radius: 18px; background: #2a1826; box-shadow: 4px 4px 0 rgba(55, 39, 51, .12); color: #fff8e8; }
.formula-box span { display: block; margin-bottom: 9px; color: var(--sun); font-family: var(--mono); font-size: 11px; font-weight: 950; letter-spacing: .08em; }
.formula-box code { display: block; overflow-x: auto; color: #fff8e8; font-family: var(--mono); font-size: clamp(13px, 2vw, 16px); font-weight: 900; line-height: 1.65; white-space: nowrap; }
.formula-box p { margin: 12px 0 0; color: rgba(255, 248, 232, .72); font-size: 12px; line-height: 1.6; }
.method-notes { display: grid; gap: 12px; }
.note-card { padding: 18px; border: 2px solid var(--line); border-radius: 20px; background: var(--lavender); box-shadow: 4px 4px 0 rgba(55, 39, 51, .09); }
.note-card:nth-child(2) { background: var(--mint); }
.note-card:nth-child(3) { background: var(--sun); }
.note-card strong { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 950; }
.note-card p { color: var(--ink); font-size: 13px; }
.privacy-card { background: linear-gradient(135deg, var(--paper) 0 72%, var(--lavender) 72% 100%); }
.privacy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.privacy-grid > div { padding: 17px; border: 1.5px solid rgba(55, 39, 51, .2); border-radius: 17px; background: rgba(255, 253, 248, .68); }
.privacy-grid h3 { font-size: 17px; }
.privacy-grid p { font-size: 14px; }
.disclaimer-box { margin: 20px 0 0; padding: 14px 16px; border-left: 5px solid var(--peach); border-radius: 0 14px 14px 0; background: #fff1ee; color: var(--muted); font-size: 13px; line-height: 1.65; }
.disclaimer-box strong { color: var(--ink); }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.faq-item { border: 2px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: 3px 3px 0 rgba(55, 39, 51, .08); }
.faq-item[open] { background: var(--paper-tint); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px; color: var(--ink); cursor: pointer; font-size: 15px; font-weight: 950; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 9px; background: var(--paper); box-shadow: 2px 2px 0 rgba(55, 39, 51, .12); font-family: var(--mono); }
.faq-item[open] summary::after { content: "−"; background: var(--violet); color: #fff; }
.faq-item p { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: 14px; line-height: 1.68; }

.toast { position: fixed; left: 50%; bottom: 22px; z-index: 90; max-width: min(420px, calc(100% - 32px)); padding: 11px 15px; border: 2px solid var(--line); border-radius: 999px; background: var(--ink); color: #fff8e8; box-shadow: var(--shadow); font-size: 13px; font-weight: 850; opacity: 0; pointer-events: none; transform: translate(-50%, 130%); transition: opacity .2s ease, transform .25s var(--bounce); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.site-footer { margin-top: 76px; padding: 44px 0 28px; border-top: 4px solid var(--line); background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 34px; align-items: start; }
.footer-brand { max-width: 520px; }
.footer-logo { margin-bottom: 12px; font-size: 18px; font-weight: 950; }
.footer-logo img { width: 38px; height: 38px; }
.footer-brand p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.footer-email { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; color: var(--muted); font-family: var(--mono); font-size: 12px; font-weight: 900; text-decoration: none; }
.footer-email:hover { color: var(--ink); }
.footer-email svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(130px, auto)); gap: 24px; }
.footer-nav div { display: flex; flex-direction: column; gap: 8px; }
.footer-nav strong { margin-bottom: 3px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.footer-nav a { color: var(--muted); font-size: 13px; font-weight: 750; text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--violet); text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 28px; padding-top: 18px; border-top: 1px dashed rgba(55, 39, 51, .22); color: var(--muted); font-family: var(--mono); font-size: 11px; line-height: 1.6; }
.footer-bottom p, .footer-bottom span { margin: 0; }

@media (max-width: 980px) {
  .calculator-shell, .method-layout { grid-template-columns: minmax(0, 1fr); }
  .calculator-form-panel, .result-panel, .method-layout > * { min-width: 0; }
  .result-panel { min-height: 0; }
  .feature-grid, .privacy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card:last-child, .privacy-grid > div:last-child { grid-column: 1 / -1; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 24px, 620px); }
  .site-header-inner { min-height: 70px; gap: 8px; }
  .brand-copy small { display: none; }
  .desktop-nav { display: none; }
  .language-switcher summary { padding-inline: 8px; }
  .mobile-menu { display: block; }
  .hero-section { padding-top: 30px; }
  .hero-section h1 { font-size: clamp(2.9rem, 13vw, 4.9rem); }
  .calculator-form-panel, .result-panel, .large-card { padding: 22px 18px; }
  .calculator-shell { border-radius: 24px; }
  .result-panel::before { right: 0; width: 170px; height: 170px; }
  .result-panel::after { display: none; }
  .content-section { padding-top: 48px; }
  .site-footer { margin-top: 54px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-nav { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-copy strong { font-size: 14px; }
  .header-tools { gap: 5px; }
  .language-switcher summary span { max-width: 58px; overflow: hidden; text-overflow: ellipsis; }
  .hero-section h1 { letter-spacing: -.045em; }
  .hero-lead { font-size: 16px; }
  .trust-row { justify-content: flex-start; }
  .trust-chip { font-size: 11px; }
  .form-grid, .feature-grid, .privacy-grid, .faq-grid { grid-template-columns: 1fr; }
  .field-wide, .feature-card:last-child, .privacy-grid > div:last-child { grid-column: auto; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 0; }
  .result-metrics { grid-template-columns: 1fr 1fr; }
  .calorie-number { font-size: 4.25rem; }
  .result-topline { align-items: flex-start; }
  .section-label { max-width: 100%; font-size: 10px; }
  .form-actions .button { flex: 1 1 150px; }
  .footer-bottom { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}

@media print {
  body::before, body::after, .site-header, .hero-section, .form-actions, .preset-row, .site-footer, .trust-row, .result-actions, .toast { display: none !important; }
  .wrap { width: 100%; max-width: none; }
  .calculator-section { padding: 0; }
  .calculator-shell { display: block; border: 0; box-shadow: none; }
  .calculator-form-panel { display: none; }
  .result-panel { color: #111; background: #fff; border: 2px solid #111; }
  .result-panel::before, .result-panel::after { display: none; }
  .result-panel h2, .result-panel .calorie-unit, .result-panel .result-summary p, .result-metrics dd { color: #111; }
  .result-panel .result-intro, .result-panel .result-note, .result-metrics dt { color: #444; }
  .result-metrics div { border-color: #aaa; background: #fff; }
  .section-label-light, .result-badge { border-color: #111; color: #111; background: #fff; box-shadow: none; }
  .calorie-number { color: #111; }
}
