/* --- Стили для внутренних страниц --- */

/* Hero Section для внутренних страниц */
.page-hero-section {
    position: relative;
    height: 60vh; /* Немного меньше, чем на главной, чтобы шапка не перекрывалась */
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0; /* Убираем padding, так как высота 100vh */
}

.page-hero-section .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Можно оставить, если нужно */
    z-index: 1;
}

.page-hero-section .hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 61, 98, 0.85), rgba(10, 61, 98, 0.6)); /* Более глубокий градиент */
    z-index: 2;
}

.page-hero-section .container {
    position: relative;
    z-index: 3;
    max-width: 800px; /* Ограничиваем ширину для лучшей читаемости */
}

.page-hero-section h1 {
    font-size: 3.5rem; /* Немного меньше, чем на главной */
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.page-hero-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #eee;
}

/* Секция описания услуги */
#outsourcing-description p.fs-5 {
    font-size: 1.1rem; /* Чуть меньше шрифт для абзацев */
}

/* Карточки преимуществ на внутренних страницах */
.service-feature-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 35px;
    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;
    align-items: center; /* Центрируем контент */
}

.service-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ИКОНКИ ИЗМЕНЕНЫ ЗДЕСЬ */
.service-feature-card .feature-icon {
    width: 140px; /* Установлен новый размер */
    height: 140px; /* Установлен новый размер */
    margin-bottom: 20px;
    filter: invert(29%) sepia(99%) saturate(1223%) hue-rotate(178deg) brightness(96%) contrast(106%); /* Синий цвет иконки */
}

.service-feature-card h4 {
    font-size: 1.3rem;
    color: #0A3D62; /* Основной синий */
    margin-bottom: 15px;
}

.service-feature-card p {
    font-size: 0.98rem;
    color: #555;
    margin-bottom: 0;
}

/* Контактная форма на внутренних страницах */
#contact-form-outsourcing .form-control-lg,
#contact-form-docs .form-control-lg,
#contact-form-audit .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-outsourcing .form-control-lg:focus,
#contact-form-docs .form-control-lg:focus,
#contact-form-audit .form-control-lg:focus {
    border-color: #1DD1A1;
    box-shadow: 0 0 0 0.35rem rgba(29, 209, 161, 0.25);
}

#contact-form-outsourcing textarea,
#contact-form-docs textarea,
#contact-form-audit textarea {
    resize: none;
}

#contact-form-outsourcing .btn,
#contact-form-docs .btn,
#contact-form-audit .btn {
    padding: 12px 35px;
}

/* Адаптация иконок Font Awesome для секции Преимуществ */
.advantage-item .advantage-icon {
    width: 80px; /* Фиксированный размер */
    height: 80px;
    color: #fff; /* Белый цвет, так как фон темный */
    font-size: 2.5rem; /* Размер иконки */
    margin-bottom: 25px;
}

/* --- Стили для страницы Обучения --- */

/* Hero Section для страницы Обучения */
#hero-training {
    background-image: url('../img/hero-training-bg.jpg'); /* Новое фоновое изображение */
}

/* Секция Лицензии и преимуществ */
#license-and-benefits {
    background-color: #F8F9FA; /* Светлый фон */
}

.license-card {
    background-color: #0A3D62; /* Основной синий фон */
    color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(10, 61, 98, 0.2); /* Тень в цвет фона */
    max-width: 500px; /* Ограничиваем ширину */
    margin: 0 auto; /* Центрируем */
}

.license-card .license-img {
    width: 100px;
    height: 100px;
    display: block; /* Чтобы margin работал */
    margin: 0 auto 20px auto;
}

.license-card h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 15px;
}

.license-card p {
    color: #D1D5DB; /* Светло-серый */
    font-size: 1.05rem;
    line-height: 1.7;
}

.license-card .text-muted {
    color: #adb5bd !important;
    font-size: 0.85rem;
}

#license-and-benefits ul {
    list-style: none;
    padding: 0;
}

#license-and-benefits ul li {
    margin-bottom: 15px;
    color: #333; /* Темный текст */
    font-size: 1.05rem;
    padding-left: 30px; /* Отступ для галочки */
    position: relative;
}

#license-and-benefits ul li i.fa-check-circle {
    color: #1DD1A1; /* Акцентный бирюзовый */
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 1.2rem;
}

