html.has-modal,
html.has-modal body {
  overflow: hidden;
}

.demo-modal {
  width: min(680px, calc(100vw - 32px));
  max-height: min(90dvh, 760px);
  padding: 0;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  box-shadow: 12px 12px 0 var(--red);
  overflow: auto;
}

.demo-modal::backdrop {
  background: rgba(11, 11, 11, 0.76);
}

.demo-modal__inner {
  position: relative;
  padding: 70px 58px 64px;
  text-align: center;
}

.demo-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 44px/1 Arial, sans-serif;
  cursor: pointer;
}

.demo-modal h2 {
  margin-inline: auto;
  max-width: 540px;
  padding-inline: 28px;
  font-size: clamp(48px, 7vw, 82px);
}

.demo-modal__prompt {
  margin: 42px 0 4px;
  color: var(--gray);
  font-size: 22px;
  line-height: 1.35;
}

.demo-modal__phone {
  display: inline-block;
  min-height: 48px;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.demo-modal__phone:hover {
  color: var(--red);
}

.demo-modal__tagline {
  margin: 12px 0 0;
  color: var(--gray);
  font-size: 22px;
  line-height: 1.35;
}

.demo-modal button:focus-visible,
.demo-modal a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px;
}

@media (max-width: 650px) {
  .demo-modal {
    box-shadow: 6px 6px 0 var(--red);
  }

  .demo-modal__inner {
    padding: 64px 26px 42px;
  }

  .demo-modal__close {
    top: 10px;
    right: 10px;
  }

  .demo-modal h2 {
    font-size: clamp(42px, 15vw, 62px);
  }

  .demo-modal__prompt,
  .demo-modal__tagline {
    font-size: 17px;
  }

  .demo-modal__phone {
    font-size: clamp(28px, 9vw, 38px);
  }
}
