.bono-promo-banner {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
}

.bono-promo-banner.is-visible {
  opacity: 1;
  visibility: visible;
}

.bono-promo-banner__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 18, .42);
  backdrop-filter: blur(2px);
}

.bono-promo-banner__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 28px 80px rgba(17, 20, 18, .28);
}

.bono-promo-banner__close {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: rgba(31, 33, 29, .42);
  font-size: 34px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.bono-promo-banner__close:hover,
.bono-promo-banner__close:focus-visible {
  color: #1f211d;
  outline: none;
}

.bono-promo-banner__content {
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(360px, 1.08fr);
  min-height: 520px;
}

.bono-promo-banner__form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 72px) clamp(30px, 4vw, 56px);
  color: #1f211d;
}

.bono-promo-banner__title {
  max-width: 420px;
  margin: 0 auto 22px;
  color: #151515;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
}

.bono-promo-banner__desc {
  max-width: 390px;
  margin: 0 auto 34px;
  color: #73736d;
  font-size: 18px;
  line-height: 1.45;
  text-align: center;
}

.bono-promo-banner__notice {
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.35;
}

.bono-promo-banner__notice.is-success {
  border-color: #c8e5cd;
  background: #edf8ef;
  color: #1f5e2d;
}

.bono-promo-banner__notice.is-error {
  border-color: #f2c6c6;
  background: #fff0f0;
  color: #7b2222;
}

.bono-promo-banner__notice + .bono-promo-banner__form {
  margin-top: 0;
}

.bono-promo-banner__form {
  display: grid;
  gap: 14px;
}

.bono-promo-banner__field {
  display: block;
  margin: 0;
}

.bono-promo-banner__field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.bono-promo-banner__field input {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid #d5d5d0;
  border-radius: 0;
  background: transparent;
  color: #1f211d;
  padding: 0 6px;
  font-size: 16px;
  outline: none;
}

.bono-promo-banner__field input:focus {
  border-color: #1f211d;
}

.bono-promo-banner__submit {
  width: 100%;
  min-height: 56px;
  margin-top: 14px;
  border: 1px solid #ed375d;
  border-radius: 4px;
  background: #ed375d;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.bono-promo-banner__submit:hover,
.bono-promo-banner__submit:focus-visible {
  border-color: #d92e51;
  background: #d92e51;
  outline: none;
}

.bono-promo-banner__consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 14px 0 0;
  color: #8a8a83;
  font-size: 13px;
  line-height: 1.35;
}

.bono-promo-banner__consent input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #ed375d;
}

.bono-promo-banner__visual-side {
  position: relative;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
  overflow: hidden;
  background:
    linear-gradient(rgba(244, 245, 243, .78), rgba(244, 245, 243, .78)),
    radial-gradient(circle at 16% 76%, rgba(135, 149, 128, .26) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 26%, rgba(135, 149, 128, .22) 0 1px, transparent 2px),
    linear-gradient(135deg, #f6f7f5, #e7eae6);
}

.bono-promo-banner__visual-side::before,
.bono-promo-banner__visual-side::after {
  content: "";
  position: absolute;
  width: 46%;
  height: 72%;
  border: 1px solid rgba(126, 139, 123, .22);
  border-top: 0;
  border-bottom: 0;
  opacity: .55;
  transform: rotate(-14deg);
}

.bono-promo-banner__visual-side::before {
  left: 5%;
  bottom: -12%;
}

.bono-promo-banner__visual-side::after {
  right: 2%;
  bottom: -8%;
  transform: rotate(12deg);
}

.bono-promo-banner__qr {
  position: relative;
  z-index: 1;
  width: min(44vw, 220px);
  aspect-ratio: 1;
  border: 14px solid #fff;
  background:
    conic-gradient(from 90deg, #111 25%, #fff 0 50%, #111 0 75%, #fff 0) 0 0 / 22px 22px,
    linear-gradient(#111 0 0) 22px 22px / 54px 54px no-repeat,
    linear-gradient(#111 0 0) calc(100% - 76px) 22px / 54px 54px no-repeat,
    linear-gradient(#111 0 0) 22px calc(100% - 76px) / 54px 54px no-repeat,
    #fff;
  box-shadow: 0 12px 34px rgba(31, 33, 29, .14);
}

.bono-promo-banner__tg {
  position: relative;
  z-index: 1;
  margin: 22px 0 4px;
  color: #111;
  font-size: clamp(22px, 2.5vw, 31px);
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.bono-promo-banner__tg-note {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #363832;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .bono-promo-banner {
    padding: 12px;
  }

  .bono-promo-banner__dialog {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .bono-promo-banner__content {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .bono-promo-banner__form-side {
    padding: 34px 22px 28px;
  }

  .bono-promo-banner__visual-side {
    min-height: 300px;
    padding: 32px 20px;
  }

  .bono-promo-banner__qr {
    width: 170px;
  }
}

@media (max-width: 420px) {
  .bono-promo-banner__title {
    font-size: 25px;
  }

  .bono-promo-banner__desc {
    margin-bottom: 18px;
    font-size: 15px;
  }

  .bono-promo-banner__field input,
  .bono-promo-banner__submit {
    min-height: 50px;
  }
}
