.stats-photo__media {
    position: relative;
}

.stats-photo__media picture {
    display: block;
}

.stats-photo__img {
    display: block;
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 20px;
}

.stats-photo__card {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: var(--color-white);
    border-radius: 18px;
    text-align: center;
}

.stats-photo__item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stats-photo__item:not(:last-child) {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 49, 99, 0.2);
}

.stats-photo__value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.17;
    color: var(--color-turquoise);
}

.stats-photo__unit {
    font-size: 24px;
    font-weight: 400;
}

.stats-photo__label {
    font-size: 14px;
    line-height: 1.15;
    color: var(--color-text-green);
}

@media (min-width: 768px) {
    .stats-photo__img {
        height: 392px;
    }

    .stats-photo__card {
        left: auto;
        top: 10px;
        width: 240px;
        gap: 20px;
        justify-content: center;
    }
}

@media (min-width: 1200px) {
    .stats-photo__img {
        height: 574px;
    }

    .stats-photo__card {
        width: 460px;
        padding: 40px 30px;
        gap: 30px;
    }

    .stats-photo__item {
        gap: 8px;
    }

    .stats-photo__item:not(:last-child) {
        padding-bottom: 30px;
    }

    .stats-photo__value {
        gap: 12px;
        font-size: 80px;
        line-height: 1;
    }

    .stats-photo__unit {
        font-size: 60px;
    }

    .stats-photo__label {
        font-size: 20px;
    }
}

@media (min-width: 1440px) {
    .stats-photo__card {
        width: 480px;
        padding: 40px;
    }
}
