/* Montserrat Typography Settings */
/* Основной шрифт: Montserrat для заголовков и основного текста */

/* CSS переменные для шрифтов */
:root {
    --font-family-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-headings: 'Montserrat', var(--ui-font-family-secondary, var(--ui-font-family-open-sans));
    --font-family-body: 'Montserrat', "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Переопределяем основные шрифты Bitrix */
body {
    font-family: var(--font-family-body) !important;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Заголовки с Montserrat */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings) !important;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-weight: 700;
    font-size: 2.5rem;
}

h2 {
    font-weight: 600;
    font-size: 2rem;  
}

h3 {
    font-weight: 600;
    font-size: 1.75rem;
}

h4 {
    font-weight: 500;
    font-size: 1.5rem;
}

h5 {
    font-weight: 500;
    font-size: 1.25rem;
}

h6 {
    font-weight: 500;
    font-size: 1rem;
}

/* Основной текст с Montserrat */
p {
    font-family: var(--font-family-body) !important;
    font-weight: 400;
    line-height: 1.6;
}

/* Навигация и меню */
.navbar, 
.nav,
.menu {
    font-family: var(--font-family-primary) !important;
}

/* Кнопки */
.btn {
    font-family: var(--font-family-primary) !important;
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Формы */
input, 
textarea, 
select {
    font-family: var(--font-family-primary) !important;
}

/* Хлебные крошки */
.breadcrumb {
    font-family: var(--font-family-primary) !important;
    font-weight: 400;
}

/* Специфичные элементы Bitrix с Montserrat */
.bx-header-phone-number {
    font-family: var(--font-family-primary) !important;
    font-weight: 600;
}

.bx-header-worktime {
    font-family: var(--font-family-primary) !important;
}

.bx-worktime-title {
    font-family: var(--font-family-primary) !important;
    font-weight: 400;
}

.bx-worktime-schedule {
    font-family: var(--font-family-primary) !important;
}

.sidebar-block-title {
    font-family: var(--font-family-primary) !important;
    font-weight: 600;
}

.sidebar h2,
.sidebar h3,
.sidebar h4,
.sidebar h5 {
    font-family: var(--font-family-primary) !important;
    font-weight: 600;
}

.sidebar li {
    font-family: var(--font-family-primary) !important;
    font-weight: 400;
}

/* Блоки заголовков */
.bx-block-title {
    font-family: var(--font-family-primary) !important;
    font-weight: 600;
}

/* Логотип и брендинг */
.bx-logo-text {
    font-family: var(--font-family-primary) !important;
    font-weight: 700;
}

/* Заголовки страниц */
#pagetitle {
    font-family: var(--font-family-headings) !important;
    font-weight: 700;
}

/* Дополнительные элементы */
.text-primary,
.badge,
.alert {
    font-family: var(--font-family-primary) !important;
}

/* Адаптивные настройки для мобильных */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    p {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Оптимизация для лучшей читаемости Montserrat */
.montserrat-optimized {
    font-family: var(--font-family-primary);
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "slnt" 0;
}

/* Классы для разных весов Montserrat */
.montserrat-light {
    font-weight: 300;
}

.montserrat-regular {
    font-weight: 400;
}

.montserrat-medium {
    font-weight: 500;
}

.montserrat-semibold {
    font-weight: 600;
}

.montserrat-bold {
    font-weight: 700;
} 