
.bgr-badge { position: fixed; top: 50%; right: -14px; z-index: 990; display: flex; flex-direction: row-reverse; align-items: center; margin: 0; padding: 0;
  border: 0; background: none; cursor: pointer; transform: translateY(-50%); font: 400 13px/1.3 var(--bgr-sans); color: var(--bgr-ink); text-align: left;
  -webkit-tap-highlight-color: transparent; transition: right .4s cubic-bezier(.4,0,.2,1), top .45s cubic-bezier(.25,.7,.3,1); }
html.hdr-lock .bgr-badge, body.modal-open .bgr-badge { visibility: hidden; }
.bgr-ico { position: relative; z-index: 2; flex: none; display: grid; place-items: center; width: 44px; height: 44px; box-sizing: border-box; border-radius: 50%;
  background: #fff; border: 1px solid var(--bgr-line); box-shadow: 0 6px 18px -6px rgba(var(--bgr-bug-rgb),.35); color: var(--bgr-bug); transition: color .2s, border-color .2s, box-shadow .2s; }
.bgr-ico svg { width: 20px; height: 20px; display: block; }
.bgr-text { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; height: 44px; max-width: 0; margin-right: 0;
  padding: 0 0 0 0; overflow: hidden; white-space: nowrap; opacity: 0; border: 0 solid var(--bgr-line); border-radius: 22px 0 0 22px;
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: -4px 4px 14px -8px rgba(20,20,40,.25);
  transition: max-width .4s cubic-bezier(.4,0,.2,1), opacity .3s ease, padding .4s ease, margin .4s ease; }
.bgr-text b { font-weight: 700; font-size: 13px; color: var(--bgr-ink); }
.bgr-text span { font-size: 11px; color: var(--bgr-muted); }
.bgr-badge:hover, .bgr-badge:focus-visible, .bgr-badge.is-open { right: 0; }
.bgr-badge:hover .bgr-text, .bgr-badge:focus-visible .bgr-text, .bgr-badge.is-open .bgr-text { max-width: 220px; opacity: 1; padding: 0 30px 0 16px; margin-right: -22px; border-width: 1px 0 1px 1px; }
.bgr-badge:hover .bgr-ico, .bgr-badge:focus-visible .bgr-ico, .bgr-badge.is-open .bgr-ico { color: var(--bgr-bug); border-color: rgba(var(--bgr-bug-rgb),.4); box-shadow: 0 8px 22px -8px rgba(var(--bgr-bug-rgb),.55); }
.bgr-badge:focus { outline: none; }
.bgr-badge:focus-visible .bgr-ico { outline: 2px solid var(--bgr-accent); outline-offset: 2px; }

.bgr-modal { position: fixed; inset: 0; z-index: 10050; display: none; align-items: center; justify-content: center; font: 400 15px/1.5 var(--bgr-sans); color: var(--bgr-text); text-align: left; }
.bgr-modal.is-open { display: flex; }
.bgr-modal *, .bgr-modal *::before, .bgr-modal *::after { box-sizing: border-box; }
.bgr-back { position: absolute; inset: 0; background: rgba(18,20,26,.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: bgr-fade .2s ease; }
.bgr-card { position: relative; z-index: 1; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; margin: 16px; padding: 36px 32px 28px;
  background: #fff; border-radius: 20px; box-shadow: 0 30px 80px -30px rgba(20,20,40,.55); animation: bgr-pop .28s cubic-bezier(.2,.7,.2,1); }
.bgr-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--bgr-muted); cursor: pointer; transition: background .15s, color .15s, transform .2s; }
.bgr-x:hover { background: var(--bgr-paper); color: var(--bgr-ink); transform: rotate(90deg); }
.bgr-x svg { width: 20px; height: 20px; }
.bgr-title { margin: 0 36px 8px 0; padding: 0; font: 400 26px/1.15 var(--bgr-serif); letter-spacing: -.02em; color: var(--bgr-ink); }
.bgr-sub { margin: 0 0 20px; font-size: 14px; color: var(--bgr-muted); }
.bgr-field { display: block; margin: 0 0 14px; }
.bgr-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--bgr-ink); }
.bgr-label i { font-style: normal; font-weight: 400; color: var(--bgr-muted); }
.bgr-modal textarea, .bgr-modal input[type="email"] { display: block; width: 100%; margin: 0; padding: 12px 14px; border: 1px solid #c9ccd4; border-radius: 12px; background: #fff;
  font: 400 15px/1.5 var(--bgr-sans); color: var(--bgr-ink); box-shadow: none; outline: none; transition: border-color .15s, box-shadow .15s; }
