:root{--text:#2C2C2B;--muted:#6F6C67;--canvas:#fff;--soft:#F9F8F7;--surf:#F0EFED;--border:#E6E5E3;
--blue:#2783DE;--blue-soft:#E5F2FC;--green:#2F8A5B;--green-soft:#E8F1EC;--orange:#B9671F;--orange-soft:#FBEBDE;--red:#C9473B;--red-soft:#FCE9E7;
--r:8px;--shadow:0 1px 2px rgba(0,0,0,.05),0 4px 12px rgba(0,0,0,.04)}
*{box-sizing:border-box}
html,body{margin:0;background:var(--soft);color:var(--text);font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:24px;padding:0 24px;height:60px;background:#fff;border-bottom:1px solid var(--border)}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:18px;color:var(--text)}
.brand:hover{text-decoration:none}
.logo{width:26px;height:26px;border-radius:6px;background:linear-gradient(135deg,#1f5fb0,#2783DE);position:relative}
.logo:after{content:"";position:absolute;inset:7px;border:2px solid #fff;border-radius:3px;transform:rotate(45deg)}
#nav{display:flex;gap:4px;flex:1}
#nav a{padding:8px 12px;border-radius:var(--r);color:var(--muted);font-weight:500;min-height:40px;display:flex;align-items:center}
#nav a.on,#nav a:hover{background:var(--surf);color:var(--text);text-decoration:none}
#nav .badge{margin-left:6px}
#userbox{display:flex;align-items:center;gap:12px;font-size:14px;color:var(--muted)}
.avatar{width:34px;height:34px;border-radius:50%;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;font-weight:700}
main{max-width:1120px;margin:0 auto;padding:32px 24px 64px}
main.wide{max-width:none;padding:0}
h1{font-size:30px;line-height:1.25;margin:0 0 8px}
h2{font-size:22px;margin:32px 0 12px}
h3{font-size:18px;margin:0 0 4px}
.lead{color:var(--muted);margin:0 0 24px;max-width:720px}
.muted{color:var(--muted)}.small{font-size:14px}
.card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:24px}
.grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.between{justify-content:space-between}
.stack>*+*{margin-top:12px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:var(--r);border:1px solid var(--border);background:#fff;color:var(--text);font:inherit;font-weight:600;cursor:pointer}
.btn:hover{background:var(--surf);text-decoration:none}
.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn.primary:hover{background:#1d6fc0}
.btn.green{background:var(--green);border-color:var(--green);color:#fff}
.btn.danger{color:var(--red)}
.btn.sm{min-height:36px;padding:0 12px;font-size:14px}
.btn[disabled]{opacity:.5;cursor:not-allowed}
.badge{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;padding:2px 10px;border-radius:999px;background:var(--surf);color:var(--muted);white-space:nowrap}
.badge.blue{background:var(--blue-soft);color:#1b62aa}.badge.green{background:var(--green-soft);color:var(--green)}
.badge.orange{background:var(--orange-soft);color:var(--orange)}.badge.red{background:var(--red-soft);color:var(--red)}
label{display:block;font-weight:600;font-size:14px;margin-bottom:6px}
input,select,textarea{width:100%;font:inherit;padding:10px 12px;border:1px solid #CFCDC9;border-radius:var(--r);background:#fff;min-height:44px}
textarea{min-height:90px;resize:vertical}
.field+.field{margin-top:16px}
.auth{max-width:440px;margin:40px auto}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:24px}
.tabs a,.tabs button{padding:12px 16px;border:0;background:none;font:inherit;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;cursor:pointer;min-height:44px}
.tabs .on{color:var(--text);border-bottom-color:var(--blue)}
.ent{display:flex;gap:16px;align-items:flex-start}
.ent .mark{flex:none;width:52px;height:52px;border-radius:10px;display:grid;place-items:center;font-weight:800;color:#fff;font-size:17px}
.prod{display:flex;flex-direction:column;gap:12px}
.prod .thumb{height:170px;border-radius:8px;background:var(--surf) center/contain no-repeat;border:1px solid var(--border)}
table{width:100%;border-collapse:collapse;font-size:15px}
th,td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--border);vertical-align:top}
th{color:var(--muted);font-weight:600;font-size:13px;text-transform:uppercase;letter-spacing:.03em}
.tablewrap{overflow-x:auto}
.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:32px;align-items:center;margin-bottom:48px}
.hero img{width:100%;border-radius:12px;border:1px solid var(--border);background:#fff}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.step .n{width:30px;height:30px;border-radius:50%;background:var(--blue-soft);color:#1b62aa;font-weight:700;display:grid;place-items:center;margin-bottom:8px}
.progress{height:8px;background:var(--surf);border-radius:4px;overflow:hidden}.progress>i{display:block;height:100%;background:var(--green)}
.empty{text-align:center;padding:48px 24px;color:var(--muted)}
#toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#2C2C2B;color:#fff;padding:12px 18px;border-radius:8px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:50;max-width:90vw}
#toast.show{opacity:1}
.modal-bg{position:fixed;inset:0;background:rgba(0,0,0,.35);display:grid;place-items:center;z-index:40;padding:16px}
.modal{background:#fff;border-radius:12px;max-width:520px;width:100%;padding:24px;max-height:90vh;overflow:auto}
/* viewer */
.viewer{display:grid;grid-template-columns:300px 1fr 300px;height:calc(100vh - 60px - 49px)}
.vbar{display:flex;align-items:center;gap:12px;padding:6px 24px;background:#fff;border-bottom:1px solid var(--border);min-height:49px;flex-wrap:wrap}
.vbar .crumbs{font-weight:600}
.panel{background:#fff;overflow:auto;padding:16px;border-right:1px solid var(--border)}
.panel.right{border-right:0;border-left:1px solid var(--border)}
.panel h4{margin:0 0 8px;font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.stage{position:relative;background:linear-gradient(#f4f6f9,#e4e8ee);min-width:0}
.stage canvas{display:block;width:100%;height:100%}
.loading{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);font-weight:600}
.tree{font-size:14px;list-style:none;margin:0;padding:0}
.tree ul{list-style:none;margin:0;padding-left:14px;border-left:1px solid var(--border)}
.tree li>div{display:flex;align-items:center;gap:4px;padding:3px 4px;border-radius:6px;cursor:pointer;min-height:30px}
.tree li>div:hover{background:var(--surf)}
.tree li>div.sel{background:var(--blue-soft)}
.tree .tg{width:20px;height:20px;border:0;background:none;cursor:pointer;color:var(--muted);flex:none;padding:0}
.tree .nm{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tree .eye{border:0;background:none;cursor:pointer;opacity:.55;flex:none;width:24px;height:24px;padding:0}
.tree .eye.off{opacity:.2}
.tool{margin-bottom:20px}
.tool .row{gap:8px}
input[type=range]{min-height:auto;padding:0;border:0}
.seg{display:inline-flex;border:1px solid var(--border);border-radius:8px;overflow:hidden}
.seg button{border:0;background:#fff;padding:6px 12px;font:inherit;font-size:14px;cursor:pointer;min-height:36px}
.seg button.on{background:var(--blue);color:#fff}
.hint{position:absolute;left:16px;bottom:12px;font-size:13px;color:var(--muted);background:rgba(255,255,255,.8);padding:4px 10px;border-radius:6px}
.unitchips{display:flex;flex-wrap:wrap;gap:6px}
.unitchips button{border:1px solid var(--border);background:#fff;border-radius:999px;padding:4px 12px;font:inherit;font-size:13px;cursor:pointer;min-height:32px}
.unitchips button:hover{border-color:var(--blue);color:var(--blue)}
/* course */
.course{display:grid;grid-template-columns:280px 1fr;gap:32px;align-items:start}
.modlist{position:sticky;top:84px}
.modlist a{display:flex;gap:10px;align-items:center;padding:10px 12px;border-radius:8px;color:var(--text);min-height:44px}
.modlist a.on{background:#fff;border:1px solid var(--border)}
.modlist a:hover{text-decoration:none;background:var(--surf)}
.modlist .st{width:22px;height:22px;border-radius:50%;border:2px solid #CFCDC9;flex:none;display:grid;place-items:center;font-size:12px;color:#fff}
.modlist .st.ok{background:var(--green);border-color:var(--green)}
.lesson{max-width:760px}
.lesson p,.lesson li{max-width:72ch}
.lesson .note{background:var(--orange-soft);border-radius:8px;padding:12px 16px;margin:16px 0}
.lesson .show{margin:4px 0}
.q{border:1px solid var(--border);border-radius:10px;padding:16px;margin-bottom:12px;background:#fff}
.q .opt{display:flex;gap:10px;align-items:flex-start;padding:8px;border-radius:6px;cursor:pointer;font-weight:400}
.q .opt:hover{background:var(--soft)}
.q .opt input{width:18px;min-height:18px;margin-top:3px;flex:none}
.q.right{border-color:var(--green);background:var(--green-soft)}.q.wrong{border-color:var(--red);background:var(--red-soft)}
.q .expl{font-size:14px;margin-top:6px}
.sim{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.lcd{background:#1d2a22;color:#8ef0a8;font-family:Menlo,Consolas,monospace;border-radius:8px;padding:14px;min-height:96px}
.lamps{display:flex;flex-wrap:wrap;gap:8px}
.lamp{display:flex;align-items:center;gap:6px;font-size:13px;padding:4px 10px;border-radius:999px;background:var(--surf)}
.lamp i{width:10px;height:10px;border-radius:50%;background:#bbb}
.lamp.on i{background:#2fbf5f;box-shadow:0 0 6px #2fbf5f}.lamp.alarm.on i{background:#e2463a;box-shadow:0 0 6px #e2463a}
.cert{border:2px solid var(--blue);border-radius:12px;padding:40px;text-align:center;background:#fff}
@media (max-width:980px){.viewer{grid-template-columns:1fr;height:auto}.stage{height:60vh}.panel{border:0;border-bottom:1px solid var(--border);max-height:320px}
 .hero{grid-template-columns:1fr}.steps{grid-template-columns:1fr 1fr}.course{grid-template-columns:1fr}.modlist{position:static}.sim{grid-template-columns:1fr}}
@media (max-width:640px){.top{gap:8px;padding:0 12px;height:auto;min-height:60px;flex-wrap:wrap}#nav{order:3;width:100%;overflow-x:auto;padding-bottom:6px}#userbox .uname{display:none}
 main{padding:24px 16px 48px}.steps{grid-template-columns:1fr}h1{font-size:25px}}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
@media print{.top,.noprint{display:none!important}main{padding:0}}
/* product header */
.phead{display:flex;align-items:flex-end;justify-content:space-between;gap:8px 24px;padding:8px 24px 0;background:#fff;border-bottom:1px solid var(--border);flex-wrap:wrap;min-height:64px}
.phead .pt{margin:2px 0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:70vw}
.phead .tabs{border:0;margin:0}
.phead .tabs a{display:flex;align-items:center}
.tabs a:hover{text-decoration:none;color:var(--text)}
main.wide .viewer{height:calc(100vh - 60px - 64px - 49px);min-height:520px}
.unitchips button.on{background:var(--blue);border-color:var(--blue);color:#fff}
.pdf{display:block;width:100%;height:calc(100vh - 60px - 64px - 57px);border:0;background:#525659}
.lesson h3{margin-top:24px}
.show{margin:4px 4px 4px 0}
.ent .mark{flex:none}
@media (max-width:980px){main.wide .viewer{height:auto}}
@media (max-width:640px){.phead{padding:8px 12px 0}.phead .pt{max-width:90vw}.vbar{padding:6px 12px}}
#nav a,.tabs a,.tabs button{white-space:nowrap}
.tabs{overflow-x:auto;scrollbar-width:none}
@media (max-width:640px){#nav{flex:1 1 100%}.phead .tabs{width:100%}.modlist a{min-height:38px;padding:6px 10px}}
@media (max-width:980px){.viewer .stage{order:-1}}
/* ===== v2 ===== */
.stage3d{position:relative;overflow:hidden;user-select:none;-webkit-user-select:none}
.wm{position:absolute;inset:0;pointer-events:none;background-repeat:repeat;z-index:3}
.secbadge{border:1px solid #cfe3f7;background:var(--blue-soft);color:#1b62aa;border-radius:999px;padding:3px 10px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;min-height:30px}
.linkbtn{border:0;background:none;color:var(--blue);font:inherit;cursor:pointer;padding:0}
.note{background:var(--orange-soft);border-radius:8px;padding:12px 16px}
.secl li{margin-bottom:8px}
.modal.wide{max-width:860px}
.thumb{display:grid;place-items:center;color:var(--muted);font-size:13px}
.thumb.has span{display:none}
.thumb.mini{width:96px;height:72px;border-radius:8px;border:1px solid var(--border);background:var(--surf) center/cover no-repeat}
.thumb.brief{height:220px;border-radius:8px;border:1px solid var(--border);background:var(--surf) center/contain no-repeat;margin:16px 0}
.prod .thumb{background-size:contain}
.feat .fi{font-size:26px;margin-bottom:8px}
.filters{display:grid;grid-template-columns:2fr 1.3fr 1.3fr auto;gap:12px;margin-bottom:12px}
.filters .field+.field{margin-top:0}
.typechips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.typechips button{border:1px solid var(--border);background:#fff;border-radius:999px;padding:4px 12px;font:inherit;font-size:13px;cursor:pointer;min-height:32px}
.typechips button.on{background:var(--blue);border-color:var(--blue);color:#fff}.typechips button.on .muted{color:#fff}
.roles{border:0;padding:0;margin:0 0 8px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.rolec{display:flex;flex-direction:column;gap:2px;border:1px solid var(--border);border-radius:10px;padding:12px;cursor:pointer;margin:0;font-weight:400}
.rolec.on{border-color:var(--blue);background:var(--blue-soft)}
.rolec input{position:absolute;opacity:0;width:1px;min-height:0}
.checklist{margin-bottom:20px;border-color:#f0d4b8;background:#fffaf5}
.ck{list-style:none;padding:0;margin:8px 0 0}.ck li{color:var(--muted);margin:4px 0}.ck li.ok{color:var(--green);font-weight:600}
.pedit{display:grid;gap:16px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.grid2 .field+.field{margin-top:0}
.modcard{border:1px solid var(--border);border-radius:10px;padding:16px;margin-bottom:12px;background:var(--soft)}
.qed{border-left:3px solid var(--blue-soft);padding:6px 0 6px 10px;margin:8px 0}
.doclist{list-style:none;padding:0;margin:0 0 12px}.doclist li{padding:8px 0;border-bottom:1px solid var(--border)}
.tg{border:0;background:none;cursor:pointer;color:var(--muted);min-width:24px;min-height:24px}
.animc{display:flex;flex-direction:column;gap:10px}
.animthumb{height:150px;border-radius:8px;border:1px solid var(--border);background:#1d2635 center/contain no-repeat;display:grid;place-items:center;position:relative}
.animthumb .play{width:54px;height:54px;border-radius:50%;background:rgba(39,131,222,.92);color:#fff;display:grid;place-items:center;font-size:20px;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.alink:hover{border-color:var(--blue)}
/* player */
.player{display:flex;flex-direction:column}
.player .stage{height:calc(100vh - 60px - 64px - 49px - 58px);min-height:420px}
.pctl{display:flex;gap:10px;align-items:center;padding:10px 24px;background:#fff;border-top:1px solid var(--border)}
.pctl input[type=range]{flex:1}
.anim-ov{position:absolute;inset:0;pointer-events:none;z-index:4}
.anim-lines{position:absolute;inset:0;overflow:visible}
.anim-lines line{stroke:#1b62aa;stroke-width:1.5}.anim-lines circle{fill:#fff;stroke:#1b62aa;stroke-width:2}
.callout{position:absolute;max-width:38%;background:rgba(255,255,255,.96);border:1px solid #cfd6e0;border-left:4px solid var(--blue);border-radius:8px;padding:10px 14px;font-size:15px;line-height:1.45;box-shadow:0 4px 16px rgba(0,0,0,.08);pointer-events:auto;white-space:pre-wrap}
.callout.title{font-size:22px;font-weight:700;border-left-color:var(--orange);max-width:60%}
.aed .callout{cursor:move}.callout.sel{outline:2px dashed var(--blue);outline-offset:2px}
.stopbox{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);z-index:6;background:#fff;border-radius:12px;padding:16px 20px;box-shadow:0 10px 30px rgba(0,0,0,.18);width:min(520px,90%);border-top:4px solid var(--orange)}
.btn.green{color:#fff}.stopbox .btn.danger{opacity:.6}
/* editor */
.aed{display:grid;grid-template-columns:260px 1fr 320px;grid-template-rows:minmax(300px,1fr) auto;height:calc(100vh - 60px - 64px - 49px)}
.aed>.panel{grid-row:1;overflow:auto}.aed>.stage{grid-row:1}
.aed .tl{grid-column:1/-1;background:#fff;border-top:1px solid var(--border)}
.tlbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:6px 12px;border-bottom:1px solid var(--border)}
.tlbody{display:flex;max-height:210px;overflow-y:auto;font-size:13px}
.tlnames{flex:none;width:200px;border-right:1px solid var(--border)}
.tlname{height:26px;line-height:26px;padding:0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid #f1f0ee;cursor:default}
.tlname[data-sel]{cursor:pointer}.tlname.on{background:var(--blue-soft);font-weight:600}
.ruler-n{color:var(--muted);font-size:11px}
.tlscroll{flex:1;overflow-x:auto;overflow-y:hidden;position:relative}
.tlinner{position:relative;padding-right:40px}
.ruler{height:26px;position:relative;border-bottom:1px solid var(--border);cursor:ew-resize;background:var(--soft)}
.ruler .tk{position:absolute;top:0;height:8px;border-left:1px solid #c9c7c3;font-size:10px;color:var(--muted);padding-left:2px;line-height:22px}
.ruler .tk.big{height:14px;border-color:#9b9893}
.lane{height:26px;position:relative;border-bottom:1px solid #f1f0ee}
.kf{position:absolute;top:7px;width:11px;height:11px;margin-left:-5.5px;background:#f2a33a;border:1px solid #b87512;transform:rotate(45deg);cursor:grab;z-index:2}
.kf.cam{background:#7aa7e0;border-color:#3a6fb0}
.kf.sel{background:#2783DE;border-color:#0f4f94;box-shadow:0 0 0 3px rgba(39,131,222,.25)}
.kf.stop{transform:none;width:18px;height:18px;margin-left:-9px;top:4px;border-radius:50%;background:#c9473b;border-color:#8f2b22;color:#fff;font-size:10px;line-height:16px;text-align:center;font-style:normal}
.kf.stop.sel{background:#2783DE}
.span{position:absolute;top:12px;height:2px;background:#f2c48a}
.bar{position:absolute;top:3px;height:20px;border-radius:5px;font-size:11px;line-height:20px;padding:0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:grab;color:#1b3a5c;background:#d8e8f8;border:1px solid #a9c8ea}
.bar.audio{background:#e3f1e8;border-color:#9fcdb0;color:#1f5c3a}
.bar.sel{border-color:#2783DE;box-shadow:0 0 0 2px rgba(39,131,222,.3)}
.bar .rz{position:absolute;right:0;top:0;bottom:0;width:6px;cursor:ew-resize;background:rgba(39,131,222,.35)}
.ph{position:absolute;top:0;bottom:0;width:2px;background:#e2463a;pointer-events:none;z-index:3}
.glist{list-style:none;padding:0;margin:8px 0 0}
.glist li{display:flex;align-items:center;gap:2px;border-radius:6px}.glist li.on{background:var(--blue-soft)}
.glist .gname{flex:1;text-align:left;border:0;background:none;font:inherit;font-size:14px;padding:6px;cursor:pointer;min-height:32px}
.xyz{display:grid;grid-template-columns:auto 1fr 1fr 1fr;gap:4px 6px;align-items:center;font-size:12px}
.xyz input{min-height:32px;padding:4px 6px;font-size:13px}
.aed .panel.right label{font-size:13px}
.aed .panel.right select,.aed .panel.right input:not([type=checkbox]):not([type=radio]):not([type=range]),.aed .panel.right textarea{min-height:34px;padding:5px 8px;font-size:14px}
.aed .panel.right textarea{min-height:70px}
.itemed{background:var(--blue-soft);margin:0 -16px 20px;padding:12px 16px}
@media (max-width:1100px){.aed{grid-template-columns:220px 1fr 280px}}
@media (max-width:980px){.aed{grid-template-columns:1fr;grid-template-rows:auto;height:auto}.aed>.stage{grid-row:auto;height:55vh;order:-1}.aed>.panel{grid-row:auto}.aed .tl{grid-column:auto}
 .player .stage{height:60vh}.filters{grid-template-columns:1fr 1fr}.grid2{grid-template-columns:1fr}.callout{max-width:70%;font-size:13px}}
@media (max-width:640px){.filters{grid-template-columns:1fr}.roles{grid-template-columns:1fr}.pctl{padding:8px 12px}}
@media print{.stage,.stage3d,canvas{display:none!important}}
.modal:focus{outline:none}

/* =====================================================================
   v3 — премиальная тема
   ===================================================================== */
@font-face{font-family:"TD Sans";src:url("fonts/NotoSans-var.woff") format("woff");font-weight:100 900;font-display:swap}
:root{--ink:#0a1020;--ink2:#121a2e;--text:#141a26;--muted:#5d6577;--soft:#f4f5f8;--surf:#eceff4;--border:#e2e6ed;
--blue:#2f6bff;--blue-soft:#e8efff;--cyan:#12b5d6;--gold:#c6a35a;--green:#1f8f5f;--green-soft:#e3f4ec;--orange:#b8661c;--orange-soft:#fcefe2;--red:#d0453a;--red-soft:#fdeceb;
--r:10px;--shadow:0 1px 2px rgba(16,24,40,.04),0 8px 24px -6px rgba(16,24,40,.08);--shadow-lg:0 2px 4px rgba(16,24,40,.04),0 24px 48px -12px rgba(16,24,40,.18);
--grad:linear-gradient(135deg,#2f6bff 0%,#1e9bff 55%,#12b5d6 100%)}
html,body{font-family:"TD Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:var(--soft);color:var(--text);-webkit-font-smoothing:antialiased;font-feature-settings:"kern","liga"}
h1{font-weight:750;letter-spacing:-.022em}h2{font-weight:700;letter-spacing:-.015em}h3{font-weight:650;letter-spacing:-.005em}
a{color:#2459e6}
/* шапка */
.top{background:rgba(10,16,32,.94);backdrop-filter:saturate(160%) blur(14px);-webkit-backdrop-filter:saturate(160%) blur(14px);border-bottom:1px solid rgba(255,255,255,.06);height:60px}
.brand{color:#fff;letter-spacing:-.01em;font-weight:750}
.logo{width:30px;height:30px;border-radius:9px;background:var(--grad);box-shadow:0 0 0 1px rgba(255,255,255,.12) inset,0 6px 16px -4px rgba(47,107,255,.6)}
.logo:after{inset:8px;border-width:2px}
#nav a{color:#aab4c8;font-weight:550}
#nav a.on,#nav a:hover{background:rgba(255,255,255,.08);color:#fff}
#userbox,#userbox a{color:#d7deea}
.avatar{background:rgba(47,107,255,.22);color:#cfe0ff;box-shadow:0 0 0 1px rgba(255,255,255,.12) inset}
#userbox .btn.primary{box-shadow:none}
/* кнопки, карточки, поля */
.btn{border-radius:10px;border-color:var(--border);font-weight:600;transition:background .15s,box-shadow .15s,transform .05s,border-color .15s;box-shadow:0 1px 1px rgba(16,24,40,.04)}
.btn:active{transform:translateY(1px)}
.btn.primary{background:var(--grad);border-color:transparent;box-shadow:0 1px 1px rgba(16,24,40,.06),0 8px 18px -8px rgba(47,107,255,.7)}
.btn.primary:hover{background:linear-gradient(135deg,#255ff0,#168ff0 55%,#0fa6c6);box-shadow:0 1px 1px rgba(16,24,40,.06),0 10px 22px -8px rgba(47,107,255,.85)}
.btn.lg{min-height:52px;padding:0 24px;font-size:16px;border-radius:12px}
.btn.ghost{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.22);color:#fff}.btn.ghost:hover{background:rgba(255,255,255,.12)}
.btn.light{background:#fff;color:var(--ink);border-color:#fff}.btn.light:hover{background:#eef3ff}
.card{border-radius:16px;border-color:var(--border);box-shadow:var(--shadow)}
.card.flat{box-shadow:none}
.prod{transition:box-shadow .2s,transform .2s}.grid>.prod:hover{box-shadow:var(--shadow-lg);transform:translateY(-2px)}
.prod .thumb{border-radius:12px;background-color:#eef1f6;border-color:#e7eaf0}
input,select,textarea{border-color:#d5dae3;border-radius:10px;transition:border-color .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{outline:none;border-color:#7aa2ff;box-shadow:0 0 0 4px rgba(47,107,255,.14)}
.badge{font-weight:650}
.badge.blue{background:var(--blue-soft);color:#2350c9}
.tabs .on{border-bottom-color:var(--blue)}
.modal{border-radius:18px;box-shadow:var(--shadow-lg)}
.modal-bg{background:rgba(10,16,32,.5);backdrop-filter:blur(3px)}
#toast{background:var(--ink);border-radius:12px;box-shadow:var(--shadow-lg)}
.ent .mark{border-radius:14px;box-shadow:0 0 0 1px rgba(16,24,40,.06) inset}
.mark.logo-img{box-shadow:0 0 0 1px var(--border) inset;border-radius:14px}
.note{background:#fff7ec;border:1px solid #f4dcbc;border-radius:12px}
.note.info{background:#eef5ff;border-color:#cddffd}.note.danger{background:#fff0ef;border-color:#f6cbc7}
.lesson .note{border:1px solid #f4dcbc}.lesson .note.info{background:#eef5ff;border-color:#cddffd}.lesson .note.danger{background:#fff0ef;border-color:#f6cbc7}
.phead{background:#fff;box-shadow:0 1px 0 var(--border)}
.eyebrow{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#8fb0ff}
.eyebrow.dark{color:#2f6bff}
/* главная */
.h-hero{position:relative;overflow:hidden;background:radial-gradient(900px 500px at 85% 20%,rgba(47,107,255,.35),transparent 60%),radial-gradient(700px 420px at 10% 110%,rgba(18,181,214,.22),transparent 60%),linear-gradient(180deg,#0a1020,#0d1529);color:#fff}
.h-hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:48px 48px;mask-image:radial-gradient(ellipse at 60% 40%,#000 30%,transparent 75%);-webkit-mask-image:radial-gradient(ellipse at 60% 40%,#000 30%,transparent 75%)}
.h-in{position:relative;max-width:1180px;margin:0 auto;padding:88px 24px 96px;display:grid;grid-template-columns:1.08fr .92fr;gap:56px;align-items:center}
.h-copy h1{font-size:clamp(32px,4vw,50px);line-height:1.08;margin:16px 0 18px;color:#fff;letter-spacing:-.03em}
.h-lead{font-size:19px;line-height:1.55;color:#b9c3d6;max-width:600px;margin:0}
.h-trust{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:32px;font-size:13px;color:#8d99b0}
.h-trust span:not(:first-child):before{content:"·";margin-right:18px;color:#46516a}
.h-visual{position:relative}
.h-frame{position:relative;border-radius:22px;padding:14px;background:linear-gradient(160deg,rgba(255,255,255,.14),rgba(255,255,255,.03));box-shadow:0 0 0 1px rgba(255,255,255,.1) inset,0 40px 80px -24px rgba(0,0,0,.6),0 0 120px -30px rgba(47,107,255,.6)}
.h-frame img{display:block;width:100%;border-radius:12px;background:linear-gradient(#f4f6f9,#dfe5ee)}
.h-chip{position:absolute;display:flex;align-items:center;gap:8px;padding:9px 14px;border-radius:999px;background:rgba(13,21,41,.86);border:1px solid rgba(255,255,255,.14);font-size:13px;font-weight:600;color:#e6ecf7;box-shadow:0 12px 30px -10px rgba(0,0,0,.6);backdrop-filter:blur(8px);white-space:nowrap}
.h-chip i{width:44px;height:8px;border-radius:4px}
.h-chip.c1{left:-24px;bottom:22%}.h-chip.c2{right:-14px;top:12%}.h-chip.c3{right:18px;bottom:-14px}
.h-wrap{max-width:1180px;margin:0 auto;padding:0 24px 80px}
.h-sec{padding-top:80px}
.h-head{max-width:720px;margin-bottom:28px}.h-head h2{font-size:34px;margin:10px 0 10px;line-height:1.15}.h-head p{font-size:17px;margin:0}
.h-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.h-grid.three{grid-template-columns:repeat(3,1fr)}
.h-card{background:#fff;border:1px solid var(--border);border-radius:18px;padding:22px;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s}
.h-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.h-card h3{font-size:17px;margin:14px 0 6px}.h-card p{margin:0;color:var(--muted);font-size:14.5px;line-height:1.55}
.h-card.big{padding:28px}.h-card.big h3{font-size:20px}
.h-ico{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-size:20px;font-weight:800;color:#fff;background:var(--grad);box-shadow:0 10px 20px -10px rgba(47,107,255,.8)}
.h-ol{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid var(--border);border-radius:18px;background:#fff;overflow:hidden;box-shadow:var(--shadow)}
.h-ol li{padding:26px 24px;border-right:1px solid var(--border)}.h-ol li:last-child{border-right:0}
.h-ol span{display:block;font-size:13px;font-weight:800;letter-spacing:.1em;color:#2f6bff;margin-bottom:12px}.h-ol b{font-size:17px}.h-ol p{margin:6px 0 0;color:var(--muted);font-size:14.5px}
.h-band{margin-top:80px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;padding:40px 44px;border-radius:24px;color:#fff;background:radial-gradient(600px 300px at 90% 0,rgba(18,181,214,.35),transparent 60%),linear-gradient(135deg,#0d1529,#16224a)}
.h-band h2{margin:0 0 8px;font-size:28px}.h-band p{margin:0;color:#b9c3d6;max-width:640px}
@media (max-width:980px){.h-in{grid-template-columns:1fr;padding:56px 20px 64px;gap:40px}.h-grid,.h-grid.three{grid-template-columns:1fr 1fr}.h-ol{grid-template-columns:1fr 1fr}.h-ol li:nth-child(2){border-right:0}.h-ol li{border-bottom:1px solid var(--border)}.h-chip.c1{left:8px}.h-chip.c2{right:8px}}
@media (max-width:640px){.h-grid,.h-grid.three,.h-ol{grid-template-columns:1fr}.h-ol li{border-right:0}.h-head h2{font-size:26px}.h-band{padding:28px 22px}.h-chip{font-size:11px;padding:6px 10px}.h-chip.c3{display:none}.top{background:#0a1020}}
/* подвал */
.foot{background:#0a1020;color:#8d99b0;font-size:14px}
.foot .fin{max-width:1180px;margin:0 auto;padding:32px 24px;display:flex;gap:16px 32px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.foot a{color:#c6d0e2}.foot nav{display:flex;gap:20px;flex-wrap:wrap}
body.embed .top,body.embed .foot{display:none}
/* правовые страницы */
.legal{max-width:940px;margin:0 auto}.legal h1{font-size:40px;margin:8px 0 12px}.legal h2{margin-top:44px;scroll-margin-top:84px}.legal ul,.legal ol{padding-left:22px}.legal li{margin:6px 0}
.legal td{font-size:14.5px}
.toc{display:grid;grid-template-columns:1fr 1fr;gap:2px 24px;padding:18px 22px;border:1px solid var(--border);border-radius:16px;background:#fff;margin:8px 0 8px}
.toc a{padding:5px 0;font-size:15px}
.pubgrid h3{margin-bottom:6px}.pubgrid ul{margin:0}
.doccards{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.doccard{display:flex;gap:14px;padding:16px;border:1px solid var(--border);border-radius:14px;background:#fff}
.dico{width:42px;height:52px;border-radius:8px;background:linear-gradient(160deg,#eef3ff,#dfe8ff);display:grid;place-items:center;flex:none}
@media (max-width:640px){.toc,.doccards{grid-template-columns:1fr}.legal h1{font-size:30px}}
.terms{margin-top:16px;padding:14px 16px;border-radius:12px;background:#f6f8fc;border:1px solid var(--border)}
.terms ul{margin:6px 0 0;padding-left:18px;color:#3d4556}.terms li{margin:4px 0}
/* страница по QR */
.landing{max-width:560px;margin:0 auto}.lcard{padding:28px}.lcard h1{margin:16px 0 4px}
.lthumb{height:240px;border-radius:14px;background:#eef1f6 center/contain no-repeat;margin-top:16px;border:1px solid var(--border)}
.lgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.gal{display:flex;gap:8px;flex-wrap:wrap}.galitem{position:relative;width:96px;height:72px;border-radius:10px;border:1px solid var(--border);background:#eef1f6 center/cover no-repeat;padding:0;cursor:pointer}
.gal.mini{margin-top:8px}.gal.mini .galitem{width:64px;height:48px}
.galitem .tg{position:absolute;top:2px;right:2px;background:#fff;border-radius:6px}
/* QR */
.qrgrid{display:grid;grid-template-columns:1fr 260px;gap:24px;align-items:start}
.qrlabel{background:#f3f5f9;border-radius:14px;padding:12px}.qrlabel svg{display:block;width:100%;height:auto}
@media (max-width:640px){.qrgrid{grid-template-columns:1fr}}
.phead .tabs .qrbtn{border:0;background:none;font:inherit;font-weight:600;color:var(--muted);padding:12px 12px;cursor:pointer;min-height:44px}
/* встраивание */
.embwrap{height:calc(100vh - 28px)}.embwrap .player.compact,.embwrap>div{height:100%}
.embwrap .player.compact .stage{height:calc(100% - 58px)}
.embfoot{display:block;height:28px;line-height:28px;text-align:center;font-size:12px;color:#5d6577;background:#fff;border-top:1px solid var(--border)}
/* курс */
.edbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 14px;border-radius:12px;background:#eef3ff;border:1px solid #d3e0ff;margin-bottom:20px}
figure.cimg{margin:20px 0}figure.cimg img{display:block;max-width:100%;border-radius:12px;border:1px solid var(--border)}figure.cimg figcaption{font-size:14px;color:var(--muted);margin-top:6px}
.canim{padding:0;overflow:hidden;margin:20px 0}.canim-head{padding:12px 16px}
.canim-stage{aspect-ratio:16/9;background:linear-gradient(#f4f6f9,#e2e7ee);display:grid;place-items:center;border-top:1px solid var(--border)}
.canim-stage.on{display:block;aspect-ratio:auto}
.player.compact .stage{height:auto;aspect-ratio:16/9;min-height:260px}
.player.compact .pctl{padding:8px 12px}
.ced{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;align-items:start}
.ced-side{position:sticky;top:84px;padding:18px}
.ced-mods{list-style:none;padding:0;margin:0 0 10px}.ced-mods li{display:flex;align-items:center;gap:4px;border-radius:10px;margin-bottom:2px}
.ced-mods li.on{background:#eef3ff}.ced-m{flex:1;min-width:0;text-align:left;border:0;background:none;font:inherit;padding:8px 10px;cursor:pointer;display:flex;flex-direction:column}
.ced-m span:first-child{font-weight:600;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cblock{border:1px solid var(--border);border-radius:12px;padding:10px 12px 12px;margin-bottom:10px;background:#fff}
.cblock:focus-within{border-color:#9db8ff;box-shadow:0 0 0 4px rgba(47,107,255,.08)}
.cb-tools{display:flex;align-items:center;gap:2px;margin-bottom:6px}.cb-type{font-size:12px;font-weight:700;color:var(--muted);letter-spacing:.04em;text-transform:uppercase}
.rtbar{display:flex;gap:2px;margin-bottom:6px;flex-wrap:wrap}.rtbar button{min-width:32px;height:30px;border:1px solid var(--border);background:#f8f9fb;border-radius:7px;cursor:pointer;font:inherit;font-size:14px}
.rtbar button:hover{background:#eef3ff}
.rt{min-height:90px;padding:8px 12px;border:1px solid #d5dae3;border-radius:10px;outline:none;max-width:none}.rt:focus{border-color:#7aa2ff}
.rt table{font-size:14px}
.cimg-prev{width:200px;height:130px;border-radius:10px;border:1px dashed #c8cfdb;background:#f4f6f9 center/contain no-repeat;display:grid;place-items:center;color:var(--muted);font-size:13px}
.cimg-prev.has{border-style:solid}
.addblk .btn{background:#f8f9fb}
.steps2{padding-left:20px}.steps2>li{margin:14px 0}
pre.prompt{white-space:pre-wrap;background:#0d1529;color:#d7deea;padding:14px;border-radius:12px;font-size:12.5px;max-height:220px;overflow:auto;margin:8px 0 0}
@media (max-width:980px){.ced{grid-template-columns:1fr}.ced-side{position:static}}
/* кабинет */
.limits{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.entinfo{margin-top:16px;max-width:860px}
/* редактор анимации: фигуры, потоки, разрезы */
.shapes-ov{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:visible}
.shapes-ov.ed [data-sh]{pointer-events:visiblePainted;cursor:move}.shapes-ov.ed line[data-sh]{stroke-linecap:round}
.shapes-ov.ed .shh{pointer-events:all;cursor:nwse-resize}
.flowleg{position:absolute;right:14px;bottom:44px;z-index:5;background:rgba(255,255,255,.94);border:1px solid var(--border);border-radius:12px;padding:10px 12px;font-size:12px;width:230px;box-shadow:var(--shadow)}
.flowbar{height:10px;border-radius:5px;margin:6px 0 4px}
.stage.drawing canvas{cursor:crosshair}
.ptlist{list-style:none;padding:0;margin:6px 0;max-height:220px;overflow:auto}.ptlist li{display:flex;align-items:center;gap:6px;padding:2px 4px;border-radius:8px}.ptlist li.on{background:#eef3ff}
.swatch{width:16px;height:16px;border-radius:4px;border:1px solid rgba(0,0,0,.1);flex:none}
.flowedit{margin-top:10px;padding:10px;border-radius:10px;background:#f4f6f9}.flowedit.on{background:#eef3ff;outline:1px solid #cddcff}
.chip{border:1px solid var(--border);background:#fff;border-radius:999px;padding:2px 10px;font-size:12px;cursor:pointer}.chip.on{background:var(--blue);border-color:var(--blue);color:#fff}
.shapebtns .btn{padding:0 8px;font-size:12.5px;min-height:30px}
.bar.cut{background:#fde5e1;border-color:#f0a99f;color:#7a2a20}.bar.flow{background:#ddeeff;border-color:#93c1f5;color:#163f75}.bar.shape{background:#f1e7ff;border-color:#c5a8f0;color:#4b2a7a}
.bar .sk{position:absolute;top:6px;width:6px;height:6px;background:#7a4fc9;transform:rotate(45deg);pointer-events:none}
@media (max-width:640px){.flowleg{width:180px;bottom:8px;right:8px}.lgrid{grid-template-columns:1fr}}
body.tool .foot{display:none}
/* v3 fixes */
.mark{flex:none;width:52px;height:52px;border-radius:12px;display:grid;place-items:center;font-weight:800;color:#fff;font-size:15px;overflow:hidden}
.mark img{width:100%;height:100%;object-fit:contain;background:#fff}
@media (max-width:640px){.top{height:auto;min-height:60px;padding-top:8px}#nav{padding-bottom:8px}}
.shapes-ov.ed .shhit{pointer-events:stroke;cursor:move}.shapes-ov.ed text[data-sh]{pointer-events:all}
.shapes-ov.ed .shh{r:9}
/* v4 */
.btn.ghostd{background:#0f172a;color:#fff;border-color:#0f172a}.btn.ghostd:hover{background:#1e293b}
.reqlist{list-style:none;margin:0;padding:0}.reqlist li{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--border)}.reqlist li:first-child{border-top:0}
.areq{margin-bottom:14px}.areq h3{font-size:18px}
.voicebox{margin-top:10px;padding:10px 12px;border-radius:10px;background:linear-gradient(135deg,#eef4ff,#f5f0ff);border:1px solid #dbe4ff}
.qimg{display:block;max-width:min(100%,520px);max-height:320px;border-radius:10px;margin:6px 0 10px;border:1px solid var(--border);object-fit:contain;background:#fff}
.qimg-prev{width:120px;height:80px;border-radius:8px;border:1px solid var(--border);background:#f6f8fb center/contain no-repeat;flex:none}.qimg-prev.sm{width:56px;height:40px}
.sted{margin:8px 0;padding-left:22px}.sted li{margin:6px 0}
.steps{padding:16px 20px;margin:16px 0}.steps h3{margin:0 0 8px;font-size:17px}.steps ol{margin:0;padding-left:22px}.steps li{margin:8px 0}.steps label{display:flex;gap:10px;align-items:flex-start;cursor:pointer;font-weight:400}.steps input{width:18px;min-height:18px;margin-top:3px;flex:none}.steps input:checked+span{color:var(--muted);text-decoration:line-through}
.stimg{display:block;max-width:360px;max-height:220px;border-radius:8px;margin:6px 0 0 28px;border:1px solid var(--border)}
.cvid{margin:16px 0}.cvid video{width:100%;max-height:480px;border-radius:12px;background:#000}.cvid figcaption{font-size:13px;color:var(--muted);margin-top:6px}
.cvid-prev{width:240px;max-height:150px;border-radius:8px;background:#000}
.opt.num{gap:8px}
.mono{font:12px/1.4 ui-monospace,Consolas,monospace}
.q.need{outline:2px dashed var(--red);outline-offset:2px}
