/*
 * Хаб статей (articles.php). Макет Figma test3: 793:58065, 793:57978, 793:58008, 793:58038, 793:57952.
 * Страница 1280: Figma 904:75914 — градиент фона; hero без заливки; surface #fef5ed + тень; поиск #f5f5f5.
 * Hero вёрстка: 1280+/1024+ flex; ≤768 — 904:76022 / 904:76144; ≤360 — 904:76185.
 */

body.bc-articles-hub-page {
	background: linear-gradient(180deg, #FFE4D6 0%, #FFD7C2 17.89%), linear-gradient(180deg, #FFE4D6 0%, #FFD0B8 17.89%), #FFE4D6;
}

.bc-top-banner {
	max-width: 1200px;
	margin: 0 auto;
}

.bc-articles-hub {
	width: 100%;
	box-sizing: border-box;
}

/* --- Hero: на градиенте родителя (как 904:75914), без отдельного bg. --- */
.bc-articles-hub__hero {
	width: 100%;
	background: transparent;
	box-sizing: border-box;
	padding: 48px 40px 82px;
}

.bc-articles-hub__hero-inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	width: 100%;
	box-sizing: border-box;
	margin-top: 34px;
}

.bc-articles-hub__hero-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 40px;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 650px;
}

.bc-articles-hub__hero-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	width: 100%;
	min-width: 0;
}

.bc-articles-hub__hero-title {
	margin: 0;
	max-width: 540px;
	font-family: var(--bc-font-serif);
	font-weight: 700;
	font-size: 54px;
	line-height: 1.1;
	color: #3f2b22;
	font-variation-settings: "CTGR" 0, "wdth" 100;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-articles-hub__hero-lead {
	margin: 0;
	max-width: 540px;
	font-family: var(--bc-font-sans);
	font-weight: 400;
	font-size: 20px;
	line-height: 1.4;
	color: #3f2b22;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-articles-hub__hero-visual {
	position: relative;
	flex-shrink: 0;
	width: min(480px, 42vw);
	max-width: 480px;
	aspect-ratio: 480 / 382;
	height: auto;
}

.bc-articles-hub__hero-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center right;
	pointer-events: none;
}

.bc-articles-hub__surface {
	padding: 64px 40px;
	border-top-left-radius: 80px;
	border-top-right-radius: 80px;
	background: #fef5ed;
	box-shadow: 0 -10px 20.3px rgba(0, 0, 0, 0.05);
	box-sizing: border-box;
}

.bc-articles-hub__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	width: 100%;
	max-width: 1200px;
}

/* --- Фильтр: белая оболочка --- */
.bc-articles-hub__filter-shell {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 28px 32px;
	background: #fff;
	border-radius: 40px;
	box-sizing: border-box;
}

.bc-articles-hub__search {
	position: relative;
	width: 100%;
	margin: 0;
}

.bc-articles-hub__search-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 8px 8px 8px 20px;
	border: 1px solid #ebebeb;
	border-radius: 20px;
	background: #f5f5f5;
	box-sizing: border-box;
}

.bc-articles-hub__search-icon-wrap {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
}