#license-and-benefits ul li strong {
    color: #0A3D62; /* Основной синий */
}

/* Программы обучения */
.training-card-wrapper {
    perspective: 1000px;
}

.training-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%;
}

.training-card:hover {
    transform: translateY(-10px) rotateX(1deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.training-card .card-icon-wrapper {
    margin-bottom: 20px;
    height: 140px; /* Размер иконки */
    display: flex;
    align-items: center;
    justify-content: center;
}

.training-card .card-icon {
    max-width: 100%;
    max-height: 100%;
    filter: invert(29%) sepia(99%) saturate(1223%) hue-rotate(178deg) brightness(96%) contrast(106%); /* Синий цвет иконки */
}

.training-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #0A3D62;
}

.training-card .card-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
}

.training-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 30px;
}

.training-card ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
    padding-left: 25px;
    position: relative;
}

.training-card ul li i.fa-circle-check {
    color: #1DD1A1; /* Акцентный бирюзовый */
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.1rem;
}

/* Форматы обучения */
.format-item {
    background-color: #fff;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.format-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.format-item .format-icon {
    font-size: 3rem;
    color: #1DD1A1; /* Акцентный бирюзовый */
    margin-bottom: 20px;
}

.format-item h4 {
    font-size: 1.3rem;
    color: #0A3D62;
    margin-bottom: 15px;
}

.format-item p {
    font-size: 0.98rem;
    color: #555;
    margin-bottom: 0;
}

/* --- Стили для страницы Разработки документов --- */

/* Hero Section для страницы Разработки документов */
#hero-docs {
    background-image: url('../img/hero-docs-bg.jpg'); /* Новое фоновое изображение */
}

/* Секция Актуальность и важность */
#docs-importance ul {
    list-style: none;
    padding: 0;
}

#docs-importance ul li {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.05rem;
    padding-left: 30px;
    position: relative;
}

#docs-importance ul li i.fa-check-circle {
    color: #1DD1A1; /* Акцентный бирюзовый */
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 1.2rem;
}

#docs-importance ul li strong {
    color: #0A3D62; /* Основной синий */
}

/* Секция "Что мы разрабатываем" (использует service-feature-card) */
#docs-services .service-feature-card {
    min-height: 280px; /* Устанавливаем минимальную высоту для единообразия */
}

/* Секция Этапы разработки */
.docs-workflow-container {
    position: relative;
    padding-left: 50px;
    border-left: 3px solid #0A3D62; /* Основной синий для линии */
}

.docs-workflow-step {
    position: relative;
    margin-bottom: 60px;
    padding-left: 50px;
    text-align: left;
}

.docs-workflow-step .step-number {
    position: absolute;
    left: -65px;
    top: 0;
    width: 60px;
    height: 60px;
    background-color: #1DD1A1; /* Акцентный бирюзовый */
    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 #1DD1A1;
}

.docs-workflow-step .step-content {
    background-color: #F8F9FA;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.docs-workflow-step:hover .step-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.1);
}

.docs-workflow-step .step-icon {
    font-size: 2.8rem;
    color: #0A3D62; /* Основной синий */
    margin-bottom: 20px;
}

.docs-workflow-step h3 {
    font-size: 1.6rem;
    color: #0A3D62;
    margin-bottom: 15px;
}

.docs-workflow-step p {
    font-size: 0.98rem;
    color: #555;
    margin-bottom: 0;
}

/* --- Стили для страницы Аудита СУОТ --- */

/* Hero Section для страницы Аудита */
#hero-audit {
    background-image: url('../img/hero-audit-bg.jpg'); /* Новое фоновое изображение */
}

/* Секция Важности аудита */
#audit-importance ul {
    list-style: none;
    padding: 0;
}

#audit-importance ul li {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.05rem;
    padding-left: 30px;
    position: relative;
}

#audit-importance ul li i.fa-check-circle {
    color: #1DD1A1; /* Акцентный бирюзовый */
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 1.2rem;
}

#audit-importance ul li strong {
    color: #0A3D62; /* Основной синий */
}

/* Секция "Что включает аудит" */
#audit-scope .service-feature-card {
    min-height: 290px; /* Увеличиваем минимальную высоту */
}

