.info-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1999;
}

body.info-modal-open {
  overflow: hidden;
}

.info-modal.is-open {
  display: flex;
}

.info-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.info-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 920px);
  max-height: 90vh;
  overflow: auto;
  padding: 38px;
  border-radius: 18px;
  background: var(--white-color);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.info-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #f2f5f8;
  color: var(--primary-color);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.info-modal__back {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #f2f5f8;
  color: var(--primary-color);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.info-modal__back:hover {
  background: #e4ebf1;
  transform: translateX(-1px);
}

.info-modal__close:hover {
  background: #e4ebf1;
  transform: scale(1.02);
}

.info-modal__title {
  margin: 0 52px 20px 52px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4ebf1;
  color: var(--text-color);
  font-size: 1.35rem;
  color: var(--primary-color);
}

.info-modal__body {
  color: var(--text-color);
}

@media screen and (max-width: 640px) {
  .info-modal__dialog {
    padding: 24px 20px;
  }

  .info-modal__title {
    margin-left: 44px;
    margin-right: 44px;
  }
}
