/* Окно «Вопрос организатору» (04.10.2026) — согласованный макет
   docs/mockups/chat-widget/index.html. Общее для обеих раскладок сайта. */
.pcs{position:fixed;right:24px;bottom:24px;z-index:45;font-family:"EB Garamond",Garamond,Georgia,serif;color:#F3EBE2;
  transition:opacity .3s,transform .3s}
.pcs.away{opacity:0;transform:translateY(12px);pointer-events:none}
html.xp-open .pcs{display:none}
.pcs-fab{position:relative;display:flex;align-items:center;gap:.6rem;height:54px;padding:0 1.25rem 0 .55rem;border-radius:999px;cursor:pointer;
  background:linear-gradient(165deg,#2a211d,#211A17 45%,#120e0c);border:1px solid rgba(201,165,131,.55);
  box-shadow:0 0 0 3px rgba(22,17,15,.9),0 0 0 4px rgba(201,165,131,.22),0 18px 40px -12px rgba(0,0,0,.9);
  font-family:"Cormorant Garamond",Georgia,serif;font-size:1.08rem;letter-spacing:.02em;color:#F3EBE2;white-space:nowrap;transition:transform .3s}
.pcs-fab:hover{transform:translateY(-2px)}
.pcs-seal{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;
  background:radial-gradient(circle,rgba(255,90,40,.55),rgba(255,90,40,.12) 60%,transparent 72%)}
.pcs-seal svg{width:20px;height:20px;stroke:#F3EBE2;fill:none;stroke-width:1.4}
.pcs-dot{position:absolute;top:-2px;right:-2px;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#FF5A28;color:#fff;
  font:600 .72rem/20px "EB Garamond",Georgia,serif;text-align:center;box-shadow:0 0 0 2px #16110F}
.pcs-panel{width:360px;height:min(540px,calc(100svh - 48px));display:flex;flex-direction:column;border-radius:18px;overflow:hidden;
  background:linear-gradient(170deg,#241c18,#211A17 35%,#130f0d);border:1px solid rgba(201,165,131,.5);
  box-shadow:0 0 0 4px rgba(22,17,15,.85),0 0 0 5px rgba(201,165,131,.16),0 30px 70px -20px rgba(0,0,0,.95)}
.pcs-head{display:flex;align-items:center;gap:.75rem;padding:.9rem 1rem .85rem;border-bottom:1px solid rgba(201,165,131,.16)}
.pcs-head img{width:38px;height:38px;border-radius:50%;border:1px solid rgba(201,165,131,.34);background:#120e0c;padding:6px}
.pcs-head .t{flex:1;line-height:1.2}
.pcs-head b{display:block;font-family:"Cormorant Garamond",Georgia,serif;font-weight:500;font-size:1.12rem;letter-spacing:.02em}
.pcs-head small{color:#B8ABA0;font-size:.8rem}
.pcs-head small i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#7bbf6a;margin-right:.35rem;vertical-align:1px}
.pcs-x{width:32px;height:32px;border-radius:50%;border:1px solid rgba(201,165,131,.34);background:none;color:#B8ABA0;cursor:pointer;font-size:1.1rem;line-height:1}
.pcs-body{flex:1;overflow:auto;padding:1rem;display:flex;flex-direction:column;gap:.6rem;overscroll-behavior:contain}
.pcs-msg{max-width:85%;padding:.6rem .85rem;border-radius:14px;font-size:.95rem;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.pcs-msg.club{align-self:flex-start;background:rgba(201,165,131,.1);border:1px solid rgba(201,165,131,.16);border-bottom-left-radius:4px}
.pcs-msg.me{align-self:flex-end;background:linear-gradient(160deg,#ff6b3c,#d8420f);color:#fff;border-bottom-right-radius:4px}
.pcs-msg small{display:block;margin-top:.25rem;font-size:.72rem;opacity:.7}
.pcs-sys{align-self:center;text-align:center;font-size:.8rem;color:#B8ABA0;max-width:92%}
.pcs-sys b{color:#C9A583;font-weight:500}
.pcs-quick{display:flex;flex-wrap:wrap;gap:.4rem}
.pcs-quick button{border:1px solid rgba(201,165,131,.34);background:none;color:#F3EBE2;border-radius:999px;padding:.32rem .75rem;font:inherit;font-size:.85rem;cursor:pointer}
.pcs-quick button:hover{border-color:#C9A583}
.pcs-tg{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .6rem;padding:.65rem .8rem;border:1px dashed rgba(201,165,131,.34);border-radius:12px;font-size:.85rem;color:#B8ABA0}
.pcs-tg a{color:#C9A583}
.pcs-foot{display:flex;gap:.5rem;align-items:flex-end;padding:.7rem .75rem .8rem;border-top:1px solid rgba(201,165,131,.16)}
.pcs-foot textarea{flex:1;resize:none;height:44px;max-height:110px;border-radius:12px;border:1px solid rgba(201,165,131,.34);background:rgba(0,0,0,.25);
  color:#F3EBE2;font:inherit;font-size:16px;padding:.6rem .75rem}
.pcs-foot textarea::placeholder{color:#8d8178}
.pcs-send{width:44px;height:44px;flex:none;border-radius:12px;border:0;background:#FF5A28;color:#fff;cursor:pointer;display:grid;place-items:center}
.pcs-send:disabled{opacity:.5;cursor:default}
.pcs-send svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:1.8}
.pcs-legal{padding:0 .9rem .7rem;font-size:.7rem;color:#8d8178}
.pcs-legal a{color:inherit}
/* телефон: круглая кнопка без подписи, окно — снизу на ~80 % экрана */
@media (max-width:640px){
  .pcs{right:14px;bottom:14px}
  .pcs-fab{width:52px;height:52px;padding:0;justify-content:center}
  .pcs-fab .lbl{display:none}
  .pcs.open{left:0;right:0;bottom:0}
  .pcs.open .pcs-panel{width:100%;height:82svh;border-radius:20px 20px 0 0;border-bottom:0}
}
@media (prefers-reduced-motion:reduce){.pcs,.pcs-fab{transition:none}}
/* Соседи в правом нижнем углу (04.10.2026): кнопка «Наверх» встаёт над
   кнопкой вопроса; в мобильной раскладке кнопка вопроса — над нижней
   панелью «Подать заявку» (#dock), а без панели — у самого края. */
html.menu-open .pcs{display:none}
html:not(:has(#dock)) .totop{bottom:calc(92px + env(safe-area-inset-bottom))}
html:has(#dock) .pcs{right:12px;bottom:calc(var(--dock, 70px) + 10px);transition:opacity .3s,transform .3s,bottom .5s}
html.dockless:has(#dock) .pcs{bottom:calc(14px + var(--sab, 0px))}
html:has(#dock) .totop{bottom:calc(var(--dock, 70px) + 72px)}
html.dockless:has(#dock) .totop{bottom:calc(76px + var(--sab, 0px))}
html:has(#dock) .pcs.open{left:0;right:0;bottom:0;transition:none}
