/* Thin (200) */
@font-face {
  font-family: 'Axiforma';
  src: url('/fonts/Axiforma-Thin.woff2') format('woff2'),
       url('/fonts/Axiforma-Thin.woff') format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

/* Regular (400) */
@font-face {
  font-family: 'Axiforma';
  src: url('/fonts/Axiforma-Regular.woff2') format('woff2'),
       url('/fonts/Axiforma-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Medium (500) */
@font-face {
  font-family: 'Axiforma';
  src: url('/fonts/Axiforma-Medium.woff2') format('woff2'),
       url('/fonts/Axiforma-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* SemiBold (600) */
@font-face {
  font-family: 'Axiforma';
  src: url('/fonts/Axiforma-SemiBold.woff2') format('woff2'),
       url('/fonts/Axiforma-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Bold (700) */
@font-face {
  font-family: 'Axiforma';
  src: url('/fonts/Axiforma-Bold.woff2') format('woff2'),
       url('/fonts/Axiforma-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ExtraBold (900) */
@font-face {
  font-family: 'Axiforma';
  src: url('/fonts/Axiforma-ExtraBold.woff2') format('woff2'),
       url('/fonts/Axiforma-ExtraBold.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ===== IMAGO lead popup ===== */
#leadPopup {
  position: fixed;
  inset: 0;
  display: none;                 /* включаем из JS */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.68);
  z-index: 2147483646;           /* выше любых слоёв/виджетов */
}

#leadPopup.is-open { display: flex; }

#leadPopup .popup__dialog {
  position: relative;
  width: min(780px, 96vw);
  height: min(720px, 90vh);
  max-width: 780px;
  max-height: 720px;
  background: transparent;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
  border-radius: 10px;
  overflow: hidden;              /* чтоб iframe не «выпирал» */
}

#leadPopup iframe#leadPopupFrame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

#leadPopup .popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
#leadPopup .popup__close:hover { background: rgba(0,0,0,.6); }
#leadPopup .popup__close svg { width: 20px; height: 20px; }
