.contacts-page { padding-block: 40px 80px; }
.contacts-page > h1 { margin-bottom: 32px; font: 400 38px/46px var(--font-brand); }
.contacts-page .contact-grid { align-items: start; }
.contacts-page .contact-grid h2 { margin: 0 0 12px; font: 400 24px/29px var(--font-body); }
.contacts-page .contact-item { padding-block: 16px; }
.contacts-page .contact-item:first-child { padding-top: 0; }
.contacts-page .contact-item:last-of-type { padding-bottom: 0; border-bottom: 0; }
.contacts-page .contact-item a { display: inline; position: relative; color: var(--color-text); font: 400 18px/24px var(--font-body); overflow-wrap: anywhere; text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size 280ms ease, color 280ms ease; }
.contacts-page .contact-item a:hover, .contacts-page .contact-item a:focus-visible { background-size: 100% 1px; }
.contacts-page .contact-form { min-width: 0; }
.contacts-page .contact-form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.contacts-page .contact-form fieldset > * { grid-column: 1 / -1; min-width: 0; }
.contacts-page .contact-form fieldset > :is(.contact-name, .contact-phone) { grid-column: auto; }
.contacts-page .contact-form .ff-el-input--label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#main.contacts-page .contact-form textarea.ff-el-form-control { height: 140px; min-height: 140px; resize: vertical; }
#main.contacts-page .contact-form .ff-btn-submit { min-height: 45px; height: 45px; min-width: 180px; font-weight: 400; }
.contacts-page .contact-form .ff_submit_btn_wrapper { margin-bottom: 0; }
@media (max-width: 768px) {
    .contacts-page { padding-block: 16px 80px; }
    .contacts-page > h1 { margin-bottom: 28px; font-size: 32px; line-height: 38px; }
    .contacts-page .contact-grid { gap: 28px; }
    .contacts-page .contact-grid h2 { font-size: 20px; line-height: 24px; }
    .contacts-page .contact-form fieldset { grid-template-columns: minmax(0, 1fr); }
    #main.contacts-page .contact-form .ff-btn-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .contacts-page .contact-item a { transition: none; }
}
