.hotpoint-section-wrap {
    position: relative;
    z-index: 2;
}

.hotpoint-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.hotpoint-figure-box {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hotpoint-figure {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.hotpoint-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* =========================================================
   HOTPOINTY
   animation: hotpointReveal 2.1s ease forwards; czas otwarcia hotpointa po załadowaniu
   animation-delay: 2.1s; opóźnienie pojawienia się dotów po załadowaniu strony
========================================================= */

.hotpoint-dot {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: rgba(239, 127, 26, 0.90);
    transform: translate(-50%, -50%) scale(0.98);
    cursor: pointer;
    z-index: 5;
    outline: none;
    opacity: 0;
    box-shadow:
        0 0 0 4px rgba(239, 127, 26, 0.18),
        0 0 14px rgba(239, 127, 26, 0.16);
    transition:
        transform 0.35s ease,
        background-color 0.35s ease,
        box-shadow 0.35s ease,
        opacity 0.6s ease;
    animation: hotpointReveal 2.1s ease forwards;
    animation-delay: 2.1s;
}

/* FALA 1 */
.hotpoint-dot::before,
.hotpoint-dot::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: none;
    opacity: 0;
}

/* wewnętrzna miękka fala */
.hotpoint-dot::before {
    border: 2px solid rgba(239, 127, 26, 0.26);
    animation:
        hotpointWaveOne 4.2s linear infinite,
        hotpointRingFade 1.8s ease forwards;
    animation-delay: 2.2s, 2.2s;
}

/* zewnętrzna słabsza fala */
.hotpoint-dot::after {
    border: 2px solid rgba(239, 127, 26, 0.14);
    animation:
        hotpointWaveTwo 4.2s linear infinite,
        hotpointRingFade 1.8s ease forwards;
    animation-delay: 3.0s, 2.2s;
}

/* po reveal przechodzimy w spokojny puls rdzenia */
.hotpoint-dot.is-ready {
    opacity: 1;
    animation: hotpointCoreBreath 4.2s ease-in-out infinite;
}

/* hover / focus / aktywny */
.hotpoint-dot:hover,
.hotpoint-dot:focus-visible,
.hotpoint-dot.is-active {
    opacity: 1;
    background: rgba(220, 35, 35, 0.97);
    transform: translate(-50%, -50%) scale(1.10);
    box-shadow:
        0 0 0 5px rgba(220, 35, 35, 0.22),
        0 0 18px rgba(220, 35, 35, 0.28);
}

/* czerwone fale bez skoku średnic */
.hotpoint-dot:hover::before,
.hotpoint-dot:focus-visible::before,
.hotpoint-dot.is-active::before {
    border-color: rgba(220, 35, 35, 0.24);
}

.hotpoint-dot:hover::after,
.hotpoint-dot:focus-visible::after,
.hotpoint-dot.is-active::after {
    border-color: rgba(220, 35, 35, 0.14);
}

/* =========================================================
   MODAL
========================================================= */

.hotpoint-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 9999;
    width: min(92vw, 640px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, calc(-50% + 18px));
    transition:
        opacity 0.32s ease,
        visibility 0.32s ease,
        transform 0.32s ease;
}

.hotpoint-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.hotpoint-modal-dialog {
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 24px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.18),
        0 8px 22px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hotpoint-modal-head {
    padding: 22px 26px 18px;
    background: rgba(255, 255, 255, 0.68);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.hotpoint-modal-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgb(239, 127, 26);
}

.hotpoint-modal-head h3 {
    margin: 0;
    font-size: 31px;
    line-height: 1.18;
    color: #222222;
}

.hotpoint-modal-body {
    padding: 22px 26px 14px;
}

.hotpoint-list {
    margin: 0;
    padding-left: 22px;
}

.hotpoint-list li {
    margin-bottom: 10px;
    color: #3e3e3e;
    line-height: 1.62;
    font-size: 17px;
}

