/* Общие стили */
body {
    font-family: 'Open Sans', sans-serif; /* Основной шрифт для текста */
    line-height: 1.7;
    color: #333;
    background-color: #fff;
    overflow-x: hidden; /* Предотвращаем горизонтальную прокрутку */
    scroll-behavior: smooth; /* Плавная прокрутка */
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif; /* Шрифт для заголовков */
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
    color: #0A3D62; /* Основной синий */
}

h3 {
    font-size: 1.8rem;
    color: #0A3D62; /* Основной синий */
}

.py-80 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.mb-60 {
    margin-bottom: 60px;
}

.text-white {
    color: #fff !important;
}

.text-light-gray {
    color: #e0e0e0 !important;
}

.btn-primary {
    background-color: #1DD1A1; /* Акцентный бирюзовый */
    border-color: #1DD1A1;
    color: #fff;
    font-weight: 600;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    border-radius: 25px; /* Скругленные кнопки */
    padding: 12px 30px; /* Увеличенный padding */
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: #1CE0A4; /* Чуть светлее бирюзовый */
    border-color: #1CE0A4;
    transform: translateY(-2px);
}

.btn-outline-light {
    color: #fff;
    border-color: #fff;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 1rem;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: #0A3D62; /* Основной синий */
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: #0A3D62; /* Основной синий */
    border-color: #0A3D62;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 1rem;
}

.btn-outline-primary:hover {
    background-color: #0A3D62;
    color: #fff;
    transform: translateY(-2px);
}

.btn-link {
    color: #0A3D62; /* Основной синий */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.btn-link:hover {
    color: #1DD1A1; /* Акцентный бирюзовый */
    text-decoration: underline;
}

.rounded-pill {
    border-radius: 50px;
}

.z-index-2 {
    z-index: 2;
}

.bg-light {
    background-color: #F8F9FA !important; /* Светлый фон */
}

/* --- Header --- */
.site-header {
    background-color: rgba(10, 61, 98, 0.8); /* Темный синий фон */
    padding: 15px 0;
    transition: background-color 0.4s ease;
    z-index: 1000;
}

.site-header .navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.site-header .navbar-nav .nav-link {
    color: #fff;
    font-weight: 500;
    margin-right: 25px; /* Больше отступ */
    transition: color 0.3s ease;
    font-size: 1.05rem;
}

.site-header .navbar-nav .nav-link:hover {
    color: #1DD1A1; /* Акцентный бирюзовый */
}

.site-header .navbar-nav .nav-link.btn {
    margin-left: 25px; /* Отступ для кнопки */
    padding: 10px 25px; /* Уменьшим padding кнопки в header */
}

.site-header .navbar-nav .nav-link.btn:hover {
    background-color: #fff;
    color: #0A3D62;
}

/* Стили для мобильной навигации */
@media (max-width: 992px) {
    .site-header {
        background-color: rgba(10, 61, 98, 0.9); /* Более плотный фон на мобильных */
    }
    .site-header .navbar-nav {
        background-color: rgba(10, 61, 98, 0.95);
        padding: 20px;
        border-radius: 8px;
        margin-top: 10px;
    }
    .site-header .navbar-nav .nav-link {
        margin-right: 0;
        margin-bottom: 15px;
        padding: 10px 0;
    }
    .site-header .navbar-nav .nav-link:last-child {
        margin-bottom: 0;
    }
    .site-header .navbar-nav .nav-link.btn {
        margin-left: 0;
        width: 100%; /* Кнопка на всю ширину */
    }
}

/* При скролле, шапка меняет фон */
.site-header.scrolled {
    background-color: rgba(10, 61, 98, 0.95); /* Более плотный фон при скролле */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* --- Секция 1: Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0; /* Убираем padding, так как высота 100vh */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Параллакс-эффект */
    z-index: 1;
}

