/* Дополнения к собранному style.css (исходная вёрстка) — только то, чего там нет. */

/* Фиксированная шапка не прячется под админ-панелью WP */
.admin-bar #header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar #header { top: 46px; }
}

/* Невалидное поле формы */
.field.is-invalid { box-shadow: inset 0 0 0 2px #dc2626; }

/* Toast уведомления */
.tb-toast-wrap {
  position: fixed;
  z-index: 100;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
/* на < 1024px внизу закреплена панель «Позвонить / Заявка» */
@media (max-width: 1023.98px) {
  .tb-toast-wrap { left: 12px; right: 12px; bottom: 84px; }
}

.tb-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 380px;
  padding: 16px 16px 16px 18px;
  border-radius: 1rem;
  background: #fff;
  color: var(--color-ink, #0d110f);
  box-shadow: 0 20px 40px -12px rgba(13, 17, 15, .25), 0 0 0 1px var(--color-line, #e3e6e2);
  font-size: 15px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
}
@media (max-width: 1023.98px) {
  .tb-toast { max-width: none; }
}
.tb-toast.is-show { opacity: 1; transform: none; }

.tb-toast__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: var(--color-brand, #12b76a);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.tb-toast.is-error .tb-toast__icon { background: #dc2626; }

.tb-toast__text { flex: 1; padding-top: 1px; }

.tb-toast__close {
  flex-shrink: 0;
  margin: -4px -4px 0 0;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  color: var(--color-muted, #6b736e);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.tb-toast__close:hover { background: var(--color-paper, #f4f5f3); color: var(--color-ink, #0d110f); }

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

/* Текст страниц (политика): списки и ссылки из редактора WP */
.tb-content ul { list-style: disc; padding-left: 1.25rem; }
.tb-content ol { list-style: decimal; padding-left: 1.25rem; }
.tb-content a { color: var(--color-ink, #0d110f); text-decoration: underline; text-underline-offset: 4px; }
.tb-content h2, .tb-content h3 { color: var(--color-ink, #0d110f); font-weight: 600; margin-top: 2rem; }
.tb-content h2 { font-size: 1.5rem; }
.tb-content h3 { font-size: 1.25rem; }
