body.sunon-homepage-popup-open {
    overflow: hidden;
}

.sunon-homepage-popup {
    position: fixed;
    inset: 0;
    z-index: 99998;
}

.sunon-homepage-popup[hidden] {
    display: none !important;
}

.sunon-homepage-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
}

.sunon-homepage-popup__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(320px, 48%) 1fr;
    align-items: stretch;
    width: min(1180px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.32);
}

.sunon-homepage-popup__media {
    min-height: 100%;
    background: #f2f4f7;
}

.sunon-homepage-popup__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sunon-homepage-popup__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: clamp(28px, 4vw, 72px);
}

.sunon-homepage-popup__content h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(30px, 3.2vw, 46px);
    line-height: 1.15;
}

.sunon-homepage-popup__subtitle {
    color: #4b5563;
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.7;
}

.sunon-homepage-popup__subtitle p {
    margin: 0 0 12px;
}

.sunon-homepage-popup__subtitle p:last-child {
    margin-bottom: 0;
}

.sunon-homepage-popup__actions {
    margin-top: 4px;
}

.sunon-homepage-popup__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 999px;
    background: #0f9d58;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.sunon-homepage-popup__button:hover,
.sunon-homepage-popup__button:focus {
    background: #0c7c45;
    color: #fff;
    transform: translateY(-1px);
}

.sunon-homepage-popup__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.06);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.sunon-homepage-popup__close::before,
.sunon-homepage-popup__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
}

.sunon-homepage-popup__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.sunon-homepage-popup__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.sunon-homepage-popup__close:hover,
.sunon-homepage-popup__close:focus {
    background: rgba(17, 24, 39, 0.12);
    transform: rotate(90deg);
}

.sunon-homepage-popup-trigger {
    position: fixed;
    top: 50%;
    right: 24px;
    z-index: 99997;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sunon-homepage-popup-trigger:hover,
.sunon-homepage-popup-trigger:focus {
    transform: translateY(calc(-50% - 2px));
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
}

.sunon-homepage-popup-trigger__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    overflow: hidden;
    border-radius: 999px;
    background: #f3f4f6;
}

.sunon-homepage-popup-trigger__inner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sunon-homepage-popup-trigger__text {
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

@media (max-width: 900px) {
    .sunon-homepage-popup__dialog {
        grid-template-columns: 1fr;
        width: min(620px, calc(100% - 24px));
        max-height: calc(100vh - 24px);
        margin: 12px auto;
        border-radius: 20px;
    }

    .sunon-homepage-popup__media {
        max-height: 280px;
    }

    .sunon-homepage-popup__content {
        gap: 16px;
        padding: 24px 20px 28px;
    }

    .sunon-homepage-popup__button {
        width: 100%;
    }

    .sunon-homepage-popup-trigger {
        right: 16px;
        width: 62px;
        height: 62px;
    }

    .sunon-homepage-popup-trigger__inner {
        width: 52px;
        height: 52px;
    }
}
