/* ===== Сброс "оранжевых" цветов Tilda в тексте ===== */

/* 1) Все ссылки и текстовые атомы — наследуют текущий цвет текста */
a,
a:visited,
a:hover,
a:active,
.t-descr a,
.t-text a,
.t-name a,
.t-title a,
.tn-atom a,
.tn-atom,
.t-text,
.t-descr,
.t-title,
.t-name {
  color: currentColor !important;
  text-decoration-color: currentColor !important;
}

/* 2) Ховеры/фокусы не перекрашивают в фирменный оранжевый Tilda */
a:hover,
a:focus,
.t-descr a:hover,
.t-text a:hover,
.tn-atom a:hover {
  color: currentColor !important;
  text-decoration: underline;
}

/* 3) Жёсткая очистка инлайновых "оранжевых" цветов (hex / rgb) в style="" */
/* hex-диапазоны популярных оттенков Tilda (#ff7f00, #ff8a00, #f05b2b и т.п.) */
[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;
}

/* 4) Частые классы Tilda, которые могут тянуть акцентный оранжевый */
.t-link,
.t-menu__link-item,
.t-popup a,
.t-sociallinks a,
.t216__title,
.t216__descr,
.t403__text a {
  color: currentColor !important;
}

/* 5) Иконки-линки внутри текстовых блоков (чтобы не «рыжели») */
.tn-atom svg [fill],
.tn-atom svg [stroke] {
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* 6) На всякий случай: strong/em/span не должны уводить цвет в оранжевый */
strong,
b,
em,
i,
span {
  color: currentColor !important;
}

/* --- Опционально: можно задать единый "брендовый" цвет текста для всего сайта ---
:root { --text-color: #F7F7FA; }
body { color: var(--text-color) !important; }
a { color: var(--text-color) !important; }
*/
/* ===== Тёмный фон для попапов ===== */

/* Затемняем общий фон оверлея */
.t-popup {
  background-color: rgba(0, 0, 0, 0.8) !important; /* можно 0.9 для почти чёрного */
  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: #000 !important;
  color: #fff !important;
}

/* Чтобы при прокрутке за формой фон не был белым */
.t-popup__close-wrapper {
  background: transparent !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; /* чуть ярче при наведении */
}
