:root { --tool-ink: #10233d; --tool-muted: #53647a; --tool-accent: #0f766e; --tool-border: #d8e1ea; --tool-surface: #ffffff; --tool-soft: #f3f7fa; }
body { margin: 0; color: var(--tool-ink); background: var(--tool-soft); font-family: "Manrope", "Hind", Arial, sans-serif; }
.tool-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.tool-hero { padding: 28px 0 64px; color: #fff; background: linear-gradient(140deg, #071523, #15456f 62%, #0f766e); }
.tool-hero h1 { max-width: 850px; margin: 22px 0 16px; color: #fff; font-size: clamp(2.35rem, 6vw, 4.8rem); line-height: 1.02; }
.tool-hero p { max-width: 760px; margin: 0; color: #dce8f4; font-size: 1.16rem; }
.tool-kicker { display: inline-block; color: #54e0d1; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tool-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 38px; padding: 0; list-style: none; }
.tool-breadcrumb li:not(:last-child)::after { margin-left: 8px; content: "/"; color: #93a9bd; }
.tool-breadcrumb a { color: #dce8f4; }
.tool-main { padding: 56px 0 80px; }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 28px; align-items: start; }
.calculator-layout > *, .field-grid > *, .input-suffix input { min-width: 0; }
.calculator-card, .result-card, .tool-explanation { padding: 30px; border: 1px solid var(--tool-border); border-radius: 18px; background: var(--tool-surface); box-shadow: 0 14px 34px rgba(16, 35, 61, .08); }
.calculator-card h2, .result-card h2, .tool-explanation h2 { margin-top: 0; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tool-field { display: flex; flex-direction: column; gap: 7px; }
.tool-field-wide { grid-column: 1 / -1; }
.tool-field label { font-weight: 800; }
.tool-field label span, .tool-field small { color: var(--tool-muted); font-weight: 500; }
.tool-field input, .tool-field select { width: 100%; min-height: 48px; box-sizing: border-box; padding: 10px 12px; border: 1px solid #aab8c6; border-radius: 9px; color: var(--tool-ink); background: #fff; font: inherit; }
.tool-field input:focus, .tool-field select:focus { outline: 3px solid rgba(15, 118, 110, .2); border-color: var(--tool-accent); }
.input-suffix { display: grid; grid-template-columns: 1fr auto; align-items: stretch; }
.input-suffix input { border-radius: 9px 0 0 9px; }
.input-suffix span { display: grid; place-items: center; padding: 0 12px; border: 1px solid #aab8c6; border-left: 0; border-radius: 0 9px 9px 0; color: var(--tool-muted); background: #eef3f6; }
.tool-button { margin-top: 24px; padding: 13px 20px; border: 0; border-radius: 9px; color: #fff; background: var(--tool-accent); font: inherit; font-weight: 800; cursor: pointer; }
.tool-button:hover { background: #0b5f59; }
.tool-button-secondary { border: 1px solid var(--tool-accent); color: var(--tool-accent); background: #fff; }
.tool-button-secondary:hover { color: #fff; }
.tool-error { padding: 10px 12px; border-left: 4px solid #b42318; color: #7a271a; background: #fef3f2; }
.result-card h2 { margin: 18px 0 24px; font-size: 1.45rem; }
.result-card h2 strong { display: block; color: var(--tool-accent); font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1; }
.result-grid { display: grid; gap: 16px; margin: 0; }
.result-grid div { padding-bottom: 14px; border-bottom: 1px solid var(--tool-border); }
.result-grid dt { color: var(--tool-muted); font-size: .86rem; }
.result-grid dd { margin: 4px 0 0; font-size: 1.18rem; font-weight: 800; }
.result-card p { color: var(--tool-muted); }
.tool-explanation { margin-top: 28px; box-shadow: none; }
.tool-explanation p { max-width: 900px; line-height: 1.75; }
.tool-explanation h3 { margin: 0 0 8px; }
.tool-explanation ul { margin: 0; padding-left: 1.2rem; }
.tool-explanation li { margin-bottom: 8px; line-height: 1.65; }
.explanation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 22px; }
.worked-example { margin-top: 24px; padding: 20px; border-left: 4px solid var(--tool-accent); border-radius: 8px; background: #eef8f6; }
@media (max-width: 760px) { .tool-hero h1 { overflow-wrap: anywhere; } .calculator-layout, .field-grid, .explanation-grid { grid-template-columns: minmax(0, 1fr); } .tool-field-wide { grid-column: auto; } .calculator-card, .result-card, .tool-explanation { padding: 22px; } }
