/* Окно заявки (LeadModal, 30.09.2026) — в стиле попапа выставки: белое окно по центру,
   скругление 24px, слева яркий блок (логотип, заголовок, триколор, пункты, карта Италии
   из точек), справа форма. Маленький аккуратный крестик вместо огромного.
   Открывает remodal шаблона с модификатором lead-modal-wrap (он же — класс обёртки и фона). */

/* фон и обёртка */
.remodal-overlay.lead-modal-wrap { background: rgba(16, 32, 58, .58); }
.remodal-wrapper.lead-modal-wrap { padding: 24px 16px; text-align: center; }
.remodal-wrapper.lead-modal-wrap:after { display: inline-block; height: 100%; margin-left: -.05em; content: ""; vertical-align: middle; }

/* окно */
/* display — только внутри обёртки remodal: до запуска скрипта шаблона окно оставалось видимым
   (inline-grid перебивал .remodal { display: none }) и мелькало при каждой загрузке страницы */
.remodal-wrapper .remodal.lead-modal { display: inline-grid; }
.remodal.lead-modal {
  position: relative; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  /* height: auto — шаблон задаёт .remodal { height: 100vh } (панель на всю высоту) */
  width: 100%; max-width: 960px; height: auto; margin: 0; padding: 0; vertical-align: middle; text-align: left;
  background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 90px rgba(10, 21, 36, .35);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif; color: #10203a;
}

/* появление и закрытие: окно по центру плавно проявляется и чуть поднимается. На компьютере шаблон
   ставит всем окнам анимацию боковой панели (въезд справа, уезд вправо на всю ширину окна): окно
   по центру при закрытии целиком ехало через экран. Отмена — от .remodal.lead-modal, вес выше. */
.remodal.lead-modal.remodal-is-opening { animation: lead-modal-in .28s cubic-bezier(.2, .8, .2, 1) forwards; }
.remodal.lead-modal.remodal-is-closing { animation: lead-modal-out .2s ease-in forwards; }
@keyframes lead-modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes lead-modal-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) {
  .remodal.lead-modal.remodal-is-opening, .remodal.lead-modal.remodal-is-closing { animation-duration: .01s; }
}

/* крестик — маленький круг, как у выставки */
.lead-modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 3; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #f1f3f2; color: #10203a;
  cursor: pointer; transition: background .2s, color .2s, transform .2s;
}
.lead-modal__close:hover { background: #10203a; color: #fff; transform: rotate(90deg); }
.lead-modal__close:focus-visible { outline: 3px solid #62ba87; outline-offset: 2px; }
.lead-modal__close svg { width: 13px; height: 13px; }

/* левая часть */
.lead-modal__intro { position: relative; overflow: hidden; padding: 40px 36px 36px; background: #f1f6f2; }
.lead-modal__decor { position: absolute; right: -40px; bottom: -30px; width: 260px; opacity: .55; pointer-events: none; }
.lead-modal__decor img { display: block; width: 100%; height: auto; }
.lead-modal__decor svg { position: absolute; right: 18px; top: 10%; width: 70px; height: auto; }
.lead-modal__logo { position: relative; display: block; width: 104px; height: auto; margin-bottom: 26px; }
.lead-modal__title {
  position: relative; margin: 0 0 14px; font-size: clamp(26px, 1.4vw + 16px, 34px); font-weight: 800;
  line-height: 1.08; text-transform: uppercase; letter-spacing: -.01em; color: #10203a;
}
.lead-modal__rule { position: relative; display: flex; gap: 6px; width: 200px; margin-bottom: 18px; }
.lead-modal__rule i { flex: 1; height: 4px; border-radius: 2px; background: #2f8f5b; }
.lead-modal__rule i:nth-child(2) { background: #dfe3e8; }
.lead-modal__rule i:nth-child(3) { background: #d92b2b; }
.lead-modal__desc { position: relative; margin: 0 0 22px; font-size: 16px; line-height: 1.5; color: #10203a; white-space: pre-line; }
.lead-modal__points { position: relative; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lead-modal__point { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.lead-modal__point-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; }
.lead-modal__point-icon svg { width: 16px; height: 16px; }
.lead-modal__point--green .lead-modal__point-icon { background: #2f8f5b; }
.lead-modal__point--red .lead-modal__point-icon { background: #d92b2b; }

/* правая часть — форма */
.lead-modal__form { padding: 40px 36px 32px; }
.lead-modal .callback-form { max-width: none; margin: 0; padding: 0; }
.lead-modal .recaptchaError:empty { display: none; }
.lead-modal .callback-form__item.checkbox { margin: 4px 0 18px; }
.lead-modal .callback-form__button-wr { flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.lead-modal .callback-form__button { flex: 1 1 100%; margin: 0; order: -1; }
.lead-modal .callback-form__button .site-btn { width: 100%; min-height: 54px; border-radius: 14px; font-size: 16px; font-weight: 700; }
.lead-modal .callback-form__privace-policy { width: 100%; text-align: center; }
/* «спасибо» в окне — на всю высоту колонки формы */
.lead-modal .lead-done { height: 100%; background: #fff; padding: 24px 8px; }
@media (max-width: 767px) { .lead-modal .lead-done { height: auto; padding: 8px 0 4px; } }

/* планшет: колонки уже */
@media (max-width: 900px) {
  .remodal.lead-modal { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .lead-modal__intro { padding: 28px 24px 24px; }
  .lead-modal__decor { width: 180px; right: -30px; bottom: auto; top: -20px; opacity: .35; }
  .lead-modal__logo { width: 84px; margin-bottom: 16px; }
  .lead-modal__points { display: none; }
  .lead-modal__desc { margin-bottom: 0; }
  .lead-modal__form { padding: 26px 24px 24px; }
}

/* телефон: окно почти во всю ширину, компактная шапка */
@media (max-width: 480px) {
  .remodal-wrapper.lead-modal-wrap { padding: 12px 10px; }
  .remodal.lead-modal { border-radius: 20px; }
  .lead-modal__close { top: 12px; right: 12px; width: 34px; height: 34px; }
  .lead-modal__intro { padding: 22px 20px 20px; }
  .lead-modal__logo { width: 70px; margin-bottom: 12px; }
  .lead-modal__title { font-size: 24px; padding-right: 36px; }
  .lead-modal__rule { width: 150px; margin-bottom: 12px; }
  .lead-modal__desc { font-size: 15px; }
  .lead-modal__form { padding: 22px 20px 20px; }
}
