/* =============================================================================
   ЕДИНАЯ СИСТЕМА СТИЛЕЙ BSL PRO - CSS ПЕРЕМЕННЫЕ
   Добавить в начало файла assets/css/main.css
   ============================================================================= */

:root {
    /* ========== ЦВЕТА ========== */
    --primary-color: #1a4870;
    --primary-dark: #0f2d47;
    --primary-light: #2c5f8a;
    --accent-color: #34465a;
    --accent-dark: #34465aba;
    
    --text-primary: #1a4870;
    --text-secondary: #4a5568;
    --text-light: #666666;
    --text-white: #ffffff;
    
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a4870;
    
    --border-light: #e9ecef;
    
    /* ========== ГРАДИЕНТЫ ========== */
    --gradient-primary: linear-gradient(135deg, #1a4870 0%, #2c5f8a 100%);
    --gradient-accent: linear-gradient(135deg, #34465a 0%, #34465aba 100%);
    --gradient-hero: linear-gradient(135deg, #1a4870 0%, #0f2d47 100%);
    
    /* ========== ТЕНИ ========== */
    --shadow-sm: 0 2px 8px rgba(26, 72, 112, 0.08);
    --shadow-md: 0 4px 15px rgba(26, 72, 112, 0.1);
    --shadow-lg: 0 8px 30px rgba(26, 72, 112, 0.15);
    --shadow-xl: 0 12px 40px rgba(26, 72, 112, 0.2);
    
    /* ========== ШРИФТЫ ========== */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* ========== РАЗМЕРЫ ШРИФТОВ (ЕДИНЫЕ ДЛЯ ВСЕГО САЙТА) ========== */
    /* Hero заголовки (главные баннеры) */
    --font-size-hero: 3.5rem;           /* 56px - для главных экранов */
    
    /* H1 - Главные заголовки страниц */
    --font-size-h1: 2.5rem;             /* 40px */
    
    /* H2 - Заголовки секций */
    --font-size-h2: 2rem;               /* 32px */
    
    /* H3 - Подзаголовки */
    --font-size-h3: 1.5rem;             /* 24px */
    
    /* H4 - Заголовки карточек */
    --font-size-h4: 1.125rem;           /* 18px */
    
    /* Текст */
    --font-size-lg: 1.125rem;           /* 18px - большой текст */
    --font-size-base: 1rem;             /* 16px - основной текст */
    --font-size-sm: 0.875rem;           /* 14px - маленький текст */
    
    /* ========== МЕЖСТРОЧНОЕ РАССТОЯНИЕ ========== */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;
    
    /* ========== ВЕСА ШРИФТОВ ========== */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* ========== ОТСТУПЫ ========== */
    --spacing-xs: 0.5rem;      /* 8px */
    --spacing-sm: 1rem;        /* 16px */
    --spacing-md: 1.5rem;      /* 24px */
    --spacing-lg: 2rem;        /* 32px */
    --spacing-xl: 3rem;        /* 48px */
    --spacing-2xl: 4rem;       /* 64px */
    
    /* ========== СКРУГЛЕНИЯ ========== */
    --radius-sm: 0.5rem;       /* 8px */
    --radius-md: 0.75rem;      /* 12px */
    --radius-lg: 1rem;         /* 16px */
    --radius-xl: 1.25rem;      /* 20px */
    
    /* ========== ПЕРЕХОДЫ ========== */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* =============================================================================
   ЕДИНАЯ ТИПОГРАФИКА ДЛЯ ВСЕХ СЕКЦИЙ
   ============================================================================= */

/* Hero заголовки (баннеры, презентации) */
.hero-title,
.t-banner-title .t-title,
.t581__title {
    font-family: var(--font-primary) !important;
    font-size: var(--font-size-hero) !important;
    font-weight: var(--font-weight-bold) !important;
    line-height: var(--line-height-tight) !important;
    color: var(--text-white) !important;
    margin-bottom: var(--spacing-lg) !important;
}

/* H1 - Главные заголовки страниц */
h1,
.page-title {
    font-family: var(--font-primary) !important;
    font-size: var(--font-size-h1) !important;
    font-weight: var(--font-weight-bold) !important;
    line-height: var(--line-height-tight) !important;
    color: var(--text-primary) !important;
    margin-bottom: var(--spacing-md) !important;
}

/* H2 - Заголовки секций */
h2,
.section-title,
.t-section__title,
.about-title {
    font-family: var(--font-primary) !important;
    font-weight: var(--font-weight-bold) !important;
    line-height: var(--line-height-tight) !important;
    margin-bottom: var(--spacing-md) !important;
}

/* H3 - Подзаголовки */
h3,
.subsection-title,
.project-title,
.product-card__title,
.trust-card__title {
    font-family: var(--font-primary) !important;
    font-size: 22px !important;
    font-weight: var(--font-weight-bold) !important;
    line-height: var(--line-height-normal) !important;
    margin-bottom: var(--spacing-sm) !important;
}

/* H4 - Заголовки карточек и мелкие заголовки */
h4,
.card-title,
.feature-title {
    font-family: var(--font-primary) !important;
    font-size: var(--font-size-h4) !important;
    font-weight: var(--font-weight-semibold) !important;
    line-height: var(--line-height-normal) !important;
    margin-bottom: var(--spacing-xs) !important;
}

/* Параграфы и текст */
p,
.section-text,
.t-descr,
.t-section__descr,
.product-card__description,
.service-description,
.about-description p {
    font-family: var(--font-secondary) !important;
    font-size: var(--font-size-base) !important;
    line-height: var(--line-height-relaxed) !important;
}

/* Большой текст (подзаголовки, описания) */
.text-large,
.hero-subtitle,
.t-banner-subtitle .t-descr,
.t581__descr {
    font-family: var(--font-secondary) !important;
    font-size: var(--font-size-lg) !important;
    line-height: var(--line-height-relaxed) !important;
}

/* =============================================================================
   УНИФИЦИРОВАННЫЕ ПОДЗАГОЛОВКИ СЕКЦИЙ (эталон: services-subtitle)
   ============================================================================= */
.section-subtitle,
.services-subtitle,
.trust-subtitle,
.products-subtitle,
.geography-description,
.t-section__descr {
    font-family: var(--font-secondary) !important;
    font-size: 1.2rem !important;           /* 19.2px */
    color: #666666 !important;
    line-height: 1.5 !important;
    max-width: 600px !important;
    margin: 0 auto 40px !important;
    text-align: center;
}

/* Маленький текст */
.text-small,
.meta-text {
    font-family: var(--font-secondary) !important;
    font-size: var(--font-size-sm) !important;
    line-height: var(--line-height-normal) !important;
}

/* =============================================================================
   АДАПТИВНЫЕ РАЗМЕРЫ ШРИФТОВ
   ============================================================================= */

/* Планшеты */
@media (max-width: 980px) {
    :root {
        --font-size-hero: 2.5rem;      /* 40px */
        --font-size-h1: 2rem;          /* 32px */
        --font-size-h3: 1.25rem;       /* 20px */
        --font-size-h4: 1rem;          /* 16px */
    }

    /* Подзаголовки секций на планшетах */
    .section-subtitle,
    .services-subtitle,
    .trust-subtitle,
    .products-subtitle,
    .geography-description,
    .t-section__descr {
        font-size: 1.1rem !important;  /* 17.6px */
    }
}

/* Мобильные */
@media (max-width: 640px) {
    :root {
        --font-size-hero: 2rem;        /* 32px */
        --font-size-h1: 1.75rem;       /* 28px */
        --font-size-h2: 1.5rem;        /* 24px */
        --font-size-h3: 1.125rem;      /* 18px */
        --font-size-h4: 1rem;          /* 16px */
        --font-size-base: 0.9375rem;   /* 15px */
    }

    /* Подзаголовки секций на мобильных */
    .section-subtitle,
    .services-subtitle,
    .trust-subtitle,
    .products-subtitle,
    .geography-description,
    .t-section__descr {
        font-size: 1rem !important;    /* 16px */
        margin-bottom: 30px !important;
    }
}

/* Сброс */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =============================================================================
   ОСНОВНЫЕ КОМПОНЕНТЫ
   ============================================================================= */

/* Контейнеры */
.t-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.t-container_flex {
    display: flex;
    align-items: center;
}

/* Секции */
.t-rec {
    position: relative;
    overflow: hidden;
}

.t-rec_pt_30 { padding-top: 30px; }
.t-rec_pt_60 { padding-top: 60px; }
.t-rec_pt_90 { padding-top: 90px; }
.t-rec_pt_100 { padding-top: 100px; }
.t-rec_pt_165 { padding-top: 165px; }

.t-rec_pb_30 { padding-bottom: 30px; }
.t-rec_pb_60 { padding-bottom: 60px; }
.t-rec_pb_90 { padding-bottom: 90px; }
.t-rec_pb_100 { padding-bottom: 100px; }

/* Колонки */
.t-col {
    width: 100%;
}

.t-col_6 { max-width: 50%; }
.t-col_8 { max-width: 66.666%; }
.t-col_10 { max-width: 83.333%; }
.t-col_12 { max-width: 100%; }

.t-prefix_1 { margin-left: 8.333%; }
.t-prefix_2 { margin-left: 16.666%; }

/* Заголовки секций */
.t-section__title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: #1a4870;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.t-section__descr {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
    line-height: var(--line-height-relaxed);
}

/* Выравнивание */
.t-align_center { text-align: center; }
.t-align_left { text-align: left; }
.t-align_right { text-align: right; }

/* =============================================================================
   КНОПКИ
   ============================================================================= */

.t-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.t-btn_lg {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-lg);
}

.t-btn_sm {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
}

/* Основная кнопка */
.t-btn_primary {
    background: linear-gradient(135deg, #34465a 0%, #34465aba 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.t-btn_primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #3d5268 0%, #3d5268ba 100%);
    color: white;
}

/* Вторичная кнопка */
.t-btn_secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.t-btn_secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* =============================================================================
   ФОРМЫ
   ============================================================================= */

.t-input {
    width: 100%;
    padding: var(--spacing-md);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius-lg);
    background: var(--bg-white);
    transition: var(--transition-normal);
}

.t-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.1);
}

