.contacts-page {
    padding-top: 24px;
    padding-bottom: 80px;
    background: var(--gray1);
}

.contacts-page-container {
    display: grid;
    grid-template-columns: minmax(0, 988fr) minmax(0, 700fr);
    align-items: start;
    gap: 32px;
}

.contacts-info,
.contacts-form-card {
    padding: 24px;
    border-radius: 16px;
    background: var(--white1);
    min-width: 0;
}

.contacts-info-card,
.contacts-intro,
.contacts-group,
.contacts-form-card,
.contacts-form,
.contacts-fields,
.contacts-field {
    display: flex;
    flex-direction: column;
}

.contacts-info-card {
    gap: 24px;
}

.contacts-intro {
    gap: 16px;
}

.contacts-intro p {
    font-size: 18px;
}

.contacts-group {
    gap: 12px;
}

.contacts-group h2 {
    color: var(--green1);
    font-size: 14px;
    font-weight: 600;
}

.contacts-group-email h2 {
    text-transform: uppercase;
}

.contacts-email,
.contacts-socials a {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    font-weight: 600;
}

.contacts-email-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url('../../icons/email.svg') center / contain no-repeat;
    mask: url('../../icons/email.svg') center / contain no-repeat;
}

.contacts-email {
    max-width: 100%;
}

.contacts-email span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.contacts-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.contacts-socials a {
    flex: 0 0 auto;
    gap: 8px;
    white-space: nowrap;
}

.contacts-social-icon {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    background: currentColor;
}

.contacts-social-facebook {
    -webkit-mask: url('../../icons/facebook.svg') center / contain no-repeat;
    mask: url('../../icons/facebook.svg') center / contain no-repeat;
}

.contacts-social-instagram {
    -webkit-mask: url('../../icons/instagram.svg') center / contain no-repeat;
    mask: url('../../icons/instagram.svg') center / contain no-repeat;
}

.contacts-info a:hover {
    color: var(--green1);
}

.contacts-form-card {
    gap: 20px;
}

.contacts-form {
    gap: 16px;
    width: 100%;
}

.contacts-fields {
    gap: 16px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.contacts-field {
    gap: 4px;
}

.contacts-field label {
    font-size: 13px;
}

.contacts-field label span {
    color: var(--red1);
}

.contacts-field input {
    min-height: 45px;
    height: 45px;
    padding: 10px 16px;
}

.contacts-field textarea {
    min-height: 100px;
    height: 100px;
    padding: 10px 16px;
}

.contacts-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contacts-consent input {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    accent-color: var(--green1);
    cursor: pointer;
}

.contacts-consent label {
    min-width: 0;
    cursor: pointer;
}

.contacts-consent a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contacts-submit {
    align-self: flex-start;
    min-height: 45px;
    padding: 10px 24px;
    border: 0;
    border-radius: 9999px;
    background: var(--green1);
    color: var(--white1);
    cursor: pointer;
}

.contacts-submit:hover:not(:disabled) {
    background: var(--black1);
}

.contacts-submit:disabled {
    cursor: default;
    opacity: 0.65;
}

.contacts-submit[aria-busy="true"] {
    cursor: wait;
}

.contacts-status {
    color: var(--green1);
}

.contacts-status.is-error {
    color: var(--red1);
}

.contacts-page a:focus-visible,
.contacts-submit:focus-visible,
.contacts-consent input:focus-visible {
    outline: 2px solid var(--green1);
    outline-offset: 3px;
}

.contacts-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .contacts-page {
        padding-bottom: 40px;
    }

    .contacts-page-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .contacts-info {
        display: contents;
    }

    .contacts-info > .breadcrumbs {
        margin-bottom: 0;
    }

    .contacts-info-card,
    .contacts-form-card {
        padding: 16px;
        border-radius: 16px;
        background: var(--white1);
    }

    .contacts-intro {
        gap: 12px;
    }

    .contacts-intro p {
        font-size: 14px;
    }

    .contacts-group h2 {
        font-size: 12px;
    }

    .contacts-fields {
        gap: 12px;
    }

    .contacts-field label {
        font-size: 12px;
    }

    .contacts-field input {
        min-height: 40px;
        height: 40px;
    }

    .contacts-field textarea {
        min-height: 80px;
        height: 80px;
    }

    .contacts-consent input {
        margin-top: 2px;
    }

    .contacts-submit {
        align-self: stretch;
        margin-top: 8px;
    }
}
