/* ================================
   1. СБРОС ОРАНЖЕВЫХ ТОНАЛЬНОСТЕЙ
================================ */

/* Ссылки наследуют цвет контейнера */
a,
a:visited,
a:hover,
a:active,
.t-descr a,
.t-text a,
.t-name a,
.t-title a,
.tn-atom a {
  color: currentColor !important;
  text-decoration-color: currentColor !important;
}

/* Ховер по ссылкам */
a:hover,
a:focus,
.t-descr a:hover,
.t-text a:hover,
.tn-atom a:hover {
  color: currentColor !important;
  text-decoration: underline;
}

/* Жёсткая очистка тильдовского оранжевого inline-цвета */
[style*="color:#ff7f00" i],
[style*="color:#ff8a00" i],
[style*="color:#ff6a00" i],
[style*="color:#ff5a00" i],
[style*="color:#ff9900" i],
[style*="color:#fd8424" i],
[style*="color:#f05b2b" i],
[style*="color:#ffa500" i],
/* classic orange с пробелом после двоеточия */
[style*="color: #ff7f00" i],
[style*="color: #ff8a00" i],
[style*="color: #ff6a00" i],
[style*="color: #ff5a00" i],
[style*="color: #ff9900" i],
[style*="color: #fd8424" i],
[style*="color: #f05b2b" i],
[style*="color: #ffa500" i],
/* rgb-варианты */
[style*="color:rgb(255,127,0)" i],
[style*="color: rgb(255,127,0)" i],
[style*="color:rgb(255,138,0)" i],
[style*="color: rgb(255,138,0)" i],
[style*="color:rgb(240,91,43)" i],
[style*="color: rgb(240,91,43)" i] {
  color: currentColor !important;
}

/* Частые тильдовские классы, которые тянут акцентный цвет */
.t-link,
.t-menu__link-item,
.t-popup a,
.t-sociallinks a,
.t216__title,
.t216__descr,
.t403__text a {
  color: currentColor !important;
}

/* Иконки в текстовых блоках */
.tn-atom svg [fill],
.tn-atom svg [stroke] {
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* ВАЖНО:
   Мы НЕ задаём color для .tn-atom, .t-text, .t-descr, .t-title, .t-name.
   Tilda сможет свободно красить их через настройки блока (в т.ч. в белый).
*/

/* ================================
   2. ТЁМНЫЙ ФОН ДЛЯ ПОПАПОВ
================================ */

.t-popup {
  background-color: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(4px);
}

.t-popup__container {
  background: #ffffff !important;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  color: #0f172a;
}

.t-popup .t-form,
.t-popup .t-form * {
  color: #0f172a !important;
  opacity: 1 !important;
}

/* Кнопка отправки в попапе */
.t-popup .t-submit {
  background: #FF2E2E !important;
  color: #fff !important;
  border: none !important;
  transition: background .2s ease;
}

.t-popup .t-submit:hover {
  background: #FF0F2F !important;
}

.t-popup__close-wrapper {
  background: transparent !important;
}
