:root {
  --ink: #15181d;
  --ink-2: #30353d;
  --muted: #67707c;
  --line: #dfe3e8;
  --line-strong: #cbd1d8;
  --surface: #ffffff;
  --surface-2: #f2f4f6;
  --page: #f7f8fa;
  --accent: #c8ff3d;
  --accent-dark: #729900;
  --danger: #b42318;
  --warning: #fff7d6;
  --shadow-sm: 0 8px 24px rgba(21, 24, 29, 0.06);
  --shadow-lg: 0 24px 70px rgba(21, 24, 29, 0.12);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shell: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.7rem, 6vw, 5.8rem); margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 3.8vw, 3.35rem); margin-bottom: 18px; }
h3 { font-size: 1.25rem; }
::selection { color: var(--ink); background: var(--accent); }

.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.narrow-shell { max-width: 860px; }
.section { padding: 104px 0; }
.section-tight { padding: 52px 0 96px; }
.surface-section { background: var(--surface-2); border-block: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 1000; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { display: inline-block; margin-bottom: 16px; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 18px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 800; cursor: pointer; transition: transform .18s ease, background-color .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: #b9ef32; }
.button-secondary { background: var(--surface); border-color: var(--line-strong); }
.button-secondary:hover { border-color: var(--ink); }
.text-button { padding: 8px 0; border: 0; background: none; font-weight: 800; cursor: pointer; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247, 248, 250, .94); border-bottom: 1px solid rgba(203, 209, 216, .8); backdrop-filter: blur(14px); }
.header-inner { display: flex; min-height: 76px; align-items: center; gap: 34px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 11px; }
.brand-mark { display: grid; width: 40px; height: 40px; place-items: center; color: var(--ink); background: var(--accent); border-radius: 10px; font-size: 1.25rem; font-weight: 900; letter-spacing: -.05em; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.08; }
.brand-copy b { font-size: 1.03rem; letter-spacing: -.025em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: .61rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.primary-nav a { color: var(--ink-2); font-size: .9rem; font-weight: 700; }
.primary-nav a:hover { color: var(--accent-dark); }
.header-search { display: flex; min-height: 42px; align-items: center; gap: 9px; padding: 8px 10px 8px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-sm); cursor: pointer; }
.header-search > span:first-child { font-size: 1.3rem; }
kbd { display: inline-flex; min-height: 24px; align-items: center; padding: 2px 7px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; font-family: inherit; font-size: .7rem; font-weight: 700; }
.menu-toggle { display: none; width: 44px; height: 44px; place-items: center; gap: 5px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); }
.mobile-menu { border-top: 1px solid var(--line); background: var(--surface); }
.mobile-menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 24px; padding-block: 20px; }
.mobile-menu-grid a { padding: 9px 0; font-weight: 700; }