/* Секция Процесс аудита (аналогична этапам работ, но с другими иконками и цветами) */
.audit-workflow-container {
    position: relative;
    padding-left: 50px;
    border-left: 3px solid #0A3D62; /* Основной синий для линии */
}

.audit-workflow-step {
    position: relative;
    margin-bottom: 60px;
    padding-left: 50px;
    text-align: left;
}

.audit-workflow-step .step-number {
    position: absolute;
    left: -65px;
    top: 0;
    width: 60px;
    height: 60px;
    background-color: #1DD1A1; /* Акцентный бирюзовый */
    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 #1DD1A1;
}

.audit-workflow-step .step-content {
    background-color: #F8F9FA;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audit-workflow-step:hover .step-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.1);
}

.audit-workflow-step .step-icon {
    font-size: 2.8rem;
    color: #0A3D62; /* Основной синий */
    margin-bottom: 20px;
}

.audit-workflow-step h3 {
    font-size: 1.6rem;
    color: #0A3D62;
    margin-bottom: 15px;
}

.audit-workflow-step p {
    font-size: 0.98rem;
    color: #555;
    margin-bottom: 0;
}

/* --- Медиа-запросы для page-hero-section --- */
@media (max-width: 992px) {
    .page-hero-section { height: 50vh; }
    .page-hero-section h1 { font-size: 3rem; }
    .page-hero-section p { font-size: 1.1rem; }
    .license-card { margin-bottom: 30px; }
    .training-card { padding: 25px; }
    .training-card h3 { font-size: 1.3rem; }
    .format-item { padding: 30px; margin-bottom: 30px; }
    .format-item .format-icon { font-size: 2.5rem; }

    .service-feature-card { min-height: auto; padding: 30px; } /* Автоматическая высота карточек */

    .docs-workflow-container { border-left: none; padding-left: 0; }
    .docs-workflow-step {
        padding-left: 0; margin-bottom: 40px; text-align: center;
        display: flex; flex-direction: column; align-items: center;
    }
    .docs-workflow-step .step-number { position: static; margin-bottom: 15px; }
    .docs-workflow-step .step-content { width: 100%; max-width: 350px; }

    .audit-workflow-container { border-left: none; padding-left: 0; }
    .audit-workflow-step {
        padding-left: 0; margin-bottom: 40px; text-align: center;
        display: flex; flex-direction: column; align-items: center;
    }
    .audit-workflow-step .step-number { position: static; margin-bottom: 15px; }
    .audit-workflow-step .step-content { width: 100%; max-width: 350px; }
}

@media (max-width: 768px) {
    .page-hero-section { height: 40vh; }
    .page-hero-section h1 { font-size: 2.5rem; }
    .page-hero-section p { font-size: 1rem; }
    .page-hero-section .btn { padding: 10px 25px; font-size: 0.95rem; }
    .py-80 { padding-top: 60px; padding-bottom: 60px; }
    .mb-60 { margin-bottom: 40px; }

    .service-feature-card { padding: 25px; }
    .service-feature-card h4 { font-size: 1.2rem; }
    .service-feature-card p { font-size: 0.9rem; }
    .row-cols-md-2 > *, .row-cols-lg-3 > * { margin-bottom: 30px; }

    .license-card { padding: 30px; }
    .license-card h3 { font-size: 1.8rem; }
    #license-and-benefits ul li { padding-left: 25px; font-size: 1rem;}

    .training-card ul li { font-size: 0.95rem; }

    .audit-workflow-step .step-content, .docs-workflow-step .step-content { /* Уравниваем контент */
        max-width: 350px; /* Ограничиваем ширину */
    }

    .site-footer .footer-contacts { flex-direction: column; }
    .site-footer .footer-contacts a { margin: 5px 0; display: block; }
}

@media (max-width: 576px) {
    .page-hero-section h1 { font-size: 2rem; }
    .site-footer p { font-size: 0.9rem; }
    .footer-policy a { font-size: 0.8rem; }
}

/* --- Стили для блога --- */

/* Hero Section для статьи */
.blog-hero {
    height: 50vh; /* Меньше, чем на главной */
    background-attachment: scroll; /* Отключаем параллакс для статей */
}

