.afb-brands-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	max-width: 100%;
}

.afb-brands-catalog {
	width: 100%;
	max-width: 100%;
}

.afb-brand-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}

.afb-brand-filter__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	padding: 10px 14px;
	border: 1px solid #e7e5dd;
	border-radius: 999px;
	background: #ffffff;
	color: #101620;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.1;
}

.afb-brand-filter__checkbox {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #0a63d6;
}

.afb-brand-filter__label {
	overflow-wrap: anywhere;
}

.afb-brand-card {
	min-width: 0;
	opacity: 1;
	transform: translateY(0);
	transition: opacity .22s ease, transform .22s ease;
}

.afb-brand-card.is-filtered-out {
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
}

.afb-brand-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 260px;
	overflow: hidden;
	border-radius: 18px;
	background: #ffffff;
	color: #101620;
	text-decoration: none;
	box-shadow: 0 10px 30px -22px rgba(16, 22, 32, .45);
	transition: transform .2s ease, box-shadow .2s ease;
}

.afb-brand-card__link:hover {
	color: #101620;
	transform: translateY(-4px);
	box-shadow: 0 18px 42px -26px rgba(16, 22, 32, .55);
}

.afb-brand-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1.18;
	background: #f6f5f0;
}

.afb-brand-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.afb-brand-card__title {
	margin: 0;
	padding: 18px 18px 8px;
	color: #101620;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: 0;
}

.afb-brand-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	margin: auto 18px 18px;
	padding: 11px 18px;
	border-radius: 999px;
	background: #ffd200;
	color: #101620;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
}

@media (max-width: 1024px) {
	.afb-brands-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.afb-brands-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.afb-brand-card__link {
		min-height: 210px;
		border-radius: 14px;
	}

	.afb-brand-card__title {
		padding: 14px 14px 8px;
		font-size: 16px;
	}

	.afb-brand-card__button {
		margin: auto 14px 14px;
		padding: 10px 14px;
		font-size: 13px;
	}

	.afb-brand-filter {
		gap: 8px;
		margin-bottom: 18px;
	}

	.afb-brand-filter__item {
		padding: 9px 12px;
		font-size: 13px;
	}
}

.afb-ingredients-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	max-width: 100%;
}

.afb-ingredient-card {
	--afb-ingredient-accent: #62a82a;
	min-width: 0;
}

.afb-ingredient-card__link {
	position: relative;
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	min-height: 260px;
	overflow: hidden;
	border-radius: 22px;
	background: var(--afb-ingredient-accent);
	color: #ffffff;
	text-decoration: none;
	box-shadow: 0 12px 34px -24px rgba(16, 22, 32, .5);
	transition: transform .2s ease, box-shadow .2s ease;
}

.afb-ingredient-card__link:hover {
	color: #ffffff;
	transform: translateY(-4px);
	box-shadow: 0 20px 46px -28px rgba(16, 22, 32, .6);
}

.afb-ingredient-card__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	min-width: 0;
	padding: 28px;
}

.afb-ingredient-card__title {
	max-width: 12em;
	margin: 0;
	color: inherit;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.afb-ingredient-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	margin-top: 24px;
	padding: 12px 18px;
	border-radius: 999px;
	background: #ffd200;
	color: #101620;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
}

.afb-ingredient-card__image {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 1;
	width: 48%;
	max-width: 320px;
	pointer-events: none;
}

.afb-ingredient-card__image img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 767px) {
	.afb-ingredients-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.afb-ingredient-card__link {
		min-height: 220px;
		border-radius: 18px;
	}

	.afb-ingredient-card__content {
		padding: 22px;
	}

	.afb-ingredient-card__title {
		font-size: 28px;
	}

	.afb-ingredient-card__image {
		width: 54%;
	}
}

.afb-dynamic-products {
	margin: 0;
	padding-left: 1.2em;
}

.afb-dynamic-products li + li {
	margin-top: .35em;
}

.afb-dynamic-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.afb-dynamic-gallery {
	--afb-gallery-visible: 6;
	--afb-gallery-gap: 16px;
	--afb-gallery-width: 100%;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.afb-dynamic-gallery__viewport {
	width: 100%;
	overflow: hidden;
}

.afb-dynamic-gallery__track {
	display: flex;
	align-items: stretch;
	gap: var(--afb-gallery-gap);
	width: max-content;
	will-change: transform;
}

.afb-dynamic-gallery__item {
	flex: 0 0 calc((var(--afb-gallery-width) - (var(--afb-gallery-gap) * (var(--afb-gallery-visible) - 1))) / var(--afb-gallery-visible));
	display: block;
	min-width: 0;
	overflow: hidden;
	border-radius: 14px;
}

.afb-dynamic-gallery__image {
	display: block;
	width: 100%;
	height: auto;
}

.afb-dynamic-gallery:hover .afb-dynamic-gallery__track {
	animation-play-state: paused;
}

@media (max-width: 1024px) {
	.afb-dynamic-gallery {
		--afb-gallery-visible: 4;
	}
}

@media (max-width: 767px) {
	.afb-dynamic-gallery {
		--afb-gallery-visible: 2;
		--afb-gallery-gap: 12px;
	}
}


.afb-dynamic-gallery__viewport:before{
	width: 66px !important;
    height: 100% !important;
    position: absolute !important;
    content: '' !important;
    background: linear-gradient(90deg, #ffffff, 45%, transparent);
    top: 0;
    z-index: 1;
    left: -1px !important;
}
.afb-dynamic-gallery__viewport:after{
	width: 66px;
    height: 100%;
    position: absolute;
    content: '' !important;
    background: linear-gradient(90deg, #ffffff00, 65%, #ffffff);
    top: 0;
    right: -1px;
    z-index: 1;
}