.bc-articles-hub__search-icon {
	display: block;
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.bc-articles-hub__search-field {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.bc-articles-hub__suggestions {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	margin-top: 8px;
	z-index: 40;
	width: auto;
	max-width: none;
	max-height: min(320px, 50vh);
	overflow-y: auto;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border: 1px solid #ebebeb;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
}

.bc-articles-hub__suggestion-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bc-articles-hub__suggestion-item {
	margin: 0;
	padding: 0;
}

.bc-articles-hub__suggestion-link {
	display: block;
	padding: 10px 16px;
	font-family: var(--bc-font-ui, "Onest", var(--bc-font-sans));
	font-size: 15px;
	line-height: 1.35;
	color: #583826;
	text-decoration: none;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-articles-hub__suggestion-link:hover,
.bc-articles-hub__suggestion-link:focus {
	background: #f5f5f5;
	outline: none;
}

.bc-articles-hub__suggestion-empty {
	padding: 12px 16px;
	font-family: var(--bc-font-ui, "Onest", var(--bc-font-sans));
	font-size: 15px;
	line-height: 1.35;
	color: #583826;
	opacity: 0.85;
}

.bc-articles-hub__search-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-width: 0;
	border: 0;
	padding: 6px 4px;
	font-family: var(--bc-font-ui, "Onest", var(--bc-font-sans));
	font-size: 16px;
	font-weight: 400;
	line-height: 1.35;
	color: #583826;
	background: transparent;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-articles-hub__search-input::placeholder {
	color: #583826;
	opacity: 0.7;
}

.bc-articles-hub__search-input:focus {
	outline: none;
}

.bc-articles-hub__search-row:focus-within {
	box-shadow: 0 0 0 2px rgba(204, 124, 97, 0.25);
}

.bc-articles-hub__search-submit {
	flex: 0 0 auto;
	width: 140px;
	max-width: 100%;
	padding: 10px 20px;
	border: 0;
	border-radius: 14px;
	background: #cc7c61;
	color: #fff;
	font-family: var(--bc-font-sans);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
	cursor: pointer;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-articles-hub__search-submit:hover {
	background: #b56a52;
}

/* --- Чипы --- */
.bc-articles-hub__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: flex-start;
	width: 100%;
}

.bc-articles-hub__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	white-space: nowrap;
	min-height: 52px;
	padding: 12px 20px;
	border-radius: 79px;
	border: 1px solid #ebebeb;
	background: #fff;
	color: #583826;
	font-family: var(--bc-font-sans);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	font-feature-settings: "lnum" 1, "pnum" 1;
	box-sizing: border-box;
}

.bc-articles-hub__chip:hover {
	color: #3f2b22;
}

.bc-articles-hub__chip--icon {
	padding-left: 12px;
}

/* .bc-articles-hub__chip-icon {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(145deg, #f4e6df 0%, #e8d5cc 100%);
	border: 1px solid #ebebeb;
	box-sizing: border-box;
} */

.bc-articles-hub__chip--active {
	background: #cc7c61;
	border-color: #ebebeb;
	color: #fff;
}

.bc-articles-hub__chip--active:hover {
	color: #fff;
}

.bc-articles-hub__chip--active .bc-articles-hub__chip-icon {
	background: rgba(255, 255, 255, 0.25);
	border-color: rgba(255, 255, 255, 0.35);
}

/* --- Сетка карточек: статья по Figma test3 ---
 * 793:58083 — 1280 · 793:57996 — 1024 · 793:58026 — 768 · 793:58056 — 560 · 793:57968 — 360
 */
.bc-articles-hub__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 38px 12px;
	justify-content: center;
	width: 100%;
}

/* 1280: узел 793:58083 */
.bc-articles-hub__card {
	display: flex;
	flex: 0 0 auto;
	width: 100%;
	max-width: 392px;
}

.bc-articles-hub__card-link {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 20px;
	width: 100%;
	max-width: 392px;
	padding: 0 28px 28px;
	border-radius: 32px;
	background: #fff;
	box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.02);
	color: inherit;
	text-decoration: none;
	box-sizing: border-box;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.bc-articles-hub__card-link:hover {
	box-shadow: 0 8px 22px rgba(63, 43, 34, 0.08);
}

.bc-articles-hub__card-thumb {
	position: relative;
	width: calc(100% + 56px);
	max-width: none;
	margin-left: -28px;
	margin-right: -28px;
	height: 250px;
	max-height: 250px;
	border-radius: 32px;
	overflow: hidden;
	flex-shrink: 0;
	background: #fef5ed;
}

.bc-articles-hub__card-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.bc-articles-hub__card-thumb-cover {
	object-fit: cover;
	border-radius: 32px;
	z-index: 1;
}

.bc-articles-hub__card-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
}

