/* ============================================
   MAIN.CSS — Базовые стили PREMIUM
   Синий: #1f559b | Акцент: #fd6513 (только кнопки)
   ============================================ */

/* Локальный шрифт (замени пути на свои) */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700;800;900&display=swap');
@font-face {
    font-family: 'Jost';
    src: url('../fonts/jost-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url('../fonts/jost-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url('../fonts/jost-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url('../fonts/jost-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url('../fonts/jost-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url('../fonts/jost-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Основная палитра */
    --primary: #1f559b;
    --primary-dark: #153d6f;
    --primary-light: rgba(31, 85, 155, 0.06);
    --accent: #fd6513;
    --accent-light: #ff8c4a;
    --accent-glow: rgba(253, 101, 19, 0.12);
    --hero-bg: #060D17;
    
    /* Металлические оттенки */
    --steel: #4B5563;
    --steel-light: #6B7280;
    --steel-dark: #374151;
    --graphite: #1E1E1E;
    --silver: #D1D5DB;
    
    /* Нейтральные */
    --dark: #141414;
    --dark-secondary: #1E1E1E;
    --text: #2D2D2D;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;
    
    /* Фоны */
    --bg-white: #FFFFFF;
    --bg-light: #F5F6F8;
    --bg-dark: #060D17;
    --bg-card: #F8FAFB;
    
    /* Границы */
    --border: #E2E5EA;
    --border-light: #EEF0F3;
    --border-dark: #2A3240;
    
    /* Тени с синим подтоном */
    --shadow-xs: 0 1px 3px rgba(10, 20, 40, 0.04);
    --shadow-sm: 0 2px 8px rgba(10, 20, 40, 0.05);
    --shadow-md: 0 4px 16px rgba(10, 20, 40, 0.07);
    --shadow-lg: 0 8px 32px rgba(10, 20, 40, 0.09);
    --shadow-xl: 0 16px 48px rgba(10, 20, 40, 0.11);
    --shadow-blue: 0 8px 32px rgba(31, 85, 155, 0.2);
    
    /* Скругления */
    --radius-xs: 3px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    
    /* Анимация */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Шрифт */
    --font-main: 'Jost', 'Helvetica Neue', Arial, sans-serif;
    
    /* Высота хедера */
    --header-height: 80px;
}

/* ==================== */
/* СБРОС               */
/* ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 600;
    line-height: 1.15;
    color: var(--dark);
    letter-spacing: -0.2px;
    text-transform: none;
}

h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; letter-spacing: -0.3px; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; letter-spacing: 0; }

/* ==================== */
/* КАСТОМНЫЙ СКРОЛЛБАР */
/* ==================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ==================== */
/* ФОКУС-СТИЛИ         */
/* ==================== */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ==================== */
/* КОНТЕЙНЕР           */
/* ==================== */
.container {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

/* На больших экранах контейнер ещё шире */
@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
        padding: 0 48px;
    }
}

@media (min-width: 2200px) {
    .container {
        max-width: 1920px;
        padding: 0 56px;
    }
}

@media (min-width: 2560px) {
    .container {
        max-width: 2100px;
        padding: 0 64px;
    }
}

@media (max-width: 1200px) {
    .container { padding: 0 24px; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
}

/* ==================== */
/* КНОПКИ              */
/* ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font-main);
    font-size: 1.02rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}
.btn:hover::after { opacity: 1; }

/* Главная кнопка — оранжевая */
.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(253, 101, 19, 0.25);
}
.btn-primary:hover {
    background: #e55a00;
    border-color: #e55a00;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(253, 101, 19, 0.35);
}

/* Outline — синий */
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.btn-light {
    background: #FFFFFF;
    color: var(--dark);
    border-color: #FFFFFF;
    box-shadow: var(--shadow-md);
}
.btn-light:hover {
    background: var(--bg-light);
    border-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Маленькая кнопка */
.btn-sm {
    padding: 12px 24px;
    font-size: 0.95rem;
    letter-spacing: 0.6px;
    gap: 8px;
}

/* Большая кнопка */
.btn-lg {
    padding: 20px 44px;
    font-size: 1.12rem;
    letter-spacing: 0.9px;
}

/* Иконки внутри кнопок — чуть крупнее */
.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.btn-sm svg {
    width: 16px;
    height: 16px;
}
.btn-lg svg {
    width: 22px;
    height: 22px;
}

/* ==================== */
/* СЕКЦИИ               */
/* ==================== */
.section { padding: 110px 0; position: relative; }
.section-dark { background: var(--bg-dark); color: #FFFFFF; }
.section-dark h2, .section-dark h3 { color: #FFFFFF; }
.section-gray { background: var(--bg-light); }

/* Декоративная сетка */
.section-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(31, 85, 155, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 85, 155, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* ==================== */
/* ЗАГОЛОВКИ СЕКЦИЙ     */
/* ==================== */
.section-header { margin-bottom: 60px; position: relative; z-index: 1; }

/* Лейбл — теперь синий */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 18px;
    background: rgba(31, 85, 155, 0.06);
    border: 1px solid rgba(31, 85, 155, 0.12);
    padding: 10px 20px;
    border-radius: 22px;
}

.section-label::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    box-shadow: 0 0 8px rgba(31, 85, 155, 0.4);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(31, 85, 155, 0.4); }
    50% { opacity: 0.8; transform: scale(1.3); box-shadow: 0 0 0 6px rgba(31, 85, 155, 0); }
}

.section-title {
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.3px;
    line-height: 1.18;
}
.section-dark .section-title { color: #FFFFFF; }

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 18px;
    max-width: 780px;
    line-height: 1.75;
    font-weight: 400;
}
.section-dark .section-subtitle { color: var(--text-muted); }
.section-header.text-center { text-align: center; }
.section-header.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ==================== */
/* УТИЛИТЫ              */
/* ==================== */
.text-center { text-align: center; }

/* Декоративная линия — синий градиент */
.decor-line {
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #3B82F6);
    border-radius: 2px;
    margin: 22px 0;
}
.decor-line.center { margin: 22px auto; }

/* ==================== */
/* МОДАЛЬНОЕ ОКНО       */
/* ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 13, 23, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 42px 38px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(6, 13, 23, 0.4);
    border: 1px solid rgba(31, 85, 155, 0.06);
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition);
}
.modal-close:hover { color: var(--dark); background: var(--bg-light); }
.modal-title { font-size: 1.55rem; font-weight: 700; margin-bottom: 6px; }
.modal-subtitle { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 22px; line-height: 1.6; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-form .form-input {
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text);
}
.modal-form .form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 85, 155, 0.08);
}
.modal-form .form-submit { margin-top: 4px; }

/* ==================== */
/* HOVER-ЭФФЕКТ ДЛЯ КАРТОЧЕК */
/* ==================== */
.card-hover-glow {
    transition: all 0.35s ease;
}
.card-hover-glow:hover {
    box-shadow: 0 12px 40px rgba(31, 85, 155, 0.12);
    border-color: rgba(31, 85, 155, 0.2);
    transform: translateY(-4px);
}

/* ==================== */
/* ФОРМЫ                */
/* ==================== */
.form-group { margin-bottom: 16px; }

.form-input {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-main);
    font-size: 1.08rem;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 85, 155, 0.08);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* ==================== */
/* АДАПТИВ              */
/* ==================== */
@media (max-width: 1200px) {
    :root { --header-height: 68px; }
    .section { padding: 90px 0; }
    .container { padding: 0 24px; }
}

@media (max-width: 992px) {
    :root { --header-height: 64px; }
    .section { padding: 80px 0; }
    .section-header { margin-bottom: 48px; }
}

@media (max-width: 768px) {
    :root { --header-height: 60px; }
    body { font-size: 17px; }
    .section { padding: 64px 0; }
    .section-header { margin-bottom: 38px; }
    .container { padding: 0 16px; }
    .btn { padding: 14px 28px; font-size: 0.98rem; }
    .btn-sm { padding: 11px 20px; font-size: 0.9rem; }
    .btn-lg { padding: 16px 32px; font-size: 1.02rem; }
    .section-label { font-size: 0.8rem; padding: 8px 16px; letter-spacing: 2.5px; }
    .section-subtitle { font-size: 1.08rem; }
    .modal-content { padding: 30px 24px; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    .section { padding: 52px 0; }
    .section-label { font-size: 0.75rem; padding: 7px 14px; letter-spacing: 2px; }
    .section-title { font-size: 1.85rem; }
    .modal-content { padding: 26px 20px; }
    .modal-title { font-size: 1.35rem; }
    .modal-subtitle { font-size: 1rem; }
    .form-input { padding: 14px 16px; font-size: 1rem; }
}