/* Фарватер — окошко-помощник (кнопка в углу + чат с заявкой) */
.fc{--fc-navy:#0b2236;--fc-sig:#ff6a3d;position:fixed;right:20px;bottom:20px;z-index:80;font:500 15px/1.45 "Manrope",system-ui,-apple-system,sans-serif;color:#10202e}
.fc-fab{position:relative;width:62px;height:62px;border-radius:50%;border:0;background:var(--fc-sig);display:grid;place-items:center;cursor:pointer;box-shadow:0 14px 34px -10px rgba(255,106,61,.65),0 4px 12px rgba(0,0,0,.25);transition:transform .2s;margin-left:auto}
.fc-fab:hover{transform:scale(1.06)}
.fc-fab img{width:28px;height:28px}
.fc-dot{position:absolute;right:3px;top:3px;width:14px;height:14px;border-radius:50%;background:#3ee38a;border:3px solid #fff}
.fc.open .fc-dot{display:none}
.fc-teaser{position:absolute;right:0;bottom:76px;width:260px;background:#fff;border-radius:18px 18px 4px 18px;padding:14px 34px 14px 16px;box-shadow:0 18px 40px -14px rgba(0,0,0,.45);opacity:0;transform:translateY(10px);transition:opacity .25s,transform .3s}
.fc-teaser.show{opacity:1;transform:none}
.fc-teaser p{cursor:pointer;margin:0}
.fc-teaser b{display:block;color:var(--fc-navy)}
.fc-x,.fc-close{position:absolute;border:0;background:transparent;font:400 22px/1 system-ui,sans-serif;cursor:pointer;width:32px;height:32px;display:grid;place-items:center;border-radius:50%}
.fc-x{right:4px;top:4px;color:#7b8a99}
.fc-panel{position:absolute;right:0;bottom:78px;width:370px;height:min(580px,calc(100vh - 120px));display:flex;flex-direction:column;background:#eef2f6;border-radius:22px;overflow:hidden;box-shadow:0 40px 90px -30px rgba(0,0,0,.6),0 0 0 1px rgba(11,34,54,.08);opacity:0;transform:translateY(14px) scale(.98);transform-origin:bottom right;transition:opacity .22s,transform .25s}
.fc.open .fc-panel{opacity:1;transform:none}
.fc-panel[hidden],.fc-teaser[hidden]{display:none}
.fc-head{position:relative;display:flex;align-items:center;gap:12px;padding:16px 48px 16px 16px;background:var(--fc-navy);color:#fff}
.fc-head b{display:block;font-weight:800;font-size:15px}
.fc-head small{display:block;font-size:12px;color:#9fd5b5}
.fc-ava{width:40px;height:40px;border-radius:50%;background:var(--fc-sig);display:grid;place-items:center;flex:none}
.fc-ava img{width:20px;height:20px}
.fc-close{right:10px;top:50%;margin-top:-16px;color:#fff}
.fc-close:hover{background:rgba(255,255,255,.1)}
.fc-feed{flex:1;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:8px;overscroll-behavior:contain}
.fc-msg{max-width:86%;padding:10px 13px;border-radius:16px 16px 16px 4px;background:#fff;box-shadow:0 1px 1px rgba(0,0,0,.05);animation:fcIn .25s ease both}
.fc-msg.me{align-self:flex-end;background:#ffe3d8;border-radius:16px 16px 4px 16px}
.fc-msg.typing{display:flex;gap:4px;padding:13px 14px;width:max-content}
.fc-msg.typing i{width:7px;height:7px;border-radius:50%;background:#8aa0b3;animation:fcDot 1s infinite}
.fc-msg.typing i:nth-child(2){animation-delay:.15s}.fc-msg.typing i:nth-child(3){animation-delay:.3s}
@keyframes fcDot{50%{transform:translateY(-4px);opacity:.5}}
@keyframes fcIn{from{opacity:0;transform:translateY(6px)}}
.fc-keys{display:flex;flex-wrap:wrap;gap:7px;padding:12px;background:#fff;border-top:1px solid #e1e7ed}
.fc-keys:empty{display:none}
.fc-keys>button{flex:1 1 auto;border:1.5px solid var(--fc-navy);background:#fff;color:var(--fc-navy);font:700 14px/1.2 "Manrope",sans-serif;padding:11px 12px;border-radius:12px;cursor:pointer}
.fc-keys>button:hover{background:var(--fc-navy);color:#fff}
.fc-form{display:grid;gap:8px;width:100%}
.fc-form input:not([type=checkbox]),.fc-form textarea{width:100%;border:1.5px solid #cdd6df;border-radius:12px;padding:11px 12px;font:500 16px/1.3 "Manrope",sans-serif;color:#10202e;background:#fff;resize:none}
.fc-form input:focus,.fc-form textarea:focus{outline:none;border-color:var(--fc-sig)}
.fc-hp{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0}
.fc-ok{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:1.4;color:#5b6b7b;cursor:pointer}
.fc-ok input{-webkit-appearance:none;appearance:none;width:18px!important;height:18px!important;padding:0!important;margin:1px 0 0;border:1.5px solid #9aa8b6!important;border-radius:5px!important;background:#fff!important;display:grid;place-content:center;flex:none;cursor:pointer}
.fc-ok input:checked{background:#ff6a3d!important;border-color:#ff6a3d!important}
.fc-ok input:checked::before{content:"";width:9px;height:5px;border:2px solid #fff;border-top:0;border-right:0;transform:translateY(-1px) rotate(-45deg)}
.fc-ok input:focus-visible{outline:2px solid #ff6a3d;outline-offset:2px}
.fc-ok a{color:var(--fc-navy);text-decoration:underline}
.fc-send{border:0;border-radius:999px;background:var(--fc-sig);color:#fff;font:800 15px/1 "Manrope",sans-serif;padding:15px;cursor:pointer}
.fc-send:disabled{opacity:.6}
.fc-err{margin:0;font-size:13px;color:#c2361b;min-height:0}
.fc-err a{color:inherit;font-weight:800}
@media (max-width:600px){
  .fc{right:14px;bottom:14px}
  .fc-fab{width:56px;height:56px}
  .fc-teaser{bottom:68px;width:min(260px,calc(100vw - 28px))}
  .fc-panel{position:fixed;left:8px;right:8px;bottom:8px;width:auto;height:min(620px,calc(100svh - 24px));border-radius:20px;transform-origin:bottom center}
  .fc.open .fc-fab{opacity:0;pointer-events:none}
}
@media (prefers-reduced-motion:reduce){.fc *{animation:none!important;transition:none!important}}
@media print{.fc{display:none}}
