.promo-modal[hidden] {
    display: none !important;
}

.promo-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    padding: 50px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(0, 0, 0, .65);
    display: flex;
    box-sizing: border-box;
}

.promo-modal *, .promo-modal *::before, .promo-modal *::after {
    box-sizing: border-box;
}

.promo-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    align-items: center;
    isolation: isolate;
    aspect-ratio: var(--promo-desktop-ratio);
}

.promo-modal__background {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.promo-modal__background img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.promo-modal__content {
    width: 50%;
    padding: 30px;
    overflow-wrap: anywhere;
    color: #fff;
}

.promo-modal__text {
    white-space: pre-line;
}

.promo-modal__text p{
    margin-bottom: 18px;
}

.promo-modal__text > *:last-child{
    margin-bottom: 0px;;
}

.promo-modal__text--first {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.promo-modal__text--second {
    margin-top: 26px;
    font-size: 18px;
    line-height: 1.5;
}

.promo-modal__button {
    display: inline-block;
    margin-top: 28px;
    padding: 14px 24px;
    background: #5a9917;
    color: #fff;
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

.promo-modal__button:hover, .promo-modal__button:focus {
    background: #487c12;
    color: #fff;
    text-decoration: none;
}

.promo-modal__close {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 1;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font: 24px / 36px Arial, sans-serif;
    cursor: pointer;
    transition: opacity .2s ease;
}

.promo-modal__close:hover {
    opacity: .6;
}

.promo-modal__close:focus-visible, .promo-modal__button:focus-visible {
    outline: 3px solid #222;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .promo-modal {
        padding: 16px;
    }

    .promo-modal--no-mobile-picture {
        display: none;
    }

    .promo-modal__dialog {
        display: grid;
        grid-template-rows: 1fr 1fr;
        aspect-ratio: var(--promo-mobile-ratio);
        overflow: hidden; 
        max-width: 400px;
    }

    .promo-modal__background img {
        object-position: center bottom;
    }

    .promo-modal__content {
        grid-row: 1;
        width: 100%;
        padding: 28px 24px 28px;
        align-self: center;
        text-align: center;
    }

    .promo-modal__text--first {
        font-size: 24px;
    }

    .promo-modal__text--second {
        font-size: 16px;
        margin-top: 16px;
    }

}
