body.discount-popup-open {
  overflow: hidden;
}

.discount-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.discount-popup--open {
  opacity: 1;
  visibility: visible;
}

.discount-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(8px);
}

.discount-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 32px 90px rgba(2, 6, 23, 0.32);
  max-height: min(86vh, 720px);
}

.discount-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  z-index: 5;
}

.discount-popup__promo {
  padding: 28px 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(145deg, #0f172a 0%, #1d4ed8 58%, #38bdf8 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.discount-popup__eyebrow {
  width: max-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discount-popup__promo h2 {
  font-family: var(--ff);
  font-size: 29px;
  line-height: 1.12;
  font-weight: 800;
  margin: 0;
}

.discount-popup__promo p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
}

.discount-popup__benefits {
  display: grid;
  gap: 9px;
}

.discount-popup__benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(6px);
  font-size: 12.5px;
  font-weight: 600;
}

.discount-popup__benefit i {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.discount-popup__visual {
  margin-top: auto;
}

.discount-popup__visual-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.discount-popup__visual-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  padding: 8px;
}

.discount-popup__visual-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.discount-popup__visual-copy strong {
  font-size: 16px;
  line-height: 1.2;
}

.discount-popup__visual-copy span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.8);
}

.discount-popup__form-wrap {
  padding: 28px 26px 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  overflow-y: auto;
}

.discount-popup__status {
  margin: 0 0 6px;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discount-popup__form-wrap h3 {
  margin: 0 0 18px;
  color: #0f172a;
  font-family: var(--ff);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
}

.discount-popup__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.discount-popup__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.discount-popup__field span {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.discount-popup__field input,
.discount-popup__field select {
  height: 46px;
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  color: #0f172a;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.discount-popup__field input:focus,
.discount-popup__field select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.discount-popup__field .iti {
  width: 100%;
}

.discount-popup__check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #475569;
  font-size: 11.5px;
  line-height: 1.5;
}

.discount-popup__check input {
  margin-top: 3px;
}

.discount-popup__check a {
  color: #1d4ed8;
  font-weight: 700;
}

.discount-popup__recaptcha {
  max-width: 100%;
  overflow: hidden;
}

.discount-popup__recaptcha-missing {
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
}

.discount-popup__submit {
  height: 48px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #fb7185);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discount-popup__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(249, 115, 22, 0.3);
}

.discount-popup__success {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 860px) {
  .discount-popup__dialog {
    grid-template-columns: 1fr;
    max-height: min(90vh, 760px);
    overflow-y: auto;
  }

  .discount-popup__promo,
  .discount-popup__form-wrap {
    padding: 22px 18px;
  }

  .discount-popup__promo h2 {
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  .discount-popup {
    padding: 10px;
  }

  .discount-popup__promo h2,
  .discount-popup__form-wrap h3 {
    font-size: 21px;
  }

  .discount-popup__visual-card {
    align-items: flex-start;
  }

  .discount-popup__phone {
    grid-template-columns: 64px 1fr;
  }
}
