/* Хука Холл Contact Widget v1.0.1. */
#hhall-contact-widget.hhall-cw {
  --hhall-cw-desktop-right:30px;
  --hhall-cw-desktop-bottom:30px;
  --hhall-cw-mobile-right:25px;
  --hhall-cw-mobile-bottom:25px;
  --hhall-cw-main-color:#ff4f00;
  --hhall-cw-phone-color:#ff4f00;
  --hhall-cw-telegram-color:#229ed9;
  --hhall-cw-size:60px;
  --hhall-cw-item:52px;
  --hhall-cw-cycle:6s;
  --hhall-cw-main-radius:0.7rem;
  --hhall-cw-item-radius:0.7rem;
  position:fixed;
  right:var(--hhall-cw-desktop-right);
  bottom:var(--hhall-cw-desktop-bottom);
  left:auto;
  top:auto;
  z-index:10150;
  width:var(--hhall-cw-size);
  height:var(--hhall-cw-size);
  font-family:Arial,sans-serif;
  direction:ltr;
  animation:hhall-cw-page-enter .44s cubic-bezier(.2,.8,.2,1) both;
}
#hhall-contact-widget *,#hhall-contact-widget *::before,#hhall-contact-widget *::after {box-sizing:border-box;}
@keyframes hhall-cw-page-enter {
  from {opacity:0; transform:translateY(14px) scale(.97);}
  to {opacity:1; transform:translateY(0) scale(1);}
}

/* Main action: smooth swap between the chosen icon and close glyph. */
#hhall-contact-widget .hhall-cw__toggle {
  appearance:none;-webkit-appearance:none;
  position:relative;
  display:flex;align-items:center;justify-content:center;
  width:100%;height:100%;margin:0;padding:0;
  border:0;border-radius:var(--hhall-cw-main-radius);
  background:var(--hhall-cw-main-color);color:#fff;
  box-shadow:0 5px 19px rgba(24,48,112,.20);
  cursor:pointer;line-height:1;
  transition:background .28s ease,box-shadow .28s ease,opacity .27s ease,transform .3s cubic-bezier(.2,.8,.2,1),visibility .3s;
  isolation:isolate;
}
#hhall-contact-widget .hhall-cw__toggle:hover {filter:brightness(1.06);box-shadow:0 6px 20px rgba(24,48,112,.23);color:#fff;}
#hhall-contact-widget .hhall-cw__main-fa,
#hhall-contact-widget .hhall-cw__main-fallback,
#hhall-contact-widget .hhall-cw__alternate {
  position:absolute;left:50%;top:50%;pointer-events:none;
  display:flex;align-items:center;justify-content:center;
  width:34px;height:34px;
  color:#fff;
}
/* The primary icon must be visible in every animation mode.
   v1.4.0 incorrectly left it at opacity:0 unless the amo cycle was active. */
