:root {
  --enl-blue: #101d70;
  --enl-blue-dark: #09124b;
  --enl-yellow: #ffd400;
  --enl-text: #17204b;
  --enl-muted: #6f7894;
  --enl-line: #e5e8f1;
}

html.enl-modal-open { overflow: hidden !important; }
#enl-promo[hidden] { display: none !important; }
#enl-promo, #enl-promo * { box-sizing: border-box; }

.enl-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
}
.enl-modal.is-visible { opacity: 1; visibility: visible; }

.enl-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 31, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.enl-dialog {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 35px 100px rgba(4, 10, 40, .35);
  transform: translateY(18px) scale(.975);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.enl-modal.is-visible .enl-dialog { transform: translateY(0) scale(1); }

.enl-side {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  padding: 42px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(155deg, var(--enl-blue) 0%, var(--enl-blue-dark) 100%);
  color: #fff;
}
.enl-side:before,
.enl-side:after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 212, 0, .12);
}
.enl-side:before { width: 240px; height: 240px; top: -120px; right: -120px; }
.enl-side:after { width: 160px; height: 160px; bottom: -80px; left: -80px; }
.enl-side-kicker { position: relative; z-index: 1; color: var(--enl-yellow); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.enl-big-discount { position: relative; z-index: 1; margin-top: 18px; }
.enl-big-discount strong { display: block; color: #fff; font-size: 82px; line-height: .86; font-weight: 950; letter-spacing: -.07em; }
.enl-big-discount span { display: block; margin-top: 8px; color: var(--enl-yellow); font-size: 34px; line-height: 1; font-weight: 950; letter-spacing: .08em; }
.enl-side p { position: relative; z-index: 1; margin: 9px 0 0; color: #fff; font-size: 20px; font-weight: 800; }
.enl-mini-rule { position: relative; z-index: 1; width: 46px; height: 4px; margin: 26px 0 18px; border-radius: 99px; background: var(--enl-yellow); }
.enl-side small { position: relative; z-index: 1; max-width: 160px; color: rgba(255,255,255,.7); font-size: 12px; line-height: 1.6; }

.enl-content { padding: 48px 50px 42px; }
.enl-eyebrow { display: block; color: #b09200; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.enl-content h2 { margin: 10px 0 10px; color: var(--enl-text); font-size: 34px; line-height: 1.08; letter-spacing: -.04em; }
.enl-content h2 strong { color: var(--enl-blue); }
.enl-description { margin: 0; color: var(--enl-muted); font-size: 15px; line-height: 1.6; }

.enl-timer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 26px 0 24px; padding: 14px 16px; border: 1px solid var(--enl-line); border-radius: 14px; background: #f8f9fc; }
.enl-timer-wrap > span { max-width: 105px; color: var(--enl-muted); font-size: 10px; line-height: 1.3; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.enl-timer { display: flex; align-items: center; gap: 7px; }
.enl-timer div { min-width: 55px; padding: 8px 7px; text-align: center; border-radius: 10px; background: #fff; border: 1px solid var(--enl-line); }
.enl-timer strong { display: block; color: var(--enl-blue); font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums; }
.enl-timer small { display: block; margin-top: 4px; color: #8b93aa; font-size: 7px; font-weight: 900; }
.enl-timer b { color: var(--enl-blue); font-size: 18px; transform: translateY(-3px); }

.enl-email-form label { display: block; margin-bottom: 7px; color: var(--enl-text); font-size: 12px; font-weight: 800; }
.enl-email-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.enl-email-row input { width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid #ccd2e0; border-radius: 10px; outline: none; color: var(--enl-text); background: #fff; font: 500 14px/1 Roboto,Arial,sans-serif; box-shadow: none; }
.enl-email-row input:focus { border-color: var(--enl-blue); box-shadow: 0 0 0 3px rgba(16,29,112,.08); }
.enl-email-row button, .enl-cta { min-height: 52px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--enl-yellow); color: #14204e !important; font: 900 12px/1 Roboto,Arial,sans-serif; text-decoration: none !important; cursor: pointer; white-space: nowrap; }
.enl-email-row button:hover, .enl-cta:hover { filter: brightness(.98); transform: translateY(-1px); }
.enl-email-row button:disabled { opacity: .58; cursor: wait; transform: none; }
.enl-privacy { display: block; margin-top: 9px; color: #9299ac; font-size: 9px; line-height: 1.5; }
.enl-form-message { min-height: 0; margin: 8px 0 0; font-size: 11px; font-weight: 700; }
.enl-form-message.is-error { color: #b42318; }

.enl-unlocked { animation: enlFadeUp .3s ease both; }
@keyframes enlFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.enl-unlocked-label { display: block; margin-bottom: 8px; color: #14825f; font-size: 10px; font-weight: 900; letter-spacing: .11em; }
.enl-coupon { width: 100%; min-height: 78px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 2px 12px; padding: 13px 15px; border: 2px dashed var(--enl-blue); border-radius: 13px; background: #f7f8fd; color: var(--enl-blue); text-align: left; cursor: pointer; }
.enl-coupon > span { grid-column: 1; color: #7e869d; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.enl-coupon strong { grid-column: 1; color: var(--enl-blue); font-size: 26px; line-height: 1; letter-spacing: .08em; }
.enl-coupon em { grid-column: 2; grid-row: 1 / 3; padding: 9px 10px; border-radius: 8px; background: var(--enl-blue); color: #fff; font-size: 9px; font-style: normal; font-weight: 900; letter-spacing: .06em; }
.enl-coupon.is-copied { border-style: solid; border-color: #14825f; }
.enl-coupon.is-copied em { background: #14825f; }
.enl-cta { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.enl-success-note { margin: 9px 0 0; color: #7c8499; font-size: 10px; text-align: center; }

.enl-close { position: absolute; z-index: 5; top: 14px; right: 14px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #f0f2f7; color: #6c748d; font: 400 22px/32px Arial,sans-serif; cursor: pointer; }
.enl-close:hover { color: var(--enl-blue); background: #e7eaf2; }
.enl-modal.is-expired .enl-dialog { filter: grayscale(.2); }
.enl-modal.is-expired .enl-email-row button, .enl-modal.is-expired .enl-coupon, .enl-modal.is-expired .enl-cta { opacity: .55; pointer-events: none; }

@media (max-width: 760px) {
  .enl-modal { padding: 12px; align-items: flex-end; }
  .enl-dialog { grid-template-columns: 1fr; width: 100%; max-height: calc(100vh - 24px); border-radius: 20px; }
  .enl-side { min-height: 0; padding: 20px 24px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 18px; }
  .enl-side-kicker { grid-column: 1 / -1; }
  .enl-big-discount { margin-top: 10px; }
  .enl-big-discount strong { font-size: 46px; }
  .enl-big-discount span { margin-top: 3px; font-size: 18px; }
  .enl-side p { margin: 8px 0 0; font-size: 16px; }
  .enl-mini-rule, .enl-side small { display: none; }
  .enl-content { padding: 26px 22px 24px; }
  .enl-content h2 { font-size: 27px; padding-right: 25px; }
  .enl-description { font-size: 13px; }
  .enl-timer-wrap { margin: 18px 0; }
  .enl-email-row { grid-template-columns: 1fr; }
  .enl-email-row button { min-height: 50px; }
  .enl-close { top: 12px; right: 12px; background: rgba(255,255,255,.94); }
}

@media (max-width: 420px) {
  .enl-modal { padding: 0; }
  .enl-dialog { max-height: 100vh; border-radius: 18px 18px 0 0; }
  .enl-timer-wrap { align-items: flex-start; flex-direction: column; gap: 10px; }
  .enl-timer-wrap > span { max-width: none; }
  .enl-timer { width: 100%; justify-content: space-between; }
  .enl-timer div { flex: 1; min-width: 0; }
}
