.catalog-blocks {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.catalog-blocks__container {
    padding-top: 11px;
    margin-bottom: 62px;
}

.catalog-blocks__title,
h1.main-title {
    color: #101010;
    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 64px */
    margin-bottom: 42px;
}

#catalog-popular {
    .swiper-slide {
        width: 258px;
    }
}

.catalog-blocks__item {
    height: 258px;
    border-radius: 5px;
    padding: 20px;

    color: var(--Black, #101010);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 114%;

    display: flex;
    flex-direction: column;
}

.catalog-blocks__item span {
    margin-top: auto;
    color: inherit;
}

.catalog-blocks__icon {
    width: 46px;
    img {
        object-fit: cover;
        object-position: center;
        max-width: 100%;
        width: 100%;
    }
}

.catalog-blocks__item_photo {
    padding: 0;
    min-height: 100%;
    grid-column: span 2;
    grid-row: span 2;
    position: relative;

    span {
        position: absolute;
        margin-top: auto;
        color: var(--White, #fff);
        bottom: 20px;
        left: 20px;
    }
}

.catalog-blocks__item_photo img {
    object-fit: cover;
    object-position: center;
    height: 100%;
    border-radius: 5px;
}

.catalog-blocks__item_white {
    background: var(--White, #fff);
}

.catalog-blocks__item_blue {
    background: var(--blue-gradient, #1c86ff);
    color: var(--White, #fff);
}

.catalog-blocks__item_photo:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.catalog-blocks__item_white:nth-child(2) {
    grid-column: span 2;
}

.catalog-blocks__item_white:nth-child(7) {
    grid-column: span 2;
}

.catalog-blocks__item_white:nth-child(10) {
    grid-column: span 2;
}

.catalog-blocks__item_photo:nth-child(11) {
    grid-column: span 2;
    grid-row: span 2;
}

.catalog-blocks__item_white:nth-child(12) {
    grid-column: span 2;
}

.catalog-blocks__item_photo:nth-child(15) {
    grid-column: span 2;
    grid-row: span 2;
}

.catalog-blocks__item_white:nth-child(16) {
    grid-column: span 2;
}

.catalog-blocks__item_white:nth-child(21) {
    grid-column: span 2;
}

.main__new-items_catalog {
    margin-bottom: 92px;
}

@media (max-width: 1440px) {
    .catalog-blocks {
        gap: 9px;
    }
    .catalog-blocks__item {
        height: 216px;
    }

    .main__new-items_catalog {
        margin-bottom: 6px;
    }
}

@media (max-width: 1340px) {
    .main__new-items_catalog {
        margin-bottom: 104px;
    }
}

@media (max-width: 1340px) {
    .catalog-blocks {
        grid-template-columns: repeat(4, 1fr);
    }

    .catalog-blocks__title {
        font-size: 48px;
        margin-bottom: 58px;
    }

    .catalog-blocks__item {
        height: 235px;
    }

    .catalog-blocks__item_white:nth-child(7) {
        grid-row: 3;
        grid-column: 1 / span 2;
    }

    .catalog-blocks__item_photo:nth-child(11) {
        grid-row: 4 / span 2;
        grid-column: 3 / span 2;
    }

    .catalog-blocks__item:nth-child(19) {
        grid-row: 8;
        grid-column: 3;
    }

    .catalog-blocks__item:nth-child(20) {
        grid-row: 8;
        grid-column: 4;
    }

    .catalog-blocks__container {
        margin-bottom: 72px;
    }
}

@media (max-width: 964px) {
    .catalog-blocks__item {
        font-size: 14px;
    }

    .catalog-blocks__container {
        margin-bottom: 45px;
    }

    .main__new-items_catalog {
        margin-bottom: 56px;
    }
}

@media (max-width: 768px) {
    .catalog-blocks__title {
        font-size: 32px;
        margin-bottom: 28px;
    }

    .catalog-blocks {
        gap: 8px;
    }

    .catalog-blocks__item {
        height: 170px;
        padding: 11px;
    }

    .catalog-blocks__item_photo {
        span {
            bottom: 11px;
            left: 11px;
        }
    }

    .catalog-blocks__item_photo {
        padding: 0;
    }

    .catalog-blocks__icon {
        width: 40px;
        img {
            max-width: 100%;
        }
    }
}

@media (max-width: 650px) {
    .catalog-blocks__item {
        height: 168px;
        font-size: 12px;
    }

    .selected-item__sections-list {
        flex-wrap: wrap;
    }

    .catalog-blocks__title {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .catalog-blocks {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-blocks__item_photo:nth-child(1) {
        grid-row: 1 / span 2;
        grid-column: 1 / span 2;
    }

    .catalog-blocks__item:nth-child(3) {
        grid-row: 4;
        grid-column: 1;
    }

    .catalog-blocks__item:nth-child(4) {
        grid-row: 4;
        grid-column: 2;
    }

    .catalog-blocks__item:nth-child(8) {
        grid-row: 5;
        grid-column: 1;
    }

    .catalog-blocks__item:nth-child(9) {
        grid-row: 5;
        grid-column: 2;
    }

    .catalog-blocks__item_white:nth-child(10) {
        grid-row: 6;
        grid-column: span 2;
    }

    .catalog-blocks__item_photo:nth-child(11) {
        grid-row: 7 / span 2;
        grid-column: 1 / span 2;
    }

    .catalog-blocks__item_white:nth-child(12) {
        grid-column: 1 / span 2;
    }

    .catalog-blocks__item:nth-child(13) {
        grid-row: 10;
        grid-column: 1;
    }

    .catalog-blocks__item:nth-child(14) {
        grid-row: 10;
        grid-column: 2;
    }

    .catalog-blocks__item_photo:nth-child(15) {
        grid-row: 11 / span 2;
        grid-column: 1 / span 2;
    }

    .catalog-blocks__item_white:nth-child(16) {
        grid-row: 13;
        grid-column: 1 / span 2;
    }

    .catalog-blocks__item:nth-child(19) {
        grid-row: 14;
        grid-column: 1;
    }

    .catalog-blocks__item:nth-child(20) {
        grid-row: 14;
        grid-column: 2;
    }

    .catalog-blocks__item:nth-child(17) {
        grid-row: 15;
        grid-column: 1;
    }

    .catalog-blocks__item:nth-child(18) {
        grid-row: 15;
        grid-column: 2;
    }

    .catalog-blocks__item_white:nth-child(2) {
        grid-row: 3;
        grid-column: 1 / span 2;
    }

    .catalog-blocks__item_white:nth-child(7),
    .catalog-blocks__item:nth-child(5),
    .catalog-blocks__item:nth-child(6) {
        display: none;
    }

    .catalog-blocks__item_white:nth-child(21) {
        grid-row: 16;
        grid-column: 1 / span 2;
    }

    .footer__companies {
        flex-wrap: wrap;
        width: 100%;
        display: flex;
        justify-content: space-around;
    }
}
