#sg22{--sgred:#bf2530;--sgborder:#dfe2e7;--sgmuted:#616878;--sgdark:#15171c;color:var(--sgdark);padding:18px 0 90px;max-width:1080px;margin:auto;scroll-margin-top:95px}
#sg22 *{box-sizing:border-box}#sg22 [hidden]{display:none!important}#sg22 button,#sg22 input,#sg22 select{font:inherit}#sg22 button,#sg22 input[type=checkbox],#sg22 input[type=radio]{cursor:pointer}
.sg22-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-bottom:24px}.sg22-step-pill{padding:13px 8px;border:1px solid var(--sgborder);background:#f4f5f7;border-radius:14px;display:flex;align-items:center;gap:7px;color:#7e8795;font-size:12px;font-weight:750}.sg22-step-pill b{width:28px;height:28px;flex:none;border-radius:50%;display:grid;place-items:center;border:1px solid #c9ccd2}.sg22-step-pill.is-on{background:#fff4f4;color:var(--sgred);border-color:#f1b4ba}.sg22-step-pill.is-on b,.sg22-step-pill.is-done b{background:var(--sgred);color:#fff;border-color:var(--sgred)}.sg22-step-pill.is-done{color:#2d343f}
.sg22-form{background:#fff;border:1px solid var(--sgborder);border-radius:24px;padding:clamp(22px,4vw,45px);box-shadow:0 16px 45px #121b3020}.sg22-panel-head{margin-bottom:28px}.sg22-tag{color:var(--sgred);font-size:12px;letter-spacing:.15em;font-weight:900}.sg22-panel-head h2,.sg22-result h2{font-size:clamp(28px,3.7vw,45px);line-height:1.12;letter-spacing:-.04em;margin:12px 0}.sg22-panel-head p{color:var(--sgmuted);font-size:16px;max-width:710px;line-height:1.6}
.sg22-fields{display:grid;gap:22px}.sg22-cols{grid-template-columns:repeat(2,minmax(0,1fr))}.sg22-field{display:grid;gap:10px;min-width:0}.sg22-field>span,.sg22-option-title{font-size:14px;font-weight:800}.sg22-field em,.sg22-check em,.sg22-option-title em{color:var(--sgred);font-style:normal}.sg22-field input{width:100%;height:52px;border:1px solid #cbd0da;border-radius:12px;background:#fafafa;padding:0 16px;outline:none;font-size:16px!important;color:#20232a}.sg22-field input:focus{border-color:var(--sgred);box-shadow:0 0 0 3px #bd233016}.sg22-help{color:var(--sgmuted);font-size:13px;line-height:1.6}.sg22-info{background:#f3f5f8;border-left:3px solid var(--sgred);color:#4e5767;padding:15px 18px;border-radius:0 12px 12px 0;font-size:14px;line-height:1.65;margin-top:23px}
.sg22-lengths{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0 26px}.sg22-lengths label{position:relative;min-width:0}.sg22-lengths input{position:absolute;opacity:0}.sg22-lengths label span{border:2px solid #e2e4e8;border-radius:14px;padding:21px 12px;display:grid;gap:6px;text-align:center;background:#fff}.sg22-lengths b{font-size:clamp(17px,2vw,24px)}.sg22-lengths small{color:var(--sgmuted)}.sg22-lengths input:checked+span{border-color:var(--sgred);background:#fff5f5;box-shadow:0 5px 18px #b6202c14}.sg22-lengths input:focus-visible+span{outline:3px solid #b5263555}
.sg22-switches{display:grid;gap:12px;margin-bottom:25px}.sg22-switch{padding:16px 18px;display:flex;gap:15px;align-items:center;border:1px solid #e0e4ea;border-radius:13px;cursor:pointer}.sg22-switch input{width:20px;height:20px;accent-color:var(--sgred);flex:none}.sg22-switch span{display:grid;gap:5px}.sg22-switch small{color:var(--sgmuted);font-size:12px}.sg22-narrow{max-width:400px}
.sg22-drop{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:200px;text-align:center;gap:9px;background:#fafbfc;border:2px dashed #b6becb;border-radius:19px;cursor:pointer;padding:20px}.sg22-drop strong{font-size:21px}.sg22-drop small{font-size:12px;color:var(--sgmuted)}.sg22-drop input{font-size:13px;max-width:100%;margin-top:6px}.sg22-photo-icon{font-size:40px;color:var(--sgred)}.sg22-photo-list{display:grid;gap:10px;margin:20px 0}.sg22-photo-chip{display:flex;align-items:center;gap:13px;border:1px solid #e2e5eb;border-radius:12px;padding:9px}.sg22-photo-chip img{height:72px;width:100px;object-fit:cover;border-radius:7px}.sg22-photo-chip span{min-width:0;flex:1;font-size:13px;overflow-wrap:anywhere}.sg22-photo-chip button,.sg22-small-button{border:1px solid #ccd1db;background:#fff;padding:9px 13px;border-radius:9px;color:#2d3745;font-size:13px!important;font-weight:700}
.sg22-editor-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;flex-wrap:wrap}.sg22-select-wrap{font-size:14px;font-weight:750}.sg22-select-wrap select{border:1px solid #ccd1db;border-radius:10px;padding:11px;margin-left:8px;background:#fff;max-width:260px}#sg22-point-count{color:var(--sgred);font-size:13px;font-weight:800}.sg22-canvas-wrap{background:#25272a;border-radius:16px;overflow:hidden;min-height:220px;display:flex;align-items:center;justify-content:center;position:relative}#sg22-canvas{width:100%;height:auto;max-height:570px;object-fit:contain;touch-action:manipulation;cursor:crosshair;display:block}.sg22-editor-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.sg22-photo-progress{font-size:13px;color:#606a78;font-weight:700}
.sg22-check{display:flex;gap:12px;margin-top:24px;line-height:1.6;font-size:13px;align-items:flex-start}.sg22-check input{width:20px;height:20px;accent-color:var(--sgred);flex:none;margin-top:1px}.sg22-check a{color:var(--sgred);text-decoration:underline}.sg22-hp{position:absolute;left:-9999px;top:-9999px}.sg22-navigation{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid #e7e7e7;margin-top:33px;padding-top:25px}.sg22-navigation button,.sg22-download,.sg22-restart{border:0;border-radius:12px;padding:14px 22px;font-size:14px;font-weight:900;min-height:48px;cursor:pointer}.sg22-back,.sg22-restart{background:#e9ecf0;color:#232734}.sg22-next,.sg22-submit,.sg22-download{background:var(--sgred);color:#fff;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.sg22-next:hover,.sg22-submit:hover{background:#941a26}.sg22-submit:disabled{opacity:.5}.sg22-error{margin-top:20px;color:#a41724;background:#fff0ef;padding:14px;border:1px solid #f0bac0;border-radius:12px;font-size:14px}
.sg22-result{text-align:center;background:#fff;border-radius:22px;padding:30px 24px;border:1px solid var(--sgborder)}.sg22-result p{color:#626a76}.sg22-success-icon{background:#e8f8ed;color:#187e3b;border-radius:50%;width:70px;height:70px;margin:auto;display:grid;place-items:center;font-size:39px;font-weight:800}.sg22-pdf-actions{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap;margin:20px}.sg22-pdf-preview{width:100%;height:720px;border:1px solid #ddd;border-radius:12px;margin:20px auto;display:block}.sg22-result small{color:#777}
@media(max-width:750px){.sg22-steps{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}.sg22-step-pill{justify-content:center;padding:8px 4px}.sg22-step-pill span{display:none}.sg22-step-pill b{width:31px;height:31px}.sg22-form{padding:22px 16px}.sg22-cols{grid-template-columns:1fr}.sg22-intro h1{font-size:43px}.sg22-pdf-preview{height:570px}}
@media(max-width:430px){.sg22-lengths{gap:6px}.sg22-lengths label span{padding:13px 4px}.sg22-lengths b{font-size:16px}.sg22-lengths small{font-size:10px}.sg22-photo-chip img{height:54px;width:74px}.sg22-navigation button{font-size:13px;padding:11px 16px}.sg22-pdf-preview{height:460px}}
@media(prefers-reduced-motion:reduce){#sg22 *{scroll-behavior:auto!important;transition:none!important}}
