div.posts-catalog {
	--pc-columns: 3;
	--pc-gap: 40px 25px;
	--pc-radius: 8px;
	--pc-text: #323439;
	--pc-muted: #818181;
	--pc-accent: #960a19;
	--pc-border: rgba(50, 52, 57, 0.18);
	--pc-sort-bg: #f3f1ef;

	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

div.posts-catalog *,
div.posts-catalog *::before,
div.posts-catalog *::after {
	box-sizing: border-box;
}

div.posts-catalog .posts-catalog__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}

div.posts-catalog .posts-catalog__tabs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 36px;
	min-width: 0;
}

div.posts-catalog .posts-catalog__tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0 0 10px;
	border: 0;
	background: transparent;
	font-family: "TikTok Sans", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pc-text);
	cursor: pointer;
}

div.posts-catalog .posts-catalog__tab::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	min-width: 28px;
	width: 100%;
	height: 2px;
	background: transparent;
}

div.posts-catalog .posts-catalog__tab.is-active::after,
div.posts-catalog .posts-catalog__more.is-active .posts-catalog__more-toggle::after {
	background: var(--pc-text);
}

div.posts-catalog .posts-catalog__more {
	position: relative;
}

div.posts-catalog .posts-catalog__more-toggle {
	padding-right: 2px;
}

div.posts-catalog .posts-catalog__chevron {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

div.posts-catalog .posts-catalog__more-toggle[aria-expanded="true"] .posts-catalog__chevron,
div.posts-catalog .posts-catalog__sort-toggle[aria-expanded="true"] .posts-catalog__chevron {
	transform: rotate(180deg);
}

div.posts-catalog .posts-catalog__more-menu,
div.posts-catalog .posts-catalog__sort-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 20;
	min-width: 220px;
	padding: 8px 0;
	border: 1px solid var(--pc-border);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

div.posts-catalog .posts-catalog__sort-menu {
	left: auto;
	right: 0;
}

div.posts-catalog .posts-catalog__more-item,
div.posts-catalog .posts-catalog__sort-option {
	display: block;
	width: 100%;
	margin: 0;
	padding: 10px 16px;
	border: 0;
	background: transparent;
	font-family: "TikTok Sans", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	text-align: left;
	color: var(--pc-text);
	cursor: pointer;
}

div.posts-catalog .posts-catalog__more-item:hover,
div.posts-catalog .posts-catalog__sort-option:hover,
div.posts-catalog .posts-catalog__more-item.is-active,
div.posts-catalog .posts-catalog__sort-option.is-active {
	background: rgba(150, 10, 25, 0.06);
	color: var(--pc-accent);
}

div.posts-catalog .posts-catalog__sort {
	position: relative;
	flex-shrink: 0;
	margin-left: auto;
}

div.posts-catalog .posts-catalog__sort-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-width: 210px;
	margin: 0;
	padding: 15px 16px;
	border: 1px solid var(--pc-accent);
	border-radius: 6px;
	background: transparent;
	font-family: "TikTok Sans", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--pc-accent);
	cursor: pointer;
}

div.posts-catalog .posts-catalog__grid {
	display: grid;
	grid-template-columns: repeat(var(--pc-columns), minmax(0, 1fr));
	gap: var(--pc-gap);
}

div.posts-catalog .posts-catalog__card {
	min-width: 0;
	margin: 0;
}

div.posts-catalog .posts-catalog__card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

div.posts-catalog .posts-catalog__media {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 0.8;
	border-radius: 6px;
	overflow: hidden;
	background: #e8e8e8;
}

div.posts-catalog .posts-catalog__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1);
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

div.posts-catalog .posts-catalog__card-link:hover .posts-catalog__image {
	transform: scale(1.04);
}

div.posts-catalog .posts-catalog__image--placeholder {
	background: linear-gradient(135deg, #ececec 0%, #d8d8d8 100%);
}

div.posts-catalog .posts-catalog__body {
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding-top: 16px;
}

div.posts-catalog .posts-catalog__date {
	display: block;
	font-family: "TikTok Sans", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	color: #545454;
}

div.posts-catalog .posts-catalog__title {
	margin: 0;
	font-family: "TikTok Sans", sans-serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--pc-text);
	word-break: break-word;
}

div.posts-catalog .posts-catalog__excerpt {
	margin: 0;
	font-family: "TikTok Sans", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--pc-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

div.posts-catalog .posts-catalog__card-link:hover .posts-catalog__title {
	opacity: 0.78;
}

div.posts-catalog .posts-catalog__card-link:focus-visible {
	outline: 2px solid var(--pc-accent);
	outline-offset: 3px;
}

div.posts-catalog .posts-catalog__empty {
	margin: 24px 0 0;
	font-family: "TikTok Sans", sans-serif;
	font-size: 16px;
	color: var(--pc-muted);
}

div.posts-catalog .posts-catalog__footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-top: 56px;
}

