/* Модалка открытия сделки */
/* open-deal modal */
.odm{position:fixed;z-index:62;left:50%;top:50%;transform:translate(-50%,-50%);width:min(580px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;
  padding:24px;border-radius:22px;background:radial-gradient(90% 50% at 50% 0%,rgba(212,174,98,.12),transparent 70%),#111113;border:1px solid rgba(212,174,98,.3);
  box-shadow:0 40px 100px #000;display:flex;flex-direction:column;gap:18px;animation:mIn .4s var(--spring) both;color:#eae2de}
@keyframes mIn{from{opacity:0;transform:translate(-50%,-46%) scale(.97)}to{opacity:1;transform:translate(-50%,-50%)}}
.odm-h{display:flex;align-items:center;gap:12px}
.odm-h .sh{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;color:#2b1a05;background:linear-gradient(180deg,var(--gold-hi),#b98d3c);flex:none}
.odm-h h3{margin:0;font-size:20px;font-weight:600;flex:1}
.odm-h small{display:block;font-size:14px;font-weight:500;color:rgba(255,255,255,.5);margin-top:2px}
.xbtn{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:rgba(255,255,255,.6);background:rgba(255,255,255,.05);flex:none}
.xbtn:hover{color:#fff;background:rgba(255,255,255,.1)}
.lotbox{display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:14px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07)}
.lotbox .who{display:flex;align-items:center;gap:8px;font-size:14px;color:rgba(255,255,255,.6)}
.lotbox .who b{color:#eae2de;font-weight:600}
.lotbox .who em{font-style:normal;margin-left:auto;display:flex;align-items:center;gap:4px;color:var(--gold)}
.lotbox h4{margin:0;font-size:18px;font-weight:600;line-height:1.3}
.lotbox code{font:500 13px ui-monospace,Menlo,monospace;color:#9db0c9}
.tri{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:6px;text-align:center;font-size:13px;color:rgba(255,255,255,.55)}
.tri div{display:flex;flex-direction:column;align-items:center;gap:6px}
.tri span.r{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;font-weight:600;font-size:15px}
.tri b{font-size:14px;font-weight:600;color:#eae2de}
.tri .arr{height:2px;width:clamp(24px,6vw,60px);background:repeating-linear-gradient(90deg,rgba(212,174,98,.6) 0 6px,transparent 6px 10px);position:relative}
.tri .arr::after{content:"";position:absolute;right:-2px;top:-4px;border:5px solid transparent;border-left-color:rgba(212,174,98,.8)}
.fld{display:flex;flex-direction:column;gap:8px}
.fld>label,.fld>span{font-size:14px;font-weight:500;color:rgba(255,255,255,.55)}
.money{display:flex;align-items:center;height:46px;padding:0 14px;border-radius:12px;background:rgba(0,0,0,.4);border:1px solid rgba(255,255,255,.12);gap:8px}
.money:focus-within{border-color:rgba(212,174,98,.6)}
.money input{flex:1;min-width:0;background:none;border:0;outline:0;color:#fff;font:600 18px var(--font);font-variant-numeric:tabular-nums}
.money i{font-style:normal;color:rgba(255,255,255,.5);font-weight:600}
.frow{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.calc{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.03);border:1px dashed rgba(255,255,255,.1)}
.kv{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:5px 0;font-size:14px}
.kv span{color:rgba(255,255,255,.55)}
.kv b{font-weight:600;color:#eae2de;font-variant-numeric:tabular-nums;text-align:right}
.kv.tot{border-top:1px solid rgba(255,255,255,.08);margin-top:4px;padding-top:10px}
.kv.tot b{font-size:20px;color:var(--gold-hi)}
.how{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;counter-reset:h}
.how li{counter-increment:h;display:flex;flex-direction:column;gap:6px;padding:10px;border-radius:12px;background:rgba(255,255,255,.03);font-size:13px;line-height:1.35;color:rgba(255,255,255,.6)}
.how li::before{content:counter(h);width:22px;height:22px;border-radius:7px;display:grid;place-items:center;font-size:12px;font-weight:600;color:var(--gold);background:rgba(212,174,98,.12)}
.agree{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.4;color:rgba(255,255,255,.7);cursor:pointer}
.agree input{appearance:none;-webkit-appearance:none;width:20px;height:20px;margin:0;flex:none;border-radius:6px;border:1px solid rgba(255,255,255,.25);background:rgba(0,0,0,.4);display:grid;place-items:center}
.agree input:checked{background:var(--gold);border-color:var(--gold)}
.agree input:checked::after{content:"";width:10px;height:5px;border:2px solid #2b1a05;border-top:0;border-right:0;transform:translateY(-1px) rotate(-45deg)}
.odm-f{display:flex;gap:10px;justify-content:flex-end}
.odm-f .btn{min-width:150px}
