/* Демо-кабінет: смуга «Демо», заклики, вікна. Лише в збірці демо (cabinet/maket/build_demo.py) */
.dbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;padding:0 max(48px,calc((100% - 1440px)/2 + 48px));background:#0B2530;color:#fff;font-size:14px}
.dbar p{margin:0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dbar b{font-weight:600}
.dbar .dn{display:none}
.dbar .btn{flex:none;min-height:36px;height:36px;padding:0 16px;font-size:14px}
.dbar .btn.or{background:var(--orange);border-color:var(--orange);color:#fff}
.dbar .btn.or:hover{background:var(--orange-ink);border-color:var(--orange-ink)}
.dcta{display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:1440px;margin:24px auto 0;padding:24px max(48px,calc((100% - 1440px)/2 + 48px));border-top:1px solid var(--line2);border-bottom:1px solid var(--line2)}
.dcta p{margin:0;font-size:20px;font-weight:500;color:var(--ink)}
.ddlg{width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:0;color:var(--ink)}
.ddlg::backdrop{background:rgba(13,21,26,.55)}
.dd-h{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line2)}
.dd-h h2{margin:0;font-size:20px;font-weight:600}
.dd-x{width:40px;height:40px;border:0;background:none;font-size:24px;cursor:pointer}
.dd-form{display:grid;gap:8px;padding:20px 24px 24px}
.dd-form label{display:grid;gap:6px;font-size:14px;color:var(--ink2)}
.dd-form input:not([type=checkbox]),.dd-form select{height:48px;padding:0 12px;border:1px solid #B8C2C5;border-radius:0;font:inherit;font-size:16px;color:var(--ink);background:#fff}
.dd-form .dd-ok{display:flex;align-items:flex-start;gap:10px;margin-top:8px}
.dd-form .dd-ok input{width:20px;height:20px;margin:0;flex:none}
.dd-form .btn{height:48px;margin-top:12px}
.dd-e{min-height:0;margin:0;font-size:13px;color:var(--red)}
.dd-e:empty{display:none}
.dd-trap{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.dd-msg:not(:empty){margin-top:8px;padding:12px 16px;background:var(--red-soft)}
.dd-msg b{display:block;color:var(--red)}
.dd-msg span{font-size:14px}
.dd-won{position:relative;display:grid;justify-items:center;gap:16px;padding:32px 24px 24px;text-align:center}
.dd-won .dd-x{position:absolute;top:8px;right:8px}
.dd-badge{width:64px;height:64px}
.dd-badge circle{fill:var(--green-soft)}
.dd-badge path{fill:none;stroke:var(--green);stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:40;animation:dd-tick .5s var(--ease) .1s both}
@keyframes dd-tick{from{stroke-dashoffset:40}to{stroke-dashoffset:0}}
.dd-won h2{margin:0;font-size:24px;font-weight:600;outline:none}
/* Три кроки: перший зроблено, лінія веде до наступних */
.dd-way{margin:0 24px;padding:24px 0 0;border-top:1px solid var(--line2);list-style:none;counter-reset:dd}
.dd-way li{position:relative;counter-increment:dd;display:grid;align-content:start;min-height:56px;padding:3px 0 12px 44px}
.dd-way li::before{content:counter(dd);position:absolute;left:0;top:0;width:28px;height:28px;box-sizing:border-box;border:1px solid #B8C2C5;border-radius:50%;display:grid;place-items:center;font-size:13px;color:var(--ink2)}
.dd-way li.is-done::before{content:'✓';border-color:var(--green);background:var(--green);color:#fff}
.dd-way li:not(:last-child)::after{content:'';position:absolute;left:13px;top:32px;bottom:4px;width:2px;background:var(--line)}
.dd-way li:last-child{min-height:0;padding-bottom:0}
.dd-way+.dd-f{padding-top:24px}
.dd-way b{font-weight:600}
.dd-way span{font-size:14px;color:var(--ink2);overflow-wrap:anywhere}
.dd-steps{margin:0;padding:20px 24px 8px 48px;display:grid;gap:16px}
.dd-steps li b{display:block;font-weight:600}
.dd-steps li span{font-size:14px;color:var(--ink2)}
.dd-f{padding:16px 24px 24px}
.dd-f .btn{width:100%;height:48px}
@media (prefers-reduced-motion:reduce){.dd-badge path{animation:none}}
@media (max-width:759px){
  .dbar{min-height:44px;padding:0 16px;gap:8px}
  .dbar .btn{padding:0 12px;font-size:13px}
  .dbar .dw{display:none}
  .dbar .dn{display:inline}
  .dcta{flex-direction:column;align-items:stretch;gap:16px;margin-top:16px;padding:20px 16px}
  .dcta p{font-size:18px}
  .dcta .btn{height:48px}
  .ddlg{width:100%;max-width:none;margin:auto 0 0;max-height:92dvh}
}
