:root {
  --bg:#0a121c; --surface:#101d2b; --surface2:#152434; --surface3:#182b3c;
  --text:#f2f7fb; --muted:#98aebe; --faint:#6f8a9d; --stroke:#2b4152;
  --aqua:#79e6d5; --aqua-strong:#27b8ac; --aqua-soft:#123e44;
  --warn:#f7ba65; --warn-soft:#4a3528; --red:#f28e8e;
  --hero:#0d1b29; --hero-2:#102b3c; --hero-grid:rgba(170,221,232,.075);
  --nav:rgba(10,18,28,.94); --shadow:0 24px 65px rgba(0,0,0,.23);
  --panel-line:rgba(191,223,235,.16); --button-text:#08242b;
  --result-bg:linear-gradient(140deg,#102738,#102331 72%,#122836);
  --result-text:#f3faff; --result-muted:#b2c9d7; --result-track:#284457;
  --result-panel:rgba(255,255,255,.038); --result-line:rgba(195,231,237,.15);
  --metric-bg:rgba(255,255,255,.045); --metric-text:#f2faff;
}
html[data-theme="light"] {
  --bg:#f0f5f8; --surface:#fff; --surface2:#f7fafc; --surface3:#eaf2f7;
  --text:#122739; --muted:#5e7487; --faint:#788da0; --stroke:#d7e3eb;
  --aqua:#087e80; --aqua-strong:#087e80; --aqua-soft:#e7f5f2;
  --warn:#b46d12; --warn-soft:#fff2df; --red:#c34242;
  --hero:#e7f2f5; --hero-2:#dbeef1; --hero-grid:rgba(24,94,119,.075);
  --nav:rgba(255,255,255,.94); --shadow:0 18px 40px rgba(25,61,82,.075);
  --panel-line:#d9e5ed; --button-text:#fff;
  --result-bg:linear-gradient(140deg,#fff,#f3f9fc 74%,#eff8f8);
  --result-text:#152d40; --result-muted:#637a8d; --result-track:#d8e7eb;
  --result-panel:#f4f9fb; --result-line:#dce8ef;
  --metric-bg:#eef6f8; --metric-text:#143043;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--text); font:15px/1.55 Inter,"Segoe UI",Roboto,-apple-system,BlinkMacSystemFont,Arial,sans-serif; transition:background-color .22s,color .22s; }
button,input { font:inherit; }
button { cursor:pointer; }
button:focus-visible,input:focus-visible,a:focus-visible { outline:3px solid var(--aqua); outline-offset:3px; }
a { color:inherit; }
button:disabled { cursor:not-allowed; opacity:.5; }
[hidden] { display:none!important; }
.shell { width:min(1220px,calc(100% - 64px)); margin-inline:auto; }
.topbar { min-height:82px; border-bottom:1px solid var(--stroke); background:var(--nav); position:relative; z-index:10; backdrop-filter:blur(12px); }
.topbar .shell { min-height:82px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand { display:flex; align-items:center; gap:13px; min-width:0; text-decoration:none; }
.brandmark { width:45px; height:45px; display:grid; place-items:center; background:#0c3741; border:1px solid #3a7a83; border-radius:13px; color:#8aefda; box-shadow:inset 0 0 0 1px #ffffff0b; flex:none; }
.brandmark svg { width:29px; height:29px; }
.brandname { display:flex; flex-direction:column; gap:1px; }
.brandname strong { font-size:15px; letter-spacing:.035em; line-height:1.12; }
.brandname small { font-size:10px; color:var(--muted); text-transform:uppercase; letter-spacing:.16em; font-weight:720; }
.top-actions { display:flex; align-items:center; gap:22px; }
.version-tag { color:var(--muted); font-size:11px; font-weight:750; letter-spacing:.10em; text-transform:uppercase; white-space:nowrap; }
.theme-switch { display:flex; align-items:center; gap:9px; border:1px solid var(--stroke); background:var(--surface); color:var(--text); border-radius:100px; padding:9px 14px; font-size:12px; font-weight:770; transition:border-color .2s,transform .2s; }
.theme-switch:hover { border-color:var(--aqua); transform:translateY(-1px); }
.theme-switch svg { height:16px; width:16px; }
.icon-moon { display:none; }
html[data-theme="light"] .icon-sun { display:none; }
html[data-theme="light"] .icon-moon { display:block; }
.hero { border-bottom:1px solid var(--stroke); position:relative; overflow:hidden; isolation:isolate; background:radial-gradient(ellipse 650px 400px at 82% 33%,rgba(38,186,171,.17),transparent 72%),linear-gradient(115deg,var(--hero) 20%,var(--hero-2)); }
.hero::before { content:""; position:absolute; inset:0; opacity:.72; pointer-events:none; z-index:-1; background-image:linear-gradient(var(--hero-grid) 1px,transparent 1px),linear-gradient(90deg,var(--hero-grid) 1px,transparent 1px); background-size:38px 38px; mask-image:linear-gradient(90deg,transparent 5%,black 75%); }
.hero::after { content:""; position:absolute; right:-170px; top:-270px; width:600px; height:600px; border-radius:50%; border:1px solid rgba(115,222,210,.12); box-shadow:0 0 0 100px rgba(115,222,210,.022),0 0 0 200px rgba(115,222,210,.015); pointer-events:none; z-index:-1; }
.hero-inner { min-height:360px; display:grid; grid-template-columns:1.05fr .95fr; align-items:center; gap:20px; }
.hero-copy { padding:72px 0 68px; position:relative; z-index:2; }
.kicker { display:none; }
h1 { font-size:clamp(42px,5.1vw,72px); letter-spacing:-.048em; line-height:1.04; max-width:780px; margin:8px 0 10px; font-weight:820; color:var(--aqua); }
h1 span { color:inherit; }
.hero-description { display:none; }
.hero-chips { display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; }
.hero-chips span { display:inline-flex; gap:7px; align-items:center; color:var(--muted); background:rgba(122,196,204,.07); border:1px solid var(--stroke); padding:8px 12px; border-radius:999px; font-size:11px; font-weight:710; }
.hero-chips svg { width:14px; height:14px; color:var(--aqua); }
.hero-visual { display:flex; align-items:center; justify-content:center; min-height:340px; position:relative; overflow:hidden; }
.blueprint { width:100%; max-width:610px; opacity:.96; filter:drop-shadow(0 22px 38px #06101b22); }
.blueprint .steel { stroke:#4e8598; }
.blueprint .glow { stroke:#73ead5; }
.blueprint .dim { stroke:#598093; }
html[data-theme="light"] .blueprint .steel { stroke:#427488; }
html[data-theme="light"] .blueprint .glow { stroke:#078887; }
html[data-theme="light"] .blueprint .dim { stroke:#668d9d; }
.blueprint text { fill:var(--aqua); font:700 10px Arial,sans-serif; letter-spacing:2px; }
.blueprint .dotted { stroke-dasharray:4 8; }
.scene-caption { position:absolute; right:5%; bottom:25px; display:flex; gap:8px; align-items:center; color:var(--muted); letter-spacing:.12em; font-weight:770; font-size:10px; text-transform:uppercase; }
.scene-caption b { display:inline-block; width:5px; height:5px; background:var(--aqua); border-radius:50%; }
.content { padding-top:48px; padding-bottom:65px; }
.section-label { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:21px; }
.section-label .left { display:flex; gap:14px; align-items:center; }
.section-no { display:grid; place-items:center; width:42px; height:42px; border:1px solid var(--stroke); border-radius:12px; color:var(--aqua); background:var(--surface); font-weight:800; font-size:12px; letter-spacing:.06em; }
.section-heading h2 { margin:0; font-size:22px; letter-spacing:-.03em; line-height:1.2; }
.section-heading p { margin:3px 0 0; font-size:12px; color:var(--muted); }
.micro-status { display:inline-flex; align-items:center; gap:8px; color:var(--muted); font-size:11px; font-weight:750; letter-spacing:.04em; }
.micro-status::before { content:""; width:7px; height:7px; background:var(--aqua); box-shadow:0 0 0 3px var(--aqua-soft); border-radius:50%; }
.workbench { display:grid; grid-template-columns:minmax(320px,.80fr) minmax(0,1.20fr); gap:22px; align-items:stretch; }
.panel { background:var(--surface); border:1px solid var(--stroke); border-radius:23px; box-shadow:var(--shadow); overflow:hidden; }
.inputs-panel { padding:31px 31px 25px; }
.panel-head { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:24px; }
.panel-title { display:flex; align-items:center; gap:11px; min-width:0; }
.panel-title .panel-icon { display:grid; place-items:center; color:var(--aqua); background:var(--aqua-soft); width:36px; height:36px; border-radius:11px; flex:none; }
.panel-icon svg { width:18px; height:18px; }
.panel-title h3 { margin:0; font-size:17px; letter-spacing:-.022em; }
.tiny-tag { color:var(--muted); font-size:10px; font-weight:750; border:1px solid var(--stroke); padding:5px 10px; border-radius:80px; white-space:nowrap; }
.form-field { margin:21px 0; }
.form-field label { display:block; font-size:13px; font-weight:740; margin-bottom:10px; }
.field-main { position:relative; }
.field-main input { width:100%; height:67px; color:var(--text); background:var(--surface2); border:1px solid var(--stroke); border-radius:13px; outline:none; padding:0 55px 0 17px; font-size:23px; font-weight:750; letter-spacing:-.025em; font-variant-numeric:tabular-nums; transition:box-shadow .2s,border-color .2s; }
.field-main input:focus { border-color:var(--aqua); box-shadow:0 0 0 4px var(--aqua-soft); }
.field-main input::placeholder { color:var(--faint); opacity:.68; }
.field-main input[type=number] { appearance:textfield; -moz-appearance:textfield; }
.field-main input[type=number]::-webkit-outer-spin-button,.field-main input[type=number]::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.field-unit { position:absolute; right:15px; top:50%; transform:translateY(-50%); font-size:12px; font-weight:770; letter-spacing:.04em; color:var(--muted); pointer-events:none; }
.field-help { color:var(--faint); font-size:11px; line-height:1.55; margin:9px 0 0; }
.field-split { display:flex; justify-content:space-between; gap:10px; align-items:baseline; }
.field-split output { color:var(--aqua); font-size:12px; font-weight:790; font-variant-numeric:tabular-nums; }
.resurs-slider { display:block; width:100%; margin:17px 0 4px; height:5px; accent-color:var(--aqua-strong); cursor:pointer; }
.slider-labels { display:flex; justify-content:space-between; color:var(--faint); font-size:10px; margin-top:8px; }
.cta-row { display:flex; align-items:stretch; gap:10px; margin-top:30px; }
.primary-btn { display:flex; gap:10px; align-items:center; justify-content:center; flex:1; border:1px solid transparent; border-radius:12px; background:var(--aqua); color:var(--button-text); font-weight:810; padding:14px 17px; min-height:52px; transition:filter .2s,transform .16s; }
.primary-btn:hover { filter:brightness(1.06); transform:translateY(-1px); }
.primary-btn svg { width:17px; height:17px; }
.secondary-btn { display:grid; place-items:center; width:52px; flex:none; background:var(--surface2); color:var(--muted); border:1px solid var(--stroke); border-radius:12px; }
.secondary-btn:hover { color:var(--aqua); border-color:var(--aqua); }
.secondary-btn svg { width:19px; height:19px; }
.field-error { margin:13px 0 0; min-height:22px; font-size:12px; font-weight:710; color:var(--red); }
.demo-tip { display:flex; justify-content:space-between; align-items:center; gap:16px; padding-top:18px; margin-top:8px; border-top:1px solid var(--stroke); font-size:11px; color:var(--muted); }
.demo-tip button { font-size:11px; font-weight:790; color:var(--aqua); background:none; border:none; text-decoration:underline; text-underline-offset:3px; padding:2px 0; white-space:nowrap; }
.result-panel { background:var(--result-bg); color:var(--result-text); padding:31px; border-color:var(--panel-line); position:relative; }
.result-panel::before { content:""; position:absolute; right:-180px; top:-230px; width:430px; height:430px; background:radial-gradient(circle,rgba(91,228,208,.11),transparent 65%); pointer-events:none; }
.result-panel .panel-head { position:relative; z-index:1; margin-bottom:21px; }
.result-panel .panel-icon { background:rgba(105,223,204,.13); }
.result-panel .tiny-tag { color:var(--result-muted); border-color:var(--result-line); }
.result-panel .panel-title h3 { color:var(--result-text); }
.result-empty { min-height:355px; display:grid; place-content:center; justify-items:center; text-align:center; gap:12px; color:var(--result-muted); }
.result-empty svg { width:67px; height:67px; color:var(--aqua); }
.result-empty strong { font-size:22px; color:var(--result-text); }
.result-empty p { max-width:350px; margin:0; font-size:13px; }
.score-stage { display:grid; grid-template-columns:240px 1fr; gap:22px; align-items:center; }
.dial { width:240px; height:240px; position:relative; display:grid; place-items:center; }
.dial-svg { position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); overflow:visible; }
.dial-track { fill:none; stroke:var(--result-track); stroke-width:15; }
.dial-progress { fill:none; stroke:var(--aqua); stroke-width:15; stroke-linecap:round; transition:stroke-dashoffset .65s ease,stroke .3s; }
.dial.matched .dial-progress { stroke:var(--warn); }
.dial-inner { text-align:center; display:flex; flex-direction:column; align-items:center; gap:1px; position:relative; z-index:1; }
.dial-inner .dial-label { color:var(--result-muted); font-size:11px; text-transform:uppercase; letter-spacing:.17em; font-weight:790; }
.dial-inner strong { font-variant-numeric:tabular-nums; color:var(--result-text); font-size:clamp(43px,4.6vw,62px); font-weight:850; letter-spacing:-.06em; line-height:1.12; }
.dial-inner small { color:var(--result-muted); font-size:11px; font-weight:700; }
.score-summary { padding-left:5px; }
.result-flag { display:inline-flex; align-items:center; gap:7px; padding:5px 9px; border-radius:7px; color:var(--aqua); border:1px solid var(--result-line); font-size:10px; text-transform:uppercase; letter-spacing:.075em; font-weight:820; }
.result-flag.demo { color:var(--result-muted); }
.result-flag::before { content:""; width:6px; height:6px; background:currentColor; border-radius:50%; }
.score-summary h4 { margin:15px 0 9px; font-size:clamp(20px,2.05vw,26px); line-height:1.2; letter-spacing:-.035em; }
.score-summary p { margin:0; font-size:12px; line-height:1.75; color:var(--result-muted); }
.score-summary .warning-title { color:var(--warn); }
.threshold-wrap { margin-top:22px; }
.threshold-bar { background:var(--result-track); height:8px; border-radius:100px; position:relative; }
.threshold-fill { width:0; height:100%; background:var(--aqua); border-radius:100px; transition:width .55s ease,background .2s; }
.threshold-fill.matched { background:var(--warn); }
.threshold-target { left:80%; top:-7px; position:absolute; height:22px; border-left:2px dashed var(--result-text); opacity:.85; }
.threshold-scale { display:flex; justify-content:space-between; align-items:center; color:var(--result-muted); font-size:10px; margin-top:11px; font-variant-numeric:tabular-nums; }
.threshold-scale strong { color:var(--result-text); font-size:10px; }
.metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:28px; }
.metric { border:1px solid var(--result-line); background:var(--metric-bg); min-height:83px; border-radius:12px; padding:12px 12px; }
.metric span { display:block; font-size:10px; color:var(--result-muted); line-height:1.35; min-height:28px; }
.metric strong { display:block; font-size:23px; line-height:1.17; font-weight:825; color:var(--metric-text); font-variant-numeric:tabular-nums; letter-spacing:-.035em; margin-top:6px; }
.formula-strip { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:9px; padding:13px 14px; background:var(--result-panel); border:1px solid var(--result-line); border-radius:11px; margin-top:15px; font-size:11px; color:var(--result-muted); }
.formula-strip strong { font-size:12px; color:var(--result-text); font-variant-numeric:tabular-nums; }
.formula-strip .dot { color:var(--aqua); padding-inline:2px; }
.print-btn { display:inline-flex; gap:8px; align-items:center; background:transparent; border:1px solid var(--result-line); color:var(--result-muted); border-radius:9px; padding:9px 12px; font-size:11px; font-weight:790; margin-top:15px; }
.print-btn:hover { border-color:var(--aqua); color:var(--result-text); }
.print-btn svg { width:14px; height:14px; }
.boundary { font-size:11px; margin:13px 0 0; color:var(--warn); line-height:1.5; }
.below { display:grid; grid-template-columns:1.04fr .96fr; gap:22px; margin-top:24px; }
.info-panel { padding:29px 30px; box-shadow:none; }
.info-panel h3 { margin:0; font-size:17px; letter-spacing:-.025em; }
.info-panel .subcopy { font-size:12px; color:var(--muted); margin:7px 0 21px; }
.steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.step { border:1px solid var(--stroke); background:var(--surface2); padding:15px 13px; border-radius:12px; }
.step .number { color:var(--aqua); font-size:10px; font-weight:820; letter-spacing:.12em; }
.step strong { display:block; font-size:13px; margin:9px 0 5px; }
.step p { margin:0; font-size:11px; line-height:1.6; color:var(--muted); }
.formula-callout { margin-top:16px; padding:14px 16px; border:1px solid var(--stroke); border-radius:12px; display:flex; justify-content:space-between; gap:14px; align-items:center; }
.formula-callout span { color:var(--muted); font-size:11px; }
.formula-callout strong { font-size:20px; font-variant-numeric:tabular-nums; white-space:nowrap; letter-spacing:-.025em; }
.age-table { width:100%; border-collapse:separate; border-spacing:0 5px; font-size:12px; }
.age-table th { text-align:left; color:var(--faint); font-weight:740; font-size:10px; padding:0 11px 7px; }
.age-table td { padding:10px 11px; background:var(--surface2); border-top:1px solid var(--stroke); border-bottom:1px solid var(--stroke); font-variant-numeric:tabular-nums; }
.age-table td:first-child { border-left:1px solid var(--stroke); border-radius:9px 0 0 9px; }
.age-table td:last-child { border-right:1px solid var(--stroke); border-radius:0 9px 9px 0; font-weight:790; }
.age-table tr.active td { background:var(--aqua-soft); border-color:var(--aqua-strong); }
.age-table tr.active td:first-child { color:var(--aqua); font-weight:820; }
.age-table .age-label { white-space:nowrap; }
.age-footnote { margin:13px 0 0; color:var(--faint); font-size:10px; line-height:1.55; }
.notice { display:flex; align-items:flex-start; gap:14px; padding:21px 24px; border:1px solid var(--stroke); border-radius:14px; background:var(--surface); margin-top:24px; }
.notice svg { flex:none; width:20px; height:20px; color:var(--aqua); margin-top:2px; }
.notice h3 { margin:0 0 5px; font-size:13px; }
.notice p { margin:0; font-size:11px; color:var(--muted); line-height:1.75; }
.site-footer { border-top:1px solid var(--stroke); padding:22px 0 37px; color:var(--faint); font-size:10px; }
.site-footer .shell { display:flex; justify-content:space-between; gap:15px; }
.site-footer strong { font-size:11px; letter-spacing:.05em; color:var(--muted); }
@media (max-width:1090px) { .workbench { grid-template-columns:minmax(300px,.89fr) minmax(0,1.11fr); } .score-stage { grid-template-columns:190px 1fr; gap:10px; } .dial { width:190px; height:190px; } .dial-inner strong { font-size:48px; } .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .metric { min-height:78px; } .hero-inner { grid-template-columns:1.15fr .85fr; } }
@media (max-width:830px) { .shell { width:min(100% - 38px,700px); } .hero-inner { grid-template-columns:1fr; } .hero-copy { padding:44px 0 0; } .hero-visual { min-height:225px; max-height:255px; } .blueprint { max-width:490px; } .workbench,.below { grid-template-columns:1fr; } .score-stage { grid-template-columns:240px 1fr; gap:24px; } .dial { width:240px; height:240px; } .metrics { grid-template-columns:repeat(4,minmax(0,1fr)); } .scene-caption { bottom:5px; } }
@media (max-width:560px) { .shell { width:calc(100% - 32px); } .topbar,.topbar .shell { min-height:71px; } .brandmark { width:39px; height:39px; } .brandname strong { font-size:13px; } .brandname small { font-size:9px; letter-spacing:.10em; } .version-tag { display:none; } .theme-switch { padding:9px 10px; } .theme-switch .theme-text { display:none; } .hero-copy { padding:32px 0 0; } h1 { font-size:34px; } .hero-chips { gap:7px; } .hero-chips span { font-size:10px; padding:6px 9px; } .hero-visual { min-height:175px; max-height:200px; } .content { padding-top:32px; } .section-heading h2 { font-size:19px; } .micro-status { display:none; } .inputs-panel,.result-panel { padding:22px 19px; border-radius:18px; } .panel-title h3 { font-size:15px; } .score-stage { grid-template-columns:1fr; gap:2px; justify-items:center; } .dial { width:210px; height:210px; } .dial-inner strong { font-size:51px; } .score-summary { padding:0 2px 15px; text-align:left; width:100%; } .score-summary h4 { margin-top:10px; font-size:23px; } .threshold-wrap { margin-top:16px; } .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .metric strong { font-size:22px; } .steps { grid-template-columns:1fr; } .info-panel { padding:22px 18px; } .notice { padding:18px; } .site-footer .shell { flex-direction:column; } .age-table th,.age-table td { padding-left:8px; padding-right:8px; font-size:11px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
@media print { :root,html[data-theme="light"] { --bg:#fff; --surface:#fff; --surface2:#fff; --text:#142633; --muted:#475d6f; --faint:#607387; --stroke:#bdcbd3; --result-bg:#fff; --result-text:#142633; --result-muted:#475d6f; --result-track:#d1dfe5; --result-line:#bdcbd3; --result-panel:#fff; --metric-bg:#fff; --metric-text:#142633; --aqua:#156e76; --warn:#9f5804; } body { background:#fff; color:#142633; font-size:12px; } .topbar,.hero-visual,.theme-switch,.cta-row,.demo-tip,.print-btn,.site-footer,.below,.scene-caption,.resurs-slider,.slider-labels { display:none!important; } .hero { background:#fff!important; border:0; } .hero::before,.hero::after,.result-panel::before { display:none!important; } .hero-inner { min-height:0; display:block; } .hero-copy { padding:0 0 15px; } h1 { font-size:28px; margin:7px 0; } .hero-chips { display:none; } .content { padding:10px 0; } .workbench { grid-template-columns:1fr 1.15fr; gap:12px; } .panel { box-shadow:none; border:1px solid #bdcbd3; break-inside:avoid; } .inputs-panel,.result-panel { padding:14px; } .field-main input { height:44px; font-size:17px; } .form-field { margin:10px 0; } .score-stage { display:flex; gap:12px; } .dial { width:150px; height:150px; } .dial-inner strong { font-size:36px; } .score-summary h4 { font-size:16px; } .metrics { margin-top:12px; } .metric { min-height:57px; padding:7px; } .metric span { min-height:0; } .metric strong { font-size:17px; } .notice { margin-top:10px; padding:11px; break-inside:avoid; } .shell { width:100%; } }
