/* файл для стилей без сборщика, подключается последним */

.smart-captcha, .g-recaptcha, .h-captcha {
	min-height: 0!important;
	margin-top: 0!important;
	margin-bottom: 0!important;
}

.js-header { top: var(--landing-panel-offset, 0px); }
.header-bottom__call, .header-popup__eyed { display: none; }
.header-top__box { min-height: 52px; }
.header-bottom__box { min-height: 83px; padding-block: 14px; }
.header-bottom__logo svg, .header-bottom__burger svg { display: block; }
.header-popup:not(._is-active) { visibility: hidden; }

.landing-captcha {
    display: grid;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
}
.landing-captcha img { max-width: 100%; height: auto; }
.landing-captcha .input-text__value { width: 100%; min-width: 0; background: white; color: #1d1d21; border: 1px solid #666; border-radius: 12px; padding: 10px 16px; }

:is(.free-consultation-form__row, .consultation-plan-form__row, .free-checkup-form__row) {
    max-width: 100%;
    grid-template-columns: minmax(0,265fr) minmax(0,393fr) minmax(0,382fr);
    column-gap: 32px;
}
:is(.free-consultation-form__row, .consultation-plan-form__row, .free-checkup-form__row) > * { min-width: 0; }
:is(.free-consultation-form__button, .consultation-plan-form__button, .free-checkup-form__button) { order: 2; overflow-wrap: anywhere; }
:is(.free-consultation-form__row, .consultation-plan-form__row, .free-checkup-form__row) .landing-captcha { order: 4; }

@media (max-width: 920px) {
    :is(.free-consultation-form__row, .consultation-plan-form__row, .free-checkup-form__row) { grid-template-columns: minmax(0,1fr); }
    :is(.free-consultation-form__row, .consultation-plan-form__row, .free-checkup-form__row) .landing-captcha { order: 2; }
    :is(.free-consultation-form__checkbox, .consultation-plan-form__checkbox, .free-checkup-form__checkbox) { order: 3; }
    :is(.free-consultation-form__button, .consultation-plan-form__button, .free-checkup-form__button) { order: 4; }
}

@media (max-width: 680px) {
    .popup[data-code="consultation"] .popup__wrapper { max-width: calc(100% - 32px); }
}
@media (max-width: 660px) {
    .header-bottom__box { min-height: 56px; padding-block: 12px; }
    .header-bottom__logo { max-width: 125px; }
    .header-bottom__eyed, .header-bottom__button { display: none; }
    .header-popup__eyed { display: block; margin-top: 12px; }
    .header-bottom__call {
        display: grid;
        place-items: center;
        width: 32px;
        height: 32px;
        background: var(--eyed-color-text, var(--color-green));
        border-radius: 50%;
    }
    .header-bottom__call svg { width: 20px; height: 20px; fill: var(--eyed-color-background, white); }
}

/* Размер карты не зависит от высоты текста в контактной карточке. */
.map__box {
    display: grid;
    grid-template-columns: minmax(0, 403px) minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
}
.map .map__wrapper {
    width: auto;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}
.map .map__map {
    position: relative;
    height: auto;
    min-height: 340px;
    min-width: 0;
}
.footer-contacts__content { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 768px) {
    .map__box { grid-template-columns: minmax(0, 1fr); }
    .map .map__map { height: 300px; min-height: 0; }
}

@media (min-width: 921px) {
    :is(.free-consultation-form__row, .consultation-plan-form__row, .free-checkup-form__row):has(.landing-captcha) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 850px;
    }
    :is(.free-consultation-form__row, .consultation-plan-form__row, .free-checkup-form__row):has(.landing-captcha) > * {
        order: 0;
    }
}
