.messenger-block {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.mb-toggle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #2ecc71; /* зелёный фон */
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.mb-toggle:hover {
  transform: scale(1.05);
  background-color: #27ae60;
}

.mb-icon {
  font-size: 50px;
}

.mb-panel {
  position: absolute;
  bottom: 72px; /* выше кнопки */
  right: 0;
  width: 260px;
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid #e0e0e0;
}

.messenger-block.open .mb-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mb-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #999;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.mb-close:hover {
  color: #333;
}

.mb-title {
  margin: 0 0 14px 0;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.mb-link {
  display: block;
  margin-bottom: 10px;
  padding: 8px;
  text-decoration: none;
  color: #333;
  border-radius: 6px;
  transition: background 0.2s;
}

/*.mb-link:hover {*/
/*  background-color: #f5f5f5;*/
/*}*/

.mb-link-phone {
  color: #2ecc71;
}

/*.mb-link-phone:hover {*/
/*  background-color: transparent;*/
/*}*/

.max {background: radial-gradient(136.12% 140.74% at 99.77% 99.04%, #8d28c8 0%, #7c42fa 20%, #007aff 80%, #609ceb 100%);}
.mb-link-phone {background-color: #048834;}
.vk {background-color: #4c75a3;}