.promo-popup[hidden] {
    display: none !important;
}

.promo-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.promo-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.promo-popup__content {
    position: relative;
    width: min(520px, 100%);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 65px rgba(0, 0, 0, 0.45);
    z-index: 1;
    animation: popupEntrance 280ms ease-out;
}

.promo-popup__image {
    width: 100%;
    height: auto;
    display: block;
}

.promo-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #000;
    font-size: 40px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.promo-popup__close:hover,
.promo-popup__close:focus-visible {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
}

@keyframes popupEntrance {
    from {
        transform: scale(0.94);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 575.98px) {
    .promo-popup {
        padding: 14px;
    }

    .promo-popup__content {
        width: 100%;
        max-width: 100%;
        border-radius: 10px;
    }

    .promo-popup__close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 22px;
    }
}

@media (min-width: 768px) {
    .promo-popup__content {
        width: min(460px, 90vw);
    }
}

@media (min-width: 1200px) {
    .promo-popup__content {
        width: min(420px, 80vw);
    }
}