@font-face{font-family:"LPSD Jost";font-weight:100 900;src:url("../fonts/jost-latin-wght-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2212}
@font-face{font-family:"LPSD Jost";font-weight:100 900;src:url("../fonts/jost-latin-ext-wght-normal.woff2") format("woff2");unicode-range:U+0100-02FF,U+1E00-1EFF}
@font-face{font-family:"LPSD Jost";font-weight:100 900;src:url("../fonts/jost-cyrillic-wght-normal.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+2116}
@font-face{font-family:"LPSD Pixel";font-weight:400;src:url("../fonts/silkscreen-latin-400-normal.woff2") format("woff2");unicode-range:U+0000-00FF}

#lpsd-layer{position:absolute;left:0;top:0;width:0;height:0;z-index:2147483000;font-family:"LPSD Jost",system-ui,sans-serif}
.lpsd-pin{position:absolute;width:28px;height:28px;margin:0;padding:0;border:2px solid #fff;border-radius:50%;background:#0055ff;color:#fff;font:700 12px/1 "LPSD Jost",system-ui,sans-serif;cursor:pointer;display:grid;place-items:center;box-shadow:0 2px 8px rgba(0,22,85,.3);transition:transform .15s}
.lpsd-pin:hover{transform:scale(1.12)}
.lpsd-pin::after{content:"";position:absolute;inset:-10px}
.lpsd-pin.open{background:#e8590c}
.lpsd-pin.active{background:#001655;box-shadow:0 0 0 4px rgba(0,85,255,.35),0 2px 8px rgba(0,22,85,.3)}
.lpsd-pin:focus-visible{outline:3px solid #001655;outline-offset:3px}
#lpsd-box{position:absolute;pointer-events:none;border:2px solid #0055ff;border-radius:12px;background:rgba(0,85,255,.06);box-shadow:0 0 0 6px rgba(0,85,255,.08);z-index:2147482999;display:none;transition:all .2s}

#lpsd-toggle{position:fixed;left:16px;bottom:16px;z-index:2147483001;font:600 15px "LPSD Jost",system-ui,sans-serif;background:#001655;color:#fff;border:0;border-radius:999px;padding:12px 20px;min-height:46px;cursor:pointer;box-shadow:0 8px 24px rgba(0,22,85,.3)}
#lpsd-panel{position:fixed;top:16px;right:16px;bottom:16px;width:min(400px,calc(100vw - 32px));background:#fff;color:#001655;border-radius:20px;box-shadow:0 24px 64px rgba(0,22,85,.22),0 2px 8px rgba(0,22,85,.08);z-index:2147483002;display:none;flex-direction:column;overflow:hidden;font:400 16px/1.55 "LPSD Jost",system-ui,sans-serif}
#lpsd-panel.show{display:flex}
#lpsd-panel *{box-sizing:border-box}
#lpsd-panel header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:18px 20px 10px}
#lpsd-panel header h2{font:800 20px "LPSD Jost",sans-serif;letter-spacing:-.02em;margin:0;color:#001655}
#lpsd-panel button{font:inherit;cursor:pointer}
#lpsd-panel button:focus-visible{outline:3px solid #0055ff;outline-offset:2px}
.lpsd-x{background:#f1f3f9;color:#001655;border:0;border-radius:50%;width:40px;height:40px;font-size:22px !important;line-height:1;display:grid;place-items:center}
.lpsd-x:hover{background:#e2e7f3}
.lpsd-filters{padding:4px 20px 14px;display:flex;flex-wrap:wrap;gap:6px}
.lpsd-chip{border:1px solid #dfe3ee;background:#fff;color:#001655;border-radius:999px;padding:6px 14px;min-height:34px;font-size:13px !important;font-weight:500 !important;transition:background .15s,border-color .15s}
.lpsd-chip:hover{border-color:#8fb0ff}
.lpsd-chip[aria-pressed="true"]{background:#001655;border-color:#001655;color:#fff}
.lpsd-detail{margin:0 12px;padding:20px;background:#f6f8fd;border-radius:16px;overflow:auto;flex:0 0 auto;max-height:62%}
.lpsd-meta{display:flex;align-items:center;gap:8px;margin:0 0 10px}
.lpsd-num{width:28px;height:28px;border-radius:50%;background:#0055ff;color:#fff;font-weight:700;font-size:13px;display:grid;place-items:center}
.lpsd-badge{background:#fff1e6;color:#b8410e;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:600}
.lpsd-detail h3{font:800 21px/1.2 "LPSD Jost",sans-serif;margin:0 0 .5em;letter-spacing:-.02em;color:#001655}
.lpsd-detail>p{margin:0 0 1em;color:#24345e}
.lpsd-src{background:#fff;border-radius:12px;padding:12px 14px;margin:0 0 4px;border:1px solid #e6eaf3}
.lpsd-src span{display:block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#0055ff;margin-bottom:4px}
.lpsd-src p{margin:0;font-size:14px;line-height:1.5;color:#4a5a7a}
.lpsd-op{margin-top:10px;display:inline-flex;align-items:center;background:#e8590c;color:#fff !important;text-decoration:none;border-radius:999px;padding:8px 16px;font-weight:600;font-size:14px}
.lpsd-op:hover{background:#b8410e}
.lpsd-foot{flex:none;padding:12px 16px 16px;border-top:1px solid #e6eaf3;background:#fff;display:flex;flex-direction:column;gap:10px}
.lpsd-fbbtn{width:100%;min-height:46px;border-radius:999px;border:1px solid #dfe3ee;background:#f6f8fd;color:#001655;font-weight:700 !important;font-size:15px !important;transition:background .15s,border-color .15s,color .15s}
.lpsd-fbbtn:hover{border-color:#0055ff;color:#0055ff}
.lpsd-fbbtn[hidden]{display:none}
.lpsd-nav{display:flex;align-items:center;gap:10px}
.lpsd-nav:has(.lpsd-last){flex-wrap:wrap}
.lpsd-next.lpsd-last{flex:1 1 100%;order:-1}
.lpsd-nav button{flex:1;border-radius:999px;min-height:48px;font-weight:700 !important;font-size:15px !important;transition:background .15s,border-color .15s,color .15s}
.lpsd-prev{border:1px solid #dfe3ee;background:#fff;color:#001655}
.lpsd-prev:hover{border-color:#0055ff;color:#0055ff}
.lpsd-next{border:0;background:#0055ff;color:#fff;box-shadow:0 4px 12px rgba(0,85,255,.3)}
.lpsd-next:hover{background:#001655}
.lpsd-nav button:disabled{opacity:.4;cursor:default}
.lpsd-pos{flex:none;min-width:52px;text-align:center;font-weight:700;font-size:14px;color:#4a5a7a}
.lpsd-list{list-style:none;margin:0;padding:12px;overflow:auto;flex:1 1 0;min-height:0}
.lpsd-list button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:0;border-radius:12px;background:transparent;color:#001655;padding:10px 12px;min-height:44px;font-size:15px !important}
.lpsd-list button:hover{background:#f6f8fd}
.lpsd-list button[aria-current="true"]{background:#eaf0ff;font-weight:600}
.lpsd-list .n{flex:none;width:24px;height:24px;border-radius:50%;background:#eaf0ff;color:#0055ff;font-size:12px;font-weight:700;display:grid;place-items:center}
.lpsd-list button[aria-current="true"] .n{background:#0055ff;color:#fff}
.lpsd-list .o{margin-left:auto;flex:none;background:#fff1e6;color:#b8410e;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:600}
.lpsd-empty{padding:14px;color:#4a5a7a}
@media (max-width:640px){
  #lpsd-panel{top:auto;left:8px;right:8px;bottom:8px;width:auto;border-radius:20px}
  #lpsd-panel{height:72vh}
  #lpsd-panel header{padding:14px 16px 8px}
  .lpsd-filters{flex-wrap:nowrap;overflow-x:auto;padding:2px 16px 10px;scrollbar-width:none}
  .lpsd-filters::-webkit-scrollbar{display:none}
  .lpsd-chip{flex:none}
  .lpsd-detail{flex:0 1 auto;max-height:none;margin:0 8px 8px;padding:16px}
  .lpsd-list{display:none}
  #lpsd-panel{height:auto;max-height:72vh}
  #lpsd-toggle{left:auto;right:16px;bottom:84px}
}
