/* Calcora design system: system fonts, no render-blocking font requests. */
:root {
  color-scheme: light dark;
  --canvas: #ffffff;
  --surface: #f9f8f7;
  --surface-2: #f0efed;
  --text: #2c2c2b;
  --muted: #6d6a65;
  --border: #e2e1df;
  --border-strong: #c9c7c3;
  --accent: #176fbc;
  --accent-hover: #125b9a;
  --accent-soft: #e5f2fc;
  --positive: #347b56;
  --positive-soft: #e8f1ec;
  --attention: #a85f24;
  --error: #c33d34;
  --error-soft: #fce9e7;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 20px rgba(0, 0, 0, .04);
  --radius: 8px;
  --radius-lg: 12px;
  --shell: 1120px;
  --prose: 730px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
input, select, textarea { color-scheme: light; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 3px; }
::selection { background: var(--accent-soft); color: var(--text); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.028em; line-height: 1.12; }
h1 { max-width: 18ch; margin-bottom: 20px; font-size: clamp(2.35rem, 7vw, 4.5rem); font-weight: 750; }
h2 { margin-bottom: 16px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 720; }
h3 { margin-bottom: 10px; font-size: 1.18rem; font-weight: 700; }
p { color: var(--muted); }
ul, ol { padding-left: 1.25rem; }

.shell { width: min(calc(100% - 32px), var(--shell)); margin-inline: auto; }
.section { padding-block: 52px; }
.section--soft { background: var(--surface); border-block: 1px solid var(--border); }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link { position: fixed; z-index: 1000; left: 16px; top: 12px; padding: 10px 14px; background: var(--text); color: var(--canvas); transform: translateY(-160%); border-radius: var(--radius); }
.skip-link:focus { transform: none; }
.eyebrow { display: block; margin-bottom: 8px; color: var(--accent); font-size: .76rem; font-weight: 750; letter-spacing: .11em; line-height: 1.3; text-transform: uppercase; }
.lede { max-width: 740px; margin-bottom: 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.55; }
.text-link { color: var(--accent); font-weight: 680; text-decoration: none; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.button--secondary { border-color: var(--border-strong); background: var(--canvas); color: var(--text); }
.button--secondary:hover { border-color: var(--text); background: var(--surface); color: var(--text); }
.link-button { min-height: 28px; padding: 0; border: 0; background: none; color: var(--muted); text-align: left; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; }
.link-button:hover { color: var(--accent); }

.site-header { position: relative; z-index: 50; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--canvas) 94%, transparent); }
.header__inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 1.12rem; font-weight: 780; letter-spacing: -.025em; text-decoration: none; }
.brand:hover { color: var(--text); }
.brand__mark { width: 36px; height: 36px; color: var(--accent); flex: 0 0 auto; }
.nav-toggle { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--canvas); color: var(--text); }
.nav-toggle svg { width: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.primary-nav {
  position: absolute;
  inset: calc(100% + 1px) 0 auto;
  display: none;
  padding: 12px 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--canvas);
  box-shadow: var(--shadow);
}
.primary-nav.is-open { display: grid; }
.primary-nav a { min-height: 46px; display: flex; align-items: center; padding: 8px 10px; border-radius: var(--radius); color: var(--text); font-weight: 640; text-decoration: none; }
.primary-nav a:hover { background: var(--surface); color: var(--accent); }
.nav-search { gap: 8px; }
.nav-search svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }

.breadcrumbs { margin-bottom: 30px; overflow: hidden; }
.breadcrumbs ol { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; color: var(--muted); font-size: .88rem; list-style: none; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.breadcrumbs ol::-webkit-scrollbar { display: none; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

.hero { padding-block: 52px 40px; background: linear-gradient(180deg, var(--surface) 0%, var(--canvas) 78%); }
.hero__inner { display: grid; gap: 36px; }
.hero__copy h1 { margin-bottom: 18px; }
.hero__subtitle { max-width: 700px; margin-bottom: 26px; font-size: clamp(1.1rem, 2.4vw, 1.34rem); line-height: 1.5; }
.hero__quick { align-self: end; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--canvas); box-shadow: var(--shadow); }
.hero__quick h2 { font-size: 1.35rem; }
.hero__quick ol { margin: 8px 0 0; padding: 0; list-style: none; }
.hero__quick li + li { border-top: 1px solid var(--border); }
.hero__quick a { min-height: 52px; display: grid; grid-template-columns: 30px 1fr 22px; align-items: center; gap: 8px; color: var(--text); font-weight: 670; text-decoration: none; }
.hero__quick a span { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.hero__quick a b { color: var(--accent); font-weight: 500; }
.hero__quick a:hover { color: var(--accent); }
.trust-list { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; color: var(--muted); font-size: .88rem; list-style: none; }
.trust-list li { position: relative; padding-left: 18px; }
.trust-list li::before { content: "✓"; position: absolute; left: 0; color: var(--positive); font-weight: 800; }

.site-search { position: relative; width: min(100%, 720px); }
.site-search__field { min-height: 52px; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 5px 5px 15px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--canvas); box-shadow: var(--shadow); }
.site-search__field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.site-search__field svg { width: 21px; fill: none; stroke: var(--muted); stroke-linecap: round; stroke-width: 1.8; }
.site-search input { width: 100%; min-width: 0; height: 42px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.site-search input::placeholder { color: #77736d; opacity: 1; }
.site-search button { min-height: 42px; padding: 7px 15px; border: 0; border-radius: 7px; background: var(--text); color: var(--canvas); font-weight: 700; }
.site-search button:hover { background: var(--accent); color: #fff; }
.site-search--large .site-search__field { min-height: 62px; }
.site-search--large input { font-size: 1rem; }
.site-search--large button { min-height: 50px; }
.suggestions { position: absolute; z-index: 100; inset: calc(100% + 8px) 0 auto; max-height: 330px; overflow-y: auto; padding: 7px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--canvas); box-shadow: 0 14px 34px rgba(0, 0, 0, .12); }
.suggestions a { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 11px 12px; border-radius: 7px; color: var(--text); text-decoration: none; }
.suggestions a:hover, .suggestions a[aria-selected="true"] { background: var(--surface); color: var(--accent); }
.suggestions a span { color: var(--muted); font-size: .82rem; }
.suggestions__empty { padding: 12px; color: var(--muted); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > a { flex: 0 0 auto; font-weight: 680; }
.tool-grid, .guide-grid { display: grid; gap: 14px; }
.tool-card, .guide-card { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--canvas); transition: border-color .18s ease, transform .18s ease; }
.tool-card:hover, .guide-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.tool-card > a, .guide-card > a { height: 100%; display: flex; flex-direction: column; align-items: flex-start; padding: 21px; color: var(--text); text-decoration: none; }
.tool-card__marker { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border)); border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.tool-card h3, .guide-card h3 { color: var(--text); }
.tool-card p, .guide-card p { margin-bottom: 18px; font-size: .93rem; }
.tool-card .text-link, .guide-card .text-link { margin-top: auto; }
.category-grid { display: grid; gap: 10px; }
.category-card { min-width: 0; border-bottom: 1px solid var(--border); }
.category-card > a { min-height: 128px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 18px 8px; color: var(--text); text-decoration: none; }
.category-card > a:hover h3 { color: var(--accent); }
.category-card__marker { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius); background: var(--canvas); color: var(--accent); font-size: .72rem; font-weight: 800; }
.category-card h3 { margin-bottom: 5px; }
.category-card p { margin-bottom: 8px; font-size: .88rem; }
.category-card span:last-child { color: var(--muted); font-size: .78rem; font-weight: 650; }
.stacked-links { border-top: 1px solid var(--border); }
.stacked-links > a { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 5px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.stacked-links > a:hover strong { color: var(--accent); }
.stacked-links span { min-width: 0; display: grid; gap: 2px; }
.stacked-links strong { font-size: .97rem; }
.stacked-links small { color: var(--muted); font-size: .83rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stacked-links b { color: var(--accent); font-size: 1.2rem; font-weight: 500; }
.rank-list { margin: 0; padding: 0; border-top: 1px solid var(--border); list-style: none; }
.rank-list a { min-height: 54px; display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 650; text-decoration: none; }
.rank-list span { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.rank-list a:hover { color: var(--accent); }
.split-section { display: grid; gap: 48px; }
.conversion-feature { display: grid; align-items: center; gap: 30px; }
.conversion-feature > div:first-child { max-width: 650px; }
.conversion-feature p { font-size: 1.02rem; }
.conversion-sample { min-height: 130px; display: grid; grid-template-columns: 1fr 80px 1fr; align-items: center; gap: 10px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); text-align: center; font-size: clamp(1rem, 3vw, 1.25rem); }
.conversion-sample svg { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.conversion-sample strong { color: var(--accent); }
.guide-card .eyebrow { margin-bottom: 12px; }
.editorial-intro { display: grid; gap: 24px; }
.editorial-intro h2 { max-width: 16ch; }
.editorial-intro p { max-width: 680px; font-size: 1.02rem; }

.page-top, .calculator-top, .article-top { padding-block: 32px 20px; }
.page-top h1, .calculator-top h1, .article-top h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
.page-top .site-search { margin-top: 28px; }
.intro-columns { display: grid; gap: 8px; max-width: 940px; margin-top: 30px; }
.category-group + .category-group { border-top: 1px solid var(--border); }
.category-grid--large .category-card > a { min-height: 150px; }

.title-row { display: grid; gap: 20px; margin-bottom: 30px; }
.title-row .lede { max-width: 760px; }
.updated { align-self: end; padding-left: 14px; border-left: 2px solid var(--border); color: var(--muted); font-size: .82rem; white-space: nowrap; }
.updated span, .updated time { display: block; }
.updated time { color: var(--text); font-weight: 670; }
.calculator-layout { display: grid; gap: 24px; }
.calculator {
  overflow: hidden;
  display: grid;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  box-shadow: var(--shadow);
}
.calculator__inputs, .calculator__results { min-width: 0; padding: 22px; }
.calculator__results { border-top: 1px solid var(--border); background: var(--surface); }
.panel-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.panel-heading .eyebrow { margin-bottom: 3px; }
.panel-heading h2 { margin: 0; font-size: 1.35rem; }
.step-badge { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.field-grid { display: grid; gap: 15px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 6px; color: var(--text); font-size: .88rem; font-weight: 680; }
.field input:not([type="checkbox"]), .field select, .field textarea, .contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--canvas);
  color: var(--text);
  outline: none;
}
.field textarea, .contact-form textarea { min-height: 110px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--text) 50%, var(--border)); }
.field input:focus, .field select:focus, .field textarea:focus, .contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); background: color-mix(in srgb, var(--error-soft) 55%, var(--canvas)); }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: .78rem; }
.field-error { min-height: 18px; display: block; margin-top: 4px; color: var(--error); font-size: .78rem; }
.input-wrap { position: relative; }
.input-wrap:has(.input-unit) input { padding-right: 52px; }
.input-unit { position: absolute; right: 12px; top: 50%; color: var(--muted); font-size: .84rem; font-weight: 680; transform: translateY(-50%); pointer-events: none; }
.field--checkbox label { min-height: 48px; display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.field--checkbox input { width: 20px; height: 20px; accent-color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.form-actions .button { flex: 1 1 120px; }
.error-summary { min-height: 24px; margin: 10px 0 0; color: var(--error); font-size: .86rem; font-weight: 650; }
.results-list { display: grid; gap: 0; margin: 0; }
.results-list > div { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.results-list dt { color: var(--muted); font-size: .83rem; }
.results-list dd { min-width: 0; margin: 0; color: var(--text); font-size: .96rem; font-weight: 720; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.results-list .result--primary { display: block; padding: 0 0 18px; }
.results-list .result--primary dt { margin-bottom: 5px; color: var(--muted); font-size: .88rem; }
.results-list .result--primary dd { color: var(--accent); font-size: clamp(1.65rem, 5vw, 2.35rem); letter-spacing: -.035em; text-align: left; }
.breakdown { margin-top: 22px; }
.breakdown__bar { height: 12px; display: flex; overflow: hidden; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); }
.breakdown__bar span { min-width: 0; transition: width .2s ease; }
.breakdown__bar span:nth-child(1) { background: #438fd8; }
.breakdown__bar span:nth-child(2) { background: #d09d37; }
.breakdown__bar span:nth-child(3) { background: #4d9a6c; }
.breakdown ul { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 10px 0 0; padding: 0; color: var(--muted); font-size: .72rem; list-style: none; }
.breakdown li { display: flex; align-items: center; gap: 6px; }
.breakdown i { width: 8px; height: 8px; display: inline-block; border-radius: 2px; background: #438fd8; }
.breakdown .legend-1 { background: #d09d37; }
.breakdown .legend-2 { background: #4d9a6c; }
.noscript { margin: 16px 0 0; padding: 10px; border-left: 3px solid var(--attention); color: var(--text); font-size: .85rem; }

.article-layout { display: grid; gap: 36px; padding-block: 34px 64px; }
.prose { min-width: 0; max-width: var(--prose); }
.prose > section { padding-block: 32px; border-bottom: 1px solid var(--border); scroll-margin-top: 20px; }
.prose > section:first-child { padding-top: 0; }
.prose h2 { max-width: 25ch; }
.prose h3 { margin-top: 26px; }
.prose p, .prose li { font-size: 1.01rem; line-height: 1.7; }
.prose p { color: var(--text); }
.prose ul li::marker, .prose ol li::marker { color: var(--accent); font-weight: 760; }
.steps { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li { position: relative; min-height: 44px; padding: 0 0 20px 52px; counter-increment: steps; }
.steps li::before { content: counter(steps); position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--accent); font-size: .8rem; font-weight: 800; }
.formula-box { overflow-x: auto; margin: 18px 0; padding: 18px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); border-radius: var(--radius); background: var(--accent-soft); }
.formula-box code { color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(.88rem, 2vw, 1rem); font-weight: 680; white-space: nowrap; }
.notes { padding: 24px !important; border: 1px solid var(--border) !important; border-radius: var(--radius-lg); background: var(--surface); }
.notes ul { margin-bottom: 0; }
.notes li + li { margin-top: 8px; }
.article-aside { display: none; }
.article-aside > div { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); }
.article-aside strong { margin-bottom: 5px; font-size: .85rem; }
.article-aside a { color: var(--muted); font-size: .85rem; text-decoration: none; }
.article-aside a:hover { color: var(--accent); }
.related-grid { display: grid; gap: 10px; }
.related-grid a { position: relative; min-height: 116px; display: grid; align-content: center; gap: 4px; padding: 16px 44px 16px 16px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.related-grid a:hover { border-color: var(--accent); }
.related-grid a:hover strong { color: var(--accent); }
.related-grid span { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.related-grid b { position: absolute; right: 16px; top: 50%; color: var(--accent); font-size: 1.15rem; font-weight: 500; transform: translateY(-50%); }
.resource-links { display: grid; gap: 10px; }
.resource-links a { display: grid; gap: 3px; padding: 15px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--text); text-decoration: none; }
.resource-links a span { color: var(--accent); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.resource-links a:hover strong { color: var(--accent); }
.byline { display: flex; gap: 13px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.brand-mini { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: var(--radius); background: var(--accent); color: #fff; font-weight: 800; }
.byline strong { display: block; font-size: .9rem; }
.byline p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.article-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 22px; color: var(--muted); font-size: .82rem; }
.guide-cta { display: grid; gap: 18px; margin-bottom: 34px; padding: 22px; border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border)); border-radius: var(--radius-lg); background: var(--accent-soft); }
.guide-cta h2 { font-size: 1.35rem; }
.guide-cta p { margin-bottom: 0; color: var(--muted); }
.policy-layout { padding-block: 32px 64px; }
.policy-layout .prose { margin-inline: auto; }
.contact-layout { display: grid; gap: 34px; }
.contact-layout > div { max-width: 520px; }
.contact-form { max-width: 620px; display: grid; gap: 16px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.contact-form label { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 680; }
.contact-form .button { justify-self: start; min-width: 150px; }
.honeypot { position: absolute; left: -9999px; }

.faq-section { padding-block: 34px !important; }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 2px; color: var(--text); font-weight: 680; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 50%; color: var(--accent); font-size: 1.1rem; font-weight: 450; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 650px; margin: 0 0 18px; color: var(--muted); font-size: .93rem; }

.ad-slot { width: min(calc(100% - 32px), 970px); min-height: 92px; display: grid; place-items: center; margin: 24px auto; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 65%, var(--canvas)); color: var(--muted); }
.ad-slot > span { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.ad-slot--in-content { width: 100%; min-height: 120px; margin-block: 30px; }
.ad-slot--sidebar { display: none; width: 100%; min-height: 420px; margin: 0; }
.calculator-layout > div > .ad-slot { width: 100%; }

.search-status { margin-top: 22px; color: var(--muted); font-size: .9rem; }
.not-found { max-width: 780px; padding-block: 80px; text-align: center; }
.not-found .error-code { display: block; margin-bottom: 4px; color: var(--accent); font-size: .88rem; font-weight: 800; letter-spacing: .16em; }
.not-found h1 { max-width: none; margin-inline: auto; font-size: clamp(2.2rem, 7vw, 4rem); }
.not-found > p { max-width: 600px; margin-inline: auto; }
.not-found .site-search { margin: 28px auto; text-align: left; }
.not-found .stacked-links { margin: 30px auto; text-align: left; }

.site-footer { margin-top: 48px; padding-block: 46px 24px; border-top: 1px solid var(--border); background: var(--surface); }
.footer__grid { display: grid; gap: 34px; }
.footer__about p { max-width: 300px; margin-top: 16px; font-size: .9rem; }
.site-footer nav h2 { margin-bottom: 13px; font-size: .86rem; letter-spacing: 0; }
.site-footer nav ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer nav a, .site-footer .link-button { color: var(--muted); font-size: .84rem; text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--border); }
.footer__base p, .footer__base a { margin: 0; color: var(--muted); font-size: .76rem; }
.consent { position: fixed; z-index: 200; inset: auto 12px 12px; max-width: 720px; margin-inline: auto; display: grid; gap: 16px; padding: 18px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--canvas); box-shadow: 0 14px 50px rgba(0, 0, 0, .18); }
.consent[hidden] { display: none; }
.consent strong { display: block; margin-bottom: 4px; }
.consent p { margin: 0; font-size: .82rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent__actions .button { flex: 1 1 150px; font-size: .86rem; }

@media (min-width: 620px) {
  .shell { width: min(calc(100% - 48px), var(--shell)); }
  .section { padding-block: 64px; }
  .hero { padding-block: 72px 52px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid > :first-child:nth-last-child(1), .field-grid > :first-child:nth-last-child(1) ~ *, .field:has(textarea) { grid-column: 1 / -1; }
  .calculator__inputs, .calculator__results { padding: 28px; }
  .title-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .intro-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 26px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consent { inset-inline: 24px; bottom: 24px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .consent__actions .button { flex: 0 0 auto; }
}

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .primary-nav { position: static; display: flex; align-items: center; gap: 2px; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .primary-nav a { min-height: 44px; padding-inline: 13px; }
  .hero__inner { grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr); align-items: center; gap: 56px; }
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .guide-grid--large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-section { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 64px; }
  .conversion-feature { grid-template-columns: minmax(0, 1fr) minmax(340px, .7fr); gap: 64px; }
  .editorial-intro { grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: 60px; }
  .calculator { grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); }
  .calculator__results { border-top: 0; border-left: 1px solid var(--border); }
  .article-layout { grid-template-columns: minmax(0, var(--prose)) minmax(170px, 1fr); justify-content: space-between; gap: 70px; }
  .article-aside { display: block; }
  .article-aside > div { position: sticky; top: 24px; }
  .contact-layout { grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: 64px; }
  .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

@media (min-width: 1080px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 30px; }
  .category-grid--large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calculator-layout { grid-template-columns: minmax(0, 1fr) 250px; align-items: start; }
  .ad-slot--sidebar { display: grid; position: sticky; top: 24px; }
}

@media (max-width: 430px) {
  .site-search__field { grid-template-columns: 22px minmax(0, 1fr); padding-right: 10px; }
  .site-search button { grid-column: 1 / -1; width: 100%; }
  .site-search--large .site-search__field { min-height: 106px; }
  .site-search--large button { min-height: 44px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .conversion-sample { grid-template-columns: 1fr; }
  .conversion-sample svg { width: 70px; margin: 2px auto; transform: rotate(90deg); }
  .results-list > div { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 10px; }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #191919;
    --surface: #202020;
    --surface-2: #2a2a29;
    --text: #ffffff;
    --muted: rgba(255, 255, 255, .68);
    --border: rgba(255, 255, 255, .16);
    --border-strong: rgba(255, 255, 255, .29);
    --accent: #75b4ef;
    --accent-hover: #9ecbf4;
    --accent-soft: #172c3f;
    --positive: #72bc8f;
    --positive-soft: #203128;
    --attention: #e3a36c;
    --error: #f18378;
    --error-soft: #3a2422;
    --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .18);
  }
  input, select, textarea { color-scheme: dark; }
  .button { color: #10283c; }
  .button:hover { color: #10283c; }
  .brand-mini { color: #10283c; }
  .tool-card__marker { background: var(--accent-soft); }
  .hero { background: linear-gradient(180deg, var(--surface) 0%, var(--canvas) 78%); }
  .site-search input::placeholder { color: rgba(255, 255, 255, .58); }
  .site-search button { background: #f2f2f2; color: #202020; }
  .site-search button:hover { background: var(--accent); color: #10283c; }
  .button--secondary { color: var(--text); }
}

@media print {
  .site-header, .site-footer, .ad-slot, .consent, .form-actions, .article-aside, .site-search { display: none !important; }
  body { background: #fff; color: #000; }
  .calculator, .calculator__results, .notes, .formula-box { box-shadow: none; background: #fff; color: #000; }
  .article-layout { display: block; }
  a { color: #000; text-decoration: none; }
}
