.contact-page {
    margin-top: 65px;
    color: #1a2b3b;
}

.contact-page__inner {
    display: grid;
    grid-template-columns: 400px minmax(0, 600px);
    gap: 80px;
    justify-content: start;
    min-height: 900px;
    padding: 51px 40px 80px;
}

.contact-page__intro h1 {
    margin: 0;
    color: #1a2b3b;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.02em;
}

.contact-page__intro > p {
    max-width: 380px;
    margin: 28px 0 0;
    color: #526273;
    font-size: 16px;
    line-height: 24px;
}

.contact-page__intro p + p {
    margin-top: 16px;
}

.contact-page__intro p a {
    color: #1a2b3b;
    text-decoration: underline dashed;
    text-underline-offset: 4px;
}

.contact-page__intro p a:hover,
.contact-page__intro p a:focus-visible {
    background: #c9f7e8;
    text-decoration: none;
}

.contact-page__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 40px;
}

.contact-page__links a {
    display: flex;
    min-height: 82px;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #fff;
    color: #1a2b3b;
    font-size: 13px;
    line-height: 18px;
    transition: background-color .15s ease, border-color .15s ease;
}

.contact-page__links a:hover,
.contact-page__links a:focus-visible {
    border-color: #cbd5dc;
    background: #f7f9fa;
}

.contact-page__links a span:last-child {
    align-self: flex-end;
}

.contact-page__form .wpcf7 {
    width: 100%;
}

.contact-page__form .wpcf7-form {
    display: grid;
    gap: 24px;
    margin: 0;
}

.contact-form__field,
.contact-form__group {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
}

.contact-form__label,
.contact-form__group legend {
    display: block;
    margin: 0 0 8px;
    color: #1a2b3b;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.contact-form__name {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.contact-page__form .wpcf7-form-control-wrap {
    display: block;
}

.contact-page__form :is(input[type="text"], input[type="email"], input[type="url"], select, textarea) {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    outline: 0;
    background: transparent;
    box-shadow: 0 1px 2px rgba(26, 43, 59, .04);
    color: #1a2b3b;
    font: 400 14px/20px Interphases, Arial, sans-serif;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.contact-page__form :is(input[type="text"], input[type="email"], input[type="url"], select) {
    height: 36px;
}

.contact-page__form textarea {
    height: 124px;
    min-height: 124px;
    resize: vertical;
}

.contact-page__form :is(input, textarea)::placeholder {
    color: #9eabb5;
    opacity: 1;
}

.contact-page__form :is(input[type="text"], input[type="email"], input[type="url"], select, textarea):hover {
    background: #f7f9fa;
}

.contact-page__form :is(input[type="text"], input[type="email"], input[type="url"], select, textarea):focus {
    border-color: #cbd5dc;
    background: #fff;
    box-shadow: 0 0 0 3px #d9f9ee;
}

.contact-page__form select {
    appearance: none;
    padding-right: 36px;
    background-image: linear-gradient(45deg, transparent 50%, #71808d 50%), linear-gradient(135deg, #71808d 50%, transparent 50%);
    background-position: calc(100% - 17px) 15px, calc(100% - 12px) 15px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.contact-page__form .wpcf7-list-item {
    margin: 0;
}

.contact-page__form .wpcf7-checkbox {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}

.contact-page__form .wpcf7-checkbox label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #425364;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
}

.contact-page__form input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #1a2b3b;
}

.contact-page__form .wpcf7-submit {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 15px;
    border: 0;
    border-radius: 6px;
    background: #1a2b3b;
    color: #fff;
    cursor: pointer;
    font: 500 14px/20px Interphases, Arial, sans-serif;
    transition: background-color .15s ease, transform .15s ease;
}

.contact-page__form .wpcf7-submit:hover,
.contact-page__form .wpcf7-submit:focus-visible {
    background: #101d29;
}

.contact-page__form .wpcf7-submit:active {
    transform: translateY(1px);
}

.contact-page__form .wpcf7-spinner {
    display: none;
}

.contact-page__form .wpcf7-not-valid-tip {
    margin-top: 5px;
    color: #b42318;
    font-size: 12px;
}

.contact-page__form .wpcf7-response-output {
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 1px solid #d7e0e6 !important;
    border-radius: 6px;
    font-size: 13px;
}

.contact-form__privacy {
    margin: -8px 0 0;
    color: #7b8995;
    font-size: 11px;
    line-height: 16px;
}

.contact-form__privacy a {
    text-decoration: underline;
}

@media (max-width: 1000px) {
    .contact-page__inner {
        grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
        gap: 48px;
        padding-right: 24px;
        padding-left: 24px;
    }
}

@media (max-width: 760px) {
    .contact-page__inner {
        grid-template-columns: 1fr;
        gap: 48px;
        min-height: 0;
        padding-top: 42px;
    }

    .contact-page__intro h1 {
        font-size: 40px;
    }

    .contact-page__intro > p {
        max-width: 560px;
    }

    .contact-page__links {
        max-width: 400px;
    }
}

@media (max-width: 640px) {
    .contact-page {
        border: 0;
    }

    .contact-page__inner {
        padding: 38px 16px 64px;
    }

    .contact-page__intro h1 {
        font-size: 36px;
    }

    .contact-form__name,
    .contact-page__form .wpcf7-checkbox {
        grid-template-columns: 1fr;
    }
}
