/* ===== Header messengers — large branded icons ===== */
header .uml-header-messengers__toggle {
  display: none !important;
}

header .uml-header-messengers__menu {
  display: flex !important;
  position: static !important;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

header .uml-hicon--telegram,
header .uml-hicon--max {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

header .uml-hicon--telegram {
  border-radius: 50% !important;
}

/* Official Max app icon (rounded square) */
header .uml-hicon--max {
  border-radius: 22% !important;
  box-shadow: 0 6px 18px rgba(90, 60, 200, 0.35);
}

header .uml-hicon--telegram img,
header .uml-hicon--max img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  filter: none !important;
}

header .uml-hicon--telegram:hover,
header .uml-hicon--max:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  filter: brightness(1.05);
}

@media (max-width: 767px) {
  header .uml-hicon--telegram,
  header .uml-hicon--max {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }
}

/* ===== Floating contact FAB (call / Telegram / Max) ===== */
.uml-fab {
  position: fixed !important;
  right: max(14px, env(safe-area-inset-right, 0px)) !important;
  bottom: max(18px, env(safe-area-inset-bottom, 0px)) !important;
  left: auto !important;
  top: auto !important;
  z-index: 2147483000 !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  width: auto;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
  font-family: Montserrat, sans-serif;
  pointer-events: none;
  /* Escape any ancestor overflow / fancybox body lock */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.uml-fab > * {
  pointer-events: auto;
}

.uml-fab__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.uml-fab.is-open .uml-fab__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.uml-fab__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px 0 8px;
  border-radius: 999px;
  background: #0b1a2c;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.18s ease, background 0.18s ease;
}

.uml-fab__item:hover {
  transform: translateX(-3px);
  background: #12263d;
}

.uml-fab__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.uml-fab__item-icon img,
.uml-fab__item-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.uml-fab__item--call .uml-fab__item-icon {
  background: linear-gradient(135deg, #d4a84b, #b8892f);
}

.uml-fab__item--tg .uml-fab__item-icon {
  background: #2aabee;
}

.uml-fab__item--tg .uml-fab__item-icon img {
  filter: brightness(0) invert(1);
}

.uml-fab__item--max .uml-fab__item-icon {
  background: transparent;
  padding: 0;
  overflow: hidden;
  border-radius: 22%;
}

.uml-fab__item--max .uml-fab__item-icon img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  filter: none;
}

.uml-fab__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 56px;
  height: 56px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #081829;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #f1c35c 0%, #d4a84b 55%, #c0892e 100%);
  box-shadow: 0 10px 32px rgba(200, 154, 61, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease, color 0.25s ease;
}

.uml-fab__toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(200, 154, 61, 0.55);
}

/* Cycling contact icons on the gold pill */
.uml-fab__toggle-icons {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.uml-fab__cycle-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.55) translateY(6px);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.45s;
  pointer-events: none;
}

.uml-fab__cycle-item.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.uml-fab__cycle-item svg {
  width: 22px;
  height: 22px;
  display: block;
}

.uml-fab__cycle-item img {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: cover;
  border-radius: 22%;
}

.uml-fab__cycle-item[data-uml-fab-cycle-item="tg"] img {
  border-radius: 50%;
  filter: none;
}

.uml-fab__cycle-item[data-uml-fab-cycle-item="call"] {
  color: #081829;
}

.uml-fab__toggle-label {
  letter-spacing: 0.02em;
}

.uml-fab.is-open .uml-fab__toggle {
  background: #0b1a2c;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.uml-fab.is-open .uml-fab__cycle-item--close {
  color: #fff;
}

.uml-fab.is-open .uml-fab__cycle-item--close.is-active {
  transform: scale(1) rotate(45deg);
}

@media (max-width: 991px) {
  /* Beat uml-mobile-fixes — keep branded messengers large */
  header .uml-hicon--telegram,
  header .uml-hicon--max {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border: none !important;
    background: transparent !important;
  }

  header .uml-hicon--telegram img,
  header .uml-hicon--max img {
    width: 100% !important;
    height: 100% !important;
    filter: none !important;
  }
}

@media (max-width: 575px) {
  .uml-fab {
    right: max(12px, env(safe-area-inset-right, 0px)) !important;
    bottom: max(16px, env(safe-area-inset-bottom, 0px)) !important;
  }

  .uml-fab__toggle {
    padding: 0;
    width: 60px;
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
  }

  .uml-fab__toggle-label {
    display: none;
  }

  .uml-fab__item {
    font-size: 12px;
    height: 44px;
    padding-right: 14px;
  }
}

/* Always above cookie / sticky bits / fancybox */
.uml-fab,
.uml-fab__toggle,
.uml-fab__menu {
  z-index: 2147483000 !important;
}
