h2 {
    color: #00579c;
  }

/*Страница Дезинфекция вентиляции*/
/*Блок баннер*/
.block_banner {
    background-image: url(https://xn--b1ahfc9aj.xn--p1acf/wp-content/uploads/2026/09/tr2.webp);
		display: block;
    width: 100%;
    position: relative;
    padding-left: 40px;


    margin-top: 5px;

    background-repeat: no-repeat;
    background-position: center center;

    background-attachment: scroll;
    height: 732px;
}

.block_banner .container {
	height: 100%;
}

.block_banner_header {
	display: flex;
	justify-content: space-between;
	flex-direction: column;
	align-items: stretch;
	margin-top: 30px;
	height: 100%;
	padding: 30px 0;
}



.block_banner_right {
    background: #4a6683;
    border-radius: 30px;
    padding: 30px;
		color: #FFF;
    display: flex;
    align-items: center; /* Вертикальное центрирование текста и кнопки */
		gap: 50px;
    width: fit-content; /* Блок будет ровно по ширине контента. Это современная замена "width: auto" для таких случаев */
    margin-right: auto; /* Прижимает блок к правому краю родителя (если это нужно) */
		font-size: 18px;
    justify-content: space-between; /* Растягивает текст и кнопку максимально далеко друг от друга внутри этого компактного блока */
}


.block_banner_right .button {
    display: inline-flex; /* Включаем флекс для удобного центрирования */
    align-items: center;
    justify-content: center;

    width: 60px; /* Диаметр круга */
    height: 60px;

    background-color: #FFFFFF; /* Белый фон */
    border-radius: 50%; /* Превращает квадрат в круг */

    padding: 0; /* Сброс стандартных отступов ссылки */
    border: none;
    text-decoration: none; /* Убираем подчеркивание у ссылки */

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Легкая тень для объема (опционально) */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Анимация при наведении */
}

/* Стили конкретно для картинки ВНУТРИ кнопки */
.block_banner_right .button img {
    width: 24px; /* Ширина иконки */
    height: 24px; /* Высота иконки */
    object-fit: contain; /* Чтобы иконка не искажалась */
    flex-shrink: 0; /* Запрещаем картинке сжиматься */
}

/* Эффект при наведении курсора */
.block_banner_right .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Если ссылка ведет на телефон или email, браузер может добавить стили автолинковки */
a[href^="tel:"], a[href^="mailto:"] {
    color: initial;
    text-decoration: none;
}

.block_banner_left {
	font-weight: 300;
	font-size: 16px;
}
.block_banner_left h1 {
	font-family: 'Oswald', sans-serif; /* Шрифт задан через класс oswald или напрямую */
	font-size: 64px;
	font-weight: 400;
	color: #00579c;
	margin-bottom: 25px;
	line-height: 1.2;
	text-transform: uppercase;
}


/* Фон всей секции иконок */
.icons {
    display: flex;
    justify-content: center;
    gap: 30px; /* Увеличенный отступ между карточками */
    margin-top: 50px;
    margin-bottom: 70px;
    padding: 50px 20px; /* Отступы сверху/снизу для серого фона */
    background-color: #f3f6f9; /* Светло-серый цвет фона секции */
    flex-wrap: wrap;
		border-radius: 30px;
}

/* Карточка */
.icon {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px 25px;
    width: calc(33.333% - 20px); /* Ширина под новые отступы */
    text-align: left;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden; /* Обрезаем выступающие части белого круга при наведении */

}


/* Обертка для создания белого круга */
.icon-img {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #ffffff; /* Белый фон круга */
    border-radius: 50%; /* Делает квадрат кругом */
    box-shadow: inset 0 0 0 1px #e6ecf1; /* Тонкая серая граница по краю круга */
}

/* Сама картинка внутри круга */
.icon-img img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Текстовая часть */
.icon-text {
    line-height: 1.4;
}

/* Крупный текст в span */
.icon-text span {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #4a6683;
    margin-bottom: 6px;
    line-height: 1.2;
}

/* Описание в p */
.icon-text p {
    margin: 0;
    font-size: 16px;
    color: #4f4f4f;
    font-weight: 400;
}

/* Адаптивность */
@media (max-width: 991px) {
    .icon {
        width: calc(50% - 15px);
    }
}

@media (max-width: 767px) {
    .icons {
        flex-direction: column;
        align-items: stretch;
        padding: 30px 15px;
        margin-top: 30px;
    }

    .icon {
        width: 100%;
        padding: 25px 20px;
        gap: 20px;
    }

    .icon-img {
        width: 70px;
        height: 70px;
    }

    .icon-img img {
        width: 40px;
        height: 40px;
    }

    .icon-text span {
        font-size: 24px;
    }
}


.services-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 70px;
    padding: 50px 20px;
    background-color: #f3f6f9;
    flex-wrap: wrap;
    border-radius: 30px;
}



