/* Spaso visitor chat · 20261028bounce1 */
body.spaso-chat-mounted .contact-fab { display: none !important; }
.sp-chat { --sc-ink: #302b26; --sc-paper: #fffdfa; --sc-soft: #f4f0eb; --sc-bronze: #9c7650; --sc-line: #e3dbd2; --sc-muted: #71665d; position: fixed; inset: 0; pointer-events: none; z-index: 90; color: var(--sc-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; text-align: left; }
.sp-chat *, .sp-chat *::before, .sp-chat *::after { box-sizing: border-box; }
.sp-chat [hidden] { display: none !important; }
.sp-chat button, .sp-chat input, .sp-chat textarea { font: inherit; }
.sp-chat button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sp-chat button:disabled { cursor: default; opacity: .45; }
.sp-chat button, .sp-chat a, .sp-chat input, .sp-chat textarea { outline-offset: 4px; }
.sp-chat :focus-visible { outline: 2px solid var(--sc-bronze); }
.sp-chat h2, .sp-chat h3, .sp-chat p { margin: 0; }
.sp-chat__launcher { pointer-events: auto; position: absolute; isolation: isolate; right: max(22px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 22px; border: 1px solid #ceb498; border-radius: 30px; color: var(--sc-ink); background: linear-gradient(115deg, #fffdf8 5%, #dfbf98 35%, #fff7e7 65%, #e8c9a3 100%); background-size: 240% 180%; box-shadow: 0 5px 24px rgba(86, 60, 35, .14), inset 0 1px 0 rgba(255, 255, 255, .85); animation: sp-chat-launcher-light 8s ease-in-out infinite; transition: border-color .2s ease, box-shadow .2s ease; }
.sp-chat__launcher::before { content: ''; position: absolute; z-index: -1; inset: -3px; border-radius: inherit; background: #cfab7c; filter: blur(14px); opacity: .16; pointer-events: none; animation: sp-chat-launcher-glow 8s ease-in-out infinite; }
.sp-chat__launcher:hover, .sp-chat__launcher.is-open { border-color: #a27b53; box-shadow: 0 6px 26px rgba(86, 60, 35, .18), 0 0 24px rgba(193, 153, 107, .2), inset 0 1px 0 rgba(255, 255, 255, .85); }
.sp-chat__launcher svg { width: 24px; height: 24px; flex: 0 0 24px; }
.sp-chat__launcher-text { font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.sp-chat__launcher.has-new-reply { animation: sp-chat-launcher-light 8s ease-in-out infinite, sp-chat-launcher-nudge .72s ease-in-out both; transform-origin: center bottom; }
.sp-chat__launcher.has-invitation { border-color: #a27b53; }
.sp-chat__peek { pointer-events: auto; position: absolute; right: max(22px, env(safe-area-inset-right)); bottom: calc(88px + env(safe-area-inset-bottom)); width: min(292px, calc(100vw - 32px)); padding: 14px 16px 5px; border: 1px solid #765a43; border-radius: 14px 14px 4px 14px; color: #fff8ee; background: #433329; box-shadow: 0 10px 30px rgba(48, 33, 22, .18), 0 2px 6px rgba(48, 33, 22, .08); transform-origin: right bottom; animation: sp-chat-peek-enter .5s cubic-bezier(.22, 1, .36, 1) both; }
.sp-chat__peek-brand { display: block; padding-right: 28px; margin-bottom: 4px; color: #ddc9b2; font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.sp-chat__peek-title { padding-right: 18px; font-family: inherit; font-size: 14px; font-weight: 400; line-height: 1.5; letter-spacing: 0; color: #fff8ee; }
.sp-chat__peek-action { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 1px; padding: 8px 0; border: 0; background: transparent; color: #f4d6ae; font-size: 12px !important; font-weight: 600 !important; text-align: left; }
.sp-chat__peek-action span:first-child { text-decoration: none; }
.sp-chat__peek-action:hover { color: #fff8ee; }
.sp-chat__peek :focus-visible { outline-color: #efd0a8; }
.sp-chat__peek-close { display: grid; place-items: center; position: absolute; top: 0; right: 0; width: 44px; height: 44px; padding: 14px; border: 0; border-radius: 50%; background: transparent; color: #ddc9b2; }
.sp-chat__peek-close:hover { color: #fff8ee; background: rgba(255, 248, 238, .08); }
.sp-chat__peek-close svg { width: 18px; height: 18px; }
.sp-chat__unread { position: absolute; right: -2px; top: -5px; min-width: 22px; height: 22px; padding: 2px 5px; display: grid; place-items: center; border: 2px solid var(--sc-paper); border-radius: 50%; background: var(--sc-bronze); color: white; font-size: 11px; line-height: 1; }
.sp-chat__panel { --sc-panel-x: 24px; --sc-panel-y: 56px; --sc-panel-scale: .88; pointer-events: auto; position: absolute; right: max(22px, env(safe-area-inset-right)); bottom: calc(88px + env(safe-area-inset-bottom)); width: min(410px, calc(100vw - 32px)); height: 650px; max-height: calc(var(--sp-chat-vh, 100dvh) - 112px - env(safe-area-inset-bottom)); min-height: 270px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #ded2c4; border-radius: 20px; background: var(--sc-paper); box-shadow: 0 18px 65px rgba(48, 43, 38, .16), 0 2px 8px rgba(48, 43, 38, .06); transform-origin: right bottom; opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.sp-chat__panel[data-state="opening"] { animation: sp-chat-panel-open .45s cubic-bezier(.18, .8, .25, 1) both; will-change: transform, opacity; }
.sp-chat__panel[data-state="closing"] { pointer-events: none; animation: sp-chat-panel-close .42s cubic-bezier(.4, 0, .2, 1) both; will-change: transform, opacity; }
.sp-chat__header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; padding: 12px 12px 12px 18px; gap: 10px; background: #fbf7f0; border-bottom: 1px solid var(--sc-line); }
.sp-chat__identity { min-width: 0; }
.sp-chat__title { font-family: Georgia, "Times New Roman", serif; font-size: 22px; line-height: 1.1; font-weight: 400; letter-spacing: -.015em; }
.sp-chat__title:focus { outline: none; }
.sp-chat__status { margin-top: 4px !important; font-size: 12px; line-height: 1.45; color: var(--sc-muted); }
.sp-chat__header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 2px; }
.sp-chat__close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; min-height: 44px; padding: 8px; border: 0; border-radius: 10px; background: transparent; color: #65523f; font-size: 26px !important; font-weight: 400 !important; line-height: 1; }
.sp-chat__sound { display: grid; place-items: center; width: 44px; height: 44px; padding: 12px; border: 0; border-radius: 10px; background: transparent; color: #796651; }
.sp-chat__sound:hover, .sp-chat__close:hover { background: rgba(255, 253, 248, .8); }
.sp-chat__sound svg, .sp-chat__close svg { width: 18px; height: 18px; }
.sp-chat__sound svg[hidden] { display: none !important; }
.sp-chat__conversation-view { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; min-height: 0; overflow: hidden; }
.sp-chat__history { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 20px 18px 16px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d8cabd transparent; }
.sp-chat__messages { display: flex; flex-direction: column; gap: 16px; }
.sp-chat__message-row { display: flex; align-items: flex-start; gap: 8px; min-width: 0; width: 100%; }
.sp-chat__message-row[data-role="visitor"] { justify-content: flex-end; }
.sp-chat__avatar { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; margin-top: 2px; border: 1px solid #dfd2c1; border-radius: 50%; background: #f5ede2; color: #745b43; }
.sp-chat__avatar svg { width: 21px; height: 21px; }
.sp-chat__message { min-width: 0; max-width: 91%; align-self: flex-start; padding: 12px 14px 8px; background: #f0e8de; border-radius: 14px 14px 14px 4px; overflow-wrap: anywhere; }
.sp-chat__message-row > .sp-chat__message { flex: 0 1 auto; max-width: calc(100% - 40px); align-self: auto; }
.sp-chat__message-row[data-role="visitor"] > .sp-chat__message { max-width: 88%; }
.sp-chat__message-row[data-role="system"]:not([data-kind="automatic"]) > .sp-chat__message { width: 100%; max-width: 100%; text-align: center; }
.sp-chat__message[data-entering="true"] { animation: sp-chat-message-enter .4s cubic-bezier(.2, .75, .25, 1) both; }
.sp-chat__message[data-role="visitor"] { align-self: flex-end; background: #4a382b; color: #fff8ee; border-radius: 14px 14px 4px 14px; }
.sp-chat__message[data-role="system"]:not([data-kind="automatic"]) { max-width: 100%; align-self: stretch; padding: 6px 4px; background: transparent; color: var(--sc-muted); font-size: 12px; }
.sp-chat__author { display: none; }
.sp-chat__message-text { white-space: pre-wrap; font-size: 14px; line-height: 1.55; }
.sp-chat__time { display: block; margin-top: 5px; text-align: right; font-size: 10px; opacity: .72; }
.sp-chat__attachments { display: grid; gap: 8px; }
.sp-chat__attachment { display: block; min-width: 0; max-width: 260px; margin-top: 8px; padding: 10px; border: 1px solid rgba(156, 118, 80, .22); border-radius: 9px; background: rgba(255, 253, 250, .45); color: inherit; text-decoration: none; }
.sp-chat__message[data-role="visitor"] .sp-chat__attachment { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .22); }
.sp-chat__attachment:hover { border-color: var(--sc-bronze); }
.sp-chat__attachment-image { display: block; width: 100%; height: 150px; object-fit: contain; background: #ede6dc; border-radius: 5px; margin-bottom: 8px; }
.sp-chat__attachment-name { display: block; overflow-wrap: anywhere; font-size: 12px; line-height: 1.45; }
.sp-chat__attachment-meta { display: block; margin-top: 3px; font-size: 10px; opacity: .75; }
.sp-chat__message[data-role="system"]:not([data-kind="automatic"]) .sp-chat__time { display: none; }
.sp-chat__message[data-role="system"]:not([data-kind="automatic"]) .sp-chat__message-text { font-size: 12px; line-height: 1.5; }
.sp-chat__typing { margin: 14px 4px 3px !important; color: var(--sc-muted); font-size: 11px; }
.sp-chat__actions { display: flex; flex-wrap: wrap; flex: 0 0 auto; gap: 2px 14px; padding: 0 18px 4px; }
.sp-chat__text-action { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: #755438; font-size: 11px !important; text-align: left; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c4ab91; }
.sp-chat__contact-optional { display: inline-block; margin-left: 8px; color: var(--sc-muted); font-size: 10px; font-weight: 400; text-decoration: none; }
.sp-chat__contact-view { flex: 1 1 auto; min-width: 0; min-height: 0; overflow-y: auto; padding: 12px 20px 24px; background: var(--sc-paper); overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d8cabd transparent; }
.sp-chat__contact-back { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; min-width: 44px; min-height: 44px; margin: 0 0 14px -8px; padding: 8px; border: 0; border-radius: 9px; color: #765637; background: transparent; font-size: 13px !important; text-align: left; }
.sp-chat__contact-back:hover { background: var(--sc-soft); }
.sp-chat__contact-back svg { flex: 0 0 18px; width: 18px; height: 18px; }
.sp-chat__contact-title { margin-bottom: 9px !important; color: var(--sc-ink); font-family: inherit; font-size: 19px; font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }
.sp-chat__contact-note { margin-bottom: 22px !important; color: var(--sc-muted); font-size: 13px; line-height: 1.6; }
.sp-chat__contact { display: block; min-width: 0; max-height: none; overflow: visible; margin: 0; padding: 0; border: 0; background: transparent; }
.sp-chat__contact label { display: block; margin-bottom: 17px; color: #675b4e; font-size: 12px; line-height: 1.5; }
.sp-chat__contact label span { display: block; margin-bottom: 6px; }
.sp-chat__contact input { display: block; width: 100%; height: 48px; min-width: 0; border: 1px solid #d8cabd; border-radius: 10px; padding: 11px 13px; background: #fff; color: var(--sc-ink); font-size: 16px; }
.sp-chat__contact input:focus { border-color: var(--sc-bronze); }
.sp-chat__contact-saved { margin-top: 12px !important; color: #586348; font-size: 12px; line-height: 1.5; }
.sp-chat__contact-save { width: 100%; margin-top: 4px; min-height: 48px; padding: 11px 16px; border: 1px solid #4a382b; border-radius: 10px; background: #4a382b; color: #fff8ee; font-size: 14px !important; font-weight: 500 !important; }
.sp-chat__contact-save:hover:not(:disabled) { background: #594331; }
.sp-chat__contact-privacy { display: block; width: fit-content; margin: 12px auto 0; padding: 6px 4px; color: var(--sc-muted); font-size: 11px; line-height: 1.5; text-decoration: underline; text-decoration-color: #c4ab91; text-underline-offset: 3px; }
.sp-chat__error { flex: 0 0 auto; padding: 8px 22px; border-top: 1px solid #decabc; background: #f5eae2; color: #78523a; font-size: 11px; line-height: 1.5; }
.sp-chat__retry { display: inline-flex; align-items: center; min-height: 44px; margin-left: 8px; padding: 6px 2px; border: 0; background: transparent; color: inherit; font-weight: 600 !important; text-decoration: underline; text-underline-offset: 3px; }
.sp-chat__compose-area { flex: 0 0 auto; padding: 2px 16px 0; }
.sp-chat__composer { display: flex; align-items: flex-end; gap: 10px; width: 100%; padding: 7px 7px 7px 13px; border: 1px solid #d8cabd; border-radius: 15px; background: white; box-shadow: 0 2px 5px rgba(48, 43, 38, .025); }
.sp-chat__compose-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin-top: 4px; }
.sp-chat__attach { display: inline-flex; align-items: center; justify-content: center; flex: 0 1 auto; gap: 7px; min-width: 44px; min-height: 44px; max-width: 100%; padding: 8px 9px 8px 3px; border: 0; border-radius: 9px; background: transparent; color: #765637; font-size: 12px !important; font-weight: 500 !important; text-align: left; }
.sp-chat__attach:hover { background: var(--sc-soft); }
.sp-chat__attach svg { width: 22px; height: 22px; flex: 0 0 22px; padding: 3px; border: 1px solid #d9c6ad; border-radius: 6px; background: #f8f0e5; }
.sp-chat__attach span { overflow-wrap: anywhere; }
.sp-chat__selected-file { display: flex; align-items: center; gap: 9px; min-height: 48px; margin-bottom: 8px; padding: 8px 8px 8px 12px; border: 1px solid #e5d9cc; border-radius: 10px; background: #f7f1e8; }
.sp-chat__selected-file > svg { flex: 0 0 20px; width: 20px; height: 20px; color: #947352; }
.sp-chat__selected-file > div { flex: 1; min-width: 0; }
.sp-chat__selected-name { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.sp-chat__selected-size { display: block; color: var(--sc-muted); font-size: 10px; }
.sp-chat__remove-file { display: grid; place-items: center; flex: 0 0 44px; height: 44px; padding: 13px; border: 0; border-radius: 8px; background: transparent; color: var(--sc-muted); }
.sp-chat__remove-file:hover { background: #eee3d5; }
.sp-chat__remove-file svg { width: 16px; height: 16px; }
.sp-chat__attachment-status { flex: 1 1 110px; min-width: 0; margin: 0 !important; padding: 2px 3px; font-size: 10px; line-height: 1.45; text-align: right; color: var(--sc-muted); }
.sp-chat__file-error { padding: 3px 4px 8px; color: #8b4e32; font-size: 11px; line-height: 1.45; }
.sp-chat__input { resize: none; flex: 1 1 auto; min-width: 0; width: 100%; min-height: 44px; max-height: 116px; padding: 11px 0; border: 0; border-radius: 0; background: transparent; color: var(--sc-ink); font-size: 14px !important; line-height: 22px; overscroll-behavior: contain; }
.sp-chat__input::placeholder { color: #8a7d71; opacity: 1; }
.sp-chat__input:focus { outline: none; }
.sp-chat__composer:focus-within { border-color: var(--sc-bronze); box-shadow: 0 0 0 1px var(--sc-bronze); }
.sp-chat__send { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; padding: 11px; border: 0; border-radius: 50%; background: var(--sc-ink); color: white; }
.sp-chat__send svg { width: 20px; height: 20px; }
.sp-chat__footer { flex: 0 0 auto; padding: 6px 20px 12px; text-align: center; line-height: 1.2; }
.sp-chat__footer a { font-size: 10px; color: var(--sc-muted); text-decoration: none; }
.sp-chat__footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sp-chat__privacy { margin-top: 7px !important; color: var(--sc-muted); font-size: 10px; line-height: 1.5; }
.sp-chat__privacy a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #c4ab91; }
@keyframes sp-chat-panel-open { from { opacity: 0; transform: translate3d(var(--sc-panel-x), var(--sc-panel-y), 0) scale(var(--sc-panel-scale)); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
@keyframes sp-chat-panel-close { 0% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } 25% { opacity: .96; } 100% { opacity: 0; transform: translate3d(var(--sc-panel-x), var(--sc-panel-y), 0) scale(var(--sc-panel-scale)); } }
@keyframes sp-chat-panel-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes sp-chat-launcher-pulse { 0%, 100% { opacity: 1; } 40% { opacity: .65; } }
@keyframes sp-chat-message-enter { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes sp-chat-peek-enter { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.97); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
@keyframes sp-chat-launcher-light { 0%, 100% { background-position: 0% 40%; } 50% { background-position: 100% 60%; } }
@keyframes sp-chat-launcher-nudge { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0); } 20% { transform: translate3d(0, -6px, 0) rotate(-1.5deg); } 40% { transform: translate3d(0, -3px, 0) rotate(1.2deg); } 60% { transform: translate3d(0, -2px, 0) rotate(-.6deg); } 80% { transform: translate3d(0, -1px, 0) rotate(.3deg); } }
@keyframes sp-chat-launcher-glow { 0%, 100% { opacity: .12; } 50% { opacity: .3; } }
@media (max-width: 600px) {
  .sp-chat__launcher { right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); gap: 9px; padding: 13px 18px; }
  .sp-chat__launcher-text { font-size: 12px; }
  .sp-chat__peek { right: max(16px, env(safe-area-inset-right)); bottom: calc(84px + env(safe-area-inset-bottom)); width: min(292px, calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right))); padding: 14px 16px 5px; }
  .sp-chat__panel { --sc-panel-x: 0px; --sc-panel-y: 52px; --sc-panel-scale: .94; position: fixed; left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); top: calc(var(--sp-chat-top, 0px) + 8px + env(safe-area-inset-top)); bottom: auto; width: auto; height: calc(var(--sp-chat-vh, 100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); max-height: none; min-height: 180px; border-radius: 15px; transform-origin: center bottom; }
  .sp-chat__panel[data-state="opening"] + .sp-chat__launcher, .sp-chat__panel[data-state="open"] + .sp-chat__launcher { visibility: hidden; }
  .sp-chat__header { padding: 11px 10px 11px 16px; }
  .sp-chat__actions { padding-left: 18px; padding-right: 18px; }
  .sp-chat__history { padding: 18px 12px 14px; }
  .sp-chat__contact-view { padding: 10px 18px max(24px, env(safe-area-inset-bottom)); }
  .sp-chat__contact-back { margin-bottom: 12px; }
  .sp-chat__message-row { gap: 8px; }
  .sp-chat__message { padding: 11px 12px 7px; }
  .sp-chat__contact input, .sp-chat__input { font-size: 16px !important; }
  .sp-chat__compose-area { padding-left: 12px; padding-right: 12px; }
  .sp-chat__composer { gap: 8px; }
  .sp-chat__input { max-height: 110px; }
  .sp-chat__footer { padding: 5px 16px 9px; }
}
@media (max-height: 500px) { .sp-chat__history { padding-top: 10px; padding-bottom: 8px; } .sp-chat__header { padding-top: 10px; padding-bottom: 8px; } .sp-chat__contact-view { padding-top: 6px; } .sp-chat__contact-back { margin-bottom: 8px; } .sp-chat__actions { padding-top: 0; padding-bottom: 0; } .sp-chat__footer { padding-top: 3px; padding-bottom: 6px; } }
@media (prefers-reduced-motion: reduce) { .sp-chat *, .sp-chat *::before, .sp-chat *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .sp-chat__panel, .sp-chat__message, .sp-chat__peek { transform: none !important; opacity: 1; } .sp-chat__launcher { background-position: 50% 50%; } .sp-chat__launcher::before { opacity: .12; } .sp-chat__panel[data-state="closing"] { animation: sp-chat-panel-fade-out .2s ease-out both !important; } .sp-chat__launcher.has-new-reply { animation: sp-chat-launcher-pulse .72s ease-in-out both !important; transform: none !important; } }
@media print { .sp-chat { display: none !important; } }