.hero-background::before { /* Затемнение для лучшей читаемости текста */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 61, 98, 0.8), rgba(10, 61, 98, 0.5)); /* Темно-синий градиент */
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-section h1 {
    font-size: 3.8rem; /* Увеличенный заголовок */
    margin-bottom: 20px;
    color: #fff; /* Белый цвет */
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-section p {
    max-width: 750px;
    margin: 0 auto 40px auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #eee; /* Светлый текст */
}

/* --- Секция 2: Наши услуги --- */
.service-card-wrapper {
    perspective: 1000px;
}

.service-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Занимает всю высоту родителя */
}

.service-card:hover {
    transform: translateY(-10px) rotateX(1deg); /* Легкий 3D-эффект */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card .card-icon-wrapper {
    margin-bottom: 20px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon {
    max-width: 100%;
    max-height: 100%;
    filter: invert(29%) sepia(99%) saturate(1223%) hue-rotate(178deg) brightness(96%) contrast(106%); /* Синий цвет иконки */
}

.service-card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #0A3D62; /* Основной синий */
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.service-card ul li {
    margin-bottom: 12px; /* Больше отступ между пунктами */
    font-size: 0.98rem;
    color: #555;
    padding-left: 25px; /* Отступ для галочки */
    position: relative;
}

.service-card ul li i.fa-check-circle {
    color: #1DD1A1; /* Акцентный бирюзовый */
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.1rem;
}

/* --- Секция 3: Преимущества аутсорсинга --- */
.advantages-section {
    background-image: url('../img/advantages-bg.jpg'); /* Выбранный вариант 1 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Параллакс-эффект */
    position: relative;
    color: #fff;
    padding-top: 100px; /* Увеличим padding */
    padding-bottom: 100px;
}

.advantages-section::before { /* Затемнение фона */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 61, 98, 0.85); /* Более плотное затемнение */
    z-index: 1;
}

.advantages-section h2 {
    position: relative;
    z-index: 2;
    color: #fff; /* Белый заголовок */
    margin-bottom: 70px;
}

.advantage-item {
    margin-bottom: 40px; /* Больше отступ между блоками */
    text-align: center;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    filter: invert(99%) sepia(100%) saturate(0%) hue-rotate(136deg) brightness(104%) contrast(100%); /* Белый цвет иконки */
    margin-bottom: 25px; /* Увеличим отступ */
}

.advantage-item h4 {
    font-size: 1.3rem;
    color: #fff; /* Белый заголовок */
    margin-bottom: 15px;
}

.advantage-item p {
    font-size: 0.95rem;
    color: #e0e0e0; /* Светло-серый текст */
    max-width: 300px; /* Ограничим ширину текста */
    margin: 0 auto; /* Центрируем */
}

/* --- Секция 4: Этапы работ --- */
.workflow-container {
    position: relative;
    padding-left: 50px;
    border-left: 3px solid #1DD1A1; /* Акцентный бирюзовый для линии */
}

.workflow-step {
    position: relative;
    margin-bottom: 70px; /* Больше отступ */
    padding-left: 50px; /* Увеличим отступ для содержимого */
    text-align: left; /* Выравнивание текста */
}

.workflow-step .step-number {
    position: absolute;
    left: -65px; /* Корректировка позиции номера */
    top: 0;
    width: 60px;
    height: 60px;
    background-color: #0A3D62; /* Основной синий */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem; /* Больше размер цифры */
    font-weight: bold;
    z-index: 2;
    border: 4px solid #fff; /* Белая обводка */
    box-shadow: 0 0 0 4px #0A3D62; /* Тень, совпадающая с цветом фона */
}

.workflow-step .step-content {
    background-color: #F8F9FA; /* Светлый фон */
    padding: 35px; /* Увеличим padding */
    border-radius: 15px; /* Большие скругления */
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workflow-step:hover .step-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.1);
}

