html.dmh-info-modal-open,
html.dmh-info-modal-open body {
  overflow: hidden !important;
}

.dmh-info-modal,
.dmh-info-modal * {
  font-family: "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI",
    Roboto, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dmh-info-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.dmh-info-modal.is-open {
  display: block;
}

.dmh-info-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.52);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.dmh-info-modal__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(960px, calc(100% - 22px));
  max-height: min(86vh, 900px);
  transform: translate(-50%, -50%) scale(0.985);
  overflow: hidden;

  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(
      120% 120% at 20% 0%,
      rgba(225, 29, 46, 0.18) 0%,
      rgba(0, 0, 0, 0) 55%
    ),
    linear-gradient(180deg, rgba(36, 37, 42, 0.96), rgba(20, 20, 24, 0.93));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.dmh-info-modal.is-open .dmh-info-modal__dialog {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.dmh-info-modal__head {
  position: relative;
  padding: 18px 58px 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.dmh-info-modal__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dmh-info-modal__logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(225, 29, 46, 0.18);
  animation: dmhLogoFloat 2.8s ease-in-out infinite;
  flex: 0 0 auto;
}
.dmh-info-modal__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.dmh-info-modal__logo span {
  font-weight: 900;
  color: #e11d2e;
  font-size: 22px;
}

@keyframes dmhLogoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.dmh-info-modal__title {
  font-size: 18px;
  font-weight: 900;
  color: #f3f4f6;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dmh-info-modal__subtitle {
  font-size: 13px;
  color: rgba(243, 244, 246, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* X всегда справа сверху */
.dmh-info-modal .dmh-info-modal__x {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;

  width: 38px !important;
  height: 38px !important;

  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.92) !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;

  cursor: pointer !important;
  z-index: 5 !important;

  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none !important;
  box-shadow: none !important;
}
.dmh-info-modal .dmh-info-modal__x::before,
.dmh-info-modal .dmh-info-modal__x::after {
  content: none !important;
}
.dmh-info-modal .dmh-info-modal__x span {
  font-size: 26px !important;
  line-height: 1 !important;
}

.dmh-info-modal__body {
  padding: 16px 18px;
  overflow: auto;
  max-height: calc(86vh - 150px);
  color: rgba(243, 244, 246, 0.92);
  font-size: 15.5px;
  line-height: 1.75;
}

/* чтобы любые картинки/блоки были норм */
.dmh-info-modal__body img,
.dmh-info-modal__body iframe,
.dmh-info-modal__body video {
  max-width: 100% !important;
  height: auto !important;
}

.dmh-info-modal__loading {
  padding: 22px 0;
  color: rgba(243, 244, 246, 0.72);
}

.dmh-info-modal__foot {
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.02);
}

.dmh-info-modal__btn {
  height: 40px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;

  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(243, 244, 246, 0.92) !important;

  font-weight: 800 !important;
  cursor: pointer !important;

  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none !important;
}

@media (max-width: 480px) {
  .dmh-info-modal__dialog {
    width: calc(100% - 14px);
    border-radius: 16px;
    max-height: 88vh;
  }
  .dmh-info-modal__head {
    padding: 16px 54px 12px 16px;
  }
  .dmh-info-modal__body {
    font-size: 15px;
  }
}
/* FIX: force readable text colors inside popup content */
.dmh-info-modal__body,
.dmh-info-modal__body * {
  color: rgba(243, 244, 246, 0.92) !important;
}

.dmh-info-modal__body :where(h1, h2, h3, h4, h5, h6) {
  color: #ffffff !important;
  font-weight: 900 !important;
}

.dmh-info-modal__body strong,
.dmh-info-modal__body b {
  color: #ffffff !important;
}

.dmh-info-modal__body a {
  color: #ff3b30 !important;
  border-bottom: 1px dashed rgba(255, 59, 48, 0.55) !important;
  text-decoration: none !important;
}

.dmh-info-modal__body code,
.dmh-info-modal__body pre {
  color: rgba(243, 244, 246, 0.92) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
}

.dmh-info-modal__body hr {
  border: 0 !important;
  height: 1px !important;
  background: rgba(255, 255, 255, 0.1) !important;
}
