.lp-popup {
    --lp-overlay: rgba(0, 0, 0, 0.62);
    --lp-bg: #f5eee6;
    --lp-text: #111827;
    --lp-title: #af9067;
    --lp-button-bg: #af9067;
    --lp-button-text: #ffffff;
    --lp-close: #222222;

    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--lp-text);
    font-family: inherit;
}

.lp-popup.is-visible {
    display: flex;
}

.lp-popup__overlay {
    position: absolute;
    inset: 0;
    background: var(--lp-overlay);
}

.lp-popup__dialog {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: var(--lp-bg);
    border-radius: 18px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
    transform: translateY(8px) scale(0.98);
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
}

.lp-popup.is-visible .lp-popup__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.lp-popup__close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--lp-close);
    font-size: 30px;
    line-height: 34px;
    cursor: pointer;
}

.lp-popup__image-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: rgba(0, 0, 0, 0.04);
}

.lp-popup__image {
    display: block;
    width: 100%;
    height: auto;
}

.lp-popup__content {
    padding: 28px;
    text-align: center;
}

.lp-popup__title {
    margin: 0 0 12px;
    color: var(--lp-title);
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.12;
    font-weight: 800;
}

.lp-popup__text {
    margin: 0 auto 22px;
    color: var(--lp-text);
    font-size: 16px;
    line-height: 1.55;
}

.lp-popup__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--lp-button-bg);
    color: var(--lp-button-text) !important;
    text-decoration: none !important;
    font-weight: 700;
    line-height: 1.2;
    transition: transform 150ms ease, filter 150ms ease;
}

.lp-popup__button:hover,
.lp-popup__button:focus {
    color: var(--lp-button-text) !important;
    filter: brightness(0.94);
    transform: translateY(-1px);
}

body.lp-popup-open {
    overflow: hidden;
}

@media (max-width: 575px) {
    .lp-popup {
        padding: 14px;
    }

    .lp-popup__content {
        padding: 22px 18px;
    }

    .lp-popup__button {
        width: 100%;
    }
}