.t-textarea {
    min-height: 120px;
    resize: vertical;
}

/* =============================================================================
   КАРТОЧКИ
   ============================================================================= */

.card {
    background: var(--bg-white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: var(--spacing-xl);
    background: var(--bg-light);
}

.card-body {
    padding: var(--spacing-xl);
}

.card-footer {
    padding: var(--spacing-xl);
    background: var(--bg-light);
    border-top: 1px solid #e1e5e9;
}

/* =============================================================================
   УТИЛИТЫ
   ============================================================================= */

/* Отступы */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

/* Цвета текста */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-light { color: var(--text-light); }
.text-white { color: white; }

/* Фоны */
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }

/* Отображение */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flexbox утилиты */
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }

/* =============================================================================
   АНИМАЦИИ
   ============================================================================= */

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================================================
   АДАПТИВНОСТЬ
   ============================================================================= */

@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.5rem;
    }
    
    .t-container {
        padding: 0 var(--spacing-md);
    }
    
    .t-col_6,
    .t-col_8,
    .t-col_10 {
        max-width: 100%;
    }
    
    .t-prefix_1,
    .t-prefix_2 {
        margin-left: 0;
    }
    
    h1 { font-size: var(--font-size-4xl); }
    h2 { font-size: var(--font-size-3xl); }
    h3 { font-size: var(--font-size-2xl); }
}