.promotion-popup {
  width: min(860px, calc(100% - 32px));
  max-width: none;
  max-height: min(620px, calc(100% - 32px));
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #233c46;
  box-shadow: 0 28px 90px rgb(8 31 43 / 38%);
}

.promotion-popup[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  animation: promotion-popup-enter 240ms ease-out both;
}

.promotion-popup::backdrop {
  background: rgb(8 31 43 / 66%);
  backdrop-filter: blur(5px);
}

.promotion-popup-image-wrap {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(145deg, #1d6c89, #55bbb1 58%, #b9d83b);
}

.promotion-popup-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.promotion-popup-image-label {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 5px;
  background: #fff;
  color: #123c58;
  font-size: 12px;
  font-weight: 800;
}

.promotion-popup-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 42px 36px 32px;
}

.promotion-popup-kicker {
  margin: 0 0 12px;
  color: #187b83;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.promotion-popup-offer {
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 4px;
  background: linear-gradient(100deg, #eff8c9, #ffe5d9);
  color: #536b13;
  font-size: 15px;
  font-weight: 800;
}

.promotion-popup-content h2 {
  margin: 0 0 12px;
  color: #123c58;
  font-family: "Lato", sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
}

.promotion-popup-description {
  margin: 0;
  color: #526b73;
  font-size: 15px;
  line-height: 1.6;
}

.promotion-popup-dates {
  margin: 18px 0 0;
  color: #187b83;
  font-size: 12px;
  font-weight: 700;
}

.promotion-popup-actions {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #dce8e8;
}

.promotion-popup-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 5px;
  background: linear-gradient(100deg, #1d6c89, #168b88);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.promotion-popup-link:hover,
.promotion-popup-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 7px 16px rgb(29 108 137 / 25%);
  color: #fff;
}

.promotion-popup-navigation {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #526b73;
  font-size: 12px;
  font-weight: 700;
}

.promotion-popup-navigation button,
.promotion-popup-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #cbdcde;
  border-radius: 50%;
  background: #fff;
  color: #123c58;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.promotion-popup-navigation button:hover,
.promotion-popup-navigation button:focus-visible {
  border-color: #1d6c89;
  background: #1d6c89;
  color: #fff;
}

.promotion-popup-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  border-color: rgb(255 255 255 / 60%);
  box-shadow: 0 3px 12px rgb(8 31 43 / 20%);
}

.promotion-popup-close:hover,
.promotion-popup-close:focus-visible {
  border-color: #e8755f;
  background: #e8755f;
  color: #fff;
}

.promotion-popup-trigger {
  position: fixed;
  z-index: 1000;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(110deg, #123c58, #168b88);
  color: #fff;
  box-shadow: 0 8px 24px rgb(8 31 43 / 24%);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  animation: promotion-trigger-enter 350ms ease-out both;
}

.promotion-popup-trigger[hidden] {
  display: none;
}

.promotion-popup-count {
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: #b9d83b;
  color: #26370a;
  font-size: 11px;
}

@keyframes promotion-popup-enter {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes promotion-trigger-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 680px) {
  .promotion-popup {
    width: calc(100% - 24px);
    max-height: calc(100% - 24px);
    overflow-y: auto;
    border-radius: 10px;
  }

  .promotion-popup[open] {
    grid-template-columns: minmax(0, 1fr);
  }

  .promotion-popup-image-wrap {
    min-height: 0;
    height: 220px;
    border-radius: 10px 10px 0 0;
  }

  .promotion-popup-image {
    min-height: 0;
  }

  .promotion-popup-content {
    padding: 25px 22px 22px;
  }

  .promotion-popup-content h2 {
    font-size: 25px;
  }

  .promotion-popup-actions {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 18px;
    padding-top: 14px;
  }

  .promotion-popup-trigger {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promotion-popup[open],
  .promotion-popup-trigger {
    animation: none;
  }

  .promotion-popup-link,
  .promotion-popup-navigation button,
  .promotion-popup-close {
    transition: none;
  }
}