#hhall-contact-widget .hhall-cw__main-fa,
#hhall-contact-widget .hhall-cw__main-fallback {
  opacity:1;
  transform:translate(-50%,-50%) rotate(0) scale(1);
}
#hhall-contact-widget .hhall-cw__alternate {
  opacity:0;
  transform:translate(-50%,-50%) rotate(-22deg) scale(.82);
}
#hhall-contact-widget .hhall-cw__alternate-fa {display:block;font-size:26px;line-height:1;color:#fff;}
#hhall-contact-widget .hhall-cw__alternate-fallback {display:none;width:27px;height:27px;color:#fff;}
#hhall-contact-widget.hhall-cw--alternate-fallback .hhall-cw__alternate-fa {display:none !important;}
#hhall-contact-widget.hhall-cw--alternate-fallback .hhall-cw__alternate-fallback {display:block;}
#hhall-contact-widget .hhall-cw__close {
  position:absolute;top:50%;left:50%;
  margin:0;padding:0;
  transform:translate(-50%,-50%) rotate(0) scale(1);
  transition:opacity .23s ease,transform .28s cubic-bezier(.2,.8,.2,1);
}
#hhall-contact-widget .hhall-cw__main-fa {font-size:27px;line-height:1;color:#fff;}
#hhall-contact-widget .hhall-cw__main-fallback {display:none;width:29px;height:29px;color:#fff;}
#hhall-contact-widget.hhall-cw--main-fallback .hhall-cw__main-fa {display:none !important;}
#hhall-contact-widget.hhall-cw--main-fallback .hhall-cw__main-fallback {display:block;}
#hhall-contact-widget .hhall-cw__close {
  opacity:0;
  color:#fff;
  font-size:38px;
  font-weight:300;
  line-height:1;
  transform:translate(-50%,-50%) rotate(-55deg) scale(.72);
  pointer-events:none;
}
#hhall-contact-widget.hhall-cw--open .hhall-cw__main-fa,
#hhall-contact-widget.hhall-cw--open .hhall-cw__main-fallback {
  opacity:0;
  transform:translate(-50%,-50%) rotate(45deg) scale(.75);
  pointer-events:none;
}
#hhall-contact-widget.hhall-cw--open .hhall-cw__alternate {
  opacity:0 !important;animation:none !important;
}
/* amoCRM-inspired calm invitation: two expanding rings and a slow icon exchange. */
#hhall-contact-widget.hhall-cw--main-amo:not(.hhall-cw--open) .hhall-cw__toggle::before,
#hhall-contact-widget.hhall-cw--main-amo:not(.hhall-cw--open) .hhall-cw__toggle::after,
#hhall-contact-widget.hhall-cw--main-pulse:not(.hhall-cw--open) .hhall-cw__toggle::before,
#hhall-contact-widget.hhall-cw--main-pulse:not(.hhall-cw--open) .hhall-cw__toggle::after {
  content:"";position:absolute;inset:0;border:2px solid var(--hhall-cw-main-color);
  border-radius:var(--hhall-cw-main-radius);opacity:0;pointer-events:none;
  animation:hhall-cw-soft-ripple 3.8s ease-out infinite;
}
#hhall-contact-widget.hhall-cw--main-amo:not(.hhall-cw--open) .hhall-cw__toggle::after,
#hhall-contact-widget.hhall-cw--main-pulse:not(.hhall-cw--open) .hhall-cw__toggle::after {animation-delay:1.9s;}
@keyframes hhall-cw-soft-ripple {
  0%,6% {transform:scale(.96);opacity:.36;}
  74%,100% {transform:scale(1.52);opacity:0;}
}
#hhall-contact-widget.hhall-cw--main-amo:not(.hhall-cw--open) .hhall-cw__main-fa,
#hhall-contact-widget.hhall-cw--main-amo:not(.hhall-cw--open) .hhall-cw__main-fallback {
  animation:hhall-cw-primary-cycle var(--hhall-cw-cycle) ease-in-out infinite;
}
#hhall-contact-widget.hhall-cw--main-amo:not(.hhall-cw--open) .hhall-cw__alternate {
  animation:hhall-cw-alternate-cycle var(--hhall-cw-cycle) ease-in-out infinite;
}
@keyframes hhall-cw-primary-cycle {
  0%,35%,100% {opacity:1;transform:translate(-50%,-50%) rotate(0) scale(1);}
  45%,85% {opacity:0;transform:translate(-50%,-50%) rotate(18deg) scale(.82);}
  94% {opacity:0;transform:translate(-50%,-50%) rotate(-12deg) scale(.86);}
}
@keyframes hhall-cw-alternate-cycle {
  0%,38%,96%,100% {opacity:0;transform:translate(-50%,-50%) rotate(-18deg) scale(.82);}
  48%,83% {opacity:1;transform:translate(-50%,-50%) rotate(0) scale(1);}
  90% {opacity:0;transform:translate(-50%,-50%) rotate(18deg) scale(.86);}
}
#hhall-contact-widget.hhall-cw--open .hhall-cw__main-fa,
#hhall-contact-widget.hhall-cw--open .hhall-cw__main-fallback {animation:none !important;}
#hhall-contact-widget .hhall-cw__toggle:hover::before,
#hhall-contact-widget .hhall-cw__toggle:hover::after {animation-play-state:paused !important;opacity:0 !important;}
#hhall-contact-widget.hhall-cw--open .hhall-cw__close {
  opacity:1;
  transform:translate(-50%,-50%) rotate(0) scale(1);
}
#hhall-contact-widget.hhall-cw--open .hhall-cw__toggle {background:#222224;}

