/* assets/css/main.css - Основные стили BSL PRO */

/* =============================================================================
   ПЕРЕМЕННЫЕ CSS
   ============================================================================= */
:root {
    /* Цвета */
    --primary-color: #304658;
    --secondary-color: #f1c40f;
    --accent-color: #27ae60;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #304658;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #304658 0%, #1e3a4d 100%);
    --gradient-secondary: linear-gradient(135deg, #f1c40f 0%, #e1b000 100%);
    --gradient-hero: linear-gradient(135deg, #304658 0%, #1e3a4d 100%);
    
    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.2);
    
    /* Шрифты */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-xs: 0.75rem;   /* 12px */
    --font-size-sm: 0.875rem;  /* 14px */
    --font-size-base: 1rem;    /* 16px */
    --font-size-lg: 1.125rem;  /* 18px */
    --font-size-xl: 1.25rem;   /* 20px */
    --font-size-2xl: 1.5rem;   /* 24px */
    --font-size-3xl: 2rem;     /* 32px */
    --font-size-4xl: 2.5rem;   /* 40px */
    --font-size-5xl: 3.5rem;   /* 56px */
    
    /* Отступы */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-2xl: 3rem;     /* 48px */
    --spacing-3xl: 4rem;     /* 64px */
    --spacing-4xl: 6rem;     /* 96px */
    
    /* Переходы */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Границы */
    --border-radius-sm: 0.375rem;  /* 6px */
    --border-radius-md: 0.5rem;    /* 8px */
    --border-radius-lg: 0.75rem;   /* 12px */
    --border-radius-xl: 1rem;      /* 16px */
    --border-radius-full: 9999px;
}

/* =============================================================================
   БАЗОВЫЕ СТИЛИ
   ============================================================================= */

/* Сброс */
* {
    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: 700;
    line-height: 1.2;
    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: 1.7;
}

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: 700;
    color: var(--primary-color);
    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: 1.7;
}

/* Выравнивание */
.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: 600;
    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: var(--gradient-secondary);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.t-btn_primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
}

/* Вторичная кнопка */
.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); }
}