.preset {
	position: relative;
	width: 100%;
}
.preset_l {
	display: flex;
	border-radius: 20px;
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 260px;
}
.preset_l::after {
	background: linear-gradient(0deg, var(--color-brown) 0, rgba(67, 67, 67, 0) 60%);
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 2;
}
.preset_l:is(:active, :focus-visible, :hover) {
	box-shadow: var(--box-shadow-m);
}

.preset_s .preset__content {
	display: block;
	background-color: var(--color-white);
	box-sizing: border-box;
	border-left: 4px solid var(--color-blue);
	border-radius: 6px;
	box-shadow: var(--box-shadow-m);
	padding: 12px 16px;
	height: 74px;
	position: relative;
	top: 0;
	transition: var(--transition);
	overflow: hidden;
	white-space: nowrap;
}
.preset_s:is(:active, :focus-visible, :hover) .preset__content {
	box-shadow: var(--box-shadow-l);
	top: -10px;
}
.preset_l .preset__content {
	box-sizing: border-box;
	padding: 20px 20px;
	position: absolute;
	transition: var(--transition);
	height: 100%;
	width: 100%;
	z-index: 10;
}

.preset__img {
	border: none;
	position: relative;
	object-fit: cover;
	object-position: 50%;
	width: 100%;
	height: 100%;
}
.preset__name {
	font-weight: 600;
	font-size: 16px;
	text-overflow: ellipsis;
	margin-bottom: 4px;
	overflow: hidden;
}
.preset_s .preset__name {
	color: var(--color-brown);
}
.preset_l .preset__name {
	color: var(--color-white);
}
.preset__counter {
	font-size: 16px;
	overflow: hidden;
	text-overflow: ellipsis;
}
.preset_s .preset__counter {
	color: var(--color-gray-3);
}
.preset_l .preset__counter {
	color: var(--color-gray-xlight);
}
.preset__counter::after {
	content: ' шт.';
}

.preset-author {
	border-bottom: 2px dotted var(--color-gray);
	margin-bottom: 5px;
	padding-bottom: 5px;
}

.preset-categories {
	display: flex;
	flex-direction: row;
	column-gap: 12px;
	overflow-x: auto;
	padding: 10px 0 16px;
}
.preset-categories__button {
	flex-shrink: 0;
	background: var(--color-gray-light);
	color: var(--color-brown);
	border-radius: 20px;
	font-weight: 500;
	font-size: 20px;
}
.preset-categories__button:is(.active, :active, :focus-visible, :hover) {
	background: var(--gradient-blue);
	color: var(--color-white);
}

@media (min-width: 576px) {
	.preset-collection {
		column-gap: 3%;
	}
	.preset {
		width: 48.5%;
	}
	.content-column .preset {
		width: 100%;
	}
}

@media (min-width: 768px) {
	.preset-collection {
		column-gap: 2%;
	}
	.preset {
		width: 32%;
	}
	.content-column .preset {
		width: 49%;
	}
}

@media (min-width: 992px) {
	.preset__counter::before {
		content: 'Предложений: ';
	}
	.preset__counter::after {
		content: "";
	}
}

@media (min-width: 1200px) {
	.preset-collection {
		column-gap: 1.33%;
	}
	.preset {
		width: 24%;
	}
	.content-column .preset {
		width: 32%;
	}
}