/* Menu transitions remain intact after aria-hidden and inert are toggled. */
#hhall-contact-widget .hhall-cw__menu {
  position:absolute;
  right:calc((var(--hhall-cw-size) - var(--hhall-cw-item)) / 2);
  bottom:calc(100% + 12px);
  display:flex;flex-direction:column;align-items:flex-end;
  gap:10px;
  width:max-content;max-width:calc(100vw - 16px);
  opacity:0;visibility:hidden;pointer-events:none;
  transform:translateY(9px);
  transition:opacity .27s ease,transform .32s cubic-bezier(.2,.8,.2,1),visibility 0s linear .32s;
}
#hhall-contact-widget.hhall-cw--open .hhall-cw__menu {
  opacity:1;visibility:visible;pointer-events:auto;
  transform:translateY(0);
  transition:opacity .27s ease,transform .32s cubic-bezier(.2,.8,.2,1),visibility 0s;
}
#hhall-contact-widget .hhall-cw__item {
  position:relative;
  display:flex;align-items:center;justify-content:center;
  width:var(--hhall-cw-item);height:var(--hhall-cw-item);
  flex:0 0 var(--hhall-cw-item);
  padding:0;margin:0;border:0;border-radius:var(--hhall-cw-item-radius);
  background:#ff4f00;color:#fff;
  box-shadow:0 4px 13px rgba(0,0,0,.15);
  text-decoration:none !important;
  opacity:0;
  transform:translateY(9px) scale(.94);
  transition:opacity .24s ease,transform .32s cubic-bezier(.2,.8,.2,1),filter .2s ease;
  transition-delay:0s;
}
#hhall-contact-widget.hhall-cw--open .hhall-cw__item {
  opacity:1;
  transform:translateY(0) scale(1);
  transition-delay:calc(var(--hhall-cw-index, 1) * 42ms);
}
#hhall-contact-widget .hhall-cw__item:hover {color:#fff;text-decoration:none !important;filter:brightness(1.08);}
#hhall-contact-widget .hhall-cw__item--max {background:linear-gradient(135deg,#00c6ff 0%,#3d5afe 48%,#a22cff 100%);}
#hhall-contact-widget .hhall-cw__item--max img {
  display:block;width:31px;height:31px;max-width:31px;max-height:31px;
  object-fit:contain;margin:0;padding:0;
}
#hhall-contact-widget .hhall-cw__max-fallback {display:block;color:#fff;font-size:11px;font-weight:800;}
#hhall-contact-widget .hhall-cw__item--telegram {background:var(--hhall-cw-telegram-color);}
#hhall-contact-widget .hhall-cw__telegram-fa {display:block;color:#fff;font-size:28px;line-height:1;margin:0;}
#hhall-contact-widget .hhall-cw__telegram-fallback {display:none;width:27px;height:27px;color:#fff;}
#hhall-contact-widget.hhall-cw--telegram-fallback .hhall-cw__telegram-fa {display:none !important;}
#hhall-contact-widget.hhall-cw--telegram-fallback .hhall-cw__telegram-fallback {display:block;}
#hhall-contact-widget .hhall-cw__item--phone {background:var(--hhall-cw-phone-color);}
#hhall-contact-widget .hhall-cw__phone-fa {display:block;color:#fff;font-size:24px;line-height:1;margin:0;}
#hhall-contact-widget .hhall-cw__phone-fallback {display:none;width:27px;height:27px;color:#fff;}
#hhall-contact-widget.hhall-cw--phone-fallback .hhall-cw__phone-fa {display:none !important;}
#hhall-contact-widget.hhall-cw--phone-fallback .hhall-cw__phone-fallback {display:block;}

/* Native-style labels appear only on hover or keyboard focus, never permanently. */
#hhall-contact-widget .hhall-cw__item::before {
  content:attr(data-label);
  position:absolute;right:calc(100% + 10px);top:50%;transform:translateY(-50%);
  padding:7px 11px;border-radius:6px;
  background:#fff;color:#263653;
  font-family:Arial,sans-serif;font-size:12px;font-weight:400;line-height:1.25;
  white-space:nowrap;box-shadow:0 2px 8px rgba(0,0,0,.15);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .2s ease,visibility .2s ease;
}
@media (hover:hover) {
  #hhall-contact-widget .hhall-cw__item:hover::before {opacity:1;visibility:visible;}
}
#hhall-contact-widget .hhall-cw__item:focus-visible::before {opacity:1;visibility:visible;}
#hhall-contact-widget.hhall-cw--no-tooltips .hhall-cw__item::before {display:none !important;}
#hhall-contact-widget .hhall-cw__toggle:focus-visible,
#hhall-contact-widget .hhall-cw__item:focus-visible {outline:3px solid #9bb5ff;outline-offset:3px;}

/* Modal overlays get priority; inline forms never hide the widget. */
body.hhall-cw-popup-active #hhall-contact-widget.hhall-cw {
  z-index:40; /* keep the visible button beneath the modal's own layer */
}
body.hhall-cw-popup-active #hhall-contact-widget.hhall-cw--popup-hide {
  opacity:0 !important;visibility:hidden !important;pointer-events:none !important;
  animation:none !important;
}

@media (max-width:769px) {
  #hhall-contact-widget.hhall-cw {
    right:var(--hhall-cw-mobile-right);
    bottom:var(--hhall-cw-mobile-bottom);
    --hhall-cw-size:58px;
    --hhall-cw-item:50px;
  }
  #hhall-contact-widget .hhall-cw__menu {gap:9px;}
  #hhall-contact-widget .hhall-cw__item::before {padding:6px 9px;font-size:11px;}

  /* Mobile: keep the base button fixed at 25/25 and turn it into × when open. */
  #hhall-contact-widget.hhall-cw--open .hhall-cw__toggle {
    opacity:1;visibility:visible;pointer-events:auto;
    transform:none;
  }
}


/* Mobile fullscreen navigation stays above the widget. */
@media (max-width:769px) {
  body.hhall-cw-site-overlay-active #hhall-contact-widget.hhall-cw {
    z-index:20;
  }
}

/* Users who disable animations and users requesting reduced motion get an instant interface. */
#hhall-contact-widget.hhall-cw--no-motion,
#hhall-contact-widget.hhall-cw--no-motion *,
#hhall-contact-widget.hhall-cw--no-motion *::before,
#hhall-contact-widget.hhall-cw--no-motion *::after {animation:none !important;transition:none !important;transition-delay:0s !important;}
@media (prefers-reduced-motion:reduce) {
  #hhall-contact-widget,#hhall-contact-widget *,#hhall-contact-widget *::before,#hhall-contact-widget *::after {animation:none !important;transition:none !important;transition-delay:0s !important;}
}
