/* ================== BRAND BASE (для всего сайта) ================== */
:root{
  --brand-pink:#ff4da6;
  --brand-pink-2:#ff77bb;
  --text:#222;
  --muted:#666;
  --bg:#ffffff;
}

body, .t-body{
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1,h2,h3,h4,h5,h6{
  color: var(--text);
  line-height: 1.25;
}

/* Кнопки Tilda */
.t-btn, .t-submit, .t-input-submit{
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 600;
}
.t-btn:not(.t-btn_sending){
  background: var(--brand-pink);
  color:#fff;
  box-shadow: 0 6px 18px rgba(255,77,166,.2);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.t-btn:hover{ transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255,77,166,.28); }
.t-btn:active{ transform: translateY(0); }

/* Ссылки */
a{ color: var(--brand-pink); }
a:hover{ color: var(--brand-pink-2); }

/* Переключатель языков (добавь класс .lang-switch своему меню/строке) */
.lang-switch{ display:inline-flex; gap:12px; align-items:center; }
.lang-switch a{ text-decoration:none; opacity:.8; }
.lang-switch a.is-active{ opacity:1; font-weight:700; }

/* Утилиты */
.ltr{ direction:ltr !important; text-align:left !important; }
.rtl{ direction:rtl !important; text-align:right !important; }

/* ================== АРАБСКИЕ СТРАНИЦЫ (RTL) ================== */
/* Включается ТОЛЬКО на страницах, где ты укажешь класс ar-page
   Страница → Настройки → Дополнительный CSS-класс: ar-page */
.ar-page .t-body, 
.ar-page body{
  direction: rtl;
  unicode-bidi: plaintext;
}

/* Общий текст */
.ar-page h1,.ar-page h2,.ar-page h3,.ar-page h4,.ar-page h5,.ar-page h6,
.ar-page p,.ar-page li,.ar-page span,.ar-page a,.ar-page label,.ar-page b,.ar-page strong{
  direction: rtl;
  text-align: right;
  letter-spacing: 0;
  line-height: 1.8;
}

/* Рекомендованные арабские шрифты */
.ar-page body{
  font-family: "Tajawal","Cairo","Noto Naskh Arabic",system-ui,-apple-system,Arial,sans-serif;
}

/* Формы */
.ar-page input[type="text"],
.ar-page input[type="email"],
.ar-page input[type="number"],
.ar-page textarea,
.ar-page select{
  direction: rtl;
  text-align: right;
}
/* Телефон оставляем слева-направо */
.ar-page input[type="tel"]{ direction:ltr !important; text-align:left !important; }

/* Списки */
.ar-page ul,.ar-page ol{ padding-right:1.2em; padding-left:0; }
.ar-page li{ margin:.35em 0; }

/* Сетки и колонки */
.ar-page .t-container,.ar-page .t-row{ direction: rtl; }
.ar-page .t-row_flex{ display:flex; flex-wrap:wrap; flex-direction: row-reverse; }
.ar-page .t-col{ float: right; }

/* Меню/навигация */
.ar-page .t-menu__link-item, 
.ar-page .t-nav, 
.ar-page .breadcrumbs{ text-align: right; }

/* Zero Block: выравнивание текста */
.ar-page .tn-atom, 
.ar-page .tn-elem__txt{ text-align: right !important; }

/* Кнопки внутри AR-страниц */
.ar-page .t-btn, 
.ar-page .t-submit, 
.ar-page .t-input-submit{
  direction: rtl;
  text-align: center;
}
/* Зеркалим стрелки-иконки в кнопках при необходимости */
.ar-page .t-btn svg, 
.ar-page .t-btn .t-icon{ transform: scaleX(-1); }

/* Изображения с подписями, таблицы */
.ar-page .t-img-with-caption__text{ text-align:right; }
.ar-page table{ direction: rtl; }
.ar-page table th, 
.ar-page table td{ text-align:right; }

/* Опционально: фирменная кнопка "Send Message" */
.cta-message{
  display:inline-block; padding:14px 22px; border-radius:12px; font-weight:700;
  background: var(--brand-pink); color:#fff; text-decoration:none;
  box-shadow:0 6px 18px rgba(255,77,166,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta-message:hover{ transform: translateY(-2px); }
.cta-message:active{ transform: translateY(0); }
