:root {
    --services-dot-shadow: rgba(7, 120, 62, .22);
}

.service-card-overlay {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    height: 100%;
    isolation: isolate;
}

.services-overlay-grid {
    align-items: stretch;
}

.services-overlay-grid .service-card:nth-child(2),
.services-overlay-grid .service-card:nth-child(3) {
    transform: none;
}

.service-card-overlay-mask {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    padding: 24px;
    background: rgba(244, 247, 241, .42);
    backdrop-filter: blur(18px);
    transition: opacity .28s ease, visibility .28s ease, transform .28s ease;
    cursor: pointer;
}

.service-card-overlay.is-open .service-card-overlay-mask,
.service-card-overlay:hover .service-card-overlay-mask,
.service-card-overlay:focus-within .service-card-overlay-mask {
    opacity: 0;
    visibility: hidden;
    transform: scale(.98);
    pointer-events: none;
}

.service-overlay-dot {
    position: absolute;
    left: 50%;
    display: block;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 18px 34px var(--services-dot-shadow);
    transform: translate(-50%, -50%);
}

.service-overlay-dot-1 {
    width: 52px;
    height: 52px;
    top: 82%;
}

.service-overlay-dot-2 {
    width: 82px;
    height: 82px;
    top: 58%;
}

.service-overlay-dot-3 {
    width: 114px;
    height: 114px;
    top: 25%;
}

.services-dots-experience {
    display: grid;
    place-items: center;
    gap: 20px;
    align-self: center;
}

.services-dots-stage {
    position: relative;
    width: min(480px, 100%);
    aspect-ratio: 1.4 / 1;
    display: grid;
    place-items: center;
}

.services-dot-hotspot {
    position: absolute;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 26px 54px var(--services-dot-shadow);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    z-index: 1;
}

.services-dot-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.96);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(252, 253, 249, .96);
    border: 1px solid rgba(7, 120, 62, .14);
    box-shadow: 0 16px 26px rgba(8, 48, 27, .12);
    color: var(--accent-deep);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.services-dot-hotspot::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    background: rgba(7, 120, 62, .08);
    opacity: 0;
    transition: opacity .2s ease;
    z-index: -1;
}

.services-dot-hotspot:hover,
.services-dot-hotspot:focus-visible {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 32px 70px rgba(7, 120, 62, .28);
    filter: saturate(1.04);
    outline: none;
}

.services-dot-hotspot:hover .services-dot-label,
.services-dot-hotspot:focus-visible .services-dot-label,
.services-dot-hotspot:focus .services-dot-label {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.services-dot-hotspot:hover::after,
.services-dot-hotspot:focus-visible::after {
    opacity: 1;
}

.services-dot-hotspot-1 {
    width: 66px;
    height: 66px;
    left: 19%;
    top: 67%;
}

.services-dot-hotspot-2 {
    width: 98px;
    height: 98px;
    left: 49%;
    top: 47%;
}

.services-dot-hotspot-3 {
    width: 131px;
    height: 131px;
    left: 81%;
    top: 19%;
}

.services-dots-help {
    margin: 0;
    text-align: center;
    max-width: 34ch;
}

.services-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 85;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(10, 24, 16, .18);
    backdrop-filter: blur(8px);
}

.services-modal-backdrop.is-open {
    display: flex;
}

.services-modal-card {
    position: relative;
    width: min(640px, 100%);
    border-radius: 30px;
    border: 1px solid rgba(16, 32, 24, .1);
    background: rgba(252, 253, 249, .96);
    box-shadow: 0 30px 80px rgba(8, 48, 27, .16);
    padding: 34px;
}

.services-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(7, 120, 62, .12);
    color: var(--accent-deep);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 900px) {
    .services-overlay-grid {
        grid-template-columns: 1fr;
    }

    .service-overlay-dot-1 {
        top: 76%;
    }

    .service-overlay-dot-2 {
        top: 56%;
    }

    .service-overlay-dot-3 {
        top: 30%;
    }

    .services-dots-stage {
        width: min(360px, 100%);
    }

    .services-dot-hotspot-1 {
        width: 62px;
        height: 62px;
        left: 15%;
        top: 68%;
    }

    .services-dot-hotspot-2 {
        width: 92px;
        height: 92px;
        left: 47%;
        top: 45%;
    }

    .services-dot-hotspot-3 {
        width: 123px;
        height: 123px;
        left: 81%;
        top: 16%;
    }
}
