/* Глобально, чтобы работало "прижимание" вниз */
html, body { height: 100%; }

.page {
    min-height: 100vh;
    min-height: 100dvh;    /* мобильные браузеры */
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1 1 auto;
    min-height: 0;         /* чтобы контент не «выпирал» за пределы .page */
}

/* ——— Mini Toasts ——— */
.toast-root{
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 3000; /* выше хедера/модалок */
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none; /* клики проходят мимо, кроме самих тостов */
}

.toast{
  min-width: 260px;
  max-width: min(92vw, 420px);
  background: #2b2b2b;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  padding: 12px 14px 12px 12px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: auto; /* позволяем клик по крестику */
  animation: toast-in .18s ease-out forwards;
}

.toast__icon{ width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.toast__text{ font-size: 14px; line-height: 1.35; }
.toast__close{
  border: 0; background: transparent; color: inherit;
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer; opacity: .85;
}
.toast__close:hover{ opacity: 1; }

.toast--success{ background: #1f5f49; }
.toast--warning{ background: #6b5a1a; }
.toast--error{ background: #6b1a1a; }
.toast--info{ background: #2b2b2b; }

@keyframes toast-in{
  from{ opacity: 0; transform: translateY(-8px); }
  to  { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out{
  from{ opacity: 1; transform: translateY(0); }
  to  { opacity: 0; transform: translateY(-8px); }
}
