#tariffNoticeModal{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
}

#tariffNoticeModal.is-open{
  display: block;
}

/* затемнение */
#tariffNoticeModal .np-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}

/* окно */
#tariffNoticeModal .np-modal__dialog{
  position: relative;
  width: min(520px, calc(100% - 24px));
  margin: 12vh auto 0;
  background: #fff;
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}

/* крестик */
#tariffNoticeModal .np-modal__close{
  position: absolute;
  top: 12px;
  right: 12px;

  width: 36px;
  height: 36px;

  border: 0;
  border-radius: 10px;
  background: rgba(192,1,19,.08);
  color: #c00113;

  font-size: 22px;
  line-height: 36px;
  cursor: pointer;
}
#tariffNoticeModal .np-modal__close:hover{
  background: rgba(192,1,19,.14);
}

/* заголовок */
#tariffNoticeModal .np-modal__title{
  margin: 0 44px 8px 0;
  font-weight: 800;
  color: #c00113;
  font-size: 24px;
}

/* контент */
#tariffNoticeModal .np-modal__content p{
  margin: 0 0 10px;
  color: #111;
}
#tariffNoticeModal .np-modal__content ul{
  margin: 0;
  padding-left: 18px;
}
#tariffNoticeModal .np-modal__content li{
  margin: 7px 0;
  color: #222;
}

/* кнопки */
#tariffNoticeModal .np-modal__actions{
  display: flex;
  gap: 12px;
  justify-content: center; /* было flex-end — теперь по центру */
  margin-top: 18px;
  flex-wrap: wrap;
}

#tariffNoticeModal .np-modal__btn{
  min-width: 160px;
}

/* Отмена (вторичная) */
#tariffNoticeModal .np-modal__btn--secondary{
  background: #fff !important;
  color: #c00113 !important;
  border: 1px solid rgba(192,1,19,.35) !important;
  box-shadow: none !important;
}

/* мобилка */
@media (max-width: 480px){
  #tariffNoticeModal .np-modal__dialog{
    margin: 10vh auto 0;
    padding: 18px 16px 16px;
  }
  #tariffNoticeModal .np-modal__actions{
    justify-content: stretch;
  }
  #tariffNoticeModal .np-modal__btn{
    width: 100%;
    min-width: 0;
  }
}


