/* ===========================================================================
   Переиспользуемый share-попап (кнопка «Поделиться»): модалка с QR + тост.
   Подключается и на визитке (/links/), и на главной. Логика — static/js/share.js,
   разметка — templates/includes/_share_modal.html.
   =========================================================================== */

/* Модальное окно «Поделиться» */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal.active { display: flex; }
.modal-content {
  background: white;
  color: #333;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  cursor: pointer;
  color: #999;
}
.modal-close:hover { color: #333; }
.modal img {
  width: 200px;
  height: 200px;
  margin: 20px auto;
  border-radius: 0;
}
.modal button {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}
.modal button:hover { background: #0056b3; }

/* Уведомление (toast) */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 15px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2000;
  pointer-events: none;
}
.toast.show { opacity: 1; }
/* Успешная отправка заявки — зелёный тон, как у остальных success-состояний. */
.toast--success {
  background: rgba(22, 101, 52, 0.95);
  box-shadow: 0 6px 24px rgba(34, 197, 94, 0.35);
}
