/* Майстер Кровлі — пульсуючі контакти (v1.1) | ізольовані стилі */
.mk-contact-dock {
  --mk-dock-gold: var(--mk-yellow, #e2b43c);
  position: fixed;
  z-index: 890;
  left: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  width: 56px;
  isolation: isolate;
}
.mk-contact-dock .mk-contact-dock__link {
  --mk-ring: 226, 180, 60;
  box-sizing: border-box;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 53px;
  height: 53px;
  border: 1.5px solid rgba(255,255,255,.94);
  border-radius: 50%;
  color: #fff;
  background: #26282c;
  box-shadow: 0 7px 18px rgba(0,0,0,.22);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mk-contact-dock .mk-contact-dock__link::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1.5px solid rgba(var(--mk-ring),.6);
  border-radius: 50%;
  pointer-events: none;
  animation: mk-contact-ring 3.4s ease-out infinite;
  animation-delay: var(--mk-delay, 0s);
}
.mk-contact-dock .mk-contact-dock__link:hover,
.mk-contact-dock .mk-contact-dock__link:focus-visible {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,.29);
}
.mk-contact-dock .mk-contact-dock__link:focus-visible {
  outline: 2px solid var(--mk-dock-gold);
  outline-offset: 4px;
}
.mk-contact-dock .mk-contact-dock__link svg {
  display: block;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mk-contact-dock .mk-contact-dock__phone {
  --mk-ring: 226,180,60;
  --mk-delay: 0s;
  background: var(--mk-dock-gold);
  color: #171717;
}
.mk-contact-dock .mk-contact-dock__viber {
  --mk-ring: 115,96,242;
  --mk-delay: .8s;
  background: #7360f2;
}
.mk-contact-dock .mk-contact-dock__telegram {
  --mk-ring: 34,158,217;
  --mk-delay: 1.6s;
  background: #229ed9;
}
.mk-contact-dock .mk-contact-dock__whatsapp {
  --mk-ring: 37,211,102;
  --mk-delay: 2.4s;
  background: #25d366;
}
.mk-contact-dock .mk-contact-dock__hint {
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  transform: translate(-6px,-50%);
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  background: #202020;
  color: #fff;
  border-radius: 8px;
  padding: 7px 11px;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 8px 20px rgba(0,0,0,.26);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  pointer-events: none;
}
.mk-contact-dock .mk-contact-dock__link:hover .mk-contact-dock__hint,
.mk-contact-dock .mk-contact-dock__link:focus-visible .mk-contact-dock__hint {
  transform: translate(0,-50%);
  opacity: 1;
  visibility: visible;
}
@keyframes mk-contact-ring {
  0% { opacity: .65; transform: scale(.93); }
  64%, 100% { opacity: 0; transform: scale(1.34); }
}
@media (max-width: 640px) {
  .mk-contact-dock {
    left: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    flex-direction: row;
    gap: 9px;
    width: auto;
  }
  .mk-contact-dock .mk-contact-dock__link { width: 46px; height: 46px; }
  .mk-contact-dock .mk-contact-dock__link svg { width: 23px; height: 23px; }
  .mk-contact-dock .mk-contact-dock__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mk-contact-dock .mk-contact-dock__link::before { animation: none; opacity: .25; }
  .mk-contact-dock .mk-contact-dock__link,
  .mk-contact-dock .mk-contact-dock__hint { transition: none; }
}