.bc-articles-hub__card-text {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bc-articles-hub__card-title {
	margin: 0;
	font-family: var(--bc-font-serif);
	font-weight: 600;
	font-size: 24px;
	line-height: 1.1;
	color: #3f2b22;
	font-variation-settings: "CTGR" 0, "wdth" 100;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-articles-hub__card-excerpt {
	margin: 0;
	font-family: var(--bc-font-sans);
	font-weight: 500;
	font-size: 17px;
	line-height: 1.45;
	color: #636363;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-articles-hub__card-rule {
	height: 1px;
	width: 100%;
	background: #ebebeb;
	flex-shrink: 0;
}

.bc-articles-hub__card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-start;
}

.bc-articles-hub__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.bc-articles-hub__meta-icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.bc-articles-hub__meta-text {
	font-family: var(--bc-font-sans);
	font-weight: 500;
	font-size: 15px;
	line-height: 1.45;
	letter-spacing: 0;
	color: #636363;
	white-space: nowrap;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-articles-hub__empty {
	margin: 0;
	font-family: var(--bc-font-sans);
	font-size: 18px;
	color: #583826;
	text-align: center;
}

/* --- Пагинация --- */
.bc-articles-hub__pagination {
	width: 100%;
	display: flex;
	justify-content: center;
}

.bc-articles-hub__pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bc-articles-hub__pagination .page-numbers li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bc-articles-hub__pagination a.page-numbers,
.bc-articles-hub__pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 39px;
	height: 39px;
	padding: 8px 16px;
	border-radius: 79px;
	font-family: var(--bc-font-sans);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none;
	box-sizing: border-box;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-articles-hub__pagination a.page-numbers {
	border: 1px solid #ebebeb;
	background: #fff;
	color: #583826;
}

.bc-articles-hub__pagination a.page-numbers:hover {
	border-color: #cc7c61;
	color: #cc7c61;
}

.bc-articles-hub__pagination span.page-numbers.current {
	background: #cc7c61;
	color: #fff;
	border: 1px solid #cc7c61;
}

.bc-articles-hub__pagination span.page-numbers.dots {
	border: 0;
	background: transparent;
	color: #583826;
	min-width: auto;
}

.site-footer {
	margin-top: 0;
}

/* ========== 1024 ========== */
@media (max-width: 1279px) {
	.bc-articles-hub__hero {
		padding: 36px 20px 72px;
	}

	.bc-articles-hub__hero-inner {
		gap: 28px;
		margin-top: 36px;
	}

	.bc-articles-hub__hero-title {
		font-size: 42px;
	}

	.bc-articles-hub__hero-lead {
		font-size: 18px;
	}

	.bc-articles-hub__hero-visual {
		width: min(360px, 38vw);
	}

	.bc-articles-hub__surface {
		padding: 64px 20px;
		background: #fef5ed;
	}

	.bc-articles-hub__grid {
		gap: 32px 12px;
	}

	/* 1024: узел 793:57996 */
	.bc-articles-hub__card {
		max-width: min(380px, max(320px, calc(320px + (100vw - 1024px) * 5 / 16)));
	}

	.bc-articles-hub__card-link {
		gap: 20px;
		max-width: min(380px, max(320px, calc(320px + (100vw - 1024px) * 5 / 16)));
		padding: 0 0 28px;
	}

	.bc-articles-hub__card-thumb {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		height: 204px;
		max-height: 204px;
	}

	.bc-articles-hub__card-body {
		padding-left: 20px;
		padding-right: 20px;
	}

	.bc-articles-hub__card-title {
		font-size: 22px;
		line-height: 1.2;
	}

	.bc-articles-hub__card-excerpt {
		font-size: 16px;
	}
}

/* ========== 768 (904:76022) ========== */
@media (max-width: 1023px) {
	.bc-articles-hub__hero {
		padding: 32px 40px 64px;
	}

	.bc-articles-hub__hero-inner {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
		min-height: 0;
		margin-top: 32px;
	}

	.bc-articles-hub__hero-content {
		display: contents;
	}

	.bc-articles-hub__hero .bc-breadcrumbs {
		order: 1;
		width: 100%;
		align-self: stretch;
		text-align: left;
	}

	.bc-articles-hub__hero .bc-breadcrumbs__list {
		justify-content: flex-start;
		width: 100%;
	}

	.bc-articles-hub__hero-visual {
		order: 2;
		align-self: center;
		width: min(380px, 100%);
		max-width: 380px;
		aspect-ratio: 380 / 303;
	}

	.bc-articles-hub__hero-img {
		object-fit: cover;
		object-position: center;
	}

	.bc-articles-hub__hero-text {
		order: 3;
		align-items: center;
		text-align: center;
		gap: 20px;
	}

	.bc-articles-hub__hero-title,
	.bc-articles-hub__hero-lead {
		max-width: 100%;
	}

	.bc-articles-hub__hero-title {
		font-size: 42px;
	}

	.bc-articles-hub__hero-lead {
		font-size: 17px;
	}

	.bc-articles-hub__surface {
		padding: 64px 40px;
	}

	.bc-articles-hub__filter-shell {
		max-width: 900px;
	}

	/* 768: узел 793:58026 */
	.bc-articles-hub__card {
		max-width: min(450px, max(338px, calc(338px + (100vw - 768px) * 7 / 16)));
	}

	.bc-articles-hub__card-link {
		max-width: min(450px, max(338px, calc(338px + (100vw - 768px) * 7 / 16)));
	}

	.bc-articles-hub__card-thumb {
		height: 216px;
		max-height: 216px;
	}

	.bc-articles-hub__grid {
		gap: 32px 12px;
	}
}

/* ========== 560 (904:76144 — те же размеры, что 768) ========== */
@media (max-width: 767px) {
	.bc-articles-hub__hero {
		padding: 64px 40px;
	}

	.bc-articles-hub__surface {
		padding: 64px 40px;
		border-top-left-radius: 80px;
		border-top-right-radius: 80px;
	}

	.bc-articles-hub__filter-shell {
		max-width: 640px;
	}

	.bc-articles-hub__chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: 6px;
		overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
	}

	.bc-articles-hub__grid {
		gap: 10px 0px;
	}

	/* 560: узел 793:58056 */
	.bc-articles-hub__card {
		max-width: 640px;
	}

	.bc-articles-hub__card-link {
		gap: 16px;
		max-width: 640px;
		padding: 0 0 24px;
	}

	.bc-articles-hub__card-body {
		padding-left: 24px;
		padding-right: 24px;
	}

	.bc-articles-hub__card-thumb {
		height: 305px;
		max-height: 305px;
	}

	.bc-articles-hub__card-title {
		font-size: 20px;
		line-height: 1.2;
	}

	.bc-articles-hub__card-excerpt {
		font-weight: 400;
		font-size: 16px;
		line-height: 1.35;
		color: #454545;
		opacity: 0.85;
	}

	.bc-articles-hub__card-meta {
		gap: 8px;
	}

	.bc-articles-hub__meta-text {
		line-height: 1.35;
		letter-spacing: 0.15px;
	}
}

/* ========== 360 (904:76185) ========== */
@media (max-width: 559px) {
	.bc-articles-hub__hero {
		padding: 32px 20px 32px;
	}

	.bc-articles-hub__hero-inner {
		gap: 0;
		padding-top: 0;
		padding-bottom: 0;
	}

	/* display:contents наследуется с ≤1023 */
	.bc-articles-hub__hero .bc-breadcrumbs {
		margin-bottom: 36px;
	}

	.bc-articles-hub__hero .bc-breadcrumbs__list {
		justify-content: flex-start;
	}

	.bc-articles-hub__hero .bc-breadcrumbs__link,
	.bc-articles-hub__hero .bc-breadcrumbs__current {
		font-size: 14px;
		line-height: 1.35;
		white-space: normal;
	}

	.bc-articles-hub__hero-visual {
		margin-bottom: 16px;
		width: min(260px, 100%);
		max-width: 260px;
		aspect-ratio: 260 / 207;
	}

	.bc-articles-hub__hero-text {
		gap: 16px;
	}

	.bc-articles-hub__hero-title {
		font-size: 28px;
	}

	.bc-articles-hub__hero-lead {
		font-size: 16px;
		line-height: 1.4;
		color: #454545;
	}

	.bc-articles-hub__surface {
		padding: 40px 20px;
		border-top-left-radius: 36px;
		border-top-right-radius: 36px;
	}

	.bc-articles-hub__inner {
		gap: 28px;
	}

	.bc-articles-hub__filter-shell {
		gap: 14px;
		padding: 24px 20px;
		border-radius: 32px;
		max-width: 480px;
	}

	.bc-articles-hub__search-row {
		display: grid;
		grid-template-columns: auto 1fr;
		grid-template-rows: auto auto;
		align-items: center;
		column-gap: 6px;
		row-gap: 12px;
		padding: 14px 16px;
	}

	.bc-articles-hub__search-icon-wrap {
		grid-column: 1;
		grid-row: 1;
	}

	.bc-articles-hub__search-field {
		grid-column: 2;
		grid-row: 1;
	}

	.bc-articles-hub__search-submit {
		grid-column: 1 / -1;
		grid-row: 2;
		width: 100%;
		margin-top: 0;
	}

	.bc-articles-hub__search-input {
		font-family: var(--bc-font-sans);
		font-size: 15px;
	}

	.bc-articles-hub__chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: 4px;
		overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
	}

	.bc-articles-hub__chip {
		flex-shrink: 0;
		min-height: 38px;
		padding: 8px 14px 8px 10px;
		font-size: 14px;
		line-height: 1.45;
		color: #3f2b22;
	}

	.bc-articles-hub__chip:not(.bc-articles-hub__chip--icon) {
		min-height: 42px;
		padding: 10px 16px;
	}

	.bc-articles-hub__chip--active:not(.bc-articles-hub__chip--icon) {
		color: #fff;
	}

	/* .bc-articles-hub__chip-icon {
		width: 22px;
		height: 22px;
	} */

	.bc-articles-hub__grid {
		gap: 16px 0px;
	}

	/* 360: узел 793:57968 */
	.bc-articles-hub__card {
		max-width: 480px;
	}

	.bc-articles-hub__card-link {
		max-width: 480px;
	}

	.bc-articles-hub__card-body {
		padding-left: 20px;
		padding-right: 20px;
	}

	.bc-articles-hub__card-thumb {
		height: 220px;
		max-height: 220px;
	}

	.bc-articles-hub__card-title {
		font-size: 19px;
		line-height: 1.2;
	}

	.bc-articles-hub__card-excerpt {
		font-weight: 400;
		font-size: 15px;
		line-height: 1.35;
		color: #454545;
		opacity: 0.85;
	}

	.bc-articles-hub__card-meta {
		gap: 8px;
	}

	.bc-articles-hub__meta-text {
		font-size: 13px;
		line-height: 1.35;
		letter-spacing: 0.13px;
	}

	.bc-articles-hub__pagination a.page-numbers,
	.bc-articles-hub__pagination span.page-numbers {
		min-width: 35px;
		height: 35px;
		font-size: 15px;
	}
}
