.cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cards--small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}

.cards--profile {
    display: flex;
    flex-direction: column;
}

.cards__item {
    background: #f7f7f7;
    padding: 18px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cards__item.cards__item--black {
    background: var(--color-black);
    padding: 30px 25px;
}

.cards__text-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cards__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-light-black);
    margin: 0;
    display: flex;
    align-items: center;

    span {
        margin-left: 5px;
        padding: 2px 4px;
        background: var(--color-black);
        color: var(--color-white);
        font-size: 9px;
        font-weight: 600;
        border-radius: 4px;
    }
}

.cards__item.cards__item--black {
    .cards__title {
        color: var(--color-white);
    }

    .cards__text {
        color: var(--color-light-gray);
    }
}

.cards__text {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-gray);
    margin: 0;
}

.cards__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    min-width: 45px;
    height: 45px;
    min-height: 45px;
    border-radius: 16px;
    background: var(--color-light-gray);
    color: var(--color-gray);
    /*font-size: 34px;*/
    margin-left: auto;

    svg {
        width: 55%;
        height: 55%;
    }
}

.cards--small .cards__title {
    font-size: 15px;
}

.cards--small .cards__text {
    font-size: 13px;
}

.cards__item--black .cards__icon {
    background: unset;
    padding: 0;
    border: unset;
    color: var(--color-white);
    /*font-size: 54px;*/

    svg {
        width: 100%;
        height: 100%;
    }
}

.card-profile {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 40px 25px;
    align-content: end;
    height: 100%;
}

.card-profile__avatar {
    border-radius: 28px;
    margin: 0 auto;

    width: 155px;
    min-width: 155px;
    max-width: 155px;
    height: 155px;
    min-height: 155px;
    max-height: 155px;
    object-fit: cover;
    object-position: center;
}

.card-profile__name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-light-black);
    margin: 20px 0 8px;
}

.card-profile__email {
    font-size: 14px;
    font-weight: 300;
    color: var(--color-gray);
    margin: 0;
}

.card-profile__center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: auto 0;
}

.card-profile__title {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}


.dashboard-cards {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
    align-content: start;
}

.dashboard-card {
    background: var(--color-light-gray-background);
    border-radius: 16px;
    display: block;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-light-gray);
}

.dashboard-content {
    display: flex;
    align-items: center;
    padding: 32px 20px;
}

.dashboard-header__icon {
    width: 45px;
    height: 45px;
    background: var(--color-light-gray);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-light-black);
    margin-left: auto;

    svg {
        font-size: 24px;
    }
}

.dashboard-header__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-black);
    margin: 0 0 3px;
}

.dashboard-header__text {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: var(--color-gray);
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.dashboard-chart__item {
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.dashboard-chart {
    display: flex;
    flex-direction: column;
    align-items: center;

    canvas {
        height: 80px !important;
    }
}

.dashboard-legend {
    display: flex;
    flex-direction: column;
    /*align-items: center;*/
    gap: 6px;
    font-size: 13px;
    color: var(--color-black);
    margin-left: 14px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    align-items: center;
    margin-right: 6px;
}

.dot--completed {
    background: var(--color-primary);
}

.dot--not-completed {
    background: var(--color-primary-hover);
}
