.popups {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;
  visibility: hidden;
  transition: 1s;
}
.popups__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 1s ease-out;
}
.popups__overflow {
  width: 100dvw;
  height: 100dvh;
  overflow: scroll;
  scrollbar-width: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.popups__window {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  max-width: 100dvw;
  max-height: 100dvh;
}
.popups__window-close {
  position: absolute;
  top: 48px;
  right: 32px;
  padding: 20px;
  transition: filter .25s ease-out;
  z-index: 20;
}
.popups__window-close:hover { 
  filter: brightness(1.2);
}
.popups__window-close img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.popups__window-image {
  display: flex;
  padding-bottom: 20px;
  transform: scale(0);
  transition: transform 1s ease-in;
}
.popups__window-image img {
  max-width: 98vw;
  max-height: 100vh;
  object-fit: contain;
}
.popups__window-button {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  transform: scale(0);
  transition: transform 1s ease-in;
}
.popups__window-button-btn {
  display: block;
  padding: 18px 32px;
  text-decoration: none;
  background: linear-gradient(to bottom, #fc0404, #c50101);
  box-shadow: 0 2px 4px rgba(0,1,1,0.4);
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  line-height: 20px;
  font-weight: bold;
  transition: filter .25s ease-out;
}
.popups__window-button a {
  color: #fff;
}
.popups__window-button-btn:hover { 
  filter: brightness(1.2);
}
@media (max-width: 550px) {
  .popups__window-close {
    top: 32px;
    right: 12px;
    padding: 12px;
  }
  .popups__window-button-btn {
    padding: 12px 24px;
    box-shadow: 0 2px 4px rgba(0,1,1,0.4);
  }
  .popups__window-image {
    padding-bottom: 32px;
  }
}
html:has(.popups.--appear) {
  overflow: hidden;
}
.popups.--appear {
  visibility: visible;
}
.popups.--appear .popups__bg {
  opacity: 1;
}
.popups.--appear .popups__window-image {
  transform: scale(1);
}
.popups.--appear .popups__window-button {
  transform: scale(1);
}
.popups.--hide {
  opacity: 0;
}