.info-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, calc(24 / var(--design-width) * 100vw), 2rem);
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.info-popup.is-open {
  visibility: visible;
  opacity: 1;
}

.info-popup__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgb(43 43 43 / 45%);
}

.info-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, clamp(18rem, calc(480 / var(--design-width) * 100vw), 30rem));
  max-height: calc(100dvh - 2rem);
  padding: clamp(2rem, calc(48 / var(--design-width) * 100vw), 3rem)
    clamp(1.5rem, calc(32 / var(--design-width) * 100vw), 2rem);
  overflow-y: auto;
  background-color: var(--color-bg);
  border-radius: clamp(1rem, calc(24 / var(--design-width) * 100vw), 1.5rem);
  box-shadow: 0 20px 48px rgb(43 43 43 / 16%);
  text-align: center;
}

.info-popup__close {
  position: absolute;
  top: clamp(0.75rem, calc(16 / var(--design-width) * 100vw), 1rem);
  right: clamp(0.75rem, calc(16 / var(--design-width) * 100vw), 1rem);
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2rem, calc(40 / var(--design-width) * 100vw), 2.5rem);
  height: clamp(2rem, calc(40 / var(--design-width) * 100vw), 2.5rem);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.info-popup__close:hover {
  opacity: 0.7;
}

.info-popup__logo {
  display: block;
  width: clamp(11rem, calc(240 / var(--design-width) * 100vw), 15rem);
  height: auto;
  margin-inline: auto;
}

.info-popup__title {
  margin: clamp(1.5rem, calc(36 / var(--design-width) * 100vw), 2.25rem) 0 0;
  font-size: clamp(1.125rem, calc(24 / var(--design-width) * 100vw), 1.5rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
}

.info-popup__text {
  margin: clamp(1.25rem, calc(28 / var(--design-width) * 100vw), 1.75rem) 0 0;
  font-size: clamp(0.875rem, calc(16 / var(--design-width) * 100vw), 1rem);
  font-weight: 400;
  line-height: 1.35;
  color: #434343;
}

.info-popup__text p {
  margin: 0;
}

.info-popup__block {
  margin-top: clamp(1.5rem, calc(36 / var(--design-width) * 100vw), 2.25rem);
  font-size: clamp(0.875rem, calc(16 / var(--design-width) * 100vw), 1rem);
  font-weight: 400;
  line-height: 1.35;
  color: #434343;
}

.info-popup__block p {
  margin: 0;
}

body.is-info-popup-open {
  overflow: hidden;
}
