/* ==========================================================================
   Главная — форма заявки (site/layouts/190-form.php). Только var(--es-*).
   ========================================================================== */
body.main-page .home-form {position: relative; overflow: hidden}
body.main-page .home-form__container {position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(32px, 6vw, 96px); align-items: center}
body.main-page .es-section--green .es-section-title {color: #fff}
body.main-page .es-section--green .es-section-subtitle {color: rgba(255, 255, 255, .9)}
body.main-page .es-section--green .es-section-eyebrow {color: #fff}
body.main-page .es-section--green .es-section-eyebrow::before {background: #fff}
body.main-page .home-form__features {display: grid; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none}
body.main-page .home-form__features li {display: flex; align-items: center; gap: 14px; color: #fff; font-size: 17px; font-weight: 600}
body.main-page .home-form__features i {display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 8px; background: #fff; color: var(--es-primary); font-size: 19px}
body.main-page .home-form__contacts {display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .28)}
body.main-page .home-form__contact {color: #fff; font-size: 16px; font-weight: 600}
body.main-page .home-form__contact:hover {color: #fff; text-decoration: underline}
body.main-page .home-form__contact--phone {font-size: 22px; font-weight: 800}
body.main-page .home-form__contact--muted {width: 100%; color: rgba(255, 255, 255, .8); font-size: 14px; font-weight: 400}
body.main-page .home-form__form {display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 40px); border-radius: calc(var(--es-radius) + 4px); background: #fff; color: var(--es-text); box-shadow: 0 24px 50px rgba(10, 40, 0, .28)}
body.main-page .home-form__form-title {margin: 0 0 4px; color: var(--es-heading); font-size: 22px; font-weight: 700}
body.main-page .home-form__field {display: flex; flex-direction: column; gap: 6px; margin: 0}
body.main-page .home-form__field > span {color: var(--es-heading); font-size: 13px; font-weight: 700}
body.main-page .home-form__field em {color: #d64545; font-style: normal}
body.main-page .home-form__field input,
body.main-page .home-form__field textarea {width: 100%; padding: 14px 16px; border: 1px solid var(--es-border); border-radius: var(--es-radius-sm); background: var(--es-surface-alt); color: var(--es-heading); font-size: 15px; line-height: 1.4; transition: border-color .2s, background .2s, box-shadow .2s}
body.main-page .home-form__field textarea {min-height: 92px; resize: vertical}
body.main-page .home-form__field input:focus,
body.main-page .home-form__field textarea:focus {outline: none; border-color: var(--es-dark); background: #fff; box-shadow: 0 0 0 3px var(--es-primary-soft)}
body.main-page .home-form__field .is-invalid {border-color: #d64545; background: #fff5f5}
body.main-page .home-form__confirm {display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 13px; line-height: 1.45; cursor: pointer}
body.main-page .home-form__confirm input {width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--es-dark); appearance: auto; -webkit-appearance: auto}
body.main-page .home-form__confirm a {color: var(--es-heading); text-decoration: underline}
body.main-page .home-form__submit {width: 100%; margin-top: 4px; background: var(--es-dark); border-color: var(--es-dark); color: #fff}
body.main-page .home-form__submit:hover {background: #000; border-color: #000; color: #fff}
body.main-page .home-form__submit:disabled {opacity: .6; cursor: wait; transform: none}
body.main-page .home-form__status {min-height: 20px; margin: 0; font-size: 14px}
body.main-page .home-form__status.is-error {color: #c62828}
body.main-page .home-form__status.is-success {color: #2e7d32; font-weight: 600}

@media (max-width: 992px) {
    body.main-page .home-form__container {grid-template-columns: 1fr}
}

/* Блок звонка вместо формы (190-form.php) */
body.main-page .home-call {display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 40px); border-radius: calc(var(--es-radius) + 4px); background: #fff; box-shadow: 0 24px 50px rgba(10, 40, 0, .28)}
body.main-page .home-call__title {margin: 0 0 6px; color: var(--es-heading); font-size: 22px; font-weight: 700}
body.main-page .home-call__phone {display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 0 22px; border-radius: 12px; background: var(--es-dark); color: #fff; font-size: clamp(20px, 2vw, 25px); font-weight: 800; white-space: nowrap; transition: background .2s}
body.main-page .home-call__phone:first-of-type {background: var(--es-primary)}
body.main-page .home-call__phone:hover {background: #000; color: #fff}
body.main-page .home-call__phone i {font-size: 24px}
body.main-page .home-call__label {margin: 8px 0 0; color: var(--es-muted); font-size: 14px}
body.main-page .home-call__messengers {display: flex; flex-wrap: wrap; gap: 8px}
body.main-page .home-call__messengers a {display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--es-border); border-radius: 10px; color: var(--es-heading); font-weight: 700; font-size: 15px}
body.main-page .home-call__messengers a:hover {border-color: var(--es-primary); color: var(--es-primary)}
body.main-page .home-call__messengers .messenger-icon {width: 24px; height: 24px}
