:root {
    --primary-color: #001C66;
    /* Темно-синий бренд-цвет */
    --accent-color: #0d6efd;
    --text-dark: #1e293b;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    /* Высота хедера ~80px. Добавляем отступ, чтобы хедер не перекрывал заголовки секций при клике */
    scroll-padding-top: 85px; 
}

/* Фиксируем белый фон и тень для закрепленной шапки */
.sticky-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.navbar-nav .nav-link {
    color: #475569;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #001C66;
}

/* Навигация */
.navbar {
    padding: 1.2rem 0;
    background-color: #ffffff;
    position: relative;
    z-index: 10;
}

.navbar-brand .brand-logo {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: var(--primary-color);
    line-height: 1;
}

.navbar-brand .brand-sub {
    font-size: 0.65rem;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- СТИЛИЗАЦИЯ ЛОГОТИПА ШРИФТОМ MICHROMA --- */
.brand-logo {
    font-family: 'Michroma', sans-serif;
    font-size: 1.4rem;
    /* Шрифт Michroma довольно широкий, поэтому 1.4rem — оптимальный размер */
    letter-spacing: 1px;
    color: var(--primary-color);
    line-height: 1;
    text-transform: uppercase;
    display: inline-block;
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 300;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- ПЕРВЫЙ ЭКРАН (HERO) НА ВЕСЬ ЭКРАН --- */
.hero-section {
    position: relative;
    width: 100%;
    /* Минимальная высота блока */
    min-height: 850px;
    display: flex;
    align-items: center;
    /* Картинка на весь фон + градиент для читаемости текста */
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 45%, rgba(255, 255, 255, 0) 80%),
        url('fuenex_main.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Мобильная версия первого экрана */
@media (max-width: 991px) {
    .hero-section {
        padding: 4rem 0 10rem 0;
        /* На мобильных градиент идет сверху вниз, чтобы текст читался, а внизу была видна картинка */
        background-image:
            linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%),
            url('fuenex_main.jpg');
        background-position: center right;
    }
}

.hero-title {
    font-weight: 500;
    font-size: 3.5rem;
    color: var(--primary-color);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #475569;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

/* Кнопки */
.btn-custom-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    border: 2px solid var(--primary-color);
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.btn-custom-primary:hover {
    background-color: #001242;
    border-color: #001242;
    color: #ffffff;
}

.btn-custom-outline {
    background-color: transparent;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    border: 2px solid var(--primary-color);
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.btn-custom-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* --- БЛОК ПРОЦЕССА (Шаги 1-4) --- */
.process-section {
    padding: 5rem 0;
    background-color: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.step-container {
    text-align: center;
    position: relative;
}

@media (min-width: 992px) {
    .step-container:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 25%;
        right: -15%;
        width: 30%;
        height: 2px;
        border-top: 2px dashed #cbd5e1;
        z-index: 1;
    }
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    z-index: 2;
    position: relative;
}

/* --- УНИВЕРСАЛЬНЫЙ ЦВЕТ И РАЗМЕР ДЛЯ ИКОНОК --- */
.step-icon-wrapper svg {
    width: 50px;
    height: 50px;
}

/* Окрашивание для иконок с заливкой (Font Awesome - Шаги 1, 2, 4) */
.step-icon-wrapper svg path {
    fill: var(--primary-color);
}

/* Окрашивание для контурных иконок (Шаг 3) */
.step-icon-wrapper svg[stroke="currentColor"] {
    stroke: var(--primary-color) !important;
}

.step-icon-wrapper svg[stroke="currentColor"] path {
    stroke: var(--primary-color) !important;
    fill: none !important;
    /* Отменяем заливку для контурных иконок */
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #e2e8f0;
    color: var(--primary-color);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.step-text {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

/* --- ВТОРАЯ СЕКЦИЯ (CTA ПЕРЕД ПОДВАЛОМ) НА ВЕСЬ ЭКРАН --- */
.cta-section {
    position: relative;
    width: 100%;
    min-height: 550px;
    padding: 6rem 0;
    display: flex;
    align-items: center;
    /* Картинка плитки на весь фон */
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 45%, rgba(255, 255, 255, 0) 100%),
        url('fuenex_befor_footer.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.button_contact_us {
    background-color: #dbdbdb;
}

/* Мобильная версия второй секции */
@media (max-width: 991px) {
    .cta-section {
        padding: 4rem 0 10rem 0;
        background-image:
            linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%),
            url('fuenex_befor_footer.jpg');
        background-position: center;
    }
}

.cta-title {
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 2rem;
}

/* Подвал */
footer {
    padding: 3rem 0;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
}