:root {
  --du-red: #fc0000;
  --du-red-dark: #c90000;
  --du-black: #0a0a0a;
  --du-ink: #171717;
  --du-white: #ffffff;
  --du-soft: #f5f5f3;
  --du-line: #dededb;
  --du-gold: #ffbf35;
  --du-muted: #686868;
}

.du-popup,
.du-popup * {
  box-sizing: border-box;
}

.du-popup {
  width: min(960px, calc(100vw - 32px));
  max-width: 960px;
  max-height: min(760px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--du-ink);
  background: transparent;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  font-family: Montserrat, Arial, sans-serif;
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease;
}

.du-popup[open].du-popup--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.du-popup::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.du-popup__shell {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  min-height: 610px;
  background: var(--du-white);
}

.du-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: var(--du-ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 50%;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.du-popup__close:hover {
  color: var(--du-white);
  background: var(--du-red);
  transform: rotate(4deg);
}

.du-popup__close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.du-popup__close:focus-visible,
.du-popup__submit:focus-visible,
.du-popup__success button:focus-visible,
.du-offer-tab:focus-visible,
.du-popup__field input:focus-visible,
.du-popup__field textarea:focus-visible {
  outline: 3px solid var(--du-gold);
  outline-offset: 3px;
}

.du-popup__story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 34px 38px 38px;
  overflow: hidden;
  color: var(--du-white);
  background:
    radial-gradient(circle at 92% 10%, rgba(252, 0, 0, 0.3), transparent 33%),
    linear-gradient(150deg, #050505 0%, #111 72%, #180000 100%);
}

.du-popup__story::after {
  position: absolute;
  right: -78px;
  bottom: -78px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 191, 53, 0.25);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(252, 0, 0, 0.08),
    0 0 0 72px rgba(255, 255, 255, 0.03);
  content: "";
}

.du-popup__brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--du-red);
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.du-popup__brand span {
  max-width: 70px;
  color: var(--du-white);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}

.du-popup__growth-mark {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  width: min(100%, 300px);
  height: 92px;
  margin: 2px 0 25px;
  padding: 0 2px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.du-popup__growth-mark span {
  position: relative;
  flex: 1;
  height: var(--du-bar);
  min-height: 16px;
  background: linear-gradient(180deg, #ff3434 0%, var(--du-red-dark) 100%);
  border-radius: 7px 7px 2px 2px;
  transform-origin: bottom;
}

.du-popup__growth-mark span::before {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--du-gold);
  border: 2px solid var(--du-black);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.du-popup__eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: var(--du-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.du-popup__title {
  position: relative;
  z-index: 1;
  max-width: 13ch;
  margin: 0;
  color: var(--du-white);
  font-size: clamp(28px, 3.1vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.du-popup__description {
  position: relative;
  z-index: 1;
  max-width: 39ch;
  margin: 19px 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
}

.du-popup__benefits {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.du-popup__benefits li {
  position: relative;
  margin: 0;
  padding-left: 25px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.du-popup__benefits li::before {
  position: absolute;
  top: 0.05em;
  left: 0;
  color: var(--du-red);
  content: "✓";
  font-size: 15px;
  font-weight: 800;
}

.du-popup__form-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 48px 42px 34px;
  overflow: auto;
  background: var(--du-soft);
}

.du-popup__form-copy {
  padding-right: 34px;
}

.du-popup__form-copy h3,
.du-popup__success h3 {
  margin: 0;
  color: var(--du-black);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

.du-popup__form-copy p,
.du-popup__success p {
  margin: 9px 0 22px;
  color: var(--du-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.du-popup__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 14px;
}

.du-popup__field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.du-popup__field--wide,
.du-popup__submit,
.du-popup__privacy,
.du-popup__status {
  grid-column: 1 / -1;
}

.du-popup__field label {
  margin: 0;
  color: #343434;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.du-popup__field label span {
  color: var(--du-red);
}

.du-popup__field input,
.du-popup__field textarea {
  width: 100%;
  min-width: 0;
  margin: 0;
  color: var(--du-ink);
  background: var(--du-white);
  border: 1px solid var(--du-line);
  border-radius: 8px;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.du-popup__field input {
  height: 45px;
  padding: 0 13px;
}

.du-popup__field textarea {
  min-height: 78px;
  padding: 11px 13px;
  resize: vertical;
}

.du-popup__field input:hover,
.du-popup__field textarea:hover {
  border-color: #bdbdba;
}

.du-popup__field input[aria-invalid="true"],
.du-popup__field textarea[aria-invalid="true"] {
  border-color: var(--du-red);
  box-shadow: 0 0 0 3px rgba(252, 0, 0, 0.09);
}

.du-popup__submit {
  min-height: 48px;
  margin: 3px 0 0;
  padding: 11px 18px;
  color: var(--du-white);
  background: var(--du-red);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  transition: background-color 150ms ease, transform 150ms ease;
}

.du-popup__submit:hover {
  background: var(--du-red-dark);
  transform: translateY(-1px);
}

.du-popup__submit:disabled {
  cursor: wait;
  opacity: 0.66;
  transform: none;
}

.du-popup__privacy,
.du-popup__status {
  margin: 0;
  color: #767676;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.5;
}

.du-popup__privacy a {
  color: #4d4d4d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.du-popup__status {
  min-height: 16px;
  color: #b00000;
  font-size: 12px;
  font-weight: 700;
}

.du-popup__honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.du-popup__success {
  margin: auto;
  text-align: center;
}

.du-popup__success-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 21px;
  place-items: center;
  color: var(--du-white);
  background: var(--du-red);
  border-radius: 50%;
  box-shadow: 0 0 0 9px rgba(252, 0, 0, 0.1);
  font-size: 29px;
  font-weight: 800;
}

.du-popup__success button {
  padding: 11px 20px;
  color: var(--du-white);
  background: var(--du-black);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font: 700 13px/1.2 Montserrat, Arial, sans-serif;
}

.du-offer-tab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 15px 9px 11px;
  color: var(--du-white);
  background: var(--du-black);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  font: 700 12px/1.2 Montserrat, Arial, sans-serif;
}

.du-offer-tab span:first-child {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--du-gold);
  background: var(--du-red);
  border-radius: 50%;
}

.du-offer-tab[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .du-popup {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 12px);
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
    transform: translateY(26px);
  }

  .du-popup__shell {
    display: block;
    max-height: calc(100dvh - 12px);
    min-height: 0;
    overflow: auto;
  }

  .du-popup__close {
    position: fixed;
    top: 17px;
    right: 15px;
  }

  .du-popup__story {
    min-height: 0;
    padding: 25px 24px 27px;
  }

  .du-popup__brand {
    margin-bottom: 18px;
  }

  .du-popup__growth-mark {
    width: 225px;
    height: 54px;
    margin: 0 0 18px;
  }

  .du-popup__title {
    max-width: 17ch;
    padding-right: 25px;
    font-size: 29px;
  }

  .du-popup__description {
    margin: 14px 0 0;
    font-size: 13px;
  }

  .du-popup__benefits {
    display: none;
  }

  .du-popup__form-panel {
    padding: 26px 20px max(25px, env(safe-area-inset-bottom));
    overflow: visible;
  }

  .du-popup__form-copy h3 {
    font-size: 22px;
  }

  .du-popup__form {
    grid-template-columns: 1fr;
  }

  .du-popup__field--wide,
  .du-popup__submit,
  .du-popup__privacy,
  .du-popup__status {
    grid-column: auto;
  }

  .du-offer-tab {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .du-popup__growth-mark {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .du-popup,
  .du-popup__close,
  .du-popup__submit {
    transition: none;
  }
}