.bgr-modal textarea { min-height: 120px; max-height: 50vh; resize: vertical; }
.bgr-modal textarea:focus, .bgr-modal input[type="email"]:focus { border-color: var(--bgr-accent); box-shadow: 0 0 0 3px rgba(36,52,201,.15); }
.bgr-modal [aria-invalid="true"] { border-color: var(--bgr-err); }
.bgr-count { margin-top: 4px; font-size: 12px; color: var(--bgr-muted); text-align: right; }
.bgr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.bgr-msg { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #fdecea; color: var(--bgr-err); font-size: 14px; }
.bgr-msg:empty { display: none; }
.bgr-note { margin: 12px 0 0; font-size: 12px; color: var(--bgr-muted); }
.bgr-send { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin: 4px 0 0; padding: 12px 22px; border: 0; border-radius: 999px;
  background: var(--bgr-accent); color: #fff; font: 600 16px/1.2 var(--bgr-sans); cursor: pointer; transition: background .15s, transform .15s; }
.bgr-send:hover { background: var(--bgr-accent-dark); }
.bgr-send:active { transform: scale(.98); }
.bgr-send[disabled] { opacity: .7; cursor: progress; }
.bgr-done { text-align: center; padding: 12px 0 4px; }
.bgr-done-ico { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: #e3eeea; color: var(--bgr-ok); }
.bgr-done-ico svg { width: 28px; height: 28px; }
.bgr-done .bgr-title { margin: 0 0 8px; }
.bgr-done .bgr-send { width: auto; min-width: 160px; margin-top: 16px; }
/* 26.10 Влад: the violet bug looks up; while the page scrolls down it turns head down (back up when the scroll goes up) and moves its
   legs; 04.11: it also crawls along the edge (JS sets top by the scroll progress); still when nothing scrolls (.is-crawl, .is-down) */
.bgr-bug, .bgr-legs-l, .bgr-legs-r, .bgr-ant { transform-box: fill-box; transform-origin: 50% 50%; }
.bgr-bug { transition: transform .3s ease; }
.bgr-badge.is-down .bgr-bug { transform: rotate(180deg); }
.bgr-legs-l { transform-origin: 100% 50%; }
.bgr-legs-r { transform-origin: 0 50%; }
.bgr-ant { transform-origin: 50% 100%; }
.bgr-badge.is-crawl .bgr-legs-l { animation: bgr-legs .32s linear infinite; }
.bgr-badge.is-crawl .bgr-legs-r { animation: bgr-legs .32s linear -.16s infinite; }
.bgr-badge.is-crawl .bgr-ant { animation: bgr-ant .64s ease-in-out infinite; }
@keyframes bgr-legs { 0%, 50%, 100% { transform: scaleY(1) rotate(0); } 25% { transform: scaleY(.82) rotate(6deg); } 75% { transform: scaleY(1.06) rotate(-6deg); } }
@keyframes bgr-ant { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(10deg); } 70% { transform: rotate(-8deg); } }
@keyframes bgr-fade { from { opacity: 0; } }
@keyframes bgr-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (max-width: 767px) {
  .bgr-badge { top: 56%; right: -12px; }
  .bgr-ico { width: 36px; height: 36px; }
  .bgr-ico svg { width: 17px; height: 17px; }
  .bgr-text { height: 36px; border-radius: 18px 0 0 18px; }
  .bgr-text b { font-size: 12px; }
  .bgr-text span { font-size: 10px; }
  .bgr-badge.is-open .bgr-text { padding: 0 24px 0 12px; margin-right: -18px; }
  .bgr-modal { align-items: flex-end; }
  .bgr-card { margin: 0; max-width: none; max-height: calc(100vh - 24px); border-radius: 20px 20px 0 0; padding: 30px 20px calc(20px + env(safe-area-inset-bottom)); }
  .bgr-title { font-size: 22px; }
  .bgr-modal textarea, .bgr-modal input[type="email"] { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .bgr-badge, .bgr-text, .bgr-ico, .bgr-x, .bgr-send { transition: none; }
  .bgr-back, .bgr-card, .bgr-legs-l, .bgr-legs-r, .bgr-ant { animation: none; }
  .bgr-bug { transition: none; }
}
@media print { .bgr { display: none !important; } }
