/* Контакты (SPEC §4): контакты (col-4) | форма (колонки 6–12) по сетке v10, под ними карта.
   Цвет раздела — ink. Без карточек и цветных плашек: состояния формы — волосяные линии, как датированный список v10. */

/* ---------- колонки ---------- */
.contacts { row-gap: 48px; }
@media (min-width: 1024px) {
  .contacts__info { grid-column: span 4; }
  .contacts__form { grid-column: 6 / span 7; }
}

/* ---------- контакты: подпись серым, телефон и почта крупнее ---------- */
.contacts__list { display: grid; gap: 24px; }
.contacts__item dt { margin-bottom: 2px; font-size: var(--fs-small); color: var(--muted); }
.contacts__item dd { margin: 0; }
.contacts__big { display: inline-block; padding: 3px 0; font-size: 20px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.contacts__big:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (min-width: 768px) {
  .contacts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gutter); }
  .contacts__big { font-size: 22px; }
}
@media (min-width: 1024px) {
  .contacts__list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- форма ---------- */
.contacts__intro { margin-top: 12px; max-width: 60ch; color: var(--muted); }
.lead-form, .form-done { margin-top: 28px; }
@media (min-width: 768px) { .lead-form, .form-done { margin-top: 36px; } }

/* поля: 16 px на телефоне — iOS не увеличивает страницу при фокусе */
.lead-form .field input, .lead-form .field textarea { font-size: 16px; }
.lead-form .field textarea { min-height: 148px; }
.field__req { color: var(--muted); font-weight: 400; }
.field.is-invalid input[type="text"], .field.is-invalid textarea { border-color: #B3261E; }
.field.is-invalid input[type="checkbox"] { outline: 1px solid #B3261E; outline-offset: 1px; }
.field .field__error { font-weight: 500; }

/* ошибка отправки (антиспам, лимит, сеть) и «проверьте поля» — строка между линейками */
.form-alert { margin-bottom: 24px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #B3261E; font-weight: 500; }
.form-alert:focus, .form-done:focus { outline: none; }
.form-alert:not([hidden]) + .lead-form__topic { margin-top: -24px; border-top: 0; } /* одна линейка между ними */

/* тема «Запрос цены: …» — строка между линейками, «Убрать тему» справа */
.lead-form__topic { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 20px; margin-bottom: 24px; padding: 6px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead-form__topic p { padding: 8px 0; font-weight: 500; }
.lead-form__topic-label { font-weight: 400; color: var(--muted); }
.lead-form__topic-remove { display: inline-block; padding: 8px 0; font-size: var(--fs-small); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.lead-form__topic-remove:hover { color: var(--ink); text-decoration-color: currentColor; }

/* согласие: флажок + подпись, ссылки на документы строкой ниже */
.field--consent { margin-top: 24px; }
.consent { display: flex; align-items: flex-start; gap: 12px; }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.field .consent label { font-size: var(--fs-body); font-weight: 400; line-height: 1.5; cursor: pointer; }
.consent__docs, .field--consent .field__error { margin-left: 32px; }
.consent__docs { font-size: var(--fs-small); color: var(--muted); }
.consent__docs a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.consent__docs a:hover { text-decoration-color: currentColor; }

/* поле-ловушка: вне экрана и вне дерева доступности (aria-hidden), без display: none */
.lead-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.lead-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.lead-form__submit { min-height: 44px; padding: 0 28px; }
.lead-form__note { font-size: var(--fs-small); color: var(--muted); }

/* успех — как пустое состояние: текст между линейками и ссылка «Написать ещё» */
.form-done { padding: 24px 0 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.form-done__text { max-width: 48ch; font-size: var(--fs-h3); font-weight: 500; line-height: 1.4; }
.form-done__again { margin-top: 16px; }

/* ---------- карта ---------- */
.contacts-map { padding-bottom: var(--section); }
.contacts-map__frame { display: block; width: 100%; height: 300px; border: 0; background: var(--surface); }
@media (min-width: 768px) { .contacts-map__frame { height: 400px; } }
