/* Form Success Toast
 * Уведомление об успешной отправке формы в стиле сайта
 */

.ruble-toast {
  position: fixed;
  left: 50%;
  top: 30px;
  transform: translateX(-50%) translateY(-20px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.ruble-toast--visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.ruble-toast__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(53, 51, 49, 0.08);
  max-width: 480px;
}

.ruble-toast__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #353331;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ruble-toast__icon span {
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}

.ruble-toast__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ruble-toast__title {
  font-family: "Commissioner", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 120%;
  letter-spacing: -0.04em;
  color: #353331;
}

.ruble-toast__subtitle {
  font-family: "Commissioner", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  letter-spacing: -0.04em;
  color: rgba(53, 51, 49, 0.7);
}

.ruble-toast__close {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ruble-toast__close span {
  font-size: 18px;
  line-height: 1;
  color: #353331;
}

.ruble-toast__close:hover {
  background: rgba(53, 51, 49, 0.06);
  transform: scale(1.05);
}

@media (max-width: 575px) {
  .ruble-toast {
    top: 15px;
  }

  .ruble-toast__inner {
    max-width: calc(100vw - 32px);
    padding: 12px 16px;
  }

  .ruble-toast__title {
    font-size: 15px;
  }

  .ruble-toast__subtitle {
    font-size: 13px;
  }
}