.hotpoint-list li:last-child {
    margin-bottom: 0;
}

.hotpoint-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0 26px 22px;
}

.hotpoint-modal-close-btn {
    min-width: 122px;
    border: 0;
    border-radius: 12px;
    padding: 12px 20px;
    background: rgb(239, 127, 26);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(239, 127, 26, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.hotpoint-modal-close-btn:hover,
.hotpoint-modal-close-btn:focus-visible {
    background: rgb(220, 112, 16);
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(239, 127, 26, 0.28);
    outline: none;
}

/* =========================================================
   ANIMACJE
========================================================= */

@keyframes hotpointReveal {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.78);
        background: rgba(239, 127, 26, 0.05);
        box-shadow:
            0 0 0 2px rgba(239, 127, 26, 0.02),
            0 0 8px rgba(239, 127, 26, 0.02);
    }
    50% {
        opacity: 0.35;
        transform: translate(-50%, -50%) scale(0.88);
        background: rgba(239, 127, 26, 0.32);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.98);
        background: rgba(239, 127, 26, 0.90);
        box-shadow:
            0 0 0 4px rgba(239, 127, 26, 0.18),
            0 0 14px rgba(239, 127, 26, 0.16);
    }
}

@keyframes hotpointRingFade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes hotpointWaveOne {
    0% {
        transform: translate(-50%, -50%) scale(1.00);
        opacity: 0;
    }
    10% {
        opacity: 0.22;
    }
    55% {
        opacity: 0.08;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.55);
        opacity: 0;
    }
}

@keyframes hotpointWaveTwo {
    0% {
        transform: translate(-50%, -50%) scale(1.50);
        opacity: 0;
    }
    14% {
        opacity: 0.16;
    }
    58% {
        opacity: 0.06;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.55);
        opacity: 0;
    }
}

@keyframes hotpointCoreBreath {
    0% {
        transform: translate(-50%, -50%) scale(0.98);
        opacity: 0.84;
        background: rgba(239, 127, 26, 0.78);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.02);
        opacity: 1;
        background: rgba(239, 127, 26, 0.96);
    }
    100% {
        transform: translate(-50%, -50%) scale(0.98);
        opacity: 0.84;
        background: rgba(239, 127, 26, 0.78);
    }
}

/* =========================================================
   RESPONSYWNOŚĆ
========================================================= */

@media (max-width: 1199.98px) {
    .hotpoint-figure {
        max-width: 640px;
    }
}

@media (max-width: 991.98px) {
    .hotpoint-figure {
        max-width: 560px;
    }

    .hotpoint-modal {
        width: min(94vw, 620px);
    }

    .hotpoint-modal-head h3 {
        font-size: 27px;
    }

    .hotpoint-list li {
        font-size: 16px;
    }
}

@media (max-width: 767.98px) {
    .hotpoint-layout {
        margin-top: 0;
    }

    .hotpoint-figure {
        max-width: 430px;
    }

    .hotpoint-dot {
        width: 22px;
        height: 22px;
    }

    .hotpoint-modal {
        width: calc(100vw - 24px);
    }

    .hotpoint-modal-head {
        padding: 18px 18px 14px;
    }

    .hotpoint-modal-head h3 {
        font-size: 22px;
        line-height: 1.24;
    }

    .hotpoint-modal-body {
        padding: 18px 18px 10px;
    }

    .hotpoint-list {
        padding-left: 18px;
    }

    .hotpoint-list li {
        font-size: 15px;
        line-height: 1.55;
    }

    .hotpoint-modal-footer {
        padding: 0 18px 18px;
    }

    .hotpoint-modal-close-btn {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hotpoint-dot,
    .hotpoint-dot::before,
    .hotpoint-dot::after,
    .hotpoint-modal {
        animation: none !important;
        transition: none !important;
    }

    .hotpoint-dot,
    .hotpoint-dot.is-ready {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

body.hotpoint-modal-open {
    overflow: hidden;
}