.contact-section {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.contact-content {
    flex: 2;
    max-width: 820px;
}

.contact-images {
    flex: 1;
    position: relative;
    min-height: 500px;
}

.section-subtitle {
    font-family: var(--tilda-sans) !important;
    color: var(--text, #514F5C);
    font-family: "Tilda Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 110%;
    margin-bottom: 20px;
}

/* === Стилизация полей CF7 === */
.cf7-custom-form {
    width: 100%;
}

.form-row-2-col {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.form-field {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    /* Отступ между рядами */
}

/* Лейблы */
.form-field label {
    font-family: var(--tilda-sans);
    color: var(--purple_dark, #272630);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 110%;
    margin-bottom: 10px;
}

/* Инпуты (Превращаем в линии) */
.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #D1D1D1;
    /* Светло-серая линия */
    background: transparent;
    padding: 10px 0;
    font-family: var(--font-secondary);
    font-size: 14px;
    color: var(--text);
    transition: border-color 0.3s;
    border-radius: 0;
    /* Убираем скругления iOS */
}

/* Плейсхолдеры */
.form-field ::placeholder {
    color: #C4C4C4;
    /* Светлый цвет как на макете */
}

/* Эффект при клике */
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-bottom-color: var(--color-purple-dark);
}

/* Текстарея */
.form-field textarea {
    height: 79px !important;
    /* Начальная высота */
    resize: none;
}

/* === Чекбокс === */
.form-checkbox {
    margin-bottom: 40px;
    font-family: var(--font-secondary);
    font-size: 12px;
    color: var(--text);
    display: flex;
    align-items: center;
}

.form-checkbox input[type="checkbox"] {
    accent-color: var(--color-purple);
    /* Цвет галочки */
    margin-right: 10px;
    transform: scale(1.2);
}

.form-submit {
    max-width: 280px;
}

/* === Кнопка "Отправить" === */
.form-submit input[type="submit"] {
    background: transparent;
    border-radius: 2px;
    border: 1px solid var(--gray);
    color: var(--purple_dark);
    text-align: center;
    font-family: Involve;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    transition: all 0.3s ease;
    padding: 14px;
    width: 100%;
    cursor: pointer;
}

.form-submit input[type="submit"]:hover {
    border-radius: 2px;
    background: var(--purple_dark);
    color: var(--white);
    text-align: center;
    font-family: Involve;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    transition: all 0.3s ease;
}


.img-back {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 90%;
    overflow: hidden;
}

.img-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    /* Меньшая картинка */
    height: 250px;
    border: 5px solid var(--color-white);
    /* Белая рамка, чтобы отделить от фона */
    overflow: hidden;
    z-index: 2;
}

.img-front img {
    width: 100%;
    height: 100%;
    max-width: 180px;
    object-fit: cover;
}

.contact-section .container {
    padding-right: 0;
}

@media (max-width: 992px) {
    .img-back {
        position: static !important;
        width: 100%;
        max-height: 400px;
        height: auto;
    }

    .contact-wrapper {
        flex-direction: column-reverse;
    }

    .contact-images {
        min-height: auto;
    }

    .img-front {
        display: none;
    }

    .img-back img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}