/* ====== MODAL SHELL (renamed ny -> bd) ====== */
.bd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 9999;
  overflow-y: auto;
}
.bd-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.bd-modal-content {
  position: relative;
  max-width: 800px;
  width: 100%;
  margin: 30px auto;
  animation: popupScale 0.35s ease;
}
@keyframes popupScale {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.bd-modal-close {
  position: absolute;
  top: 12px;
  right: 15px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ====== POPUP LAYOUT (renamed popup-ny-25 -> popup-bd-26) ====== */
.popup-bd-26 {
  width: 800px;
  padding: 50px 60px 0;
  box-sizing: border-box;
  background: url("/images/pages/certification/offers/bd/modal-bd-1-bg.png");
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 25px;
  background-size: cover;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.popup-bd-26 .left {
  width: 325px;
}
.popup-bd-26 .right {
  width: calc(100% - 325px);
      max-width: 345px;
}

.popup-bd-26 .title {
  color: #fff;
  font: 700 66px/66px "Montserrat", sans-serif;
}
.popup-bd-26 .subtitle {
  color: #fff;
  font:700 30px/42px "Montserrat", sans-serif;
    margin: 0 0 20px;
}

.popup-bd-26 .content {
   color: #fff;
  font:500 18px/25px "Montserrat", sans-serif;
}

.popup-bd-26 .message {
  color: #fff;
  font: 700 32px/42px "Montserrat";
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  margin-top: 0;
}
.popup-bd-26 .message span {
   font: 700 40px/42px "Montserrat";
}
.popup-bd-26 .message.visible {
  opacity: 1;
  transform: translateY(0);
}

.popup-bd-26 .hint {
  color: #fff;
  font: 500 18px/25px "Montserrat";
  margin-top: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.popup-bd-26 .hint.visible {
  opacity: 1;
  transform: translateY(0);
}

.popup-bd-26 .bd-pop-instruction {
  margin-top: 80px;
}

.popup-bd-26 .bd-pop-instruction div {
  color: #fff;
  font: 400 15px/19px "Montserrat";
}
.popup-bd-26 .btn-action {
  color: #0d1b31;
  width: 100%;
  font: 700 16px/60px "Montserrat";
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  background: #FFB327;
  margin-top: 20px;
  transition: 0.2s linear;
}
.popup-bd-26 .btn-action:hover:not(:disabled) {
  background: #e2980e;
}
.popup-bd-26 .btn-action:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  filter: brightness(0.98);
}
.popup-bd-26 .btn-action:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.popup-bd-26 .take-discount {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  display: none;
}
.popup-bd-26 .take-discount.visible {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.popup-bd-26 .hidden {
  opacity: 0;
  transform: translateY(0);
  display: none;
}

/* ====== BALLOON IMAGE + HOTSPOTS ====== */
.balloon-image {
  position: relative;
  width: 300px; /* под размер левой колонки */
  margin: 0 auto;
  user-select: none;
}
.balloon-image__img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

/* круговые кликабельные зоны */
.hotspot {
  position: absolute;
  left: calc(var(--cx) - var(--r));
  top: calc(var(--cy) - var(--r));
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
}
.hotspot:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

/* эффект "лопнуло": вспышка */
.pop-burst {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.2);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0 6px, transparent 7px),
    repeating-conic-gradient(rgba(255, 255, 255, 0) 0 10deg, rgba(255, 255, 255, 0.85) 10deg 12deg);
  -webkit-mask: radial-gradient(circle, #000 0 52%, transparent 70%);
  mask: radial-gradient(circle, #000 0 52%, transparent 70%);
  z-index: 3;
}
.pop-burst.is-on {
  animation: burst 0.35s ease-out forwards;
}
@keyframes burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.9);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.35);
  }
}

/* конфетти */
.pop-confetti {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.pop-confetti.is-on {
  opacity: 1;
}
.pop-confetti i {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 5px;
  height: 40px;
  border-radius: 2px;
  background: var(--pc, #fff);
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
}
.pop-confetti.is-on i {
  opacity: 1;
  animation: confettiFly 0.55s ease-out forwards;
}
.pop-confetti i:nth-child(1) {
  --dx: -70px;
  --dy: -45px;
  --rot: 220deg;
}
.pop-confetti i:nth-child(2) {
  --dx: 80px;
  --dy: -35px;
  --rot: -190deg;
}
.pop-confetti i:nth-child(3) {
  --dx: -30px;
  --dy: -85px;
  --rot: 140deg;
}
.pop-confetti i:nth-child(4) {
  --dx: 35px;
  --dy: -95px;
  --rot: -140deg;
}
.pop-confetti i:nth-child(5) {
  --dx: -95px;
  --dy: 10px;
  --rot: 260deg;
}
.pop-confetti i:nth-child(6) {
  --dx: 95px;
  --dy: 15px;
  --rot: -260deg;
}
.pop-confetti i:nth-child(7) {
  --dx: -55px;
  --dy: 55px;
  --rot: 200deg;
}
.pop-confetti i:nth-child(8) {
  --dx: 60px;
  --dy: 60px;
  --rot: -210deg;
}
.pop-confetti i:nth-child(9) {
  --dx: 0px;
  --dy: -110px;
  --rot: 180deg;
}
.pop-confetti i:nth-child(10) {
  --dx: 0px;
  --dy: 90px;
  --rot: -180deg;
}

@keyframes confettiFly {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(0.6);
  }
}

/* блокировка повторного выбора */
.popup-bd-26.is-locked .hotspot {
  pointer-events: none;
  cursor: default;
}

/* ====== Responsive ====== */
@media (max-width: 576px) {
  .popup-bd-26 {
    width: 95%;
    margin: 0 auto;
    padding: 40px;
  }
  .popup-bd-26 .right {
            width: 100%;
    margin: 0 auto;
  }
  .popup-bd-26 .left {
    margin: 0 auto;
    width: 100%;
    order:2;
  }
  .popup-bd-26 .subtitle {
    margin: 0 0 10px;
  }
  .popup-bd-26 .bd-pop-instruction {
    margin: 15px 0 25px;
}
  .balloon-image {
    width: 100%;
    max-width: 320px;
  }
  .bd-modal-close {
    right: 25px;
  }
  .popup-bd-26 .btn-action {
    margin: 20px 0;
  }
}
@media (max-width: 414px) {
  .popup-bd-26 {
        padding: 40px 20px;
    }
  .popup-bd-26 .title {
    font:
      700 40px/45px "Montserrat",
      sans-serif;
  }
  .popup-bd-26 .subtitle {
    font: 700 25px / 30px "Montserrat", sans-serif;
  }
}
