/* drx9000.ru chat widget — design K palette, self-contained (own tokens, inherits the page's fonts if present) */
.drxc { --c-navy: #0e2a5a; --c-navy-d: #061430; --c-gold: #e3a826; --c-gold-l: #ecbb4a; --c-ink: #0d1b33; --c-ink-2: #3a4963;
  --c-line: #e2e7ef; --c-paper: #fff; --c-paper-2: #f3f5f9; --c-focus: #1d5fbf;
  position: fixed; z-index: 900; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  font: 400 15px/1.5 var(--font-text, 'Golos Text', 'Segoe UI', system-ui, sans-serif); color: var(--c-ink); }
.drxc *, .drxc *::before, .drxc *::after { box-sizing: border-box; }
.drxc [hidden] { display: none !important; }
.drxc button { font: inherit; cursor: pointer; }
.drxc :focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }

.drxc__fab { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 999px;
  background: var(--c-gold); color: var(--c-navy-d); font-weight: 650; box-shadow: 0 10px 30px rgba(6, 20, 48, .28), 0 2px 6px rgba(6, 20, 48, .18);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), background-color .2s ease; }
.drxc__fab svg { width: 24px; height: 24px; flex: none; }
.drxc.is-open .drxc__fab { display: none; }
@media (hover: hover) { .drxc__fab:hover { background: var(--c-gold-l); transform: translateY(-2px); } }
@media (max-width: 479px) { .drxc__fab { width: 56px; padding: 0; justify-content: center; } .drxc__fab-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

.drxc__panel { position: absolute; right: 0; bottom: 0; width: min(400px, calc(100vw - 32px)); height: min(760px, calc(100vh - 112px)); height: min(760px, calc(100dvh - 112px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--c-paper);
  box-shadow: 0 24px 60px rgba(6, 20, 48, .32), 0 0 0 1px rgba(6, 20, 48, .06); animation: drxc-in .35s cubic-bezier(.16, 1, .3, 1); }
@keyframes drxc-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .drxc__panel { animation: none; } .drxc__fab { transition: none; } }
@media (max-width: 479px) { .drxc__panel { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; } }

.drxc__head { display: flex; align-items: center; gap: 12px; padding: 14px 10px 14px 16px; background: var(--c-navy); color: #fff; }
.drxc__ava { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--c-gold); color: var(--c-navy-d);
  font: 800 12px/1 var(--font-display, 'Manrope', system-ui, sans-serif); letter-spacing: .02em; }
.drxc__ht { flex: 1; min-width: 0; }
.drxc__title { margin: 0; font: 700 16px/1.25 var(--font-display, 'Manrope', system-ui, sans-serif); }
.drxc__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; }
.drxc__icon svg { width: 20px; height: 20px; }
@media (hover: hover) { .drxc__icon:hover { background: rgba(255, 255, 255, .12); } }

.drxc__body { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--c-paper-2); }
.drxc__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 14px 8px; display: flex; flex-direction: column; gap: 10px; }
.drxc__m { max-width: 88%; padding: 10px 14px; border-radius: 16px; overflow-wrap: anywhere; }
.drxc__m p { margin: 0; } .drxc__m p + p, .drxc__m p + ul, .drxc__m ul + p { margin-top: 8px; }
.drxc__m ul { margin: 6px 0 0; padding-left: 18px; } .drxc__m li + li { margin-top: 4px; }
.drxc__m strong { font-weight: 650; }
.drxc__m a { color: var(--c-focus); text-decoration: underline; text-underline-offset: .15em; }
.drxc__m--bot { align-self: flex-start; background: var(--c-paper); border: 1px solid var(--c-line); border-bottom-left-radius: 6px; }
.drxc__m--user { align-self: flex-end; background: var(--c-navy); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.drxc__m.is-error { border-color: #f1c9a0; background: #fff8ef; }
.drxc__dots { display: inline-flex; gap: 4px; padding: 4px 0; } .drxc__dots i { width: 7px; height: 7px; border-radius: 50%; background: #9aa6ba; animation: drxc-b 1.2s infinite ease-in-out; }
.drxc__dots i:nth-child(2) { animation-delay: .15s; } .drxc__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes drxc-b { 0%, 80%, 100% { opacity: .35; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.drxc__chips { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 2px; }
.drxc__chips button { min-height: 38px; padding: 7px 14px; border: 1px solid #c9d3e3; border-radius: 14px; line-height: 1.3; background: var(--c-paper); color: var(--c-navy); font-size: 14px; font-weight: 550; text-align: left; }
@media (hover: hover) { .drxc__chips button:hover { border-color: var(--c-navy); } }

.drxc__foot { padding: 8px 12px 12px; background: var(--c-paper); border-top: 1px solid var(--c-line); }
.drxc__human { display: block; margin: 0 auto 8px; min-height: 36px; padding: 4px 8px; border: 0; background: none; color: var(--c-navy); font-size: 14px; font-weight: 600;
  text-decoration: underline; text-underline-offset: .2em; text-decoration-color: rgba(14, 42, 90, .35); }
.drxc__in { display: flex; align-items: flex-end; gap: 8px; }
.drxc__in textarea { flex: 1; min-height: 46px; max-height: 120px; resize: none; padding: 12px 14px; border: 1px solid #c9d3e3; border-radius: 14px; font: inherit; font-size: 16px; line-height: 1.35; color: var(--c-ink); background: #fff; }
.drxc__in textarea:focus { outline: none; border-color: var(--c-navy); box-shadow: 0 0 0 3px rgba(29, 95, 191, .18); }
.drxc__send { display: grid; place-items: center; width: 46px; height: 46px; flex: none; padding: 0; border: 0; border-radius: 50%; background: var(--c-gold); color: var(--c-navy-d); }
.drxc__send svg { width: 22px; height: 22px; }
.drxc.is-busy .drxc__send { opacity: .5; pointer-events: none; }

.drxc__lead { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.drxc__lead-i { margin: 0; color: var(--c-ink-2); }
.drxc__lead label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; color: var(--c-ink); }
.drxc__lead input:not([type=checkbox]), .drxc__lead textarea { min-height: 46px; padding: 10px 12px; border: 1px solid #c9d3e3; border-radius: 12px; font: inherit; font-size: 16px; font-weight: 400; background: #fff; color: var(--c-ink); }
.drxc__lead textarea { resize: vertical; }
.drxc__lead .drxc__cons { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--c-ink-2); }
.drxc__cons input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--c-navy); }
.drxc__cons a { color: var(--c-focus); }
.drxc__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.drxc__err { margin: 0; min-height: 1.2em; color: #b3261e; font-size: 14px; }
.drxc__lead-b { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.drxc__btn { min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--c-navy); color: #fff; font-weight: 650; }
.drxc__btn:disabled { opacity: .6; }
.drxc__link { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--c-navy); text-decoration: underline; text-underline-offset: .2em; }

.drxc__consent { padding: 12px 14px; border-bottom: 1px solid var(--c-line); background: #fff; font-size: 13px; line-height: 1.45; color: var(--c-ink-2); }
.drxc__consent p { margin: 0 0 8px; } .drxc__consent a { color: var(--c-focus); }
.drxc__consent label { display: flex; align-items: flex-start; gap: 10px; min-height: 32px; font-weight: 600; color: var(--c-ink); cursor: pointer; }
.drxc__consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--c-navy); }
.drxc__consent.is-ok p { display: none; } .drxc__consent.is-ok { padding: 8px 14px; }
.drxc__chips button:disabled, .drxc__in textarea:disabled, .drxc__send:disabled { opacity: .5; cursor: not-allowed; }
