.dhb-promo-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(13, 29, 40, 0.66);
  padding: 12px;
}

.dhb-promo-overlay:not([hidden]) {
  display: flex;
}

.dhb-promo {
  position: relative;
  width: 960px;
  height: 500px;
  max-width: calc(100vw - 80px);
  max-height: calc(100vh - 70px);
  max-height: calc(100dvh - 70px);
  background: #fbf8f2;
  border-radius: 10px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.dhb-promo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
}

.dhb-promo__visual {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #20394d;
}

.dhb-promo__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dhb-promo__slogan {
  position: absolute;
  left: 16px;
  top: 20px;
  max-width: 72%;
  padding: 14px 22px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  background: #ed451f;
  clip-path: polygon(
    1.5% 18%, 0% 8%, 6% 2%, 14% 7%, 22% 1%, 32% 6%, 42% 0%, 54% 5%,
    64% 1%, 74% 6%, 84% 2%, 93% 8%, 100% 4%, 98% 16%, 100% 28%, 97% 40%,
    100% 52%, 96% 64%, 100% 76%, 97% 88%, 92% 98%, 82% 94%, 72% 100%,
    60% 95%, 48% 100%, 36% 94%, 24% 100%, 12% 95%, 4% 100%, 0% 90%,
    3% 78%, 0% 66%, 4% 54%, 0% 42%, 3% 30%
  );
}

.dhb-promo__content {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 24px 20px 0;
  color: #20394d;
  background: #fffdf9;
  overflow-y: auto;
  scrollbar-width: none;
}

.dhb-promo__content::-webkit-scrollbar {
  display: none;
}

.dhb-promo__kicker,
.dhb-promo__title {
  padding-right: 40px;
}

.dhb-promo__kicker {
  margin: 0 0 8px;
  color: #666;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dhb-promo__title {
  margin: 0 0 8px;
  color: #1e3d56;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
}

.dhb-promo__subline {
  margin: 0 0 16px;
  color: #666;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dhb-promo__description {
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid #ed451f;
  color: #3f4d57;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-line;
}

.dhb-promo__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding: 20px 0 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.dhb-promo__related {
  display: inline-flex;
  align-items: baseline;
  align-self: flex-start;
  gap: 10px;
  flex-shrink: 0;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 3px solid #ed451f;
  background: #f7f3ec;
  color: #1e3d56 !important;
  text-decoration: none !important;
}

.dhb-promo__related:hover,
.dhb-promo__related:focus {
  background: #f1ebe1;
  color: #1e3d56 !important;
}

.dhb-promo__related-label {
  flex-shrink: 0;
  color: #666;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dhb-promo__related-title {
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.dhb-promo__related-title::after {
  content: " ›";
  font-weight: 700;
}

.dhb-promo__countdown {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 12px 8px;
  background: rgba(32, 57, 77, 0.88);
  color: #fff;
  text-align: center;
}

.dhb-promo__countdown-unit {
  min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.dhb-promo__countdown-unit:last-child {
  border-right: 0;
}

.dhb-promo__countdown-value {
  display: block;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.dhb-promo__countdown-label {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dhb-promo__price-block {
  min-width: 0;
}

.dhb-promo__price-old {
  margin: 0 0 4px;
  color: #888;
  line-height: 1;
}

.dhb-promo__price-old-value {
  padding: 0 4px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: line-through;
}

.dhb-promo__price {
  margin: 0;
  color: #1e3d56;
  line-height: 1;
}

.dhb-promo__price-prefix,
.dhb-promo__price-suffix {
  font-size: 14px;
  font-weight: 700;
}

.dhb-promo__price-value {
  padding: 0 6px;
  font-size: 32px;
  font-weight: 700;
}

.dhb-promo__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 48px;
  padding: 0 24px;
  box-sizing: border-box;
  border: 2px solid #ed451f;
  border-radius: 8px;
  background: #ed451f;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dhb-promo__cta:hover,
.dhb-promo__cta:focus {
  background: #fff;
  color: #ed451f !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(237, 69, 31, 0.2);
}

.dhb-promo__cta:focus-visible,
.dhb-promo__close:focus-visible {
  outline: 3px solid #1e3d56;
  outline-offset: 3px;
}

.dhb-promo__close {
  position: absolute;
  z-index: 2;
  right: 10px;
  top: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
  color: #111;
  font-size: 32px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 767px) {
  .dhb-promo {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
    height: min(620px, calc(100dvh - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    display: flex;
    flex-direction: column;
  }
  .dhb-promo__grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(130px, 40%) minmax(0, 1fr);
    overflow: hidden;
  }
  .dhb-promo__content {
    padding: 14px 14px 10px;
  }
  .dhb-promo__title {
    font-size: 22px;
  }
  .dhb-promo__subline {
    margin-bottom: 10px;
  }
  .dhb-promo__bottom {
    align-items: stretch;
    margin-top: 10px;
    padding: 8px 0 10px;
  }
  .dhb-promo__price-value {
    font-size: 26px;
  }
  .dhb-promo__cta {
    width: 100%;
    min-height: 44px;
  }
  .dhb-promo__related {
    margin: 0 0 4px;
    padding: 10px 12px;
  }
  .dhb-promo__description {
    display: none;
  }
  .dhb-promo__countdown-value {
    font-size: 22px;
  }
  .dhb-promo__close {
    right: 8px;
    top: 8px;
  }
}
