.contact-page {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.contact-main {
    padding: 46px 20px 58px;
}

.contact-shell {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 4vw, 48px);
}

.contact-form-card {
    padding: 26px;
    border: 1px solid #edf0f5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(31, 58, 107, .06);
}

.contact-form-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    color: #172f59;
    font-size: 23px;
    font-weight: 800;
}

.contact-icon {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    border-radius: 50%;
    background: #fff0f5;
    color: #ed0753;
    font-size: 25px;
}

.contact-form {
    display: grid;
    gap: 15px;
}

.contact-field {
    display: grid;
    gap: 6px;
}

.contact-field label {
    color: #17345f;
    font-size: 13px;
    font-weight: 750;
}

.contact-field label span {
    color: #ed0753;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 43px;
    padding: 10px 13px;
    border: 1px solid #dfe4ec;
    border-radius: 8px;
    background: #fff;
    color: #1f3a6b;
    font: inherit;
    font-size: 13px;
    line-height: 1.4;
}

.contact-field textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #9aa4b4;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: #ed0753;
    outline: 3px solid rgba(237, 7, 83, .12);
}

.contact-field [aria-invalid="true"] {
    border-color: #c62828;
}

.contact-error {
    margin: 0;
    color: #b42318;
    font-size: 12px;
}

.contact-submit {
    display: flex;
    min-height: 47px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(100deg, #ed0753, #da0050);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: filter .18s ease, transform .18s ease;
}

.contact-submit:hover {
    filter: brightness(.95);
    transform: translateY(-1px);
}

.contact-aside h1 {
    margin: 0 0 14px;
    color: #172f59;
    font-size: clamp(30px, 2.8vw, 34px);
    font-weight: 850;
    line-height: 1.04;
}

.contact-aside h1 span {
    color: #ed0753;
}

.contact-aside > p {
    margin: 0 0 18px;
    color: #66748c;
    font-size: 16px;
    line-height: 1.55;
}

.contact-email {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 13px;
    padding: 10px 15px;
    border-radius: 10px;
    background: #fff2f7;
    color: #d9004c;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-email i {
    flex: 0 0 auto;
    font-size: 23px;
}

.contact-pets-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0px auto 0;
}

.contact-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    padding: 14px 18px;
    border: 1px solid #b7e4c7;
    border-radius: 10px;
    background: #effaf2;
    color: #216e39;
    font-size: 14px;
    font-weight: 650;
}

@media (max-width: 760px) {
    .contact-main {
        padding: 28px 16px 38px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .contact-form-card {
        padding: 20px 16px;
    }

    .contact-form-title {
        font-size: 21px;
    }

    .contact-aside {
        max-width: 540px;
        margin: 0 auto;
    }

    .contact-aside h1 {
        font-size: 38px;
    }

    .contact-pets-image {
        max-width: 430px;
    }
}
