body.myfitg-homepage .home-statistics {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(100%, 820px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin: 4px auto 12px;
    direction: rtl;
    perspective: 900px;
}

body.myfitg-homepage .home-stat-card {
    --stat-top: #25b8ee;
    --stat-bottom: #0874ba;
    position: relative;
    isolation: isolate;
    display: grid;
    min-width: 0;
    min-height: 92px;
    align-content: center;
    justify-items: center;
    gap: 2px;
    overflow: hidden;
    padding: 10px 8px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 19px;
    background:
        radial-gradient(circle at 14% 8%, rgba(255, 255, 255, .44), transparent 35%),
        linear-gradient(145deg, var(--stat-top), var(--stat-bottom));
    box-shadow:
        0 12px 0 rgba(5, 46, 89, .16),
        0 17px 26px rgba(4, 35, 76, .25),
        inset 0 2px 0 rgba(255, 255, 255, .42),
        inset 0 -5px 10px rgba(2, 30, 72, .16);
    color: #fff;
    text-align: center;
    transform: translateY(-3px) rotateX(3deg);
    transition: transform .22s ease, box-shadow .22s ease;
}

body.myfitg-homepage .home-stat-card::after {
    position: absolute;
    z-index: -1;
    right: -22px;
    bottom: -38px;
    width: 105px;
    height: 105px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    content: "";
}

body.myfitg-homepage .home-stat-card--subscribers {
    --stat-top: #b46aff;
    --stat-bottom: #6d42d8;
}

body.myfitg-homepage .home-stat-card--institutions {
    --stat-top: #ffbd4a;
    --stat-bottom: #ee7b25;
}

body.myfitg-homepage .home-stat-card:hover {
    box-shadow:
        0 7px 0 rgba(5, 46, 89, .16),
        0 21px 30px rgba(4, 35, 76, .3),
        inset 0 2px 0 rgba(255, 255, 255, .48),
        inset 0 -5px 10px rgba(2, 30, 72, .16);
    transform: translateY(-8px) rotateX(0);
}

body.myfitg-homepage .home-stat-icon {
    font-size: 20px;
    line-height: 1;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .15));
}

body.myfitg-homepage .home-stat-number {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(21px, 2.4vw, 30px);
    font-weight: 900;
    line-height: 1.12;
    text-shadow: 0 2px 5px rgba(0, 0, 0, .18);
}

body.myfitg-homepage .home-stat-label {
    max-width: 100%;
    font-size: clamp(10px, 1.15vw, 13px);
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    body.myfitg-homepage .home-statistics {
        gap: 8px;
        margin: 0 auto 10px;
    }

    body.myfitg-homepage .home-stat-card {
        min-height: 78px;
        padding: 7px 5px;
        border-radius: 15px;
        box-shadow:
            0 7px 0 rgba(5, 46, 89, .16),
            0 11px 18px rgba(4, 35, 76, .22),
            inset 0 2px 0 rgba(255, 255, 255, .42),
            inset 0 -4px 8px rgba(2, 30, 72, .16);
        transform: translateY(-2px);
    }

    body.myfitg-homepage .home-stat-card:hover {
        transform: translateY(-4px);
    }

    body.myfitg-homepage .home-stat-icon {
        font-size: 17px;
    }

    body.myfitg-homepage .home-stat-number {
        font-size: clamp(17px, 5vw, 23px);
    }

    body.myfitg-homepage .home-stat-label {
        font-size: clamp(9px, 2.8vw, 11px);
    }
}

@media (max-width: 360px) {
    body.myfitg-homepage .home-statistics {
        gap: 6px;
    }

    body.myfitg-homepage .home-stat-card {
        min-height: 72px;
        padding-inline: 3px;
        border-radius: 13px;
    }

    body.myfitg-homepage .home-stat-number {
        font-size: 17px;
    }

    body.myfitg-homepage .home-stat-label {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.myfitg-homepage .home-stat-card {
        transition: none;
        transform: none;
    }

    body.myfitg-homepage .home-stat-card:hover {
        transform: none;
    }
}
