:root {
  --ink: #091b36;
  --muted: #627086;
  --blue: #0871e9;
  --sky: #2d9bf4;
  --line: #d9e2ec;
  --paper: #fff;
  --soft: #f4f6f8;
  --green: #58dda5;
  --gold: #ffc74e;
  --coral: #ff786c;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--soft); }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.sr-only { width: 1px; height: 1px; padding: 0; margin: -1px; position: absolute; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.page { width: min(1320px, calc(100% - 40px)); margin: 0 auto 56px; }
.breadcrumbs { min-height: 38px; display: flex; align-items: center; gap: 8px; color: #8793a4; font-size: 11px; }
.breadcrumbs a { color: #64748a; text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); }

.hero {
  min-height: 250px;
  padding: 46px 50px;
  border: 1px solid #dce5ef;
  border-radius: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: 50px;
  background:
    radial-gradient(circle at 94% 10%, rgba(45,155,244,.2), transparent 27rem),
    linear-gradient(116deg, #fff3ed, #f4f7ff 64%, #e5f3ff);
  overflow: hidden;
}
.eyebrow { margin: 0; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.hero h1 { max-width: 850px; margin: 12px 0; font-size: clamp(38px, 5vw, 64px); font-weight: 750; line-height: .98; letter-spacing: -.055em; overflow-wrap: anywhere; }
.hero > div > p:last-child { max-width: 780px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.52; }
.hero-points { margin: 0; padding: 22px; border: 1px solid rgba(9,27,54,.08); border-radius: 24px; display: grid; list-style: none; background: rgba(255,255,255,.76); box-shadow: 0 22px 55px rgba(9,27,54,.08); }
.hero-points li { min-height: 48px; padding-left: 24px; position: relative; display: flex; align-items: center; border-bottom: 1px solid rgba(9,27,54,.08); color: #233753; font-size: 14px; font-weight: 600; }
.hero-points li:last-child { border-bottom: 0; }
.hero-points li::before { width: 9px; height: 9px; position: absolute; left: 2px; border-radius: 50%; background: var(--sky); content: ""; }

.calculator-grid { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(390px, 2fr); gap: 22px; align-items: start; }
.input-card, .result-card, .scenarios, .explanation, .seo-content { min-width: 0; border-radius: 30px; }
.input-card { padding: 32px; border: 1px solid #e0e5ec; display: grid; gap: 18px; background: #eceef1; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.card-head h2 { margin: 7px 0 0; font-size: 28px; line-height: 1.05; letter-spacing: -.035em; }
.reset-button { min-height: 42px; padding: 0 16px; border: 1px solid #cad4e0; border-radius: 999px; color: #526178; background: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
.reset-button:hover { border-color: #8cc5ff; color: #0865c6; }

.settings-group { padding: 20px; border: 1px solid #d9e2ec; border-radius: 22px; background: #fff; }
.settings-head { display: flex; align-items: flex-start; gap: 12px; }
.settings-head > span { min-width: 34px; height: 24px; display: inline-grid; place-items: center; border-radius: 999px; color: #0869c7; background: #e8f3ff; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.settings-head h3 { margin: 1px 0 0; color: #0b203f; font-size: 16px; line-height: 1.2; }
.settings-head p { margin: 4px 0 0; color: #66758a; font-size: 11px; line-height: 1.4; }
.fields { margin-top: 18px; display: grid; gap: 14px; }
.fields.two-cols { grid-template-columns: repeat(2, minmax(0,1fr)); }
.fields.three-cols { grid-template-columns: repeat(3, minmax(0,1fr)); }
.field { min-width: 0; }
.field-head { min-height: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; color: #152c4a; font-size: 11px; font-weight: 700; }
.field-head span { color: #7b8899; font-size: 9px; font-weight: 500; text-align: right; }
.input-shell, .select-shell { min-height: 58px; border: 1px solid #cbd7e6; border-radius: 16px; display: flex; align-items: center; background: #fff; overflow: hidden; transition: border-color .16s, box-shadow .16s; }
.input-shell:focus-within, .select-shell:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,113,233,.1); }
.input-shell input { width: 100%; min-width: 0; height: 56px; padding: 0 10px 0 16px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 19px; font-weight: 500; }
.input-shell i { padding-right: 15px; color: #617088; font-size: 13px; font-style: normal; font-weight: 700; white-space: nowrap; }
.select-shell { position: relative; }
.select-shell::after { position: absolute; right: 18px; width: 8px; height: 8px; border-right: 2px solid #6b788c; border-bottom: 2px solid #6b788c; content: ""; transform: translateY(-3px) rotate(45deg); pointer-events: none; }
.select-shell select { width: 100%; min-width: 0; height: 56px; padding: 0 44px 0 16px; border: 0; outline: 0; color: var(--ink); background: transparent; appearance: none; font-size: 16px; font-weight: 500; }
.select-shell.custom-select { z-index: 4; display: block; overflow: visible; }
.select-shell.custom-select.is-open { z-index: 60; border-color: transparent; box-shadow: none; }
.select-shell.custom-select::after { display: none; }
.custom-select-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; }
.custom-select-trigger { position: relative; width: 100%; min-height: 56px; padding: 0 48px 0 16px; border: 0; border-radius: 15px; display: flex; align-items: center; color: var(--ink); background: #fff; text-align: left; font-size: 16px; font-weight: 500; line-height: 1.25; cursor: pointer; transition: border-color .16s, box-shadow .16s, background .16s; }
.custom-select-trigger:hover { background: #fafdff; }
.custom-select-trigger:focus-visible,
.custom-select.is-open .custom-select-trigger { outline: 0; box-shadow: 0 0 0 3px rgba(8,113,233,.13); }
.custom-select-trigger > i { position: absolute; right: 19px; top: 50%; width: 10px; height: 10px; border-right: 2px solid #64748a; border-bottom: 2px solid #64748a; transform: translateY(-70%) rotate(45deg); transition: transform .18s ease; }
.custom-select.is-open .custom-select-trigger > i { transform: translateY(-18%) rotate(225deg); }
.custom-select-menu { position: absolute; z-index: 50; top: calc(100% + 8px); right: 0; left: 0; max-height: min(330px, 48vh); padding: 7px; border: 1px solid rgba(9,27,54,.1); border-radius: 16px; overflow-y: auto; background: rgba(255,255,255,.98); box-shadow: 0 20px 46px rgba(9,27,54,.19); backdrop-filter: blur(14px); }
.custom-select-menu[hidden] { display: none; }
.custom-select-menu button { width: 100%; min-height: 46px; padding: 10px 12px; border: 0; border-radius: 11px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--ink); background: transparent; text-align: left; font-size: 14px; font-weight: 500; line-height: 1.3; cursor: pointer; }
.custom-select-menu button:hover,
.custom-select-menu button:focus-visible { background: #eef6ff; outline: 0; }
.custom-select-menu button[aria-selected="true"] { color: #075fc7; background: #e7f2ff; font-weight: 650; }
.custom-select-menu button i { width: 8px; height: 14px; flex: 0 0 auto; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); opacity: 0; transform: rotate(45deg) translate(-2px,2px); }
.custom-select-menu button[aria-selected="true"] i { opacity: 1; }

.range { --range-progress: 17%; width: 100%; height: 18px; margin: 5px 0 0; appearance: none; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--sky) var(--range-progress), #1d2838 var(--range-progress)); }
.range::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -6px; border: 0; border-radius: 50%; appearance: none; background: var(--sky); box-shadow: 0 2px 8px rgba(8,113,233,.25); }
.range::-moz-range-track { height: 4px; border-radius: 999px; background: #1d2838; }
.range::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--sky); }
.range::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--sky); }
.range-meta { margin-top: -1px; display: flex; justify-content: space-between; color: #738097; font-size: 9px; }
.range-meta strong { color: #42526a; font-weight: 500; }

.level-toggle { margin-top: 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.level-toggle button { min-height: 70px; padding: 10px 8px; border: 1px solid #ced9e6; border-radius: 14px; display: grid; align-content: center; gap: 4px; background: #fff; cursor: pointer; }
.level-toggle button[aria-pressed="true"] { border-color: var(--blue); color: #0865c6; background: #eaf4ff; box-shadow: inset 0 0 0 1px var(--blue); }
.level-toggle b { font-size: 13px; }
.level-toggle span { color: #738097; font-size: 10px; font-weight: 500; }
.options-grid { margin-top: 12px; }
.option-card { min-height: 62px; padding: 12px 14px; border: 1px solid #d8e1ec; border-radius: 15px; display: flex; align-items: center; gap: 11px; cursor: pointer; background: #f8fafc; }
.option-card:has(input:checked) { border-color: #85c6ff; background: #eef7ff; }
.option-card input { width: 18px; height: 18px; accent-color: var(--blue); }
.option-card span { min-width: 0; display: grid; gap: 3px; }
.option-card b { font-size: 12px; }
.option-card small { color: #6b788b; font-size: 10px; }

.secondary-settings { padding: 0; overflow: hidden; background: #f8fafc; }
.secondary-settings[open] { overflow: visible; }
.secondary-summary { min-height: 76px; padding: 18px 20px; position: relative; align-items: center; cursor: pointer; list-style: none; }
.secondary-summary::-webkit-details-marker { display: none; }
.secondary-summary > div { min-width: 0; flex: 1; }
.secondary-summary > em { max-width: 44%; margin-left: auto; padding-right: 26px; color: #5f6d82; font-size: 11px; font-style: normal; font-weight: 600; text-align: right; white-space: nowrap; }
.secondary-summary::after { position: absolute; right: 20px; width: 10px; height: 10px; border-right: 2px solid #64748a; border-bottom: 2px solid #64748a; content: ""; transform: translateY(-3px) rotate(45deg); transform-origin: 65% 65%; transition: transform .18s ease; }
.secondary-settings[open] .secondary-summary::after { transform: translateY(3px) rotate(225deg); }
.secondary-settings[open] .secondary-summary { border-bottom: 1px solid #dfe5ec; }
.details-body { padding: 18px 20px 20px; }
.details-body .fields { margin-top: 14px; }
.inline-note { margin: 0; padding: 12px 14px; border-left: 2px solid var(--gold); color: #5f6d82; background: #fff8e8; font-size: 11px; line-height: 1.45; }
.work-mode-card { margin-top: 14px; padding: 14px; border: 1px solid #d9e3ee; border-radius: 16px; background: #fff; }
.work-mode-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.work-mode-head > div:first-child { min-width: 0; display: grid; gap: 4px; }
.work-mode-head strong { color: var(--ink); font-size: 12px; }
.work-mode-head span { color: var(--muted); font-size: 10px; line-height: 1.4; }
.work-mode-toggle { flex: 0 0 auto; padding: 3px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px; border-radius: 12px; background: #eef2f7; }
.work-mode-toggle button { min-height: 36px; padding: 7px 12px; border: 0; border-radius: 9px; color: #5f6d82; background: transparent; font-size: 10px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.work-mode-toggle button[aria-pressed="true"] { color: #075fc7; background: #fff; box-shadow: 0 1px 5px rgba(9,27,54,.12); }
.work-mode-toggle button:focus-visible { outline: 3px solid rgba(8,113,233,.18); outline-offset: 1px; }
.work-breakdown { margin-top: 12px; padding: 16px; border: 1px solid #bcd9f7; border-radius: 16px; background: #eef7ff; }
.work-breakdown[hidden], #workRateField[hidden] { display: none !important; }
.work-breakdown > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.work-breakdown > header > div { display: grid; gap: 4px; }
.work-breakdown > header strong { color: var(--ink); font-size: 13px; }
.work-breakdown > header span { color: var(--muted); font-size: 10px; line-height: 1.4; }
.work-breakdown > header > b { flex: 0 0 auto; color: #0865c6; font-size: 18px; letter-spacing: -.02em; }
.work-breakdown .field-head { min-height: 32px; }
.work-breakdown > p { margin: 12px 0 0; color: #5f6d82; font-size: 10px; line-height: 1.45; }

.result-card { padding: 32px; position: sticky; top: 18px; color: #fff; background: radial-gradient(circle at 96% 0, rgba(45,155,244,.34), transparent 23rem), linear-gradient(155deg,#08213f,#0a3f78); box-shadow: 0 24px 60px rgba(9,35,68,.17); }
.result-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result-kicker { margin: 0; color: #a8bdd6; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.result-state { padding: 8px 12px; border: 1px solid rgba(89,218,165,.55); border-radius: 999px; color: #8ff2c6; font-size: 9px; font-weight: 700; }
.result-card h2 { margin: 22px 0 4px; color: #d4e2f3; font-size: 15px; }
.result-value { display: block; color: #fff; font-size: clamp(42px,5vw,66px); line-height: .98; letter-spacing: -.045em; }
.result-copy { margin: 12px 0 0; color: #c3d2e4; font-size: 12px; line-height: 1.45; }
.target-warning { margin: 16px 0 0; padding: 12px 14px; border-left: 2px solid var(--gold); color: #ffeca9; background: rgba(255,255,255,.12); font-size: 10px; line-height: 1.45; }
.result-metrics { margin: 18px 0 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.result-metrics div { min-width: 0; padding: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.07); }
.result-metrics dt { color: #a9bdd4; font-size: 9px; }
.result-metrics dd { margin: 4px 0 0; font-size: 17px; font-weight: 750; overflow-wrap: anywhere; }
.breakdown-card { margin-top: 18px; padding: 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(2,18,39,.2); }
.breakdown-card h3 { margin: 0 0 12px; font-size: 12px; }
.breakdown-row { margin-top: 10px; }
.breakdown-row:first-child { margin-top: 0; }
.breakdown-label { display: flex; justify-content: space-between; gap: 8px; color: #c3d2e4; font-size: 9px; }
.breakdown-label b { color: #fff; font-weight: 650; }
.bar { height: 6px; margin-top: 5px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.bar i { height: 100%; display: block; border-radius: inherit; background: var(--bar-color,var(--sky)); }
.price-data-note { margin-top: 12px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.07); }
.price-data-note strong { color: #fff; font-size: 11px; }
.price-data-note p { margin: 5px 0 0; color: #b9c9da; font-size: 9px; line-height: 1.45; }
.export-actions { margin-top: 12px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.export-actions button { min-height: 44px; padding: 8px 10px; border: 1px solid rgba(127,198,255,.55); border-radius: 13px; color: #e8f5ff; background: rgba(22,147,243,.14); font-size: 10px; font-weight: 750; cursor: pointer; transition: background .16s,border-color .16s; }
.export-actions button:hover { border-color: #8fd0ff; background: rgba(22,147,243,.28); }
.export-actions button:focus-visible { outline: 3px solid rgba(114,228,191,.55); outline-offset: 2px; }
.catalog-link { min-height: 52px; margin-top: 18px; padding: 0 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #fff; background: #1693f3; text-align: center; text-decoration: none; font-size: 12px; font-weight: 750; }
.catalog-link:hover { background: #28a0fb; }
.result-foot { margin: 11px 0 0; color: #94a9c2; font-size: 9px; text-align: center; }

.scenarios, .explanation, .seo-content { margin-top: 24px; padding: 38px; border: 1px solid #dfe5ec; background: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.section-head h2 { max-width: 760px; margin: 8px 0 0; font-size: clamp(30px,4vw,46px); line-height: 1; letter-spacing: -.045em; }
.section-head > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.scenario-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.scenario-card { padding: 20px; border: 1px solid #dce4ed; border-radius: 20px; background: #f7f9fb; }
.scenario-card.is-selected { border-color: #63b7ff; background: #eaf5ff; box-shadow: inset 0 0 0 1px #63b7ff; }
.scenario-card header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.scenario-card h3 { margin: 0; font-size: 22px; }
.scenario-badge { padding: 6px 9px; border-radius: 999px; color: #53708e; background: #e8edf3; font-size: 9px; }
.scenario-card.is-selected .scenario-badge { color: #0865c6; background: #d4ebff; }
.scenario-total { margin: 18px 0 2px; display: block; font-size: 26px; letter-spacing: -.03em; }
.scenario-meter { margin: 0; color: #64738a; font-size: 11px; }
.scenario-list { margin: 16px 0 0; padding: 0; list-style: none; }
.scenario-list li { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #dce4ed; color: #64738a; font-size: 10px; }
.scenario-list b { color: var(--ink); font-size: 11px; }
.scenario-card button { width: 100%; min-height: 42px; margin-top: 14px; border: 1px solid #87bff3; border-radius: 12px; color: #0865c6; background: #fff; font-size: 11px; font-weight: 750; cursor: pointer; }
.scenario-card.is-selected button { color: #698096; background: #e9f0f6; cursor: default; }

.explanation-grid { margin-top: 25px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.explanation-grid article { padding: 20px; border-radius: 18px; background: #f4f7fa; }
.explanation-grid span { width: 34px; height: 24px; display: grid; place-items: center; border-radius: 999px; color: #0869c7; background: #e1f0ff; font-size: 10px; font-weight: 800; }
.explanation-grid h3 { margin: 14px 0 6px; font-size: 15px; }
.explanation-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.seo-content h2 { margin: 10px 0 12px; font-size: clamp(28px,3.7vw,44px); line-height: 1.03; letter-spacing: -.04em; }
.seo-content > p:not(.eyebrow) { max-width: 900px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.capability-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.capability-grid article { padding: 20px; border: 1px solid #dfe5ec; border-radius: 18px; background: #fbfcfe; }
.capability-grid span { width: 34px; height: 24px; display: grid; place-items: center; border-radius: 999px; color: #0869c7; background: #e7f2ff; font-size: 10px; font-weight: 800; }
.capability-grid h3 { margin: 14px 0 7px; font-size: 16px; line-height: 1.25; }
.capability-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.guide-note { margin-top: 18px; padding: 18px 20px; border-left: 3px solid var(--blue); border-radius: 0 16px 16px 0; background: #eef6ff; }
.guide-note strong { font-size: 14px; }
.guide-note p { margin: 5px 0 0; color: #50627a; font-size: 12px; line-height: 1.55; }
.calculation-examples { margin-top: 38px; }
.calculation-examples > header h3 { margin: 8px 0 8px; font-size: clamp(24px,3vw,34px); letter-spacing: -.03em; }
.calculation-examples > header > p:last-child { max-width: 820px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.example-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.example-card { min-width: 0; padding: 22px; border: 1px solid #dbe5ef; border-radius: 20px; background: #fbfcfe; }
.example-card-head > span { display: inline-flex; padding: 6px 9px; border-radius: 999px; color: #075fc7; background: #e7f2ff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.example-card h4 { margin: 12px 0 7px; font-size: 19px; letter-spacing: -.02em; }
.example-card-head p, .example-result, .example-detail { color: var(--muted); font-size: 12px; line-height: 1.55; }
.example-card-head p { min-height: 58px; margin: 0; }
.estimate-table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid #dce5ee; border-radius: 14px; background: #fff; }
.estimate-table-wrap table { width: 100%; min-width: 420px; border-collapse: collapse; color: #263b56; font-size: 11px; }
.estimate-table-wrap caption { padding: 12px 14px; color: var(--ink); background: #f2f7fc; text-align: left; font-size: 12px; font-weight: 750; }
.estimate-table-wrap th, .estimate-table-wrap td { padding: 9px 14px; border-top: 1px solid #e5ebf1; text-align: left; }
.estimate-table-wrap thead th { color: #6a788c; background: #fbfcfe; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.estimate-table-wrap td { text-align: right; white-space: nowrap; font-weight: 650; }
.estimate-table-wrap tbody th { font-weight: 550; }
.estimate-table-wrap .table-subtotal th, .estimate-table-wrap .table-subtotal td { font-weight: 750; }
.estimate-table-wrap .table-total { color: #075fc7; background: #edf6ff; }
.estimate-table-wrap .table-total th, .estimate-table-wrap .table-total td { font-weight: 800; }
.example-result { margin: 14px 0 0; }
.example-result strong { color: var(--ink); }
.example-detail { margin: 14px 0 0; padding: 14px 16px; border-radius: 14px; background: #f3f6f9; }
.content-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.content-grid article { padding: 20px; border: 1px solid #dfe5ec; border-radius: 18px; }
.content-grid h3 { margin: 0 0 8px; font-size: 16px; }
.content-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.faq { margin-top: 36px; }
.faq > h3 { margin: 0 0 16px; font-size: 24px; letter-spacing: -.025em; }
.faq-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.faq-grid article { padding: 18px 20px; border: 1px solid #dfe5ec; border-radius: 18px; background: #fff; }
.faq-grid h4 { margin: 0 0 7px; font-size: 14px; }
.faq-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

@media (max-width: 980px) {
  .page { width: min(100% - 24px, 900px); }
  .hero { padding: 36px; grid-template-columns: 1fr; gap: 26px; }
  .calculator-grid { grid-template-columns: 1fr; }
  .result-card { position: static; }
  .explanation-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .capability-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .example-grid { grid-template-columns: 1fr; }
  .example-card-head p { min-height: 0; }
}

@media (max-width: 660px) {
  .page { width: min(100% - 16px, 620px); margin-bottom: 32px; }
  .breadcrumbs { padding-left: 6px; }
  .hero { min-height: 0; padding: 28px 22px; border-radius: 24px; }
  .hero h1 { font-size: 40px; }
  .hero > div > p:last-child { font-size: 15px; }
  .hero-points { padding: 14px 18px; }
  .input-card { padding: 18px; border-radius: 24px; }
  .card-head h2 { font-size: 24px; }
  .settings-group { padding: 16px; }
  .fields.two-cols, .fields.three-cols { grid-template-columns: 1fr; }
  .level-toggle { grid-template-columns: 1fr; }
  .level-toggle button { min-height: 58px; grid-template-columns: 1fr auto; align-items: center; text-align: left; }
  .secondary-summary { min-height: 84px; padding: 14px 16px; }
  .secondary-summary > em { max-width: 38%; padding-right: 22px; white-space: normal; }
  .details-body { padding: 16px; }
  .work-mode-head { align-items: stretch; flex-direction: column; }
  .work-mode-toggle { width: 100%; }
  .work-breakdown > header { align-items: flex-start; }
  .result-card { padding: 24px 20px; border-radius: 24px; }
  .result-value { font-size: 48px; }
  .result-metrics { grid-template-columns: 1fr 1fr; }
  .scenarios, .explanation, .seo-content { padding: 26px 18px; border-radius: 24px; }
  .section-head { display: block; }
  .section-head > p { margin-top: 14px; }
  .scenario-grid, .explanation-grid, .content-grid, .capability-grid, .faq-grid { grid-template-columns: 1fr; }
  .example-card { padding: 18px; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 36px; }
  .input-card { padding: 14px; }
  .result-metrics { grid-template-columns: 1fr; }
  .result-value { font-size: 42px; }
  .card-head { align-items: center; }
  .reset-button { padding: 0 12px; }
  .export-actions { grid-template-columns: 1fr; }
}

@media print {
  body { background: #fff; }
  .calculator-global-header, .breadcrumbs, .hero, .input-card, .scenarios, .explanation, .seo-content, .calculator-global-footer, .calculator-actions, .catalog-link, .export-actions { display: none !important; }
  .page { width: 100%; margin: 0; }
  .calculator-grid { display: block; margin: 0; }
  .result-card { position: static; padding: 24px; color: var(--ink); background: #fff; box-shadow: none; border: 1px solid #ccd7e4; }
  .result-kicker, .result-copy, .result-foot, .price-data-note p, .result-metrics dt, .breakdown-label { color: #5f6d82; }
  .result-state { color: #08745a; border-color: #87cfb8; }
  .result-card h2, .result-value, .result-metrics dd, .breakdown-card h3, .breakdown-label b, .price-data-note strong { color: var(--ink); }
  .target-warning, .result-metrics div, .breakdown-card, .price-data-note { color: var(--ink); background: #f6f8fa; border-color: #d9e2ec; }
  .bar { background: #e4e9ef; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
