.contact {
    padding-top: 70px;
    padding-bottom: 20px;
}

.contact__title {
    margin-bottom: 70px !important;
    font-size: 30px;
    color: #303030;
}

.contact__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.element {
    display: flex;
    min-height: 280px;
    flex-direction: row;
    width: calc(50% - 34px);
    margin-bottom: 68px;
}

.element__first {
    border-radius: 10px;
}

.element__first--with-accents {
    border: 2px solid var(--accent-color);
}

.element__image {
    flex: 0 1 30%;
    max-width: 30%;
}

.element__text {
    flex: 1;
    max-width: 70%;
    margin: 32px 30px 32px 20px;
    display: flex;
    flex-direction: column;
}

.element__title {
    font-size: 22px;
    line-height: 30px;
    font-weight: 700;
    color: #4E4E4E;
    padding-bottom: 10px;
    border-bottom: 2px solid #C9C9C9;
    display: block;
    width: 100%;
}

.element__title--blue {
    color: var(--accent-color);
}

.element__description {
    flex-grow: 1;
    font-family: Ubuntu;
    font-weight: 400;
    font-size: 15px;
    line-height: 24px;
    padding-top: 12px;
}

.element__description p {
    margin-bottom: 3px;
}

.element__button-container {
    text-align: right;
    margin-top: auto;
}

.element__button {
    display: inline-block;
    min-width: 220px;
    border: 1px solid var(--accent-color);
    background-color: var(--accent-color);
    color: #fff;
    padding: 7px 20px;
    border-radius: 32px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.element__button:hover {
    text-decoration: none;
    background-color: #fff;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

@media only screen and (min-width: 992px) {
    .element {
        height: 249px;
        min-height: unset;
    }
}

@media only screen and (max-width: 992px) {
    .element {
        width: 50%;
        margin-bottom: 40px;
    }

    .contact__row {
        gap: 0;
    }
}


@media only screen and (max-width: 778px) {
    .contact {
        padding-top: 20px !important;
    }

    .contact__title {
        margin-top: 30px;
        margin-bottom: 30px;
        font-size: 30px;
        color: #303030;
    }

    .element {
        width: 100%;
        margin-bottom: 40px;
        flex-direction: column;
    }

    .element__image,
    .element__text {
        max-width: 100%;
        text-align: center;
    }

    .element__title {
        font-size: 20px;
        text-align: center;
    }

    .element__description {
        font-size: 14px;
        padding-top: 10px;
    }

    .element__button-container {
        margin-top: 20px;
        position: static;
        text-align: center;
    }

    .element__button {
        margin-top: 20px;
        font-size: 18px;
        border-radius: 32px;
    }
}
