/* Всплывающий Telegram (каталоги вакансий) */
.tg-toast {
  position: fixed;
  left: 16px;
  bottom: 24px;
  z-index: 900;
  width: min(300px, calc(100vw - 32px));
  padding: 14px 36px 14px 14px;
  background: #fff;
  border: 1px solid rgba(34, 158, 217, 0.28);
  border-radius: 14px;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 20px 48px rgba(34, 158, 217, 0.18);
  transform: translateX(calc(-100% - 24px));
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, visibility 0.35s;
}

.tg-toast.is-visible {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.tg-toast__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.tg-toast__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.tg-toast__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tg-toast__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #2aabee, #229ed9);
  color: #fff;
  border-radius: 11px;
  flex-shrink: 0;
}

.tg-toast__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

.tg-toast__title strong {
  color: #0369a1;
  font-weight: 800;
}

.tg-toast__desc {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

.tg-toast__cta {
  display: block;
  text-align: center;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #2aabee, #1d8ccc);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(34, 158, 217, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.tg-toast__cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(34, 158, 217, 0.4);
}

.tg-toast__cta .js-tg-toast-user {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 1px;
}

@media (max-width: 640px) {
  .tg-toast {
    left: 12px;
    right: 12px;
    bottom: 16px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tg-toast {
    transition: none;
  }
}