div.posts-catalog .posts-catalog__show-more {
	display: none;
}

div.posts-catalog .posts-catalog__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 26px;
	flex-wrap: wrap;
}

div.posts-catalog .posts-catalog__page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: "TikTok Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	color: var(--pc-text);
	cursor: pointer;
}

div.posts-catalog .posts-catalog__page--num {
	min-width: 1.2em;
}

div.posts-catalog .posts-catalog__page--num.is-current {
	font-weight: 400;
}

div.posts-catalog .posts-catalog__page--arrow {
	width: 34px;
	height: 34px;
	border: 1px solid #DFE3E8;
	border-radius: 4px;
	background: #fff;
}

div.posts-catalog .posts-catalog__page:hover:not(:disabled),
div.posts-catalog .posts-catalog__page:focus-visible:not(:disabled) {
	color: var(--pc-accent);
	outline: none;
}

div.posts-catalog .posts-catalog__page--arrow:hover:not(:disabled),
div.posts-catalog .posts-catalog__page--arrow:focus-visible:not(:disabled) {
	border-color: var(--pc-accent);
}

div.posts-catalog .posts-catalog__page:disabled {
	opacity: 0.35;
	cursor: default;
}

div.posts-catalog .posts-catalog__ellipsis {
	font-family: "TikTok Sans", sans-serif;
	font-size: 16px;
	line-height: 1;
	color: var(--pc-text);
}

div.posts-catalog.is-loading .posts-catalog__grid {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

@media (max-width: 1199px) {
	div.posts-catalog {
		--pc-gap: 32px 24px;
	}

	div.posts-catalog .posts-catalog__title {
		font-size: 20px;
	}

	div.posts-catalog .posts-catalog__tabs {
		gap: 8px 24px;
	}
}

@media (max-width: 991px) {
	div.posts-catalog {
		--pc-columns: 2;
	}

	div.posts-catalog .posts-catalog__toolbar {
		margin-bottom: 36px;
	}

	div.posts-catalog .posts-catalog__footer {
		margin-top: 40px;
	}
}

@media (max-width: 767px) {
	div.posts-catalog {
		--pc-columns: 1 !important;
		--pc-gap: 39px;
	}

	div.posts-catalog .posts-catalog__grid {
		grid-template-columns: 1fr;
	}

	div.posts-catalog .posts-catalog__media {
		width: 63%;
		aspect-ratio: 1 / 0.62;
		border-radius: 6px;
	}

	div.posts-catalog .posts-catalog__body {
		gap: 8px;
		padding-top: 16px;
	}

	div.posts-catalog .posts-catalog__date {
		font-size: 12px;
	}

	div.posts-catalog .posts-catalog__title {
		font-size: 18px;
		line-height: 1.3;
	}

	div.posts-catalog .posts-catalog__excerpt {
		font-size: 14px;
	}

	div.posts-catalog .posts-catalog__toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		margin-bottom: 16px;
	}

	div.posts-catalog .posts-catalog__sort {
		display: none;
	}

	div.posts-catalog .posts-catalog__sort-toggle {
		width: 100%;
	}

	div.posts-catalog .posts-catalog__tabs {
		gap: 6px 18px;
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 4px;
		-webkit-overflow-scrolling: touch;
	}

	div.posts-catalog .posts-catalog__tab {
		white-space: nowrap;
	}

	div.posts-catalog:not(.is-mobile-ready) .posts-catalog__card:nth-child(n+4),
	div.posts-catalog .posts-catalog__card.is-collapsed {
		display: none;
	}

	div.posts-catalog .posts-catalog__pagination {
		display: none;
	}

	div.posts-catalog .posts-catalog__footer {
		margin-top: 8px;
	}

	div.posts-catalog .posts-catalog__show-more {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		width: 100%;
		margin: 8px 0 0;
		padding: 16px 0;
		border: 0;
		border-top: 1px solid #e5e5e5;
		border-radius: 0;
		background: transparent;
		font-family: "TikTok Sans", sans-serif;
		font-size: 16px;
		font-weight: 400;
		line-height: 1.2;
		color: var(--pc-muted);
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	div.posts-catalog .posts-catalog__show-more:hover,
	div.posts-catalog .posts-catalog__show-more:focus-visible {
		background: transparent;
		color: var(--pc-muted);
		outline: none;
	}

	div.posts-catalog .posts-catalog__show-more svg {
		display: block;
		width: 12px;
		height: 8px;
	}

	div.posts-catalog .posts-catalog__show-more[hidden] {
		display: none;
	}
}

@media (max-width: 575px) {
	div.posts-catalog {
		--pc-columns: 1;
		--pc-gap: 39px;
	}

	div.posts-catalog .posts-catalog__title {
		font-size: 18px;
	}

	div.posts-catalog .posts-catalog__pagination {
		gap: 14px;
	}

	div.posts-catalog .posts-catalog__page--arrow {
		width: 36px;
		height: 36px;
	}
}
