/* Кнопка «Заказать звонок» + модалка */

body.xl-redesign a.xl-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 42px !important;
  padding: 0 16px 0 12px !important;
  box-sizing: border-box !important;
}

body.xl-redesign .xl-cta__ico {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.18) !important;
}

body.xl-redesign .xl-cta__ico img {
  display: block !important;
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  border: 0 !important;
  filter: brightness(0) invert(1) !important;
}

body.xl-redesign .xl-cta__txt {
  display: inline-block !important;
  line-height: 1 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
}

html.xl-callback-open,
html.xl-callback-open body {
  overflow: hidden !important;
}

.xl-callback {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100050 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px 16px !important;
  box-sizing: border-box !important;
  background: transparent !important;
  background-color: transparent !important;
}

.xl-callback[hidden] {
  display: none !important;
}

.xl-callback__backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(11, 33, 56, 0.22) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.xl-callback__dialog {
  position: relative !important;
  z-index: 1 !important;
  width: min(420px, 100%) !important;
  max-height: min(90vh, 700px) !important;
  display: flex !important;
  flex-direction: column !important;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.65) 0%, transparent 50%),
    linear-gradient(180deg, #fffaf4 0%, #fff 55%) !important;
  border: 1px solid #eadfd3 !important;
  border-radius: 20px !important;
  box-shadow: 0 28px 70px rgba(23, 21, 19, 0.32) !important;
  overflow: hidden !important;
  animation: xlCallbackIn .18s ease;
}

@keyframes xlCallbackIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.xl-callback__head {
  display: none !important;
}

.xl-callback__close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 2 !important;
  width: 36px !important;
  height: 36px !important;
  border: 1px solid #e0d4c6 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #171513 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 !important;
  box-shadow: 0 4px 14px rgba(23, 21, 19, 0.1) !important;
}

.xl-callback__close:hover {
  border-color: #ff6a00 !important;
  background: #fff7f2 !important;
  color: #ff6a00 !important;
}

.xl-callback__body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 22px 22px 18px !important;
  background: transparent !important;
  box-sizing: border-box !important;
  overflow: auto !important;
}

.xl-callback__frame {
  display: block !important;
  width: 100% !important;
  height: 600px !important;
  border: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
}

/* ссылки в подвале: контакты / звонок */
body.xl-redesign .xl-footer__link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 10px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  line-height: 1.3 !important;
}

body.xl-redesign .xl-footer__link:hover {
  color: #ff6a00 !important;
}

body.xl-redesign .xl-footer__link-ico {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

body.xl-redesign .xl-footer__link-ico img {
  display: block !important;
  width: 13px !important;
  height: 13px !important;
  opacity: 0.55 !important;
  filter: brightness(0) invert(1) !important;
}

body.xl-redesign .xl-footer__link:hover .xl-footer__link-ico {
  background: rgba(255, 106, 0, 0.16) !important;
}

body.xl-redesign .xl-footer__link:hover .xl-footer__link-ico img {
  opacity: 0.9 !important;
}

@media (max-width: 900px) {
  body.xl-redesign a.xl-cta {
    display: none !important;
  }
  .xl-callback {
    align-items: stretch !important;
    justify-content: center !important;
    padding: 0 !important;
  }
  .xl-callback__dialog {
    width: 100% !important;
    max-width: 100% !important;
    height: 100dvh !important;
    max-height: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }
  .xl-callback__body {
    display: flex !important;
    flex-direction: column !important;
    padding: 14px 12px 12px !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .xl-callback__frame {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
  }
}