.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: calc(50% - 15px); /* По 2 в строке */
    padding: 30px 30px 35px; /* Снизу чуть больше отступа из-за отсутствия высокого span */
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

/* Блок изображения вместо кратного числа */
.service-img {
    width: 100%;
    height: 180px; /* Фиксированная высота для ровной сетки */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    order: -1; /* Поднимаем картинку над заголовком */
    margin-bottom: 15px;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка заполнит блок без искажений пропорций */
    transition: transform 0.5s ease, filter 0.3s ease;
    display: block;
}

/* Эффект наложения цвета и масштаба при наведении на картинку */
.service-card:hover .service-img img {
    transform: scale(1.05);
    filter: brightness(0.85) contrast(1.1);
}

/* Заголовок опускаем ниже после переноса image через order:-1 */
.service-title {
    font-size: 22px;
    font-weight: 700;
    color: #005aab;
    margin: 0;
}

.service-title a {

    color: #005aab;

}


.service-desc {
    font-size: 16px;
    color: #4f4f4f;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}



/* Адаптивность */
@media (max-width: 991px) {
    .service-card {
        width: calc(50% - 12px);
    }

    .service-img {
        height: 160px;
    }
}

@media (max-width: 767px) {
    .services-grid {
        padding: 40px 15px;
        flex-direction: column;
    }

    .service-card {
        width: 100%;
        padding: 25px 20px;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .service-img {
        width: 120px; /* Фиксированная ширина на мобильных */
        height: 120px;
        min-width: 120px;
        order: initial; /* Возвращаем порядок элементов */
        margin-bottom: 0;
    }

    .service-title {
        font-size: 20px;
    }

    .service-btn {
        align-self: center;
        width: 100%;
    }
}



/* Секция процесса */
.process-section {
    padding: 60px 20px;
    background-color: #fcfcfc;
}

/* Заголовок секции */
.process-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #005aab;
    margin-bottom: 50px;
}

/* Контейнер шагов — включаем обертку */
.process-grid {
    display: flex;
    justify-content: space-between; /* Растягивает края */
    gap: 30px; /* Отступ между всеми блоками (и по горизонтали, и по вертикали) */
    margin-top: 50px;
    flex-wrap: wrap; /* КЛЮЧЕВОЙ ПАРАМЕТР: разрешает переход на вторую строку */
}

/* Отдельный шаг — меняем ширину с 25% на 48% */
.process-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;

    width: calc(50% - 15px); /* Занимает почти половину родителя за вычетом половины отступа */
    padding: 25px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    min-height: 200px;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Номер шага (круг) */
.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: #005aab;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

/* Блок с заголовком и описанием */
.step-content {
    display: flex;
    flex-direction: column;
    /* Заставляем контент занять всё свободное пространство справа от круга */
    flex-grow: 1;
}

/* Заголовок шага */
.step-title {
    font-size: 18px;
    font-weight: 600;
    color: #111111;
    margin: 0 0 8px;
    line-height: 1.3;
}

/* Описание шага */
.step-desc {
    font-size: 14px;
    color: #555555;
    line-height: 1.5;
    margin: 0;
    /* Теперь flex-grow переносится на родительский .step-content,
       чтобы именно он растягивал карточку при разном объеме текста */
}

/* Адаптивность: планшет (по 2 в строке) */
@media (max-width: 991px) {
    .process-step {
        width: calc(50% - 10px);
        min-height: auto;
    }

    .process-title {
        font-size: 28px;
    }
}

/* Адаптивность: мобильный (в столбик) */
@media (max-width: 767px) {
    .process-step {
        width: 100%;
        /* На мобильных меняем направление: сначала круг, потом весь текст под ним */
        flex-direction: column;
        align-items: flex-start;
    }

    .step-number {
        margin-bottom: 15px;
    }

    .step-content {
        /* Убираем растяжку контента на мобилке, чтобы не ломать верстку */
        flex-grow: 0;
    }
}


/* --- ОСНОВНОЙ ТЕКСТОВЫЙ БЛОК (Флекс-контейнер) --- */
.section-content {
    display: flex;
    width: 100%;
}

/* --- ДЕТАЛЬНЫЕ БЛОКИ --- */
.section-text,
.section-image {
    width: 50%; /* На десктопе каждый занимает ровно половину ширины родителя */
    min-height: 400px; /* Задаем минимальную высоту для визуального баланса */
}

/* Специфичные стили для текстового блока */
.section-text {
    padding: 50px 60px;
    box-sizing: border-box; /* Чтобы паддинг не увеличивал ширину блока сверх 50% */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-text h2.oswald {
    font-size: 2.2rem;
    font-weight: 600;
    color: #00579c;
    margin-bottom: 25px;
    line-height: 1.2;
}



.section-text p {
    font-size: 1rem;
    margin-bottom: 35px;
    color: #333;
    line-height: 1.6;
}

/* Специфичные стили для изображения */
.section-image {
    background-image: url('placeholder.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}






/* --- АДАПТИВНАЯ ВЕРСИЯ --- */
@media (max-width: 900px) {
    .section-content {
        flex-direction: column; /* Ставим блоки друг над другом */
    }

    .section-text,
    .section-image {
        width: 100%; /* Каждый блок теперь на всю ширину экрана */
        min-height: 300px;
    }

    .section-text {
        padding: 40px 30px;
        text-align: center;
        align-items: center;
    }


}

@media (max-width: 500px) {
    .section-text {
        padding: 30px 20px;
    }

    .section-text h2.oswald {
        font-size: 1.8rem;
    }

    .section-image {
        min-height: 200px;
    }
}


/* --- КОНТЕЙНЕР FAQ --- */
.faq-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0; /* Убираем фоновые паддинги для эффекта "сливания" со страницей */
}

/* Заголовок блока вопросов */
.faq-container h3.oswald {
    font-size: 2rem;
    color: #00579c;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

/* --- ЭЛЕМЕНТ АККОРДЕОНА (каждый вопрос) --- */
.faq-item details {
    border-top: 1px solid #e0e0e0; /* Тонкая разделительная линия между вопросами */
    transition: background-color 0.2s ease;
}

.faq-item details:first-child {
    border-top: none; /* Убираем верхнюю линию у первого вопроса */
}

/* При наведении на закрытый пункт — меняем цвет фона */
.faq-item details:not([open]):hover {
    background-color: #f8f9fa;
}


/* --- ВОПРОС (summary) --- */
.faq-question {
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #00579c;
    padding: 20px 40px 20px 0;
    position: relative;
    display: block;
    outline: none;

    /* ВАЖНО: отключаем стандартный маркер-треугольник браузера */
    list-style: none;
}

/* Хак для полного скрытия стрелки в Firefox и Chrome */
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }

/* Иконка плюса/минуса справа (как на svarkomplekt18.ru) */
.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    line-height: 1;
    color: #d9534f;
    transition: transform 0.3s ease;
}

/* Поворот иконки при открытии */
details[open] > summary::after {
    content: '–'; /* Заменяем плюс на минус */
    transform: translateY(-50%) rotate(0deg); /* Минус уже ровный, поворот не нужен */
}

/* Меняем цвет текста активного вопроса */
details[open] > summary {
    color: #d9534f;
    padding-bottom: 10px;
}


/* --- ОТВЕТ --- */
.faq-answer {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    padding: 0 20px 25px 0;
    animation: fadeInHeight 0.4s ease-out;
}

/* Анимация появления текста (плавное раскрытие) */
@keyframes fadeInHeight {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px; /* Достаточно большое число для высокого контента */
        overflow: hidden;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}


/* ====================================================
   П.2: ФОРМА (ЦВЕТ #577491)
==================================================== */
.form-main-bg {
    background-color: #4a6683; /* Темная внешняя рамка */
    padding: 40px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
		margin-bottom: 30px;
}

/* --- ОСНОВНОЙ БЛОК ФОРМЫ --- */
.form-main {
    background-color: #577491; /* ВАШ ВЫБРАННЫЙ ЦВЕТ */
    padding: 35px 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #1a1c23; /* Текст темно-серый для читаемости на светло-синем фоне */
}

/* --- ГЛАВНЫЙ КОНТЕЙНЕР СТРОКИ --- */
.form-row {
    display: flex !important;
    gap: 15px !important;
    width: 100% !important;
    line-height: 0;
}

.form-row p {
    all: unset !important;
    display: contents !important;
}

/* --- ЯЧЕЙКИ --- */
.form-col {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    flex: 1 1 calc(33.333% - 10px) !important;
}

/* Стили самого поля ввода */
.form-col .form-control {
    width: 100% !important;
    height: 55px !important;
    padding: 0 20px !important;
    border: 1px solid #b0c2d6; /* Светлая рамка инпута в тон темы */
    background-color: #fff !important; /* Поля ввода — белые */
    color: #1a1c23 !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    order: 1 !important;
    appearance: textfield !important;
}

/* Стили плейсхолдера */
.form-col .form-control::placeholder {
    color: #7d8492 !important;
    opacity: 1 !important;
}

/* Состояние фокуса */
.form-col .form-control:focus {
    outline: none !important;
    border-color: #d9534f !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.2) !important;
}

/* --- БЛОК ОШИБКИ --- */
.wpcf7-not-valid-tip {
    display: block !important;
    color: #d9534f !important;
    font-size: 0.85rem !important;
    margin-top: 5px !important;
    order: 2 !important;
    line-height: 1.3 !important;
    min-height: 1em !important;
}

.form-col br {
    display: none !important;
}

/* Состояние НЕВАЛИДНОГО поля */
.form-control.wpcf7-not-valid {
    border-color: #d9534f !important;
    background-color: #fdecee !important;
    color: #d9534f !important;
}

/* Скрываем общий вывод сообщений CF7 внизу формы */
.wpcf7-response-output {
    display: none !important;
}

/* --- КНОПКА --- */
.btn-cell {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}

.btn-cell .wpcf7-submit.btn.btn-primary {
    width: auto !important;
    height: 55px !important;
    padding: 0 30px !important;
    border: none !important;
    background-color: #d9534f !important; /* Красная кнопка контрастирует со стальным синим */
    color: #fff !important;
    font-weight: bold !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    order: 0 !important;
}

.btn-cell .wpcf7-submit.btn.btn-primary:hover {
    background-color: #c12e2a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(217, 83, 79, 0.3) !important;
}

.btn-cell .wpcf7-spinner {
    margin-left: 10px !important;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .form-col,
    .btn-cell {
        flex-basis: 100% !important;
        width: 100% !important;
    }

    .form-col .form-control {
        height: 55px !important;
    }
}


/* ====================================================
   ЧЕКБОКС СОГЛАСИЯ (ТОЧНО ПОД ВАШ HTML + :HAS())
==================================================== */
.form-block.form-acceptance-wrap {
    margin-top: 15px !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
}

/* --- Убираем визуальный мусор WordPress --- */
.form-block.form-acceptance-wrap p,
.form-block.form-acceptance-wrap br {
    all: unset !important;
    display: contents !important; /* Ломаем блочную модель <p>, чтобы работал Flex */
}

/* Скрываем нативный input визуально, НО оставляем его рабочим! */
.form-block.form-acceptance-wrap .wpcf7-form-control.wpcf7-acceptance,
.form-block.form-acceptance-wrap input[type="checkbox"] {
    position: absolute !important;
    width: 20px !important;
    height: 20px !important;
    opacity: 0 !important; /* Не display:none, иначе :checked работать не будет */
    z-index: 3 !important; /* Должен быть выше квадрата, чтобы ловить клики */
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* --- Текст согласия и рисование квадрата --- */
.form-block.form-acceptance-wrap span.cl-1 {
    position: relative !important;
    padding-left: 30px !important; /* Место под наш квадратик */
    color: #1a1c23 !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    display: block !important;
    min-height: 22px !important;
}

/* Нарисованный белый квадрат ПЕРЕД текстом */
.form-block.form-acceptance-wrap span.cl-1::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #ccc !important;
    background-color: #eee !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    z-index: 1 !important;
}

/* Галочка внутри квадрата (скрыта по умолчанию) */
.form-block.form-acceptance-wrap span.cl-1::after {
    content: "" !important;
    position: absolute !important;
    left: 5px !important;
    top: 7px !important;
    width: 6px !important;
    height: 12px !important;
    border-style:  solid !important;
    border-width: 0 2px 2px 0 !important;
    border-color: #333 !important;
    transform: rotate(45deg) scale(0) !important; /* Масштаб 0 = скрыто */
    transition: transform 0.2s ease !important;
    z-index: 2 !important;
}

/* === МАГИЯ СВЯЗИ через :has() === */

/* Если у враппера есть checked-инпут -> меняем цвет квадрата */
.form-block.form-acceptance-wrap:has(input:checked) span.cl-1::before {
    background-color: #577491 !important; /* Ваш синий цвет фона формы */
    border-color: #577491 !important;
}

/* Если у враппера есть checked-инпут -> показываем галочку */
.form-block.form-acceptance-wrap:has(input:checked) span.cl-1::after {
    transform: rotate(45deg) scale(1) !important; /* Масштаб 1 = видно */
}

/* Эффект при наведении на НЕотмеченный квадрат */
.form-block.form-acceptance-wrap:not(:has(input:checked)):hover span.cl-1::before {
    background-color: #ddd !important;
    border-color: #bbb !important;
}

/* Ссылка "Соглашение" */
.form-block.form-acceptance-wrap span.cl-1 a {
    color: #d9534f !important;
    text-decoration: underline !important;
}
.form-block.form-acceptance-wrap span.cl-1 a:hover {
    text-decoration: none !important;
}
