body.modal-open { overflow: hidden; }

.registration-modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: none;
  place-items: center;
  padding: 14px;
  background: #121216b8;
  backdrop-filter: blur(3px);
}

.registration-modal.is-open,
.registration-modal:target { display: grid; }

.modal__card {
  width: min(620px, 100%);
  max-height: calc(100dvh - 28px);
  overflow: auto;
  padding: 26px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 22px 75px #0008;
}

.modal__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal__close { display: grid; place-items: center; width: 38px; height: 38px; margin: -8px -8px 0 12px; border-radius: 50%; background: #eee; color: #2a2a2d; font-size: 1.65rem; line-height: 1; text-decoration: none; text-align: center; }
.modal__close:hover, .modal__close:focus-visible { background: #d8d8dc; }
