body.np-template-body {
    background-color: #fff;
}

/* WordPress-специфичные переопределения для форм */
/* Поддержка :has() и классов, добавляемых через JavaScript */

.cta-form-agree:has(.cta-form-checkbox:checked) .cta-form-checkbox-custom::after,
.cta-form-agree.cta-form-checkbox-checked .cta-form-checkbox-custom::after,
.review-form-agree:has(.review-form-checkbox:checked) .review-form-checkbox-custom::after,
.review-form-agree.review-form-checkbox-checked .review-form-checkbox-custom::after {
    content: '';
    display: block;
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
    left: 3.5px;
    position: relative;
    top: 4px;
}

.cta-form-agree:has(.cta-form-checkbox:checked) .cta-form-checkbox-custom,
.cta-form-agree.cta-form-checkbox-checked .cta-form-checkbox-custom,
.review-form-agree:has(.review-form-checkbox:checked) .review-form-checkbox-custom,
.review-form-agree.review-form-checkbox-checked .review-form-checkbox-custom {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.cta-form-agree,
.review-form-agree {
    left: -14px;
    position: relative;
}
span.wpcf7-spinner {
    position: relative;
    order: 100;
}

form.wpcf7-form.init {
    display: flex;
    flex-direction: column;
    gap: 6.1px;
}

.director-form-submit {
    padding: 12px 35px !important;
}

.director-form-checkbox:checked + .director-form-checkbox-custom,
    .director-form-agree:has(.director-form-checkbox:checked) .director-form-checkbox-custom,
    .director-form-agree.director-form-checkbox-checked .director-form-checkbox-custom {
        background-color: #232d4b;
        border-color: #232d4b;
    }
    
.director-form-checkbox:checked + .director-form-checkbox-custom::after,
.director-form-agree:has(.director-form-checkbox:checked) .director-form-checkbox-custom::after,
.director-form-agree.director-form-checkbox-checked .director-form-checkbox-custom::after {
    content: '';
    display: block;
    width: 8px;
    height: 5px;
    border-left: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}
    
.director-form-checkbox:focus-visible + .director-form-checkbox-custom,
.director-form-agree:has(.director-form-checkbox:focus-visible) .director-form-checkbox-custom,
.director-form-agree:has(.director-form-checkbox:focus) .director-form-checkbox-custom {
    outline: 2px solid #232d4b;
    outline-offset: 2px;
}
.director-form-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    left: -11px;
    position: relative;
}input.director-form-checkbox {
    position: absolute;
}span.wpcf7-spinner {
    height: 0;
}

.hero-slider-pagination {
    position: relative !important;
}
@media (min-width: 992px) {
.news-slide {
    height: 579px !important;
}

}

@media screen and (max-width: 992px) {
    .director-form-submit {
        margin-top: 12px;
        font-family: var(--font-family);
        font-weight: 400;
        font-size: 16px;
        line-height: 120%;
        letter-spacing: -0.01em;
        color: #fff;
        width: 100%;
        padding: 6px !important;
    }
    .cta-form-agree, .review-form-agree {
        left: -14px;
    }

    .cta-form-agree:has(.cta-form-checkbox:checked) .cta-form-checkbox-custom::after, .cta-form-agree.cta-form-checkbox-checked .cta-form-checkbox-custom::after, .review-form-agree:has(.review-form-checkbox:checked) .review-form-checkbox-custom::after, .review-form-agree.review-form-checkbox-checked .review-form-checkbox-custom::after {
        content: '';
        display: block;
        width: 8px;
        height: 5px;
        border-left: 2px solid #fff;
        border-bottom: 2px solid #fff;
        transform: rotate(-45deg) translateY(-1px);
        left: 2.5px;
        position: relative;
        top: 2px;
    }
    form.wpcf7-form.init {
        gap: 18px;
    }
    
    .director-form-input, .director-form-textarea {
            font-size: 12px !important;
            height: 20px !important;
            min-height: auto !important;
            padding-bottom: 10px !important;
            width: 100%;
        }
}




.bitrix-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bitrix-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.bitrix-modal__content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 0px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.bitrix-modal__close {
    position: absolute;
    top: 7px;
    right: 7px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #333;
    transition: color 0.2s;
    z-index: 2;
}

.bitrix-modal__close:hover {
    color: #000;
}

.bitrix-modal__form {
    width: 100%;
}