.workflow-step .step-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 20px;
    filter: invert(29%) sepia(99%) saturate(1223%) hue-rotate(178deg) brightness(96%) contrast(106%); /* Синий цвет иконки */
}

.workflow-step h3 {
    margin-bottom: 15px;
    color: #0A3D62; /* Основной синий */
    font-size: 1.6rem;
}

.workflow-step p {
    font-size: 0.98rem;
    color: #555;
    margin-bottom: 0;
}

/* --- Секция 5: Статьи --- */
.article-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.article-img {
    width: 100%;
    height: 220px; /* Увеличим высоту изображения */
    object-fit: cover;
    display: block; /* Убираем лишний пробел под изображением */
}

.article-content {
    padding: 30px;
    text-align: left;
}

.article-content h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #0A3D62; /* Основной синий */
    line-height: 1.3;
}

.article-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 25px;
}

.article-content .btn-link {
    font-size: 1rem;
}

/* --- Блок Полезные ресурсы (Вариант 3) --- */
#resources-v3 {
    background-color: #fff;
}

.resource-link-list {
    list-style: none;
    padding: 0;
    text-align: left; /* Выравнивание списка по левому краю */
}

.resource-link-list li {
    margin-bottom: 20px;
    padding-left: 10px; /* Небольшой отступ для строки */
}

.resource-link-list a {
    font-size: 1.05rem;
    color: #333;
    transition: color 0.3s ease, margin-left 0.3s ease;
    display: flex;
    align-items: center;
}

.resource-link-list a:hover {
    color: #1DD1A1; /* Акцентный цвет */
    margin-left: 5px;
}

.resource-link-list a i {
    color: #0A3D62; /* Основной синий для иконки */
    font-size: 1rem;
    margin-right: 10px;
}

.resource-link-list a strong {
    color: #0A3D62; /* Жирный текст */
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .resource-link-list li {
        text-align: center; /* Центрируем текст на мобильных */
    }
    .resource-link-list a {
        justify-content: center; /* Центрируем flex-элементы */
    }
}

/* --- Секция 6: Контактная форма --- */
#contact-form .form-control-lg {
    padding: 15px 25px;
    border-radius: 25px; /* Скругленные поля */
    border: 1px solid #D1D5DB; /* Светло-серый контур */
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form .form-control-lg:focus {
    border-color: #1DD1A1; /* Акцентный бирюзовый */
    box-shadow: 0 0 0 0.35rem rgba(29, 209, 161, 0.25); /* Тень в цвет акцента */
}

#contact-form textarea {
    resize: none;
}

/* --- Секция 6: Контактная форма новая --- */
/* --- Стили для блока с контактами (Телефон и Почта) --- */
#contact-info {
    background-color: #F8F9FA; /* Светлый фон */
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Пространство между элементами */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px; /* Пространство между иконкой и текстом */
}

.contact-item .contact-icon {
    font-size: 2rem; /* Размер иконки */
    color: #1DD1A1; /* Акцентный бирюзовый */
}

