/* Typography Fix — MAZARTI Guide */
/* Применяет гайд типографики поверх Tilda стилей */

/* Базовые правила */
body {
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Минимум 12px — НИКОГДА меньше */
* {
  font-size: inherit;
}

/* Заголовки */
h1, .t-heading, [class*="t-title"] {
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

h2, .t-descr {
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

/* Основной текст */
p, .t-text, [class*="t-text"] {
  line-height: 1.6 !important;
  font-weight: 400;
}

/* Мелкий текст — не меньше 12px */
small, .t-uptitle, [class*="descr"] {
  font-size: max(12px, inherit) !important;
  line-height: 1.5 !important;
}

/* Promotion block fix */
.promotion-block p {
  font-size: 12px !important; /* было 11px */
  line-height: 1.5;
}

/* Кнопки */
.t-btn, a.t-btn, button, [class*="t-btn"] {
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.2;
  min-height: 44px;
}

/* Ссылки в навигации */
.t-menu__link-item, [class*="menu"] a {
  font-size: 14px !important;
  font-weight: 500;
  line-height: 1.2;
}

/* Контраст — светлая тема */
.t-body_bgColor_white p,
.t-body_bgColor_white .t-text {
  color: #374151 !important; /* контраст 11.5:1 */
}

.t-body_bgColor_white h1,
.t-body_bgColor_white h2,
.t-body_bgColor_white .t-heading {
  color: #111827 !important; /* контраст 16.1:1 */
}

/* Контраст — тёмная тема */
.t-body_bgColor_dark p,
[style*="background-color: #0"] p,
[style*="background: #0"] p {
  color: #e5e7eb !important;
}

/* Ширина текстовых блоков */
.t-text, p {
  max-width: 65ch;
}

/* 13px → 14px fix для add.css блоков */
[class*="tn-atom"][style*="font-size: 13px"],
[style*="font-size:13px"],
[style*="font-size: 13px"] {
  font-size: 14px !important;
}

[style*="font-size:11px"],
[style*="font-size: 11px"] {
  font-size: 12px !important;
}
