/* Нейро-консультант qpkresla.ru — стили виджета. Зелёный бренда #84bf41. */
.qc-root{position:fixed;right:20px;bottom:20px;z-index:100010;font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:#222}
.qc-root *,.qc-root *::before,.qc-root *::after{box-sizing:border-box}
.qc-fab{display:flex;align-items:center;gap:10px;border:0;border-radius:28px;background:#84bf41;color:#fff;padding:0 20px 0 14px;height:52px;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.18);font:600 14px/1 inherit;font-family:inherit;transition:transform .15s}
.qc-fab:hover{transform:translateY(-1px);background:#76ad39}
.qc-fab--hid{display:none}
.qc-fab__ic{width:24px;height:24px;border-radius:50%;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2384bf41' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1.1-4.4A8 8 0 1 1 21 12z'/%3E%3C/svg%3E") center/16px no-repeat}
.qc-win{position:fixed;right:20px;bottom:20px;width:380px;max-width:calc(100vw - 40px);height:600px;max-height:calc(100vh - 40px);background:#fff;border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.22);display:flex;flex-direction:column;overflow:hidden}
.qc-win[hidden]{display:none}
.qc-head{display:flex;align-items:center;gap:10px;padding:12px 14px;background:#84bf41;color:#fff}
.qc-ava{width:36px;height:36px;border-radius:50%;background:#fff;color:#84bf41;font-weight:700;font-size:16px;display:flex;align-items:center;justify-content:center;flex:none}
.qc-head__t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.qc-head__t b{font-size:15px}.qc-head__t span{font-size:12px;opacity:.9}
.qc-x{border:0;background:transparent;color:#fff;font-size:28px;line-height:1;cursor:pointer;padding:0 4px}
.qc-body{flex:1;overflow-y:auto;padding:14px 12px;background:#f5f7f4;display:flex;flex-direction:column;gap:8px}
.qc-m{max-width:88%;padding:9px 12px;border-radius:14px;white-space:normal;word-wrap:break-word}
.qc-m--b{align-self:flex-start;background:#fff;border-bottom-left-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.qc-m--u{align-self:flex-end;background:#dff0c8;border-bottom-right-radius:4px}
.qc-m a{color:#4e8a12}
.qc-typing i{display:inline-block;width:7px;height:7px;margin:0 2px;border-radius:50%;background:#aaa;animation:qc-b 1s infinite}
.qc-typing i:nth-child(2){animation-delay:.2s}.qc-typing i:nth-child(3){animation-delay:.4s}
@keyframes qc-b{0%,80%,100%{opacity:.3}40%{opacity:1}}
.qc-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-width:100%}
.qc-card{display:block;background:#fff;border-radius:12px;padding:8px;text-decoration:none;color:#222;box-shadow:0 1px 2px rgba(0,0,0,.06);border:1px solid #eef0ea}
.qc-card:hover{border-color:#84bf41}
.qc-card img{width:100%;aspect-ratio:1/1;object-fit:contain;background:#fafafa;border-radius:8px;display:block}
.qc-card__n{font-size:12px;line-height:1.3;margin:6px 0 4px;max-height:2.6em;overflow:hidden}
.qc-card__p{font-weight:700;font-size:14px}.qc-card__p s{font-weight:400;color:#999;font-size:12px;margin-left:4px}
.qc-card__l{font-size:11px;color:#666;margin-top:2px}
.qc-card__b{display:inline-block;margin-top:6px;font-size:12px;color:#4e8a12;font-weight:600}
.qc-quick{display:flex;gap:6px;flex-wrap:wrap;padding:0 12px 8px;background:#f5f7f4}
.qc-quick:empty{display:none}
.qc-q{border:1px solid #84bf41;background:#fff;color:#4e8a12;border-radius:16px;padding:6px 12px;font-size:13px;cursor:pointer;font-family:inherit}
.qc-q:hover{background:#eef7e3}
.qc-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #e8eae4;background:#fff}
.qc-in{flex:1;height:40px;resize:none;border:1px solid #d9dbd4;border-radius:12px;padding:9px 12px;font:14px/1.4 inherit;font-family:inherit;max-height:120px;outline:none}
.qc-in:focus{border-color:#84bf41}
.qc-send{width:40px;height:40px;border:0;border-radius:50%;background:#84bf41 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M2 21l21-9L2 3v7l15 2-15 2z'/%3E%3C/svg%3E") center/18px no-repeat;cursor:pointer;flex:none;align-self:flex-end}
.qc-foot{display:flex;gap:6px;justify-content:center;padding:6px 12px 10px;font-size:12px;color:#888;background:#fff}
.qc-link{border:0;background:none;color:#4e8a12;text-decoration:underline;cursor:pointer;font:inherit;font-family:inherit;padding:0}
.qc-ho{display:flex;flex-direction:column;gap:8px;max-width:100%}
.qc-hi{border:1px solid #d9dbd4;border-radius:10px;padding:9px 12px;font:14px inherit;font-family:inherit;width:100%}
.qc-cons{font-size:12px;color:#555;display:flex;gap:6px;align-items:flex-start}
.qc-cons input{margin-top:3px}
.qc-hb{border:0;border-radius:10px;background:#84bf41;color:#fff;padding:10px;font:600 14px inherit;font-family:inherit;cursor:pointer}
.qc-hb:disabled{opacity:.6}
@media (max-width:639px){
  .qc-root{right:12px;bottom:12px}
  .qc-fab{height:48px;padding:0 16px 0 12px}
  .qc-win{right:0;bottom:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}
  html.qc-lock,html.qc-lock body{overflow:hidden}
  .qc-cards{grid-template-columns:1fr 1fr}
}
