/* ИИ-чат «ПроМебель»: кнопка с фото Ивана, подсказка, окно переписки */
.pmc { --pmc-ink: #3d3229; --pmc-ink2: #665a4b; --pmc-page: #fffaf1; --pmc-soft: #ffe3b3; --pmc-acc: #f88f22; --pmc-line: #f1dfbf; font: 400 17px/1.45 "Commissioner", "Segoe UI", Arial, sans-serif; color: var(--pmc-ink); }
.pmc *, .pmc *::before, .pmc *::after { box-sizing: border-box; margin: 0; padding: 0; }
.pmc button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
.pmc-launch { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 68px; height: 68px; border-radius: 50%; box-shadow: 0 10px 30px rgba(61, 50, 41, 0.28); background: var(--pmc-page); transition: transform .2s ease; }
.pmc-launch:hover { transform: translateY(-2px); }
.pmc-launch img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--pmc-page); display: block; }
.pmc-dot { position: absolute; right: 3px; bottom: 3px; width: 16px; height: 16px; border-radius: 50%; background: #3fa35c; border: 3px solid var(--pmc-page); }
.pmc-tease { position: fixed; right: 24px; bottom: 104px; z-index: 60; max-width: 300px; background: #fff; border-radius: 16px 16px 4px 16px; box-shadow: 0 10px 30px rgba(61, 50, 41, 0.22); padding: 14px 40px 14px 16px; font-size: 16px; line-height: 1.4; cursor: pointer; }
.pmc-tease b { display: block; font-weight: 500; margin-bottom: 2px; }
.pmc-tease-x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; font-size: 20px; line-height: 1; color: var(--pmc-ink2); border-radius: 8px; }
.pmc-tease-x:hover { background: var(--pmc-soft); }
.pmc-panel { position: fixed; right: 24px; bottom: 24px; z-index: 61; width: 400px; max-width: calc(100vw - 32px); height: min(640px, calc(100dvh - 48px)); display: flex; flex-direction: column; background: var(--pmc-page); border-radius: 16px; box-shadow: 0 24px 70px rgba(61, 50, 41, 0.35); overflow: hidden; }
.pmc [hidden] { display: none !important; }
.pmc-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: var(--pmc-soft); }
.pmc-head img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.pmc-head-t { flex: 1; min-width: 0; }
.pmc-head-t b { display: block; font-size: 18px; font-weight: 500; line-height: 1.2; }
.pmc-head-t span { display: block; font-size: 14px; color: var(--pmc-ink2); line-height: 1.3; margin-top: 2px; }
.pmc-x { flex: none; width: 44px; height: 44px; font-size: 26px; line-height: 1; border-radius: 10px; }
.pmc-x:hover { background: rgba(255, 255, 255, 0.6); }
.pmc-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.pmc-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 16px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: break-word; }
.pmc-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--pmc-line); border-bottom-left-radius: 4px; }
.pmc-msg.me { align-self: flex-end; background: var(--pmc-soft); border-bottom-right-radius: 4px; }
.pmc-typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; background: #fff; border: 1px solid var(--pmc-line); border-radius: 16px; border-bottom-left-radius: 4px; }
.pmc-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--pmc-ink2); opacity: .35; animation: pmc-b 1s infinite; }
.pmc-typing i:nth-child(2) { animation-delay: .15s; }
.pmc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pmc-b { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pmc-typing i { animation: none; opacity: .6; } .pmc-launch { transition: none; } }
.pmc-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--pmc-acc); color: var(--pmc-ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.pmc-link::after { content: "\2192"; }
.pmc-link:hover { filter: brightness(0.96); }
.pmc-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.pmc-quick button { padding: 8px 14px; border: 1px solid #d9c8a6; border-radius: 12px; font-size: 15px; font-weight: 500; background: var(--pmc-page); text-align: left; }
.pmc-quick button:hover { background: var(--pmc-soft); border-color: var(--pmc-soft); }
.pmc-form { align-self: stretch; display: grid; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--pmc-line); border-radius: 16px; }
.pmc-form b { font-size: 16px; font-weight: 500; }
.pmc-form input[type="tel"] { font: 400 16px "Commissioner", Arial, sans-serif; color: var(--pmc-ink); width: 100%; padding: 12px 14px; border: 1px solid #d9c8a6; border-radius: 12px; background: #fff; }
.pmc-form input[type="tel"]:focus, .pmc-in textarea:focus { outline: none; border-color: var(--pmc-ink); }
.pmc-form.err input[type="tel"] { border-color: #a82a1c; }
.pmc-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.35; color: var(--pmc-ink2); cursor: pointer; }
.pmc-consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--pmc-acc); }
.pmc-consent a { color: inherit; }
.pmc-form.err-c .pmc-consent { color: #a82a1c; }
.pmc-send-lead { background: var(--pmc-acc) !important; border-radius: 12px; padding: 12px 16px; font-size: 16px; font-weight: 500; }
.pmc-send-lead[disabled] { opacity: .6; cursor: wait; }
.pmc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pmc-foot { border-top: 1px solid var(--pmc-line); padding: 10px 12px 8px; background: var(--pmc-page); }
.pmc-in { display: flex; gap: 8px; align-items: flex-end; }
.pmc-in textarea { flex: 1; font: 400 16px/1.4 "Commissioner", Arial, sans-serif; color: var(--pmc-ink); resize: none; max-height: 96px; padding: 11px 14px; border: 1px solid #d9c8a6; border-radius: 12px; background: #fff; }
.pmc-go { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--pmc-acc) !important; display: grid; place-items: center; }
.pmc-go[disabled] { opacity: .45; cursor: default; }
.pmc-go svg { width: 20px; height: 20px; }
.pmc-alt { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; margin-top: 8px; font-size: 13px; color: var(--pmc-ink2); }
.pmc-alt a { color: var(--pmc-ink2); text-underline-offset: 3px; }
.pmc :focus-visible { outline: 2px solid var(--pmc-ink); outline-offset: 2px; }
@media (max-width: 640px) {
  .pmc-launch { right: 14px; bottom: 14px; width: 60px; height: 60px; transition: bottom .3s ease; }
  .pmc-tease { right: 14px; bottom: 86px; max-width: calc(100vw - 28px); transition: bottom .3s ease; }
  body.scrolled .pmc-launch { bottom: 90px; }
  body.scrolled .pmc-tease { bottom: 162px; }
  body.menu-open .pmc-launch, body.menu-open .pmc-tease { display: none; }
  .pmc-panel { right: 0; bottom: 0; left: 0; top: 0; width: 100%; max-width: none; height: 100dvh; border-radius: 0; }
}