.blog-hero .hero-background::before { /* Затемнение */
    background: linear-gradient(to bottom, rgba(10, 61, 98, 0.85), rgba(10, 61, 98, 0.6));
}

.blog-hero h1 {
    font-size: 3.2rem; /* Крупный заголовок */
}

.blog-hero .post-meta {
    font-size: 0.95rem;
    color: #D1D5DB;
}

.blog-hero .post-meta i {
    color: #1DD1A1; /* Акцентный цвет */
}

/* Основное содержание статьи */
.blog-article-content {
    background-color: #fff;
}

.blog-post {
    font-family: 'Open Sans', sans-serif; /* Шрифт для основного текста */
    color: #333;
    line-height: 1.8;
}

.blog-post h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: #0A3D62; /* Основной синий */
    margin-top: 40px;
    margin-bottom: 25px;
}

.blog-post h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7rem;
    color: #0A3D62;
    margin-top: 30px;
    margin-bottom: 20px;
}

.blog-post h4 { /* На случай, если пользователь захочет использовать h4 */
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: #0A3D62;
    margin-top: 25px;
    margin-bottom: 15px;
}

.blog-post p {
    margin-bottom: 25px;
    font-size: 1.05rem;
    color: #333;
}

.blog-post ul {
    list-style: disc; /* Точки для списков */
    padding-left: 30px;
    margin-bottom: 25px;
}

.blog-post ul li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #333;
}

.blog-post ul li strong {
    color: #0A3D62; /* Цвет для выделения */
}

.blog-post a {
    color: #1DD1A1; /* Акцентный цвет для ссылок */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.blog-post a:hover {
    color: #0A3D62;
}

/* Sidebar */
.blog-sidebar {
    border-left: 1px solid #e0e0e0; /* Разделитель */
    padding-left: 40px;
}

.sidebar-widget {
    margin-bottom: 50px;
}

.sidebar-widget .widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: #0A3D62;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1DD1A1; /* Акцентная линия */
    display: inline-block; /* Чтобы линия растягивалась по тексту */
}

.popular-posts-list, .categories-list {
    list-style: none;
    padding: 0;
}

.popular-posts-list li, .categories-list li {
    margin-bottom: 12px;
}

.popular-posts-list a, .categories-list a {
    font-size: 1.05rem;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease, margin-left 0.3s ease;
}

.popular-posts-list a:hover, .categories-list a:hover {
    color: #1DD1A1;
    margin-left: 5px; /* Легкое смещение */
}

.call-to-action-widget {
    background-color: #0A3D62; /* Основной синий фон */
    color: #fff;
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(10, 61, 98, 0.2);
}

.call-to-action-widget .widget-title {
    color: #fff;
    border-bottom-color: #1DD1A1;
}

.call-to-action-widget p {
    font-size: 1rem;
    color: #D1D5DB;
    margin-bottom: 30px;
}

.call-to-action-widget .btn-primary {
    background-color: #1DD1A1;
    border-color: #1DD1A1;
    color: #0A3D62; /* Темный текст на яркой кнопке */
}

.call-to-action-widget .btn-primary:hover {
    background-color: #fff;
    border-color: #fff;
    color: #0A3D62;
}

/* Медиа-запросы для блога */
@media (max-width: 992px) {
    .blog-hero { height: 45vh; }
    .blog-hero h1 { font-size: 2.8rem; }
    .blog-sidebar {
        border-left: none;
        padding-left: 0;
        margin-top: 40px;
        border-top: 1px solid #e0e0e0;
        padding-top: 30px;
    }
    .call-to-action-widget { margin-top: 30px; }
}

@media (max-width: 768px) {
    .blog-hero { height: 40vh; }
    .blog-hero h1 { font-size: 2.4rem; }
    .blog-post h2 { font-size: 2rem; }
    .blog-post h3 { font-size: 1.6rem; }
    .sidebar-widget .widget-title { font-size: 1.2rem; }
    .call-to-action-widget p { font-size: 0.95rem; }
}

@media (max-width: 576px) {
    .blog-hero h1 { font-size: 2rem; }
    .blog-post p, .blog-post li { font-size: 1rem; }
    .blog-post h2 { font-size: 1.8rem; }
    .blog-post h3 { font-size: 1.4rem; }
    .sidebar-widget .widget-title { font-size: 1.1rem; }
}