:root{--g:#0b5d35;--g2:#0e7a46;--gold:#f2b705;--red:#c8102e;--bg:#f4f7f5;--card:#fff;--tx:#17211b;--mu:#66736b;--br:#dfe7e2;--r:16px}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--tx);font-size:15px;line-height:1.45;padding-bottom:78px}
h1,h2,h3{margin:0}h1{font-size:22px}h2{font-size:18px}h3{font-size:15px}p{margin:0 0 8px}a{color:var(--g2)}
.top{background:linear-gradient(135deg,var(--g),var(--g2));color:#fff;padding:calc(14px + env(safe-area-inset-top)) 16px 16px;position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px}
.top h1{font-size:18px;flex:1;letter-spacing:.2px}.top .back{background:rgba(255,255,255,.18);border:0;color:#fff;border-radius:10px;width:36px;height:36px;font-size:18px}
.brand{display:flex;align-items:center;gap:8px;font-weight:800;letter-spacing:.5px}.brand i{display:inline-block;width:26px;height:26px;border-radius:8px;background:#fff;color:var(--g);font-style:normal;text-align:center;line-height:26px}
.wrap{padding:14px;max-width:760px;margin:0 auto}
.card{background:var(--card);border:1px solid var(--br);border-radius:var(--r);padding:14px;margin-bottom:12px;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.hero{background:linear-gradient(135deg,var(--g),#0a4a2a);color:#fff;border-radius:20px;padding:20px;margin-bottom:14px;position:relative;overflow:hidden}
.hero:after{content:"";position:absolute;right:-30px;top:-30px;width:130px;height:130px;border-radius:50%;background:rgba(242,183,5,.25)}
.hero h2{font-size:21px;margin-bottom:6px}.hero p{opacity:.92;margin-bottom:12px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{background:var(--card);border:1px solid var(--br);border-radius:var(--r);padding:14px 12px;text-align:left;cursor:pointer;display:block;width:100%;font:inherit;color:inherit}
.tile b{display:block;font-size:15px;margin:6px 0 2px}.tile small{color:var(--mu)}.tile .ic{font-size:26px}
.tile .pr{display:inline-block;margin-top:6px;background:#fff6d6;color:#7a5a00;border-radius:20px;padding:1px 9px;font-size:12px;font-weight:700}
.btn{border:0;border-radius:12px;padding:12px 16px;font:inherit;font-weight:700;cursor:pointer;background:var(--g);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none}
.btn.gold{background:var(--gold);color:#3a2d00}.btn.line{background:#fff;color:var(--g);border:1.5px solid var(--g)}.btn.red{background:#fff;color:var(--red);border:1.5px solid #f0c4cb}.btn.sm{padding:8px 12px;font-size:13px;border-radius:10px}.btn.full{width:100%}.btn[disabled]{opacity:.5}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.sp{flex:1}.mt{margin-top:10px}.mt2{margin-top:18px}
label{display:block;font-weight:600;font-size:13px;margin:10px 0 4px;color:#2d3a33}
input,select,textarea{width:100%;border:1.5px solid var(--br);border-radius:12px;padding:11px 12px;font:inherit;background:#fff;color:var(--tx)}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--g2)}textarea{min-height:84px;resize:vertical}
.mu{color:var(--mu)}.sm{font-size:13px}.chip{display:inline-block;background:#e8f3ec;color:var(--g);border-radius:20px;padding:2px 10px;font-size:12px;font-weight:600;margin:0 4px 4px 0}.chip.warn{background:#fdecee;color:var(--red)}.chip.gold{background:#fff6d6;color:#7a5a00}
.nav{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--br);display:flex;padding:6px 4px calc(6px + env(safe-area-inset-bottom));z-index:30}
.nav button{flex:1;border:0;background:none;font:inherit;font-size:11px;color:var(--mu);padding:4px 0;display:flex;flex-direction:column;align-items:center;gap:2px;position:relative}
.nav button span{font-size:21px}.nav button.on{color:var(--g);font-weight:700}.nav .dot{position:absolute;top:0;right:22%;background:var(--red);color:#fff;border-radius:10px;font-size:10px;min-width:16px;height:16px;line-height:16px;font-weight:700}
.tabs{display:flex;background:#e9efeb;border-radius:12px;padding:3px;margin-bottom:12px}.tabs button{flex:1;border:0;background:none;padding:9px;border-radius:10px;font:inherit;font-weight:600;color:var(--mu)}.tabs button.on{background:#fff;color:var(--g);box-shadow:0 1px 3px rgba(0,0,0,.1)}
.offer{cursor:pointer}.offer h3{margin-bottom:2px}.offer .meta{color:var(--mu);font-size:13px}
.pages img{width:100%;border:1px solid var(--br);border-radius:8px;margin-bottom:10px;background:#fff;display:block}
.banner{background:#fff6d6;border:1px solid #f0dc8a;color:#6b5200;border-radius:12px;padding:10px 12px;margin-bottom:10px;font-size:14px}.banner.ok{background:#e8f6ee;border-color:#bfe3cc;color:#0b5d35}.banner.err{background:#fdecee;border-color:#f3c3ca;color:#8d1022}
#toast{position:fixed;left:12px;right:12px;bottom:92px;z-index:90;display:flex;justify-content:center;pointer-events:none}#toast div{background:#17211b;color:#fff;border-radius:12px;padding:11px 16px;font-size:14px;box-shadow:0 6px 20px rgba(0,0,0,.25);max-width:520px}
#modal:not(:empty){position:fixed;inset:0;background:rgba(10,20,15,.55);z-index:80;display:flex;align-items:flex-end;justify-content:center}
.sheet{background:#fff;border-radius:22px 22px 0 0;width:100%;max-width:640px;max-height:92vh;overflow:auto;padding:18px 16px calc(20px + env(safe-area-inset-bottom))}.sheet h2{margin-bottom:10px}
.spin{width:44px;height:44px;border:5px solid #dcebe2;border-top-color:var(--g);border-radius:50%;animation:s 1s linear infinite;margin:18px auto}@keyframes s{to{transform:rotate(360deg)}}
.center{text-align:center}.big{font-size:44px}
.tplrow{display:flex;gap:8px;overflow:auto;padding-bottom:6px}.tpl{flex:0 0 92px;border:2px solid var(--br);border-radius:12px;padding:6px;text-align:center;font-size:12px;background:#fff;font:inherit}.tpl.on{border-color:var(--g);background:#eef7f1}.tpl .sw{height:46px;border-radius:8px;margin-bottom:4px;display:flex;overflow:hidden}.tpl .sw i{flex:1}.tpl .sw i:first-child{flex:.7}
.steps{display:flex;gap:4px;margin-bottom:12px}.steps i{flex:1;height:5px;border-radius:3px;background:#dce6e0}.steps i.on{background:var(--g)}
.rep{border:1px dashed var(--br);border-radius:12px;padding:10px;margin-bottom:8px;background:#fafcfb}
.thumbs{display:flex;gap:8px;flex-wrap:wrap}.thumbs div{position:relative}.thumbs img{width:78px;height:104px;object-fit:cover;border-radius:8px;border:1px solid var(--br)}.thumbs b{position:absolute;top:-6px;right:-6px;background:var(--red);color:#fff;width:22px;height:22px;border-radius:50%;text-align:center;line-height:22px;font-size:13px}
.sigbox{background:repeating-conic-gradient(#f0f0f0 0 25%,#fff 0 50%) 0 0/16px 16px;border:1px solid var(--br);border-radius:12px;padding:10px;text-align:center}.sigbox img{max-height:80px;max-width:100%}
table{width:100%;border-collapse:collapse}td,th{padding:7px 6px;border-bottom:1px solid var(--br);text-align:left;font-size:13px;vertical-align:top}
@media(min-width:760px){body{padding-bottom:0}.nav{position:sticky;top:0;bottom:auto;border:0;border-bottom:1px solid var(--br);justify-content:center}.nav button{flex:0 0 110px}#toast{bottom:20px}}
