.mini__categories {
    /* padding-top: 56px; */
    padding-bottom: 56px;

    .categories__wrap {
        display: flex;
        flex-wrap: wrap;
        column-gap: 20px;
        row-gap: 32px;
    }

    .categories__block {
        border-radius: 12px;
        background-color: var(--Gray-1, #fafafa);
        flex: 1 0 calc(calc(100% / 6) - 20px);
        position: relative;
        transition: background-color 0.3s ease;
		min-height: 104px;
    }

    .categories__block:nth-child(-n + 3) {
        flex: 1 0 calc(calc(100% / 4) + 20px);
    }

    .categories__block:hover {
        background-color: var(--Gray-2, #e5e5e6);
    }

    .categories__link {
        display: block;
        width: 100%;
        height: 100%;
        padding: 12px 12px;
    }

    .categories__title {
        color: var(--Base-Dark, #171717);
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 150%;
        letter-spacing: 0.2px;
    }

    .categories__image {
        position: absolute;
        bottom: 0;
        right: 24px;
        max-height: calc(100% - 10px);
        mix-blend-mode: darken;
    }
}

section.card__categories {
    padding-top: 20px;
    /* padding-bottom: 56px; */

    .categories__wrap {
        display: flex;
        flex-wrap: wrap;
        column-gap: 12px;
        row-gap: 16px;
    }

    .categories__block {
        flex: 1 0 calc(calc(100% / 6) - 20px);
        max-width: 408px;
    }

    .categories__image {
        width: 100%;
        object-fit: cover;
        aspect-ratio: 1/1;
        transition: border-radius 0.3s ease;
        border-radius: 12px;
        background-color: #fafafa;
        overflow: hidden;
    }

    .categories__link:hover .categories__image {
        border-radius: 22px;
    }

    .categories__title {
        color: var(--Base-Dark, #171717);
        font-family: Lato;
        font-size: 22px;
        font-style: normal;
        font-weight: 500;
        line-height: 150%;
        letter-spacing: 0.22px;
        margin-top: 12px;
        text-align: center;
        transition: color 0.3s ease;
    }

    .categories__link:hover .categories__title {
        color: var(--Dark-wine-Main, #45080d);
    }
}
.home__page .categories__wrap .categories__block {
    flex: 1 0 calc(calc(100% / 5) - 20px);
    max-width: 100%;
	overflow:hidden;
}
@media (max-width: 992px) {
    .mini__categories {
        padding-top: 44px;
        padding-bottom: 0;

        .section__header {
            h2 {
                font-size: 28px;
                font-weight: 500;
                line-height: 140%;
                letter-spacing: 0.56px;
            }
        }

        .categories__wrap {
            row-gap: 12px;
            column-gap: 12px;

            .categories__block {
                flex: 1 0 calc(calc(100% / 3) - 20px);
                &:nth-child(-n + 3) {
                    flex: 1 0 100%;
                }

                &:nth-child(n + 3) {
                    flex: 1 0 calc(calc(100% / 2) - 12px);

                    img {
                        max-width: 60%;
                        margin-right: -20px;
                    }
                }

                .categories__link {
                    padding: 16px;
                    box-sizing: border-box;
                }
            }
        }
    }

    section.card__categories {
        padding-top: 0;
        /* margin-top: 60px; */

        .section__header {
            margin-bottom: 24px;
        }
    }
}

@media (max-width: 600px) {
    section.card__categories {
        padding-top: 16px;
        .categories__wrap {
            column-gap: 12px;
            row-gap: 16px;

            .categories__block {
                flex: 1 0 calc(calc(100% / 3) - 20px);
                width: calc(calc(100% / 3) - 12px);
                max-width: 100%;

                .categories__title {
                    color: var(--Base-Dark, #171717);
                    font-size: 12px;
                    font-style: normal;
                    line-height: 100%;
                    letter-spacing: 0.12px;
                    margin-top: 8px;
                }

                .categories__image {
                    max-height: 116px;
                    width: auto;
                    margin: 0 auto;
                    border-radius: 8px;
                }
            }
        }
    }
}
