.offer-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.offer-modal[hidden] { display: none; }
.offer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 24, 40, .62);
  backdrop-filter: blur(6px);
}
.offer-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 32px 28px 28px;
  border-radius: 24px;
  background: #fff;
  color: #123e55;
  box-shadow: 0 28px 64px rgba(0, 30, 52, .28);
  animation: offer-modal-enter 280ms cubic-bezier(.22, 1, .36, 1) both;
}
.offer-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #033651;
  cursor: pointer;
  transition: color 220ms cubic-bezier(.22, 1, .36, 1), transform 220ms cubic-bezier(.22, 1, .36, 1);
}
.offer-modal__close svg {
  display: block;
  transition: transform 280ms cubic-bezier(.22, 1, .36, 1);
}
.offer-modal__close:hover {
  background: transparent;
  color: #078bc9;
}
.offer-modal__close:hover svg {
  transform: rotate(90deg) scale(1.08);
}
.offer-modal__close:focus-visible {
  outline: 3px solid #42bdf4;
  outline-offset: 3px;
  border-radius: 8px;
}
.offer-modal__close:active svg {
  transform: rotate(90deg) scale(.94);
}
.offer-modal__eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #078bc9;
}
.offer-modal__title {
  margin: 0 0 8px;
  font-family: var(--font-display, "Outfit", "DM Sans", Arial, sans-serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  color: #033651;
}
.offer-modal__lead {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: #5a7384;
}
.offer-modal__form {
  display: grid;
  gap: 14px;
}
.offer-modal__form.is-sent .offer-modal__field,
.offer-modal__form.is-sent .offer-modal__submit {
  display: none;
}
.offer-modal__form.is-sent .offer-modal__success {
  display: block;
}
.offer-modal__product[hidden] { display: none !important; }
.offer-modal__product {
  display: grid;
  gap: 4px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #3d5566;
}
.offer-modal__product strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #033651;
}
.offer-modal__field {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #3d5566;
}
.offer-modal__field input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d5e3eb;
  border-radius: 14px;
  background: #f7fbfd;
  color: #033651;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.offer-modal__field input::placeholder { color: #8aa0ae; font-weight: 400; }
.offer-modal__field input:focus {
  border-color: #22b8ef;
  box-shadow: 0 0 0 3px rgba(34, 184, 239, .18);
  background: #fff;
}
.offer-modal__submit {
  width: 100%;
  margin-top: 4px;
  justify-content: center;
}
.offer-modal__success {
  display: none;
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  background: #e8f7ee;
  color: #14633a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

@keyframes offer-modal-enter {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.is-offer-open { overflow: hidden; }

.mail-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.form-status:empty { display: none; }
.form-status.success { color: #14633a; }
.form-status.error { color: #8d2b2b; }

@media (prefers-reduced-motion: reduce) {
  .offer-modal__dialog,
  .offer-modal__close,
  .offer-modal__close svg {
    animation: none !important;
    transition: none !important;
  }
}