.search-dialog { width: min(calc(100% - 32px), 720px); max-height: min(78vh, 760px); padding: 0; overflow: hidden; color: var(--ink); background: var(--surface); border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.search-dialog::backdrop { background: rgba(17, 20, 24, .62); backdrop-filter: blur(4px); }
.search-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 28px 28px 10px; }
.search-dialog-head h2 { margin-bottom: 0; font-size: 2rem; }
.icon-button { width: 42px; height: 42px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-size: 1.5rem; cursor: pointer; }
.search-field { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.search-field-dialog { margin: 12px 28px 18px; padding: 8px 10px 8px 16px; border-color: var(--ink); }
.search-field-dialog > span { font-size: 1.4rem; }
.search-field input { width: 100%; min-height: 46px; padding: 0; background: transparent; border: 0; outline: 0; }
.search-results { max-height: 480px; padding: 0 14px 18px; overflow-y: auto; }
.search-result { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; }
.search-result:hover, .search-result[aria-selected="true"] { background: var(--surface-2); }
.search-result .mini-mark { margin: 0; }
.search-result strong { display: block; }
.search-result small { color: var(--muted); }
.search-empty { padding: 30px; color: var(--muted); text-align: center; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 42px; color: var(--muted); font-size: .82rem; font-weight: 650; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.hero { padding: 72px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); align-items: center; gap: clamp(48px, 8vw, 120px); }
.hero h1 span { position: relative; white-space: nowrap; }
.hero h1 span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 11px; z-index: -1; background: var(--accent); border-radius: 8px; }
.hero-lead { max-width: 790px; margin-bottom: 32px; color: var(--ink-2); font-size: clamp(1.05rem, 1.8vw, 1.28rem); line-height: 1.62; }
.hero-search-trigger { display: flex; width: min(100%, 650px); min-height: 66px; align-items: center; gap: 14px; padding: 10px 12px 10px 20px; color: var(--muted); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 15px; box-shadow: var(--shadow-sm); cursor: pointer; text-align: left; }
.hero-search-trigger > span:first-child { color: var(--ink); font-size: 1.6rem; }
.hero-search-trigger > span:nth-child(2) { flex: 1; }
.hero-search-trigger:hover { border-color: var(--ink); }
.popular-links { display: flex; flex-wrap: wrap; gap: 8px 13px; margin-top: 20px; color: var(--muted); font-size: .82rem; }
.popular-links span { font-weight: 800; }
.popular-links a { border-bottom: 1px solid var(--line-strong); }
.popular-links a:hover { color: var(--ink); border-color: var(--ink); }
.hero-panel { padding: 22px; background: var(--ink); border-radius: 26px; box-shadow: var(--shadow-lg); transform: rotate(1deg); }
.hero-panel-head { display: flex; justify-content: space-between; color: #9ba3ad; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .68rem; letter-spacing: .08em; }
.live-dot { color: var(--accent); }
.live-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px rgba(200, 255, 61, .1); }
.formula-preview { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; padding: 23px; color: #fff; border: 1px solid #363b43; border-radius: 15px; }
.formula-preview small, .formula-preview span { color: #aeb5bd; }
.formula-preview strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 500; letter-spacing: -.02em; }
.result-preview { margin-top: 12px; padding: 23px; background: var(--accent); border-radius: 15px; }
.result-preview > span { display: block; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.result-preview strong { display: block; margin: 3px 0 6px; font-size: 3.2rem; line-height: 1; letter-spacing: -.06em; }
.result-preview strong small { font-size: 1.2rem; }
.result-preview em { display: block; font-size: .72rem; font-style: normal; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; color: #fff; }
.hero-stats div { padding: 3px 13px; border-right: 1px solid #353a42; }
.hero-stats div:first-child { padding-left: 0; }
.hero-stats div:last-child { border: 0; }
.hero-stats strong, .hero-stats span { display: block; }
.hero-stats strong { font-size: 1.4rem; }
.hero-stats span { color: #8f98a2; font-size: .65rem; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 42px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 520px; margin-bottom: 5px; color: var(--muted); }
.section-heading.compact { align-items: center; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card { position: relative; min-height: 275px; padding: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.category-card:hover { z-index: 1; border-color: var(--ink); box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.category-mark, .mini-mark { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 36px; color: var(--ink); background: var(--accent); border-radius: 12px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88rem; font-weight: 900; }
.category-count { position: absolute; top: 26px; right: 24px; color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.category-card h3 { margin-bottom: 10px; font-size: 1.35rem; }
.category-card p { min-height: 52px; margin-bottom: 24px; color: var(--muted); font-size: .9rem; }
.category-card > span:last-child { font-size: .82rem; font-weight: 800; }
.category-card > span:last-child b { margin-left: 5px; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool-card { position: relative; display: flex; min-height: 300px; flex-direction: column; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.tool-card:hover { z-index: 1; border-color: var(--ink); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.tool-card-top { display: flex; align-items: start; justify-content: space-between; }
.tool-card .mini-mark { width: 40px; height: 40px; margin-bottom: 30px; border-radius: 10px; font-size: .72rem; }
.favorite-button { position: relative; z-index: 3; width: 40px; height: 40px; background: transparent; border: 1px solid var(--line); border-radius: 10px; font-size: 1.35rem; cursor: pointer; }
.favorite-button:hover, .favorite-button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.tool-category { margin-bottom: 8px; color: var(--muted); font-size: .69rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tool-card h3 { margin-bottom: 11px; }
.tool-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.tool-card p { margin-bottom: 24px; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.tool-link { margin-top: auto; font-size: .8rem; font-weight: 800; }
.inline-filter { display: flex; min-width: 280px; align-items: center; gap: 9px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.inline-filter input { min-height: 44px; background: transparent; border: 0; outline: 0; }
.no-results { padding: 50px 0; color: var(--muted); text-align: center; }

.personal-section { background: var(--ink); color: #fff; }
.personal-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; align-items: stretch; }
.personal-grid > div:first-child { padding: 20px 55px 20px 0; }
.personal-grid .eyebrow { color: #9ca4ae; }
.personal-grid h2 { font-size: 2.5rem; }
.personal-grid > div:first-child p { color: #aeb5bd; }
.personal-card { min-height: 240px; padding: 24px; background: #20242a; border: 1px solid #353b44; border-radius: var(--radius); }
.personal-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.personal-card-head h3 { margin: 0; }
.personal-card-head span { color: var(--accent); font-size: 1.4rem; }
.empty-state { color: #919aa4; font-size: .88rem; }
.personal-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #343a42; font-size: .85rem; font-weight: 700; }
.personal-link span { color: var(--accent); }
.process-section { background: var(--surface); }
.process-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.process-grid > div p { max-width: 550px; color: var(--muted); }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.process-list li:last-child { border-bottom: 1px solid var(--line); }
.process-list li > b { color: var(--accent-dark); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.process-list h3 { margin-bottom: 8px; }
.process-list p { margin: 0; color: var(--muted); }

.faq-section { background: var(--surface); }
.faq-section details { border-top: 1px solid var(--line); }
.faq-section details:last-child { border-bottom: 1px solid var(--line); }
.faq-section summary { position: relative; padding: 24px 56px 24px 0; font-size: 1.05rem; font-weight: 800; cursor: pointer; list-style: none; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { content: "+"; position: absolute; top: 18px; right: 2px; display: grid; width: 36px; height: 36px; place-items: center; background: var(--surface-2); border-radius: 9px; font-size: 1.4rem; font-weight: 500; }
.faq-section details[open] summary::after { content: "−"; background: var(--accent); }
.faq-section details p { max-width: 720px; padding: 0 0 26px; color: var(--muted); }

.category-hero { padding-bottom: 72px; background: var(--surface); border-bottom: 1px solid var(--line); }
.category-hero-grid { display: grid; grid-template-columns: 1fr 280px; gap: 80px; align-items: end; }
.category-hero h1 { max-width: 890px; font-size: clamp(2.7rem, 5vw, 5rem); }
.category-summary { display: flex; flex-direction: column; align-items: flex-start; padding: 25px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.category-summary strong { font-size: 3rem; line-height: 1; }
.category-summary > span { margin: 5px 0 25px; color: #aab2bc; font-size: .8rem; }
.category-summary button { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 11px 0 0; color: #fff; background: transparent; border: 0; border-top: 1px solid #3a4048; cursor: pointer; }
.coming-soon { max-width: 650px; margin: 20px auto; padding: 55px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.coming-soon .category-mark { margin-inline: auto; }
.coming-soon p { color: var(--muted); }
.editorial-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.editorial-grid p { color: var(--muted); font-size: 1.05rem; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.guide-grid article { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.guide-grid article > span { color: var(--accent-dark); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .76rem; font-weight: 900; }
.guide-grid h3 { margin: 34px 0 12px; font-size: 1.5rem; }
.guide-grid p { color: var(--muted); }
.guide-grid a { font-size: .82rem; font-weight: 800; }
.guide-grid a:hover { text-decoration: underline; text-underline-offset: 4px; }

.calculator-hero { padding: 52px 0 38px; background: var(--surface); border-bottom: 1px solid var(--line); }
.calculator-hero .breadcrumbs { margin-bottom: 36px; }
.calculator-title-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 50px; align-items: start; }
.calculator-title-row h1 { max-width: 980px; font-size: clamp(2.6rem, 5vw, 4.8rem); }
.save-tool { display: flex; min-height: 48px; align-items: center; gap: 9px; padding: 10px 16px; background: var(--page); border: 1px solid var(--line); border-radius: 11px; font-weight: 800; cursor: pointer; }
.save-tool:hover, .save-tool[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.save-tool span { font-size: 1.3rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 28px; color: var(--muted); border-top: 1px solid var(--line); font-size: .78rem; font-weight: 700; }
.calculator-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); align-items: start; gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.calculator-form { padding: 30px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.panel-head > div:first-child { display: flex; align-items: center; gap: 14px; }
.panel-head h2 { margin: 0 0 5px; font-size: 1.45rem; }
.panel-head p { margin: 0; color: var(--muted); font-size: .78rem; }
.step-label { display: grid; width: 42px; height: 42px; place-items: center; background: var(--surface-2); border-radius: 10px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .75rem; font-weight: 800; }
.step-label.accent { background: var(--accent); }
.mode-switch { display: flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.mode-switch button { min-height: 36px; padding: 6px 12px; background: transparent; border: 0; border-radius: 7px; font-size: .76rem; font-weight: 800; cursor: pointer; }
.mode-switch button.active { background: var(--surface); box-shadow: 0 2px 7px rgba(21, 24, 29, .08); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
.form-field { min-width: 0; }
.form-field label { display: block; margin-bottom: 7px; color: var(--ink-2); font-size: .8rem; font-weight: 800; }
.input-shell { position: relative; display: flex; align-items: center; background: var(--page); border: 1px solid var(--line-strong); border-radius: 11px; transition: border-color .16s ease, box-shadow .16s ease; }
.input-shell:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(114, 153, 0, .12); }
.input-shell input, .input-shell select { width: 100%; min-width: 0; min-height: 52px; padding: 12px 14px; color: var(--ink); background: transparent; border: 0; outline: 0; font-weight: 700; }
.input-shell select { padding-right: 36px; cursor: pointer; }
.unit-label { flex: 0 0 auto; padding: 0 13px; color: var(--muted); border-left: 1px solid var(--line); font-size: .78rem; font-weight: 800; }
.form-field.invalid .input-shell { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180, 35, 24, .08); }
.field-error { display: block; min-height: 18px; margin-top: 4px; color: var(--danger); font-size: .7rem; }
.form-error-summary { margin-top: 18px; padding: 12px 14px; color: var(--danger); background: #fff1f0; border-left: 3px solid var(--danger); border-radius: 8px; font-size: .8rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.calculator-form .button-primary { min-width: 190px; justify-content: space-between; }
.result-panel { position: sticky; top: 94px; min-height: 470px; padding: 30px; overflow: hidden; background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-lg); }
.result-panel .panel-head { border-color: #343941; }
.result-panel .panel-head p { color: #9fa7b0; }
.result-signal { width: 10px; height: 10px; background: #68717c; border-radius: 50%; }
.result-panel.ready .result-signal { background: var(--accent); box-shadow: 0 0 0 6px rgba(200, 255, 61, .1); }
.result-empty { display: grid; min-height: 300px; place-items: center; align-content: center; color: #9099a3; text-align: center; }
.result-empty > span { display: grid; width: 64px; height: 64px; place-items: center; margin-bottom: 16px; color: var(--accent); background: #252a31; border: 1px solid #373d46; border-radius: 16px; font-size: 1.7rem; }
.result-empty h3 { margin-bottom: 8px; color: #fff; }
.result-empty p { max-width: 260px; margin: 0; font-size: .85rem; }
.primary-result { padding: 3px 0 25px; border-bottom: 1px solid #363c44; }
.primary-result > span { color: #9da6af; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.primary-result strong { display: block; margin: 9px 0; color: var(--accent); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.05em; overflow-wrap: anywhere; }
.primary-result p { margin: 0; color: #c8cdd3; font-size: .85rem; }
.result-details { margin: 0; padding: 14px 0; }
.result-details > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #2c3239; }
.result-details dt { color: #9ca5ae; font-size: .76rem; }
.result-details dd { margin: 0; text-align: right; font-size: .78rem; font-weight: 800; }
.result-warning { margin: 10px 0 16px; padding: 13px; color: var(--ink); background: var(--warning); border-radius: 9px; }
.result-warning strong { display: block; margin-bottom: 4px; font-size: .76rem; }
.result-warning p { margin: 0; font-size: .72rem; }
.result-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.result-actions button { min-height: 40px; color: #d5dae0; background: #252a31; border: 1px solid #3a414a; border-radius: 8px; font-size: .7rem; font-weight: 800; cursor: pointer; }
.result-actions button:hover { color: var(--ink); background: var(--accent); border-color: var(--accent); }

.content-section { background: var(--surface); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 70px; align-items: start; }
.method-card > p { color: var(--muted); font-size: 1.05rem; }
.formula-box { margin: 32px 0; padding: 24px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.formula-box span { display: block; margin-bottom: 12px; color: #9ea7b1; font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.formula-box code { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.55; white-space: normal; }
.example-list { border-top: 1px solid var(--line); }
.example-list > div { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.example-list dt { color: var(--muted); font-size: .78rem; font-weight: 800; }
.example-list dd { margin: 0; font-weight: 700; }
.method-aside { display: grid; gap: 14px; }
.source-card, .assumption-card, .safety-card { padding: 23px; border-radius: var(--radius); }
.source-card { background: var(--surface-2); border: 1px solid var(--line); }
.source-card h3, .assumption-card h3 { margin-bottom: 12px; }
.source-card p, .assumption-card li { color: var(--muted); font-size: .85rem; }
.source-card dl { margin: 20px 0 0; }
.source-card dl > div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-size: .76rem; }
.source-card dt { color: var(--muted); }
.source-card dd { margin: 0; font-weight: 800; }
.assumption-card { background: var(--surface); border: 1px solid var(--line); }
.assumption-card ul { margin: 0; padding-left: 18px; }
.assumption-card li + li { margin-top: 8px; }
.safety-card { background: var(--warning); border: 1px solid #ead88a; }
.safety-card strong { display: block; margin-bottom: 8px; }
.safety-card p { margin: 0; font-size: .78rem; }
.history-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.history-item { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.history-item time { display: block; margin-bottom: 9px; color: var(--muted); font-size: .68rem; }
.history-item strong { display: block; margin-bottom: 5px; }
.history-item p { margin: 0; color: var(--muted); font-size: .78rem; }

.contact-page { background: var(--surface); }
.contact-hero { position: relative; padding: 48px 0 104px; overflow: hidden; color: #fff; background: var(--ink); }
.contact-hero::before { content: ""; position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to right, transparent 4%, #000 44%, #000 100%); }
.contact-hero::after { content: ""; position: absolute; right: -150px; top: 80px; width: 520px; height: 520px; background: var(--accent); border-radius: 50%; opacity: .08; filter: blur(4px); }
.contact-hero .shell { position: relative; z-index: 1; }
.contact-breadcrumbs { color: #919aa5; }
.contact-breadcrumbs a:hover { color: #fff; }
.contact-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: clamp(52px, 8vw, 116px); align-items: end; }
.contact-hero .eyebrow { color: var(--accent); }
.contact-hero h1 { max-width: 850px; margin-bottom: 28px; font-size: clamp(3.15rem, 6.4vw, 6.2rem); }
.contact-hero h1 span { display: block; color: var(--accent); }
.contact-lead { max-width: 770px; margin-bottom: 34px; color: #c0c7cf; font-size: clamp(1.05rem, 1.65vw, 1.27rem); line-height: 1.65; }
.contact-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-button-ghost { color: #fff; background: transparent; border-color: #4a515b; }
.contact-button-ghost:hover { border-color: #fff; }
.contact-brief { padding: 28px; background: rgba(32, 36, 42, .94); border: 1px solid #3a414a; border-radius: var(--radius-lg); box-shadow: 0 28px 70px rgba(0, 0, 0, .22); }
.contact-brief-head { display: flex; justify-content: space-between; gap: 18px; color: #929ba5; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .67rem; font-weight: 800; letter-spacing: .08em; }
.contact-brief > p { margin: 30px 0 28px; color: #c4cad1; font-size: .92rem; }
.contact-brief ol { margin: 0; padding: 0; list-style: none; }
.contact-brief li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 17px 0; border-top: 1px solid #3b4149; }
.contact-brief li > span { padding-top: 2px; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem; font-weight: 900; }
.contact-brief li strong, .contact-brief li small { display: block; }
.contact-brief li strong { margin-bottom: 3px; }
.contact-brief li small { color: #939ca6; }

.contact-methods-section { background: var(--surface); }
.contact-methods-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-card { position: relative; display: flex; min-height: 285px; flex-direction: column; padding: 25px; overflow: hidden; background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.contact-card:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.contact-card-accent { background: var(--accent); border-color: var(--accent); }
.contact-card-index { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.contact-card-accent .contact-card-index { color: #425900; }
.contact-card-mark { display: grid; width: 52px; height: 52px; place-items: center; margin: 34px 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; font-size: .8rem; font-weight: 900; }
.contact-card-accent .contact-card-mark { background: var(--ink); color: #fff; border-color: var(--ink); }
.contact-card > strong, .contact-card-email a strong { display: block; margin-top: 28px; font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
.contact-card > small, .contact-card-email a small { display: block; color: var(--muted); font-size: .78rem; }
.contact-card-accent > small { color: #425900; }
.contact-card-arrow { position: absolute; right: 24px; bottom: 24px; display: grid; width: 38px; height: 38px; place-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-weight: 900; }
.contact-card-email { grid-column: span 2; }
.contact-card-email a { margin-top: 0; }
.copy-email-button { align-self: flex-start; margin-top: 18px; padding: 8px 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); font-size: .76rem; font-weight: 850; cursor: pointer; }
.copy-email-button:hover { color: var(--accent-dark); border-color: var(--accent-dark); }
.copy-email-status { position: absolute; right: 24px; bottom: 24px; min-height: 20px; color: var(--accent-dark); font-size: .72rem; font-weight: 800; }

.contact-capabilities { background: var(--surface-2); border-block: 1px solid var(--line); }
.contact-capabilities-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(60px, 9vw, 130px); align-items: start; }
.contact-capabilities-intro { position: sticky; top: 120px; }
.contact-capabilities-intro p { max-width: 560px; color: var(--muted); font-size: 1.03rem; }
.capability-list { border-top: 1px solid var(--line-strong); }
.capability-list article { display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line-strong); }
.capability-list article > span { color: var(--accent-dark); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .75rem; font-weight: 900; }
.capability-list h3 { margin-bottom: 10px; font-size: 1.4rem; }
.capability-list p { margin: 0; color: var(--muted); }
.contact-closing { padding: 76px 0; color: #fff; background: var(--ink); }
.contact-closing-inner { display: flex; align-items: end; justify-content: space-between; gap: 70px; }
.contact-closing .eyebrow { color: var(--accent); }
.contact-closing h2 { max-width: 800px; margin-bottom: 0; }
.contact-closing .button { flex: 0 0 auto; }

.error-page { min-height: 70vh; padding: 100px 0; background: var(--surface); }
.error-grid { display: grid; grid-template-columns: 1fr 420px; gap: 90px; align-items: center; }
.error-code { display: block; color: var(--accent-dark); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1rem; font-weight: 900; }
.error-page h1 { font-size: clamp(2.8rem, 5vw, 5rem); }
.error-page p { max-width: 620px; color: var(--muted); font-size: 1.1rem; }
.error-suggestions { padding: 26px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.error-suggestions h2 { font-size: 1.4rem; }
.error-suggestions a { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); font-weight: 700; }

.global-promo { padding: 58px 0; background: #eef2e6; border-top: 1px solid #dce3cf; }
.global-promo-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(38px, 6vw, 86px); align-items: center; padding: clamp(30px, 5vw, 58px); overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.global-promo-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: var(--accent); }
.global-promo-card::after { content: ""; position: absolute; right: -120px; bottom: -190px; width: 390px; height: 390px; background: var(--accent); border-radius: 50%; opacity: .16; }
.global-promo-copy, .global-promo-seal { position: relative; z-index: 1; }
.global-promo .eyebrow { margin-bottom: 20px; color: var(--accent-dark); }
.global-promo blockquote { max-width: 850px; margin: 0; color: var(--ink); font-size: clamp(1.18rem, 2vw, 1.62rem); font-weight: 750; line-height: 1.5; letter-spacing: -.022em; }
.global-promo-signature { display: flex; align-items: center; gap: 15px; margin: 28px 0 0; }
.global-promo-signature::before { content: ""; width: 42px; height: 2px; background: var(--accent-dark); }
.global-promo-signature span, .global-promo-signature strong { display: block; }
.global-promo-signature span { color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.global-promo-signature strong { font-size: .95rem; }
.global-promo-seal { display: flex; min-height: 220px; flex-direction: column; justify-content: flex-end; padding: 24px; color: #fff; background: var(--ink); border-radius: var(--radius); transform: rotate(1deg); }
.global-promo-seal > span { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: auto; color: var(--ink); background: var(--accent); border-radius: 12px; font-size: 1.25rem; font-weight: 900; }
.global-promo-seal strong { font-size: 1.25rem; line-height: 1.12; letter-spacing: -.03em; }
.global-promo-seal small { margin-top: 8px; color: #98a1ab; font-size: .7rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }

.site-footer { padding: 76px 0 28px; color: #fff; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 60px; }
.brand.inverse .brand-copy small { color: #8f98a2; }
.footer-brand p { max-width: 330px; margin-top: 22px; color: #a2abb5; font-size: .82rem; }
.footer-grid h2 { margin-bottom: 20px; color: #858e99; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid a, .footer-grid button { margin-bottom: 10px; color: #dbe0e5; background: none; border: 0; font-size: .82rem; cursor: pointer; text-align: left; }
.footer-grid a:hover, .footer-grid button:hover { color: var(--accent); }
.footer-note { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-top: 55px; padding-top: 24px; color: #858f99; border-top: 1px solid #333941; font-size: .7rem; }
.footer-note p { max-width: 840px; margin: 0; }
.footer-note a { color: #c9d0d7; text-decoration: underline; text-underline-offset: 2px; }
.footer-note span { flex: 0 0 auto; }

.cookie-banner { position: fixed; right: 24px; bottom: 24px; z-index: 300; display: grid; width: min(calc(100% - 48px), 680px); grid-template-columns: 1fr auto; gap: 22px; align-items: center; padding: 22px; color: #fff; background: var(--ink); border: 1px solid #3c434c; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { margin-bottom: 6px; font-size: 1.05rem; letter-spacing: -.02em; }
.cookie-banner p { margin: 0; color: #b3bbc4; font-size: .76rem; }
.cookie-banner a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-reject { display: inline; padding: 0; color: #fff; background: transparent; border: 0; border-bottom: 1px solid currentColor; font-size: inherit; cursor: pointer; text-underline-offset: 2px; }
.cookie-reject:hover { color: var(--accent); }
.cookie-banner .button { min-width: 115px; }

@media (max-width: 1199px) {
  .primary-nav { display: none; }
  .header-search { margin-left: auto; }
  .menu-toggle { display: grid; }
  .hero-grid { grid-template-columns: 1fr .82fr; gap: 50px; }
  .category-grid, .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .personal-grid { grid-template-columns: 1fr 1fr; }
  .personal-grid > div:first-child { grid-column: 1 / -1; max-width: 700px; padding: 0 0 25px; }
}

@media (max-width: 959px) {
  .section { padding: 82px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 620px; transform: none; }
  .category-grid, .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid, .editorial-grid, .content-grid { grid-template-columns: 1fr; gap: 50px; }
  .category-hero-grid { grid-template-columns: 1fr 230px; gap: 40px; }
  .calculator-grid { grid-template-columns: 1fr; }
  .result-panel { position: static; min-height: 400px; }
  .history-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .error-grid { grid-template-columns: 1fr; gap: 45px; }
  .contact-hero-grid { grid-template-columns: 1fr; }
  .contact-brief { max-width: 660px; }
  .contact-methods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card-email { grid-column: span 1; }
  .contact-capabilities-grid { grid-template-columns: 1fr; gap: 50px; }
  .contact-capabilities-intro { position: static; }
  .global-promo-card { grid-template-columns: minmax(0, 1fr) 210px; }
}

@media (max-width: 767px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .section { padding: 66px 0; }
  .section-tight { padding: 24px 0 66px; }
  .header-inner { min-height: 66px; gap: 10px; }
  .brand-copy { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .header-search { min-width: 44px; justify-content: center; padding: 8px; }
  .header-search > span:nth-child(2), .header-search kbd { display: none; }
  .mobile-menu-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 42px 0 64px; }
  .breadcrumbs { margin-bottom: 28px; font-size: .74rem; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero-search-trigger { min-height: 58px; }
  .hero-search-trigger kbd { display: none; }
  .hero-panel { padding: 14px; border-radius: 18px; }
  .formula-preview, .result-preview { padding: 18px; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading > p { margin-top: 18px; }
  .section-heading .inline-filter { margin-top: 18px; }
  .category-grid, .tool-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 240px; }
  .tool-card { min-height: 260px; }
  .personal-grid { grid-template-columns: 1fr; }
  .personal-grid > div:first-child { grid-column: auto; }
  .process-list li { grid-template-columns: 46px 1fr; }
  .category-hero-grid { grid-template-columns: 1fr; }
  .category-summary { max-width: 280px; }
  .calculator-title-row { grid-template-columns: 1fr; gap: 22px; }
  .save-tool { width: fit-content; }
  .calculator-title-row h1 { font-size: clamp(2.45rem, 12vw, 3.7rem); }
  .calculator-form, .result-panel { padding: 20px; border-radius: var(--radius); }
  .panel-head { align-items: flex-start; }
  .panel-head:has(.mode-switch) { display: grid; }
  .form-grid { grid-template-columns: 1fr; gap: 13px; }
  .input-shell input, .input-shell select { min-height: 54px; }
  .calculator-form .button { min-height: 52px; }
  .calculator-form .button-primary { flex: 1; }
  .example-list > div { grid-template-columns: 1fr; gap: 4px; }
  .history-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand { grid-column: auto; }
  .footer-brand .brand-copy { display: flex; }
  .footer-note { display: block; }
  .footer-note span { display: block; margin-top: 20px; }
  .cookie-banner { right: 16px; bottom: 16px; width: calc(100% - 32px); grid-template-columns: 1fr; padding: 18px; }
  .cookie-banner .button { width: 100%; }
  .search-dialog { width: calc(100% - 20px); max-height: calc(100vh - 20px); border-radius: 17px; }
  .search-dialog-head { padding: 20px 18px 8px; }
  .search-field-dialog { margin: 10px 18px 14px; }
  .search-results { padding-inline: 7px; }
  .search-result { grid-template-columns: 38px 1fr; }
  .search-result > span:last-child { display: none; }
  .coming-soon { padding: 32px 20px; }
  .contact-hero { padding: 34px 0 70px; }
  .contact-hero h1 { font-size: clamp(2.75rem, 13vw, 4.25rem); }
  .contact-hero-actions { display: grid; }
  .contact-hero-actions .button { width: 100%; }
  .contact-brief { padding: 21px; }
  .contact-methods-grid { grid-template-columns: 1fr; }
  .contact-card { min-height: 260px; }
  .contact-closing-inner { display: grid; gap: 32px; }
  .contact-closing .button { width: 100%; }
  .global-promo { padding: 38px 0; }
  .global-promo-card { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; }
  .global-promo-signature { align-items: flex-start; flex-wrap: wrap; }
  .global-promo-signature::before { margin-top: 10px; }
  .global-promo-seal { min-height: 150px; transform: none; }
}

@media (max-width: 479px) {
  .hero-stats div { padding-inline: 8px; }
  .hero-stats strong { font-size: 1.15rem; }
  .popular-links { display: none; }
  .formula-preview strong { font-size: 1.55rem; }
  .result-preview strong { font-size: 2.6rem; }
  .inline-filter { min-width: 100%; }
  .form-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .form-actions .button { width: 100%; }
  .result-actions { grid-template-columns: 1fr; }
}

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