.btn-black {
    margin-top: 55px;
}
.text1 {
    text-decoration: underline;
    color: #252525;
}
.heading3 {
    display: block;
    padding-bottom: 10px;
    border-bottom: 1px solid;
    border-color: #8B8D93;
}
.heading2 {
    margin-bottom: 50px;
}


/* Общий фон модального окна */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон */
}

/* Содержимое модального окна */
.modal-content {
    background-color: #fff;
    margin: 1.5% auto;
    padding: 10px 20px;
    width: 80%; max-height: 750px;
    max-width: 750px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.modal-content .visit_booking_form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 70px auto;
    max-width: 410px;
}

/* Кнопка закрытия */
.close {
    color: #000;
    float: right;
    font-size: 28px;
    font-weight: normal;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #aaa;
    text-decoration: none;
}


.contacts_block {
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    padding: 0;
}
.contacts_block .connection {
    margin-bottom: 80px;
    border-bottom: 1px solid;
    border-color: #8B8D93;
}
.contacts_block .contacts_container {
    max-width: 580px; width:100%;
    margin: 80px auto 0px auto;
}
.contact-input {
    display: block;
    width: 100%;
    padding: 10px 5px;
    border: none;
    border-bottom: 1px solid #252525;
    outline: none;
    font-size: 16px;
}
.contacts_container .contacts_form {
    margin-bottom: 120px;
}

.contacts_container .contact_me {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
}
.contacts_container .contact_me .contact_info {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    gap: 10px;
}
.info-field {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 70px;
    grid-row-gap: 55px;
    margin-bottom: 55px;
}
.contacts_container .contact-input:focus {
    border-bottom: 1px solid pink; /* Цвет при фокусе */
}
.contacts_container .studio_visit {
    margin-bottom: 120px;
}
.contacts_container .studio_visit .visit_head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}
.contacts_container .studio_visit span {
    text-decoration: unset;
}
.contacts_container .studio_visit img {
    width: 100%;
    margin-bottom: 25px;
}
.contacts_container .studio_visit .visit_address_info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contacts_container .newsletter {
    max-width: 275px; width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.contacts_container .newsletter .contact-input {
    width: unset;
}


@media screen and (max-width: 660px) {
    .btn-black {
        margin-top: 25px;
    }
    .text1_medium {
        text-transform: uppercase;
    }
    .heading2 {
        margin-bottom: 20px;
    }

    .contacts_container .contacts_form {
        margin-bottom: 60px;
    }
    .contacts_block .contacts_container {
        margin-top: 30px;
    }
    .info-field {
        width: 100%;
        display: flex;
        flex-direction: column;
        grid-row-gap: 20px;
        margin-bottom: 20px;
    }

    .contacts_container .contact_me {
        flex-direction: column;
        margin-bottom: 30px;
    }
    .contacts_block .connection {
        margin-bottom: 60px;
    }

    .contacts_container .studio_visit .visit_head {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }
    .contacts_container .studio_visit {
        margin-bottom: 60px;
    }
}