*{box-sizing:border-box}
html,body{margin:0}
body{background:#f1f5f9;color:#0f172a;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;min-height:100vh;display:flex;flex-direction:column}
a{color:inherit}
button{font:inherit;cursor:pointer}
ul{list-style:none;margin:0;padding:0}

/* ---------- header ---------- */
header{position:sticky;top:0;z-index:50;background:#0a1f5c;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.band{display:flex;justify-content:center;padding:10px 12px}
.band.dark{background:#0a1f5c}
.band.light{background:#8ecbf5}
.row{display:flex;align-items:center;gap:14px}
.row.aligned{justify-content:flex-start}

/* nav1 – round icon buttons */
.emo{width:44px;height:44px;display:grid;place-items:center;border:0;background:none;padding:0;text-decoration:none;border-radius:50%;flex:0 0 auto}
.emo span{width:40px;height:40px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:22px;box-shadow:0 0 0 2.5px #64748b;transition:transform .15s,box-shadow .15s}
.emo:hover span{transform:scale(1.07)}
.emo.active span{box-shadow:0 0 0 2.5px #38bdf8,0 0 0 6px rgba(56,189,248,.35)}
.emo span svg{width:24px;height:24px;display:block}
.obox{display:flex;align-items:center;gap:6px;background:#f97316;border:2px solid #22c55e;border-radius:12px;height:44px;padding:0 4px}
.obox .emo{width:38px;height:38px}
.obox .emo span{width:34px;height:34px;box-shadow:none;font-size:18px}
#btnVideo span{box-shadow:0 0 0 2.5px #38bdf8,0 0 0 6px rgba(56,189,248,.35)}
#btnVideo.flash span{animation:pulse 1.6s ease-in-out infinite}
@keyframes pulse{50%{box-shadow:0 0 0 2.5px #38bdf8,0 0 0 9px rgba(56,189,248,.15)}}
.authbox.signed .emo span{background:#fff}
.avatar{width:34px;height:34px;border-radius:50%;object-fit:cover}

/* nav2 – flags + cities pill */
.flag-btn{width:44px;height:44px;border:0;padding:0;background:none;border-radius:50%;display:grid;place-items:center;flex:0 0 auto}
.flag-btn img{width:40px;height:40px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2.5px #64748b;display:block}
.flag-btn.active img{box-shadow:0 0 0 2.5px #fff,0 0 0 6px rgba(10,31,92,.45)}
.pill{height:44px;border-radius:22px;background:#0a1f5c;display:flex;align-items:center;gap:4px;padding:0 4px;box-shadow:0 0 0 2.5px #64748b}
.city{width:36px;height:36px;border-radius:50%;border:0;background:#0a1f5c;color:#fff;font-weight:800;font-size:13px;letter-spacing:.3px;display:grid;place-items:center;transition:background .15s}
.city:hover{background:#1e3a8a}
.city.active{background:#38bdf8;color:#0a1f5c;box-shadow:0 0 0 2.5px #fff}

/* nav4 – controls */
.ctrl{width:44px;height:44px;border-radius:50%;border:2.5px solid #22c55e;padding:0;display:grid;place-items:center;color:#fff;font-weight:800;font-size:15px;flex:0 0 auto;transition:background .2s}
#btnGender{background:#1d4ed8}
#btnGender .g{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:22px;font-weight:900;line-height:1;transition:background .2s,color .2s}
#btnPhone{background:#1e3a8a}
#btnPhone svg{width:22px;height:22px}
#btnInitials{text-shadow:0 1px 2px rgba(0,0,0,.35)}
.g-m{--g1:#2563eb;--g2:#93c5fd}
.g-f{--g1:#dc2626;--g2:#fca5a5}
#btnGender .g{background:var(--g2);color:var(--g1)}
#btnGender{background:var(--g1)}
#btnInitials{background:var(--g1)}
.addr{position:relative}
.addr input{height:44px;width:150px;border-radius:12px;border:2.5px solid #22c55e;padding:0 10px;font-weight:600;font-size:13px;color:#000;background:#fff}
.addr input::placeholder{color:#000;font-weight:700}
.sugg{position:absolute;top:48px;left:0;width:300px;max-width:90vw;background:#fff;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.25);overflow:hidden;display:none;z-index:60}
.sugg.open{display:block}
.sugg li{padding:9px 12px;font-size:13px;cursor:pointer;border-bottom:1px solid #e2e8f0}
.sugg li:hover,.sugg li.hl{background:#e0f2fe}
.paybox{background:#f97316}
.xbtn{width:38px;height:38px;border-radius:50%;border:0;display:grid;place-items:center;background:#fff;font-size:18px}
#btnFree{background:#22c55e;color:#fff;font-weight:900;font-size:16px;box-shadow:0 0 0 2px #fff}
#btnFree small{font-size:10px;vertical-align:top}

/* ---------- main ---------- */
main{flex:1;width:100%;max-width:760px;margin:0 auto;padding:18px 14px 30px}
.back{display:inline-flex;align-items:center;gap:6px;background:#0a1f5c;color:#fff;border:0;border-radius:22px;height:40px;padding:0 16px;font-weight:700;text-decoration:none;margin-bottom:14px}
.back:hover{background:#1e3a8a}
.panel{background:#fff;border-radius:16px;padding:18px;box-shadow:0 4px 18px rgba(15,23,42,.08);margin-bottom:16px}
.panel h1{margin:0 0 8px;font-size:22px}
.amounts{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.amounts button{width:56px;height:44px;border-radius:12px;border:2px solid #22c55e;background:#fff;font-weight:800}
.amounts button.on{background:#22c55e;color:#fff}

/* map */
#mapBox{position:relative;width:100%;aspect-ratio:1/1;border-radius:14px;overflow:hidden;background:#0b1730;box-shadow:0 6px 24px rgba(0,0,0,.25)}
#mapImg{width:100%;height:100%;display:block;object-fit:cover}
#mapMsg{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#fff;font-weight:700;background:rgba(10,31,92,.45);transition:opacity .3s;text-align:center;padding:20px}
#mapBox.ready #mapMsg{opacity:0;pointer-events:none}
#mapBox.outside #mapMsg{opacity:1}
#mapMsg svg{width:46px;height:46px;animation:spin 1s linear infinite}
#mapBox.outside #mapMsg svg{display:none}
@keyframes spin{to{transform:rotate(360deg)}}
.acc{position:absolute;transform:translate(-50%,-50%);border-radius:50%;background:rgba(56,189,248,.18);border:2px solid rgba(56,189,248,.7);pointer-events:none;display:none}
.dot{position:absolute;transform:translate(-50%,-50%);width:38px;height:38px;border-radius:50%;border:3px solid #fff;display:none;place-items:center;color:#fff;font-weight:900;font-size:13px;box-shadow:0 2px 10px rgba(0,0,0,.5);background:var(--g1,#1d4ed8)}
.dot.on,.acc.on{display:grid}
.tip{position:absolute;bottom:44px;left:50%;transform:translateX(-50%);background:#0a1f5c;color:#fff;font-size:12px;font-weight:700;white-space:nowrap;padding:5px 9px;border-radius:9px;display:none}
.tip.on{display:block}
.tip a{color:#7dd3fc;text-decoration:none}
.coords{text-align:center;color:#475569;font-size:13px;margin:10px 0 2px}
.hint{text-align:center;color:#64748b;font-size:13px;margin:0}

/* forms */
.form label{display:block;font-size:13px;font-weight:600;color:#334155;margin:12px 0 5px}
.form input{width:100%;height:46px;border-radius:10px;border:2px solid #cbd5e1;padding:0 12px;font-size:15px}
.form input:focus{outline:0;border-color:#38bdf8}
.form input.bad{border-color:#ef4444}
.form .req{color:#ef4444}
.form .err{color:#ef4444;font-size:12px;min-height:14px;margin-top:3px}
.form .addr input{width:100%;border-color:#cbd5e1;font-weight:400;font-size:15px}
.form .sugg{width:100%}
.primary{margin-top:18px;width:100%;height:48px;border:0;border-radius:12px;background:#22c55e;color:#fff;font-weight:800;font-size:16px}
.primary:disabled{opacity:.5;cursor:not-allowed}
.gwrap{display:flex;justify-content:center;margin:16px 0}
.who{display:flex;align-items:center;gap:12px;background:#f1f5f9;border-radius:12px;padding:10px}
.who img{width:44px;height:44px;border-radius:50%}
.muted{color:#64748b;font-size:14px}

/* overlays */
.modal{position:fixed;inset:0;background:rgba(2,6,23,.6);display:none;align-items:center;justify-content:center;z-index:100;padding:16px}
.modal.open{display:flex}
.card{background:#fff;border-radius:16px;padding:16px;width:100%;max-width:420px}
.card-head{display:flex;justify-content:space-between;align-items:center;font-weight:800;margin-bottom:10px}
.card-head button{border:0;background:none;font-size:24px;line-height:1}
.grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.grid button{height:40px;border-radius:10px;border:2px solid #cbd5e1;background:#fff;font-weight:800}
.grid button:hover{border-color:#38bdf8}
.card .row{justify-content:flex-end;margin-top:12px}
.card .row button{height:40px;padding:0 18px;border-radius:10px;border:0;font-weight:700}
.ok{background:#22c55e;color:#fff}
.vslot{width:100%;max-width:860px;aspect-ratio:16/9;background:#000;border-radius:12px;overflow:hidden;position:relative}
.vslot iframe{width:100%;height:100%;border:0}
#vidClose{position:absolute;top:14px;right:18px;font-size:30px;color:#fff;background:none;border:0}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(20px);background:#0a1f5c;color:#fff;padding:11px 18px;border-radius:12px;font-weight:600;opacity:0;transition:.25s;z-index:200;max-width:90vw;text-align:center}
.toast.on{opacity:1;transform:translateX(-50%) translateY(0)}

/* footer */
footer{background:#0a1f5c;color:#fff;padding:20px 14px 14px}
.foot{max-width:760px;margin:0 auto;display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.foot .pic img{width:180px;height:110px;object-fit:cover;border-radius:10px;display:block}
.contacts h3{margin:0 0 6px;font-size:14px;letter-spacing:1px}
.contacts a{color:#7dd3fc}
.foot-info{text-align:center;font-size:12px;opacity:.7;margin-top:14px}

@media (max-width:520px){
  .row{gap:8px}
  .band{padding:8px 6px}
  .addr input{width:110px}
}
.form .addr input::placeholder{color:#94a3b8;font-weight:400}
#btnGender .g{font-size:26px}
