#promo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, visibility 0.4s;
    background: rgba(5, 10, 40, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

#promo-popup-overlay.promo-popup-visible {
    opacity: 1;
    visibility: visible;
}

#promo-popup-overlay.promo-popup-visible .promo-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.promo-modal {
    background: #fff;
    border-radius: 24px;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.promo-modal::-webkit-scrollbar {
    display: none;
}

.promo-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
}

.promo-popup-close:hover {
    background: rgba(251, 77, 0, 0.85);
    transform: rotate(90deg);
}

.promo-header {
    background: linear-gradient(150deg, #000a3e 0%, #0d2080 55%, #0047cc 100%);
    padding: 32px 32px 28px;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.promo-header.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.promo-header::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 120, 50, 0.28) 0%, transparent 65%);
    pointer-events: none;
}

.promo-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 149, 255, 0.2) 0%, transparent 65%);
    pointer-events: none;
}

.promo-logo_box {
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.promo-logo {
    height: 36px;
    width: auto;
}

.promo-photo_wrap {
    position: relative;
    z-index: 2;
    margin: 0 auto 4px;
    width: 190px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-photo_wrap::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(255, 150, 30, 0.35) 0%, transparent 65%);
    pointer-events: none;
}

.promo-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 12px 30px rgba(255, 140, 0, 0.55));
    animation: promo-float 3.5s ease-in-out infinite;
}

@keyframes promo-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.promo-main_title {
    position: relative;
    z-index: 2;
    margin-top: 8px;
}

.promo-line_one {
    display: block;
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1;
}

.promo-line_two {
    display: inline-block;
    background: linear-gradient(90deg, #0095ff, #67c8ff);
    border-radius: 40px;
    padding: 6px 24px;
    font-size: 17px;
    font-weight: 900;
    font-style: italic;
    color: #fff;
    letter-spacing: 0.5px;
    margin-top: 8px;
    transform: rotate(-2deg);
    box-shadow: 0 4px 18px rgba(0, 149, 255, 0.45);
}

.promo-body {
    padding: 26px 32px 32px;
}

.promo-subtitle {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    text-align: center;
    margin: 0 0 10px;
    line-height: 1.2;
}

.promo-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    text-align: center;
    margin: 0 0 24px;
}

.promo-ow_button {
    display: block;
    background: linear-gradient(135deg, #fb4d00 0%, #fb9700 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 16px;
    border-radius: 14px;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(251, 78, 0, 0.38);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    line-height: 1;
    box-sizing: border-box;
}

.promo-ow_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(251, 78, 0, 0.5);
}

.promo-ow_button:active {
    transform: translateY(0);
}

@media screen and (max-width: 540px) {
    #promo-popup-overlay {
        padding: 12px;
        align-items: center;
    }

    .promo-modal {
        max-width: 100%;
        max-height: calc(100dvh - 24px);
    }

    .promo-header {
        padding: 20px 20px 18px;
    }

    .promo-logo {
        height: 28px;
    }

    .promo-photo_wrap {
        width: 160px;
        height: 150px;
    }

    .promo-line_one {
        font-size: 22px;
    }

    .promo-line_two {
        font-size: 14px;
        padding: 5px 16px;
    }

    .promo-body {
        padding: 18px 20px 24px;
    }

    .promo-subtitle {
        font-size: 15px;
    }

    .promo-description {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .promo-ow_button {
        font-size: 13px;
        padding: 14px;
        letter-spacing: 1.5px;
    }

    .promo-popup-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 17px;
    }
}