.contact-item .contact-link {
    font-size: 1.3rem; /* Размер текста */
    font-weight: 600;
    color: #0A3D62; /* Основной синий */
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item .contact-link:hover {
    color: #1DD1A1; /* Акцентный бирюзовый при наведении */
}

/* Медиа-запросы для блока контактов */
@media (max-width: 768px) {
    .contact-item {
        flex-direction: column;
        gap: 10px;
    }
    .contact-item .contact-icon {
        font-size: 1.8rem;
    }
    .contact-item .contact-link {
        font-size: 1.1rem;
    }
}


/* --- Footer --- */
.site-footer {
    background-color: #212529; /* Темный фон */
    color: #fff;
    padding-top: 70px;
    padding-bottom: 70px;
    border-top: none; /* Убираем верхнюю границу */
}

.site-footer .footer-logo img {
    max-height: 50px; /* Увеличим логотип */
    margin-bottom: 20px;
}

.site-footer p {
    font-size: 0.95rem;
    color: #adb5bd; /* Светло-серый текст */
}

.site-footer a {
    color: #1DD1A1; /* Акцентный бирюзовый */
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.site-footer a:hover {
    color: #fff; /* Белый при наведении */
    text-decoration: underline;
}

.site-footer .footer-contacts a {
    font-weight: 500;
    margin: 0 15px; /* Отступ между контактами */
}

.site-footer .footer-contacts a:first-child {
    margin-left: 0;
}
.site-footer .footer-contacts a:last-child {
    margin-right: 0;
}

.site-footer .footer-socials i {
    color: #adb5bd; /* Серый для иконок соцсетей */
    transition: color 0.3s ease;
}

.site-footer .footer-socials i:hover {
    color: #1DD1A1; /* Акцентный бирюзовый */
}

.footer-policy a {
    color: #adb5bd; /* Светло-серый */
    font-size: 0.85rem;
}

.footer-policy a:hover {
    color: #fff;
}

/* --- AOS Animations --- */
[data-aos="fade-right"] { transform: translateX(-30px); opacity: 0; }
[data-aos="fade-left"] { transform: translateX(30px); opacity: 0; }
[data-aos="fade-up"] { transform: translateY(30px); opacity: 0; }
[data-aos="fade-down"] { transform: translateY(-30px); opacity: 0; }
[data-aos="zoom-in"] { transform: scale(0.95); opacity: 0; }

[data-aos="fade-right"].aos-animate, [data-aos="fade-left"].aos-animate,
[data-aos="fade-up"].aos-animate, [data-aos="fade-down"].aos-animate,
[data-aos="zoom-in"].aos-animate {
    transform: none;
    opacity: 1;
}

/* --- Медиа-запросы --- */
@media (max-width: 1200px) {
    .hero-section h1 { font-size: 3.2rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.6rem; }
}

@media (max-width: 992px) {
    .hero-section { height: auto; padding-top: 180px; padding-bottom: 120px; }
    .hero-background { background-attachment: scroll; }
    .advantages-section { background-attachment: scroll; }

    .workflow-container { padding-left: 30px; }
    .workflow-step { padding-left: 30px; }
    .workflow-step .step-number { left: -35px; width: 45px; height: 45px; font-size: 1.5rem; }
    .workflow-step .step-content { padding: 25px; }

    .article-img { height: 200px; }
}

@media (max-width: 768px) {
    .hero-section h1 { font-size: 2.8rem; }
    .hero-section p { font-size: 1.1rem; }
    h2 { font-size: 2.2rem; margin-bottom: 40px; }
    .py-80 { padding-top: 60px; padding-bottom: 60px; }
    .mb-60 { margin-bottom: 40px; }

    .service-card { padding: 25px; }
    .service-card h3 { font-size: 1.3rem; }

    .advantages-section { padding-top: 70px; padding-bottom: 70px; }
    .advantage-item { margin-bottom: 30px; }

    .workflow-container { border-left: none; }
    .workflow-step {
        padding-left: 0; margin-bottom: 40px; text-align: center;
        display: flex; flex-direction: column; align-items: center;
    }
    .workflow-step .step-number { position: static; margin-bottom: 15px; }
    .workflow-step .step-content { width: 100%; max-width: 350px; } /* Ограничиваем ширину */

    .article-img { height: 180px; }

    #contact-form .form-control-lg { padding: 12px 20px; font-size: 0.95rem; }
}

@media (max-width: 576px) {
    .hero-section h1 { font-size: 2.2rem; }
    .hero-section .btn { width: 100%; margin-bottom: 15px; }
    .hero-section .btn:last-child { margin-bottom: 0; }
    .service-card ul { text-align: center; }
    .article-card { margin-bottom: 20px; }
    .article-img { height: 160px; }
    .site-footer .footer-contacts a { margin: 5px 0; display: block;}
}