/**
 * Styles for courses hub page template.
 *
 * @package Bloomcare
 */

body.bc-courses-hub-page {
	background: linear-gradient(180deg, #FEE6E6 0%, #FDE9D3 27%);
}

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

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

/* --- Hero (контент 1244:32295; визуал 1244:32303, 1280+) --- */
.bc-courses-hub__hero {
	width: 100%;
	background: transparent;
	box-sizing: border-box;
	padding: 48px 40px 82px;
}

.bc-courses-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-courses-hub__hero-content {
	display: flex;
	flex-direction: column;
	gap: 40px;
	align-items: flex-start;
	flex: 0 0 auto;
	width: 650px;
	min-width: 0;
}

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

.bc-courses-hub__hero-title {
	margin: 0;
	width: 100%;
	font-family: "Noto Serif", Georgia, "Times New Roman", 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-courses-hub__hero-lead {
	margin: 0;
	width: 100%;
	font-family: "Manrope", system-ui, sans-serif;
	font-weight: 400;
	font-size: 20px;
	line-height: 1.4;
	color: #3f2b22;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-courses-hub__hero-visual {
	position: relative;
	flex: 0 0 auto;
	width: 480px;
	height: 382px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bc-courses-hub__hero-art {
	position: relative;
	width: 480px;
	height: 382px;
	overflow: hidden;
	pointer-events: none;
}

/* Hero visual crop: Figma 1244:32303 (геро-фрейм 1244:32294, 1280+). */
.bc-courses-hub__hero-art-img {
	position: absolute;
	top: 4.19%;
	left: -13.17%;
	width: 130.64%;
	height: 91.62%;
	max-width: none;
}

/* --- Catalog surface (Figma node 969:94551, 1280+) --- */
.bc-courses-hub__catalog {
	width: 100%;
	box-sizing: border-box;
	filter: drop-shadow(0 -10px 15px rgba(0, 0, 0, 0.02));
}

.bc-courses-hub__catalog-surface {
	width: 100%;
	background: #fef5ed;
	border-top-left-radius: 80px;
	border-top-right-radius: 80px;
	padding: 80px 0;
	box-sizing: border-box;
}

.bc-courses-hub__catalog-inner {
	width: 1200px;
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
}

.bc-courses-hub__catalog-head {
	width: 1200px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

.bc-courses-hub__catalog-title {
	margin: 0;
	font-family: "Noto Serif", Georgia, "Times New Roman", serif;
	font-weight: 700;
	font-size: 40px;
	line-height: 1.15;
	letter-spacing: -0.8px;
	color: #3f2b22;
	font-variation-settings: "CTGR" 0, "wdth" 100;
}

.bc-courses-hub__tabs {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	padding: 4px;
	background: #fff;
	border-radius: 500px;
}

.bc-courses-hub__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	border-radius: 79px;
	padding: 12px 24px;
	font-family: "Manrope", system-ui, sans-serif;
	font-weight: 500;
	font-size: 18px;
	line-height: 1.4;
	color: #a63d52;
	cursor: pointer;
	text-decoration: none;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-courses-hub__tab.is-active {
	background: #a63d52;
	color: #fff;
}

.bc-courses-hub__grid {
	width: 1200px;
	display: flex;
	flex-wrap: wrap;
	gap: 32px 12px;
	align-items: stretch;
	justify-content: center;
}

.bc-courses-hub__card {
	width: 392px;
	border-radius: 32px;
	background: #fff;
	box-shadow: 0 4px 5px rgba(0, 0, 0, 0.02);
	display: flex;
	flex-direction: column;
	align-items: center;
	align-self: stretch;
	gap: 24px;
	padding: 0 28px 28px;
	overflow: visible;
	box-sizing: border-box;
}

/* Превью в десктопном макете "в край" карточки при внутреннем padding. */
.bc-courses-hub__card-thumb {
	position: relative;
	width: calc(100% + 56px);
	height: 250px;
	margin-left: -28px;
	margin-right: -28px;
	flex-shrink: 0;
	border-radius: 32px;
	overflow: hidden;
	pointer-events: none;
}

.bc-courses-hub__card-thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	object-fit: cover;
	object-position: center;
}

.bc-courses-hub__card-body {
	width: 100%;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
}

.bc-courses-hub__card-main {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bc-courses-hub__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.bc-courses-hub__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	border-radius: 79px;
	background: #fef5ed;
	font-family: "Manrope", system-ui, sans-serif;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.35;
	color: #a63d52;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-courses-hub__card-title {
	margin: 0;
	width: 100%;
	font-family: "Noto Serif", Georgia, "Times New Roman", serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 1.2;
	color: #3f2b22;
	font-variation-settings: "CTGR" 0, "wdth" 100;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-courses-hub__card-title-link {
	color: inherit;
	text-decoration: none;
}

.bc-courses-hub__card-title-link:hover {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bc-courses-hub__card-title-link:focus-visible {
	outline: 2px solid rgba(166, 61, 82, 0.45);
	outline-offset: 3px;
	border-radius: 2px;
}

.bc-courses-hub__card-desc {
	margin: 0;
	width: 100%;
	font-family: "Manrope", system-ui, sans-serif;
	font-weight: 500;
	font-size: 17px;
	line-height: 1.45;
	color: #636363;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-courses-hub__card-price {
	margin: 0;
	width: 100%;
	font-family: "Noto Serif", Georgia, "Times New Roman", serif;
	font-weight: 600;
	font-size: 24px;
	line-height: 1.1;
	color: #a63d52;
	font-variation-settings: "CTGR" 0, "wdth" 100;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-courses-hub__card-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: auto;
	padding: 16px 40px;
	border-radius: 22px;
	background: #a63d52;
	color: #fff;
	text-decoration: none;
	font-family: "Manrope", system-ui, sans-serif;
	font-weight: 600;
	font-size: 18px;
	line-height: 1.2;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-courses-hub__card-btn:hover {
	filter: brightness(0.95);
	color: #fff;
}

.bc-courses-hub__card-btn:focus-visible {
	outline: 2px solid rgba(166, 61, 82, 0.6);
	outline-offset: 3px;
}

.bc-courses-hub__card-btn-icon {
	display: inline-flex;
	width: 26px;
	height: 26px;
}

.bc-courses-hub__card-btn-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bc-courses-hub__pagination {
	display: flex;
	align-items: flex-start;
}

.bc-courses-hub__pagination .page-numbers {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	list-style: none;
	padding: 0;
	margin: 0;
}

.bc-courses-hub__pagination a.page-numbers,
.bc-courses-hub__pagination span.page-numbers,
.bc-courses-hub__page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 39px;
	padding: 8px 16px;
	border-radius: 79px;
	border: 1px solid #ebebeb;
	background: #fff;
	color: #583826;
	font-family: "Manrope", system-ui, sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.35;
	text-decoration: none;
	box-sizing: border-box;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-courses-hub__pagination span.page-numbers.current,
.bc-courses-hub__page.is-current {
	background: #cc7c61;
	border-color: #cc7c61;
	color: #fff;
}

@media (max-width: 1279px) {
	/* Hero (Figma: artboard 969:94573 → frame 969:94575, 1024) */
	.bc-courses-hub__hero {
		padding: 36px 0 48px;
	}

	.bc-courses-hub__hero-inner {
		margin-top: 0;
		padding-left: 20px;
		padding-right: 20px;
		gap: 48px;
		align-items: center;
	}

	.bc-courses-hub__hero-content {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
	}

	.bc-courses-hub__hero-text {
		gap: 20px;
	}

	.bc-courses-hub__hero-title {
		font-size: 48px;
		line-height: 1.1;
	}

	.bc-courses-hub__hero-lead {
		font-weight: 400;
		font-size: 18px;
		line-height: 1.4;
	}

	.bc-courses-hub__hero-visual {
		width: 362px;
		height: 288.446px;
		flex: 0 0 auto;
	}

	.bc-courses-hub__hero-art {
		width: 362px;
		height: 288.446px;
	}

	/* Catalog (Figma node 969:94585, 1024) */
	.bc-courses-hub__catalog-surface {
		border-top-left-radius: 64px;
		border-top-right-radius: 64px;
		padding: 64px 20px;
	}

	.bc-courses-hub__catalog-inner {
		width: 100%;
		max-width: none;
		padding: 0;
		gap: 40px;
	}

	.bc-courses-hub__catalog-head {
		width: 100%;
		max-width: none;
		align-items: flex-start;
		justify-content: space-between;
		gap: 16px 24px;
		flex-wrap: wrap;
	}

	.bc-courses-hub__catalog-title {
		font-size: 34px;
		line-height: 1.15;
		letter-spacing: -0.68px;
		max-width: 100%;
		white-space: normal;
	}

	.bc-courses-hub__tab {
		padding: 10px 20px;
		font-size: 16px;
		line-height: 1.4;
	}

	.bc-courses-hub__tabs {
		flex-wrap: wrap;
		row-gap: 4px;
	}

	.bc-courses-hub__grid {
		width: 100%;
		max-width: none;
	}

	.bc-courses-hub__card {
		padding: 0 0 28px;
		gap: 20px;
		width: calc((100% - 24px) / 3);
		flex: 1 1 calc((100% - 24px) / 3);
		max-width: 400px;
	}

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

	.bc-courses-hub__card-body {
		gap: 24px;
		padding: 0 20px;
	}

	.bc-courses-hub__card-main {
		gap: 12px;
	}

	.bc-courses-hub__card-title {
		font-size: 22px;
	}

	.bc-courses-hub__card-desc {
		font-weight: 500;
		font-size: 16px;
		line-height: 1.45;
	}

	.bc-courses-hub__card-price {
		font-weight: 600;
		font-size: 22px;
		line-height: 1.2;
	}
}

@media (max-width: 1023px) {
	/* Hero (Figma node 969:94694, 768) */
	.bc-courses-hub__hero {
		padding: 32px 0 64px;
	}

	.bc-courses-hub__hero-inner {
		flex-direction: column;
		align-items: center;
		gap: 32px;
		padding-left: 40px;
		padding-right: 40px;
	}

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

	.bc-courses-hub__hero-inner > nav.bc-breadcrumbs {
		order: 1;
		width: 100%;
		max-width: 100%;
		align-self: stretch;
	}

	.bc-courses-hub__hero-visual {
		order: 2;
		width: 380px;
		height: 303px;
	}

	.bc-courses-hub__hero-art {
		width: 380px;
		height: 303px;
	}

	.bc-courses-hub__hero-text {
		order: 3;
		align-items: center;
		text-align: center;
	}

	.bc-courses-hub__hero-title {
		font-size: 42px;
		line-height: 1.1;
		max-width: 540px;
		width: 100%;
		margin-left: auto;
		margin-right: auto;
	}

	.bc-courses-hub__hero-lead {
		font-size: 17px;
		line-height: 1.4;
		max-width: 100%;
	}

	/* Catalog (Figma node 969:94703, 768). В макете два таба — в вёрстке остаются все три, включая «Все». */
	.bc-courses-hub__catalog-surface {
		padding: 64px 40px;
	}

	.bc-courses-hub__catalog-inner {
		gap: 32px;
	}

	.bc-courses-hub__catalog-head {
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 32px;
	}

	.bc-courses-hub__catalog-title {
		font-size: 36px;
		line-height: 1.15;
		letter-spacing: -0.72px;
	}

	.bc-courses-hub__tabs {
		align-self: flex-start;
	}

	.bc-courses-hub__grid {
		max-width: 932px;
		margin-left: auto;
		margin-right: auto;
	}

	.bc-courses-hub__card {
		width: calc((100% - 12px) / 2);
		max-width: 466px;
		flex: 1 1 calc((100% - 12px) / 2);
		box-sizing: border-box;
	}

	.bc-courses-hub__card-thumb {
		height: auto;
		aspect-ratio: 338 / 216;
	}

	.bc-courses-hub__card-body {
		gap: 20px;
		padding: 0 20px;
	}
}

@media (max-width: 767px) {
	/* Hero (Figma node 969:94792, 560) */
	.bc-courses-hub__hero {
		padding: 32px 0 64px;
	}

	.bc-courses-hub__hero-inner {
		padding-left: 40px;
		padding-right: 40px;
		gap: 32px;
	}

	.bc-courses-hub__hero-visual {
		width: 380px;
		height: 303px;
	}

	.bc-courses-hub__hero-art {
		width: 380px;
		height: 303px;
	}

	.bc-courses-hub__hero-title {
		max-width: 480px;
		font-size: 42px;
		line-height: 1.1;
	}

	.bc-courses-hub__hero-lead {
		font-size: 17px;
		line-height: 1.4;
	}

	/* Catalog (Figma node 969:94801, 560). В макете два таба — в вёрстке остаются все три, включая «Все». */
	.bc-courses-hub__catalog-surface {
		border-top-left-radius: 48px;
		border-top-right-radius: 48px;
		padding: 64px 40px;
	}

	.bc-courses-hub__catalog-inner {
		gap: 28px;
	}

	.bc-courses-hub__catalog-head {
		gap: 28px;
	}

	.bc-courses-hub__catalog-title {
		font-size: 36px;
		line-height: 1.15;
		letter-spacing: -0.72px;
	}

	.bc-courses-hub__tabs {
		align-self: flex-start;
	}

	.bc-courses-hub__grid {
		max-width: 680px;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: center;
		gap: 24px;
	}

	.bc-courses-hub__card {
		width: 100%;
		max-width: 680px;
		flex: 1 1 100%;
	}

	.bc-courses-hub__card-thumb {
		aspect-ratio: 338 / 216;
	}

	.bc-courses-hub__card-body {
		padding: 0 24px;
		gap: 20px;
	}

	.bc-courses-hub__chip {
		padding: 5px 10px;
		font-size: 13px;
	}

	.bc-courses-hub__card-title {
		font-size: 20px;
	}

	.bc-courses-hub__card-price {
		font-size: 20px;
		line-height: 1.1;
	}
}

@media (max-width: 559px) {
	/* Hero (Figma node 969:94823, 360) */
	.bc-courses-hub__hero {
		padding: 32px 0 48px;
	}

	.bc-courses-hub__hero-inner {
		padding-left: 20px;
		padding-right: 20px;
		gap: 28px;
	}

	.bc-courses-hub__hero-inner > nav.bc-breadcrumbs {
		font-size: 14px;
		line-height: 1.35;
	}

	.bc-courses-hub__hero-visual {
		width: 280px;
		height: 223px;
	}

	.bc-courses-hub__hero-art {
		width: 280px;
		height: 223px;
	}

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

	.bc-courses-hub__hero-title {
		max-width: 320px;
		font-size: 28px;
		line-height: 1.1;
	}

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

	/* Catalog (Figma node 969:94834, 360). Табы остаются 3 (включая «Все»). */
	.bc-courses-hub__catalog-surface {
		border-top-left-radius: 36px;
		border-top-right-radius: 36px;
		padding: 40px 20px;
	}

	.bc-courses-hub__catalog-inner {
		gap: 24px;
	}

	.bc-courses-hub__catalog-head {
		gap: 24px;
	}

	.bc-courses-hub__catalog-title {
		font-size: 28px;
		line-height: 1.15;
		letter-spacing: -0.56px;
	}

	.bc-courses-hub__tabs {
		align-self: flex-start;
	}

	.bc-courses-hub__tab {
		padding: 8px 16px;
		font-size: 14px;
		line-height: 1.4;
	}

	.bc-courses-hub__grid {
		max-width: 520px;
		gap: 8px;
	}

	.bc-courses-hub__card {
		max-width: 520px;
		padding-bottom: 24px;
	}

	.bc-courses-hub__card-body {
		padding: 0 20px;
	}

	.bc-courses-hub__card-main {
		gap: 12px;
	}

	.bc-courses-hub__card-title {
		font-size: 19px;
	}

	.bc-courses-hub__card-desc {
		font-weight: 400;
		font-size: 15px;
		line-height: 1.35;
		color: #454545;
	}

	.bc-courses-hub__card-price {
		font-size: 19px;
		line-height: 1.1;
	}

	.bc-courses-hub__card-btn {
		padding: 14px 28px;
		font-size: 16px;
		line-height: 1.35;
	}

	.bc-courses-hub__pagination {
		gap: 12px;
	}

	.bc-courses-hub__page {
		width: 35px;
		min-width: 35px;
		height: 35px;
		padding: 8px 16px;
		font-size: 15px;
		line-height: 1.35;
	}

	.bc-breadcrumbs__item {
		font-family: Manrope;
		font-size: 14px;
		font-style: normal;
		font-weight: 400;
		line-height: 135%; /* 18.9px */
	}
}

