.collections {
    margin-top: 50px;
}
.collection-slider {
    margin: 17px 0 0;
    padding: 0 0 20px;
}
.collections .collection-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    width: 280px;
    margin: 0 10px 0 0;
}
.collection-item-header {
    position: absolute;
    font-size: 22px;
    line-height: 24px;
    color: #fff;
    left: 20px;
    top: 24px;
}
.collection-item-img {
    object-fit: cover;
}
.collection-item-link {
    display: flex;
    align-items: flex-end;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.collection-item-link a {
    font-size: 16px;
    text-decoration: none;
    color: #fff;
    padding: 115px 164px 28px 20px;
    position: relative;
    display: inline-block;
}
.collection-item-link a::after {
    content: '';
    background: url('../img/icons/link-arrow.svg') center center no-repeat;
    background-size: cover;
    width: 6px;
    height: 9px;
    position: absolute;
    bottom: 31px;
    right: 150px;
}
.collection-show-all a {
    color:#535355;
    font-size: 16px;
    position: relative;
    margin: 0 10px 0 0;
}
.collection-show-all a::after {
    content: '';
    background: url('../img/icons/link-arrow-gray.svg') center center no-repeat;
    background-size: cover;
    width: 6px;
    height: 9px;
    position: absolute;
    right: -10px;
    bottom: calc(50% - 6px);
}
.collection-top {
    padding: 0 20px;
}
.collection-slider .slick-dots {
    bottom: -5%;
}
.colletion-bar {
    margin-top: 40px;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}
.colletion-bar a {
    display: block;
    padding: 8px;
    text-decoration: none;
    color: #535355;
    border: 1px solid #E5E5E5;
    border-radius: 3px;
    font-size: 13px;
    flex-grow:1;
    margin: 2px;
    text-align: center;
}
.collection-price-item {
    background-color: #F4F4F4;
    border-radius: 21px;
    margin: 0 5px;
    padding: 8px;
    width: 116px;
    text-align: center;
    margin-top: 20px;
}
.collection-price-item a {
    text-decoration: none;
    color:#535355
}

/* collections page */

.collections-wrapper {
    display: grid;
    gap: 10px;
    padding: 20px 20px 0;
}
.collection-slider a.collections-item {
    width: auto;
    margin: 0 5px;
}
a.collections-item {
    color: #fff;
    text-decoration: none;
    display: block;
    position: relative;
    border-radius: 4px;
    width: 100%;
    overflow: hidden;
}
.collections-item__title {
    color: #fff;
    font-size: 22px;
    line-height: 24px;
    position: absolute;
    left: 20px;
    top: 24px;
}
.collections-item__link {
    font-size: 16px;
    position: absolute;
    left: 20px;
    bottom: 28px;
}
.collections-item__link::after {
    content: '';
    background: url('../img/icons/link-arrow.svg') center center no-repeat;
    background-size: cover;
    width: 6px;
    height: 9px;
    position: absolute;
    bottom: calc(50% - 6px);
    right: -9px;
}
.collections-item__pic {
    object-fit: cover;
}

/* collections page */
.collections-gallery {
    margin-right: -20px;
}
.collections-gallery:before {
    content: '';
    background: linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0.00) 100%);
    
    position: absolute;
    right: 0;
    top: 0;

    width: 40px;
    height: 100%;
    z-index: 1;
}
.collections-gallery .slick-track {
    margin: 0 -10px;
}
.collections-gallery__item {
    display: flex;
    padding: 0 10px;
}
.collections-gallery__item img {
    max-width: 100%;
    width: 100%;
}

@media only screen and (min-width: 670px) {
    .collections-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
    a.collections-item {
        max-width: 310px;
    }

    .collections-gallery {
        margin: 0;
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 20px;
    }
    .collections-gallery:before {
        display: none;
    }
    .collections-gallery__item {
        padding: 0;
    }
}
@media only screen and (min-width: 1160px) {
    .collection-slider {
        margin: 17px -10px 20px 0;
        padding: 0;
    }
    .collection-slider a.collections-item {
        max-width: none;
    }
    .collection-top {
        padding: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
    }
    .colletion-bar {
        padding: 0;
        justify-content: flex-start;
    }
    .colletion-bar a {
        flex-grow: 0;
        padding: 5px 18px;
    }
    /* collections page */
    
    .collections-wrapper {
        grid-template-columns: repeat(4, 1fr);
        padding: 0;
    }
    a.collections-item {
        max-width: 280px;
    }
    .collection-slider a.collections-item {
        margin: 0 10px 10px 0;
    }
    /* collections main page */
	.collections-slick-next,
	.collections-slick-prev {
		cursor: pointer;
		border-radius: 50%;
		background: #ffffff;
		box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.09), 0px 2px 6px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.06);
		position: absolute;
		top: calc(50% - 20.62px);
		width: 41.24px;
		height: 41.24px;
		z-index: 20;
	}
	.collections-slick-prev {
		left: -20px;
	}
	.collections-slick-next {
		right: -10px;
	}
	.collections-slick-prev::before,
	.collections-slick-next::before {
		content: '';
		background: url('/bitrix/templates/new-tradein-uservice/css/../images/credit-arrow.png') top left no-repeat;
		width: 9px;
		height: 13px;
		position: absolute;
		left: 18px;
		top: 14px;
	}
	.collections-slick-prev::before {
		transform: rotate(180deg);
		left: 15px;
	}
	/* collections main page */
    /* collections page */

    .collections-gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 21px;
    }
}