:root{
  --cfx-ink:#10263f;
  --cfx-muted:#66788a;
  --cfx-line:#d9e4ee;
  --cfx-bg:#f4f7fb;
  --cfx-card:#fff;
  --cfx-blue:#205ea8;
  --cfx-blue-dark:#143a64;
  --cfx-cyan:#dff2f5;
  --cfx-mint:#dff4ec;
  --cfx-green:#2f9c7a;
  --cfx-orange:#f39b39;
  --cfx-danger:#c74343;
  --cfx-shadow:0 24px 64px rgba(16,38,63,.12);
  --cfx-radius:26px
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cfx-bg);color:var(--cfx-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.65}
button,input,textarea{font:inherit}
button{cursor:pointer}
.cfx-shell{width:min(1180px,calc(100% - 32px));margin-inline:auto}
.skip-link{position:fixed;top:-80px;left:16px;z-index:9999;background:#fff;color:var(--cfx-ink);padding:10px 14px;border-radius:10px;box-shadow:var(--cfx-shadow)}
.skip-link:focus{top:16px}

.cfx-header{position:sticky;top:0;z-index:90;background:rgba(255,255,255,.94);backdrop-filter:blur(18px);border-bottom:1px solid var(--cfx-line)}
.cfx-header__inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.cfx-brand{display:flex;align-items:center;gap:12px;color:var(--cfx-ink);text-decoration:none;font-weight:900}
.cfx-brand img,.cfx-brand__mark{width:44px;height:44px;border-radius:14px}
.cfx-brand__mark{display:grid;place-items:center;background:linear-gradient(145deg,var(--cfx-blue),var(--cfx-blue-dark));color:#fff;font-size:1.5rem;box-shadow:0 10px 24px rgba(32,94,168,.24)}
.cfx-nav{display:flex;align-items:center;gap:24px}
.cfx-nav a{color:#38526a;text-decoration:none;font-weight:760}
.cfx-menu-toggle{display:none;border:0;background:transparent}
.cfx-menu-toggle span{display:block;width:26px;height:2px;background:var(--cfx-ink);margin:5px}

.cfx-hero{padding:74px 0 54px;background:radial-gradient(circle at 10% 10%,#e2f4f0 0,transparent 34%),radial-gradient(circle at 90% 20%,#e5eef9 0,transparent 36%)}
.cfx-hero__grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:72px;align-items:center}
.cfx-kicker{margin:0;color:var(--cfx-blue);font-size:.78rem;font-weight:900;letter-spacing:.17em}
.cfx-hero h1{font-size:clamp(2.8rem,6vw,5.6rem);line-height:.98;letter-spacing:-.06em;margin:12px 0 24px}
.cfx-hero__lead{max-width:720px;color:var(--cfx-muted);font-size:1.18rem}
.cfx-hero__badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.cfx-hero__badges span{background:#fff;border:1px solid var(--cfx-line);padding:8px 13px;border-radius:999px;font-weight:760;box-shadow:0 8px 20px rgba(16,38,63,.06)}
.cfx-hero__visual{padding:24px;border-radius:34px;background:linear-gradient(145deg,#153b63,#0c233a);box-shadow:var(--cfx-shadow);transform:rotate(2deg)}
.cfx-preview-screen{background:#edf6df;border-radius:16px;padding:18px;text-align:right;font-size:2rem;font-weight:900;color:#183223}
.cfx-preview-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:14px}
.cfx-preview-grid i{height:52px;display:grid;place-items:center;background:#fff;border-radius:12px;font-style:normal;font-weight:850}

.cfx-tool-zone{padding:34px 0 78px}
.cfx-workbench{overflow:hidden;background:#fff;border:1px solid var(--cfx-line);border-radius:30px;box-shadow:var(--cfx-shadow)}
.cfx-workbench__head{display:flex;justify-content:space-between;align-items:end;gap:30px;padding:30px 34px;background:linear-gradient(135deg,#fff,#eef6fb);border-bottom:1px solid var(--cfx-line)}
.cfx-workbench__head h2{font-size:clamp(1.8rem,3.3vw,2.7rem);line-height:1.15;letter-spacing:-.035em;margin:.35rem 0}
.cfx-workbench__head p:last-child{max-width:690px;color:var(--cfx-muted)}
.cfx-mode-switch{display:flex;background:#e4edf4;padding:5px;border-radius:15px}
.cfx-mode-switch button{border:0;background:transparent;padding:12px 17px;border-radius:11px;font-weight:850;color:#48627a}
.cfx-mode-switch button.is-active{background:#fff;color:var(--cfx-blue-dark);box-shadow:0 5px 15px rgba(16,38,63,.12)}
.cfx-workbench__body{padding:34px;background:linear-gradient(135deg,#edf8f7,#faf5ec)}
.cfx-view[hidden]{display:none!important}
.cfx-calculator,.cfx-scientific{max-width:540px;margin:auto;padding:18px;border-radius:25px;background:#102940;box-shadow:0 24px 48px rgba(16,38,63,.28)}
.cfx-scientific{max-width:980px}

.cfx-screen{position:relative;display:flex;flex-direction:column;justify-content:end;min-height:118px;margin-bottom:14px;padding:18px;border:6px solid #2b4b5f;border-radius:18px;background:#edf6df;text-align:right}
.cfx-screen__expression{min-height:27px;color:#62755f}
.cfx-screen__result{width:100%;border:0;background:transparent;text-align:right;font-size:2.65rem;font-weight:900;color:#153223;outline:none}
.cfx-memory-flag{position:absolute;top:14px;left:16px;background:var(--cfx-green);color:#fff;border-radius:999px;padding:3px 8px;font-weight:900;font-size:.76rem}
.cfx-memory-keys{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:9px}
.cfx-memory-keys button{min-height:42px;border:1px solid #44627a;background:#193a54;color:#d9e8f4;border-radius:10px;font-weight:800}
.cfx-keypad,.cfx-science-keypad{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.cfx-keypad button,.cfx-science-keypad button,.cfx-function-grid button,.cfx-science-actions button{min-height:58px;border:0;border-radius:13px;background:#fff;color:var(--cfx-ink);font-weight:850;box-shadow:0 3px 0 #b8cad8;transition:transform .11s ease,filter .11s ease}
.cfx-keypad button:hover,.cfx-science-keypad button:hover,.cfx-function-grid button:hover,.cfx-science-actions button:hover{filter:brightness(.98);transform:translateY(-1px)}
.cfx-keypad button:active,.cfx-science-keypad button:active,.cfx-function-grid button:active,.cfx-science-actions button:active{transform:translateY(2px);box-shadow:none}
.cfx-keypad .is-operator,.cfx-science-keypad .is-operator{background:#d9ebfb;color:#12528f}
.cfx-keypad .is-clear,.cfx-science-keypad .is-clear{background:#fff1f1;color:var(--cfx-danger)}
.cfx-keypad .is-equals,.cfx-science-keypad .is-equals{background:var(--cfx-green);color:#fff;box-shadow:0 3px 0 #1b715b}
.cfx-keypad .is-zero,.cfx-science-keypad .is-zero{grid-column:span 2}
.cfx-help{margin:15px 0 0;text-align:center;color:var(--cfx-muted)}

.cfx-scientific__bar{display:flex;justify-content:space-between;gap:15px;margin-bottom:12px}
.cfx-angle-switch{display:flex;gap:6px}
.cfx-angle-switch button,.cfx-history-button{border:1px solid #49667c;background:#173b56;color:#dceaf5;border-radius:10px;padding:8px 12px;font-weight:800}
.cfx-angle-switch button.is-active{background:var(--cfx-mint);color:#175d50}
.cfx-screen--science{min-height:142px}
.cfx-science-input{width:100%;border:0;background:transparent;text-align:right;font-size:1.15rem;color:#173222;outline:none}
.cfx-science-result{font-size:2.35rem;font-weight:900;color:#153223}
.cfx-science-status{color:#5d735f}
.cfx-history{margin-bottom:14px;padding:15px;border:1px solid #385972;border-radius:15px;background:#17364f;color:#fff}
.cfx-history__head{display:flex;align-items:center;justify-content:space-between;gap:15px}
.cfx-history__head button{border:0;border-radius:9px;padding:8px 10px;font-weight:800}
.cfx-history-item{display:flex;justify-content:space-between;gap:18px;width:100%;margin-top:8px;padding:10px 12px;border:1px solid #4e6b80;border-radius:10px;background:#20445f;color:#fff;text-align:left}
.cfx-science-layout{display:grid;grid-template-columns:1.05fr .95fr;gap:14px}
.cfx-function-groups{display:grid;gap:10px}
.cfx-function-card{padding:13px;border-radius:17px;background:#17364f}
.cfx-function-card h3{margin:0 0 10px;color:#dfeaf3;font-size:.9rem}
.cfx-function-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.cfx-function-grid button{min-height:50px}
.cfx-science-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:9px}
.cfx-science-keypad .is-equals{grid-column:3/-1}
.cfx-empty{color:#c5d7e5}

.cfx-benefits,.cfx-content-zone,.cfx-faq-zone{padding:72px 0}
.cfx-section-title{max-width:760px;margin-bottom:30px}
.cfx-section-title h2{font-size:clamp(2rem,4vw,3rem);line-height:1.12;letter-spacing:-.04em;margin:.5rem 0}
.cfx-benefit-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px}
.cfx-benefit-grid article{padding:24px;border:1px solid var(--cfx-line);border-radius:20px;background:#fff;box-shadow:0 12px 32px rgba(16,38,63,.07)}
.cfx-benefit-grid article>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#e7f1fb;color:var(--cfx-blue);font-weight:900}
.cfx-benefit-grid h3{margin:15px 0 6px}
.cfx-benefit-grid p{margin:0;color:var(--cfx-muted)}

.cfx-prose{padding:clamp(26px,5vw,54px);border:1px solid var(--cfx-line);border-radius:24px;background:#fff;box-shadow:var(--cfx-shadow)}
.cfx-prose--home{max-width:980px;margin:auto}
.cfx-prose h2{font-size:2rem;line-height:1.25;letter-spacing:-.025em;margin:1.7em 0 .55em}
.cfx-prose h2:first-child{margin-top:0}
.cfx-prose h3{margin-top:1.5em}
.cfx-prose p,.cfx-prose li{color:#435d73}
.cfx-faq-shell{max-width:980px}
.cfx-faq-list details,.cfx-side-faq details{margin:10px 0;padding:16px 18px;border:1px solid var(--cfx-line);border-radius:15px;background:#fff}
.cfx-faq-list summary,.cfx-side-faq summary{display:flex;justify-content:space-between;gap:16px;font-weight:850;cursor:pointer}
.cfx-faq-list details[open] summary span{transform:rotate(45deg)}

.cfx-page-hero{padding:58px 0 30px}
.cfx-page-hero__inner{max-width:900px}
.cfx-breadcrumbs{display:flex;gap:8px;color:var(--cfx-muted);font-size:.94rem}
.cfx-page-hero h1{font-size:clamp(2.4rem,5vw,4.4rem);line-height:1.03;letter-spacing:-.05em;margin:14px 0}
.cfx-page-intro{font-size:1.12rem;color:var(--cfx-muted)}
.cfx-document{padding:24px 0 80px}
.cfx-document__layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;align-items:start}
.cfx-side-faq{position:sticky;top:96px}
.cfx-contact{display:grid;gap:16px;margin-top:28px}
.cfx-contact__row{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.cfx-contact label{display:grid;gap:7px;font-weight:750}
.cfx-contact input,.cfx-contact textarea{width:100%;padding:12px;border:1px solid #b9c9d6;border-radius:11px;background:#fff}
.cfx-primary{justify-self:start;border:0;border-radius:11px;background:var(--cfx-blue-dark);color:#fff;padding:12px 18px;font-weight:850}
.hp-field{position:absolute;left:-9999px}
.cfx-alert{padding:13px 15px;border-radius:12px}
.is-success{background:#e2f7ee;color:#155e4d}
.is-error{background:#fff0f0;color:#9e2f2f}

.cfx-footer{padding:50px 0;background:#0e263c;color:#d9e7f2}
.cfx-footer__grid{display:grid;grid-template-columns:1.25fr .8fr 1fr;gap:35px}
.cfx-footer__about p,.cfx-footer__note{color:#9eb5c7}
.cfx-footer__links{display:grid;gap:8px}
.cfx-footer a{color:#d9e7f2;text-decoration:none}

@media(max-width:940px){
  .cfx-hero__grid,.cfx-document__layout,.cfx-footer__grid{grid-template-columns:1fr}
  .cfx-hero__visual{max-width:480px}
  .cfx-benefit-grid{grid-template-columns:repeat(2,1fr)}
  .cfx-side-faq{position:static}
  .cfx-science-layout{grid-template-columns:1fr}
}
@media(max-width:760px){
  .cfx-menu-toggle{display:block}
  .cfx-nav{display:none;position:absolute;top:76px;left:16px;right:16px;flex-direction:column;align-items:stretch;padding:15px;border:1px solid var(--cfx-line);border-radius:16px;background:#fff;box-shadow:var(--cfx-shadow)}
  .cfx-nav.is-open{display:flex}
  .cfx-workbench__head{flex-direction:column;align-items:stretch}
  .cfx-mode-switch{width:100%}
  .cfx-mode-switch button{flex:1}
  .cfx-workbench__body{padding:18px}
  .cfx-contact__row{grid-template-columns:1fr}
}
@media(max-width:560px){
  .cfx-shell{width:min(100% - 20px,1180px)}
  .cfx-hero{padding-top:48px}
  .cfx-hero__grid{gap:34px}
  .cfx-hero__visual{padding:16px}
  .cfx-benefit-grid{grid-template-columns:1fr}
  .cfx-workbench{border-radius:20px}
  .cfx-workbench__head{padding:21px}
  .cfx-calculator,.cfx-scientific{padding:11px;border-radius:18px}
  .cfx-keypad button,.cfx-science-keypad button{min-height:52px}
  .cfx-function-grid{grid-template-columns:repeat(3,1fr)}
  .cfx-function-grid button{min-height:46px}
  .cfx-footer__grid{text-align:center}
  .cfx-footer__links{justify-items:center}
}
