:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#102033;background:#f3f7fa;font-size:16px;line-height:1.6;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}a{color:inherit}header,main,footer{width:min(1080px,calc(100% - 40px));margin:auto}header{display:flex;align-items:center;justify-content:space-between;padding:28px 0;gap:20px}header>a:last-child{font-size:.9rem}.brand{text-decoration:none;display:flex;gap:10px;align-items:center;font-size:1.5rem}.brand span{color:#257560;font-size:1.8rem}.skip{position:absolute;top:-100px;background:#102033;color:white;padding:12px;z-index:5}.skip:focus{top:0}.intro{text-align:center;padding:40px 0 36px}.eyebrow{font-size:.75rem;font-weight:750;letter-spacing:.17em;color:#256f60}.intro h1{font-size:clamp(2.3rem,5vw,3.8rem);letter-spacing:-.045em;line-height:1.12;margin:20px 0}.intro em{font-style:normal;color:#2d7664}.intro>p:last-child{color:#586779;font-size:1.08rem}.tool{background:#102033;color:#f4faf9;border-radius:28px;padding:32px;box-shadow:0 18px 65px #1020330d}.tool-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:30px}.tool-title h2{font-size:1.25rem;margin:0}.tool-title>span{font-size:.875rem;color:#a7c4c4}.equation{display:grid;grid-template-columns:minmax(0,1fr) 190px minmax(0,1fr);gap:32px;align-items:center;max-width:850px;margin:auto}fieldset{border:0;padding:0;margin:0;min-width:0}legend{font-weight:650;margin-bottom:18px;color:#92dccc}label{display:block;font-size:.875rem;color:#c0cfdb}input,select{display:block;width:100%;min-width:0;border:1px solid #425367;border-radius:10px;background:#1d3046;color:#fff;padding:12px;margin-top:7px}input{text-align:center;font-variant-numeric:tabular-nums;font-size:1.2rem}select{appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23c0cfdb' stroke-width='2' fill='none'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}.fraction-line{height:2px;background:#678293;margin:10px 12px}.hint{font-size:.875rem;color:#afc0cf;margin-top:24px}.error{color:#ffb4ae;font-size:.95rem;min-height:1.5em;margin:8px 0}.actions{display:flex;gap:12px;flex-wrap:wrap}button{border:1px solid #53657a;border-radius:11px;background:#1d3046;color:#f4faf9;padding:11px 20px;cursor:pointer;font-size:.95rem;min-height:46px}button:hover{background:#2a4058}.primary{background:#81dfc5;color:#102b2a;border-color:#81dfc5;font-weight:700;min-width:180px}.primary:hover{background:#a1edd9}button:disabled{opacity:.55;cursor:not-allowed}:focus-visible{outline:3px solid #50b9a0;outline-offset:4px}.result{margin-top:28px;border-top:1px solid #405166;padding-top:24px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px 30px}.result[hidden]{display:none}.result .eyebrow{color:#91dcc9;margin:0}.answer{font-size:clamp(2rem,5vw,3.5rem);font-weight:700;line-height:1.25;margin:10px 0;overflow-wrap:anywhere;letter-spacing:-.03em}.mixed{font-size:.9rem;color:#bed1df;overflow-wrap:anywhere}.decimal-card{background:#1b3044;border-radius:16px;padding:20px;min-width:0}.decimal-card span{display:block;color:#bed1df;font-size:.875rem}.decimal-card strong{display:block;font-size:1.5rem;line-height:1.4;overflow-wrap:anywhere;margin-top:8px}.decimal-card p{font-size:.875rem;color:#bed1df;margin-bottom:0}.result>button{justify-self:start}.steps{grid-column:1/-1;border-top:1px solid #405166;padding-top:12px;min-width:0}.steps h3{font-size:1rem}.steps p{color:#c0cfdb;font-size:.95rem;overflow-wrap:anywhere}.steps code{display:block;white-space:normal;overflow-wrap:anywhere;background:#0c192a;border-radius:10px;padding:14px;color:#93e7cd;font-size:.95rem}#status{min-height:1.6em;font-size:.9rem;color:#9ce1ce;margin-bottom:0}.benefits{text-align:center;color:#5a6e78;font-size:.875rem;margin:24px 0 60px}.guide{border-top:1px solid #d7e0e5;padding-top:40px}.guide h2,.faq h2{font-size:clamp(1.6rem,3vw,2.3rem);line-height:1.25;letter-spacing:-.03em}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.cards h3{font-size:1.05rem}.cards p,.guide-note,.faq p{color:#566776}.guide-note{margin-top:28px}.faq{margin:48px 0 70px}.faq details{border-bottom:1px solid #d7e0e5;padding:18px 0}.faq summary{cursor:pointer;font-weight:650;min-height:28px}.faq p{max-width:850px;margin:12px 0 0}footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #d7e0e5;padding:24px 0 36px;font-size:.875rem;color:#586779}footer strong{font-size:1.2rem;color:#102033}@media(max-width:700px){.tool{padding:22px}.tool-title{display:block}.tool-title>span{display:block;margin-top:6px}.equation{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.operation{grid-column:1/-1;grid-row:2;max-width:250px;width:100%;justify-self:center}.result{grid-template-columns:minmax(0,1fr)}.cards{grid-template-columns:1fr;gap:8px}.intro{padding-top:20px}.intro h1{font-size:2.6rem}.benefits{line-height:1.8}.actions>button{flex:1}.steps{grid-column:auto}header{align-items:flex-start}footer{flex-direction:column;gap:6px}}@media(max-width:380px){header,main,footer{width:calc(100% - 24px)}.tool{padding:18px}.equation{gap:14px}.intro h1{font-size:2.2rem}header>a:last-child{max-width:110px;text-align:right}}
