/* Чат Flashmotive */
.fm-chat{position:fixed;right:22px;bottom:22px;z-index:9998;font-family:'Inter',system-ui,sans-serif}
.fm-chat__launcher{width:62px;height:62px;border-radius:50%;border:none;cursor:pointer;background:linear-gradient(135deg,#7c3aed,#2563eb);color:#fff;font-size:24px;box-shadow:0 12px 30px rgba(37,99,235,.45);display:flex;align-items:center;justify-content:center;position:relative;transition:transform .2s}
.fm-chat__launcher:hover{transform:scale(1.06)}
.fm-chat__badge{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;border-radius:10px;background:#ef4444;color:#fff;font-size:11px;font-weight:700;display:none;align-items:center;justify-content:center;padding:0 5px}
.fm-chat__panel{position:fixed;right:22px;bottom:96px;width:390px;max-height:min(640px,calc(100vh - 130px));background:#0b1626;border:1px solid rgba(56,189,248,.25);border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.55);display:none;flex-direction:column;overflow:hidden;color:#e6f1f9}
.fm-chat--open .fm-chat__panel{display:flex}
.fm-chat__head{display:flex;align-items:center;gap:10px;padding:14px 16px;background:linear-gradient(120deg,#131f36,#1b1430);border-bottom:1px solid rgba(56,189,248,.15)}
.fm-chat__avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#8b5cf6,#38bdf8);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;color:#fff;flex:none}
.fm-chat__title{font-size:14px;font-weight:800;line-height:1.2}
.fm-chat__mode{font-size:11px;color:#8fb6cf;display:flex;align-items:center;gap:5px;margin-top:2px}
.fm-chat__dot{width:7px;height:7px;border-radius:50%;background:#f59e0b}
.fm-chat__dot--on{background:#22c55e}
.fm-chat__head-actions{margin-left:auto;display:flex;gap:6px}
.fm-chat__icon{background:transparent;border:none;color:#9fc4da;cursor:pointer;font-size:15px;padding:5px}
.fm-chat__icon:hover{color:#fff}
.fm-chat__body{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:9px;background:radial-gradient(circle at 80% 0%,rgba(56,189,248,.06),transparent 60%)}
.fm-chat__msg{max-width:86%;padding:9px 12px;border-radius:14px;font-size:13.5px;line-height:1.45;overflow-wrap:anywhere;white-space:pre-wrap}
.fm-chat__msg--visitor{align-self:flex-end;background:linear-gradient(135deg,#7c3aed,#4f46e5);color:#fff;border-bottom-right-radius:4px}
.fm-chat__msg--operator,.fm-chat__msg--ai{align-self:flex-start;background:#16233a;border:1px solid rgba(56,189,248,.16);color:#dcebf5;border-bottom-left-radius:4px}
.fm-chat__msg--system{align-self:center;background:rgba(148,163,184,.12);color:#9fb3c8;font-size:11.5px;padding:6px 10px;border-radius:9px;text-align:center;max-width:95%}
.fm-chat__msg--pending{opacity:.65}
.fm-chat__meta{font-size:10px;opacity:.65;margin-top:4px;text-align:right}
.fm-chat__msg a{color:#7dd3fc;text-decoration:underline}
.fm-chat__typing{align-self:flex-start;font-size:11px;color:#8fb6cf;padding:2px 4px}
.fm-chat__foot{padding:10px 12px 12px;border-top:1px solid rgba(56,189,248,.12);background:#0d1a2c}
.fm-chat__form{display:flex;gap:8px;align-items:flex-end}
.fm-chat__input{flex:1;resize:none;max-height:110px;min-height:40px;padding:10px 12px;border-radius:12px;border:1px solid rgba(56,189,248,.25);background:#091422;color:#e6f1f9;font-size:13.5px;font-family:inherit;outline:none}
.fm-chat__input:focus{border-color:#38bdf8}
.fm-chat__send{width:42px;height:40px;border-radius:11px;border:none;background:linear-gradient(135deg,#8b5cf6,#2563eb);color:#fff;cursor:pointer;font-size:15px;flex:none}
.fm-chat__send:disabled{opacity:.5;cursor:default}
.fm-chat__status{font-size:10px;color:#7e9bb0;margin-top:6px;text-align:center}
.fm-chat__notice{font-size:11px;color:#9fb3c8;text-align:center;padding:8px;background:rgba(180,140,60,.12);border-radius:8px;margin:6px 0}
@media(max-width:600px){
 .fm-chat{right:12px;bottom:12px}
 .fm-chat__launcher{width:54px;height:54px;font-size:21px}
 .fm-chat__panel{right:0;bottom:0;width:100%;height:100%;max-height:none;border-radius:0;border:none}
 .fm-chat__body{font-size:14px}
}
