
/* =========================================================
   Compact PDF download modal
   Prefix: pdl-
========================================================= */

body.pdl-modal-open {
  overflow: hidden;
}

.site-nav__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-nav__download:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.pdl-modal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.pdl-modal.is-visible {
  display: flex;
}

.pdl-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 38, 0.62);
  backdrop-filter: blur(6px);
}

.pdl-modal__box {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  background: #ffffff;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.pdl-modal__box--compact {
  padding: 0;
  border-radius: 0;
  overflow: hidden;
}

.pdl-modal__x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(239, 246, 255, 0.95);
  color: #0f172a;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.pdl-modal__x:hover {
  background: #dbeafe;
}

.pdl-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: center;
  padding: 34px 32px 28px;
}

.pdl-offer__content {
  min-width: 0;
}

.pdl-offer__logo {
  display: block;
  width: 122px;
  max-height: 34px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 24px;
}

.pdl-offer h2 {
  margin: 0;
  color: #72aee2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.pdl-offer__list {
  margin: 20px 0 0;
  padding-left: 18px;
  color: #020617;
  font-size: 16px;
  line-height: 1.55;
}

.pdl-offer__list li + li {
  margin-top: 10px;
}

.pdl-offer__strong {
  margin: 20px 0 0;
  color: #020617;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 800;
}

.pdl-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.pdl-form__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pdl-form input[type="email"] {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  background: #ffffff;
  color: #111827;
  outline: none;
  font: inherit;
  font-size: 15px;
}

.pdl-form input[type="email"]:focus {
  border-color: #72aee2;
  box-shadow: 0 0 0 3px rgba(114, 174, 226, 0.18);
}

.pdl-form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.pdl-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 2px;
  color: #475569;
  font-size: 11px;
  line-height: 1.45;
}

.pdl-form__consent input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

.pdl-form__consent a {
  color: #315f8d;
  text-decoration: underline;
}

.pdl-form__message {
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.pdl-form__message.is-error {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.pdl-form button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: #ff7043;
  color: #ffffff;
  cursor: pointer;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pdl-form button:hover {
  background: #f25d32;
  transform: translateY(-1px);
}

.pdl-form button:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.pdl-offer__legal {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 10.5px;
  line-height: 1.45;
}

.pdl-offer__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdl-offer__visual img {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 20px rgba(15, 23, 42, 0.18));
}

.pdl-offer__visual span {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 50px;
  border: 2px solid #ef4444;
  border-radius: 7px;
  background: #ffffff;
  color: #ef4444;
  font-size: 12px;
  font-weight: 900;
}

.pdl-modal__state--loading,
.pdl-modal__state--success {
  padding: 44px 34px;
  text-align: center;
}

.pdl-modal__state--loading h2,
.pdl-modal__state--success h2 {
  margin: 0;
  color: #071426;
  font-size: 27px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.pdl-modal__state--loading p,
.pdl-modal__state--success p {
  margin: 12px 0 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}

.pdl-loader {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 5px solid #dbeafe;
  border-top-color: #2563eb;
  animation: pdlSpin 1s linear infinite;
}

.pdl-success-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-size: 30px;
  font-weight: 950;
}

.pdl-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 22px auto 0;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.pdl-modal__close:hover {
  background: #1d4ed8;
}

@keyframes pdlSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .pdl-modal {
    padding: 12px;
    align-items: flex-start;
    overflow-y: auto;
  }

  .pdl-modal__box {
    margin: 24px 0;
  }

  .pdl-offer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 20px 24px;
  }

  .pdl-offer h2 {
    font-size: 25px;
  }

  .pdl-offer__list {
    font-size: 15px;
  }

  .pdl-offer__visual {
    order: -1;
  }

  .pdl-offer__visual img {
    width: 150px;
  }

  .pdl-offer__logo {
    width: 110px;
    margin-bottom: 18px;
  }
}

@media (max-width: 480px) {
  .site-nav__download {
    width: 100%;
  }

  .pdl-offer h2 {
    font-size: 22px;
  }

  .pdl-offer__list,
  .pdl-offer__strong {
    font-size: 14px;
  }

  .pdl-form__consent {
    font-size: 10.5px;
  }
}
